Back to Search Start Over

Declarative modeling of finite mathematics

Authors :
Paul Tarau
Source :
PPDP
Publication Year :
2010
Publisher :
ACM, 2010.

Abstract

A common foundation of finite arithmetic, hereditarily finite sets and sequences, binary trees and graphs is described as a progressive refinement of Haskell type classes.We derive as instances symbolic implementations of arithmetic operations in terms of rooted ordered trees representing hereditarily finite sets and sequences. Conversely, arithmetic implementations of pairs, powersets, von Neumann ordinals shade new light on the bi-interpretability between Peano arithmetic and a theory of hereditarily finite sets.As another instance, rooted ordered binary trees representing a simplified form of the type language of Goedel's System T are shown as directly emulating arithmetic and finite set operations.The main contribution of the paper is a fully constructive unification of paradigms - a chain of type classes does it all: Peano arithmetic, sets, sequences, binary trees, bitstrings. Another contribution is that we do it "efficiently" (i.e. in time and space asymptotically comparable with standard binary representations).The Haskell code in the paper is available at http://logic.cse.unt.edu/tarau/research/2010/shared.hs.

Details

Database :
OpenAIRE
Journal :
Proceedings of the 12th international ACM SIGPLAN symposium on Principles and practice of declarative programming
Accession number :
edsair.doi...........27019adb08c40f7fae1595a1ecf9ba77
Full Text :
https://doi.org/10.1145/1836089.1836107