A 2-categorical analysis of context comprehension (2403.03085v3)
Abstract: We consider the equivalence between the two main categorical models for the type-theoretical operation of context comprehension, namely P. Dybjer's categories with families and B. Jacobs' comprehension categories, and generalise it to the non-discrete case. The classical equivalence can be summarised in the slogan: "terms as sections". By recognising "terms as coalgebras", we show how to use the structure-semantics adjunction to prove that a 2-category of comprehension categories is biequivalent to a 2-category of (non-discrete) categories with families. The biequivalence restricts to the classical one proved by Hofmann in the discrete case. It also provides a framework where to compare different morphisms of these structures that have appeared in the literature, varying on the degree of preservation of the relevant structure. We consider in particular morphisms defined by Claraimbault-Dybjer, Jacobs, Larrea, and Uemura.
- Steve Awodey. Natural models of homotopy type theory. Mathematical Structures in Computer Science, 28(2):241–286, 2018.
- Javier Blanco. Relating categorical approaches to type dependency. Master’s thesis, Katholieke Universiteit Nijmegen, 1991.
- Kenneth S. Brown. Abstract homotopy theory and generalized sheaf cohomology. Trans. Amer. Math. Soc., 186:419–458, 1973.
- John Cartmell. Generalised algebraic theories and contextual categories. Annals of Pure and Applied Logic, 32:209–243, 1986.
- The Biequivalence of Locally Cartesian Closed Categories and Martin-Löf Type Theories. Mathematical Structures in Computer Science, 24(05):e240501, April 2014.
- Context, judgement, deduction. Available as arXiv:2111.09438, 2022.
- Categorical models of subtyping. Available as arXiv:2312.14600, 2023.
- Eduardo Dubuc. Kan Extensions in Enriched Category Theory, volume 145 of Lecture Notes in Mathematics. Springer-Verlag, Berlin-New York, 1970.
- Peter Dybjer. Internal type theory. In Stefano Berardi and Mario Coppo, editors, Types for Proofs and Programs, pages 120–134, Berlin, Heidelberg, 1996. Springer Berlin Heidelberg.
- Thomas Ehrhard. A categorical semantics of constructions. In Proceedings. Third Annual Symposium on Logic in Computer Science, pages 264–273, 1988.
- Adjoint functors and triples. Illinois Journal of Mathematics, 9(3):381 – 398, 1965.
- Marcelo Fiore. Notes on algebraic type theory. Available at https://www.cl.cam.ac.uk/~mpf23/Notes/att.pdf, 2008.
- Martin Hofmann. Syntax and semantics of dependent types. In Andrew M. Pitts and P.Editors Dybjer, editors, Semantics and Logics of Computation, Publications of the Newton Institute, page 79–130. Cambridge University Press, 1997.
- Peter J. Huber. Homotopy theory in general categories. Mathematische Annalen, 1961.
- Bart Jacobs. Comprehension categories and the semantics of type dependency. Theoretical Computer Science, 107(2):169–207, 1993.
- Bart Jacobs. Categorical logic and type theory. Elsevier, 1999.
- Heinrich Kleisli. Every standard construction is induced by a pair of adjoint functors. Proceedings of the American Mathematical Society, 16(3):544–546, 1965.
- Review of the elements of 2-categories. In G. M. Kelly, editor, Category Seminar, pages 75–103, Berlin, Heidelberg, 1974. Springer Berlin Heidelberg.
- Marco Federico Larrea. Models of Dependent Type Theory from Algebraic Weak Factorisation Systems. PhD thesis, University of Leeds, 2018.
- F. William Lawvere. Equality in hyperdoctrines and comprehension schema as an adjoint functor. In A. Heller, editor, Proc. New York Symposium on Application of Categorical Algebra, pages 1–14. Amer.Math.Soc., 1970.
- Saunders MacLane. Categories for the Working Mathematician. Springer, 1978.
- Per Martin-Löf. Intuitionistic type theory, volume 1 of Studies in proof theory. Bibliopolis, 1984.
- Eugenio Moggi. A category-theoretic account of program modules. Mathematical Structures in Computer Science, 1(1):103–139, 1991.
- Comprehension and Quotient Structures in the Language of 2-Categories. In Zena M. Ariola, editor, 5th International Conference on Formal Structures for Computation and Deduction (FSCD 2020), volume 167 of Leibniz International Proceedings in Informatics (LIPIcs), pages 6:1–6:18, Dagstuhl, Germany, 2020. Schloss Dagstuhl – Leibniz-Zentrum für Informatik.
- Erik Palmgren. Categories with families and first-order logic with dependent sorts. Annals of Pure and Applied Logic, 170(12):102715, 2019.
- Egbert Rijke. Introduction to homotopy type theory. To appear in Cambridge Studies in Advanced Mathematics, Cambridge University Press. Available as arXiv:2212.11082, 2022.
- Ross Street. The formal theory of monads. Journal of Pure and Applied Algebra, 2(2):149–168, 1972.
- Thomas Streicher. Fibred categories à la Jean Bénabou. Available as arXiv:1801.02927, 2022.
- Taichi Uemura. A general framework for the semantics of type theory. Mathematical Structures in Computer Science, 33(3):134–179, 2023. Available as arXiv:1904.04097.