Hostname: page-component-cd9895bd7-hc48f Total loading time: 0 Render date: 2024-12-25T18:32:02.574Z Has data issue: false hasContentIssue false

MODELS OF MARTIN-LÖF TYPE THEORY FROM ALGEBRAIC WEAK FACTORISATION SYSTEMS

Published online by Cambridge University Press:  08 June 2021

NICOLA GAMBINO*
Affiliation:
SCHOOL OF MATHEMATICS UNIVERSITY OF LEEDS LEEDS, UK
MARCO FEDERICO LARREA
Affiliation:
SCHOOL OF MATHEMATICS ALUMNI UNIVERSITY OF LEEDS LEEDS, UK E-mail: marco@lasi.ai
Rights & Permissions [Opens in a new window]

Abstract

We introduce type-theoretic algebraic weak factorisation systems and show how they give rise to homotopy-theoretic models of Martin-Löf type theory. This is done by showing that the comprehension category associated with a type-theoretic algebraic weak factorisation system satisfies the assumptions necessary to apply a right adjoint method for splitting comprehension categories. We then provide methods for constructing several examples of type-theoretic algebraic weak factorisation systems, encompassing the existing groupoid and cubical sets models, as well as new models based on normal fibrations.

Type
Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution, and reproduction in any medium, provided the original work is properly cited.
Copyright
© The Author(s), 2021. Published by Cambridge University Press on behalf of The Association for Symbolic Logic

1 Introduction

1.1 Context and motivation

The construction of category-theoretic models of Martin-Löf type theory [Reference Nordström, Petersson, Smith, Abramsky, Gabbay and Maibaum26] is a complex task that involves two main problems. First, one needs to find a category with sufficient structure, so as to be able to interpret the type-formation rules, e.g., those for dependent sum and dependent product types ( $\Sigma $ -types and $\Pi $ -types, respectively, for short). In particular, in order to have a model with intensional identity types ( $\textsf {Id}$ -types for short), the category under consideration needs to possess some homotopy-theoretic structure, as given for example by a weak factorisation system (wfs for short) [Reference Awodey and Warren1, Reference Gambino and Garner12, Reference North27]. Secondly, one has to transform the category under consideration into a genuine model of Martin-Löf type theory, in which certain strictness conditions (needed to model correctly the substitution operation) are required to hold, as in a split comprehension category [Reference Jacobs21, Reference Jacobs22]. As these conditions are rarely satisfied in practice, this second step often involves applying suitable general coherence theorems, analogous to Mac Lane’s theorem relating monoidal categories and strict monoidal categories [Reference Mac Lane25]. To make things more difficult, these two issues are closely related.

There are two main methods to address the strictness issues, to which we refer as the left and right adjoint splitting [Reference Curien, Garner and Hofmann9, Reference Hofmann, Pacholski and Tiuryn18, Reference Lefanu Lumsdaine and Warren24], since they are based on the left and the right adjoint to the inclusion of split Grothendieck fibrations into Grothendieck fibrations, respectively [Reference Giraud16, Reference Streicher32]. The right adjoint splitting was already used in [Reference Hofmann, Pacholski and Tiuryn18] in order to remedy the issues affecting the interpretation of Martin-Löf type theory in locally Cartesian closed categories [Reference Seely31], thus accounting for $\Sigma $ -types, $\Pi $ -types, and extensional $\textsf {Id}$ -types. Subsequently, Warren isolated sufficient conditions to apply the right adjoint splitting and produce models with intensional $\textsf {Id}$ -types [Reference Warren33]. These conditions, however, are not generally satisfied in categories equipped with weak factorisation systems, giving the impression, apparently widespread in the research community, that the right adjoint splitting cannot be used to construct homotopy-theoretic models of Martin-Löf type theories and that the left adjoint splitting should be used instead, applying the results in [Reference Lefanu Lumsdaine and Warren24].

Our aim in this paper is to show that this impression is wrong and that the right adjoint splitting can be applied to obtain homotopy-theoretic models of Martin-Löf type theory. The key observation underpinning this work, which was suggested by Garner (see [Reference Warren33, p. 34]), is that the right adjoint splitting can be applied provided that we work with algebraic, rather than ordinary, weak factorisation systems (awfs’s for short) [Reference Garner15, Reference Grandis and Tholen17] (see also [Reference Bourke and Garner5, Reference Bourke and Garner6, Reference Riehl29]). In an awfs, the lifting properties that are part of the definition of a wfs are replaced by lifting structures, satisfying a naturality condition. As we will see, it is the algebraic character of awfs’s that allows us to apply the right adjoint splitting.

While awfs’s may seem cumbersome, there are situations in which it is actually more natural to consider awfs’s than wfs’s, most notably in the ongoing work aimed at defining homotopy-theoretic models of Martin-Löf’s in a constructive metatheory [Reference Cohen, Coquand, Huber and Mörtberg7, Reference Gambino and Henry13, Reference Gambino and Sattler14]. Indeed, the left adjoint splitting used in [Reference Lefanu Lumsdaine and Warren24] seems to work only under certain exponentiability assumptions, which are not constructively valid in simplicial sets [Reference Bezem and Coquand4]. Issues of constructivity are also the main motivation for our work on normal uniform fibrations, as explained further below.

1.2 Main results

This paper makes two main contributions. The first is to introduce type-theoretic awfs’s and show that they give rise to models of Martin-Löf’s type theory with $\Sigma $ -types, $\Pi $ -types, and $\textsf {Id}$ -types. The second is to introduce a general method to obtain examples of type-theoretic awfs’s and to give a homogeneous account of several models in which dependent types are interpreted as uniform fibrations (in the sense of [Reference Cohen, Coquand, Huber and Mörtberg7, Reference Gambino and Sattler14]), including the groupoid model [Reference Hofmann and Streicher20], in which dependent types are interpreted as split fibrations, and models based on simplicial and cubical sets [Reference Cohen, Coquand, Huber and Mörtberg7, Reference Gambino and Sattler14], in which dependent types are interpreted as uniform Kan fibrations.

Our construction of models of Martin-Löf type theory from type-theoretic awfs’s is obtained in two steps. The first is to define a non-split comprehension category from a type-theoretic awfs (Proposition 4.2) and show that this comprehension category is equipped with pseudo-stable $\Sigma $ -types, $\Pi $ -types, and $\textsf {Id}$ -types (Theorem 4.11) in the sense of [Reference Lefanu Lumsdaine and Warren24], i.e., commuting with substitution up to isomorphism. The second step is to apply the right adjoint splitting and turn the non-split comprehension category obtained in the first step into a split one equipped with strictly stable $\Sigma $ -types, $\Pi $ -types, and $\textsf {Id}$ -types (Theorem 2.6). It should be noted that the extra algebraic structure of a type-theoretic awfs is crucial to have pseudo-stable $\textsf {Id}$ -types in the non-split comprehension category (cf. [Reference van den Berg and Garner3]) and this, in turn, is essential to apply the right adjoint splitting. As an illustration, we revisit the groupoid model of Martin-Löf type theory [Reference Hofmann and Streicher20]. Specifically, we equip the category of groupoids $\underline {\text{Gpd}}$ with an awfs whose right maps correspond to normal isofibrations and then we prove that such an awfs is type-theoretical. In this way, we show that the original groupoid model can be obtained as the split comprehension category associated with this type-theoretic awfs. Since the appearance of this paper as a preprint, these results have been extended to enriched groupoids [Reference Emmenegger, Pasquali and Rosolini11] and to split isofibrations [Reference van den Woerkom34].

Our results on constructing type-theoretic awfs’s build on the theory of uniform fibrations in [Reference Gambino and Sattler14]. Our Theorem 6.10 isolates structure on a Grothendieck topos that suffices to produce a type-theoretic awfs of uniform fibrations. We call a Grothendieck topos equipped with such structure a type-theoretic suitable topos (Definition 6.9). We then show that any Grothendieck topos equipped with an interval object with connections is an example of a type-theoretic suitable topos. The main technical machinery used in the proof of Theorem 6.10 is Proposition 6.8, where we show that given a type-theoretic suitable topos, the resulting awfs of uniform fibrations can be equipped with a stable functorial choice of path objects, which is the structure necessary to produce pseudo-stable identity types. This result fills the gap between the theory developed in [Reference Gambino and Sattler14] and its intended application to the construction of models of Martin-Löf type theory.

We also advance the theory of [Reference Gambino and Sattler14] by introducing a stronger version of uniform fibrations, which we call normal uniform fibrations, in which the lifts are required to preserve degeneracies. These can be seen as generalisations of normal cloven isofibrations in groupoids, as explained in Remark 7.5. We then show that the ideas in [Reference Gambino and Sattler14] can be adapted so as to accommodate this new normality property. With this, we prove that any suitable topos admits an awfs of normal uniform fibrations (Theorem 7.2).

One of the reasons for our interest in normal uniform fibrations is that they allow us to avoid one of the hypotheses for a type-theoretic suitable topos $\mathbb {E}$ when constructing a type-theoretic awfs (Theorem 8.10). The requirement on $\mathbb {E}$ is that for any object $X \in \mathbb {E}$ , the reflexivity map $r_X : X \rightarrow X^{I}$ , that maps a point of X to the constant path on it, is a member of a distinguished class of monomorphisms $\mathcal {M}$ whose members are to be thought as generating cofibrations. While this assumption holds if we consider $\mathcal {M}$ to be the class of all monomorphisms, it fails in some situations that are of interest for constructive mathematics. For example, if $\mathbb {E}$ is a presheaf topos and we restrict our attention to $\mathcal {M}_{\text{dec}}$ the class of decidable monomophisms (i.e., those whose image is level-wise constructively decidable). As noted in [Reference Orton and Pitts28], it is important to consider decidable monomorphisms when trying to model univalent universes. This issue is also relevant to the question of whether the path types and the identity types coincide in the cubical type theory of [Reference Cohen, Coquand, Huber and Mörtberg7].

1.3 Outline of the paper

Section 2 reviews the interpretation of type dependency using comprehension categories and the right adjoint splitting. Section 3 reviews algebraic weak factorisation systems. In Section 4 we introduce type-theoretic awfs’s and prove that the induced comprehension categories support pseudo-stable $\Pi $ -types, $\Sigma $ -types, and $\textsf {Id}$ -types. We then move on to the construction of examples of type-theoretic awfs. In Section 5 we revisit the groupoid model. In Section 6 we show how to construct a type-theoretic awfs from a type-theoretic suitable topos. In Section 7 we introduce the awfs of normal uniform fibrations and in Section 8 we show that it is type-theoretic.

2 Strict stability, pseudostability, and coherence

We review basic notions and results on Grothendieck fibrations and comprehension categories, referring to [Reference Jacobs22, Reference Streicher32] for more information. A comprehension category over a category $\mathbb {C}$ consists of a strictly commutative diagram of the form

$\text{where cod} \colon \mathbb {C}^{\rightarrow }\rightarrow \mathbb {C}$ is the codomain functor, such that $\rho \colon \mathbb {E} \rightarrow \mathbb {C}$ is a Grothendieck fibration, and $\chi \colon \mathbb {E} \rightarrow \mathbb {C}^{\rightarrow }$ maps Cartesian arrows in $\mathbb {E}$ to pullback squares in $\mathbb {C}$ . We refer to such a comprehension category by the tuple $(\mathbb {C}, \rho , \chi )$ or by the pair $(\rho , \chi )$ if the category $\mathbb {C}$ is easily inferable from the context. A cleavage for $(\mathbb {C}, \rho , \chi )$ consists of a choice of lifts for the fibration $\rho $ , i.e., for each $u \colon \Delta \rightarrow \Gamma $ in $\mathbb {C}$ and A over $\Gamma $ , a Cartesian morphism $u^* \colon A[u]\rightarrow A$ over u. We will refer to $A[u]$ as the reindexing of A along u. A cleavage is normal if it preserves identities and is split if it preserves identities and composition. A split comprehension category is a comprehension category equipped with a split cleavage. Occasionally, we will make use the following notation:

where the diagram on the left indicates that f is an arrow in $\mathbb {E}$ , $\sigma $ is an arrow in $\mathbb {C}$ , and $\rho (f) = \sigma $ . The pullback notation on the diagram on the right indicates that, in addition to the previous data, f is Cartesian.

A split comprehension category $(\mathbb {C}, \rho , \chi )$ provides a natural setting to interpret the basic judgements and the structural rules of a dependent type theory [Reference Jacobs22]. Type-theoretic contexts are interpreted as objects of $\mathbb {C}$ . A judgement $\Gamma \vdash A \colon \textsf {type}$ is interpreted as an object A in the fibre of $\rho $ over $\Gamma \in \mathbb {C}$ . Context extension is modelled via the comprehension functor: for an object A in the fibre over $\Gamma $ there is a morphism $\chi _A \colon \Gamma .A \rightarrow \Gamma $ whose domain $\Gamma .A$ is the interpretation of the context extension. A judgement $\Gamma \vdash a \colon A$ is interpreted as a map $a \colon \Gamma \to \Gamma .A$ in $\mathbb {C}$ which is a section of $\chi _A \colon \Gamma .A \to \Gamma $ .

Substitution of terms into types is interpreted with the use of the split cleavage, while substitution of terms into terms is interpreted by composition. Weakening is modelled by reindexing an object A along a morphism of the form $\chi _B : \Gamma .B \rightarrow \Gamma $ . For simplicity, the comprehension of $A[\chi _B]$ is written $\chi _{B, A} \colon \Gamma .B.A \rightarrow \Gamma .B$ .

In order to model type-theoretic constructs, we require a split comprehension category to be equipped with additional, chosen, structure. Furthermore, this structure must cohere strictly with the split cleavage, so as to ensure validity of substitution rules. Definition 2.1 and Definition 2.2 describe the structure necessary to model $\textsf {Id}$ -types. The corresponding structure for $\Sigma $ -types and $\Pi $ -types is defined in the Appendix.

Definition 2.1. A choice of $\textsf {Id}$ -types on a comprehension category $(\mathbb {C}, \rho , \chi )$ consists of the following data.

  1. (1) For each A in the fibre over $\Gamma $ and $a, b \colon \Gamma \to \Gamma .A$ sections of $\chi _A$ , an object ${\textsf {Id}}_A(a, b)$ over $\Gamma $ .

  2. (2) For each A over $\Gamma $ , a section $r_A$ over the diagonal morphism $\delta _A$ , giving a factorisation:

    where ${\textsf {Id}}_A(x, y)$ is given by $(1)$ applied to the weakened type A over $\Gamma .A.A$ and to the canonical variables $x, y \colon \Gamma .A.A \to \Gamma .A.A.A$ .
  3. (3) For any A over $\Gamma $ , C over $\Gamma .A.A.{\textsf {Id}}_A(x, y)$ and t a section of C over $r_A$ as shown by the solid arrows in the following diagram:

    a section $j_A(C, t)$ of $\chi_C$ (shown as the dotted arrow) making both triangles commute.

We refer to a choice of $\textsf {Id}$ -types by $(\textsf {Id}, r, j)$ . Similarly, we refer to a choice of $\Sigma $ -types as $(\Sigma ,\ \textrm{pair},\ \textrm{sp})$ and to a choice of $\Pi $ -types as $(\Pi , \lambda ,\ \textrm{app})$ (see the Appendix for details).

Definition 2.2. Assume $(\mathbb {C}, \rho , \chi )$ is split and is equipped with a choice $(\textsf {Id}, r, j)$ of $\textsf {Id}$ -types. We say that the choice is strictly stable if for every morphism $\sigma \colon \Delta \rightarrow \Gamma $ in the base category, and for every object A in the fibre over $\Gamma $ , the following conditions are satisfied:

  1. (1) For any pair of sections $a, b \colon \Gamma \to \Gamma .A$ , we have that ${\textsf {Id}}_{A[\sigma ]}(a[\sigma ], b[\sigma ]) = {\textsf {Id}}_A(a, b) [\sigma ]$ .

  2. (2) The following diagram commutes:

    where the horizontal arrows are given by split reindexing along $\sigma $ .
  3. (3) For any $(C, t)$ as in $(3)$ of Definition 2.1, we can obtain a second pair $(C[\sigma ], t[\sigma ])$ relative to ${\textsf {Id}}_{A[\sigma ]}(x', y')$ by reindexing along $\sigma $ . We require the following diagram to commute:

    where the horizontal arrows are given by reindexing along $\sigma $ .

While split comprehension categories provide a sound interpretation of type theory, non-split comprehension categories arise most naturally in examples. This mismatch can be remedied by applying a well-known construction by Giraud and Bénabou [Reference Giraud16] that replaces a comprehension category $(\mathbb {C}, \rho , \chi )$ with an equivalent split one $(\mathbb {C}, \rho ^R, \chi ^R)$ , universally as a right adjoint functor. We review this construction.

Definition 2.3. Let $(\mathbb {C}, \rho , \chi )$ be a comprehension category and A an object in the fibre over $\Gamma \in \mathbb {C}$ . A local cleavage for A consists of an operation $A[-]$ that assigns to each map $\sigma : \Delta \rightarrow \Gamma $ a Cartesian arrow $\sigma ^* \colon A[\sigma ] \rightarrow A$ over $\sigma $ . We say that a local cleavage $A[-]$ is normal if when applied to the identity $1_{\Gamma } \colon \Gamma \rightarrow \Gamma $ it outputs the identity arrow, i.e., $A[1_{\Gamma }] = A$ and $1_\Gamma ^* = 1_A$ .

