Manuscript Offprint
arXiv:2610.28370A General Construction of Strict Models in HoTT
Niyousha Najmaei and Niels van der Weide
LIX, École Polytechnique, Inria, Palaiseau, France
Eötvös Loránd University, Budapest, Hungary
Abstract. Homotopy type theory (HoTT) provides a natural setting for studying the metatheory of type theory, as it comes with additional extensionality principles compared to ordinary Martin-Löf type theory. In particular, it is especially suitable for developing semantics of type theory, where one distinguishes two kinds of models: strict models, which give us sound interpretations, and pseudomodels. Pseudomodels are useful as they occur prevalently and can be turned into strict models by constructions called strictifications. However, the commonly used strictifications do not translate well to HoTT, as they require assumptions that are generally not satisfied by concrete examples of models.
We show how to carry out the universe model construction, due to Voevodsky, in HoTT. Under this construction, every pseudomodel together with a universe type closed under enough type formers gives rise to a strict model. We also show how to interpret type formers in the resulting model assuming that the universe is closed under them. Finally, we demonstrate that this construction generalises existing instances of strict set models in the literature, and we apply it to more examples, yielding presheaf models and assembly models of type theory in HoTT. Our results are formalised in Rocq using the UniMath library.
1 Introduction
Categorical semantics provides a framework for studying desirable properties of type theories, such as consistency and normalisation [8,17,27,36]. A prominent example of a type theory whose categorical models are well-studied, is Martin-Löf type theory (MLTT). MLTT serves as a foundation for constructive mathematics [42], and of many proof assistants, such as Rocq [53], Lean [21] and Agda [3].
One can study the semantics of type theory within type-theoretical foundations, which has numerous advantages. One of the immediate advantages of such an approach is that it enables formalisation and direct mechanisation of proofs in a proof assistant. Another advantage is that type theoretical foundations provide better tools for reasoning about models by, for example, providing stronger and more suitable notions of invariance.
Homotopy Type Theory (HoTT) is, for instance, a particularly suitable ambient theory for the study of the semantics of type theory. Compared to ordinary MLTT, HoTT has more extensionality principles, namely the univalence axiom,
N. Najmaei and N. Van der Weide
which states that types are identified if they are isomorphic. The univalence axiom is beneficial in the formalisation of mathematics, as it allows us to directly conclude that all properties of types are stable under isomorphism and that we can transport proofs and structures across isomorphisms. Without univalence, such properties are laborious to establish, as they must be proved for each instance of interest. In addition, univalence can be instantiated to a wide variety of mathematical structures, making its advantages broadly available [6].
In this paper, we discuss a general technique for constructing models of type theory in HoTT. We give an analysis on how this approach generalises various existing set models of type theory in the literature [7,28] and also provide new examples, namely presheaf models and assembly models of type theory in HoTT.
Semantics of Type Theories Various categorical structures have been studied for the semantics of type theory. We distinguish between two classes of such structures: strict models vs pseudomodels. The distinction lies in how substitution is treated: strict models interpret substitution strictly functorially (i.e., up to equality), whereas pseudomodels interpret it only pseudofunctorially (i.e., up to isomorphism). Although pseudomodels arise naturally in mathematics, only strict models can interpret type theory, as substitution is usually strictly functional there. Examples of strict models include contextual categories [14], categories with families (CwFs) [22] and natural models [11], and examples of pseudomodels include display map categories [52] and comprehension categories [33,34]. In the remainder of this paper, we use CwFs as our notion of strict model and comprehension categories as our notion of pseudomodel.
Even though we cannot interpret type theory soundly in pseudomodels, general methods, called strictification constructions, turn them into equivalent strict models. Various examples of such constructions have been used to interpret type theory [30,25,13,39], most notably the ones based on the left and right adjoint splitting constructions due to Giraud [26] and Bénabou [51]. We give a more detailed discussion on strictification constructions in Section 2.
Semantics of Type Theories in HoTT When studying the semantics of type theories, defining the syntax and its models presents subtle challenges in HoTT. One approach to defining the syntax within type theory itself was described by Altenkirch and Kaposi [7], who define the syntax of type theory using quotient inductive-inductive types [35] as the initial category with families. Although successful, this approach admits only a restrictive class of models in HoTT. For instance, both the set and presheaf models of type theory, only give rise to a CwF if one assumes uniqueness of identity proofs—an assumption stating that all proofs of identity are equal, which is incompatible with the univalence axiom. In response, Altenkirch and Kaposi [7] use an inductive-recursive universe to get a set model. Later Gratzer, Gylterud, Mörtberg, and Stenholm [28] construct an alternative model using iterative sets. However, neither gives a general technique for constructing models of type theory in HoTT.
We present a general technique for constructing strict models of type theory in HoTT. We carry out the universe model construction, due to Voevodsky [54], in HoTT and show that it serves as a general construction for strict models. This construction generalises the models by Altenkirch and Kaposi, and by Gratzer, Gylterud, Mörtberg, and Stenholm. We also instantiate it to more examples, yielding new strict presheaf models and assembly models of type theory in HoTT. Realizability models, such as assembly models, provide a versatile technique for constructing models of system F and the calculus of constructions [40,46,50], while presheaf models are used, among others, to prove normalisation by evaluation [8,17,27]. Our approach is appealing for these examples because universes in presheaves and assemblies are well understood; the challenge we tackle is showing that the construction can be carried out in HoTT for these examples.
Constructing Strict Models in HoTT In this paper, we carry out a universe model construction, based on Voevodsky's [54], in HoTT. We start with a comprehension category with a universe closed under unit and -types and construct a CwF by restricting to the universe. Recall that comprehension categories are pseudomodels, whereas CwFs are strict models.
A universe in a comprehension category gives a type in each context and a function mapping each term of type to a type in context . The construction of a CwF from the universe works as follows:
– we take the CwF-contexts to be terms of the universe in the empty context;
– we take the CwF-types in a context to be terms of ;
– for a CwF-type A, we take the CwF-terms of A to be terms of .
This yields a CwF, as the collections of terms of a certain type in a comprehension category make a set, and substitution of terms is strictly functional there. Our construction is similar to Voevodsky's construction of C-systems from categories with a universe [54], with differences which we discuss in Section 7. We also show that the resulting CwF supports unit and -types, supports -types if the starting universe is closed under -types, and is democratic.
Contributions The contributions of this paper can be summarised as follows.
-
We carry out a universe model construction, inspired by Voevodsky's [54], in HoTT foundations: a general construction for strict models in HoTT that can be used to develop semantics of type theory within HoTT (Construction 24 and Theorem 25);
-
We show that -, unit, and -types are preserved under this construction (Theorems 29 to 31) and the resulting CwFs are democratic (Theorem 27);
-
We show that this construction generalises two existing examples of set models of type theory in HoTT (Examples 32 and 33);
-
We present new examples by instantiating the construction to obtain presheaf and assembly models of type theory in HoTT (Examples 34 and 37).
N. Najmaei and N. Van der Weide
The main results of the paper are formalised in Rocq in the UniMath library [56] and are available here. We also provide links to specific sections of the formalisation throughout the paper using the Rocq logo 📐. Our formalisation in Section 6.2 builds on the work by Speight and Van der Weide [49].
Synopsis In Section 2, we give a more precise description of the setting of the problem and discuss various strictification constructions. In Section 3, we review the background on CwFs and comprehension categories. In Section 4, we give the definition of universes of comprehension categories and their closure properties under type formers. In Section 5, we present the construction from a comprehension category with a universe to a category with families. We also show that the construction preserves certain type formers, namely -, - and unit type and that the resulting CwF is democratic. In Section 6, we instantiate the construction to set models, presheaf models and assembly models. In Section 7, we discuss related work and compare our construction to various existing ones.
Before we look at strictification constructions, we explicate our notions of strict models and pseudomodels. We use categories with families (CwF) as our notion of strict model. Every CwF comes with an interpretation of type theory, since the syntax of type theory can be defined as the initial CwF [7]. Our notion of pseudomodel should be general enough to admit interesting examples in HoTT, such as set and presheaf models. As our notion of pseudomodel, we take comprehension categories since they are a more general notion compared to other commonly used pseudomodels of type theory [5] encompassing more examples of constructive models of type theory [25,43]. In addition, every univalent category with finite limits gives rise to a comprehension category [58], so this notion encapsulates the set and presheaf models.
The notion of homotopy level becomes subtly important when discussing strictification constructions in HoTT. Recall that a type X is called a set if for all x, y : X and p, q : x = y we have p = q. We denote the type of sets by hSet. Not every type is a set, since, for instance, hSet itself is not a set. A crucial distinction between our notions of strict models and pseudomodels lies in requirements on homotopy levels. In CwFs, the types in a certain context are required to be a set and substitution is strict, making them a suitable class of strict models. However, we relax these requirements for pseudomodels, for which we use comprehension categories. In general, the types in a comprehension category do not form a set.
It is important to relax this requirement for pseudomodels, because, for instance, in set models of type theory, where types are interpreted as members of hSet, the types do not form a set themselves.
To build a strict model from a pseudomodel in HoTT, we construct a CwF from a comprehension category. This requires altering the comprehension category in two ways. First, we must replace the collection of types by a set. Second, we must change the substitution operation on types so that it becomes strictly functional. Note that in set-theoretic foundations, such constructions only need to alter the substitution operation.
To understand how comprehension categories can be strictified, one needs to know how type theory is interpreted there. In comprehension categories, the category of types is fibred over the category of contexts. Although fibrations can in general only admit a pseudofunctorial interpretation of substitution, there is a class of fibrations, where strictly functional substitution can be interpreted: split fibrations. Strictification constructions for fibration-based models are based on constructions that build split fibrations equivalent to the starting non-split ones.
There are two main such splitting constructions, the left and right adjoint splitting constructions due to Giraud [26] and Bénabou [51], where the splittings are given as left and right adjoints to the inclusion functor . The right adjoint splitting was used by Hofmann to interpret Martin-Löf type theory in locally Cartesian closed categories [30], and one can also use the right adjoint splitting to interpret homotopy type theory using algebraic weak factorisation systems [25]. Lumsdaine and Warren showed how to use the left adjoint splitting to interpret type theory using model categories [13,39].
For a complete explanation of the left and right adjoint splittings, we refer the reader to [51] and [19,30] respectively. We also do not explicate how these splitting constructions lift from fibrations to models of type theory, e.g. comprehension categories. For this, we refer the reader to [19,39]. We do, however, discuss whether they are a suitable for HoTT.
Let us check whether the left and right adjoint splitting constructions are suitable for a strictification construction in HoTT. Since, in fibration-based models, types are interpreted as objects in the fibres, this amounts to verifying that the fibres of the resulting split fibration form a set.
Let be a (cloven) fibration and let . In the right adjoint splitting, objects over consist of together with a function mapping a morphism to a cartesian lifting of into such that the function maps the identity morphism to the identity lift. We denote this type by . In the left adjoint splitting, objects over are triples , and we denote this type of objects by .
Proposition 1. If both T and C have a set of objects, then and are sets.
Note that for and to be sets, we do need to require the objects of and to be sets. This is because identities of both and consist, among others, of identities of objects in .
We can thus see that neither of these constructions satisfies our desired properties, since if we start with a general pseudomodel, the types in the resulting
N. Najmaei and N. Van der Weide
model are not guaranteed to form a set. In particular, there might exist non-trivial proofs of identity in C and T.
There is, however, an interesting special case of the left adjoint splitting, which does give us a strict model. This is the universe model construction, due to Voevodsky [54], where one first fixes a and , and the fiber over becomes maps . These fibers form a set, since the morphisms in always form a set by definition. In the remainder of this paper, we study the universe model construction in the context of homotopy type theory.
Remark 2. We see the base category as the category of contexts and the fibers as types in that context. The fixed data U and E can be thought of as having a universe U and an el map in the sense of a Tarski style universe (see Definition 18). The splitting construction can be thought of as having the types in the resulting model be the terms of type U in the starting model (see Construction 24).
Remark 3. Before ending this section, it is worth discussing another special case of the left adjoint splitting, which has a similar flavour to Voevodsky's universe model: the local universe model construction of Lumsdaine and Warren [39]. In this construction, they lift the requirement of having one fixed universe, and give conditions for which the strictification works with a weaker notion of stability of type formers. The local universe model is not applicable for our case, as we are interested in building CwFs where type formers are strictly stable.
3 Models of Type Theory
In this section, we review categories with families [15,22] and comprehension categories [33,34]. We also give intuition on the interpretation of type theory. For an introduction to fibrations, we refer the reader to the notes by Streicher [51].
3.1 Categories with Families
Categories with families (CwFs) are a class of models of type theory, where types and terms are interpreted as a presheaf over a category of contexts C, i.e. a functor . CwFs are strict models meaning that types form a set and substitution is modelled strictly functorially.
In HoTT, the requirement that types and terms form a set is especially noteworthy. As a consequence, one cannot, for example, define a CwF whose contexts are sets, and whose types in a context are functions , without assuming uniqueness of identity proofs. This is because, for a , the type of functions is not a set in general. Besides set models, this obstacle also applies to presheaf models, another important class of examples.
Definition 4 ([22], ). A category with families (CwF) consists of:
-
a category C with a terminal object;
-
a functor mapping each to the set family ; we denote by for each and appropriate and ;
-
a context comprehension operation which assigns to each and a tuple , satisfying the following universal property: for any and , there exists a unique such that and . We denote this unique by .
Intuition 5. Objects of the category can be seen as contexts and morphisms as substitutions. The terminal object in gives the empty context. The family can be thought of as a family of terms indexed by types in the context . Note that this is a family of sets, meaning that we have and . For each in , the two components of give substitution of types and terms as follows. For each , is the application of the first component of to , and for each , is the application of the second component of to . This means that substitution is strictly functional for both types and terms by definition. The context can be thought of as extended by the type , and as the weakening substitution. The term gives the variable term. The universal property can be understood as substitutions being built out of terms in the usual sense, i.e. substitutions are tuples .
The type former structures on a CwF are discussed at length by Castellan, Clairambault, and Dybjer [15]. For brevity, we only sketch these definitions here; and refer to [15] for full definitions. Our focus is on unit, -, -types, and we also consider democratic CwFs.
Definition 6 ([15, Definition 28], ). A -type structure on a CwF consists of, for each , and , a type , a function and a function such that and induce a bijection and , and are preserved under substitution.
Definition 7 ([15, Definition 26], ). A -type structure on a CwF consists of, for each and , a type , projection functions and
and a pairing function such that the projection and pairing functions induce a bijection, and , , and pair are preserved under substitution.
Definition 8 ( ). A (strong) unit type structure on a CwF consists of, for each , a type and a term such that is unique and for every in , we have .
N. Najmaei and N. Van der Weide
Definition 9 ([15, Definition 3], ). A CwF is democratic if for each , there exists a type and an isomorphism in .
3.2 Comprehension Categories
Comprehension categories are a class of pseudomodels of type theory where substitution of types is modelled using a fibration of types over contexts. In particular, comprehension categories allow for the interpretation of pseudofunctorial substitution in general. In HoTT, it is important to note that types in a comprehension category are generally not a set, whereas terms are, and substitution of terms in comprehension categories is strictly functional. In addition, the notion of comprehension category is more flexible than CwFs: it admits various examples in HoTT, like the set model. Below we present the usual definition of comprehension categories as given, for example, by Jacobs [33, Definition 4.1]. In type theory, however, one would phrase the definition slightly differently, formulating fibrations in terms of displayed categories [4, Definition 6.1]; our formalisation is based on the displayed categorical variant. Since we do not use any specifics of displayed categories in this paper, we disregard these aspects.
Definition 10 ([33, Definition 4.1]). A comprehension category consists of a category C with a terminal object , a fibration , and a functor preserving cartesian arrows, such that the following diagram commutes.

