A Functional Hitchhiker's Guide to Hereditarily Finite Sets, Ackermann Encodings and Pairing Functions
Paul Tarau

TL;DR
This paper presents a Haskell-based implementation of finite set theory, introducing generalized Ackermann encodings, lazy enumeration of hereditarily finite sets, and methods for recovering sets from digraph encodings, advancing computational set theory.
Contribution
It introduces generalized ranking/unranking functions for hereditarily finite sets with Urelements and develops encodings for complex structures like powersets and hypergraphs using functional programming.
Findings
Successful implementation of generalized Ackermann encodings in Haskell
Development of lazy enumerator matching unranking functions
Encoding and recovery methods for complex set structures and digraphs
Abstract
The paper is organized as a self-contained literate Haskell program that implements elements of an executable finite set theory with focus on combinatorial generation and arithmetic encodings. The code, tested under GHC 6.6.1, is available at http://logic.csci.unt.edu/tarau/research/2008/fSET.zip . We introduce ranking and unranking functions generalizing Ackermann's encoding to the universe of Hereditarily Finite Sets with Urelements. Then we build a lazy enumerator for Hereditarily Finite Sets with Urelements that matches the unranking function provided by the inverse of Ackermann's encoding and we describe functors between them resulting in arithmetic encodings for powersets, hypergraphs, ordinals and choice functions. After implementing a digraph representation of Hereditarily Finite Sets we define {\em decoration functions} that can recover well-founded sets from encodings of…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, programming, and type systems · Logic, Reasoning, and Knowledge · Advanced Algebra and Logic
