arXiv:2610.28370cs.LOOct 2026

Manuscript Offprint

arXiv:2610.28370

A General Construction of Strict Models in HoTT

Niyousha Najmaei, Niels van der Weide

Niyousha Najmaei 1^{1} and Niels van der Weide 2^{2}

1^{1} LIX, École Polytechnique, Inria, Palaiseau, France

najmaei@lix.polytechnique.fr

2^{2} Eötvös Loránd University, Budapest, Hungary

vanderweide@inf.elte.hu

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 Σ\Sigma-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 UFU_F in each context Γ\Gamma and a function el\text{el} mapping each term aa of type UFU_F to a type el(a)\text{el}(a) in context Γ\Gamma. 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 Γ\Gamma to be terms of UΓU_{\Gamma};

– for a CwF-type A, we take the CwF-terms of A to be terms of el(A)\text{el}(A).

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 Σ\Sigma-types, supports Π\Pi-types if the starting universe is closed under Π\Pi-types, and is democratic.

Contributions The contributions of this paper can be summarised as follows.

  1. 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);

  2. We show that Σ\Sigma-, unit, and Π\Pi-types are preserved under this construction (Theorems 29 to 31) and the resulting CwFs are democratic (Theorem 27);

  3. We show that this construction generalises two existing examples of set models of type theory in HoTT (Examples 32 and 33);

  4. 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 Σ\Sigma-, Π\Pi- 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.

References (59)