For a fibration $\rho \colon \mathbb {E} \rightarrow \mathbb {C}$ the category $\mathbb {E}^R$ is defined as follows. Its objects are pairs $(A , A[-])$ , where A is an object of $\mathbb {E}$ and $A[-]$ is a local normal cleavage for A. An arrow $f \colon (B , B[-]) \rightarrow (A , A[-])$ is just an arrow $f \colon B \rightarrow A$ in $\mathbb {E}$ . Composition and identities are just those of $\mathbb {E}$ . Notice that there is a functor $\rho ^R \colon \mathbb {E}^R \rightarrow \mathbb {C}$ given on objects by $\rho ^R (A , A[-]) = \rho (A)$ . The next lemma is well-known [Reference Curien, Garner and Hofmann9, Reference Giraud16].

Lemma 2.4. The functor $\rho ^R \colon \mathbb {E}^R \rightarrow \mathbb {C}$ is a split Grothendieck fibration.

This construction extends to comprehension categories. Fix a comprehension category $(\mathbb {C}, \rho , \chi )$ . First, we have a morphism $\epsilon _\rho \colon \rho ^R \rightarrow \rho $ of fibrations (i.e., a functor over $\mathbb {C}$ that preserves Cartesian arrows) that acts on an object $(A , A[-])$ of $\mathbb {E}^R$ by forgetting the local normal cleavage. Then, we obtain a split comprehension category $(\mathbb {C}, \rho ^R, \chi ^R)$ , by letting $\chi ^R$ be the composite in

It is natural to ask what structure on a cloven comprehension category gives rise to strictly stable $\Sigma $ , $\Pi $ , and identity types on its right adjoint splitting. As we discuss below, one needs a choice of $\Sigma $ , $\Pi $ , and $\textsf {Id}$ -types which are pseudo-stable.

Definition 2.5. A choice $(\textsf {Id}, r, j)$ of $\textsf {Id}$ -types in a comprehension category is said to be pseudo-stable if for any Cartesian arrow $f \colon B \rightarrow A$ over a morphism $\sigma \colon \Delta \rightarrow \Gamma $ in the base, the following conditions are satisfied:

  1. (1) For any pair of sections $a, b \colon \Gamma \to \Gamma .A$ , there is a Cartesian arrow

    $$ \begin{align*} {\textsf{Id}}_f(a, b) \colon {\textsf{Id}}_{B}(a[\sigma], b[\sigma]) \rightarrow {\textsf{Id}}_A(a, b)\rlap{,} \end{align*} $$
    over $\sigma \colon \Delta \rightarrow \Gamma $ . Moreover, the assignment $f \mapsto {\textsf {Id}}_f(a, b)$ is functorial, that is, ${\textsf {Id}}_{1_A}(a, b) = 1_{{\textsf {Id}}_A(a, b)}$ and ${\textsf {Id}}_{f{\circ}g}(a, b) = {\textsf {Id}}_{f}(a, b) \circ {\textsf {Id}}_{g}(a[\sigma ], b[\sigma ])$ .
  2. (2) The following diagram commutes:

  3. (3) For any pair $(C, t)$ as in $(3)$ of Definition 2.1 and for any Cartesian $h \colon C' \rightarrow C$ over ${\textsf {Id}}_f$ , we can construct a pair $(C', t')$ by pulling back t along h appropriately. We require that the following diagram commutes:

    where the lower horizontal arrow is the (comprehension of the) Cartesian arrow $h \colon C' \rightarrow C$ .

The definition of pseudo-stability for $\Sigma $ -types and $\Pi $ -types is given in the Appendix. The following coherence result connects pseudo-stability in a comprehension category and strict stability on its right adjoint splitting. The proof is based on [Reference Hofmann, Pacholski and Tiuryn18, Theorem 2] for $\Sigma $ -types and $\Pi $ -types and on [Reference Warren33, Theorem 2.48] for $\textsf {Id}$ -types.

Theorem 2.6 (Coherence Theorem).

Let $(\mathbb {C}, \rho , \chi )$ be a comprehension category equipped with pseudo-stable choices of $\Sigma $ -, $\Pi $ -, and $\textsf {Id}$ -types. Then the right adjoint splitting $(\mathbb {C}, \rho ^R, \chi ^R)$ is equipped with strictly stable choices of $\Sigma $ -, $\Pi $ -, and $\textsf {Id}$ -types; and the counit $\epsilon _{\rho } \colon (\mathbb {C}, \rho ^R, \chi ^R) \rightarrow (\mathbb {C}, \rho , \chi )$ preserves each choice of logical structure strictly.

Proof For $\Sigma $ -types, let us consider a dependent tuple (see the Appendix for definition) $(\Gamma , (A, A[-]), (B, B[-]))$ of $(\rho ^R, \chi ^R)$ . The $\Sigma $ -type associated with this tuple has the following form: $(\Sigma _A B, \Sigma _A B [-])$ where $\Sigma _A B$ is the $\Sigma $ -type given by the pseudo-stable choice of $(\rho , \chi )$ applied to $(\Gamma , A, B)$ . The component at $\sigma \colon \Delta \rightarrow \Gamma $ of the local cleavage $\Sigma _A B [-]$ is given as follows. First, we use the local cleavages $A[-]$ and $B[-]$ to construct a Cartesian arrow of dependent tuples $(\sigma , f^*, g^*) \colon (\Delta , A[\sigma ], B[\sigma ]) \rightarrow (\Gamma , A, B)$ where the arrows $f^*$ and $g^*$ are given by the local cleavage (see Definition 2.3). Then, we use the action on morphisms of the pseudo-stable choice of $\Sigma $ -types to define:

This local cleavage is normal because the pseudo-stable choice is functorial.

We must show that this choice is strictly stable. By definition, for $\sigma \colon \Delta \rightarrow \Gamma $ ,

$$ \begin{align*} (\Sigma_A B , \Sigma_A B [-]) [\sigma] &= ((\Sigma_{A} B)[\sigma], (\Sigma_{A} B)[\sigma][-]) \quad (\text{by def.~of the cleavage of } (\rho^R, \chi^R))\\ &= (\Sigma_{A[\sigma]} B[\sigma], (\Sigma_{A} B)[\sigma][-]) \quad (\text{by def.~of } \Sigma_A B [-] ) \rlap{.} \end{align*} $$

It only remains to show that the local cleavages $(\Sigma _A B)[\sigma ][-]$ and $(\Sigma _{A[\sigma ]} B[\sigma ]) [-]$ coincide, but this follows from the functoriality of the pseudo-stable choice of $\Sigma $ -types in $(\rho , \chi )$ .

The construction for the case of dependent products or $\Pi $ -types is completely analogous and hence omitted.

For $\textsf {Id}$ -types, note that the terms of a type $(A, A[-])$ in $(\mathbb {C}^R, \rho ^R, \chi ^R)$ are the same as the terms of A in $(\mathbb {C}, \rho , \chi )$ . Let $(A, A[-])$ be an object in the fibre of $\rho ^R$ over $\Gamma $ , and consider sections $a, b \colon \Gamma \to \Gamma .A$ . We need an object in $\mathbb {E}^R$ over $\Gamma .A.A$ , which we denote as

$$ \begin{align*} \big( {\textsf{Id}}_{A}(a, b), {\textsf{Id}}_A(a, b)[-] \big) \end{align*} $$

for brevity. The object ${\textsf {Id}}_A(a, b)$ is obtained by applying the pseudo-stable choice of $\textsf {Id}$ -types in $(\rho , \chi )$ to A and the sections $a, b \colon \Gamma \to \Gamma .A$ .

To define the local normal cleavage ${\textsf {Id}}_{A}(a, b)[-]$ , consider $\sigma \colon \Delta \rightarrow \Gamma $ in $\mathbb {C}$ . The local normal cleavage $A[-]$ gives a Cartesian arrow $\sigma ^* \colon A[\sigma ] \rightarrow A$ over $\sigma $ . Using the stable functorial choice of $\textsf {Id}$ -types of $(\rho , \chi )$ , we get the Cartesian arrow

$$ \begin{align*} {\textsf{Id}}_{\sigma^*}(a, b) \colon {\textsf{Id}}_{A[\sigma]}(a[\sigma], b[\sigma]) \rightarrow {\textsf{Id}}_A(a, b) \end{align*} $$

over $\sigma $ . We then let ${\textsf {Id}}_{A}(a, b)[\sigma ] := {\textsf {Id}}_{A[\sigma ]}(a[\sigma ], b[\sigma ])$ , so that the Cartesian arrow to ${\textsf {Id}}_A(a, b)$ can be taken to be ${\textsf {Id}}_{\sigma ^*}(a, b)$ . By pseudo-stability, if $\sigma = 1_A$ then

$$ \begin{align*} {\textsf{Id}}_{A[\sigma]}(a[\sigma], b[\sigma]) = {\textsf{Id}}_{A}(a, b) \, \quad {\textsf{Id}}_{\sigma^*}(a, b) = 1_{{\textsf{Id}}_{A}(a, b)} \rlap{,} \end{align*} $$

as required. It remains to check that this choice is strictly stable. For $\sigma \colon \Delta \rightarrow \Gamma $ and sections $a, b \colon \Gamma \to \Gamma .A$ , we must verify that:

$$ \begin{align*} ({\textsf{Id}}_A(a, b)[\sigma], {\textsf{Id}}_A(a, b)[\sigma][-]) = ({\textsf{Id}}_{A[\sigma]}(a[\sigma], b[\sigma]), {\textsf{Id}}_{A[\sigma]}(a[\sigma], b[\sigma]) [-]). \end{align*} $$

By definition, ${\textsf {Id}}_{A}(a, b)[\sigma ]$ is given by the local normal cleavage ${\textsf {Id}}_A[-]$ applied to the arrow $\sigma ^*$ , which is ${\textsf {Id}}_{A[\sigma ]}(a[\sigma ], b[\sigma ])$ . By the functoriality of the pseudo-stable choice of $\textsf {Id}$ -types, the local cleavages ${\textsf {Id}}_A(a, b)[\sigma ][-]$ and ${\textsf {Id}}_{A[\sigma ]}(a[\sigma ], b[\sigma ]) [-]$ coincide.

In the next sections we show how to construct comprehension categories with pseudo-stable choices of $\Sigma $ -, $\Pi $ -, and $\textsf {Id}$ -types. For $\textsf {Id}$ -types, the structure that arises more naturally in example corresponds to the so-called variable-based formulation of $\textsf {Id}$ -types [Reference Gambino and Garner12, Table 3], which is known to be equivalent to the usual formulation. We define this variant in Definition 2.7 and then show that it is equivalent to the notion of Definition 2.1.

Definition 2.7. A choice of variable-based $\textsf {Id}$ -types on a comprehension category $(\mathbb {C}, \rho , \chi )$ consists of an operation that assigns a tuple $({\textsf {Id}}_A, r_A, j_A)$ , to each object A in the fibre over some $\Gamma \in \mathbb {C}$ , where:

  1. (1) ${\textsf {Id}}_A$ is an object in the fibre over $\Gamma .A.A$ ,

  2. (2) $r_A$ is a section of ${\textsf {Id}}_A$ over the diagonal morphism $\delta _A$ , giving a factorisation

  3. (3) $j_A$ is an operation that takes a pair $(C, t)$ , where C is an object C in the slice over $\Gamma .A.A.{\textsf {Id}}_A$ and t is a section of C over $r_A$ , as in the diagram of solid arrows

    to a section $j_A(C, t)$ of χC (shown as the dotted arrow) making both triangles commute.

We will refer to a choice of variable-based $\textsf {Id}$ -types by $({\textsf {Id}}_{v.b.}, r, j)$ .

Definition 2.8. A choice of variable-based $\textsf {Id}$ -types $({\textsf {Id}}_{v. b.}, r, j)$ in a comprehension category is said to be pseudo-stable if for any Cartesian arrow $f \colon B \rightarrow A$ over a morphism $\sigma \colon \Delta \rightarrow \Gamma $ in the base, the following conditions are satisfied.

  1. (1) There is a Cartesian arrow ${\textsf {Id}}_f \colon {\textsf {Id}}_{B} \rightarrow {\textsf {Id}}_A$ over the canonical morphism $\delta _f \colon \Delta .B.B \rightarrow \Gamma .A.A$ , and the assignment $f \mapsto {\textsf {Id}}_f$ is functorial, i.e., ${\textsf {Id}}_{1_A} = 1_{{\textsf {Id}}_A}$ and ${\textsf {Id}}_{\textrm{f} \circ \textrm{g}} = {\textsf {Id}}_{f} \circ {\textsf {Id}}_{g}$ .

  2. (2) The following diagram commutes:

  3. (3) For any pair $(C, t)$ as in $(3)$ of Definition 2.7 and for any Cartesian $h \colon C' \rightarrow C$ over ${\textsf {Id}}_f$ , we can construct a pair $(C', t')$ by pulling back t along h appropriately. We require that the following diagram commutes:

    where the lower horizontal arrow is the (comprehension of the) Cartesian arrow $h \colon C' \rightarrow C$ .

Proposition 2.9. A cloven comprehension category $(\mathbb {C}, \rho , \chi )$ is equipped with a pseudo-stable choice of $\textsf {Id}$ -types if and only if it is equipped with a pseudo-stable choice of variable-based $\textsf {Id}$ -types.

Proof Suppose we have a pseudo-stable choice of $\textsf {Id}$ -types. To construct a pseudo-stable choice of variable-based $\textsf {Id}$ -types, consider an object A over $\Gamma $ , and we define ${\textsf {Id}}_A := {\textsf {Id}}_A(x, y)$ over $\Gamma .A.A$ using the canonical variables $x, y \colon \Gamma .A.A \to \Gamma .A.A.A$ . The operations r and j are given just as in Definition 2.5.

For the converse, assume a pseudo-stable choice of variable-based $\textsf {Id}$ -types. Consider an object A over $\Gamma $ and sections $a, b \colon \Gamma \to \Gamma .A$ . We have ${\textsf {Id}}_A$ over $\Gamma .A.A$ , and thus, we can define ${\textsf {Id}}_A(a, b)$ to be the reindexing of ${\textsf {Id}}_A$ along $(a, b)\colon \Gamma \to \Gamma .A.A$ , as in

(2.1)

We can extend this definition to provide the rest of the data in part $(1)$ of Definition 2.5. Consider $f \colon B \to A$ Cartesian over $\sigma \colon \Delta \to \Gamma $ , then we have

where ${\textsf {Id}}_f(a, b) \colon {\textsf {Id}}_{B}(a[\sigma ], b[\sigma ]) \rightarrow {\textsf {Id}}_A(a, b)$ is given uniquely by the universal property of the square in (2.1). If f (and $\sigma $ ) are identities, then by pseudo-stability of $\textsf {Id}$ -types, ${\textsf {Id}}_f \colon {\textsf {Id}}_A \to {\textsf {Id}}_A$ is also the identity, and thus ${\textsf {Id}}_f(a, b)$ must be the identity by the uniqueness property that characterises it. Similarly, the pseudo-stability of the variable-based $\textsf {Id}$ -types and the uniqueness property of ${\textsf {Id}}_f(a, b)$ can be used to show that this operation preserves composition.

For the operations r and j, we first consider the diagram

where the square on the right is obtained by the functoriality of the pseudo-stable choices of variable-based $\textsf {Id}$ -types to $\chi _{A, A} \colon \Gamma .A.A \to \Gamma $ . The square on the left is obtained by definition of ${\textsf {Id}}_A(x, y)$ applied to the object A weakened to $\Gamma .A.A$ and to the variables $x, y \colon \Gamma .A.A \to \Gamma .A.A.A$ . Both top horizontal arrows are Cartesian and the composition of the bottom two arrows equals the identity. Thus ${\textsf {Id}}_A(x, y) \cong {\textsf {Id}}_A$ as objects over $\Gamma .A.A$ . We can then transport the operations r and j along this isomorphism.

Remark 2.10. The reason for introducing two versions of identity types is that examples give rise more naturally to the variable-based $\textsf {Id}$ -types of Definition 2.7, while the coherence theorem Theorem 2.6 is easier to prove constructively with the identity types of Definition 2.1. Indeed, if one works with variable-based $\textsf {Id}$ -types and tries to follow the argument used for $\Sigma $ - and $\Pi $ -types, the construction of the local cleavage seems to require a case distinction on whether the argument is an identity or not to ensure functoriality.

Our goal in the reminder of the paper is to construct and study comprehension categories equipped with pseudo-stable choices of $\Sigma $ -, $\Pi $ -, and $\textsf {Id}$ -types. By Theorem 2.6, these will give rise to genuine models of Martin-Löf type theory with $\Sigma $ -, $\Pi $ -, and $\textsf {Id}$ -types.

3 Algebraic weak factorisation systems

We review some of the basic theory on algebraic weak factorisation systems and on orthogonal categories of arrows [Reference Bourke and Garner5, Reference Bourke and Garner6, Reference Garner15, Reference Grandis and Tholen17]. These will be the basis for our definition of a type-theoretic algebraic weak factorisation system in Section 4.

