The -category of -categories in simplicial type theory
Joint work with: Daniel Gratzer, Ulrik Buchholtz
Simplicial type theory (STT) was introduced by Riehl and Shulman [1] to leverage homotopy type theory to prove results about -categories. Initial work on simplicial type theory focused on “formal” arguments in higher category theory and, in particular, no non-trivial examples of -category theory were constructible within STT. More recent work has changed this state of affairs by applying techniques developed initially for cubical type theory to construct the -category of spaces. In [2], we complete this process by constructing the -category of -categories, recovering one of the main foundational results of -category theory (straightening–unstraightening) purely type-theoretically. STT extends HoTT with a directed interval, a postulated totally ordered lattice . This new type is meant to represent the category —an interpretation justified by the model of STT in simplicial spaces—and we then use to define morphisms in an arbitrary type as ordinary functions constraining the endpoints: . [1] then demonstrate that the definition of an -category can be formulated concisely as a predicate on types, essentially requiring every pair of composable morphisms have a unique composite. Furthermore, they show that ordinary functions between such types constitute functors and that other classical definitions in -category theory become expressible. Subsequent work has further expanded this approach, developing fibered category theory, (co)limits, etc. As an extension of HoTT, STT comes equipped with a (hierarchy of) universes and it is therefore natural to ask: Is a recognizable category, e.g., the category of categories?
Unfortunately, the answer is negative; is the canonical example of a type that is not an -category in STT. In fact, even if one considers simple subtypes of the universe (e.g., ) one does not obtain a category, as synthetic morphisms neither compose nor faithfully represent functors. However, it has long been conjectured that the category of categories should be constructible in STT as a certain subtype of the universe. We address this final gap in the foundations of STT by settling this conjecture affirmatively and constructing the category of categories as a subtype and verifying its essential properties:
-
1.
is the base of the universal cocartesian fibration
-
2.
is directed univalent, i.e., for global elements in we have .
-
3.
is a category (i.e., Segal and Rezk) and simplicial.
We promote this to a straightening–unstraightening theorem à la [5] and give first applications such as defining monoidal -categories, -theory of monoidal -categories, and using ’s structure homomorphism principle to compute the morphisms of the lax slice and of the category of marked categories.
- [1] E. Riehl and M. Shulman, A type theory for synthetic -categories, Higher Structures 1 (2017), no. 1, 147–224.
- [2] D. Gratzer, J. Weinberger, and U. Buchholtz, The -category of -categories in simplicial type theory, preprint arXiv:2602.02218, 2026.
- [3] D. R. Licata, I. Orton, A. M. Pitts, and B. Spitters, Internal universes in models of homotopy type theory, Logical Methods in Computer Science 14 (2018), 108, 22:1–22:17.
- [4] M. Riley, Tiny types, preprint, arXiv:2403.01939, 2024.
- [5] D.-C. Cisinski, B. Cnossen, K. Ngyuen, and T. Walde, Synthetic category theory, book in preparation, available as a preprint (PDF), 2025.