A comprehension category is split if p is split and full if is fully faithful.
Intuition 11. The objects of the category C can be thought of as contexts, and the terminal object of C as the empty context. For , the objects in the fiber over can be thought of as types in that context. Note that the objects of the categories C and T are not necessarily sets. This means that types in a comprehension category are not set-truncated. The reindexing functors given by the fibration model pseudofunctorial substitution (see Section 4). The functor models context extension in the following sense. For each , we think of as the projection . Terms of the type theory are interpreted as sections of such projections; hence, terms of a given type form a set as the morphisms in C form a set. The preservation of cartesian morphisms under makes the interpretation of substitution of terms possible (see Notation 13).
Remark 12. The original definition of a comprehension category does not require C to have terminals, i.e. empty context. Since our universes (see Section 4) use the empty context to yield a type in every context, we add this assumption here.
Before continuing, we set some notation for comprehension categories aligned with how type-theoretical constructs are interpreted in comprehension categories [33,43]. Note that Item 5 is less used in the literature.
Notation 13. We introduce the following notation.
-
We use to denote and to denote , for .
-
We use to denote the sections of for .
-
We use to denote the reindexing of along in .
-
We use to denote the morphism given by the universal property of the following pullback square given by preserving cartesian morphisms:

for a section of , and .
- We use to denote for each in and , which is itself in . This notation is inspired by the literature on interpreting coercive subtyping as vertical morphisms in [18,43]. Under this view, given a coercion witness , one can coerce a term of type to a term of type .
For - and -types, we use the definitions by Lumsdaine and Warren [39]; these correspond to their pseudo stable - and -types structures. For brevity, we give informal definitions here and refer the reader to [39] for full definitions. In the following definitions, let be a comprehension category.
Definition 14 ([39, Definitions 3.4.2.1, 3.4.2.8], ). Given , and , a -type structure consists of an object , a morphism such that , and a function giving for each section of , a section of such that and establish a bijection, and , and are preserved under substitution.
Definition 15 ([39, Definition 3.4.4.1], ). Given , and , (strong) -type structure consists of an object and an isomorphism with inverse such that , and and are preserved under substitution.
Definition 16 (▶). Let . (strong) unit type structure in context consists of a type and a unique term , i.e. we have for every term , such that is stable under substitution, i.e. we have in for each in .
Remark 17. Unlike for - and -types, our definition for the unit differs from that of Lumsdaine and Warren [39]. They define unit types via an elimination and a computation rule, whereas we use strong unit types with a unique term. Uniqueness of this term is needed for having an empty (terminal) context in the resulting CwF of Construction 24. Our unit structure induces theirs.
N. Najmaei and N. Van der Weide
4 Universes in Comprehension Categories
The main ingredient of the universe model construction is a universe that contains the unit type and is closed under -types. We set up this needed machinery by defining universes of comprehension categories and their closure properties. We also define when a universe contains -types, so that we can reason about -types in the resulting model of the construction. We use the definition of a universe in a comprehension category given by Van der Weide [58, Definition 9.13]. A similar definition for categories with families can be found in Angiuli and Gratzer's book [10, Structure 6.4.17].
In this section, let be a comprehension category.
Definition 18 ([58, Definition 9.13], ☎). A universe structure on consists of:
-
an object , which gives rise to in each where is the terminal morphism;
-
for each , a function ;
-
for each and , an isomorphism stating that reindexing commutes with , where is the isomorphism given by the universal property of the terminal object [];
such that the universe is coherent under substitution as stated in Appendix A.
One could equivalently define el as a type in context [].U and obtain the function in Item 2 by reindexing along the canonical morphism .U. We choose Definition 18, as it is closer to the type theoretic presentation of universes.
Notation 19. For in , we denote by the isomorphism from Item 3 of Definition 18.
We are now ready to define the closure properties of the universe under type formers. We define what it means for a universe to be closed under -, - and unit types. Let us first give an intuition of what these closure properties should look like. For -types, for example, we say that whenever we have terms and of type , their -type also lies in . Specifically, for each with depending on , we have in . These -codes should also be preserved under substitution. Additionally, we want to have an isomorphism , also stable under substitution. Similar closedness definitions are given by Van der Weide [58] for categories with finite limits.
For brevity, we state the coherences of Definitions 20 and 21 in Appendix A.
Definition 20 (▶). Let support -types. A universe is said to be closed under -types if for each , and , we have a term and an isomorphism , where is the -type in the comprehension category, such that reindexing commutes with -codes, i.e. for each in , we have
and is coherent under reindexing as stated in Appendix A.
We define closure under -types analogously as follows.
Definition 21 (✎). Let support -types. A universe is said to be closed under -types if for each , and , we have a term and an isomorphism , where is the -type in the comprehension category, such that reindexing commutes with -codes, i.e. for each in , we have
and is coherent under reindexing as stated in Appendix A.
Closure for unit types is similar to the closure for - and -Types, but preservations under substitution are derivable in this case.
Definition 22 (✎). Let support unit types. A universe is said to be closed under unit types if we have a term , which induces a term for each , and an isomorphism , where is the unit in the comprehension category.
Proposition 23 (✎ and ✎). The unit codes defined in Definition 22 are stable under substitution and has a unique term.
Proof. It follows from uniqueness of tt.
5 The Universe Model Construction
In this section, we present our universe model construction, inspired by that of Voevodsky [54]: we construct a CwF from a comprehension category with a universe closed under unit and -types. In short, being closed under unit ensures having an empty context in the resulting CwF and being closed under gives context extension. We then show that the resulting CwF is democratic and the construction preserves type formers. In particular, the resulting CwF comes with - and unit types using the closedness properties of the universe under these type formers. We also show that if the universe is closed under -types, the resulting CwF has -types that mimic the -types structure of the universe.
In the rest of this section, let be a comprehension category with a universe closed under unit and -types.
Construction 24 (✎). We construct a CwF UnivMod(U) as follows:
N. Najmaei and N. Van der Weide
– the category of contexts has as objects, and morphisms are context morphisms of the form in the comprehension category;
– the terminal context of the CwF is then given by , the code of the unit in the universe;
– types in a CwF-context are in the comprehension category;
– terms of a CwF-type in a CwF-context are in the comprehension category;
– substitution of both types and terms in the CwF is given by substitution of terms in the comprehension category in the following sense: for a CwF-type and a context morphism , the resulting substituted CwF-type is given by , where denotes the substitution of terms in the comprehension category as defined in Notation 13 and is the isomorphism explained in Notation 19. Similarly, for a CwF-term , the substituted term is ;
– context extension follows from the universe being closed under -types in the following sense. Given a CwF-context and a CwF-type , the extended context is given by . For projection and the term , let us first introduce a morphism we call defined as follows:
The projection is given by and is defined as in the comprehension category, where is the variable term of the comprehension category, and is the coherence isomorphism .
Theorem 25 (📐). Construction 24 yields a CwF UnivMod(U).
Proof sketch. We need to show the uniqueness of the extended substitution , which is defined as using the analogous operation in comprehension categories. Uniqueness follows from the universal property of the pullback from Item 4 of Notation 13 and the coherence of U (see Definition 39 in Appendix A).
Recall that our goal was to construct CwF models of type theory in HoTT without assuming types are set-truncated. To see why Construction 24 achieves this, we check two things: that UnivMod(U) is a CwF and that our starting model has no set-truncation assumption on its types. For the first, we check two things: that types in UnivMod(U) form an hSet and that UnivMod(U) is a strict model. Both follow from types of UnivMod(U) being defined as certain terms of the comprehension category, which, as explained in Section 3, are defined as certain morphisms in the base category and form an hSet. For the second point, comprehension categories are pseudomodels with no assumption on set-truncation of types, and are general enough to admit a variety of examples such as set models, presheaf models and assembly models.
Remark 26. When interpreting type theory in comprehension categories, one usually assumes that the comprehension category is full. We do not make this assumption meaning that Construction 24 works for general comprehension categories, which are used to model more expressive type theories [2,18,43].
Before proceeding, we point out the similarity between this construction and the externalisation of internal categories. Specifically, every internal category in a finite complete category C gives rise to a split (Grothendieck) fibration over C. Since universes give rise to full internal categories, they give rise to a CwF via externalisation. However, note that the universe model construction is formulated in more generality: rather than only considering finitely complete categories, we consider all comprehension categories with a universe.
The interpretation of higher-order logic in a topos [37] uses similar ideas as Construction 24. Every topos has a subobject classifier, giving a universe of propositions [41], that contains the unit type (i.e., the truth proposition), and is closed under -types (i.e., existential quantification). Propositions are interpreted as terms of the subobject classifier rather than as monomorphisms.
Type Formers and Democracy We now show that UnivMod(U) is democratic and supports unit and -types, and if U is closed under -types, it also supports -types. In the remainder of this section, let be a comprehension category with a universe (U, el) closed under unit and -types. We use the shorthands and to denote the substitution of types and terms in UnivMod(U) as explained in Construction 24, and , and to denote unit, and in UnivMod(U).
Theorem 27 (📐). UnivMod(U) is democratic.
Proof sketch (Proof in Appendix B). For each context , we have a canonical type in the empty CwF-context defined as follows in :

