Affiliation:
1. University of Minnesota, USA
2. Carnegie Mellon University, USA
Abstract
We present a novel formulation of universe polymorphism in dependent type theory in terms of monads on the category of strict partial orders, and a novel algebraic structure,
displacement algebras,
on top of which one can implement a generalized form of McBride’s “crude but effective stratification” scheme for lightweight universe polymorphism. We give some examples of exotic but consistent universe hierarchies, and prove that every universe hierarchy in our sense can be embedded in a displacement algebra and hence implemented via our generalization of McBride’s scheme. Many of our technical results are mechanized in Agda, and we have an OCaml library for universe levels based on displacement algebras, for use in proof assistant implementations.
Funder
Air Force Office of Scientific Research
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference34 articles.
1. The RedPRL Proof Assistant (Invited Paper)
2. Danil Annenkov Paolo Capriotti and Nicolai Kraus. 2017. Two-Level Type Theory and Applications. arxiv:cs.LO/1705.03307 http://arxiv.org/abs/1705.03307 Preprint. Danil Annenkov Paolo Capriotti and Nicolai Kraus. 2017. Two-Level Type Theory and Applications. arxiv:cs.LO/1705.03307 http://arxiv.org/abs/1705.03307 Preprint.
3. Natural models of homotopy type theory
4. Loop-checking and the uniform word problem for join-semilattices with an inflationary endomorphism
5. Marc Bezem Thierry Coquand Peter Dybjer and Martín Escardó. 2022. Type Theories with Universe Level Judgments. https://types22.inria.fr/files/2022/06/TYPES_2022_paper_56.pdf Marc Bezem Thierry Coquand Peter Dybjer and Martín Escardó. 2022. Type Theories with Universe Level Judgments. https://types22.inria.fr/files/2022/06/TYPES_2022_paper_56.pdf