First of all, recall that a functorial factorisation $(Q, L, R)$ on a category $\mathbb {C}$ consists of an operation that assigns to each arrow $f \colon X \rightarrow Y$ a factorisation

$$ \begin{align*} X \xrightarrow{Lf} Qf \xrightarrow{Rf} Y \end{align*} $$

functorially in f. The induced endofunctors $L, R \colon \mathbb {C}^{\rightarrow } \rightarrow \mathbb {C}^{\rightarrow }$ are canonically copointed and pointed respectively; that is, there are a counit $\epsilon \colon L \rightarrow 1$ and a unit $\eta \colon 1 \rightarrow R$ . We denote the category of $(R, \eta )$ -algebras by $\textbf{R}\text{-}\textbf{Map}$ and the category of $(L , \epsilon )$ -coalgebras by $\textbf{L}\text{-}\textbf{Map}$ , and refer to their objects also as R-maps and L-maps, respectively. There are faithful, but not full, forgetful functors to the arrow category,

$$ \begin{align*} \textbf{L}\text{-}\textbf{Map} \rightarrow \mathbb{C}^{\rightarrow} \quad \text{and} \quad \textbf{R}\text{-}\textbf{Map} \rightarrow \mathbb{C}^{\rightarrow} \rlap{.} \end{align*} $$

Let $(g, \lambda ) \colon A \rightarrow B$ be an L-map, $(f, s) \colon X \rightarrow Y$ an R-map, and $(h, k) \colon g \rightarrow f$ a morphism in the arrow category. Then we can construct a filler for the square $(h, k)$ , which is given by $j \colon = s \cdot Q(h, k) \cdot \lambda $ , where $Q(h, k) \colon Qg \rightarrow Qf$ is the map obtained by applying the functorial factorisation to $(h, k)$ . These fillers satisfy naturality conditions with respect to morphism of L-maps and R-maps.

Definition 3.1. An algebraic weak factorisation system (awfs for short) on a category $\mathbb {C}$ consists of the following data:

  1. (1) a functorial factorisation $(Q, L, R)$ on $\mathbb {C}$ ,

  2. (2) an extension of the pointed endofunctor $(R, \eta )$ to a monad $(R, \eta , \mu )$ ,

  3. (3) an extension of the copointed endofunctor $(L , \epsilon )$ to a comonad $(L , \epsilon , \delta )$ ,

  4. (4) the canonical map $\Delta \colon LR \rightarrow RL$ defined using the monad and comonad structures is a distributive law.

We refer to an awfs as in Definition 3.1 just as $(L, R)$ . Item (4) of Definition 3.1 is a technical requirement which plays no role in this work. Given an awfs as Definition 3.1, we have also the category of algebras for the monad $(R, \eta , \mu )$ , which we denote $\textbf{R}\text{-}\textbf{Alg}$ , and the category of coalgebras for the comonad $(L , \epsilon , \delta )$ , which we denote $\textbf{L}\text{-}\textbf{Coalg}$ . We refer to the objects of $\textbf{R}\text{-}\textbf{Alg}$ and $\textbf{L}\text{-}\textbf{Coalg}$ as R-algebras and L-coalgebras, respectively. There are full and faithful functors $\textbf{R}\text{-}\textbf{Alg} \hookrightarrow \textbf{R}\text{-}\textbf{Map} $ and $\textbf{L}\text{-}\textbf{Coalg} \hookrightarrow \textbf{L}\text{-}\textbf{Map}$ .

Remark 3.2. The category $\textbf{R}\text{-}\textbf{Alg}$ (and also $\textbf{R}\text{-}\textbf{Map}$ ) is closed under ‘vertical’ composition; that is if $(f , s) \colon X \rightarrow Y$ and $(f', s') \colon Y \rightarrow Z$ are R-algebras then there is a canonical R-algebra structure $s' \cdot s$ on the composite $f' \cdot f$ . In fact, finding such a vertical composition operation provides a complete characterisations of the awfs [Reference Barthel and Riehl2, Theorem 4.15].

Also, for an R-algebra $(f, s)$ and a pullback square $(h , k) \colon f' \rightarrow f$ then, there exists a unique R-algebra structure $s'$ on $f'$ making $(h ,k)$ a morphism of R-algebras. The same result holds for R-maps.

We recall some notions regarding categories of arrows and of orthogonality in the setting of awfs’s. By a category of arrows over $\mathbb {C}$ we mean a functor $u \colon \mathcal {J} \rightarrow \mathbb {C}^\rightarrow $ where $\mathcal {J}$ is a category. A right $\mathcal {J}$ -map consists of a pair $(f , \theta )$ where $f \colon X \rightarrow Y$ is an arrow of $\mathbb {C}$ and $\theta $ is a right lifting operation against $\mathcal {J}$ , i.e., $\theta $ assigns a filler $\theta (i)$ to each commutative square of the form $(l,m) \colon u_i \rightarrow f$ , with $i \in \mathcal {J}$ . These fillers, in addition, are compatible with the arrows in $\mathcal {J}$ in the evident way.

Given a pair of right $\mathcal {J}$ -maps $(f, \theta )$ and $(f', \theta ')$ , a right $\mathcal {J}$ -map morphism consists of a square $(\alpha , \beta ) \colon f \rightarrow f'$ such that for every $i \in \mathcal {J}$ , the triangle created by the corresponding choices of diagonal fillers commute. Given a category of arrows $u \colon \mathcal {J} \rightarrow \mathbb {C}^{\rightarrow }$ , we define the category consisting of right $\mathcal {J}$ -maps $(f, \theta )$ together with the corresponding morphisms. There is a functor forgetting the lifting structure. It can be shown that this operation defines a contravariant functor denoted by . In a completely analogous manner, we can define the concepts of left $\mathcal {J}$ -map and left $\mathcal {J}$ -map morphism, and obtain a dual functor . These data constitute the orthogonality adjunction, which generalises the classical Galois connection between orthogonal classes of maps:

(3.1)

The next proposition [Reference Bourke and Garner5, Lemma 1] relates awfs and orthogonal categories of arrows.

Proposition 3.3. Let $(L, R)$ be an awfs on $\mathbb {C}$ . Then, there are lifting functors over $\mathbb {C}^{\rightarrow }$ as shown in the following commutative diagram:

All functors are full and faithful and the diagonal one is an isomorphism. There is also a functor

, which is not an equivalence in general.

We say that an awfs $(L, R)$ is algebraically-free on a category of arrows $\mathcal {J}$ if there is a functor $\eta \colon \mathcal {J} \rightarrow \textbf{L}\text{-}\textbf{Coalg}$ over $\mathbb {C}^{\rightarrow }$ , such that the composition

is an isomorphism of categories, cf. [Reference Garner15, Theorem 4.4]. The following result regarding algebraically-free awfs is implicit in the literature (cf. [Reference Gambino and Sattler14, Theorem 6.9] for example).

Proposition 3.4. If $(L, R)$ is algebraically-free on some category of arrows $\mathcal {J}$ , then there are functors back-and-forth $\mathbf{R}\text{-}\mathbf{Map} \leftrightarrow \mathbf{R}\text{-}\mathbf{Alg}$ over $\mathbb {C}^{\rightarrow }$ .

This proposition shows that when working with an algebraically-free awfs $(L, R)$ (as will be the case in Section 6), any construction made using R-maps can be functorially transported to a construction using R-algebras, and vice versa.

4 Type-theoretic awfs’s

In this section we introduce the notion of a type-theoretic awfs. We then show how a type-theoretic awfs induces a comprehension category structure equipped with pseudo-stable choices of $\Sigma $ -, $\Pi $ -, and $\textsf {Id}$ -types. We begin by making the connection between awfs and comprehension categories.

Lemma 4.1. Let $(L,R)$ be an awfs over $\mathbb {C}$ . The functor $\mathbf{R}\text{-}\mathbf{Map} \rightarrow \mathbb {C}$ mapping an R-map $(f, s)$ to $cod(f)$ is a Grothendieck fibration. Moreover, the Cartesian arrows are the morphisms of R-maps whose underlying square is a pullback square.

Proposition 4.2. Let $(L, R)$ be an awfs on a category $\mathbb {C}$ . Then there is a comprehension category

where U is the evident forgetful functor.

Results analogous to Lemma 4.1 and Proposition 4.2 hold also for $\textbf{R}\text{-}\textbf{Alg}$ . Next, we study additional logical structure on the comprehension category induced by an awfs.

Proposition 4.3. Let $(L, R)$ be an awfs on $\mathbb {C}$ . Then the comprehension category induced by $(L, R)$ is equipped with a pseudo-stable choice of $\Sigma $ -types.

Proof Let $(f, s) \colon X \to \Gamma $ and $(g, t) \colon Y \to X$ be in $\textbf{R}\text{-}\textbf{Map}$ . The pullback functor along $f \colon X \to \Gamma $ has a left adjoint $\Sigma _f \colon \mathbb {C}/X \rightarrow \mathbb {C}/\Gamma $ , which is given by composition. By Remark 3.2, this functor lifts to slices of $\textbf{R}\text{-}\textbf{Map}$ , as follows:

For the formation rule, we define $\Sigma _f g \colon = \Sigma _f (g) = f\circ g\colon Y \to \Gamma $ . For the introduction rule, we define $\textrm{pair}_{f,g} \colon Y \rightarrow Y$ over f,

by letting $\textrm{pair}_{f,g} \colon = 1_{Y}$ . Finally, for the elimination rule, let C be over $\Sigma _f g$ and let t be a section of C over $\textrm{pair}_{f, g}$ , and we define $\textrm{sp}_{f,g}(C,t) \colon = t$ . The computation rule holds trivially, thus giving rise to a choice of $\Sigma $ -types. Stable functoriality and coherence of elimination terms also follow easily; the crucial observation is that vertical composition of R-maps plays nicely with the horizontal categorical structure (see [Reference Bourke and Garner5, Section 2.8]).

The case of $\Pi $ -types requires the following property.

Definition 4.4. An awfs $(L,R)$ on $\mathbb {C}$ satisfies the exponentiability property if for any $g \colon Z \rightarrow Y$ , $f \colon Y \rightarrow X$ in the image of $\textbf{R}\text{-}\textbf{Map} \rightarrow \mathbb {C}^{\rightarrow }$ , the exponential $\Pi _fg \in \mathbb {C}/X$ exists.

Clearly, any awfs in a locally Cartesian closed category satisfies the exponentiability property. We need something more than mere exponentiability, namely a way to coherently lift an exponential from $\mathbb {C}/X$ to $\textbf{R}\text{-}\textbf{Map}/X$ . For this reason we recall the following notion from [Reference Gambino and Sattler14].

Definition 4.5. Let $(L, R)$ be an awfs on a category $\mathbb {C}$ . A functorial Frobenius structure is given by a lift of the pullback functor as shown:

where $PB(f, g)$ denotes the pullback of g along f.

Proposition 4.6. Consider an awfs $(L, R)$ on $\mathbb {C}$ satisfying the exponentiability property and equipped with a functorial Frobenius structure. Then the comprehension category induced by $(L, R)$ has a pseudo-stable choice of $\Pi $ -types.

Proof Consider $(f, s) \colon X \rightarrow \Gamma $ in $\textbf{R}\text{-}\textbf{Map}$ . By the exponentiability property, we have a pushforward functor $\Pi _f \colon \underline {\text{R}}/X \to \mathbb {C}/\Gamma $ (here $\underline {\text{R}}/X$ denotes the slice category whose objects are arrows $g \colon Y \to X$ that can be equipped with an R-map structure) and, by [Reference Gambino and Sattler14, Proposition 6.5 and Proposition 6.7] this lifts to a functor

Using the functors

of Proposition 3.3 we can find a lift of $\Pi _f$ as follows:

Consider an R-map $(g ,t) \colon Y \to X$ . For the formation rule, we apply $\Pi _f$ to obtain an R-map $\Pi _f g \colon Y \rightarrow \Gamma $ . For the introduction rule, we define the operation $\lambda $ ; consider a section t of g, this is an arrow $t \colon 1_{X} \rightarrow g$ in $\mathbb {C}/X$ and since $f^*(1_{\Gamma }) \cong 1_{X}$ this is the same thing as an arrow $t \colon f^*(1_{\Gamma }) \rightarrow g$ . Taking the transpose yields a map $\lambda (t) \colon 1_{\Gamma } \rightarrow \Pi _f g$ , as required. For the elimination rule we need to provide an arrow $\textrm{app}_{f,g} \colon f^*(\Pi _f g) \rightarrow g$ . We can take $\textrm{app}_{f,g}$ to be the counit of the adjunction, $\textrm{app}_{f,g}\colon = \epsilon _{g} \colon f^*(\Pi _f g) \rightarrow g$ . The computation rule follows easily from the bijection $\lambda \colon \mathbb {C} /X [1_{X}, g] \to \mathbb {C} /\Gamma [1_{\Gamma }, \Pi _f g]$ .

It only remains to show the assignment $(\Gamma , f, g) \mapsto (\Pi _f g, \lambda ,\ \textrm{app})$ is pseudo-stable. This is a diagram-chasing argument, which relies on the fact that, for a Cartesian square of the form