The universal property of the pullback gives the required isomorphism.
Remark 28. In Voevodsky’s original construction, a contextual category is built from a universe category without restricting the category of contexts. We restrict
N. Najmaei and N. Van der Weide
it to obtain democratic CwFs (Theorem 27), as democratic CwFs with extensional identity types and -types are equivalent to categories with finite limits and that equivalence can be extended to various notions of categories [16,58]. For axiomatic identity types, similar assumptions yield analogous equivalences [44]. Without this restriction, the universe need not be closed under unit and -types.
The type former structures of UnivMod(U) closely mimics the codes of the type formers of the comprehension category in the universe, as defined in Definitions 20 to 22. We also have to show that the resulting type former structure is (strictly) stable under substitution. One of the obstacles in the following proofs, is the difference between how the type former structure is defined in a CwF compared to a comprehension category. Specifically, terms in a comprehension category are defined as sections of the projection morphisms of the form , whereas terms in a CwF are a primitive notion. Another difference is that variable terms and extension of substitution are defined using the universal property of certain pullbacks in comprehension categories, whereas they are primitive in a CwF. In our formalisation, we first bridge this gap by deriving the type former structure of a CwF from one in which terms are presented as sections. This intermediate step makes it easier to define the type formers for UnivMod(U) from those of U. We do not explicate this translation here; for this we point the reader to our formalisation (see ).
Theorem 29 (☑). UnivMod(U) has unit types.
Proof sketch (Proof in Appendix B). Let be a context in UnivMod(U), i.e. . The unit type in UnivMod(U) is given by the unit code in the original model. The unique unit term in UnivMod(U) is given by the term coerced along .
Theorem 30 (☑). UnivMod(U) has -types.
Proof sketch (Proof in Appendix B). Let be a context in UnivMod(U). Suppose that we have types in context and in context .CwF in UnivMod(U). The type in UnivMod(U) is given by the following -code in U:
Pairing and projection are defined using Definition 20, and preservation under substitution is proved using standard lemmas about comprehension categories and the coherence of -codes given in Definition 40 in Appendix A.
Theorem 31 (☑). If U is closed under -types, UnivMod(U) has -types.
Proof sketch (Proof in Appendix B). The type in UnivMod(U) is given by the following -code in the original model
for a suitable , A and B. Application and are defined using Definition 21, and preservation under substitution is proved using standard lemmas about comprehension categories and the coherence of -codes given in Definition 40 in Appendix A.
6 Examples
Finally, we instantiate Construction 24 to obtain strict models of type theory within HoTT. We do so by equipping various models of type theory with a universe; specifically, in the categories of sets, assemblies, and presheaves. We see that our construction generalizes established strict models in the literature [7,28], and also give new examples, namely assembly and presheaf models.
6.1 Universes in Sets
To construct a universe in the category of sets, we need to give a set U together with a map that assigns to terms sets . We can deduce closure conditions of the resulting universe, which we denote by , from closure conditions on U. For instance, if we have such that is isomorphic to the unit type, then contains the unit type. In addition, is closed under -types if for all and , we have such that and are isomorphic. In our formalisation, we use this general notion of universe , and we show that it gives rise to a universe in the comprehension category of sets that is closed under the same type formers as U. This means that we can apply Construction 24 to this general notion of universe to obtain strict models. In the remainder, we look at this construction for two concrete instantiations: iterative sets [28] and induction-recursion [23].
Iterative sets are based on the work by Aczel on relating constructive set theory and type theory [1], and later they were used by Gratzer, Gylterud, Mörtberg, and Stenholm to construct the set model of type theory as a category with families [28]. We do not recall the definition here, but we recall the main properties that we use. Specifically, we have a type V of iterative sets, which is a set itself. In addition, every X : V gives rise to a set , which allows us to conclude that V is a Tarski-style universe of sets. Iterative sets are closed under -types and -types, and the unit type is an iterative set. Hence, we get a universe V, which allows us to apply Construction 24.
Example 32. We have a CwF UnivMod(V) of iterative sets. Contexts are maps from the unit type to V, and hence, the same as iterative sets. Given an iterative set , types in context are the same as maps . Given an iterative set and a type , terms of type are maps that assign to an element . This CwF is equivalent to the one described by Gratzer, Gylterud, Mörtberg, and Stenholm [28].
Another way to obtain a universe of sets is via induction-recursion [23,24], which Altenkirch and Kaposi use to define the standard model [7]. We do not recall the definition of universes as inductive-recursive types [23,24,45].
Example 33. Every inductive-recursive universe induces a CwF UnivMod( ). Contexts in UnivMod( ) are members of , types in context are functions , and terms of type in context are functions that assign to an inhabitant of . This model is equivalent to the one given by Altenkirch and Kaposi [7].
N. Najmaei and N. Van der Weide
6.2 Universes for Assemblies
The next example comes from realizability models of type theory [40,46,50]. These models come with an impredicative universe of propositions and an impredicative universe of types. Grothendieck universes in the metatheory can be used to construct predicative universes [40].
To obtain a universe in the realizability model, we use Luo’s construction [40], who constructs a universe of assemblies from a universe U of sets. The carrier of is the type of all assemblies whose carrier lies in U. For instance, the universe V of iterative sets gives rise to a universe of assemblies, and we also obtain a universe from any inductive-recursive universe U. We can apply Construction 24 to both and .
Example 34. Construction 24 gives us a CwF UnivMod( ). Contexts in this CwF are equivalent to assemblies whose carrier is an iterative set, and types in context are the same as families of assemblies for such that each is an iterative set. Finally, given an assembly and a family of assemblies over , terms of type in context are maps that assign to an element . The CwF UnivMod( ) is similar.
Remark 35. Given a universe U of sets that is closed under -types, we want to show that its lift to assemblies is closed under -types of assemblies as well. However, this requires showing that the isomorphism between and , is tracked by an element of the PCA. While we need to assume this for general universes, it holds for the universes of iterative sets and inductive-recursive universes. This is because in both cases, the given isomorphism is the identity function, which can always be tracked. The same holds for other type formers, like -types. In the formalisation, we only treat general universes, assuming that the resulting universe of assemblies is closed under -types ( ).
Remark 36. Since assembly models come with a variety of universes, Construction 24 can be applied to them in different ways. In Example 34, we chose predicative universes, but one could use the impredicative universe PER of partial equivalence relations instead. Applying Construction 24 to PER, does not give a CwF with an impredicative universe of types, as PER is not itself a PER.
6.3 Universes for Presheaves
Finally, we instantiate Construction 24 to presheaf models of type theory. From a universe U of sets, one can construct a universe of presheaves [12,31,47]. Specifically, we define a presheaf which maps objects to the type of functors . We indeed have a set of such functors, because U is a set. To construct , we note that from a presheaf and a natural transformation we get a functor , which maps and to . Both inductive-recursive universes and the universe of iterative sets induce a universe in presheaves.
If U contains the unit type and is closed under -types, then so is . We can thus use Construction 24 to obtain a CwF of presheaves. However, to show that is closed under -types, we need to assume that U is closed under -types and that the types of objects and of morphisms in C lie in U.
Example 37. By applying Construction 24 to the universe of the presheaf model, we get a CwF UnivMod(U_Psh) such that contexts are presheaves and types in context are presheaves . Terms and substitutions are the same as in the presheaf model.
7 Related Work
Strictification constructions are prevalent in the literature on the semantics of type theory, and the most commonly used are based on the right adjoint [30,51] and the left adjoint splitting constructions [39,26]. However, as we argued in Section 2, neither is suitable in HoTT if one studies categories whose objects do not form a set. We therefore considered a different construction.
Our construction is similar to Voevodsky's construction of C-systems from a universe category [54], whose key idea likewise is to restrict a model to the types in a universe. Compared to Voevodsky, we use a different starting point. While we start with a comprehension category equipped with a universe, the starting point of Voevodsky is a category C with a terminal object and a universe structure. Here, a universe structure consists of a morphism and a map that assigns to every a pullback along p. If we assume that C has finite limits, then one can directly construct a comprehension category with a universe from it. However, since Voevodsky does not assume that C has all pullbacks, he constructs a strict model of type theory as a C-system, where types are defined in a slightly different way compared to us. While we construct the collection of types in a single step and show that the resulting model is democratic (Remark 28), Voevodsky uses an inductive construction to prove contextuality. Voevodsky shows that the resulting C-system is closed under -types [55]. We likewise show that the construction preserves -types, and further show that the resulting model is closed under -types and unit types.
Larrea [38] gives an alternative presentation of Voevodsky's construction, more similar to ours, but with an important conceptual difference. To equip the resulting model with - and -types, Larrea presents different closure conditions than we do. We express closure conditions using the language of the comprehension category. For instance, for closure under -types, we say that we have a term and an isomorphism . Larrea expresses closure conditions with the internal language of the category of contexts, and thus requires this category to be locally Cartesian closed.
Hua and Xu [32] use a similar construction but for other purposes. Just like Voevodsky, they obtain models that are not necessarily democratic, whereas our construction has been modified to obtain democratic CwFs. There are also foundational differences between our work and that of Hua and Xu. Since we
N. Najmaei and N. Van der Weide
work in HoTT, we must show that the collection of types in the constructed model forms a set. Hua and Xu do not have to prove anything like that, since they use Lean's type theory as foundation. In addition, they consider -clans, while we consider the more general notion of comprehension categories. Compared to -clans, comprehension categories come with a notion of morphism between types, which is used to interpret subtyping [18,43]. Since Hua and Xu use -clans, types in their models are represented by some property on the morphisms, which states that there is some term in the universe that represents that type [32, Definition 5.5]. In our model, types are interpreted more directly, as terms of the universe.
Our construction generalises the iterative sets model [28] and the model based on inductive-recursive universes [7], as explained in Section 6. Extension of the iterative sets model to presheaf models have been considered by Grubmüller, Souche, and Mörtberg [48,29], which is the model we considered in Section 6.3. An interesting aspect of their work lies in the used formalisation techniques. They noted the necessity of using an abstract notion of universe to make a complete formalisation feasible. Our work demonstrates that this technique is widely applicable, and we describe the general case.
An alternative approach to models of type theory in HoTT is based on the groupoid syntax of type theory described by Altenkirch, Kaposi, and Xie [9]. They define the syntax of type theory as a 1-truncated higher inductive-inductive type rather than as a set-truncated type and prove that their syntax is a set. Models of the 1-truncated syntax are known as groupoid categories with families (GCwF), and one can show that sets form a GCwF. Their approach presents an alternative way to obtain models of type theory in HoTT. However, the cost is that one needs to identify suitable coherences and prove a coherence theorem. Proving such a theorem can be challenging if there are, for instance, equations between types. These problems do not occur when using the set-truncated syntax. Damato used the notion of GCwF to present the container model [20,57] and described how to get a strict version of the container model using induction-recursion. We conjecture that the strict container model can be obtained as an instance of our construction.
8 Conclusion
In this paper, we carried out a universe model construction and showed that it is a general construction for strict models in HoTT. More specifically, we started from the general notion of a comprehension category with a universe and constructed a CwF by restricting to the types in the universe. We showed that this construction preserves several type formers, unit, - and -types, and that the resulting CwF is democratic. This construction serves as a general technique in HoTT, allowing us to obtain strict models such as set models, presheaf models and assembly models. In particular, it generalises two existing set models of type theory, one based on a universe of iterative sets [28] and the other based on any inductive-recursive universe [7]. As for future work, we aim to study preservation of more type formers under Construction 24, e.g. identity types.
Acknowledgements The authors would like to thank Anders Mörtberg for discussions regarding models of iterative sets and Ambroise Lafont for useful discussions. The authors would also like to thank Joseph Hua and Yiming Xu for discussions about the relation between our work. This research was supported by the NWO project “The Power of Equality” OCENW.M20.380, which is financed by the Dutch Research Council (NWO). This research was funded by the European Union (ERC, HOTT, 101170308). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them. This work received government funding managed by the French National Research Agency under the France 2030 program, reference “ANR-22-EXES-0013”.
References
-
Aczel, P.: The type theoretic interpretation of constructive set theory. In: Logic Colloquium '77 (Proc. Conf., Wrocław, 1977), Stud. Logic Found. Math., vol. 96, pp. 55–66. North-Holland, Amsterdam-New York (1978)
-
Adjedj, A., Lennon-Bertrand, M., Benjamin, T., Maillard, K.: AdapTT: Functionality for Dependent Type Casts (POPL) (2026). https://doi.org/10.1145/3776664
-
Agda Developers: Agda (2025), https://agda.readthedocs.io/
-
Ahrens, B., Lumsdaine, P.L.: Displayed categories. Log. Methods Comput. Sci. 15(1) (2019). https://doi.org/10.23638/LMCS-15(1:20)2019, https://doi.org/10.23638/LMCS-15(1:20)2019
-
Ahrens, B., Lumsdaine, P.L., North, P.R.: Comparing semantic frameworks for dependently-sorted algebraic theories. In: Kiselyov, O. (ed.) Programming Languages and Systems - 22nd Asian Symposium, APLAS 2024, Kyoto, Japan, October 22-24, 2024, Proceedings. Lecture Notes in Computer Science, vol. 15194, pp. 3–22. Springer (2024). https://doi.org/10.1007/978-981-97-8943-6_1, https://doi.org/10.1007/978-981-97-8943-6_1
-
Ahrens, B., North, P., Shulman, M., Tsementzis, D.: The Univalence Principle. Memoirs of the American Mathematical Society 305(1541), vii+176 (2025). https://doi.org/10.1090/memo/1541
-
Altenkirch, T., Kaposi, A.: Type theory in type theory using quotient inductive types. In: Bodík, R., Majumdar, R. (eds.) Proceedings of the 43rd Annual ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages, POPL 2016, St. Petersburg, FL, USA, January 20 - 22, 2016. pp. 18–29. ACM (2016). https://doi.org/10.1145/2837614.2837638
-
Altenkirch, T., Kaposi, A.: Normalisation by evaluation for type theory, in type theory. Log. Methods Comput. Sci. 13(4) (2017). https://doi.org/10.23638/LMCS-13(4:1)2017, https://doi.org/10.23638/LMCS-13(4:1)2017
-
Altenkirch, T., Kaposi, A., Xie, S.: The groupoid-syntax of type theory is a set. In: Guerrini, S., König, B. (eds.) 34th EACSL Annual Conference on Computer Science Logic (CSL 2026). Leibniz International Proceedings in Informatics (Lipics), vol. 363, pp. 40:1–40:23. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2026). https://doi.org/10.4230/LIPIcs.CSL.2026.40
-
Angiuli, C., Gratzer, D.: Principles of Dependent Type Theory (2025), https://www.danielgratzer.com/papers/type-theory-book.pdf, accessed: 2025-01-14
N. Najmaei and N. Van der Weide
-
Awodey, S.: Natural models of homotopy type theory. Mathematical Structures in Computer Science 28(2), 241–286 (2018). https://doi.org/10.1017/S0960129516000268
-
Awodey, S.: On Hofmann–Streicher universes. Mathematical Structures in Computer Science pp. 1–17 (2024). https://doi.org/10.1017/S0960129524000203
-
Awodey, S., Warren, M.A.: Homotopy theoretic models of identity types. Mathematical Proceedings of the Cambridge Philosophical Society 146(1), 45–55 (2009). https://doi.org/10.1017/S0305004108001783
-
Cartmell, J.: Generalised Algebraic Theories and Contextual Categories. Ph.D. thesis, Oxford University, UK (1978)
-
Castellan, S., Clairambault, P., Dybjer, P.: Categories with families: Untyped, simply typed, and dependently typed. In: Joachim Lambek: The Interplay of Mathematics, Logic, and Linguistics, Outstanding Contributions to Logic, vol. 20, pp. 135–180. Springer, Cham (2021). https://doi.org/10.1007/978-3-030-66545-6_5
-
Clairambault, P., Dybjer, P.: The biequivalence of locally cartesian closed categories and Martin-Löf type theories. Mathematical Structures in Computer Science 24(6) (2014). https://doi.org/10.1017/S0960129513000881
-
Coquand, T.: Canonicity and normalization for dependent type theory. Theoretical Computer Science 777, 184–191 (2019). https://doi.org/10.1016/J.TCS.2019.01.015
-
Coraglia, G., Emmenegger, J.: Categorical Models of Subtyping. In: Kesner, D., Reyes, E.H., van den Berg, B. (eds.) 29th International Conference on Types for Proofs and Programs (TYPES 2023). Leibniz International Proceedings in Informatics (LIPIcs), vol. 303, pp. 3:1–3:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2024). https://doi.org/10.4230/LIPIcs.TYPES.2023.3, https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.TYPES.2023.3
-
Curien, P.L., Garner, R., Hofmann, M.: Revisiting the categorical interpretation of dependent type theory. Theoretical Computer Science 546, 99–119 (2014). https://doi.org/https://doi.org/10.1016/j.tcs.2014.03.003, https://www.sciencedirect.com/science/article/pii/S0304397514001789, models of Interaction: Essays in Honour of Glynn Winskel
-
Damato, S.: Containers, Cubes, and Coherences: Containers in Homotopy Type Theory. Ph.D. thesis, University of Nottingham (2025)
-
de Moura, L.M., Kong, S., Avigad, J., van Doorn, F., von Raumer, J.: The Lean theorem prover (system description). In: Felty, A.P., Middeldorp, A. (eds.) Automated Deduction - CADE-25 - 25th International Conference on Automated Deduction, Berlin, Germany, August 1-7, 2015, Proceedings. Lecture Notes in Computer Science, vol. 9195, pp. 378–388. Springer (2015). https://doi.org/10.1007/978-3-319-21401-6_26
-
Dybjer, P.: Internal type theory. In: Berardi, S., Coppo, M. (eds.) Types for Proofs and Programs, International Workshop TYPES'95, Torino, Italy, June 5-8, 1995, Selected Papers. Lecture Notes in Computer Science, vol. 1158, pp. 120–134. Springer (1996). https://doi.org/10.1007/3-540-61780-9_66, https://doi.org/10.1007/3-540-61780-9_66
-
Dybjer, P.: A general formulation of simultaneous inductive-recursive definitions in type theory. The Journal of Symbolic Logic 65(2), 525–549 (2000). https://doi.org/10.2307/2586554
-
Dybjer, P., Setzer, A.: A finite axiomatization of inductive-recursive definitions. In: Girard, J.Y. (ed.) Typed Lambda Calculi and Applications, 4th International Conference, TLCA'99, l'aquila, Italy, April 7-9, 1999, Proceedings. Lecture Notes in Computer Science, vol. 1581, pp. 129–146. Springer (1999). https://doi.org/10.1007/3-540-48959-2_11
-
Gambino, N., Larrea, M.F.: Models of Martin-Löf type theory from algebraic weak factorisation systems. The Journal of Symbolic Logic 88(1), 242–289 (2023). https://doi.org/10.1017/jsl.2021.39
-
Giraud, J.: Cohomologie non abélienne. Comptes Rendus de l'Académie des Sciences de Paris 260, 2666–2668 (1965)
-
Gratzer, D.: Normalization for multimodal type theory. In: Baier, C., Fisman, D. (eds.) LICS '22: 37th Annual ACM/IEEE Symposium on Logic in Computer Science, Haifa, Israel, August 2 - 5, 2022. pp. 2:1–2:13. ACM (2022). https://doi.org/10.1145/3531130.3532398, https://doi.org/10.1145/3531130.3532398
-
Gratzer, D., Gylterud, H.R., Mörtberg, A., Stenholm, E.: The category of iterative sets in homotopy type theory and univalent foundations. Mathematical Structures in Computer Science 34(9), 945–970 (2024). https://doi.org/10.1017/S0960129524000288
-
Grubmüller, F.L.: The Category of Iterative Sets in Cubical Agda. Master's thesis, Stockholm University (2026)
-
Hofmann, M.: On the interpretation of type theory in locally cartesian closed categories. In: Pacholski, L., Tiuryn, J. (eds.) Computer Science Logic, 8th International Workshop, CSL '94, Kazimierz, Poland, September 25-30, 1994, Selected Papers. Lecture Notes in Computer Science, vol. 933, pp. 427–441. Springer (1994). https://doi.org/10.1007/BFB0022273
-
Hofmann, M., Streicher, T.: Lifting Grothendieck universes. Unpublished note 1(1.2), 4 (1997)
-
Hua, J., Xu, Y.: Polynomial functors in -clans for the semantics of type theory (2026), https://arxiv.org/abs/2602.05689
-
Jacobs, B.: Comprehension categories and the semantics of type dependency. Theor. Comput. Sci. 107(2), 169–207 (1993). https://doi.org/10.1016/0304-3975(93)90169-T, https://doi.org/10.1016/0304-3975(93)90169-T
-
Jacobs, B.: Categorical Logic and Type Theory, Studies in logic and the foundations of mathematics, vol. 141. Elsevier (1998)
-
Kaposi, A., Kovács, A., Altenkirch, T.: Constructing quotient inductive-inductive types. Proc. ACM Program. Lang. 3(POPL) (Jan 2019). https://doi.org/10.1145/3290315, https://doi.org/10.1145/3290315
-
Kapulkin, K., Lumsdaine, P.L.: The simplicial model of univalent foundations (after voevodsky). Journal of the European Mathematical Society 23(6), 2071–2126 (Mar 2021). https://doi.org/10.4171/jems/1050, http://dx.doi.org/10.4171/JEMS/1050
-
Lambek, J., Scott, P.J.: Introduction to Higher Order Categorical Logic, Cambridge Studies in Advanced Mathematics, vol. 7. Cambridge University Press, Cambridge (1988)
-
Larrea, M.F.: Models of Dependent Type Theory from Algebraic Weak Factorisation Systems. Ph.D. thesis, University of Leeds (2018)
-
Lumsdaine, P.L., Warren, M.A.: The local universes model: An overlooked coherence construction for dependent type theories. ACM Trans. Comput. Logic 16(3) (Jul 2015). https://doi.org/10.1145/2754931, https://doi.org/10.1145/2754931
N. Najmaei and N. Van der Weide
-
Luo, Z.: An Extended Calculus of Constructions. Ph.D. thesis, University of Edinburgh (1990)
-
Maietti, M.E.: Modular correspondence between dependent type theories and categories including pretopoi and topoi. Mathematical Structures in Computer Science 15(6), 1089–1149 (2005). https://doi.org/10.1017/S0960129505004962
-
Martin-Löf, P.: Intuitionistic type theory, Studies in proof theory, vol. 1. Bibliopolis (1984)
-
Najmaei, N., van der Weide, N., Ahrens, B., North, P.R.: From semantics to syntax: A type theory for comprehension categories. Proc. ACM Program. Lang. 10(POPL) (Jan 2026). https://doi.org/10.1145/3776725, https://doi.org/10.1145/3776725
-
Otten, D., Spadetto, M.: The biequivalence of path categories and axiomatic Martin-Löf type theories. In: Guerrini, S., König, B. (eds.) 34th EACSL Annual Conference on Computer Science Logic (CSL 2026). Leibniz International Proceedings in Informatics (Lipics), vol. 363, pp. 38:1–38:23. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany (2026). https://doi.org/10.4230/LIPIcs.CSL.2026.38
-
Palmgren, E.: On universes in type theory. In: Twenty-Five Years of Constructive Type Theory (Venice, 1995), Oxford Logic Guides, vol. 36, pp. 191–204. Oxford Univ. Press, New York (1998)
-
Reus, B.: Realizability models for type theories. In: Birkedal, L., van Oosten, J., Rosolini, G., Scott, D.S. (eds.) Tutorial Workshop on Realizability Semantics and Applications, Associated to FLoC'99, the 1999 Federated Logic Conference, Trento, Italy, June 30 - July 1, 1999. Electronic Notes in Theoretical Computer Science, vol. 23, pp. 128–158. Elsevier (1999). https://doi.org/10.1016/S1571-0661(04)00108-2
-
Slattery, A., Sterling, J.: Hofmann-Streicher lifting of fibred categories. Logical Methods in Computer Science Volume 22, Issue 2(30) (Jun 2026). https://doi.org/10.46298/lmcs-22(2:30)2026
-
Souche, É.: The Presheaf Model of Type Theory in Type Theory. M1 Internship, Stockholm University (2026)
-
Speight, S., van der Weide, N.: Impredicativity in linear dependent type theory. CoRR abs/2602.08846 (2026). https://doi.org/10.48550/ARXIV.2602.08846
-
Streicher, T.: Semantics of Type Theory - Correctness, Completeness and Independence Results. Progress in Theoretical Computer Science, Birkhäuser (1991)
-
Streicher, T.: Fibered categories à la Jean Bénabou (2018), https://arxiv.org/abs/1801.02927
-
Taylor, P.: Recursive domains, indexed category theory and polymorphism. Ph.D. thesis, University of Cambridge (1987), https://ncatlab.org/nlab/files/Taylor-IndexedCategoryTheory.pdf
-
The Rocq Development Team: The Rocq Prover. Zenodo (Apr 2025). https://doi.org/10.5281/zenodo.15149629
-
Voevodsky, V.: A C-system defined by a universe category (2015), https://arxiv.org/abs/1409.7925
-
Voevodsky, V.: The -structures on the C-systems defined by universe categories. Theory and Applications of Categories 32, Paper No. 4, 113–121 (2017)
-
Voevodsky, V., Ahrens, B., Grayson, D., et al.: Unimath — a computer-checked library of univalent mathematics. available at http://unimath.org. https://doi.org/10.5281/zenodo.10849216, https://github.com/UniMath/UniMath
-
von Glehn, T.: Polynomials and Models of Type Theory. Ph.D. thesis, University of Cambridge (2014)
-
Weide, N.v.d.: The internal languages of univalent categories (2025), https://arxiv.org/abs/2411.06636
A Full Definitions of Universe and Closure Properties
In this appendix, we give the complete definitions of a universe for comprehension categories and the closure properties of the universe for - and -types discussed in Section 4, including the coherences.
Let us first define a useful notation.
Notation 38. In a comprehension category with a universe as defined in Definition 18, let be an equality of terms. We denote by the isomorphism given by path induction.
Definition 39 ([58, Definition 9.13]). Let be a comprehension category. A universe for consists of:
-
An object , which gives rise to in each where is the terminal morphism;
-
For each , a function ;
-
For each and , an isomorphism stating that reindexing commutes with , where is the isomorphism given by the universal property of the terminal object [];
such that the following two diagrams commute:
where and are the usual coherence isomorphism for reindexing along identity and composition in comprehension categories.
In the next two definitions, we use the following two notations as shorthand:
for in , and .
N. Najmaei and N. Van der Weide
Definition 40. Let be a comprehension category supporting -types. A universe is said to be closed under -types if for each , , and , we have:
-
a term
-
an isomorphism , where is the -type in the comprehension category;
such that
- reindexing commutes with -codes, i.e. for each in , we have
where is defined in Notation 19, and as and bsa are the notations defined above;
- the isomorphism is coherent under reindexing, i.e. the following diagram commutes:
where is the pair-proj isomorphism of the -types in a comprehension category defined in Definition 15.
We define closure under -types analogously as follows.
Definition 41. Let be a comprehension category supporting -types. A universe is said to be closed under -types if for each , and , we have:
-
a term
-
an isomorphism , where is the -type in the comprehension category;
such that
- reindexing commutes with -codes, i.e. for each in , we have
where is defined in Notation 19, and as and bsa are the notations defined above;
- the isomorphism is coherent under reindexing, i.e. the following diagram commutes:
where is the usual lambda operation of comprehension categories defined in Definition 14.
B Proofs of Section 5
Proof (Proof of Theorem 27). For each context , we have a canonical type in the empty CwF-context defined as follows in :

