The Biequivalence of Path Categories and Axiomatic Martin-Löf Type Theories
Abstract
The semantics of extensional type theory has an elegant categorical description: models of extensional -types, -types, and -types are biequivalent to finitely complete categories, while adding -types yields locally Cartesian closed categories. We establish parallel results for axiomatic type theory, which includes systems like cubical type theory, where the computation rule of the -types only holds as a propositional axiom instead of a definitional reduction. In particular, we prove that models of axiomatic -types, and standard - and -types are biequivalent to certain path categories, while adding axiomatic -types yields dependent homotopy exponents.
This biequivalence simplifies axiomatic =-types, which are more intricate than extensional ones since they permit higher dimensional structure. Specifically, path categories use a primitive notion of equivalence instead of a direct reproduction of the syntactic elimination rules and computation axioms. We apply our correspondence to prove a coherence theorem: we show that these weak homotopical models can be turned into equivalent strict models of axiomatic type theory. In addition, we introduce a more modular notion, that of a display map path category, which only models axiomatic -types by default, while leaving room to add other axiomatic type formers such as -, -, and -types.
Keywords and phrases:
Axiomatic type theory, cubical type theory, propositional equality, biequivalence, display map categories, path categories, homotopy theory, coherenceFunding:
Daniël Otten: This publication is part of the project “The Power of Equality” (with project number OCENW.M20.380) of the research programme Open Competition Science M 2 which is (partly) financed by the Dutch Research Council (NWO).Copyright and License:
2012 ACM Subject Classification:
Theory of computation Type theory ; Theory of computation Categorical semantics ; Mathematics of computing TopologyAcknowledgements:
We are thankful to Benno van den Berg, Rafaël Bocquet, Jacopo Emmenegger, Ambrus Kaposi, Marino Miculan, and Niels van der Weide for many helpful discussions and ideas.Editors:
Stefano Guerrini and Barbara KönigSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction and motivation
Dependent type theory, and most notably intensional type theory (ITT), has become a cornerstone of logic, with applications in proof assistants, programming languages, and the foundations of mathematics. Models of type theory form categories, and categorical formulations [15, 38, 29] provide a powerful tool to understand the behaviour of these systems. However, giving a satisfactory categorical formulation of dependent type theory is challenging. First of all, we want our requirements to be simple categorical properties instead of direct reproductions of the syntax; and secondly, categorical structure usually only satisfies stability conditions up to isomorphism instead of the strict equality imposed in the syntax. This means that it is significantly easier to produce weak models, which only satisfy stability up to equivalence. To deal with the second issue, strictification techniques [26, 5, 33, 12, 22, 31] have been developed to turn weakly stable structure into strictly stable structure. This paper focuses on the first issue: providing a categorical and homotopy theoretic presentation of the weak models of dependent type theory. We combine our results with existing techniques for the second issue to turn our weak models into (strict) models.
One difficulty in studying ITT is the fact that it has two notions of equality: propositional equality (=), which is an internal equality type, and definitional equality (), which is an external judgment. Distinguishing these notions provides ITT with its good computational properties: definitional equality is a decidable fragment of propositional equality and allows type checking to be algorithmically decidable. This fragment can be changed, such as by allowing the addition of rewrite rules [17]. The two extremes are: extensional type theory (ETT) [36], where every equality is definitional, and axiomatic type theory (ATT) [8, 44], where no equality is definitional.
For ETT the external and internal notions of equality match. This prevents it from being compatible with homotopy type theory: it proves uniqueness of identity proofs (UIP) which contradicts univalence [27, 47]. In addition, definitional equality is undecidable in ETT, which means that type checking is undecidable as well. By contrast, the semantics of ETT is easier to explore and allows for a simple categorical description of its type formers. Models can be formulated using locally Cartesian closed categories as seen by Seely [43]. However, Seely interprets substitutions using pullbacks, which are only specified up to isomorphism, leading to coherence problems. The precise statement is a biequivalence of 2-categories as shown by Clairambault and Dybjer [16] building on work of Curien, Hofmann and Garner [19, 26, 20], which has been extended by Maietti [35] and Van der Weide [48]:
In this paper we generalise this to ATT. The main reason to study axiomatic type theory is that – while it only has one notion of equality like ETT, and is therefore easier to study – it is minimal and therefore compatible with ITT and its extensions, and provides a larger class of models. In addition, there are conservativity results for ATT which means that we can use it to study ITT and ETT: for example, ETT is conservative over ATT extended with function extensionality and UIP [49, 13, 45]. Moreover, from a mathematical perspective, axiomatic type formers enjoy the advantage of being homotopy invariant, as explained in [3, 4]: any type that is homotopy equivalent to the one given by the formation rule of a type former satisfies the same rules.
We generalise the known correspondence by considering the notion of a path category introduced by Van den Berg and Moerdijk [9, 6]. Path categories have equivalences as a primitive notion, which allows the omission of explicit interpretations of the elimination and computation rules. This is a considerable simplification, since it is exactly these rules that become unwieldy in ATT, especially in a setting without -types. We show a correspondence:
This extends the existing results since finitely complete categories can be seen as degenerate path categories where dependent homotopy exponentials simplify to dependent exponentials. We do this by proving an isomorphism of 2-categories between path categories and an existing notion of weak semantics: display map categories. Then we apply the results of Lumsdaine and Warren [33] and Bocquet [12] to strictify those path categories that satisfy the additional logical framework (21) condition, giving a biequivalence with models satisfying this condition. We also introduce a new and more fine-grained notion – that of a display map path category, which distinguishes types and telescopes – and prove similar correspondences:
This result is more modular without introducing significant additional complexity: display map path categories only have axiomatic =-types by default and can be extended with any combination of , , and in a relatively simple way.
Our contribution.
Our main contribution is twofold: (a) providing a categorical formulation of the weak models of axiomatic -types, and exploiting it to obtain a coherence result for the class of path categories, and (b) a characterisation of the strict models of axiomatic type theory in terms of path categories. In detail, we show that the 2-category of path categories is isomorphic to a 2-category of suitable display map categories. We consider display map categories to phrase the semantics of type theory because they form a good middle ground: they allow for a formulation of type formers that closely follows the syntax, while being expressive enough to consider both weak and strict models. Additionally, they are relatively simple and close to the homotopical notions.
The idea of formulating the semantics of axiomatic -types using path categories originates from the work of Van den Berg and Moerdijk [9, 6]. Our contribution lies in clarifying precisely in what sense path categories serve as models for these axiomatic -types: every path category is rooted – that is, every context is essentially build by extending the empty context with finitely many types – and models axiomatic -types, and extensional - and -types. We show that, when they are structured (come equipped with choices of substitutions), and satisfy the 21 condition, they can be strictified into actual models.
Additionally, we introduce a more fine-grained notion, that of a display map path category, which distinguishes between types and telescopes. Because of this distinction, they do not model extensional - and -types, but still model axiomatic -types. This makes them a suitable semantics for a minimal ATT – only axiomatic -types – which can be extended with axiomatic -types, -types, and -types.
Related work.
This paper is positioned at the intersection of two goals: (a) finding a well-structured categorical description of models for ATT, in such a way that there is a modular correspondence [34, 24] between certain categories, where syntax is not explicitly articulated, and specific type theories, and (b) proving coherence theorems. From this perspective, our work is in line with that of Maietti [34] and that of Clairambault and Dybjer [16]. Maietti’s work is based on characterising models of certain theories via universal properties. This is largely due to the fact that her work focuses on extensional theories. To extend this to axiomatic theories, we need to use a weaker notion of universal properties in the form of homotopy (co)limits. Such an approach seems necessary for inductive types such as the natural numbers type and -types. For -types, -types, and -types, we show that it suffices to ask the constructor to be an equivalence: a homotopy universal property already follows from this requirement. Another approach consists in describing axiomatic type formers by means of higher dimensional universal properties in higher dimensional structures, as done in [44]. We also reference Van der Weide’s work [48], which generalizes both Maietti’s and Clairambault and Dybjer’s results to univalent categories.
The correspondence that we establish is similar to the one by Clairambault and Dybjer [16], since finitely complete categories are precisely the path categories in which the only equivalences are the isomorphisms and every morphism is a fibration. However, a formulation of our result as a generalization of the former is hard to find. On the one hand, finitely complete categories induce pseudo-stable type formers in the corresponding display map category, which is enough to obtain a split display map category with stable type formers, hence a genuine model, by right-adjoint splitting. On the other hand, a general path category only provides the corresponding display map category with weakly stable type formers, which forces us to base our splitting strategy on the left-adjoint splitting functor, as described by Lumsdaine and Warren [33] and Bocquet [12]. However, the latter requires the input display map category to be structured, which in general does not follow from our hypotheses. Hence, we cannot hope to link general path categories to models of ATT, but only to weak models with weakly stable structure, whereas Clairambault and Dybjer’s biequivalence automatically involves pseudo-stable structure – and hence falls within the domain of the right-adjoint splitting. Our solution consists in restricting our biequivalence between path categories and weak models to the structured, or cloven, case in both sides, so that the latter fall within the domain of the left-adjoint splitting: in this way we deduce a biequivalence between cloven path categories and strict models of our type theory.
Structure of the paper.
In Section 2 we describe axiomatic -types syntactically, and explain why the based version is preferred in a setting without -types. In Section 3, we review the notion of a display map category as well as the semantic notion of axiomatic -types, and explain strict and weak stability in both the general and the structured case. Analogously, Section 4 recalls the notion of a path category together with its basic properties.
In Section 5 we describe how path categories extend the notion of a clan with based axiomatic -types. We use this fact to show that path categories are rooted display map categories with weakly stable based axiomatic -types and extensional - and -types. Secondly, we prove that these conditions on a display map category are themselves enough to recover the structure of a path category, and that this correspondence extends to an isomorphism between the corresponding 2-categories. In Section 6, we introduce the notion of a display map path category adding a distinction between display maps and fibrations, and prove a similar 2-isomorphism. Consequence of our correspondence are explored in Section 7, where we strictify to obtain genuine models.
2 Syntax
We will assume some familiarity with the syntax of Martin-Löf type theory; for an overview, see [37, 47]. Our main focus will be a minimal type theory with only propositional equality (the -types) and no definitional equality (the -judgement). For the structural rules, the unit type (), dependent product types () and dependent function types (), see Appendix A. Type formers in intensional Martin-Löf type theory are given by formation, introduction, elimination, and computation () rules. For the -types, these are:
In extensional type theory, we also add a uniqueness () rule:
The -rule implies that propositional equality and definitional equality coincide, making type checking undecidable. We are mainly interested in the other direction – a minimal type theory without definitional equality – so we modify intensional -types in two ways: we weaken the -rule (definitional equality) to a -axiom (propositional equality), and fix the variable in place as a constant term in the eliminator:
These two modifications are orthogonal. The main focus of this paper is on the first one: weakening the -rule to a -axiom, that is, only requiring the -type to be inhabited instead of requiring a judgemental equality. This weaker notion of -type is called an axiomatic -type, and is the version that appears in cubical type theory [18] as well as in axiomatic type theory (type theory without reductions) [8]. The other modification, fixing one of the two endpoints, is a technical variation known as based path induction or the Paulin-Mohring eliminator [41]. With -types, based and unbased path induction are equivalent. However, without -types, the based version is stronger and better behaved. For example, the transport of a term along an equality can be defined as using based path induction, while it is not definable using unbased path induction.
Alternatively, to give the unbased version the same strength as the based version, we can extend it with a telescope . This is called the parametrized or Frobenius version of path induction. For example, axiomatic parametrized unbased path induction is given by:
We have equivalences between axiomatic/intensional/extensional versions of path induction:
while the original unparametrized unbased version is weaker without -types. We prove a semantic version of this in Proposition 14.
In general we use the following terminology: a type former is axiomatic if we only have a -axiom, intensional if it has a -rule, and extensional if it also has an -rule. Note that the -axiom generally implies the existence of an -axiom [3, 4]. The type theory is axiomatic/intensional/extensional if every type former is. Note that having extensional =-types implies that every other type former is extensional.
3 Display map categories
There is a big zoo of semantic frameworks for the structural part of dependent type theory; see [1] for an overview of the equivalences. These range from frameworks that closely follow the syntax (such as categories with families, which have primitive notions for contexts, types, and terms) to frameworks that simplify the structure (such as display map categories, where a type in context is identified with the display map or context projection , and a term of is identified with the induced context map ). We will be working in the later setting for two reasons: it allows us to talk about both strict and weak models, and can easily be extended using ideas of homotopy theory as we will see in Section 4.
Definition 1 (Display map category [28, 46]).
A display map category is a category with a subclass of maps called the display maps () that is replete (closed under isomorphism in the arrow category ), and closed under pullback along any map.
The objects of a display map category are called contexts. A type in context consists of a context suggestively written together with a display map . A term of is a section of , that is, a map such that . More generally, a term of for a context map is a map such that . Such a term of for is equivalent to having a term of the pullback of along :
We call the re-indexing or substitution of along , and the weakening of for . We extend both of these notions further. If is a term of type , then, for any choice of , we write for the unique term of type such that :
For a type in context we write for the induced type in an extended context ; and for a term of we write for the induced term of . Finally, for any choice of , we use the categorical notation for the term of the pullback induced by terms and . We extend this to the dependent case by writing for the term induced by terms and . For a type we have always the variable term or diagonal .
Definition 2 (Root).
We call a sequence of types , such that is a type in context , a telescope of , and a composition of display maps a fibration (). A display map category is called rooted if it has a terminal object (the empty context or root), and any map is a fibration111Note that having a root is the correct way to state democracy in the absence of extensional - and -types. Democracy means that every context has a representation, and is usually stated as every context being isomorphic to for a type in the empty context [16, Definition 2.6]. .
Type formers follow the syntactic specification. For example, an =-type is given by:
Definition 3 (-type).
We say that a display map category has axiomatic (based) -types if, for every type in context , there exists the data of a -type for :
- F.
-
a type in context (for some choice of re-indexing),
- I.
-
a term of type in context , where :
- E.
-
for every term of type , every type in context , and every term of type 222Note that is a morphism of the form and because we can also write the codomain as so that . However, a structured display map category (see below) does not have to choose the same object for and . So, there we should understand the statement as leaving a canonical isomorphism between the chosen objects implicit. A strict display map category is guaranteed to choose the same re-indexing. , a term of :
- .
-
for every as before, is propositionally equal to , that is, we have a term of type .
We are interested in the axiomatic notion, but for clarity we also explain stronger notions. We call an -type for a type intensional if it satisfies the -rule: for every as before we have that , and therefore . We call the -type extensional if it also satisfies the -rule: for every and term of we have that .
We say that a display map category with -types has weakly stable -types if for every type in context there exist an -type and for every we can equip and
with the additional data required to form an -type. To explain the intuition for this notion, we first need to explain the idea of an equivalence. A (homotopy) equivalence between types and fibered over a context is a term of for such that there exists a term of for so that the two compositions are pointwise propositionally equal to the identity, that is, we have terms of and . One can observe that between any two -types for there exists an equivalence that respects the data of an =-type, and that any type that is equivalent to an -type for can be given the additional data to form an -type. Hence, weak stability is equivalent to the statement that =-types are preserved by re-indexing up to equivalence. This certainly holds in the syntax because the substitution of an =-type is still an =-type.
As explained in [1], there exists a 2-category of display map categories, functors preserving display maps and pullbacks of display maps, and natural transformations. We can specialize this to 0-cells that are rooted and 1-cells that preserve the terminal object. Another specialization is to 0-cells with additional weakly stable type formers and 1-cells that weakly preserve them; see Appendix B. In Section 5, we show that the 2-category of path categories is isomorphic to the 2-category of rooted display map categories with weakly stable axiomatic -types, extensional -types, and extensional -types.
Strict display map categories
In the syntax, substitution is defined recursively and therefore satisfies definitional equalities. These equalities are not even expressible in a display map category because substitution is only specified up to isomorphism, and -types are only specified up to equivalence. So, to model type theory strictly, we need specified choices: a structured or cloven display map category is equipped with a subclass of the display maps that generates the display maps by repletion (the strict display maps), and choices for re-indexing strict display maps to strict display maps. We call it a strict or split display map category if these choices respect identity and composition: and . A strict rooted display map category also has choices to write every as a composition of strict display maps and isomorphisms. Given specified choices for a type former, we can consider a range of conditions [33]:
-
weakly stable: preserved by re-indexing up to equivalence over the context.
-
pseudo-stable: preserved by re-indexing up to isomorphism over the context.
-
strictly stable: preserved by re-indexing.
For example, specified choices for =-types consist of: for every strict type a strict type and a term , together with for every strict type and term , terms and . These choices are strictly stable if for any we have the following equalities:
A weak model of a type theory is a display map category with weakly stable type formers, and a strict model is a strict display map category with strictly stable type formers.
4 Path categories
We start with the following notion from abstract homotopy theory:
Definition 4 (Clan [30]).
A clan is a category with a subclass of maps called the fibrations () that is replete, closed under identity, composition, and pullback along any map. In addition, there exists a terminal object and every map is a fibration.
We have a forgetful functor from rooted display map categories to clans (only remembering the fibrations, that is, the compositions of display maps), and conversely every clan gives a rooted display map category in a cofree way: the entire class of fibrations can be taken as the display maps. To emphasize the topological view, we start writing the pullback of and as instead of . We extend clans with equivalences:
Definition 5 (Path category [9]).
A path category is a clan with an additional subclass of (weak) equivalences (). If a map is both a fibration and an equivalence, we call it a trivial fibration (). In addition, we require:
-
1.
isomorphisms are weak equivalences,
-
2.
equivalences satisfy 2-out-of-6: if for we have that both and are equivalences, then so are , , , and ,
-
3.
the pullback of a trivial fibration along any map is also a trivial fibration,
-
4.
every trivial fibration has a section,
-
5.
every object has a path object: an object together with a fibration and an equivalence with .
This is a strengthening of Brown’s notion of a category of fibrant objects [14] in two ways: (a) we have 2-out-of-6 instead of the weaker 2-out-of-3 (if for two of the three maps are equivalences, then so is the third), which is equivalent to saturation [42], and (b) every trivial fibration has a section, which is equivalent to every object being cofibrant.
A trivial example of a path category is a category with finite limits where every morphism is a fibration, and only isomorphisms are equivalences. More interesting examples arise by taking the fibrant-cofibrant objects of a model category where every object is cofibrant. In addition, the effective topos can be seen as the homotopy category of a path category [7].
Four main results for path categories are: factorization, slicing, lifting, and saturation, which we will show here; for proofs, see [9]. First, notice that finite products exist and that the projections are pullbacks of fibrations and therefore fibrations. In addition, we see that the source and target maps are always trivial fibrations: equivalences by 2-out-of-3 on and , and fibrations as compositions of fibrations because and . Now we can state:
Proposition 6 (Factorization).
We can factor any map as an equivalence (a section of a trivial fibration) followed by a fibration .
Using generalized elements, we think of the mapping path space as the space of pairs with in and a path in with source :
Then maps in to the pair consisting of and the trivial path on , and maps to the target of .
Proof.
The projection is the pullback of and therefore a trivial fibration. So, with 2-out-of-3 on we see that is an equivalence. In addition, we see that the following square is pullback:
So, is a fibration, and therefore is as well.
Definition 7 (Slice category of fibrations).
If is a path category then for any object in we define as the full subcategory of whose objects are fibrations to . This is a path category when notions of fibration and equivalence are copied from . The path object of a fibration is a factorisation of in .
Definition 8 (Homotopy).
We write for if there exists an homotopy: an such that . A homotopy equivalence is a map such that there exists a with and . More generally, if then we write if there exists a fibrewise homotopy: an such that .
Theorem 9 (Saturation).
The homotopy equivalences are precisely the weak equivalences.
Theorem 10 (Lifting).
Suppose that we have the commutative outer square:
Then there exists a map such that the lower triangle commutes and the upper triangle commutes up to fibrewise homotopy: we have and . Moreover, such a lifting is unique up to fibrewise homotopy.
Corollary 11.
Let be any morphism in a path category and let and be path objects. Then there is a morphism commuting with the morphisms and and such that . In particular, homotopy is independent of the choice of path objects (consider ).
Although they are 1-categories, path categories already contain higher structure. In particular, they are enriched in -groupoids [40]: a map between morphisms is an homotopy, that is, a morphism , and so on.
We have a 2-category of path categories, functors preserving the structure (fibrations, trivial fibrations, pullbacks, and the terminal object), and natural transformations. Such functors also preserve equivalences and therefore path objects by Brown’s lemma [14].
We call path categories structured if there is a choice of fibrations (the strict fibrations) that generates the fibrations by repletion, and choices of path fibrations, pullbacks of strict fibrations to strict fibrations, and terminal object. We call it strict if these choices strictly respect identity, composition, and path objects.
5 From path categories to weak models and back
We anticipated that path categories would provide a natural semantics for axiomatic -types. In this section, we establish the rigorous correspondence by rephrasing a path category as a display map category with weakly-stable axiomatic -types and three other properties: a root, (pseudo-stable) extensional -types, and (pseudo-stable) extensional -types. In Section 6, we introduce a version of path categories that does not necessarily model extensional -types and -types, and hence provides semantics for a minimal axiomatic type theory with only axiomatic -types. We will also see how we can extend this with other axiomatic type formers. Let us start from these last properties:
Proposition 12.
A display map category has:
-
extensional -types iff all identity maps are display maps;
-
extensional -types iff display maps are closed under composition.
So, a display map category is equal to a clan (as categories with a specified subclass of maps) iff it is rooted and has extensional - and -types. In addition, extensional - and -types are always pseudo-stable.
Proof.
If we have extensional -types, then for any , the display map is an isomorphism by the introduction and -rules. As any isomorphism of is isomorphic to the identity in , the latter is a display map as well. Similarly, if we have extensional -types then for any composable display maps , we have a display map that is isomorphic in to the composition, hence the latter is a display map as well. Vice versa, define as and as .
Pseudo-stability follow from the fact that isomorphisms are preserved by re-indexing. To show that path categories also have axiomatic -types, we adapt [6, Proposition 4.5]:
Proposition 13.
A path category has weakly stable based axiomatic -types. Therefore – by considering every fibration to be a display map – a path category is a rooted display map category with weakly stable axiomatic -types, and extensional - and -types.
Proof Sketch..
Formation and introduction for a type in context are provided by a path object for the fibration . Elimination and the -axiom follow by the lifting theorem (Theorem 10). Weak stability follows from the fact that the re-indexing of a path object is a path object itself. See [39, Appendix C] for a complete proof. For the converse, we first translate different notions of axiomatic =-types:
Proposition 14.
For a display map category, the existence of the following weakly stable axiomatic identity types is equivalent:
whereas the existence of weakly stable unparametrized unbased axiomatic -types is weaker: transport is not definable with unbased path induction (and no -types).
Proof.
The proof of the first equivalence is obtained by adapting Bocquet’s argument [11, Section 3] to non-strict models. Regarding the second equivalence, a parametrized unbased axiomatic -type for a type in a given context can be defined as a specific re-indexing of a parametrized based axiomatic -type for some over – namely, along the corresponding morphism .
The strategy to prove that transport is not admissible in a theory with only the Martin-Löf elimination and computation rules and no -types – and hence that weakly stable unparametrized unbased axiomatic -types are weaker than the other notions – adapts an argument by Bocquet [11, page 15]. We also refer the reader to [21].
We refer the reader to [39, Appendix C] for a complete proof.
Proposition 15.
A rooted display map with weakly stable based axiomatic -types and extensional - and -types can be given the structure of a path category where the weak equivalences are defined as the homotopy equivalences.
Proof Sketch..
By Proposition 14 and Propositional 12 – by looking at its display map class as a class of fibrations – we infer that is a clan and is endowed with weakly stable parametrized unbased axiomatic -types. Now, one can observe that weak stability implies the existence of arrows:
| (logical equivalence) |
over the canonical isomorphism , for every fibration and every substitution . In other words, the equivalence relations represented by and coincide. We provide full verification of this fact in [39, Appendix C]. Van den Berg [6, Theorem 5.16] proves that these data on are in fact equivalent to the existence and the choice of a class of weak equivalences on – in fact provided by its homotopy equivalences – making the clan into a path category, concluding our argument. The correspondence delineated by Proposition 13 and Proposition 15 extends to an equality of the 2-categories; for which we provide details in [39, Appendix C]:
Theorem 16.
There exists an isomorphism of 2-categories: .
6 Display map path categories
To define a more fine-grained semantics that does not necessarily model extensional -types and extensional -types, we will add some additional structure to path categories: we exchange the clan for a display map category to distinguish display maps and fibrations.
Definition 17 (Display map path category).
A display map path category is a display map category together with a class of (weak) equivalences () such that:
- 1.
-
isomorphisms are equivalences,
- 2.
-
equivalences satisfy 2-out-of-6: if for we have that both and are equivalences, then so are , , , and ,
- 3.
-
the pullback of a trivial fibration along any map is also a trivial fibration,
- 4.
-
every trivial fibration has a section,
- 5.
-
every display map has a path display map:
a display map and equivalence with . - PF.
-
every fibration has a path fibration:
a fibration and equivalence with .
We call a display map path category rooted if the underlying display map category is. Every rooted display map path category is in particular a path category, and every path category gives a cofree rooted display map path category by considering every fibrations to be a display map. Now a natural question is: are path display maps already enough to define path fibrations ? This is the case in the syntax: with -types (and transport) we can define =-telescopes. For a telescope of we define the =-telescope of where:
The same is true in general. However, we do need to assume a notion of transport:
Theorem 18.
In the presence of axioms 1–5 and a root, the following are equivalent:
- PO.
-
(path objects) every object has a path object .
- PF.
-
(path fibrations) every fibration has a path fibration .
- F.
-
(factorisation) every map has a factorisation .
- T.
-
(transport) for any and path object of there exists a map for such that and .
- L.
-
(lifting) if we have a commutative outer square
then there exists a map such that the lower triangle commutes and the upper triangle commutes up to fibrewise homotopy, that is, we have and . Moreover, such a lifting is unique up to fibrewise homotopy.
Proof.
We have the following implications:
-
() follows by Proposition 6 and the fact that the path object is a factorisation of the diagonal .
-
() by the lifting theorem for path categories (Theorem 10).
-
() because a transport map is a lift for the following square:
-
() follows with induction on the number of display maps in the fibration . In the base case we take the path object to be . In the successor case we will combine a path object for with a path object for into a path object for . Take and let be a transport map. The intuition for will be that it consists of quadruples as in the following picture:
More precisely, we define using the two pullbacks:
and we take and . To see that is an equivalence, we note that there is a more concise isomorphic definition of as the mapping path space of in :
We see that the following diagram commutes:
so, with 2-out-of-3, we see that is an equivalence.
So, the main results for path categories turn out to be equivalent to the existence of path fibrations. Another observation is that the slice of a (rooted) display path category is generally only a display map path category, whereas is a rooted display map path category. So, both the rooted and the unrooted version are important regardless of the starting category, which we exploit in the following:
Theorem 19.
A display map path category has weakly stable =-types, and every display map category with weakly stable =-types can be given a class of weak equivalences that turns it into a display map path category: the fibrewise homotopy equivalences. This extends to an isomorphism of the 2-categories: .
Proof.
If we have a display map path category, then for every we have a path object in the rooted display path category . This is in particular a path category, so by Proposition 13 it is a =-type in , which implies that it is a =-type in . The =-types are weakly stable because we see that display path objects are preserved by pullback using (the proof of) Brown’s lemma [14, page 428].
Conversely, if we have a display map category with weakly stable axiomatic -types, then we say that a map is an equivalence if there exists a such that and and is a homotopy equivalence over . We see that this satisfies axioms 1–4 so the main difficulty is showing that every trivial fibration has a section and that every fibration has a path fibration. For a (trivial) fibration there exists a such that is an equivalence over . So, we consider , which has a root, and Van den Berg [6, Section 6] shows that parametrized unbased axiomatic -types are make it a path category whose equivalences are again the homotopy equivalences. So, the remaining properties follow.
If there is a root, then we know that saturation holds (Theorem 9), and the fibrewise homotopy equivalences become the homotopy equivalences, so this is the only option for the weak equivalences. In a similar way as for Theorem 16 we see that the 1-cells agree.
Proposition 20.
A (display map) path category:
-
has weakly stable axiomatic -types iff the identity maps are homotopic to display maps;
-
has weakly stable axiomatic -types iff the display maps are closed under composition up to homotopy;
-
has weakly stable axiomatic -types iff for every there exist and over such that for every the map
is essentially surjective. Here we view the domain and codomain as groupoids, where the maps are given by pointwise homotopies up to higher homotopy. satisfies the function extensionality axiom iff the map is full, which implies that it is an equivalence.
Proof.
For the - and -types, the introduction and -axiom give equivalences and over . So, the identity and composition are homotopic to display maps. Conversely, we can define as the display map homotopic to and as the display map homotopic to . They are always weakly stable because display maps and equivalences are preserved by re-indexing.
For the -types, these correspond to the weak/strong homotopy exponentials of Den Besten [10]. Essentially surjective gives a form of the introduction and -axiom with weak stability build in: if we have a substitution and a term over then we get a term over such that is homotopic to . That the map being full implies that it is an equivalence, and that this is equivalent the axiom of function extensionality is shown by Den Besten [10, Proposition 5.4].
7 Strictification and coherence
In this last section, we use our isomorphisms to prove a coherence result: a biequivalence between a certain class of path categories and the class of (strict) models of a specific theory. First, we recall the LF condition that Lumsdaine and Warren [33] use to strictify:
Definition 21 (Logical framework (LF)).
A display map category satisfies LF if it has finite products and if, whenever is a display map and is either a display map or a product projection, the categorical dependent exponent exists: there exist and over such that for every the map:
is an isomorphism.
This condition is very close to the existence of -types for (display map) path categories but distinct in two important ways: we do not ask for to be a display map (so is not a type), and we ask for an isomorphism instead of a full map or equivalence. As a consequence, it captures a situation that is better viewed as a logical framework [25] or a 2-level type theory [35, 2] where the ambient theory has strong -types regardless of the internal theory that we consider.
Theorem 22 (Path categories provide models).
Let be a structured path category satisfying the LF condition. Then, seen as a structured display map category, it is equivalent in to an object of (a strict model).333Note that if we are willing to assume the axiom of choice in the metatheory, we do not need to assume that the display map category is structured.
This follows by combining Theorem 16 with the work of Lumsdaine and Warren [33], and Bocquet [12]. As they work in different frameworks, we provide the details in the full version [39, Appendix D].
Corollary 23 (Biequivalence of path categories and axiomatic Martin-Löf type theories).
There is a biequivalence .
Proof.
There is a choice of an equivalence in , natural in : the unit of the left-adjoint splitting. Now, if is an object of then – where is included into – witnesses an equivalence living in . Therefore there is a biequivalence which, pre-composed by the restriction to the structured case of the biequivalence at Theorem 16, yields the statement.
Corollary 24 (Coherence for path categories).
Every structured LF path category is equivalent to a strict LF path category.
See [39, Appendix D] for the proof. These results work for general type formers, so we also get statements for display map path categories. The diagram summarises this:
Note that the adjunctions, although labelled differently, are the same: depending on the point of view, the left adjoint is either forgetful (it forgets display maps while remembering the fibrations), or free (it takes the identity and composition closure of the display maps), while the right adjoint is either cofree (it takes every fibration to be a display map) or forgetful (it forgets the and structure).
8 Conclusion
We have established a biequivalence between path categories and models of axiomatic -types extended with extensional and -types. This result provides a clean categorical formulation of the semantics of axiomatic =-types, allowing us to construct strict models directly from weak homotopy-theoretic structures. Furthermore, we introduced the novel notion of a display map path category. This more fine-grained structure distinguishes between types and telescopes, and offers a semantics for minimal axiomatic type theories that do not include extensional type formers. As we saw, this leaves room to add other axiomatic type formers, such as axiomatic -, -, and -types, providing a modular semantics for axiomatic type theory. Our framework lays the groundwork for future investigations into the semantics of higher inductive types and computational interpretations of univalence.
References
- [1] B. Ahrens, P. Lumsdaine, and P. Randall North. Comparing semantic frameworks for dependently-sorted algebraic theories. In Oleg Kiselyov, editor, Programming Languages and Systems, volume 15194 of Lecture Notes in Computer Science, pages 3–22, Singapore, 2025. Springer Nature Singapore. doi:10.1007/978-981-97-8943-6_1.
- [2] T. Altenkirch, P. Capriotti, and N. Kraus. Extending Homotopy Type Theory with Strict Equality. LIPIcs, Volume 62, CSL 2016, 62:21:1–21:17, 2016. arXiv:1604.03799 [cs]. doi:10.4230/LIPIcs.CSL.2016.21.
- [3] S. Awodey, N. Gambino, and K. Sojakova. Inductive types in homotopy type theory. In Proceedings of the 2012 27th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 95–104. IEEE Computer Soc., Los Alamitos, CA, 2012. doi:10.1109/LICS.2012.21.
- [4] S. Awodey, N. Gambino, and K. Sojakova. Homotopy-initial algebras in type theory. J. ACM, 63(6):Art. 51, 45, 2017. doi:10.1145/3006383.
- [5] S. Awodey and M. A. Warren. Homotopy theoretic models of identity types. Math. Proc. Cambridge Philos. Soc., 146(1):45–55, 2009. doi:10.1017/S0305004108001783.
- [6] B. van den Berg. Path categories and propositional identity types. ACM Trans. Comput. Log., 19(2):Art. 15, 32, 2018. doi:10.1145/3204492.
- [7] B. van den Berg. Univalent polymorphism. Annals of Pure and Applied Logic, 171(6):102793, June 2020. doi:10.1016/j.apal.2020.102793.
- [8] B. van den Berg and M. den Besten. Quadratic type checking for objective type theory, 2021. arXiv:2102.00905.
- [9] B. van den Berg and I. Moerdijk. Exact completion of path categories and algebraic set theory. Part I: Exact completion of path categories. J. Pure Appl. Algebra, 222(10):3137–3181, 2018. doi:10.1016/j.jpaa.2017.11.017.
- [10] M. den Besten. On homotopy exponentials in path categories, 2020. arXiv:2010.14313.
- [11] R. Bocquet. Coherence of strict equalities in dependent type theories, 2020. arXiv:2010.14166.
- [12] R. Bocquet. Strictification of weakly stable type-theoretic structures using generic contexts. In 27th International Conference on Types for Proofs and Programs, volume 239 of LIPIcs. Leibniz Int. Proc. Inform., pages Art. No. 3, 23. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2022. doi:10.4230/lipics.types.2021.3.
- [13] S. Boulier and T. Winterhalter. Weak type theory is rather strong. 30th International Conference on Types for Proofs and Programs, 2019. URL: https://www.ii.uib.no/˜bezem/abstracts/TYPES_2019_paper_18.
- [14] K. S. Brown. Abstract homotopy theory and generalized sheaf cohomology. Transactions of the American Mathematical Society, 186:419–458, 1973.
- [15] J. Cartmell. Generalised Algebraic Theories and Contextual Categories. PhD thesis, University of Oxford, 1978.
- [16] P. Clairambault and P. Dybjer. The biequivalence of locally cartesian closed categories and Martin-Löf type theories. Math. Structures Comput. Sci., 24(6):e240606, 54, 2014. doi:10.1017/S0960129513000881.
- [17] J. Cockx. Type theory unchained: Extending agda with user-defined rewrite rules. In 25th International Conference on Types for Proofs and Programs (TYPES 2019), volume 175 of Leibniz International Proceedings in Informatics (LIPIcs), pages 2:1–2:27. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi:10.4230/LIPIcs.TYPES.2019.2.
- [18] C. Cohen, T. Coquand, S. Huber, and A. Mörtberg. Cubical Type Theory: A Constructive Interpretation of the Univalence Axiom. In Tarmo Uustalu, editor, 21st International Conference on Types for Proofs and Programs (TYPES 2015), volume 69 of Leibniz International Proceedings in Informatics (LIPIcs), pages 5:1–5:34. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 2018. doi:10.4230/LIPIcs.TYPES.2015.5.
- [19] P.-L. Curien. Substitution up to isomorphism. Fundamenta Informaticae, 19(1-2):51–85, 1993.
- [20] P.-L. Curien, R. Garner, and M. Hofmann. Revisiting the categorical interpretation of dependent type theory. Theoretical Computer Science, 546:99–119, 2014. Models of Interaction: Essays in Honour of Glynn Winskel. doi:10.1016/j.tcs.2014.03.003.
- [21] N. Gambino and R. Garner. The identity type weak factorisation system. Theoretical Computer Science, 409(1):94–109, 2008. doi:10.1016/j.tcs.2008.08.030.
- [22] N. Gambino and M. F. Larrea. Models of Martin-Löf type theory from algebraic weak factorisation systems. J. Symb. Log., 88(1):242–289, 2023. doi:10.1017/jsl.2021.39.
- [23] R. Garner. On the strength of dependent products in the type theory of Martin-Löf. Annals of Pure and Applied Logic, 160(1):1–12, 2009. Publisher: Elsevier. doi:10.1016/J.APAL.2008.12.003.
- [24] R. Garner. Two-dimensional models of type theory. Math. Structures Comput. Sci., 19(4):687–736, 2009. doi:10.1017/S0960129509007646.
- [25] R. Harper, F. Honsell, and G. Plotkin. A framework for defining logics. J. ACM, 40(1):143–184, 1993. doi:10.1145/138027.138060.
- [26] M. Hofmann. On the interpretation of type theory in locally cartesian closed categories. In L. Pacholski and J. Tiuryn, editors, Computer Science Logic, pages 427–441, Berlin, Heidelberg, 1995. Springer Berlin Heidelberg.
- [27] M. Hofmann. Syntax and semantics of dependent types, pages 13–54. Springer, London, 1997. doi:10.1007/978-1-4471-0963-1_2.
- [28] J. Hyland, E. Martin, and A. Pitts. The theory of constructions: Categorical semantics and topos-theoretic models. Categories in Computer Science and Logic, 92:137–199, 1989.
- [29] B. Jacobs. Comprehension categories and the semantics of type dependency. Theoret. Comput. Sci., 107(2):169–207, 1993. doi:10.1016/0304-3975(93)90169-T.
- [30] A. Joyal. Notes on clans and tribes, 2017. arXiv:1710.10238.
- [31] A. Kaposi and L. Pujet. Type theory in type theory using a strictified syntax, 2025. URL: https://pujet.fr/pdf/strictification_preprint.pdf.
- [32] P. L. Lumsdaine. Strong functional extensionality from weak, 2011. URL: https://homotopytypetheory.org/2011/12/19/strong-funext-from-weak/.
- [33] P. L. Lumsdaine and M. A. Warren. The local universes model: an overlooked coherence construction for dependent type theories. ACM Trans. Comput. Log., 16(3):Art. 23, 31, 2015. doi:10.1145/2754931.
- [34] M. E. Maietti. Modular correspondence between dependent type theories and categories including pretopoi and topoi. Math. Structures Comput. Sci., 15(6):1089–1149, 2005. doi:10.1017/S0960129505004962.
- [35] M. E. Maietti. A minimalist two-level foundation for constructive mathematics. Annals of Pure and Applied Logic, 160(3):319–354, 2009. Computation and Logic in the Real World: CiE 2007. doi:10.1016/j.apal.2009.01.006.
- [36] P. Martin-Löf. Constructive mathematics and computer programming. In Studies in Logic and the Foundations of Mathematics, volume 104, pages 153–175. Elsevier, 1982.
- [37] P. Martin-Löf. Intuitionistic type theory, volume 1 of Studies in Proof Theory. Lecture Notes. Bibliopolis, Naples, 1984. Notes by Giovanni Sambin.
- [38] E. Moggi. A category-theoretic account of program modules. Math. Structures Comput. Sci., 1(1):103–139, 1991. doi:10.1017/S0960129500000074.
- [39] D. Otten and M. Spadetto. The biequivalence of path categories and axiomatic Martin-Löf type theories (full version), 2025. arXiv:2503.15431.
- [40] E. Paauw. Path categories and -groupoids. Master’s thesis, University of Amsterdam, 2021. URL: https://scripties.uba.uva.nl/search?id=record_29430.
- [41] C. Paulin-Mohring. Inductive definitions in the system coq rules and properties. In International Conference on Typed Lambda Calculi and Applications, pages 328–345. Springer, 1993.
- [42] A. Radulescu-Banu. Cofibrations in homotopy theory, 2009. arXiv:math/0610009.
- [43] R. A. G. Seely. Locally Cartesian closed categories and type theory. Math. Proc. Cambridge Philos. Soc., 95(1):33–48, 1984. doi:10.1017/S0305004100061284.
- [44] M. Spadetto. A 2-categorical approach to the semantics of dependent type theory with computation axioms, 2025. arXiv:2507.07208.
- [45] M. Spadetto. Relating homotopy equivalences to conservativity in dependent type theories with computation axioms. Logical Methods in Computer Science, Volume 21, Issue 3, September 2025. doi:10.46298/lmcs-21(3:32)2025.
- [46] P. Taylor. Practical foundations of mathematics, volume 59 of Cambridge Studies in Advanced Mathematics. Cambridge University Press, 1999.
- [47] The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. https://homotopytypetheory.org/book, Institute for Advanced Study, 2013.
- [48] N. van der Weide. The internal languages of univalent categories. In 2025 40th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 112–126, 2025. doi:10.1109/LICS65433.2025.00016.
- [49] T. Winterhalter. Formalisation and meta-theory of type theory. PhD thesis, Université de Nantes, 2020.
Appendix A Full syntax and semantics of axiomatic type theory
The structural rules of axiomatic type theory are:
These are modelled by any display map category with a designated empty context. In a rooted display map category this is the terminal object.
A.1 =-types
The rules for axiomatic based =-types are:
This induces a notion in display map categories:
Definition 25 (-types).
We say that a display map category has axiomatic (based) -types if, for every type in context , there exists:
- F.
-
a type in context ,
- I.
-
a term of type in context , where is the diagonal map :
- E.
-
for every term of type , every type in context , and every term of type , a term of :
- .
-
for every as before, is propositionally equal to , that is, we have a term of type .
Any such choice of data for a given type is also called an axiomatic -type for . Additionally, we call an -type intensional if it satisfies the -rule: for every as before we have that , and therefore that . We call the -type extensional if it also satisfies the -rule: for every and term of we have that .
In a strict display map category, we call a choice of =-types (strictly) stable if for every type in context and every morphism , we have:
We say that the -types are weakly stable if for every type in context and every morphism we can equip and
with the additional data required to form a -type.
A.2 -types
The rules for axiomatic -types are:
This induces a notion in display map categories:
Definition 26 (-types).
We say that a display map category has axiomatic -types if, for every context , there exists:
- F.
-
a type in context ,
- I.
-
a term of type :
- E.
-
for every type in context and every term of type a term of :
- .
-
for every and as before, is propositionally equal to , that is, we have a term of type .
We call a -type intensional if it satisfies the -rule: for every and we have that , and therefore that . We call the -type extensional if it also satisfies the -rule: for every and of type we have .
In a strict display map category, we call a choice of of -types (strictly) stable if for every context and every morphism , we have:
We say that the -types are weakly stable if for every context and every morphism , we can equip and with the additional data required to form a -type.
A.3 -types
The rules for axiomatic -types are:
This induces a notion in display map categories:
Definition 27 (-types).
We say that a display map category has axiomatic -types if, for every type in context and type in context , there exists:
- F.
-
a type in context ,
- I.
-
a (generalised) term of type for :
- E.
-
for every type in context and every term of type a term of :
- .
-
for every and as before, is propositionally equal to , that is, we have a term of type .
We call a -type intensional if it satisfies the -rule: for every and we have that , and therefore that . We call the -type extensional if it also satisfies the -rule: for every and of type we have .
In a strict display map category, we call a choice of of -types (strictly) stable if for every type in context , every type in context and every morphism , we have:
We say that the -types are weakly stable if for every type in context , every type in context , and every morphism we can equip and with the additional data required to form a -type.
A.4 -types
The rules for axiomatic -types are:
This induces a notion in display map categories:
Definition 28 (-types).
We say that a display map category has axiomatic -types if, for every type in context and type in context , there exists:
- F.
-
a type in context .
- I.
-
for every term of type in context a term of type in context :
- E.
-
a term of type for :
- .
-
for any term of type , is propositionally equal to , that is, we have a term of type .
We call a -type is intensional if it satisfies the -rule: for every we have that , and therefore that . We call the -type extensional if it also satisfies the -rule: for every of in context we have .
In a strict display map category, we call a choice of of -types strictly stable under our choices for substitutions if for every over and :
We say that the -types are weakly stable if for any over and we can equip and with the additional data required to form a -type.
In addition, we consider the (dependent) function extensionality axiom stating for every that the canonical function is an equivalence [23, 32]. This is where our naming convention of axiomatic/intensional/extensional type formers can be a bit confusing: the axiom of function extensionality is independent from -types being extensional (satisfying - and -rules). However, if the type theory is extensional – every type former is extensional or equivalently the =-types are extensional – then the axiom of function extensionality holds.
Appendix B Additional details on the 2-isomorphism
In this appendix we present the ingredients involved in the statement of the 2-isomorphism of between the 2-categories and . In Section 3 and Appendix A we recalled the notion of a display map category and described how it can be equipped with the right structure to interpret a theory with specified type formers. Similarly, in Section 4 we outlined the notion of a path category. Here we expand on this by giving a detailed account of the 2-categories involved.
Display map categories.
The 2-category consists of:
- 0-cells.
-
The display map categories.
- 1-cells.
-
If and are display map categories, the 1-cells from to are functors that map display maps to display maps and pullback squares of display maps into pullback squares of display maps.
- 2-cells.
-
If and are parallel 1-cells from to , the 2-cells from to are natural transformations .
This can be specialised to several suc-2-categories where the 0-cells are endowed with additional weakly stable type formers, and the 1-cells weakly preserve them. For example, we write // for the 2-categories with:
- 0-cells.
-
The display map categories equipped with weakly stable based axiomatic/intensional/extensional -types.
- 1-cells.
-
If and are 0-cells then the 1-cells from to are those 1-cells of that weakly preserve the based axiomatic/intensional/extensional -types – see Section 3.
- 2-cells.
-
The ones of .
We follow the same pattern for other type formers (, , ). We write for the sub-2-category where the 0-cells are rooted, and the 1-cells preserve the terminal object. Similarly, is the sub-2-category where the 0-cells satisfy the logical framework (LF) condition, and the 1-cells preserve the products and dependent exponents present. All of these restrictions can be combined in various ways; for example .
Lastly, we write and for the full sub-2-categories of spanned by structured and strict display map categories, respectively. If this is combined with type formers, then the 0-cells of also have choices for the type formers, but they are still only weakly stable under re-indexing, and only weakly preserved by 1-cells. The 0-cells of have choices for the type formers, and they are strictly stable under re-indexing, but the 1-cells only weakly preserve them. Note that these are the same choices that Clairambault and Dybjer [16] make for their 2-categories.
Path categories.
The 2-category consists of:
- 0-cells.
-
Path categories.
- 1-cells.
-
Functors preserving fibrations, trivial fibrations, pullbacks of fibrations, and the terminal object (and therefore also equivalences and path objects [14]).
- 2-cells.
-
Natural transformations.
Again, in the 1-cells preserve the products and dependent exponents present, while and are full sub-2-categories.