the Beck-Chevalley isomorphism $BC \colon \Delta _\sigma \Pi _f \rightarrow \Pi _{f'} \Delta _\tau $ (where we write $\Delta _\sigma $ and $\Delta _\tau $ for the pullback functors along $\sigma $ and $\tau $ , respectively) lifts to an isomorphism of R-maps by [Reference Gambino and Sattler14, Proposition 6.7]. We leave the details to the readers.

Remark 4.7. As shown above, an awfs equipped with a functorial Frobenius structure implies the existence of lifts $\Sigma _f\colon \textbf{R}\text{-}\textbf{Map}/X \rightarrow \textbf{R}\text{-}\textbf{Map}/\Gamma $ and $\Pi _f\colon \textbf{R}\text{-}\textbf{Map}/X \rightarrow \textbf{R}\text{-}\textbf{Map}/\Gamma $ of the composition and pushforward functor, respectively, for each R-map $(f,s)$ . However, the underlying adjunctions need not lift to $\textbf{R}\text{-}\textbf{Map}$ . Fortunately, this is not necessary for the construction of pseudo-stable choices of $\Sigma $ - and $\Pi $ -types since we only need the universal property at the level of the underlying category.

The case for intensional identity types is more complicated. Here the extra algebraic structure is essential; it will allow us to keep track of the necessary information needed to coherently produce the ‘elimination terms’ (i.e., the fillers j of Item 3 from Definition 2.7) for the choice of $\textsf {Id}$ -types. To address this issue, recall that a functorial factorisation of the diagonal is a functor $\mathcal {P} \colon \mathbb {C}^{\rightarrow } \rightarrow \mathbb {C}^{\rightarrow } \times _{\mathbb {C}} \mathbb {C}^\rightarrow $ that acts on a map $f \colon X \rightarrow Y$ as

$$ \begin{align*} f \mapsto (X \xrightarrow{r_f} PX \xrightarrow{\rho_f} X \times_{Y} X) \rlap{,} \end{align*} $$

such that the composition $\rho _f \cdot r_f$ equals the diagonal morphism $\delta _f \colon X \rightarrow X \times _Y X$ . We say that a functorial factorisation of the diagonal is stable if the square $\rho _{(h, k)} \colon \rho _{f'} \rightarrow \rho _f $ is Cartesian when $(h, k) \colon f' \rightarrow f$ is so. We denote a (stable) functorial factorisation of the diagonal by $\mathcal {P} = \langle r, \rho \rangle $ , where $r, \rho \colon \mathbb {C}^{\rightarrow } \rightarrow \mathbb {C}^{\rightarrow }$ are the induced functors from the two legs of the factorisation respectively. The following notion was first described in [Reference van den Berg and Garner3, Definition 3.3.3].

Definition 4.8. Let $(L, R)$ be an awfs on $\mathbb {C}$ . A stable functorial choice of path objects (or sfpo for conciseness) consists of a lift of a stable functorial factorisation of the diagonal $\mathcal {P}$ as shown in the following diagram:

Proposition 4.9. Let $(L, R)$ be an awfs equipped with an sfpo of the form $\mathcal {P} = \langle r, \rho \rangle $ . Then $(L, R)$ is equipped with the structure of a pseudo-stable choice of $\textsf {Id}$ -types.

Proof We first construct a pseudo-stable choice $({\textsf {Id}}_{v.b.}, r, j)$ of variable-based $\textsf {Id}$ -types (see Definition 2.7) and then apply Proposition 2.9 in order to obtain a pseudo-stable choice of $\textsf {Id}$ -types (see Definition 2.5).

The choices for $\textsf {Id}$ and r are canonically given by the stable functorial choice of path objects. These satisfy the coherence properties of Definition 2.8. Since the maps $r_f$ are equipped with an L-map structure, we have lifts against R-maps. Using this, we obtain a choice of canonical elimination terms (i.e., j-terms).

We are left to verify that this choice is coherent. For this, it is sufficient to show that given a Cartesian morphism of R-maps $(h , k) \colon f' \rightarrow f$ , a R-map $q \colon C \rightarrow PX$ , if the diagram on the left of (4.1) commutes, then so does the one on the right.

(4.1)

where $q^* \colon C^* \rightarrow PX'$ is defined as the pullback of q along $P(h,k)$ . The arrows denoted by j are the canonical choices of lifts. The arrow $d^*$ is the pullback of d along $P(h, k)$ , i.e., it is defined to be the unique arrow $d^* \colon X' \rightarrow C^*$ such that:

(4.2) $$ \begin{align} q^* \circ d^* = r_{f'} \quad \text{and} \quad P(h, k)^* \circ d^* = d \circ h. \end{align} $$

We split the problem into two. First, consider the following diagram equipped with the corresponding canonical lifts:

Note that $j = P(h, k)^* \circ j(d^*)$ since the Cartesian square $q^* \rightarrow q$ is a morphism of R-maps. Now consider the following lifting problem:

Once more, $j' = j(d) \circ P(h, k)$ since the square $r_{f'} \rightarrow r_f$ is morphism of L-maps. Finally, (4.2) tells us that the outer squares of the two previous diagrams are equal, implying that they have the same lift $j = j'$ . Thus, $P(h , k)^* \circ j(d^*) = j(d) \circ P(h, k)$ as needed.

Type-theoretic awfs’s, defined below, collect the structure that we discussed so far.

Definition 4.10. Let $\mathbb {C}$ be a category. A type-theoretic awfs on $\mathbb {C}$ consists of the following data:

  1. (1) an awfs $(L, R)$ on $\mathbb {C}$ satisfying the exponentiability property,

  2. (2) a functorial Frobenius structure on $(L, R)$ ,

  3. (3) a stable functorial choice of path objects on $(L, R)$ .

The following theorem summarises our results obtained so far in this section.

Theorem 4.11. Let $(L, R)$ be an awfs on a category $\mathbb {C}$ with the structure of a type-theoretic awfs. Then the comprehension category induced by $(L, R)$ is equipped with pseudo-stable choices of $\Sigma $ -, $\Pi $ -, and $\textsf {Id}$ -types.

We conclude the section summarising how type-theoretic awfs’s give rise to models of type theory.

Theorem 4.12. Let $(L, R)$ be an awfs on a category $\mathbb {C}$ with the structure of a type-theoretic awfs. Then the right adjoint splitting of the comprehension category associated with $(L, R)$ is equipped with strictly stable choices of $\Sigma $ -, $\Pi $ -, and $\textsf {Id}$ -types.

Proof Combine Theorem 2.6 and Theorem 4.11.

5 Revisiting the groupoid model

The aim of this section is to provide a first example of a type-theoretic awfs by revisiting the original Hofmann–Streicher model [Reference Hofmann and Streicher20] on the category of groupoids. Explicitly, we construct a type-theoretic awfs $(C_f, F)$ on the category $\underline {\text{Gpd}}$ of groupoids and functors.

Consider $f \colon X \rightarrow Y$ a functor between groupoids. The comma category of f, denoted by $\mathbf {\downarrow f}$ , has as objects tuples $(a, b, p)$ with $a \in X$ , $b \in Y$ and $p \colon b \rightarrow fa$ . We have that $\mathbf {\downarrow f}$ is again a groupoid, and moreover the construction is functorial: ${\downarrow (-)} \colon \underline {\text{Gpd}}^{\rightarrow } \rightarrow \underline {\text{Gpd}}$ . This forms the middle part of a functorial factorisation assigning

to $f \colon X \rightarrow Y$ , where $C_t f (a) = (a, fa, 1_{fa})$ and $Ff(a, b, p) = b$ .

Proposition 5.1. The functorial factorisation $(\mathbf {\downarrow (-)}, C_t, F)$ is an algebraic weak factorisation system on $\underline {\text{Gpd}}$ . The $C_t$ -maps are the strong deformation retractions, while the F-maps are the normal isofibrations.

Proof We start by examining the structures of the $C_t$ -maps and the F-maps. We know that an F-map structure on a map $f \colon X \rightarrow Y$ corresponds to a lift s as shown on the diagram on the left below:

A closer analysis will show that s equips $f \colon X \rightarrow Y$ with the structure of a normal isofibration. An L-map structure on $g \colon A \rightarrow B$ is given by a lift $\lambda $ as shown on the diagram on the right of the previous figure. The structure obtained from such a lift $\lambda $ can be decomposed as $\lambda (b) = (\lambda _1(b) , b , \lambda _2(b))$ where $\lambda _1 \colon B \rightarrow A$ corresponds to a retraction of g and $\lambda _2 \colon 1_B \rightarrow g \circ \lambda _1$ corresponds to a natural transformation constant on the image of f. This information corresponds to the structure of a strong deformation retraction.

We construct the corresponding structures of a comonad and a monad for $C_t$ and F respectively. We provide a brief description and leave the details to the reader. The comultiplication $\delta _f \colon \mathbf {\downarrow f} \rightarrow \mathbf {\downarrow C_t f}$ for $C_t$ is defined by letting

$$ \begin{align*} \delta_f \colon (a, b , p) \mapsto (a, (a, b, p), (1_a, p) \colon (a, b, p) \rightarrow (a, Fa, 1_{fa})) \rlap{.} \end{align*} $$

Similarly, the endofunctor F has a multiplication $\mu _f \colon \mathbf {\downarrow Ff} \rightarrow \mathbf {\downarrow f}$ given by

$$ \begin{align*} \mu_f \colon ((a, b , p), \tilde{b}, \tilde{p} \colon \tilde{b} \rightarrow b) \mapsto (a, \tilde{b}, p \circ \tilde{p}) \, .\end{align*} $$

Remark 5.2. The identification of the F-maps with normal isofibrations implies that the category $\underline {\text{Gpd}}$ satisfies the exponentiability condition (see Definition 4.4) with respect to the awfs $(C_t, F)$ since isofibrations can be exponentiated [Reference Conduché8], even if $\underline {\text{Gpd}}$ is not locally Cartesian closed. The F-algebras can be identified with split isofibrations. An extension of the theory considered here to F-algebras has been considered in [Reference van den Woerkom34].

Proposition 5.3. The awfs $(C_t, F)$ is equipped with a functorial Frobenius structure.

Proof We show that pulling back a $C_t$ -map along an F-map is uniformly a $C_t$ -map. Consider $(g, \lambda ) \colon A \rightarrow Y$ a $C_t$ -map and $(f, s) \colon X \rightarrow Y$ an F-map. Let $g' \colon A \times _Y X \rightarrow X$ be the pullback of g along f. We define a $C_t$ -map structure $\lambda '$ on $g'$ which, by Proposition 5.1, corresponds to a strong deformation retraction $(g', \lambda _1', \lambda _2')$ . Using that f corresponds to a normal isofibration, we can find for each point $x \in X$ , a point $x' \in X$ and a lift $\lambda _2'(x)$ of $\lambda _2(fx)$ , as in

We define $\lambda _1'(x) = (\lambda _1(fx), x')$ ; the homotopy $\lambda _2' \colon 1 \rightarrow g' \circ \lambda _1'$ is defined using the top arrow in the previous diagram.

We turn our attention to identity types. The category $\underline {\text{Gpd}}$ has a stable and functorial factorisation of the diagonal given on a map $f \colon X \rightarrow Y$ by:

where the objects of $Pf$ are tuples $(a, a', p)$ such that $p \colon a \rightarrow a'$ is a morphism in X over the identity, i.e., $fa = fa'$ and $fp = 1_{fa}$ . The map $r_f$ is given by $a \mapsto (a, a, 1_a)$ and the map $\rho _f$ is given by $(a, b, p) \mapsto (a, b)$ .

Proposition 5.4. The awfs $(C_t, F)$ is equipped with a stable and functorial choice of path objects.

Proof For an F-map $(f,s) \colon X \rightarrow Y$ , we need to uniformly provide a $C_t$ -map structure to $r_f$ and an F-map structure to $\rho _f$ . Let us define $\lambda _1 := t_f \colon Pf \rightarrow X$ the canonical target map. We define the natural transformation $\lambda _2 \colon 1_{Pf} \rightarrow r_f \circ t_f$ by

$$ \begin{align*} \lambda_2(a, a', p) := (p, 1_{a'}) \colon (a, a', p) \rightarrow (a', a', 1_a') \rlap{.} \end{align*} $$

This corresponds to a strong deformation retraction structure on $r_f$ . An F-map structure on $\rho _f$ corresponds to a normal isofibration. Consider $(\alpha , \beta ) \colon (b, b') \rightarrow (a, a')$ in $X \times _Y X$ and an object $(a, a', p) \in Pf$ over $(a, a')$ . We find the lift $(\alpha , \beta ) \colon (b, b', q) \rightarrow (a, a', p)$ by setting $q := \beta \circ p \circ \alpha ^{-1} \colon b \rightarrow b'$ .

Theorem 5.5. The awfs $(C_t, F)$ on the category $\underline {\text{Gpd}}$ is equipped with the structure of a type-theoretic awfs.

By Theorem 4.12 and Theorem 5.5 we obtain a version of the groupoid model of [Reference Hofmann and Streicher20], using normal isofibrations instead of split fibrations and presented in terms of a split comprehension category rather than of a category with families [Reference Dybjer10]. In our presentation, the connection to the homotopy theory of groupoids is made explicit thanks to the notion of a type-theoretic awfs.

6 Type-theoretic awfs from uniform fibrations

In this section we investigate how to obtain type-theoretic awfs using the theory of uniform fibrations of [Reference Gambino and Sattler14]. This provides a major source of examples of categories equipped with type-theoretic awfs, including some on simplicial and cubical sets.

We begin by recalling the pushout-product construction [Reference Riehl and Verity30]. Let us consider a Grothendieck topos $\mathbb {E}$ ; the pushout-product bifunctor $- \hat {\times } - \colon \mathbb {E}^{\rightarrow } \times \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ is defined on a pair of arrows $f \colon X \rightarrow Y$ and $g \colon A \rightarrow B$ as the dotted arrow in

An interval object in $\mathbb {E}$ consists of an object I together with two morphisms $ \delta ^0, \delta ^1 \colon \bot \rightarrow I $ (where we write $\bot $ for the terminal object of $\mathbb {E}$ ), respectively called the left and right endpoint inclusions; these morphisms are required to be disjoint, i.e., the pullback of one along the other is the initial object. We require the following additional structure. The connection operations on I are given by $ c^k \colon I \times I \rightarrow I $ for $k \in \{0,1\}$ , making the following diagrams commute:

Connections correspond to a special type of degeneracy maps that can be pictured as the two possible deformations of the square $I \times I$ into its diagonal by fixing one of the two endpoints. With this in place, we proceed to describe the construction of uniform fibrations. Our starting point is the following definition.

Definition 6.1. A suitable topos consists of a tuple $(\mathbb {E}, I, \mathcal {M})$ where $\mathbb {E}$ is a Grothendieck topos equipped with an interval object I with connections and a class $\mathcal {M}$ of arrows in $\mathbb {E}$ satisfying the following conditions:

  1. (M1) the objects of $\mathcal {M}$ are monomorphisms,

  2. (M2) the initial map $\emptyset \rightarrow X$ is in $\mathcal {M}$ for every $X \in \mathbb {E}$ ,

  3. (M3) the objects of $\mathcal {M}$ are closed under pullback along any arrow in $\mathbb {E}$ ,

  4. (M4) the elements of $\mathcal {M}$ are closed under pushout-product with the endpoint inclusions, i.e., for each $j \in \mathcal {M}$ , we have that $\delta ^k \hat {\times } j \in \mathcal {M}$ .

The elements of $\mathcal {M}$ are called generating monomorphisms.

