Identity types and weak factorization systems in Cauchy complete categories
Paige Randall North

TL;DR
This paper characterizes when a weak factorization system in a Cauchy complete category can interpret dependent type theory with Sigma- and Id-types, reducing the problem to a specific display map category.
Contribution
It provides a necessary and sufficient condition for a weak factorization system to support dependent type theory interpretations in Cauchy complete categories.
Findings
Characterizes when (C, R) forms a display map category for Sigma- and Id-types
Reduces the search for suitable classes D to a unique candidate
Establishes a criterion linking weak factorization systems and type-theoretic models
Abstract
It has been known that categorical interpretations of dependent type theory with Sigma- and Id-types induce weak factorization systems. When one has a weak factorization system (L, R) on a category C in hand, it is then natural to ask whether or not (L, R) harbors an interpretation of dependent type theory with Sigma- and Id- (and possibly Pi-) types. Using the framework of display map categories to phrase this question more precisely, one would ask whether or not there exists a class D of morphisms of C such that the retract closure of D is the class R and the pair (C, D) forms a display map category modeling Sigma- and Id- (and possibly Pi-) types. In this paper, we show, with the hypothesis that C is Cauchy complete, that there exists such a class D if and only if (C,R) itself forms a display map category modeling Sigma- and Id- (and possibly Pi-) types. Thus, we reduce the search…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Identity types and weak factorization systems in Cauchy complete categories
Paige Randall North
Abstract.
It has been known that categorical interpretations of dependent type theory with - and -types induce weak factorization systems. When one has a weak factorization system on a category in hand, it is then natural to ask whether or not harbors an interpretation of dependent type theory with - and - (and possibly -) types. Using the framework of display map categories to phrase this question more precisely, one would ask whether or not there exists a class of morphisms of such that the retract closure of is the class and the pair forms a display map category modeling - and - (and possibly -) types. In this paper, we show, with the hypothesis that is Cauchy complete, that there exists such a class if and only if itself forms a display map category modeling - and - (and possibly -) types. Thus, we reduce the search space of our original question from a potentially proper class to a singleton.
This material is based upon work supported by the Air Force Office of Scientific Research under award number FA9550-16-1-0212.
Contents
1. Introduction
In this paper, we study categorical interpretations of dependent type theory [NPS00]. It has long been known that dependent type theory with - and -types can be interpreted in certain weak factorization systems [War08, AW09] and that such interpretations induce weak factorization systems [GG08]. Thus, a search for such interpretations could comprise two steps: first, identify a weak factorization system on a category , and second, decide if harbors an interpretation of dependent type theory with - and -types. Since we are interested in the connection between dependent type theory and familiar weak factorization systems of homotopy theory, we are interested primarily in the second step.
The present paper is the first in a series of papers which develop a theorem for recognizing whether a given weak factorization system harbors a model of dependent type theory with - and - (and possibly -) types. The content of this series can already be found in the author’s thesis [Nor17]. This paper is a streamlined account of the second chapter of [Nor17].
In this and following papers, we choose display map categories from the various categorical frameworks which can interpret dependent type theory. This is because the data of a display map category, which consists of a category and a class of maps of , is directly comparable to the data underlying a weak factorization system, which consists of a category and two classes of maps of (each of which determine the other).
Not only do we choose the simplest categorical framework for interpreting dependent type theory, but we have also chosen the simplest variant of weak factorization system (compared to, for example, algebraic weak factorization systems). We make these choices in order to reveal the most fundamental connection between these two notions.
In this paper, we study display map categories which model - and - (and possibly -) types. As mentioned above, such a structure generates a weak factorization system on the category where is the retract closure of . In this framework, for any weak factorization system on a category , our original question,
Question 1.1**.**
Does harbor an interpretation of dependent type theory with - and - (and possibly -) types?
can be phrased more precisely as the following question.
Question 1.2**.**
Does there exist a subclass such that is the retract closure of and is a display map category which models - and - (and possibly -) types?
The original contribution of this paper is the following theorem.
Theorem 5.12.
Consider a Cauchy complete category and a display map category which models -types and functorial -types. Then is again a display map category modeling - and functorial -types. If also models -types, then also models -types.
With this theorem, Question 1.2 is equivalent to the following question.
Question 1.3**.**
Is a display map category with - and - (and possibly -) types?
Thus, to decide whether or not harbors an interpretation, we do not have to analyze the pair for all classes whose retract closure is , which likely constitute a proper class. Rather, we only need to analyze the one pair . Indeed, this will be the subject of the next paper of this series.
2. Display map categories and quantifiers
In this section, we fix definitions of display map categories and of - and -types in display map categories.
Definition 2.1**.**
A display map category consists of a category with a terminal object and a class of morphisms of such that:
- (1)
contains every isomorphism; 2. (2)
contains every morphism whose codomain is a terminal object; 3. (3)
every pullback of every morphism of exists; and 4. (4)
is stable under pullback.
We call the elements of display maps.
In such a display map category, the objects of are meant to represent contexts, and the morphisms of represent context morphisms. A morphism of represents a type family dependent on . The empty context is represented by the terminal object of , so condition (2) says that every object of may also be viewed as a type dependent on the empty context. The pullback of a morphism of along a morphism of represents the substitution of into the type family .
Definition 2.2**.**
A display map category models -types if is closed under composition. We call a composition of display maps a -type and sometimes denote it by .
Definition 2.3**.**
A display map category models -types if for every pair of composable display maps and , there exists a display map with codomain and the universal property
[TABLE]
natural in . The term -type will refer to such a display map .
Remark 2.4*.*
The definitions in this section are relatively standard in the literature. A display map category which models -types coincides with Joyal’s notion of clan, and a display map category which models - and -types coincides with his notion of -clan [Joy17]. A class of displays in , in the sense of Taylor [Tay99], where all identities and morphisms to the terminal object are in is a display map category . His strong sums and dependent products coincide with our -types and -types. Criteria (1)-(4) of Shulman’s definition of type-theoretic fibration category constitute a display map category with - and -types [Shu15].
3. Identity types in display map categories
Now we define -types in a display map category. This definition is more convoluted and less standard than the definitions of - and -types, but in Section 3.1 below, we justify this choice of definition by comparing it with others.
First we fix some notation.
Notation 3.1**.**
For a class of morphisms of a category , let denote the class of morphisms of which have the left lifting property against . Similarly, let denote the class of morphisms of which have the right lifting property against .
Definition 3.2**.**
Consider a display map category () which models -types. We say that it models -types if for every in ,
- (1)
the diagonal in the slice has a factorization in
[TABLE]
such that
- (2)
is in and 2. (3)
for every morphism in , the pullback , as shown below, is in for .
[TABLE]
We will call the morphism in Diagram (3.1) the -type of in .
Note that since models -types in this definition, is closed under composition and stable under pullback. Thus, for any , is in as it is the composition of a pullback of with , and is in since it is the composition of and .
Definition 3.3**.**
Consider a display map category () which models -types and -types. For any object , let denote the full subcategory of the slice category spanned by those objects which are display maps. Let denote the category so that is the category of composable pairs of morphisms of .
We say that functorially models -types if for each object of , there is a functor which provides the factorization required by part (1) of Definition 3.2 above.
3.1. Comparison with other identity types
Our definition of identity types is not completely standard, so we pause here to compare it to others in the literature. The unconcerned reader can safely skip this section.
The identity types given above correspond to one of several ways in which identity types may be defined in the syntax of dependent type theory. All the variants that we will discuss here start with the standard formation and introduction rules.
[TABLE]
These must respect substitution: that is, we have the following meta-theoretic rules which Warren [War08] calls coherence rules.
[TABLE]
[TABLE]
Then the elimination and computation rules may be given in one of several ways:
- (1)
The (non-parametrized) elimination and computation rules à la Martin-Löf
[TABLE]
together with the appropriate coherence rule.
In the absence of -types, these rules are not strong enough to prove many important properties of the identity type. The following two variants of the elimination and computation rules build some of the flexibility that -types provide directly into the identity types:
- (2)
The parametrized elimination and computation rules à la Martin-Löf
[TABLE]
together with the appropriate coherence rule; 2. (3)
The elimination and computation rules à la Paulin-Mohring
[TABLE]
[TABLE]
together with the appropriate coherence rule.
Remark 3.4*.*
One might also consider parametrized elimination and computation rules à la Paulin-Mohring, by combining the variants (2) and (3).
[TABLE]
However, we do not find it necessary to consider such strong -types.
In the presence of -types, these three variants (1)-(3) of the rules are all equivalent. The fact that (1) is equivalent to (3) was first shown by Martin Hofmann, and can be found in [Str93, Addendum, pp. 142-143]. We show below in Proposition 3.6 that the two strengthened variants, (2) and (3), are equivalent in the absence of -types at least in our categorical interpretation with the hypothesis that is stable under pullback along .
Now, we define interpretations of these three variants of the identity type in a display map category. Note that we only model the coherence rules weakly, in the sense of [LW15].
Definition 3.5**.**
Consider a category with display maps which models -types. It models the formation and introduction rule of -types if for every in , the diagonal has a factorization in the slice such that is in .
[TABLE]
If models the formation and introduction rules of -types and if for every display map and every morphism , the pullback of (illustrated in the following diagram) is in , we say that models Martin-Löf -types.
[TABLE]
If models Martin-Löf -types and if for every display map , every morphism , and every display map , we have that is in , then we say that models parametrized Martin-Löf -types.
Now suppose that models the formation and introduction rule of -types. Suppose also that for all display maps , objects of , morphisms , and , the pullback of shown below is in . Then we say that models Paulin-Mohring -types.
[TABLE]
The parametrized Martin-Löf -types correspond to the strong -types of [vdBG12]. The Paulin-Mohring -types are what we just call identity types in Definition 3.2 and in the rest of this paper.
Proposition 3.6**.**
Consider a display map category which models -types and the formation and introduction rules of -types. Then
- (1)
if models parametrized Martin-Löf -types, it models Paulin-Mohring -types, and 2. (2)
if models Paulin-Mohring -types and is stable under pullback along , then it models parametrized Martin-Löf -types.
Proof.
Suppose that models parametrized Martin-Löf -types. We need to verify that the map in Diagram (3.3) is in . This follows from Lemma 2.4 of [Shu15]. That models Martin-Löf -types corresponds to Shulman’s conditions () and () which he shows entail condition (6). Then, the fact that is in is an instance of (6). Note that Shulman’s stated hypotheses are stronger than ours, though ours suffice to prove this result. In particular, he assumes that is stable under pullback along , but our weaker hypothesis that the -types are parametrized can be used instead.
Now suppose that models Paulin-Mohring -types and is stable under pullback along . Consider a morphism as in the definition (3.5) of parametrized Martin-Löf -types. Since and , we have that . ∎
Thus, modulo the hypothesis that is stable under pullback along , the conditions that a display map category model parametrized Martin-Löf -types and that it model Paulin-Mohring -types are equivalent. In the next paper of this series, we will show that if a display map category models -types and the formation and introduction rules of -types, then it models Paulin-Mohring -types if and only if is stable under pullback along (which already appears as Theorem 3.5.2 of [Nor17]). Thus this hypothesis that is stable under pullback along is not necessary, but this is not the focus of the present paper.
The conditions (1), (2), (5), (6) of Shulman’s type-theoretic fibration categories [Shu15, Def. 2.1] constitute a display map category which models -types and Paulin-Mohring -types. A tribe in the sense of Joyal [Joy17] is a display map category which models -types and Paulin-Mohring -types, given this equivalence between Paulin-Mohring -types and the stability of under pullback along .
In summary, the -types that we consider, the Paulin-Mohring -types, are comparable to other categorical -types that have appeared in the literature, and they are an appropriate version to study in the absence of -types. In what follows, we will return to calling Paulin-Mohring -types just -types.
4. Weak factorization systems from display map categories
In this section, we recall how any display map category with -types and -types generates a weak factorization system with a factorization where is the retract closure of and the image of lies in . This will give us a good enough handle on the relationship between and to prove our main theorem in the following section, where we extend an interpretation of type theory in to one in .
In the following proposition, we construct this weak factorization system. The proof uses ideas from the proof of Theorem 10 of [GG08], where a weak factorization system is constructed in the syntactic category of a dependent type theory. A categorical version appears as Theorem 2.8 in [Emm14].
Notation 4.1**.**
Let denote .
Proposition 4.2** ([Emm14, Thm. 2.8]).**
Consider a display map category which models -types and -types. There exists a weak factorization system in with a factorization where the image of is contained in . Furthermore, if the -types are functorial, then this weak factorization system is functorial.
Proof.
We just describe here the factorization since it will be used later. The full proof of this statement can be found in [Emm14].
The factorization is defined in the following way for any in . We have a factorization
[TABLE]
of the diagonal . Now we define the factorization of to be
[TABLE]
where the middle object is obtained in the following pullback.
[TABLE]
The left factor
[TABLE]
is obtained as the following pullback of .
[TABLE]
Thus, it is in .
The right factor
[TABLE]
is in because it is the composition of a pullback of with a pullback of . ∎
The class , which was defined to be in Notation 4.1, is the retract closure of , justifying its notation.
Lemma 4.3** ([MP12, Prop. 14.1.8]).**
Consider a display map category which models -types and -types. The class contains all isomorphisms, is closed under composition and retracts, and is stable under pullback.
Proposition 4.4**.**
Consider a display map category which models -types and -types. The class is the retract-closure (in , the category of morphisms of ) of . Moreover, every morphism of is a retract in of the display map defined in Proposition 4.2.
Proof.
That is the retract closure of follows from Lemma 4.3.
Consider any morphism of . That is a retract of follows from Lemma 1.1.9 of [Hov99], the argument of which we recount here. Consider the following lifting problem.
[TABLE]
It has a solution since and . Then we can rearrange the lifting problem diagram into the following commutative diagram where appears as a retract of in .
[TABLE]
5. Cauchy complete categories
In this section, we prove our main theorem: if a category is Cauchy complete and is a display map category which models -types and -types, then is also a display map category which models -types and -types. Moreover, if also models -types, then models -types as well.
The proofs in this section use the following idea. We need to prove that a certain functor, built out of elements of , is representable while we hypothesize that the same functor, if built only out of elements of , is representable. In a Cauchy complete category, retracts of representable functors are themselves representable (Lemma 5.7). Thus, using the fact that every element of is a retract of an element of , we aim to show that those functors we want to be representable are retracts of functors we know to be representable.
5.1. Preliminaries
In this section, we recall the basic definitions and results that are necessary for our narrative.
Definition 5.1** ([Bor94, Def. 6.5.1,3,8]).**
A morphism in a category is an idempotent if . A splitting of such an idempotent is a retract of
[TABLE]
such that , and we say an idempotent splits if it has a splitting. The category is Cauchy complete if every idempotent splits.
Every splitting of an idempotent arises as a coequalizer (and also an equalizer). We will make extensive use of the following corollaries of this fact so we record them here.
Proposition 5.2** ([Bor94, Prop. 6.5.4]).**
Consider an idempotent in a category . If splits as , then is the coequalizer of the diagram . Conversely, any coequalizer of the diagram gives a splitting of .
Corollary 5.3**.**
Consider a category , idempotents and in , and a morphism making the following diagram commute.
[TABLE]
Then splittings of both and extend uniquely to a splitting of the idempotent in . In particular, given a splitting of and a splitting of , the following diagram displays the unique splitting of in .
[TABLE]
Moreover, if is an isomorphism, then so is .
Corollary 5.4**.**
If is Cauchy complete, then is Cauchy complete.
Corollary 5.5**.**
If is Cauchy complete, then any slice of is Cauchy complete.
Corollary 5.6**.**
Splittings of idempotents are unique up to unique isomorphism.
The following lemma will be our main tool in establishing the results of this section.
Lemma 5.7** ([Bor94, Lem. 6.5.6]).**
If is Cauchy complete, then any retract of any representable functor is representable.
5.2. Display map categories
Proposition 5.8**.**
Consider a Cauchy complete category . If is a display map category, then is one as well.
Proof.
Since and contains all isomorphisms and morphisms to the terminal object, then does as well. Since is the right class of a lifting pair, it is stable under pullback (Lemma 4.3). It only remains to show that pullbacks of morphisms of exist.
Consider a morphism of and a morphism of . By Proposition 4.4, is a retract in of some in . Let denote the pullback diagram category, and let denote the following two pullback diagrams in .
[TABLE]
Let denote the functor which sends an object of to the constant functor at .
Then since is a retract of in , the functor is a retract of in , and thus the functor is a retract of . Now since we assume that there is a limit of the pullback diagram , the functor is representable. Therefore, by Lemma 5.7, the functor is also representable, and we conclude that has a limit.
Therefore, assuming that pullbacks of morphisms of exist, pullbacks of morphisms of exist. ∎
5.3. -types
Since is closed under composition, we immediately find that models -types. Note that for this result, we only use the hypothesis that is Cauchy complete to ensure, by Proposition 5.8, that is a display map category.
Proposition 5.9**.**
Consider a Cauchy complete category and a display map category which models - and -types. Then is a display map category which models -types.
Proof.
is closed under composition by Lemma 4.3, and this means that models -types. ∎
5.4. -types
Proposition 5.10**.**
Consider a Cauchy complete category . Suppose that is a display map category which models -types and functorial -types. Then is a display map category which models functorial -types.
Proof.
Fix a slice and an object in this slice. We want to construct an -type for . There is a such that is a retract of (Proposition 4.4). Since we have an -type on , we have the following diagram in (where , form the retraction and form the -type on ).
[TABLE]
Since the type is functorial, there is a morphism making the following diagram commute.
[TABLE]
Since is an idempotent and this factorization is given functorially, the morphism is also an idempotent. By Lemma 5.5, is Cauchy complete, so we can split the idempotent . Then by Corollary 5.3, this extends to splittings of the rectangles in diagram () above. This gives us the following commutative diagram.
[TABLE]
Now we see that the morphism is in since it is a retract of .
Now, we need to show that for any , the pullback is in . Let denote the composition for and . Since is a retract of , as shown in the following diagram, is a retract of .
[TABLE]
Since is in by hypothesis, and is closed under retracts, we find that is in .
Therefore, models functorial -types. ∎
5.5. -types
Proposition 5.11**.**
Consider a Cauchy complete category of display maps which models -types, -types, and -types. Then the display map category also models -types.
Proof.
Consider morphisms and which are both in . We aim to obtain a -type .
Note that because
[TABLE]
is a pullback of , it is in .
[TABLE]
For any morphism , let denote the middle object of the factorization given in Proposition 4.2. We will also denote the morphism as
[TABLE]
when it improves readability. (Note that the domain and codomain are indeed the middle objects of the factorizations of and , respectively.)
Since and are in , we can form the -type with the following bijection for any in .
[TABLE]
This means that represents the functor
[TABLE]
We now show that is a retract of this functor, so by Lemma 5.7, it will itself be representable.
Let denote the natural transformation
[TABLE]
which at a morphism in , takes a morphism in
[TABLE]
to the following morphism in
[TABLE]
where and are given by solutions to the following lifting problems.
[TABLE]
(The morphism is in because it is the composition of with . The morphism is in because it is one of the pullbacks of ensured to be in by the definition of -types.)
Then let denote the natural transformation
[TABLE]
which at a morphism in , takes a morphism in
[TABLE]
to the following composition in
[TABLE]
where is a solution to the following lifting problem.
[TABLE]
Now we claim that
[TABLE]
is a retract diagram. To that end, consider a morphism of . Then is the following composition.
[TABLE]
The composition is . Thus, the composite of the first three vertical morphisms in the above diagram is
[TABLE]
Moreover, is so the composite of the first four morphisms above is
[TABLE]
The composite is the identity, so the vertical composite above is . Therefore, , and and form a retract.
Now by Lemma 5.7, we can conclude that is representable by an object which we will denote by . Furthermore, is a retract of . Since is in , we can conclude that is in , the retract closure of . Therefore, does in fact model -types. ∎
5.6. Summary
Putting together Propositions 5.8, 5.9, 5.10, and 5.11, we get the following theorem.
Theorem 5.12**.**
Consider a Cauchy complete category and a display map category which models -types and functorial -types. Then is again a display map category modeling - and functorial -types. If also models -types, then also models -types.
Proof.
By Proposition 5.8, is a category with display maps. By Proposition 5.9, it models -types. By Proposition 5.10, it models functorial -types. By Proposition 5.11, it models -types. ∎
Corollary 5.13**.**
Consider a weak factorization system on a Cauchy complete category . The following are equivalent:
- (1)
There is a subclass such that and is a display map category which models - and functorial -types. 2. (2)
* is a display map category which models - and functorial -types.*
The following are also equivalent:
- (1)
There is a subclass such that and is a display map category which models -, functorial -, and -types. 2. (2)
* is a display map category which models -, functorial -, and -types.*
6. Display map categories reflected in weak factorization systems
In this last section, we remark that our main theorem (5.12) can be phrased more categorically as Theorem 6.1 below. Here, we consider various categories of display map categories on a fixed category . One might want to consider categories of display map categories with more structure, but we give here a simplified account of the situation to just expose a more categorical version of our result without being encumbered by technicalities.
Let be a Cauchy complete category. Let denote the category whose objects are subclasses of morphisms of and whose morphisms are inclusions . Then we can identify the following four full subcategories of :
- •
, the full subcategory of spanned by those such that is a display map category with - and functorial -types;
- •
, the full subcategory of spanned by those such that is a display map category with -, functorial -, and -types;
- •
, the full subcategory of spanned by those such that is a weak factorization system; and
- •
, the full subcategory of spanned by those such that is a weak factorization system.
Now we can state our main theorem as the existence of a reflector.
Theorem 6.1**.**
Consider a Cauchy complete category . The category is a reflective subcategory of , and is a reflective subcategory of . That is, there are left adjoints in the diagram below.
[TABLE]
Proof.
Consider the endofunctor on given on objects by . By Theorem 5.12, this functor can be restricted to functors
[TABLE]
[TABLE]
To see that these are the left adjoints shown in the statement, we need to show for any in and any in that
[TABLE]
or, equivalently, that there is an inclusion if and only if there is an inclusion . If , then since , we have that . If , then . Since by Lemma 4.3, we have that . ∎
7. Outlook
In conclusion, we mention ways in which these results can be extended.
In Section 5.4, we showed that if is a Cauchy complete category and is a display map category which models functorial -types, then also models functorial -types. We needed the hypothesis that the -types were functorial in order to use the hypothesis that was Cauchy complete. However, this was not strictly necessary. In the next paper in this series, we will develop results which imply the following: if is a Cauchy complete category and is a display map category which models -types, then also models -types. This already appears as Proposition 2.5.9 in [Nor17].
In this paper, we have described a relationship between display map categories and weak factorization systems. We hope to upgrade this to a description of the relationship between comprehension categories and more structured weak factorization systems. In particular, the perspective taken in Theorem 6.1 will be the one appropriate for strengthening our results in that direction. This will build upon work done by Moss in [Mos18] in which he makes clear the relationship between Cauchy completion and comprehension categories.
Acknowledgements
I thank my PhD supervisor Martin Hyland for his guidance and many useful discussions regarding this work. I would also like to thank Benedikt Ahrens and Peter LeFanu Lumsdaine for reading and commenting on drafts of this paper. Thanks also go to the editor, Richard Garner, and the anonymous referees whose insightful comments were very helpful in forming the present paper.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[AW 09] S. Awodey and M. A. Warren. Homotopy theoretic models of identity types. Math. Proc. Cambridge Philos. Soc. , 146(1):45–55, 2009.
- 2[Bor 94] F. Borceux. Handbook of categorical algebra , volume 1. Cambridge University Press, Cambridge, UK, 1994.
- 3[Emm 14] J. Emmenegger. A category-theoretic version of the identity type weak factorization system, 2014. arxiv:1412.0153.
- 4[GG 08] N. Gambino and R. Garner. The identity type weak factorisation system. Theoret. Comput. Sci. , 409(1):94–109, 2008.
- 5[Hov 99] M. Hovey. Model categories . American Mathematical Society, Providence, RI, 1999.
- 6[Joy 17] A. Joyal. Notes on Clans and Tribes, 2017. arxiv:1710.10238.
- 7[LW 15] P. L. Lumsdaine and M. A. Warren. The local universes model: an overlooked coherence construction for dependent type theories. ACM Trans. Comput. Log. , 16(3):23:1–23:31, 2015.
- 8[Mos 18] S. Moss. The Dialectica Models of Type Theory . Ph D thesis, University of Cambridge, 2018.
