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.
- Carlo Angiuli, Evan Cavallo, Kuen-Bang Hou (Favonia), Robert Harper, and Jonathan Sterling. 2018. The RedPRL Proof Assistant (Invited Paper). In Proceedings of the 13th International Workshop on Logical Frameworks and Meta-Languages: Theory and Practice, Oxford, UK, 7th July 2018 (Electronic Proceedings in Theoretical Computer Science), Frédéric Blanqui and Giselle Reis (Eds.), Vol. 274. Open Publishing Association, 1–10.
Google Scholar
Cross Ref
- 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.
Google Scholar
- Steve Awodey. 2018. Natural models of homotopy type theory. Mathematical Structures in Computer Science 28, 2 (2018), 241–286.
Google Scholar
Cross Ref
- Marc Bezem and Thierry Coquand. 2022. Loop-checking and the uniform word problem for join-semilattices with an inflationary endomorphism. Theoretical Computer Science 913 (2022), 1–7. issn:0304-3975
Google Scholar
Digital Library
- 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
Google Scholar
- Marc Bezem, Robert Nieuwenhuis, and Enric Rodríguez-Carbonell. 2008. The Max-Atom Problem and Its Relevance. In Logic for Programming, Artificial Intelligence, and Reasoning, Iliano Cervesato, Helmut Veith, and Andrei Voronkov (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 47–61. isbn:978-3-540-89439-1
Google Scholar
Digital Library
- Edwin C. Brady. 2013. Idris, a general-purpose dependently typed programming language: Design and implementation. Journal of Functional Programming 23 (2013), 552 – 593.
Google Scholar
Cross Ref
- Thierry Coquand. 1986. An Analysis of Girard’s Paradox. In Proceedings of the First Annual IEEE Symposium on Logic in Computer Science (LICS 1986). IEEE Computer Society Press, 227–236.
Google Scholar
- Thierry Coquand. 2013. Presheaf model of type theory. (2013). http://www.cse.chalmers.se/~coquand/presheaf.pdf Unpublished note.
Google Scholar
- Thierry Coquand. 2019. Canonicity and normalization for dependent type theory. Theoretical Computer Science 777 (2019), 184–191. issn:0304-3975 In memory of Maurice Nivat, a founding father of Theoretical Computer Science - Part I.
Google Scholar
Digital Library
- Judicaël Courant. 2002. Explicit Universes for the Calculus of Constructions. In Theorem Proving in Higher Order Logics, Victor A. Carre no, César A. Mu noz, and Sofiène Tahar (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 115–130. isbn:978-3-540-45685-8
Google Scholar
Cross Ref
- Leonardo de Moura, Soonho Kong, Jeremy Avigad, Floris van Doorn, and Jakob von Raumer. 2015. The Lean Theorem Prover (System Description). In Automated Deduction – CADE-25, Amy P. Felty and Aart Middeldorp (Eds.). Springer International Publishing, Cham, 378–388. isbn:978-3-319-21401-6
Google Scholar
- Peter Dybjer. 1996. Internal type theory. In Types for Proofs and Programs (TYPES 1995) (Lecture Notes in Computer Science), Stefano Berardi and Mario Coppo (Eds.), Vol. 1158. Springer Berlin Heidelberg, Berlin, Heidelberg, 120–134. isbn:978-3-540-70722-6
Google Scholar
Cross Ref
- Gaëtan Gilbert, Jesper Cockx, Matthieu Sozeau, and Nicolas Tabareau. 2019. Definitional Proof-Irrelevance without K. Proc. ACM Program. Lang. 3, POPL, Article 3 (jan 2019), 28 pages.
Google Scholar
Digital Library
- Daniel Gratzer, G. A. Kavvos, Andreas Nuyts, and Lars Birkedal. 2020. Multimodal Dependent Type Theory. In Proceedings of the 35th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS ’20). Association for Computing Machinery, New York, NY, USA, 492–506. isbn:9781450371049
Google Scholar
Digital Library
- Trang Ha and Valentina Harizanov. 2018. Orders on magmas and computability theory. Journal of Knot Theory and Its Ramifications 27, 07 (2018), 1841001.
Google Scholar
Cross Ref
- Robert Harper and Robert Pollack. 1991. Type checking with universes. Theoretical Computer Science 89, 1 (1991), 107–136. issn:0304-3975
Google Scholar
Digital Library
- Gérard Huet. 1987. Extending the calculus of constructions with Type:Type. (1987). http://pauillac.inria.fr/~huet/PUBLIC/typtyp.pdf Unpublished note.
Google Scholar
- András Kovács. 2022. Generalized Universe Hierarchies and First-Class Universe Levels. In 30th EACSL Annual Conference on Computer Science Logic (CSL 2022) (Leibniz International Proceedings in Informatics (LIPIcs)), Florin Manea and Alex Simpson (Eds.), Vol. 216. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 28:1–28:17. isbn:978-3-95977-218-1 issn:1868-8969
Google Scholar
Cross Ref
- Per Martin-Löf. 1971. An intuitionistic theory of types. (1971). Unpublished preprint.
Google Scholar
- Per Martin-Löf. 1975. An Intuitionistic Theory of Types: Predicative Part. In Logic Colloquium ’73, H.E. Rose and J.C. Shepherdson (Eds.). Studies in Logic and the Foundations of Mathematics, Vol. 80. Elsevier, 73–118. issn:0049-237X
Google Scholar
Cross Ref
- Conor McBride. 2002. Crude but Effective Stratification. https://personal.cis.strath.ac.uk/conor.mcbride/Crude.pdf Slides.
Google Scholar
- Conor McBride. 2011. Crude but Effective Stratification. https://mazzo.li/epilogue/index.html
Google Scholar
- Clive Newstead. 2018. Algebraic models of dependent type theory. Ph.D. Dissertation. Carnegie Mellon University. https://www.math.cmu.edu/~cnewstea/thesis-clive-newstead.pdf
Google Scholar
- Erik Palmgren. 1998. On universes in type theory. Twenty five years of constructive type theory (1998), 191–204. isbn:9780198501275
Google Scholar
Cross Ref
- RedPRL Development Team. 2022. mugen. https://github.com/RedPRL/mugen
Google Scholar
- RedPRL Development Team. 2022. 133, 177, 96algaett. https://github.com/RedPRL/algaett
Google Scholar
- Anton Setzer. 2000. Extending Martin-Löf type theory by one Mahlo-universe. Archive for Mathematical Logic 39, 3 (2000), 155–181.
Google Scholar
Cross Ref
- Matthieu Sozeau and Nicolas Tabareau. 2014. Universe Polymorphism in Coq. In Interactive Theorem Proving, Gerwin Klein and Ruben Gamboa (Eds.). Springer International Publishing, Cham, 499–514. isbn:978-3-319-08970-6
Google Scholar
Cross Ref
- Yuta Takahashi. 2022. Higher-Order Universe Operators in Martin-Löf Type Theory with one Mahlo Universe. https://types22.inria.fr/files/2022/06/TYPES_2022_paper_63.pdf
Google Scholar
- The 1Lab Development Team. 2022. The 1Lab. https://1lab.dev
Google Scholar
- The Agda Development Team. 2022. The Agda Programming Language. https://wiki.portal.chalmers.se/agda/pmwiki.php
Google Scholar
- The Coq Development Team. 2022. The Coq Proof Assistant. https://www.coq.inria.fr
Google Scholar
- The HELM Team. 2016. Matita. http://matita.cs.unibo.it/index.shtml
Google Scholar
- The LEGO Team. 1999. The LEGO Proof Assistant. https://www.dcs.ed.ac.uk/home/lego/
Google Scholar
Index Terms
An Order-Theoretic Analysis of Universe Polymorphism
Recommendations
An Implementation of LF with Coercive Subtyping & Universes
We present ‘Plastic’, an implementation of LF with Coercive Subtyping, and focus on its implementation of Universes. LF is a variant of Martin-Löf's logical framework, with explicitly typed λ-abstractions. We outline the system of LF with its extensions ...
Constructing a universe for the setoid model
Foundations of Software Science and Computation StructuresAbstractThe setoid model is a model of intensional type theory that validates certain extensionality principles, like function extensionality and propositional extensionality, the latter being a limited form of univalence that equates logically equivalent ...
2-Dimensional Directed Type Theory
Recent work on higher-dimensional type theory has explored connections between Martin-Lof type theory, higher-dimensional category theory, and homotopy theory. These connections suggest a generalization of dependent type theory to account for ...






Comments