On computing with types

  • Authors:
  • Paul Tarau;David Haraburda

  • Affiliations:
  • University of North Texas;University of North Texas

  • Venue:
  • Proceedings of the 27th Annual ACM Symposium on Applied Computing
  • Year:
  • 2012

Quantified Score

Hi-index 0.00

Visualization

Abstract

We express in terms of binary trees seen as Gödel System T types (with the empty type as the only primitive type) arithmetic computations within time and space bounds comparable to binary arithmetic and derive an efficiently testable total ordering on types, isomorphic to the ordering of natural numbers. A few novel algorithms are derived in the process, that enable arithmetic computations with type trees. The use of a Haskell type class describing the "axiomati-zation" of the shared structure present in System T's type language and natural numbers, together with Haskell instances representing "twin" interpretations connected by an iso-functor that transports operations between the two instances, provides instant empirical testability. The self-contained source code of the paper is available at http://logic.cse.unt.edu/tarau/research/2012/stypes.hs.