Given a suitable topos $(\mathbb {E}, I, \mathcal {M})$ , we can consider $\mathcal {M}$ as a category by taking Cartesian squares as arrows. Now, let us denote by $\mathcal {M}_{\hat {\times }}$ the category that has as objects maps of the form $\delta ^k \hat {\times } j$ with $j\in \mathcal {M}$ and $k \in \{0,1\}$ and whose morphisms are given by squares of the form $ \delta ^k \hat {\times } \sigma \colon (\delta ^k \hat {\times } j') \rightarrow (\delta ^k \hat {\times } j) $ induced by functoriality of the pushout-product applied to Cartesian squares $\sigma \colon j' \rightarrow j$ between generating monomorphisms. We consider $\mathcal {M}_{\hat {\times }}$ to be a category of arrows by taking the inclusion into $\mathbb {E}^{\rightarrow }$ .

Construction 6.2. Let us consider a suitable topos $(\mathbb {E}, I, \mathcal {M})$ . The category of arrows of trivial uniform fibrations, denoted by

$$ \begin{align*} \underline{\text{TrivUniFib}} \rightarrow \mathbb{E}^{\rightarrow} \rlap{,} \end{align*} $$

is defined as the right orthogonal category of arrow to $\mathcal {M}$ , that is, . Analogously, the category of arrows of uniform fibrations, denoted by

$$ \begin{align*} \underline{\text{UniFib}} \rightarrow \mathbb{E}^{\rightarrow} \rlap{,} \end{align*} $$

is defined as the right orthogonal category of arrow to $\mathcal {M}_{\hat {\times }}$ , i.e., .

We construct awfs’s of trivial uniform fibrations and uniform fibrations, even if we cannot apply Garner’s small object argument directly because $\mathcal {M}$ need not be small.

Lemma 6.3. Consider a suitable topos $(\mathbb {E}, I, \mathcal {M})$ with a fixed dense small subcategory $\mathbb {A}$ . Let us denote by $\mathcal {I}$ the full subcategory of $\mathcal {M}$ spanned by those arrows in $\mathcal {M}$ whose codomain lie in $\mathbb {A}$ . Similarly, denote by $\mathcal {I}_{\hat {\times }}$ the full subcategory of $\mathcal {M}_{\hat {\times }}$ whose objects are pushout-product maps $\delta ^k \hat {\times } j$ with $j \in \mathcal {I}$ . Then the following are satisfied:

  1. (1) The right orthogonal functor of the inclusion $\textsf {inc} \colon \mathcal {I} \hookrightarrow \mathcal {M}$ is an isomorphism i.e., .

  2. (2) The right orthogonal functor of the inclusion $\textsf {inc}_{\hat {\times }} \colon \mathcal {I}_{\hat {\times }} \hookrightarrow \mathcal {M}_{\hat {\times }}$ is an isomorphism i.e., .

Proof We start with $(1)$ . In order to define an inverse , consider an object , where $\theta $ is a lifting operation for squares $(a, b) \colon i \to f$ with $i \in \mathcal {I}$ . We need a way to canonically extend $\theta $ to all arrows in $\mathcal {M}$ . In order to do this, let us consider $j\colon A \to B$ in $\mathcal {M}$ . Since $\mathbb {A}$ is dense, we can express B canonically as a colimit $B \cong \textsf {colim}_{k \colon \mathscr {A} \to B} \mathscr {A}$ with $\mathscr {A} \in \mathbb {A}$ . Moreover, in a topos, pullbacks commute with colimits, and thus we obtain

$$ \begin{align*} j \cong \textsf{colim}_{k \colon \mathscr{A} \to B} ( \Delta_k j) \rlap{,} \end{align*} $$

where $\Delta _k j$ is the pullback of $j \colon A \to B$ along $k \colon \mathscr {A} \to B$ . Since $\mathcal {M}$ is closed under base change, $\Delta _k j \in \mathcal {M}$ and by definition, we get $ \Delta _k j \in \mathcal {I}$ . A filler for a square $(a, b) \colon j \to f$ is canonically obtained from the universal property of the colimit, applied to the collections of fillers given by $\theta $ relative to $\Delta _k j$ for each $k \colon \mathscr {A} \to B$ .

For $(2)$ , we proceed in a similar manner. Consider , we need to canonically extend $\theta $ to all arrows in $\mathcal {M}_{\hat {\times }}$ . For this, consider $\delta ^k \hat {\times } j \in \mathcal {M}_{\hat {\times }}$ . By definition, $j \in \mathcal {M}$ and thus $j \cong \textsf {colim}_{k \colon \mathscr {A} \to B} (k^*j)$ by the previous argument. Since $\delta ^k \hat {\times } -$ is cocontinuous, we obtain:

$$ \begin{align*} \delta^k \hat{\times} j \cong \delta^k \hat{\times} \textsf{colim}_{k \colon \mathscr{A} \to B} (\Delta_k j) \cong \textsf{colim}_{k \colon \mathscr{A} \to B} (\delta^k \hat{\times} ( \Delta_k j)) \rlap{,} \end{align*} $$

and by definition $\delta ^k \hat {\times } (\Delta _k ) \in \mathcal {I}_{\hat {\times }}$ . Once more, any square $(a, b) \colon \delta ^k \hat {\times } j \to f$ can be filled canonically by the universal property of the colimit applied to the collections of fillers given by $\theta $ relative to $\delta ^k \hat {\times } (\Delta _k j)$ .

Proposition 6.4. Consider a suitable topos $(\mathbb {E}, I, \mathcal {M})$ . There exists two awfs $(C, F_t)$ and $(C_t, F)$ on $\mathbb {E}$ which are algebraically-free on $\mathcal {M}$ and on $\mathcal {M}_{\hat {\times }}$ respectively.

Proof Apply Garner’s small object argument to $\mathcal {I}$ and $\mathcal {I}_{\hat {\times }}$ respectively. Since $\mathbb {E}$ is a Grothendieck topos, there exists a small dense subcategory $\mathbb {A}$ of $\mathbb {E}$ (for example, the full subcategory of compact objects for a large enough cardinal). By Lemma 6.3, the resulting awfs’s are algebraically-free on $\mathcal {M}$ and $\mathcal {M}_{\hat {\times }}$ respectively.

Remark 6.5. By definition of algebraically-free awfs we have the following isomorfisms $\text{F}_{\text{t}}\text{-}\textbf{Alg} \cong \underline {\text{TrivUniFib}}$ and $\text{F}\text{-}\textbf{Alg} \cong \underline {\text{UniFib}}$ . And, by Proposition 3.4 we have back-and-forth functors $\text{F}_{\text{t}}\text{-}\textbf{Map} \leftrightarrow \underline {\text{TrivUniFib}}$ and $\text{F}\text{-}\textbf{Map} \leftrightarrow \underline {\text{UniFib}}$ .

We proceed to show that, under some extra hypothesis, the awfs $(C, F_t)$ of uniform fibrations is type-theoretic. We know that it has a functorial Frobenius structure by [Reference Gambino and Sattler14, Theorem 8.8] and so we only need to construct a stable functorial choice of path objects on $(C_t, F)$ . For this, we require the following construction. Given a topos $\mathbb {E}$ equipped with an interval object I, there is a natural way to construct a stable and functorial factorisation of the diagonal: for a morphism $f \colon B \rightarrow A$ , consider

where the object $Pf$ and the map $r_f$ arise from the pullback diagram:

(6.1)

Here, we use the abbreviation of $(-)^I$ for the exponential object $\hom (I, -)$ and denote by $\epsilon \colon I \rightarrow \bot $ the unique map to the terminal object. The second leg of the factorisation $\rho _f \colon P f \rightarrow B \times _A B$ is given by the universal property of $B \times _A B$ applied to the canonical source and target maps $s_f, t_f \colon Pf \rightarrow B$ given by the composition of the arrow $Pf \rightarrow B^I$ from the pullback square, and $B^{\delta ^0}, B^{\delta ^1} \colon B^I \rightarrow B$ respectively. We denote the factorisation by $\mathcal {P}_I$ , so as to indicate that it was constructed from the interval I.

Let us provide an alternative construction of this factorisation which makes evident some intermediate steps and uses the adjunction $- \hat {\times } i \vdash \hat {\hom }(i, -)$ given by the pushout-product and pullback-exponential. Denote by $i \colon \partial I \rightarrow I$ the boundary inclusion of the interval object and by $\iota ^k \colon \bot \rightarrow \partial I$ the composition of the boundary with the k-th endpoint inclusion. The following diagram expands the previous one, i.e., the exterior part is exactly the one in (6.1).

(6.2)

The intermediate horizontal arrows $\lambda _f$ , $\alpha _f$ , and $\beta _f$ are given intuitively as follows. The map $\lambda _f$ sends a pair of points in $B \times _A B$ to the same pair of points but now in $B^{\partial I}$ , $\alpha _f$ sends a similar pair of points $(b_1, b_2)$ to the reflexivity (constant) path on $f(b_1) = f(b_2)$ , and map $\beta _f$ also sends a point b to the reflexivity path on $f(b)$ .

The next essential ingredient needed to prove that the factorisation $\mathcal {P}_I = \langle r, \rho \rangle $ lifts to a stable functorial choice of path objects, is that of the categories of strong homotopy equivalences and of strong deformation retracts. We recall from [Reference Gambino and Sattler14, Definition 4.1] the definition of k-oriented strong homotopy equivalence (for $k \in \{ 0, 1 \}$ ) and from [Reference Gambino and Sattler14, Lemma 8.1] that they assemble into a category of arrows which we will call $\underline {\text{SE}}_k$ . We then define $\underline {\text{SE}} \colon = \underline {\text{SE}}_0 + \underline {\text{SE}}_1$ . The definition of k-oriented strong deformation retracts is analogous; briefly, a k-oriented strong deformation retraction structure corresponds to a tuple $(g\colon A \rightarrow B, r\colon B \rightarrow A, h\colon I \times B \rightarrow B)$ such that $rg = 1_A$ , h is an homotopy from $gr$ to $1_B$ or from $1_B$ to $gr$ respectively if k is $0$ or $1$ and such that h is degenerate in the image of g (hence the strength). Strong deformation retracts assemble into categories of arrows $\underline {\text{SDR}}_k$ depending on the orientation $k \in \{ 0, 1 \}$ , and so we obtain $\underline {\text{SDR}} \colon = \underline {\text{SDR}}_0 + \underline {\text{SDR}}_1$ by taking their coproduct. Notice that any strong deformation retract is also a strong homotopy equivalence, i.e., there is a functor of category of arrows $\underline {\text{SDR}} \rightarrow \underline {\text{SE}}$ over the identity of the underlying category.

The following two lemmas constitute the first key results regarding the connection between the factorisation $\mathcal {P}_I = \langle r, \rho \rangle $ and the awfs of uniform fibrations.

Lemma 6.6. Consider a suitable topos $(\mathbb {E}, I, \mathcal {M})$ and let $(C_t, F)$ be a corresponding awfs of uniform fibrations on $\mathbb {E}$ . Suppose that the following additional hypothesis holds:

  1. (M5) Maps in $\mathcal {M}$ are closed under pushout-product against the boundary inclusion $i \colon \partial I \rightarrow I$ , i.e., for any $j \in \mathcal {M}$ , we have that $i \hat {\times } j \in \mathcal {M}$ .

Then, the second component of the factorisation $\mathcal {P}_I$ , i.e., $\rho \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ , lifts to a functor $\rho \colon \mathrm{F}\text{-}\mathbf{Map} \rightarrow \mathrm{F}\text{-}\mathbf{Map}$ .

Proof Since the awfs of trivial uniform fibrations $(C, F_t)$ is suitable (see [Reference Gambino and Sattler14, Definition 7.1]), the functor $\delta ^k \hat {\times } - $ lifts to the category $\text{C}\text{-}\textbf{Map}$ and $\delta ^k \hat {\times } - $ also factors though the category $\underline{\text{SE}}$ of strong homotopy equivalences by [Reference Gambino and Sattler14, Lemma 8.4]. Combining these two facts, we obtain a lift

$$ \begin{align*} \delta^k \hat{\times} (-) \colon \text{C}\text{-}\textbf{Map} \to \text{C}\text{-}\textbf{Map} \times_{\mathbb{E}^{\rightarrow}} \underline{\text{SE}} \rlap{.} \end{align*} $$

By [Reference Gambino and Sattler14, Proposition 8.5], we have a functor $\text{C}\text{-}\textbf{Map} \times _{\mathbb {E}^{\rightarrow }} \underline {\text{SE}} \rightarrow \text{C}_{\text{t}}\text{-}\textbf{Map}$ over $\mathbb {E}^{\rightarrow }$ , and composing with the one above, we obtain a lift of $\delta ^k \hat {\times } - $

(6.3) $$ \begin{align} \delta^k \hat{\times} (-) \colon \text{C}\text{-}\textbf{Map} \to \text{C}_{\text{t}}\text{-}\textbf{Map} \rlap{.} \end{align} $$

By functorial orthogonality arguments with respect to the pushout-product and pullback-exponential constructions (see [Reference Gambino and Sattler14, Proposition 5.11] and [Reference Gambino and Sattler14, Remark 5.12]) together with the hypothesis (M5), the functor $i \hat {\times } - \colon \mathcal {M} \rightarrow \mathcal {M}$ lifts to the category $\text{C}\text{-}\textbf{Map}$ ,

(6.4) $$ \begin{align} i \hat{\times} (-) \colon \text{C}\text{-}\textbf{Map} \to \text{C}\text{-}\textbf{Map} \rlap{.} \end{align} $$

Applying the lifts in (6.3) and (6.4), together with the fact that $(C, F_t)$ is algebraically-free on the category of arrows $\mathcal {M} \rightarrow \mathbb {E}^{\rightarrow }$ , as witnessed by the functor $\eta \colon \mathcal {M} \rightarrow \text{C}\text{-}\textbf{Coalg}$ , we obtain the diagram

where $\tilde {\eta }$ is the composite of $\eta $ and the forgetful functor from C-algebras to C-maps.

By symmetry of the pushout-product functor, we obtain a natural isomorphism between $i \hat {\times } \delta ^k \hat {\times } -$ and $\delta ^k \hat {\times } i \hat {\times } -$ . We can transfer the algebraic structure along this natural isomorphism in order to obtain the following lift:

Taking the coproduct of these lifts for $k = 0, 1$ we obtain a lift of $i \hat {\times } -$ ,

(6.5) $$ \begin{align} {i \hat{\times} (-)} \colon \mathcal{M}_{\hat{\times}} \to \text{C}_{\text{t}}\text{-}\textbf{Map} \rlap{.} \end{align} $$

Using that

(cf. Proposition 3.3) and that $(C_t, F)$ is algebraically-free on $\mathcal {M}_{\hat {\times }}$ , we can apply [Reference Gambino and Sattler14, Proposition 5.9] to (6.5) and obtain

By the top pullback square in (6.2), the morphism $\rho _f \colon Pf \rightarrow B \times _A B$ is obtained in the following two steps:

$$ \begin{align*} f \mapsto \widehat{\hom}(i, f) \mapsto \langle \alpha_f, \lambda_f \rangle^*\widehat{\hom}(i, f) = \rho_f \rlap{,} \end{align*} $$

i.e., by first applying $\hat {\hom }(i, -)$ and then pulling back along $\langle \alpha _f, \lambda _f \rangle $ . Since we have lifts of $\hat {\hom }(i, -)$ and of the pullback functor to the category of F-algebras, we obtain a lift of $\rho $ ,

Finally, as we are working with an algebraically-free awfs, we have lifts back-and-forth between $\textbf{R}\text{-}\textbf{Alg}$ and $\textbf{R}\text{-}\textbf{Map}$ over $\mathbb {E}^{\rightarrow }$ (cf. Proposition 3.4), and thus we can transfer the lift of $\rho $ from the category of R-algebras to that of R-maps.

Lemma 6.7. Consider a suitable topos $(\mathbb {E}, I, \mathcal {M})$ and let $(C_t, F)$ be a corresponding awfs of uniform fibrations on $\mathbb {E}$ . Then the first component $r \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ of the factorisation $\mathcal {P}_I$ lifts to the category of strong deformation retracts,

Proof We first show that the target map functor (that takes a map $f \colon B \rightarrow A$ to a map $t_{f} \colon Pf \rightarrow B$ ) lifts to a functor from $\text{F}\text{-}\textbf{Map}$ to $\text{F}_{\text{t}}\text{-}\textbf{Map}$ . Using that we have a lift $\delta ^1 \hat {\times } - \colon \text{C}\text{-}\textbf{Map} \rightarrow \text{C}_{\text{t}}\text{-}\textbf{Map}$ as shown in the proof of Lemma 6.6, we can transpose using [Reference Gambino and Sattler14, Proposition 5.9] to obtain a lift of $\hat{\hom}(\delta ^1, -)$ :

$$ \begin{align*} \widehat{\hom}(\delta^1, -) \colon \text{F}\text{-}\textbf{Alg} \to \text{F}_{\text{t}}\text{-}\textbf{Alg} \rlap{.} \end{align*} $$

Looking at (6.2), note that $t_f \colon Pf \rightarrow B$ is obtained by applying $\hat {\hom }(\delta ^1, -)$ to f and then pulling back along $\langle \beta _f, 1_B \rangle $ . Thus, the functor mapping $f \mapsto t_f$ lifts as

(6.6)

Since both awfs in question are algebraically-free, we can apply Proposition 3.4 to obtain the desired lift.

Let us return to the task of finding a lift of the functor $r \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ to a functor $r \colon \text{F}\text{-}\textbf{Map} \rightarrow \underline {\text{SDR}}$ . For this, we show that for each uniform fibration $(f, s) \colon B \rightarrow A$ the target map $t_f \colon Pf \rightarrow B$ is a strong homotopy retraction of $r_f \colon B \rightarrow Pf$ .

Looking again at (6.2) it is clear that $t_f \circ r_f = 1_B$ . Thus, we are left with the task of constructing an homotopy $H \colon r_f \circ t_f \sim 1_{P f}$ , for this consider the commutative diagram

where the top horizontal arrow is given by the universal property of $P f^{\partial I} \cong P f \times P f$ . This gives us an arrow into the pullback

$$ \begin{align*} \tilde{H} \colon P f \rightarrow B^I \times_{B^{\partial I}} P f^{\partial I}. \end{align*} $$

We already have a lift of the target map $t_{(-)} \colon \text{F}\text{-}\textbf{Map} \rightarrow \text{F}_{\text{t}}\text{-}\textbf{Map}$ . Combining this with the fact that $\hat {\hom }(i, -)$ lifts to $\text{F}_{\text{t}}\text{-}\textbf{Map}$ (which follows by similar arguments to those used in the proof of Lemma 6.6), $\hat {\hom }(i, t_{(-)})$ lifts to a functor

$$ \begin{align*} \widehat{\hom}(i, t_{(-)}) \colon \text{F}\text{-}\textbf{Map} \to \text{F}_{\text{t}}\text{-}\textbf{Map} \rlap{,} \end{align*} $$

which we can apply to f to obtain a uniform trivial fibration $\hat {\hom }(i, t_f)$ .

By part (M2) of Definition 6.1, for every object $X \in \mathbb {E}$ , the map $\emptyset \rightarrow X$ is in $\mathcal {M}$ . Using this, we obtain a morphism H as the canonical filler in

It is straightforward to verify that this H is actually an homotopy from $r_f \circ t_f$ to $1_{P f}$ . This shows that $t_f$ is a strong deformation retract of $r_f$ .

We have given the action of the desired lift $r \colon \text{F}\text{-}\textbf{Map} \rightarrow \underline {\text{SDR}} $ on objects. To show that this construction is functorial on f, consider a morphism of $\text{F}\text{-}\textbf{Map} (h, k) \colon f' \rightarrow f$ . Since the factorisation of the diagonal is functorial, we obtain the diagram

The bottom square is a morphism of $\text{F}_{\text{t}}\text{-}\textbf{Map}$ since it is the result of applying the lift of $t_{(-)}$ of (6.6) to the square $(h, k)$ . Let us prove that $(h, P(h, k)) \colon r_{f'} \rightarrow r_{f}$ is a morphism of strong deformation retracts. Looking at the definition of a morphism of homotopy equivalences (in the paragraph before [Reference Gambino and Sattler14, Lemma 8.1]), we observe that the only thing we need to show is that the following diagram commutes:

where the left and right horizontal arrows are the homotopies witnessing that $r_{f'}$ and $r_f$ respectively are strong deformation retracts. For this, we make use of the naturality of the filling operations. Consider the diagrams:

(6.7)
(6.8)

The left square in (6.7) is a morphism in $\mathcal {M}$ since it is Cartesian. The right square of (6.8) is a morphism of $F_t$ -maps since it is the result of applying the lift $\hat {\hom }(i, t_{(-)}) \colon \text{F}\text{-}\textbf{Map} \rightarrow \text{F}_{\text{t}}\text{-}\textbf{Map}$ to the square $(h, k)$ which is, by hypothesis, a morphism of F-maps. Hence, the corresponding lifts cohere.

Since the construction of the maps $\tilde {H}$ and $\tilde {H}'$ is given by a universal property, it is functorial and so the diagram

commutes. Thus, the composition of the bottom horizontal arrows in (6.7) and (6.8) coincide. This makes the filler $L'$ and L in diagrams 6.7 and 6.8 respectively, the same morphism and thus $H \circ P (h, k) = L' = L = P (h , k)^I \circ H'$ , as required.

Using Lemma 6.6 and Lemma 6.7, we can prove the following proposition.

Proposition 6.8. Consider a suitable topos $(\mathbb {E}, I, \mathcal {M})$ and let $(C_t, F)$ be a corresponding awfs of uniform fibrations on $\mathbb {E}$ . Suppose that the following additional hypotheses hold:

  1. (M5) Maps in $\mathcal {M}$ are closed under pushout-product against the boundary inclusion $i \colon \partial I \rightarrow I$ , i.e., for any $j \in \mathcal {M}$ , we have that $i \hat {\times } j \in \mathcal {M}$ .

  2. (M6) For any $f \colon B \rightarrow A$ in $\mathbb {E}$ , the first leg map $r_f \colon B \rightarrow Pf$ from the factorisation of the diagonal $\mathcal {P}_I$ belongs to $\mathcal {M}:$

Then, the factorisation of diagonal $\mathcal {P}_I = \langle r, \rho \rangle $ induced from the interval object lifts to a stable functorial choice of path objects for $(C_t, F):$

$$ \begin{align*} \mathcal{P}_I \colon \mathrm{F}\text{-}\mathbf{Map} \to \text{C}_{\text{t}}\text{-}\mathbf{Map} \times_{\mathbb{E}} \mathrm{F}\text{-}\mathbf{Map} \rlap{.} \end{align*} $$

Proof Recall that the factorisation of the diagonal $\mathcal {P}_I = \langle r, \rho \rangle $ is divided into two functors $r, \rho \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ . By Lemma 6.6, $\rho $ lifts to the category $\text{F}\text{-}\textbf{Map}$ , so it remains to show that $r \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ lifts to a functor $r \colon \text{F}\text{-}\textbf{Map} \rightarrow \text{C}_{\text{t}}\text{-}\textbf{Map}$ . This follows from two observations. First, since the factorisation of the diagonal is stable, r preserves Cartesian squares and thus, by item (M6) in the hypothesis of the theorem, r lifts to $\mathcal {M}$ (considered as a category of arrows), $r \colon \mathbb {E}^{\rightarrow } \to \mathcal {M}$ . Secondly, consider the unit of the orthogonality adjunction of 3.1 and note that since $(C, F_t)$ is algebraically-free on $\mathcal {M}$ , we obtain a morphism in the slice over $\mathbb {E}^{\rightarrow }$ ,

$$ \begin{align*} \eta_{\mathcal{M}} \colon \mathcal{M} \to \text{C}\text{-}\textbf{Map} \rlap{.} \end{align*} $$

We can compose these last two lifts to obtain $r \colon \mathbb {E}^{\rightarrow } \rightarrow \text{C}\text{-}\textbf{Map}$ .

Finally, we can combine the lifts $r \colon \text{F}\text{-}\textbf{Map} \rightarrow \underline {\text{SDR}}$ from Lemma 6.7 with $r \colon \mathbb {E}^{\rightarrow } \rightarrow \text{C}\text{-}\textbf{Map}$ and apply [Reference Gambino and Sattler14, Proposition 8.5] in order to obtain the desired lift of r,

We introduce the following definition to summarise our results.

Definition 6.9. A type-theoretic suitable topos consists of a suitable topos $(\mathbb {E}, I, \mathcal {M})$ (see Definition 6.1) which moreover satisfy the conditions (M5) and (M6) in the hypothesis of Proposition 6.8.

Theorem 6.10. Let $(\mathbb {E}, I, \mathcal {M})$ be a type-theoretic suitable topos, and let $(C_t, F)$ be the awfs of uniform fibrations on $\mathbb {E}$ . Then $(C_t, F)$ is equipped with the structure of a type-theoretic awfs.

Proof The result follows from [Reference Gambino and Sattler14, Theorem 8.8] and Proposition 6.8.

The next result allows us to construct examples of type-theoretic suitable toposes.

Proposition 6.11. Consider $\mathbb {E}$ be a Grothendieck topos equipped with an interval object I with connections. Let $\mathcal {M}_{all}$ be the class that consists of all monomophisms of $\mathbb {E}$ . Then the tuple $(\mathbb {E}, I, \mathcal {M}_{all})$ is a type-theoretic suitable topos.

Proof We need to verify conditions (M1)–(M6) from the definition of type-theoretic suitable topos. By elementary properties of monomorphisms, it is clear that (M1)–(M3) hold. Condition (M4) follows because in the topos $\mathbb {E}$ the pushout-product construction $\delta ^k \hat {\times } j$ for a given monomorphism $j \colon A \rightarrow B$ , computes the join (or union) of the subobjects $\delta ^k \times B \colon B \rightarrow I \times B$ and $I \times j \colon I \times A \rightarrow I \times B$ , which is again a subobject of $I \times B$ and in particular a monomorphism. The same arguments applies for condition (M5). Finally condition (M6) follows since for any map $f \colon X \rightarrow Y$ , the morphism $r_f \colon X \rightarrow Pf$ is the section of the target map $t_f \colon Pf \rightarrow X$ and in particular, it is a monomorphism.

Example 6.12. We can instantiate Proposition 6.11 on the presheaf toposes of simplicial sets $\underline {\text{sSet}}$ and of cubical sets $\underline {\text{cSet}}$ equipped with the obvious choices of interval objects given by the representable $1$ -simplex and $1$ -cube respectively. We thus obtain type-theoretic awfs on $\underline {\text{sSet}}$ and $\underline {\text{cSet}}$ . In $\underline {\text{sSet}}$ , assuming classical logic, a morphism admits the structure of a uniform fibration if and only if it is a Kan fibration by [Reference Gambino and Sattler14, Theorem 9.9].

Remark 6.13. Although the proof of Theorem 6.10 is constructive, in order to construct a univalent universe à la Hofmann–Streicher [Reference Hofmann and Streicher19] in a constructive setting, it is necessary to restrict the category $\mathcal {M}_{\text{all}}$ of generating monomorphisms to that of decidable ones; i.e., those monomorphisms that have level-wise decidable image [Reference Orton and Pitts28]. The arguments in this section do not apply if we take $\mathcal {M}_{\text{dec}}$ as the category of generating monomorphisms, where $\mathcal {M}_{\text{dec}}$ is the subclass of $\mathcal {M}_{\text{all}}$ of decidable monomorphisms (for either $\underline {\text{sSet}}$ or $\underline {\text{cSet}}$ ). The issue lies in condition (M6), i.e., that the first leg $r_{f} \colon X \rightarrow Pf$ of the factorisation of the diagonal of a morphism $f \colon X \rightarrow Y$ is in $\mathcal {M}_{\text{dec}}$ . Intuitively, the morphism $r_f$ maps an object of x of X to the degenerate path on x; this morphism is not decidable because, in general, it is not possible to decide degeneracies [Reference Bezem and Coquand4]. Because of this, in the next section we turn our attention to normal uniform fibrations (see Remark 8.2). An alternative approach would be to restrict attention to cofibrant objects, as in [Reference Gambino and Henry13].

7 Normal uniform fibrations

In this section, we develop the notion of a normal uniform fibration in the context of a suitable topos $(\mathbb {E}, I, \mathcal {M})$ (Definition 6.1). Recall from the discussion before Proposition 6.4 that the category of arrows of uniform fibrations was constructed by right orthogonality form the category of arrows $\mathcal {M}_{\hat {\times }}$ over $\mathbb {E}$ , whose objects are maps of the form $\delta ^k \hat {\times } j$ with $j \in \mathcal {M}$ and $k \in \{0,1\}$ . Moreover, recall from Proposition 6.4 that we cannot use Garner’s small object argument directly with $\mathcal {M}_{\hat {\times }}$ to construct the awfs of uniform fibrations $(C_t, F)$ as $\mathcal {M}_{\hat {\times }}$ is not small; instead, we need to restrict to the small category of arrows $\mathcal {I}_{\hat {\times }}$ that consists of arrows $\delta ^k \hat {\times } j$ with $j \in \mathcal {I}$ , where $\mathcal {I}$ consists of the arrows in $\mathcal {M}$ whose codomain lie in a fixed small dense subcategory of $\mathbb {E}$ .

We define a new category of arrows $\mathcal {I}^{\textbf{n}}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ such that a right $\mathcal {I}^{\textbf{n}}_{\hat {\times }}$ -map will consist of a uniform fibration with an extra normality property. The idea is that $\mathcal {I}^{\textbf{n}}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ is obtained from $\mathcal {I}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ by adding, for each generating monomorphism $i : A \rightarrowtail B$ and for $k \in \{0,1\}$ , the coherence square on the left in

(7.1)

where $\textbf{sq}_k(i) \colon B +_{A} (I \times A) \rightarrow B$ is the universal map out of the pushout as described on the right of the previous diagram. The arrows $\epsilon \times B$ and $\epsilon \times A$ are the projections from the second component of the product. We refer to the square on the left of (7.1) as the k-squash square of $i \colon A \rightarrowtail B$ and we denote it by

$$ \begin{align*} \textbf{squash}_k(i) \colon \delta^k \hat{\times} i \rightarrow 1_B. \end{align*} $$

The name follows the intuition of squashing the mapping cylinder in the direction of the interval (i.e., the filling direction). The following technical result about squash squares will be needed in what follows.

Lemma 7.1. Let $k \in \{0,1\}$ and consider monomophisms $i \colon A \rightarrowtail B$ and $j \colon C \rightarrowtail D$ . Then applying the pushout-product functor $(j \hat {\times } -) \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ to the k-squash square of $i \colon A \rightarrowtail B$ produces the k-squash square of $j \hat {\times } i;$ that is:

$$ \begin{align*} j \hat{\times} (\mathbf{squash}_k(i)) \cong \mathbf{squash}_k(j \hat{\times} i) \colon \delta^k \hat{\times} (j \hat{\times} i) \rightarrow 1_{D \times B} \,. \end{align*} $$

Proof If we apply $(j \hat {\times } -) \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ to the k-squash square of $i \colon A \rightarrowtail B$ , using that the pushout-product is symmetric and associative, we get the following square:

where we only need to verify that the top horizontal arrow $\Theta $ is the squash morphism, that is, we need to verify that $\Theta = \textbf{sq}_k(j \hat {\times } i) \colon \text{dom}(\delta ^k \hat {\times } (j \hat {\times } i)) \rightarrow D \times B$ , but this follows since the diagram commutes.

We now proceed to construct the arrow category $\mathcal {I}^{\textbf{n}}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ that will generate the category of normal uniform fibrations. We do this as follows. First let us denote by $\mathbb {I}$ the ‘walking arrow’, that is the poset with two objects $0 < 1$ considered as a category, this has the structure of an interval object in $\underline {\text{Cat}}$ , and we denote the inclusions by:

We define $\mathcal {I}^{\textbf{n}}_{\hat {\times }} := \mathbb {I} \times \mathcal {I}_{\hat {\times }}$ , where $\mathcal {I}_{\hat {\times }}$ is the generating category of uniform fibrations. The functor down to $\mathbb {E}^{\rightarrow }$ is determined by the following two properties.

  1. (1) The following diagram commutes:

    where the map $\epsilon _{cod} \colon \mathcal {I}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ , sends an object $i \in \mathcal {I}_{\hat {\times }}$ to the identity arrow on the codomain of i.
  2. (2) For $k\in \{0,1\}$ and for each $i \colon A \rightarrowtail \mathscr {A}$ in $\mathcal {I}$ , the functor $u^{\textbf{n}}_{\otimes }$ takes the arrow in $\mathbb {I} \times \mathcal {I}_{\hat {\times }}$ of the form $\mathbb {I} \times i \colon \{0\} \times i \rightarrow \{1\} \times i$ , to the k-squash square of i; i.e., $\textbf{squash}_k(i) \colon \delta ^k \hat {\times } i \rightarrow 1_{\mathscr {A}}$ .

In other words, $\mathcal {I}^{\textbf{n}}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ is a natural transformation: $ u_{\otimes } \rightarrow \epsilon _{cod} \colon \mathcal {I}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow } $ whose components are the k-squash squares.

We define $\underline {\text{NrmUniFib}} \rightarrow \mathbb {E}^{\rightarrow }$ to be the category of arrows of right $\mathcal {I}^{\textbf{n}}_{\hat {\times }}$ -maps in $\mathbb {E}$ , and we call its objects normal uniform fibrations. Using Garner’s small object argument [Reference Garner15, Theorem 4.4] along the lines of Lemma 6.3 and Proposition 6.4, we obtain the following result.

Theorem 7.2. There is an algebraically-free awfs on the category of arrows $\mathcal {I}^{\textbf{n}}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ , denoted by $(NC_t, NF)$ , whose category of $NF$ -algebras is that of normal uniform fibrations.

Let us observe that the forgetful functor into $\mathbb {E}^{\rightarrow }$ factors through the category of uniform fibrations, i.e., we have a commutative diagram:

Moreover, we can prove the following lemma.

Lemma 7.3. The forgetful functor $U\colon \underline {\mathrm{NrmUniFib}} \rightarrow \underline {\mathrm{UniFib}}$ is fully faithful.

Proof This follows intuitively by noticing that the structure of a normal uniform fibration does not add any new lifting problems to that of a uniform fibrations; this is because the only new vertical arrows we are adding are identities and every morphism has a unique lift against them. Concretely, if $(f, \phi ) \in \underline {\text{NrmUniFib}}$ and if $(f, \theta ) \in \underline {\text{UniFib}}$ , then both lifting structures $\phi $ and $\theta $ produce lifts against the exactly same squares, the difference is that $\phi $ may have additional coherence properties.

In the following proposition we characterise those uniform fibration structures that are normal. We use the following terminology: we say that a morphism $\theta \colon I \times B \rightarrow X$ is degenerate in the lifting direction if it factors through the projection $\rho _1 \colon I \times B \rightarrow B$ via some arrow $\theta ^* \colon B \rightarrow X$ ; we call $\theta ^*$ the lifting degeneracy of b.

Proposition 7.4. Let $(f, \theta ) \in \underline {\mathrm{UniFib}}$ , then the following conditions are equivalent.

  1. (1) $(f, \theta )$ is a normal uniform fibration.

  2. (2) For any generating monomorphism $i \colon A \rightarrowtail \mathscr {A}$ in $\mathcal {I}$ and for any square:

    if the square factors through the squash square of i as , then the lift $\theta _{i}(a,b)$ is degenerate in the lifting direction with $a^*$ as lifting degeneracy.
  3. (3) For any generating monomorphism $i \colon A \rightarrowtail B$ in $\mathcal {M}$ and for any square:

    if the square factors through the squash square of i as , then the lift $\theta _{i}(a,b)$ is degenerate in the lifting direction with $a^*$ as lifting degeneracy.

Proof Let us first assume that $(f, \theta )$ is a normal uniform fibration. It is easy to see that item (2) holds; for this consider the diagram:

it is clear that the lifts cohere because the left square is by definition a morphism in (the image of) $\mathcal {I}^{\textbf{n}}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ .

It is also easy to see that (2) implies (1); this follows since the uniform fibration structure $\theta $ already provides lifts against all lifting problems coming form $\mathcal {I}^{\textbf{n}}_{\hat {\times }}$ ; moreover, the lifts will also cohere with all the squares coming from $u_{\otimes } \colon \mathcal {I}_{\hat {\times }} \rightarrow \mathbb {E}^{\rightarrow }$ . So we only need to verify that it coheres with the squash squares, but these squares are precisely those as in the hypothesis of item (2).

It is clear that (3) implies (2). For the converse let us first observe, using that colimits in $\mathbb {E}$ are universal, that any monomorphism $i \colon A \rightarrowtail B$ is the colimit over the generalised elements with domain on the dense subcategory $\mathbb {A}$ used to define the category of arrows $\mathcal {I}$ (see Proposition 6.4); that is,

$$ \begin{align*} i \cong \text{colim}_{\substack{x\colon \mathscr{A} \rightarrow B \\ \mathscr{A} \in \mathbb{A}}} x^*(i) \rlap{,} \end{align*} $$

where for each $x \colon \mathscr {A} \rightarrow B$ we denote by $x^*(i)$ the pullback of i along x. Now, since $\delta ^k \hat {\times } - \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ is cocontinuous, we have that:

$$ \begin{align*} \text{colim}_{\substack{x\colon \mathscr{A} \rightarrow B \\ \mathscr{A} \in \mathbb{A}}} (\delta^k \hat{\times} (x^*(i))) \cong \delta^k \hat{\times} \text{colim}_{\substack{x\colon \mathscr{A} \rightarrow B \\ \mathscr{A} \in \mathbb{A}}} x^*(i) \cong \delta^k \hat{\times} i. \end{align*} $$

Let us suppose that (2) holds, and that we have a diagram as in item (3). Then for each generalised element $x \colon \mathscr {A} \rightarrow B$ with $\mathscr {A} \in \mathbb {A}$ , we have a square:

where the left square is the colimit inclusion corresponding to $x \colon \mathscr {A} \rightarrow B$ . The commutation of the respective triangle is obtained by the universal property of the colimit.

Finally, if the square on the right factors through a squash square

then (by naturality) the outer square also factors through a squash square and thus the lift $\theta _{x^*(i)}$ is degenerate with $a^* \iota _x $ as lifting degeneracy. This implies by the uniqueness of the universal property, that also $\theta _i$ is degenerate with $a^*$ as lifting degeneracy.

Remark 7.5. To guide our intuition towards normal uniform fibrations, we can compare the notions of normality for cloven isofibrations in groupoids and for uniform fibrations in simplicial sets. For this, we consider the awfs of (normal) uniform fibrations on simplicial sets constructed from the suitable topos structure consisting of the $1$ -simplex as the interval object and the class $\mathcal {M}_{\text{all}}$ of all monomorphisms as the class of generating monomorphisms. It is not hard to show that the following are pullback squares:

Here, the categories $\underline {\text{ClFib}}$ and $\underline {\text{NrmFib}}$ are those of cloven isofibrations and normal cloven isofibrations in groupoids while the horizontal arrows are given by the nerve functor and its respective lifts. This shows how the notion of uniform fibration (respectively normal uniform fibration) is a generalisation to higher dimensions of the notion of cloven isofibration (respectively normal cloven isofibrations).

The category of arrows of normal trivial cofibrations is defined to be the category of $NC_t$ -maps with respect to the awfs of normal uniform fibrations (Theorem 7.2). Alternatively, it is the left orthogonal category of arrows of $\underline {\text{NrmUniFib}}$ . We will denote it by $\underline {\text{NrmTrivCof}}$ . Even if we do not know a complete characterisation of normal trivial cofibrations, we have a general method for constructing normal trivial cofibrations from a structure that is easier to handle. For this, let us recall the categories $\underline {\text{SDR}}$ of strong deformation retractions and $\underline {\text{SE}}$ of strong homotopy equivalences from Section 6 defined immediately before Lemma 6.6. In the next proposition, we observe that every strong deformation retract has (uniformly) the structure of a normal trivial cofibration. Normality is an essential ingredient in the proof; in particular, a similar result would not hold for uniform fibrations.

Proposition 7.6. There is a functor from the category strong deformation retracts $\underline {\mathrm{SDR}}$ to that of normal trivial cofibrations $\underline{\mathrm{NrmTrivCof}}$ ,

Proof Let $(g, r, h) \in \underline {\text{SDR}}$ which we assume to be $0$ -oriented (the other case being analogous). We have to define $\Psi (g,r,h) := (g, \Psi h)$ with $\Psi h$ a left $\underline {\text{NrmTrivCof}}$ -map structure for g. To do this, let us consider a normal uniform fibration $(f, \phi )$ and a square $(a, b) \colon g \rightarrow f$ for which we will construct a lift $\Psi h_f \colon B \rightarrow X$ as shown:

We first consider the lift $H \colon I \times B \rightarrow X$ , in the following square (which commutes because the deformation retraction is $0$ -oriented), produced by the normal uniform fibration structure of f:

We define $\Psi h_f \colon = H \cdot (\delta ^1 \times B)$ . That is, the lift $\Psi h_f$ is defined to be H on restricted to the top of the cylinder $I \times B$ . The verification that $f \circ \Psi h_f = b$ is straightforward.

We now need to check that $\Psi h_f \cdot g = a$ ; for this we first observe the following diagram:

Here, the lift $H_0$ is also defined by the uniform fibration structure of f, and moreover the triangle created by the lifts commute, since the square on the left is a morphism of left $\underline {\text{UniFib}}$ -maps.

We use that $rg = 1_a$ and the strength of the homotopy retraction tuple $(g, r, h)$ , to replace the horizontal arrows in the previous diagram in order to obtain the following one:

where the lifts cohere by Proposition 7.4 using the squash square of $\bot _A \colon \emptyset \rightarrow A$ . With this in place,

$$ \begin{align*} \begin{array}{llllll} && \Psi h_f \cdot g &= H \cdot (\delta^1 \times B) \cdot g && (\text{by defn of } \Phi h_f) \\ && &= H \cdot (I \times g) \cdot (\delta^1 \times A) && (\text{by naturality of } \delta^1 \times -) \\ && &= H_0 \cdot (\delta^1 \times A) && (\text{by construction of } H_0) \\ && &= a \cdot \rho_1 \cdot (\delta^1 \times A) && (\text{by normality of } (f, \phi)) \\ & & & = a \rlap{,} \end{array} \end{align*} $$

as required.

8 Type-theoretic awfs from normal uniform fibrations

In order to equip the awfs $(NC_t, NF)$ of normal uniform fibrations with the structure of a type-theoretic awfs we require a functorial Frobenius structure and a stable functorial choice of path objects. In this section, we show how to construct these. We focus first with the construction of a stable functorial choice of path objects (sfpo for short), cf. Definition 4.8. We work in the context of a suitable topos $(\mathbb {E}, I, \mathcal {M})$ that in addition satisfies hypothesis (M5) from Proposition 6.8. Recall from the discussion preceding Proposition 6.8 that a suitable topos has a canonical stable and functorial factorisation of the diagonal, called $\mathcal {P}_I$ , which is constructed via exponentiation by the interval. Our objective is to lift this factorisation to an sfpo. That is, we need to exhibit a lift of $\mathcal {P}_I$ as in

We can split the problem in two. If we denote by $r, \rho \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ the two legs of the sfpo (i.e., by composing $\mathcal {P}_I$ with the two projections from the pullback), then it is sufficient to show that there are lifts of these functors as in the following diagram:

The lift of $r \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ can easily obtained by collecting some of the results established so far.

Lemma 8.1. There is a lift of the functor $r \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ as shown:

Proof We construct the desired lift as the following composite:

where the lift in the leftmost square is the forgetful functor, that on the middle square comes from Lemma 6.7 and the lift in the rightmost square is the one from Proposition 7.6.

Remark 8.2. The proof of Proposition 6.8, which shows that the functor $r \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ lifts to the category of left maps of the awfs of uniform fibrations, relied crucially on the hypothesis (M6). This says that the image of r lands on the class $\mathcal {M}$ of generating monomorphisms of the suitable topos. As noted in Remark 6.13, hypothesis (M6) does not hold if we consider $\mathcal {M}_{\text{dec}}$ , the class of decidable monos in the context of a presheaf topos. However notice that the proof of Lemma 8.1 does not require hypothesis (M6). In other words, the extra ‘normality’ condition on the category of uniform fibrations allows us to get rid of this requirement.

The construction of the lift for the other functor $\rho \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ is not quite as direct; we need to briefly recall the construction of the uniform fibration structure produced by Lemma 6.6. Let us consider a map $f \colon X \rightarrow Y$ in $\mathbb {E}$ ; recall (from the discussion before Proposition 6.8) that the second leg of the factorisation of the diagonal, $\rho _f \colon Pf \rightarrow X \times _Y X$ can also be obtained as a pullback of the map $\hat {\hom }(i, f)$ where $i \colon \partial I \rightarrow I $ stands for the inclusion of the boundary of the interval. Let us assume for now that $(f, \theta )$ is a uniform fibration. We know that right orthogonal categories of arrows are closed under pullbacks; thus to give a uniform fibration structure to $\rho _f$ it is sufficient to give one to $\hat {\hom }(i, f)$ . Now, in order to construct a uniform fibration structure for $\hat {\hom }(i,f)$ , let us consider a lifting problem with respect to a morphism of the generating category of arrows $\mathcal {I}_{\hat {\times }}$ of uniform fibrations; i.e., a square of the form $(U, b) \colon \delta ^k \hat {\times } j \rightarrow \hat {\hom }(i, f)$ where $j \colon A \rightarrowtail B$ is in $\mathcal {I}$ , for which we show how to construct a lift. This is shown in the left side of the following diagram:

Transposing along the adjunction $(i \hat {\times } - ) \dashv \hat {\hom }(i, -)$ we obtain a square as on the right of the previous diagram. We use that the pushout-product construction is symmetric and associative, and in particular we obtain that $i \hat {\times } (\delta ^k \hat {\times } j) \cong \delta ^k \hat {\times } (i \hat {\times } j)$ . By hypothesis (M5) of the category of generating cofibrations $\mathcal {M}$ we know that $i \hat {\times } j$ is a generating monomorphism, thus we find a lift for the square on the right of the previous diagram, denoted by $\rho \theta _i$ . By transposing everything back we obtain the desired lift for the original square. This construction produces a uniform fibration structure for $\hat {\hom }(i, f)$ which we denote by $\rho \theta $ .

Lemma 8.3. There is a lift of the functor from Lemma 6.6 as shown:

Proof Since the forgetful functor $\underline {\text{NrmUniFib}} \rightarrow \underline {\text{UniFib}}$ is fully faithful (Lemma 7.3), and using that right orthogonal categories are closed under pullbacks, it is sufficient to prove that given $(f, \psi )$ a normal uniform fibration, the uniform fibration structure $\rho \psi $ of $\hat {\hom }(i, f)$ , described in the foregoing discussion, is also normal.

By Proposition 7.4, we need to show that, for a generating monomorphism $j \colon A \rightarrowtail B$ , the lifts in the diagram on the left of the following figure cohere:

by transposing the whole diagram along $ (i \hat {\times } - ) \dashv \hat {\hom }(i, -)$ and using the symmetry and associativity of the pushout-product, we obtain the lifting problem as on the right of the previous diagram, for which we need to show that the lifts cohere. The lift $\rho \theta _{j}$ on the left (on either diagram) is, by construction, the lift obtained from the uniform fibration structure $\rho \theta $ on $\hat {\hom }(i, f)$ . The result follows by applying Lemma 7.1.

Proposition 8.4. Consider a suitable topos $(\mathbb {E}, I, \mathcal {M})$ satisfying condition (M5). Then the stable functorial factorisation of the diagonal $\mathcal {P}_I$ lifts to a stable functorial choice of path objects for the awfs of normal uniform fibrations, as shown in the following diagram:

Proof This follows by applying Lemma 8.1 to lift the functor $r \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ and by applying Lemma 6.6 and Lemma 8.3 to lift the functor $\rho \colon \mathbb {E}^{\rightarrow } \rightarrow \mathbb {E}^{\rightarrow }$ .

We turn our attention to the proof that the category of arrows of normal uniform fibrations has a functorial Frobenius structure. The structure is given by adapting the functorial Frobenius structure on uniform fibrations constructed in [Reference Gambino and Sattler14, Theorem 8.8]. Throughout this section, we will work on an arbitrary suitable topos $(\mathbb {E}, I, \mathcal {M})$ .

Lemma 8.5. Let $i \colon A \rightarrowtail B$ be a monomorphism, and let $f \colon X \rightarrow B$ be any map. Then the following holds:

  1. (1) There is an isomorphism

    $$ \begin{align*} \delta^k \hat{\times} (f^*i) \cong (I \times f)^*(\delta^k \hat{\times} i) \,. \end{align*} $$
  2. (2) Pulling back the k-squash square of i along the square $(I \times f, f)$ produces the k-squash square of $f^*i;$ concretely, for $k \in \{0,1\}$ , there is an isomorphism:

    $$ \begin{align*} \mathbf{squash}_k (f^*i) \cong (I \times f, f)^*(\mathbf{squash}_k (i)) \,. \end{align*} $$

Proof To show item $(1)$ , let us first consider the following cube:

Here, the square on the top is the pullback of i along f. It is straightforward to verify that all squares pointing from left to right are Cartesian, and note that the squares on the left and right are the outer squares used for defining the pushout-products $\delta ^k \hat {\times } (f^*i)$ and $\delta ^k \hat {\times } i$ respectively. All of this implies that there is a comparison map $\delta ^k \hat {\times } (f^*i) \rightarrow (I \times f)^*(\delta ^k \hat {\times } i)$ , which is an isomorphism because colimits in $\mathbb {E}$ are universal. Item $(2)$ follows directly form item $(1)$ .

We recall a result about the squares $\theta ^k \hat {\times } i \colon i \rightarrow \delta ^k \hat {\times } i$ from [Reference Gambino and Sattler14, Lemma 4.3].

Lemma 8.6. For every $i \colon A \rightarrow B$ , the square $\theta ^k \hat {\times } i \colon i \rightarrow \delta ^k \hat {\times } i$ below is Cartesian.

Proof The proof uses once again the fact that colimits in $\mathbb {E}$ are universal. Let us compute the pullback of $\delta ^k \hat {\times } i$ along $\delta ^{1-k} \times B$ . By universality of colimits, this is the same as pulling back the diagram defining $B +_A (I \times A)$ and then calculating the colimit.

We can observe in the following picture, the result of first pulling back the defining diagram of $B +_A (I \times A)$ which appears as the upper span of the right-most square on the following cube:

Let us notice that the pullback of $\delta ^k \times B$ (respectively $\delta ^k \times A$ ) along $\delta ^{1-k} \times B$ (respectively $\delta ^{1-k} \times A$ ) is empty since the interval has disjoint endpoints. We conclude that the colimit of the upper span of the left-most square on the cube must be equal to A and moreover, the universal arrow down to B has to be $i \colon A \rightarrow B$ .

Consider a generating monomorphism $i \colon A \rightarrowtail B$ and a uniform fibration $f \colon X \rightarrow B$ , then there are two possible trivial uniform cofibration structures on the map $\delta ^k \hat {\times } (f^*i)$ : the first one is the canonical one, i.e., the one given by the fact that $f^*i$ is also a generating monomorphism. The second one is the one provided by the functorial Frobenius structure on uniform fibrations using the isomorphism $\delta ^k \hat {\times } (f^*i) \cong (I \times f)^*(\delta ^k \hat {\times } i)$ of Lemma 8.5. These two are actually the same structure as we show in the following lemma.

Lemma 8.7. Consider $i \colon A \rightarrowtail B$ be a generating monomorphism and $f \colon X \rightarrow B$ a uniform fibration. Then the two possible trivial uniform cofibration structures on $\delta ^k \hat {\times } (f^*i)$ coincide.

Proof Let us denote by $\lambda ^1$ and $\lambda ^2$ , respectively, the canonical trivial uniform cofibration structure on $\delta ^k \hat {\times } (f^*i)$ and the one obtained by applying the functorial Frobenius structure. In order to prove they are the same, let us consider $g \colon Z \rightarrow Y$ a uniform fibration and a square $(a, b) \colon \delta ^k \hat {\times } (f^*i) \rightarrow g$ . Without loss of generality, let us denote by $\lambda ^1$ and $\lambda ^2$ the two fillers of this square given by the uniform trivial cofibration structure with the same name. We have to show that $\lambda ^1 = \lambda ^2$ . If we go over the proof of [Reference Gambino and Sattler14, Proposition 8.8], just before the conclusion, a retract diagram is used to transfer the structure of a trivial cofibration to the desired morphism (since trivial cofibrations are closed under retracts). In our situation, this retract diagram is given by the two left-most squares shown below:

where the left-most square is $\theta ^k \hat {\times } \delta ^k \hat {\times } (f^*i)$ . Notice that $\delta ^k \hat {\times } \delta ^k \hat {\times } (f^*i)$ has a canonical trivial cofibration structure and thus, the square $\delta ^k \hat {\times } \delta ^k \hat {\times } (f^*i) \rightarrow f$ has a lift which we denote by $\lambda $ . By definition, the lift $\lambda ^2$ is equal to $\lambda \cdot t$ where t is the horizontal arrow on the lower left part of the diagram.

On the other hand, the lift of the outer square of the previous diagram is $\lambda ^1$ . Thus if we want to show that $\lambda ^1 = \lambda ^2$ it is sufficient to show that the square $\theta ^k \hat {\times } \delta ^k \hat {\times }(f^*i)$ is a morphism of trivial uniform cofibrations. To show this, we use that the pushout-product is symmetric and associative, and thus $\theta ^k \hat {\times } \delta ^k \hat {\times }(f^*i) \cong \delta ^k \hat {\times } \theta ^k \hat {\times } (f^*i)$ . From this, we see that the square is a morphism of trivial uniform cofibrations provided the square $\theta ^k \hat {\times } (f^*i)$ is a morphism of generating monomorphisms, i.e., if it is Cartesian. But this is precisely the statement of Lemma 8.6.

We wish to show that the functorial Frobenius structure on uniform fibrations of [Reference Gambino and Sattler14, Theorem 8.8] can be extended to normal uniform fibrations. We start with a proposition.

Proposition 8.8. There is a lift of the pullback functor as shown:

Proof Object-wise, this follows directly from [Reference Gambino and Sattler14, Theorem 8.8]. To see this, we notice that there are no more objects in the image of the category of arrows $\mathcal {I}^{\textbf{n}}_{\hat {\times }}$ than in the image of $\mathcal {I}_{\hat {\times }}$ ; thus we can apply the functorial Frobenius structure for uniform fibrations. Then we use the functor $\underline {\text{TrivCof}} \rightarrow \underline {\text{NrmTrivCof}}$ , obtain by functoriality of the left orthogonal functor applied to the forgetful functor $\underline {\text{NrmUniFib}} \rightarrow \underline {\text{UniFib}}$ .

For the morphism case, we first notice that the only morphisms in $\mathcal {I}^{\textbf{n}}_{\hat {\times }}$ that we need to consider are the squash squares. Thus let us consider a cospan of squares as in the following diagram:

such that the vertical square is the squash square of a generating monomorphism $i \colon A \rightarrowtail B$ and the horizontal square is a morphism of uniform fibrations $(m , \epsilon \times B) \colon f' \rightarrow f$ . We need to verify that pulling back the squash square along the morphism of uniform fibrations is a morphism of normal trivial cofibrations.

The first thing we do is to split this cospan of squares into two, by factoring through the pullback square of f along $\epsilon \times B$ . That is we obtain the following diagrams:

where the dotted arrow $m^* \colon X' \rightarrow (I \times X)$ is obtain by universal property. Notice that composing the two cospans of squares along their common face produces the original one. Notice also that the two horizontal squares are morphisms of uniform fibrations.

Let us focus first on the cospan of the right. The identity morphism $1 \colon (\delta ^k \hat {\times } i) \rightarrow (\delta ^k \hat {\times } i)$ is a morphism of trivial uniform cofibrations, thus if we pull-back this along the morphism of uniform fibrations $(f', I \times f) \colon m^* \rightarrow 1_{\delta ^k \hat {\times } i}$ we obtain a morphism of trivial uniform cofibrations by [Reference Gambino and Sattler14, Theorem 8.8] to which we can apply the functor $\underline {\text{TrivCof}} \rightarrow \underline {\text{NrmTrivCof}}$ to obtain a morphism of normal trivial cofibrations.

With this we have reduced the situation to the cospan of squares on the left of the previous diagram. Using item $(2)$ of Lemma 8.5 we see that the pullback of the squash square of $i \colon A \rightarrowtail B$ along the square $(I \times f, f) \colon \epsilon \times X \rightarrow \epsilon \times B$ is the squash square of $f^*i \colon f^*A \rightarrowtail X$ . This square is a morphism in $\mathcal {I}^{\textbf{n}}_{\hat {\times }}$ provided that the canonical trivial normal cofibration structure of $\delta ^k \hat {\times } (f^*i)$ is the same as that obtained from the functorial Frobenius structure, but this follows from Lemma 8.7.

Proposition 8.9. Let $(\mathbb {E}, I, \mathcal {M})$ be a suitable topos. Then the awfs $(NC_t, NF)$ of normal uniform fibrations has a functorial Frobenius structure.

Proof Using the lift of Proposition 8.8 and the forgetful functor $\underline {\text{NrmUniFib}} \rightarrow \underline {\text{UniFib}}$ , we find a lift of the pullback functor as one shown:

The fact that we can extend this structure from $\mathcal {I}^{\textbf{n}}_{\hat {\times }}$ to the whole category $\underline {\text{NrmTrivCofi}}$ follows from [Reference Gambino and Sattler14, Proposition 6.8].

Theorem 8.10. Consider a suitable topos $(\mathbb {E}, I, \mathcal {M})$ satisfying condition (M5). Then the awfs $(NC_t, NF)$ of normal uniform fibrations has the structure of a type-theoretic awfs.

Proof The claim follows from Proposition 8.4 and Proposition 8.9.

Appendix A Some technical definitions

Let $(\mathbb {C}, \rho , \chi )$ be a comprehension category. For $n \in \mathbb {N}$ , the category $DT_n(\rho , \chi )$ of dependent n-tuples over $(\mathbb {C}, \rho , \chi )$ is defined as follows. Objects are tuples $(\Gamma , A_1, \dots , A_n)$ where $\Gamma $ is an element in the base category, $A_1$ is in the fibre of $\rho $ over $\Gamma $ , and, for $i> 1$ , $A_i$ is in the fiber over $\Gamma. A_1. \cdots. A_{i-1}$ . An arrow $(\Delta , B_1, \dots , B_n) \rightarrow (\Gamma , A_1, \dots , A_n)$ consists of a tuple of the form $(u, f_1, \dots , f_n)$ where $f_1 : B_1 \rightarrow A_1$ is over $u : \Delta \rightarrow \Gamma $ and for $i>1$ we have

Composition and identities are given component-wise by the structure of the fibration $\rho $ . We say that an arrow of dependent tuples is Cartesian if every composing arrow (except the one of the base category) is Cartesian with respect to $\rho $ .

Appendix A.1 $\Sigma $ -types and $\Pi $ -types

A choice of $\Sigma $ -types for $(\mathbb {C}, \rho , \chi )$ consists of an operation that assigns to each dependent tuple $(\Gamma , A, B) \in DT_2(\rho , \chi )$ a tuple $(\Sigma _A B, \textrm{pair}_{A, B},\ \textrm{sp}_{A, B})$ consisting of the following data:

  1. (1) $\Sigma _A B$ is an object of $\mathbb {E}$ over $\Gamma $ .

  2. (2) $\textrm{pair}_{A,B}$ is an arrow over $\chi _A$ as shown:

  3. (3) $\textrm{sp}_{A,B}$ is an operation that takes a dependent tuple $(\Gamma , \Sigma _A B, C) \in DT_2(\chi , \rho )$ and a section t of C over $\textrm{pair}_{A, B}$ , as in the following solid arrowed diagram:

    to a section $\textrm{sp}_{A,B}(C, t)$ of C, shown in the above diagram as the dotted arrow.
  4. (4) The above data are subject to the condition that, for any section t of C over $\textrm{pair}_{A, B}$ , $\textrm{sp}_{A,B}(C,t) \circ \textrm{pair}_{A,B} = t$ . Thus says that the triangle in the diagram of item $(3)$ involving the dotted arrow commutes.

A choice of $\Pi $ -types for $(\mathbb {C}, \rho , \chi )$ consists of an operation that assigns to each dependent tuple $(\Gamma , A, B) \in DT_2(\rho , \chi )$ a tuple $(\Pi _A B, \lambda _{A, B},\ \textrm{app}_{A, B})$ consisting of the following data:

  1. (1) $\Pi _A B$ is an object of $\mathbb {E}$ over $\Gamma $ .

  2. (2) $\lambda _{A, B}$ is an operation that takes a section $t : \Gamma .A \rightarrow \Gamma .A.B$ of $\chi _B$ to a section $\lambda _{A, B}(t) : \Gamma \rightarrow \Pi _A B$ of $\chi _{\Pi _A B}$ , as shown in the following diagram:

  3. (3) $\textrm{app}_{A, B}$ is an arrow in the slice over $\Gamma .A$ , as shown:

    where $\Gamma .A.\Pi _A B$ is (the comprehension of) any reindexing of $\Pi _A B$ along $\chi _A$ . Notice that the choice of $\textrm{app}_{A, B}$ determines uniquely any other choice with respect to a different Cartesian reindexing of $\Pi _A B$ ; this follows by the universal property of Cartesian arrows.
  4. (4) These data must be subject to the condition that, for any section $t \colon \Gamma .A \rightarrow \Gamma .A.B$ of $\chi _B$ , $\textrm{app}_{A, B} \circ (\lambda (t)[\chi _A]) = t$ , where $\lambda (t)[\chi _A]$ is the result of reindexing $\lambda (t)$ along $\chi _A$ .

Appendix A.2 Strict stability

Let $(\mathbb {C}, \rho , \chi )$ be a split comprehension category.

A choice of $\Sigma $ -types $(\Sigma ,\ \textrm{pair},\ \textrm{sp})$ for $(\mathbb {C}, \rho , \chi )$ is said to be strictly stable if for every morphism $\sigma : \Delta \rightarrow \Gamma $ in the base category and for any dependent tuple $(\Gamma , A, B) \in DT_2(\rho , \chi )$ , the following conditions are satisfied:

  1. (1) $\Sigma _{A[\sigma ]} B[\sigma ] = (\Sigma _A B) [\sigma ]$ .

  2. (2) The following diagram commutes:

    where the horizontal arrows are obtained by the split reindexing along $\sigma $ .
  3. (3) For any dependent tuple $(\Gamma , \Sigma _{A} B, C)$ in $DT_2(\rho , \chi )$ , and any section t of C over $\textrm{pair}_{A, B}$ there is a corresponding dependent tuple $(\Delta , \Sigma _{A[\sigma ]} B[\sigma ], C[\sigma ])$ and a section $t[\sigma ]$ of C over $\textrm{pair}_{A[\sigma ], B[\sigma ]}$ obtained by reindexing. The following diagram is required to commute:

    where the horizontal arrows are obtained by the split reindexing along $\sigma $ .

A choice of $\Pi $ -types $(\Pi , \lambda ,\ \textrm{app})$ for $(\mathbb {C}, \rho , \chi )$ is said to be strictly stable if for every morphism $\sigma : \Delta \rightarrow \Gamma $ in the base category and for any dependent tuple $(\Gamma , A, B) \in DT_2(\rho , \chi )$ , the following conditions are satisfied:

  1. (1) $\Pi _{A[\sigma ]} B[\sigma ] = (\Pi _A B) [\sigma ]$ .

  2. (2) For any section t of $\chi _B$ there is a corresponding section $t[\sigma ]$ of $\chi _{B[\sigma ]}$ obtained by reindexing. This two sections must be related by the following commutative diagram:

    where the lower horizontal arrow is obtained by the split reindexing along $\sigma $ .
  3. (3) The following diagram commutes:

    where the horizontal arrows are obtained by split reindexing along $\sigma $ .

Appendix A.3 Pseudostability

Let $(\mathbb {C}, \rho , \chi )$ be a comprehension category.

A choice of $\Sigma $ -types $(\Sigma ,\ \textrm{pair},\ \textrm{sp})$ for $(\mathbb {C}, \rho , \chi )$ is said to be pseudo-stable if for every Cartesian arrow $(\sigma , f, g) : (\Delta , A', B') \rightarrow (\Gamma , A, B)$ of dependent tuples, the following conditions are satisfied:

  1. (1) There is a Cartesian arrow $\Sigma _f g : \Sigma _{A'} B' \rightarrow \Sigma _A B$ over $\sigma $ and the assignment:

    $$ \begin{align*} (\sigma, f, g) \mapsto (\sigma, \Sigma_f g) \end{align*} $$
    is functorial, i.e., $\Sigma _{1_A} 1_B = 1_{\Sigma _A B}$ and $\Sigma _{(f' \circ f)} (g' \circ g) = \Sigma _{f'} g' \circ \Sigma _f g$ .
  2. (2) The following diagram commutes:

  3. (3) For any Cartesian arrow $h : C' \rightarrow C$ above $\Sigma _f g : \Sigma _{A'} B' \rightarrow \Sigma _A B$ and for any section t of C over $\textrm{pair}_{A, B}$ there is a corresponding section $t'$ of $C'$ over $\textrm{pair}_{A', B'}$ obtained by reindexing. The following diagram is required to commute:

A choice of $\Pi $ -types $(\Pi , \lambda ,\ \textrm{app})$ for $(\mathbb {C}, \rho , \chi )$ is said to be pseudo-stable if for every Cartesian arrow $(\sigma , f, g) : (\Delta , A', B') \rightarrow (\Gamma , A, B)$ of dependent tuples, the following conditions are satisfied:

  1. (1) There is a Cartesian arrow $\Pi _f g : \Pi _{A'} B' \rightarrow \Pi _A B$ over $\sigma $ and the assignment:

    $$ \begin{align*} (\sigma, f, g) \mapsto (\sigma, \Pi_f g) \end{align*} $$
    is functorial, i.e., $\Pi _{1_A} 1_B = 1_{\Pi _A B}$ and $\Pi _{(f' \circ f)} (g' \circ g) = \Pi _{f'} g' \circ \Pi _f g$ .
  2. (2) For any section $t : \Gamma .A \rightarrow \Gamma .A.B$ of B there is a corresponding section $t' : \Delta .A' \rightarrow \Delta .A'.B'$ of $B'$ obtained by reindexing along $f : \Delta .A' \rightarrow \Gamma .A$ . Then, the following diagram commutes:

  3. (3) The following diagram commutes:

Acknowledgments

Nicola Gambino gratefully acknowledges the support of EPSRC under grant EP/M01729X/1, of the US Air Force Office for Scientific Research under agreement FA8655-13-1-3038 and the hospitality of the School of Mathematics of the University of Manchester while on study leave from the University of Leeds. Marco Federico Larrea would like to thank the Mexican National Council for Science and Technology (CONACyT) for the financial support during the preparation of his PhD thesis [Reference Larrea23], supervised by Nicola Gambino, on which this paper is based. We are grateful to Steve Awodey, John Bourke, Thierry Coquand, Peter Lumsdaine, Paige North (who spotted an inaccuracy in an earlier version of Proposition 4.3), Andy Pitts, Christian Sattler, Raffael Stenzel, Andrew Swan, and Thomas Streicher for helpful discussions. We are also thankful to the referee for helpful suggestions.

References

Awodey, S. and Warren, M. A., Homotopy theoretic models of identity types . Mathematical Proceedings of the Cambridge Philosophical Society , vol. 146 (2009), pp. 4555.CrossRefGoogle Scholar
Barthel, T. and Riehl, E., On the construction of functorial factorizations for model categories . Algebraic & Geometric Topology , vol. 13 (2013), no. 2, pp. 10891124.CrossRefGoogle Scholar
van den Berg, B. and Garner, R., Topological and simplicial models of identity types . ACM Transactions on Computational Logic , vol. 13 (2012), no. 1, p. 3.Google Scholar
Bezem, M. and Coquand, T., A Kripke model for simplicial sets . Theoretical Computer Science , vol. 574 (2015), pp. 8691.CrossRefGoogle Scholar
Bourke, J. and Garner, R., Algebraic weak factorisation systems I: Accessible AWFS . Journal of Pure and Applied Algebra , vol. 220 (2016), no. 1, pp. 108147.CrossRefGoogle Scholar
Bourke, J. and Garner, R., Algebraic weak factorisation systems II: Categories of weak maps . Journal of Pure and Applied Algebra , vol. 220 (2016), no. 1, pp. 148174.CrossRefGoogle Scholar
Cohen, C., Coquand, T., Huber, S., and Mörtberg, A., Cubical type theory: A constructive interpretation of the univalence axiom , 21st International Conference on Types for Proofs and Programs (TYPES 2015) (T. Uustalu, editor), Schloss Dagstuhl-Leibniz-Zentrum für Informatik, Dagstuhl, 2018, pp. 5:15:34.Google Scholar
Conduché, F., Au sujet de l’existence d’adjoints à droite aux foncteurs “image réciproque” dans la catégorie des catégories . Comptes Rendus. Académie des Sciences , vol. 275 (1972), pp. A891A894.Google Scholar
Curien, J.-L., Garner, R., and Hofmann, M., Revisiting the categorical interpretation of dependent type theory . Theoretical Computer Science , vol. 546 (2014), pp. 99119.CrossRefGoogle Scholar
Dybjer, P., Internal type theory , Types for Proofs and Programs, TYPES ’95 (S. Berardi and M. Coppo, editors), Lecture Notes in Computer Science, vol. 1185, Springer, Berlin, 1996.Google Scholar
Emmenegger, J., Pasquali, F., and Rosolini, G., Elementary fibrations of enriched groupoids. Mathematical Structures in Computer Science, to appear.Google Scholar
Gambino, N. and Garner, R., The identity type weak factorisation system . Theoretical Computer Science , vol. 409 (2008), no. 1, pp. 94109.CrossRefGoogle Scholar
Gambino, N. and Henry, S.. Towards a constructive simplicial model of univalent foundations, preprint, 2021, arXiv:1905.06281.Google Scholar
Gambino, N. and Sattler, C., The Frobenius condition, right properness, and uniform fibrations . Journal of Pure and Applied Algebra , vol. 221 (2017), no. 12, pp. 30273068.CrossRefGoogle Scholar
Garner, R., Understanding the small object argument . Applied Categorical Structures , vol. 17 (2009), no. 3, pp. 247285.CrossRefGoogle Scholar
Giraud, J., Cohomologie Non Abélienne , Springer, Berlin, 1971.CrossRefGoogle Scholar
Grandis, M. and Tholen, W., Natural weak factorization systems . Archiv der Mathematik , vol. 42 (2006), no. 4, pp. 397408.Google Scholar
Hofmann, M., On the interpretation of type theory in locally Cartesian closed categories , International Workshop on Computer Science Logic (Pacholski, L. and Tiuryn, J., editors), Springer, Berlin, 1994, pp. 427441.Google Scholar
Hofmann, M. and Streicher, T., Lifting Grothendieck universes, unpublished manuscript, 1997, available from the second-named author’s web page.Google Scholar
Hofmann, M. and Streicher, T., The groupoid interpretation of type theory , Twenty-Five Years of Constructive Type Theory (Venice, 1995) , Oxford University Press, 1998, pp. 83111.Google Scholar
Jacobs, B., Comprehension categories and the semantics of type dependency . Theoretical Computer Science , vol. 107 (1993), no. 2, pp. 169207.CrossRefGoogle Scholar
Jacobs, B., Categorical Logic and Type Theory , Elsevier, Amsterdam, 1999.Google Scholar
Larrea, M. F., Models of dependent type theory from algebraic weak factorisation systems , Ph.D. thesis, University of Leeds, 2018. Available at http://etheses.whiterose.ac.uk/23032.Google Scholar
Lefanu Lumsdaine, P. and Warren, M. A., The local universes model: An overlooked coherence construction for dependent type theories . ACM Transactions on Computational Logic , vol. 16 (2015), no. 3, pp. 131.CrossRefGoogle Scholar
Mac Lane, S., Natural associativity and commutativity . Rice University Studies , vol. 49 (1963), pp. 2846.Google Scholar
Nordström, B., Petersson, K., and Smith, J., Chaper V: Martin-Löf type theory , Handbook of Logic in Computer Science (Abramsky, S., Gabbay, D. M., and Maibaum, T. S. E., editors), Oxford Logic Guides, Oxford University Press, Oxford, 2001, pp. 137.Google Scholar
North, P. R., Type-theoretic weak factorization systems, preprint, 2019, arXiv:1906.00259.Google Scholar
Orton, I. and Pitts, A. M., Axioms for modelling cubical type theory in a topos . Logical Methods in Computer Science , vol. 14 (2018), no. 4, pp. 133.Google Scholar
Riehl, E., Algebraic model structures . New York Journal of Mathematics , vol. 17 (2011), no. 173–231, p. 27.Google Scholar
Riehl, E. and Verity, D., The theory and practice of Reedy categories . Theory and Applications of Categories , vol. 29 (2014), no. 9, pp. 256301.Google Scholar
Seely, R.A.G., Locally Cartesian closed categories and type theory . Mathematical Proceedings of the Cambridge Philosophical Society , vol. 95 (1984), pp. 3348.Google Scholar
Streicher, T., Fibred categories à la Jean Bénabou, preprint, 2020, arXiv:1801.02927.Google Scholar
Warren, M. A., Homotopy theoretic aspects of constructive type theory , Ph.D. thesis, Carnegie Mellon University, 2008.Google Scholar
van den Woerkom, W. K., Algebraic models of type theory, M.Sc. thesis, Institute for Language, Logic and Computation, University of Amsterdam, 2021. Available at https://eprints.illc.uva.nl/1781/1/MoL-2021-02.text.pdf.Google Scholar