English

Generating Bijections between HOAS and the Natural Numbers

Logic in Computer Science 2010-09-16 v1

Abstract

A provably correct bijection between higher-order abstract syntax (HOAS) and the natural numbers enables one to define a "not equals" relationship between terms and also to have an adequate encoding of sets of terms, and maps from one term family to another. Sets and maps are useful in many situations and are preferably provided in a library of some sort. I have released a map and set library for use with Twelf which can be used with any type for which a bijection to the natural numbers exists. Since creating such bijections is tedious and error-prone, I have created a "bijection generator" that generates such bijections automatically together with proofs of correctness, all in the context of Twelf.

Cite

@article{arxiv.1009.2790,
  title  = {Generating Bijections between HOAS and the Natural Numbers},
  author = {John Tang Boyland},
  journal= {arXiv preprint arXiv:1009.2790},
  year   = {2010}
}

Comments

In Proceedings LFMTP 2010, arXiv:1009.2189

R2 v1 2026-06-21T16:13:58.325Z