We have to show , which corresponds to in . One can easily show that for this, it suffices to give an isomorphism of the form in , which follows from Proposition 23.
Proof (Proof of Theorem 29). Let be a context in UnivMod(U), i.e. . The unit type in UnivMod(U) is given by the unit code in the original model. The unique unit term in UnivMod(U) is given by the term coerced along , where is the unique term of unit in the comprehension category and is the one defined in Definition 22. For the preservation under substitution, we have to show that for any . This follows directly from being a term of type .
N. Najmaei and N. Van der Weide
Proof (Proof of Theorem 30). Let be a context in UnivMod(U). Suppose that we have types in context and in context .CwF in UnivMod(U). The type in UnivMod(U) is given by the following -code in the original model
The pair map . is of the following form in the comprehension category:
This map is defined as a composition of instances of the isomorphism , which pushes an el into the arguments of , and standard isomorphisms about in comprehension categories. The projection map is defined similarly, as a composite of different instances of the same isomorphisms, but in the opposite direction. It is then straightforward to prove the beta and eta rules.
Now we have to show that this -type structure is preserved under substitution, i.e. for each , we have and , where by we mean the morphism in given by the following composition in :
composed with the obvious instances of pair, proj and ; and similarly for . The two goals are proved using standard lemmas about comprehension categories and the coherence of -codes given in Definition 40 in Appendix A. For the complete proof we refer the reader to our formalisation (📐 and 📐).
Proof (Proof of Theorem 31). The type in UnivMod(U) is defined analogously to the -type, i.e. given by the following -code in the original model
for a suitable , and . For a CwF-term of type , is a CwF-term of and is given by the following term of in :
where we don’t include the annotations of the isomorphisms and for readability. Application in UnivMod(U) for a CwF-term of is defined similarly in terms of the application in as follows:
where and are the usual coherence isomorphisms corresponding to substitution along identity and composition in a comprehension category. For the complete definitions of and app we refer the reader to our formalisation. It is straightforward to prove the beta and eta rules using standard lemmas about the isomorphisms involved.
For the preservation of under substitution, we have to show and
for each and , where is defined the same as in Theorem 30. The goals are proved using standard lemmas about comprehension categories and the coherence of -codes given in Definition 41 in Appendix A. For the complete proof we refer the reader to our formalisation (📐 and 📐).