Coslice Colimits in Homotopy Type Theory
Abstract
We contribute to the theory of (homotopy) colimits inside homotopy type theory. The heart of our work characterizes the connection between colimits in coslices of a universe, called coslice colimits, and colimits in the universe (i.e., ordinary colimits). To derive this characterization, we find an explicit construction of colimits in coslices that is tailored to reveal the connection. We use the construction to derive properties of colimits. Notably, we prove that the forgetful functor from a coslice creates colimits over trees. We also use the construction to examine how colimits interact with orthogonal factorization systems and with cohomology theories. As a consequence of their interaction with orthogonal factorization systems, all pointed colimits (special kinds of coslice colimits) preserve -connectedness, which implies that higher groups are closed under colimits on directed graphs. We have formalized our main construction of the coslice colimit functor in Agda.
Keywords and phrases:
colimits, homotopy type theory, category theory, higher inductive types, synthetic homotopy theoryCopyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Type theorySupplementary Material:
Software (Agda Code): https://github.com/PHart3/colimits-agda/tree/v0.1.0 [7]Acknowledgements:
We thank the anonymous reviewers for their feedback that improved the writing of this paper. We also thank the anonymous reviewer for HoTT/UF 2023 who pointed out the relationship between adjunctions and factorization systems.Funding:
This material is based upon work supported by the Air Force Office of Scientific Research under award number FA9550-21-1-0009. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the United States Air Force.Editors:
Jörg Endrullis and Sylvain SchmitzSeries and Publisher:

1 Introduction
Homotopy type theory (HoTT) extends Martin-Löf type theory (MLTT) with univalence and higher inductive types [27]. The key feature of HoTT is that all types behave as homotopy types of topological spaces [9]. Thus, with HoTT, we can use purely type-theoretic methods to prove new properties of spaces. Moreover, higher inductive types (HITs) let us bring a vast range of spaces into HoTT. As a result, HoTT is a useful system for developing synthetic homotopy theory and formalizing it in proof assistants like Coq and Agda [5, 8].
We study HITs arising as (homotopy) colimits in coslices of a universe, called coslice colimits. Coslices of a universe are type-theoretic versions of coslice categories. A colimit in a category is an object formed by gluing together simpler objects in a coherent fashion. The coherent requirement ensures that the colimit has a universal property, which reduces proofs about the colimit to proofs about the simpler objects it is built out of. When these objects are spaces, perhaps endowed with extra structure, colimits built out of them find wide use in homotopy theory. For example, the class of HITs we study includes colimits of pointed spaces. Such colimits are key to the Brown representability theorem, which is about homotopy functors on the (-)category of pointed connected spaces. Indeed, its proof relies on the fact that this category is generated under colimits by compact cogroups.
1.1 Contributions
In this section, we explain the contributions of the paper along with its organization. We start by outlining the heart of the paper, which we call the main connection. Afterward, we describe three independent applications of the main connection in synthetic homotopy theory. Details, proofs, and related additional results are found in our associated technical report [6]. Further, we have formalized in Agda our construction of -colimits as well as the universality of ordinary colimits for Corollary 21.
1.1.1 The main connection (Section 5)
Suppose is a universe and is a type in . We want to construct colimits in the coslice , or -colimits. The (wild) category has objects and morphisms . Here, is defined by for any dependent functions , called the type of homotopies from to .
HoTT has a general schema for HITs that would let us simply postulate -colimits. We, however, explicitly construct -colimits with just the machinery of MLTT augmented with pushouts (Section 5.3).111A theoretical advantage of such a construction is that pushouts, the simplest nontrivial HITs, can be postulated with a less powerful schema than that required to postulate -colimits. We take this different approach to reveal the connection between -colimits and their underlying colimits in . In fact, our construction is not a case of a general method to encode higher-dimensional HITs with pushouts but rather tailored to reveal this connection.
Why do we care about this connection? It sheds light on three established areas of synthetic homotopy theory. We preview them now and return to them in Sections 6, 7, and 8.
The universality of colimits (Section 6)
The universality of colimits is a special feature of locally cartesian closed (LCC) -categories, such as that of spaces. The main connection will establish a well-known classical result inside type theory: The forgetful functor creates colimits of diagrams over contractible graphs (Theorem 18), which make up a large subclass of graphs.222For a definition of creating (co)limits, see [16]. Examples of such colimits include sequential colimits [25]. With the forgetful functor creating colimits, we can transfer universality of ordinary colimits to -colimits over contractible graphs (Corollary 21). This is notable as LCC -categories are not closed under coslices.
The categories of higher groups are cocomplete (Section 7)
A striking feature of colimits is their interaction with (orthogonal) factorization systems. In Section 7, we use the main connection to show that colimits in preserve left classes of maps of factorization systems on . It is significant that we consider factorization systems on rather than . We could derive a similar preservation theorem for systems on directly from the universal property of an -colimit. In practice, however, the factorization systems we tend to care about are on . Since the main connection relates the action of -colimits on maps to the action of the underlying ordinary colimits on maps (Section 5.4), we manage to deduce the preservation theorem for systems on .
To prove this theorem, we find it useful to develop the theory of factorization systems in a more general setting than . In Section 4.1, we study such systems on wild categories, which make up one approach to category theory in HoTT. We prove that if a functor of well-behaved wild categories with factorization systems has a right adjoint , then preserves the left class when preserves the right class (Theorem 13). We combine this result with the main connection to deduce the desired preservation property.
When we focus on the (-connected, -truncated) factorization system on [27, Chapter 7.6] and take as the unit type, the main connection shows that the colimit of every diagram of pointed -connected types is -connected. One useful corollary of this is that the higher category of -tuply groupal -groupoids considered by [2] is cocomplete on (directed) graphs for all truncation levels and (Example 23).
Cohomology sends colimits to weak limits (Section 8)
Finally, we examine how colimits interact with cohomology theories, which are important algebraic invariants of spaces. To do so, we consider weak limits, which are key ingredients in the Brown representability theorem (BRT). A weak colimit in a category need not satify the uniqueness property required of a colimit. The BRT specifies conditions for a presheaf on the homotopy category of pointed connected spaces to be representable. The standard proof of the BRT requires the presheaf to send countable homotopy colimits in to weak limits in [14, Section 1.4.1]. Eilenberg-Steenrod cohomology theories enjoy this property as set-valued functors.
In Section 8, we use the main connection to establish a restricted, type-theoretic version of this property. From the main connection we derive another construction of -colimits, as pushouts of coproducts (Corollary 26), which mirrors a well-known classical lemma. We take as the unit type and combine the new construction with the Mayer-Vietoris sequence to find that cohomology takes finite colimits to weak limits assuming the axiom of choice.
2 Additional related work
2.1 Construction of nonrecursive -HITs
The HITs we consider are nonrecursive -HITs, in the sense that they have only nonrecursive constructors of points and of paths of dimension one or two. Van Doorn et al. explicitly construct nonrecursive -HITs in MLTT augmented with pushouts [28, Section 5]. When specialized to -colimits, however, their construction has a significantly different form from ours and does not directly lead to the properties of -colimits we derive. Moreover, they do not prove the full induction principle enjoyed by the -HIT for their construction, whereas we do for ours. The full induction principle is necessary (and sufficient) to characterize the -HIT uniquely.
2.2 Orthogonal factorization systems
Our work also builds on the theory of factorization systems. Such systems play important roles in model category theory [20], a key framework for classical homotopy theory. Moreover, in type theory, Rijke et al. have shown that factorization systems on are closely connected to modalities [22], which are important in logic. We extend factorization systems to wild categories other than . Moreover, we lift factorization systems on to wild categories of -valued diagrams (Lemma 22).
3 Background on type theory and colimits
Before describing the main connection and its applications, we need to review the type system we work in. For us, the most important data type of this system is the ordinary colimit, i.e., the colimit of a diagram of types over a graph. We define this type in Section 3.3 and call it “ordinary” to distinguish it from the notion of coslice colimit. The latter takes place in coslices of a universe rather than the universe itself, and we will construct coslice colimits out of ordinary colimits.
3.1 Type system
We assume the reader is familiar with MLTT and HITs in the style of [27]. We will work in MLTT augmented with ordinary colimits and denote this system by . In fact, we need only augment MLTT with pushouts as they let us construct all nonrecursive -HITs, including ordinary colimits, with all of their computational properties. Notably, comes with strong function extensionality for free. This property is critical for reasoning about functions in type theory and underlies our entire development (see, for example, Lemma 8). Overall, we carry out our proofs inside until Section 7. For Section 7 and Section 8, we also assume Voevodsky’s univalence axiom.
Before reviewing ordinary colimits, we recall two essential constructions in our type system. The first is the function defined by path induction for all functions and . (We use for the identity type and for definitional equality.) If we view as an -groupoid, then is the action of on morphisms of (thereby exhibiting as a functor). The second is the transport function for any type family over . This notion also gives us a dependent version of : If , then we have a function . The transport function is essential for stating the induction principle for HITs, e.g., the colimits in Section 3.3. It also satisfies the following coherence law, which we need for our construction of -colimits.
Lemma 1.
Let . For all , , and , we have a commuting square of identities
Finally, a remark on notation: we may use the Agda notation for the type for any type family over .
3.2 Graphs
Let be a universe and . In classical -category theory, a diagram in a category is a functor , where is the shape of the diagram. As long as is cocomplete, we can form the functor sending each diagram over to its colimit in . We, however, want the colimit of a diagram in the -category . This requires the diagram to be an -functor: the functor laws must satisfy coherence laws up to homotopy, which themselves must satisfy higher coherence laws, and so on at arbitrarily high levels. It is unknown whether such -functors are definable in HoTT.
To avoid infinite coherence conditions, we specialize to the free category generated by a graph. A graph is a pair consisting of a type of vertices and a family of edges. A -shaped diagram in is a pair consisting of a function and a family of maps . We may write for and . The induced diagram in satisfies all the infinite coherence laws because its domain is freely generated by the points and edges of .
Example 2.
For each graph and , the constant diagram at is defined by and . We often refer to simply by .
We will see that -colimits interact nicely with trees. A tree is a graph without non-directed cycles. Formally, a graph is a tree if the quotient is contractible. Both and are trees when equipped with the successor ordering:
Another example of a tree is a span , on which pushouts are defined.
Rijke has defined the notion of directed tree and has defined an interpretation function sending an element of a -type to a directed tree [23, The underlying trees of elements of W-types]. Intuitively, a directed tree is a rooted graph such that for each vertex , there is a single directed path (including the trivial path) from to the root. Every directed tree is a tree in our sense [6, Corollary 4.0.6]. Thus, elements of a -type can be realized as trees.
3.3 Colimits in
Let be a -shaped diagram in . The (ordinary) colimit of is the HIT generated by
These two constructors make a cocone under (or -cocone): a type equipped with maps and homotopies . What characterizes as a colimit of is that is a (homotopy) initial -cocone [24]. Equivalently, for every , the function
is an equivalence, where denotes the type of -cocones on .
Our proof of Theorem 15 will use the induction principle for . This states that for every type family over together with data
we have a function that satisfies and is equipped with an identity .
4 Wild categories
Any universe, along with its coslices, fits into the framework of wild categories. This is one approach to category theory in HoTT and is used by other works of synthetic homotopy theory [3, 5, 11]. It is useful for the relationship between -colimits and factorization systems we establish in Section 7. This requires us to formulate factorization systems on categories other than universes, namely the category of type-valued diagrams over a graph.
The key distinction between wild categories and (pre-)categories [27, Chapter 9.1] is that the latter have -truncated hom types. This means that instead of trivializing the higher coherence data for morphisms, wild categories simply ignore them. We choose them over pre-categories because we will focus on universes and their coslices (see Example 7), which are wild categories but not pre-categories.
Definition 3 ([6, Definition 3.1.1]).
A wild category (in a universe ) is a tuple consisting of a type of objects, a family of hom types, identity morphisms , composition , left and right unit laws for , and associativity laws for .
By itself, the data of a wild category is insufficient for our work on factorization systems. We need two extra ingredients. The first is the notion of a wild bicategory. The second is a wild-categorical version of univalence.
Definition 4.
A wild category is a (wild) bicategory if it is equipped with identities
-
(a)
for all composable morphisms , , , and
-
(b)
for all composable morphisms and .333A wild bicategory is called a wild -precategory by [3].
Remark.
For us, a bicategory is always a wild -category since the -cells, which are identities in , are invertible.
Before moving to univalence, we transfer a well-known lemma of classical -category theory to type theory. This was first proved for monoidal categories [10], but the proof is applicable to all bicategories. (The type-theoretic version also appears as [3, Lemma 4.3].)
Lemma 5 ([6, Lemma 3.1.3]).
Let be a bicategory. For all , , , we have .
Definition 6.
We say that a wild category is univalent if the canonical function is an equivalence. Here, elements of the righthand type are equivalences, defined as bi-invertible morphisms (in the manner of [27, Definition 4.3.1]).
Example 7.
The following are univalent bicategories assuming the univalence axiom.
-
The category of types and functions
-
For each , the coslice of under
-
The category of -shaped diagrams in . We define its hom types (natural transformations) when we present the action of the -colimit on maps (Section 5.4).
Our ultimate interest is in colimits in the wild category . This category is defined by
For each , the identity morphism on is . Composition is defined by . The associativity and unit laws follow from routine path algebra. Note that the categories and are equivalent.
We write and for the functions and , i.e., the underlying type and structure map of an object in , respectively. Also, we write and for the functions and , respectively.
Lemma 8.
Let . Define as the type of homotopies equipped with a commuting triangle
for each . The canonical function is an equivalence, with inverse denoted by .
Elements of are called -homotopies between and .
4.1 Orthogonal factorization systems
We now introduce (orthogonal) factorization systems on wild categories. For us, the key property of such systems is that they interact nicely with adjunctions. In Section 7, we deduce from this property, combined with the main connection, that -colimits preserve the left classes of factorization systems on .
Definition 9.
Let be a wild category. An orthogonal factorization system (OFS) on consists of predicates such that
-
1.
both and are closed under composition and have all identities
-
2.
for every , the following type is contractible:
For the next lemma, where is a univalent bicategory, is similar enough to that the proof of the lemma for can be transferred to .444For the proof of this lemma for , see [22, Lemma 1.46]. Indeed, univalence lets us characterize the identity types of via the fundamental theorem of identity types [21, Theorem 11.2.2]. Moreover, Lemma 5 gives us a suitable diagonal filler for the key commuting square used by the proof. Before stating the next lemma, we need a definition.
Definition 10.
Let be a wild category. Let and be a property of morphisms in . We say that has the left lifting property against if for every such that and every commuting square
the type of diagonal fillers
is contractible.
Lemma 11 ([6, Corollary 3.3.6]).
Suppose that is a univalent bicategory with an OFS . A map is in if and only if it has the left lifting property against .
This alternative definition of is useful for the proof of Theorem 13, below. For this theorem, we need to introduce adjoint pairs of functors between wild categories.
Definition 12.
Let and be functors of wild categories. An adjunction consists of an equivalence for all and along with naturality proofs:
Theorem 13 ([6, Corollary 3.3.9]).
Consider an adjunction where both and are univalent bicategories. If preserves , then preserves .
5 The main connection
Let be a universe. Let be a graph and suppose is a diagram in over . Working in , we want to construct the -colimit of so as to show the connection between -colimits and ordinary colimits. After defining -colimit, we mention a reasonable yet wrong approach to constructing it. Then, we explain another construction and prove it is correct by exhibiting it as left adjoint to the constant diagram functor. The Agda proof of this adjunction is found in the folder [7, Colimit-code/Main-Theorem].
5.1 Definition of -colimits
We can generalize ordinary colimits in Section 3 to all coslices . For each , an -cocone on consists of a family of maps in together with an identity for all and . In this situation, we say that is a colimit of if is initial in the category of -cocones. This means that for each , the function
is an equivalence. We must include the associativity term since associativity of maps does not hold judgmentally in (whereas it does in ).
Observe that by a variant of Lemma 8, is equivalent to the type of homotopies equipped with a commuting square
of paths for each . It is this family of -cells which distinguishes the colimit of , in , from . Here, we reuse to denote the evident forgetful functor from -shaped diagrams in to those in . The -cells affect by collapsing its nontrivial loops formed by paths of the form . We call such loops distinguished loops in . For example, if and , then (5.1) is equivalent to . In this case, it fills the loop .
5.2 Misleading approach
If our setting behaved like the classical one, the colimit of in would arise as the ordinary colimit of the augmented diagram: augmented with the canonical arrow from to for each [17, Proposition 4.6]. If is discrete, i.e., is the empty relation, then the -colimit of inside HoTT is, in fact, the colimit of
In general, though, this construction is wrong inside HoTT. For example, the pointed colimit of the diagram is trivial, but the colimit of the augmented diagram
is the circle . The reason for the discrepancy between the classical case and ours is that unless is discrete, the augmented diagram inside HoTT adds arrows that are intended as composites but are not interpreted as such in the model of HoTT. Rather, the model sees them as freely added to the diagram.
5.3 Our approach
Our approach to building the colimit of never creates an augmented diagram, thereby avoiding the problem of Section 5.2. We start with the ordinary colimit which ignores the coslice structure of . Then, we glue onto this colimit the -cells required by the coslice colimit. We do this via a quotient of that fills its distinguished loops.
To this end, define by colimit induction, as the function induced by the cocone
under the constant diagram at . The homotopy is defined by . Intutively, finds the distinguished loops of . Next, form the pushout square
which, by the definition of pushout types, comes with a homotopy . This pushout is our approach to forming the desired quotient of .
Example 14.
Suppose that has a single vertex and a single loop at . Let denote the type of booleans. Define the pointed diagram over by and . Then . In this case, the function traces the left copy of , the distinguished loop, exactly once. The pushout is formed from by filling this loop, which collapses the left copy of to a point. As a result, .
Back to the general case, with the equivalence of Lemma 8, we can form an -cocone on
as follows. We have a homotopy from to . Further, for each , we have a chain of identities
(via ) | ||||
(via ) | ||||
(Lemma 1) | ||||
(by ) |
Let denote this -cocone structure on .
Theorem 15 ([6, Theorem 5.4.3]).
The function
is an equivalence for every .
Proof.
We construct an inverse of as follows. Let . The forgetful functor from cocones under to ordinary cocones under gives rise to the function by colimit induction. For all and , we have
Further, for all , , and , we have a chain of identities
(Lemma 1) | ||||
(via and then ) | ||||
(via ) | ||||
(by ) |
By induction on , this gives us a homotopy and thus a function
defined by pushout induction on . Finally, since for all , we have
Each of the homotopies and requires intricate computations to prove. We leave their proofs to the formalization (see the folders [7, Colimit-code/R-L-R] and [7, Colimit-code/L-R-L], respectively).
5.4 Action on maps
So far, we have defined a function sending a -shaped diagram in to its -colimit. We now make a functor by describing its action on maps of diagrams. We want to describe this action in terms of the action of the ordinary colimit functor by using the special form of ’s object function. Moreover, we must verify that such a description is correct by proving that is left adjoint to the constant diagram functor, i.e., enjoys the universal property of the colimit functor.
Suppose that and are -shaped diagrams in . The type of natural transformations from to consists of families of maps equipped with an -homotopy for all , where is as in Lemma 8. Consider a natural transformation
from to , where is as in Lemma 8. We form a map as follows. Start with the function induced by the following map of -valued diagrams over :
Note that for each ,
We may assume that instead has the equivalent type
Here we abbreviate the right endpoint of the path by . Now, the triangle
commutes by induction on . Indeed, the computation rules of these functions give us
for all and . Further, by defining , we have a chain of identities
(Lemma 1) | ||||
(via and then ) | ||||
(by ) | ||||
(via ) |
for all , , and , so (5.4) commutes. We now have a map
of spans, which induces a function by the universal property of pushouts. Since for all , we may take as .
To verify that the functor we’ve defined is correct, we must show that it is left adjoint to the constant diagram functor. To do so, we construct the terms and required by Definition 12.
Lemma 16 ([6, Lemma 5.4.5]).
For every map , the following square commutes:
Lemma 17 ([6, Lemma 5.4.12]).
For every and , the following square commutes:
The two lower horizontal functions are induced by post-composition with and pre-composition with [6, Definition 5.4.11], respectively.
Lemma 16 is a routine computation, whereas Lemma 17 is quite difficult. The proof of Lemma 17 is easier for the map obtained by applying the inverse of to the canonical -cocone on induced by . Therefore, we decide to reduce the goal to an equality between this map and . We achieve this by showing that they belong to the same fiber of , which is contractible by Theorem 15. Though much easier than a direct approach to Lemma 17, this method requires intricate computations. We have formalized both Lemma 16 and Lemma 17 (see [7, Colimit-code/Map-Nat/CosColimitPstCmp.agda] and [7, Colimit-code/Map-Nat/CosColimitPreCmp.agda], respectively).
6 Creation of colimits
Classically, if is an -category, then all forgetful functors of -coslices create -shaped colimits when the -groupoid obtained by freely inverting all morphisms of is contractible (see [15, Tag 02KS]). Theorem 18 expresses the same result inside HoTT.
Theorem 18.
The forgetful functor creates colimits over trees.
Proof.
The idea is that a tree has no cycles, and thus we have no distinguished loops to fill. As a result, coslice colimits over trees look the same as their underlying colimits in .
To be precise, suppose that is a tree and let be a diagram in over . Then the function is an equivalence, and one can check that
is a pushout square. By uniqueness of pushouts, this gives us an equivalence such that for all and . We also see that
for all , , and . This means that is a morphism of cocones under . It follows that the forgetful functor preserves colimits over .
It remains to prove that the forgetful functor reflects colimits over . Consider an -cocone under
as well as the cocone under obtained by applying the forgetful functor to . Suppose that is colimiting in . By the universal property of colimits in , we have a morphism of -cocones, which induces a morphism of cocones in . This morphism is unique by the universal property of ordinary colimits. Moreover, by the uniqueness of ordinary colimits, there is a cocone equivalence from to as both of them are colimiting. This implies is an equivalence. Thus, is an -cocone morphism whose underlying function is an equivalence. This means that is an -cocone equivalence, so that is colimiting.
Remark.
The fact that the forgetful functor from pointed types creates pushouts appears in the agda-unimath library, though without proof [23, Pushouts of pointed types].
Theorem 18 lets us lift powerful features of ordinary colimits to -colimits. For example, let be a graph and be an -diagram over . We say that is universal, or pullback-stable [19], if for every pullback square
in , the canonical map
is an equivalence.555We show how to construct pullbacks in in [6, Note 6.0.4]. The distinguishing feature of a LCC -category, such as , is that all of its colimits are universal. Although the coslice of a LCC category need not be LCC, we now show that all of its colimits over trees are universal.
Lemma 19.
The forgetful functor preserves limits.
Proof.
The functor is right adjoint to the functor , so it preserves limits.
Theorem 20.
All colimits in are universal.
We have formalized Theorem 20 in Agda (see the folder [7, Pullback-stability]).
Corollary 21.
For each tree and each -diagram over , the colimit is universal.
Proof.
Suppose that is a tree and consider the pullback square (6). By Theorem 18 combined with Theorem 20, the function
is an equivalence. The codomain is in this form because preserves pullbacks by Lemma 19. It follows that is an equivalence.
7 Preservation of the left class of an OFS
In this section, we combine our construction of from Section 5.4 with Theorem 13 to prove that always preserves the left class of an OFS on . We assume the univalence axiom to have access to the the tools of univalent bicategories developed in Section 4.
Let be an OFS on . For all diagrams and natural transformations , define the predicates and .
Lemma 22 ([6, Theorem 7.0.8]).
Let . The following type is contractible:
By Lemma 22, we see that lifts levelwise to . Since the functor clearly takes to , we deduce that takes to by Theorem 13.666The adjunction follows directly from the equivalence in Section 3.3.
For each , consider the predicate on . Also, define the predicate on maps of -diagrams over by . Then the functor takes to . Indeed, consider a map of -diagrams over . The underlying function of is induced by the morphism of spans
Thus, if is in , then all three vertical functions are in . Since a map of spans is a map of diagrams, we see that is in .
Recall that a type is -connected if the function is in . If is a diagram of pointed types over such that each is -connected, then the type is also -connected. Indeed, we can deduce that from the construction of . Thus, takes the unique map of pointed diagrams to where is the constant map. In addition, holds because takes to .
Example 23.
Let be a truncation level [27, Chapter 7]. The archetypal OFS in HoTT has -connected functions as its left class and -truncated ones as its right. Thus, by our preceding argument, if each is -connected, then so is .
Now, let also be a truncation level. Recall the category of -tuply groupal -groupoids [2]. (These are examples of higher groups, in the sense of group theory). This is equivalent to the full subcategory of on -connected, -truncated pointed types. For each truncation level , consider the -truncation functor , which takes a type to the universal -type admitting a function from [27, Section 7.3]. This functor preserves colimits as a left adjoint [6, Proposition 3.4.6], and its associated counit is an isomorphism. It follows that , hence , inherits colimits over graphs from .
It is a special feature of pointed colimits that they always preserve -connectedness. If is not a tree, then may fail to preserve -connectedness. Indeed, let be the graph with a single point and a single edge from to itself. Define the diagram over by and . Then is equivalent to the circle , which is not -connected.
Remark 24.
Although Example 23 is only about pointed types, we do benefit from the formulation of the main connection for general coslices. Indeed, for each object of , the coslice is a reflective subcategory of for which the reflector is -coherent [6, Definition B.0.1]. (Here denotes the subuniverse of -connected, -truncated types.) Hence inherits colimits over graphs from the coslice [6, Corollary 7.1.3]. In its full generality, Section 5 gives us an explciit construction of such colimits.
In particular, let with and . The Eilenberg-MacLane space [13] is the free group on one generator in the category . Therefore, when , we may view as a higher version of the category of pointed abelian groups [18]. We see, then, that Section 5 lets us build colimits of higher pointed abelian groups inside HoTT.
8 Mapping colimits to weak limits
Finally, we look at the interaction between colimits and (Eilenberg-Steenrod) cohomology theories. Specifically, we apply the lemma to the main connection to obtain the familiar construction of as a pushout of coproducts in . Afterward, we apply this new construction to the Mayer-Vietoris sequence to prove that cohomology theories send finite colimits to weak limits in assuming the axiom of choice.
8.1 Decomposition of -colimits into simpler pieces
To make use of the lemma, we first form the following grid of commuting squares:
Call the pushouts of the left, middle, and right vertical spans , , and , respectively. Call the pushouts of the top, middle, and bottom horizontal spans , , and , respectively. We can form two additional pushouts from this grid:
-
denotes the function induced by the middle-to-left map of spans;
-
denotes the function induced by the middle-to-right map of spans;
-
denotes the function induced by the middle-to-top map of spans; and
-
denotes the function induced by the middle-to-bottom map of spans.
The lemma now gives us an equivalence of types defined by double induction on pushouts [12, Section VII].
Note.
Let be a discrete graph and an -diagram over . The pushout
together with is the coproduct of the in . We denote by .
Lemma 25.
We have two equivalences of spans
where is defined by double induction on pushouts through the commuting square
Notice that the pushout of the topmost span appearing in Lemma 25 is exactly . As a result, the equivalence supplied by the lemma gives us as a familiar pushout of coproducts.
Corollary 26 ([6, Corollary 5.5.3]).
We have a pushout square
8.2 Weak continuity of cohomology
With this new construction of , we can transfer the weak continuity of cohomology to HoTT. This application is described in detail in [6, Section 8].
Let denote the category of abelian groups. Suppose that is a cohomology theory.777See [1, Section 6] for a description of Eilenberg-Steenrod cohomology theory inside HoTT. A slightly more general definition, which works in our setting, is found in [6, Section 8.1]. Consider the pushout
of a span of pointed maps. In [4], Cavallo constructs the Mayer-Vietoris sequence for , a long exact sequence (LES) of the form
Let be a diagram of pointed types over a finite graph , which means that is finite and is finite for all . As cohomology preserves finite wedges [4, Section 4.2], Corollary 26 combined with this LES gives us an exact squence
for each .888When is a singular cohomology theory, we may extend the class of graphs to those satisfying the set-level axiom of choice, in the sense of [1, Definition 6.1]. Here, is defined as the composite
and and are defined by and , respectively. Moreover, the universal property of limits in induces a commuting triangle
for each , induced by the cone over . One can check that the exactness of (8.2) implies that is epic as a map of sets.
At this stage, if we were in a classical system, then it would follow that has a section, which in turn would imply that is a weak limit in . Inside HoTT, we may assume the axiom of choice [27, Chapter 3.8] to conclude that is merely a weak limit.999As in [27, Chapter 3.10], the adverb merely refers to propositional truncation. In this sense, enjoys a restricted version of weak continuity inside HoTT.
9 Conclusion and future work
We explored colimits inside HoTT. The heart of our work was the connection between -colimits and ordinary colimits, i.e., the main connection. To derive the main connection, we found an explicit construction of -colimits that was tailored to reveal the connection. We used the main connection to prove that the forgetful functor from a coslice creates colimits over trees and that -colimits over trees are universal. We also used the main connection to examine how colimits interact with factorization systems. As a result, we found that all pointed colimits preserve -connectedness, which implies that higher groups are closed under colimits on directed graphs. Finally, we used the main connection to see that cohomology takes finite colimits to weak limits in assuming the axiom of choice.
A natural direction is to extend our development to colimits of diagrams over -computads [26]. To our knowledge, colimits of type-valued diagrams over higer-dimensional graphs have not been developed in the untruncated setting. We believe both Section 6 and Section 7 can be generalized to the setting of -computads.
References
- [1] Ulrik Buchholtz and Kuen-Bang Hou (Favonia). Cellular Cohomology in Homotopy Type Theory. Logical Methods in Computer Science, Volume 16, Issue 2, 2020. doi:10.23638/LMCS-16(2:7)2020.
- [2] Ulrik Buchholtz, Floris van Doorn, and Egbert Rijke. Higher Groups in Homotopy Type Theory. In Proceedings of the 33rd Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’18, pages 205–214, New York, NY, USA, 2018. Association for Computing Machinery. doi:10.1145/3209108.3209150.
- [3] Paolo Capriotti and Nicolai Kraus. Univalent higher categories via complete Semi-Segal types. Proc. ACM Program. Lang., 2(POPL), 2017. doi:10.1145/3158132.
- [4] Evan Cavallo. Synthetic Cohomology in Homotopy Type Theory. Master’s thesis, Carnegie Mellon University, 2015. URL: https://staff.math.su.se/evan.cavallo/works/thesis15.pdf.
- [5] J Daniel Christensen and Luis Scoccola. The Hurewicz theorem in homotopy type theory. Algebraic and Geometric Topology, 23(5):2107–2140, 2023. doi:10.2140/agt.2023.23.2107.
- [6] Perry Hart and Kuen-Bang Hou. Coslice Colimits in Homotopy Type Theory, 2024. arXiv:2411.15103.
- [7] Perry Hart and Kuen-Bang Hou (Favonia). A formalized construction of coslice colimits, 2024. v0.1.0. URL: https://github.com/PHart3/colimits-agda/tree/v0.1.0.
- [8] Kuen-Bang Hou (Favonia), Eric Finster, Daniel R. Licata, and Peter LeFanu Lumsdaine. A Mechanization of the Blakers-Massey Connectivity Theorem in Homotopy Type Theory. In Proceedings of the 31st Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’16, pages 565–574, New York, NY, USA, 2016. Association for Computing Machinery. doi:10.1145/2933575.2934545.
- [9] Krzysztof Kapulkin and Peter LeFanu Lumsdaine. The simplicial model of Univalent Foundations (after Voevodsky). J. Eur. Math. Soc., 23(6):2071–2126, 2021. doi:10.4171/JEMS/1050.
- [10] Max Kelly. On MacLane’s Conditions for Coherence of Natural Associativities, Commutativities, etc. Journal of Algebra, 1(4):397–402, 1964. doi:10.1016/0021-8693(64)90018-3.
- [11] Nicolai Kraus and Jakob von Raumer. Path Spaces of Higher Inductive Types in Homotopy Type Theory . In 2019 34th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1–13, Los Alamitos, CA, USA, June 2019. IEEE Computer Society. doi:10.1109/LICS.2019.8785661.
- [12] Daniel R. Licata and Guillaume Brunerie. A Cubical Approach to Synthetic Homotopy Theory. In 2015 30th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 92–103, 2015. doi:10.1109/LICS.2015.19.
- [13] Daniel R. Licata and Eric Finster. Eilenberg-MacLane spaces in homotopy type theory. In Proceedings of the Joint Meeting of the Twenty-Third EACSL Annual Conference on Computer Science Logic (CSL) and the Twenty-Ninth Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), CSL-LICS ’14, New York, NY, USA, 2014. Association for Computing Machinery. doi:10.1145/2603088.2603153.
- [14] Jacob Lurie. Higher Algebra. Unpublished, 2017. URL: https://www.math.ias.edu/~lurie/papers/HA.pdf.
- [15] Jacob Lurie. Kerodon. https://kerodon.net, 2024.
- [16] nLab authors. created limit. https://ncatlab.org/nlab/show/created+limit, 2024. Revision 21.
- [17] nLab authors. (infinity,1)-limit. https://ncatlab.org/nlab/show/%28%E2%88%9E%2C1%29-limit, 2024. Revision 78.
- [18] nLab authors. pointed abelian group. https://ncatlab.org/nlab/show/pointed+abelian+group, November 2024. Revision 3.
- [19] nLab authors. pullback-stable colimit. https://ncatlab.org/nlab/show/pullback-stable+colimit, October 2024. Revision 18.
- [20] Emily Riehl. Categorical Homotopy Theory. New Mathematical Monographs. Cambridge University Press, 2014. doi:10.1017/CBO9781107261457.
- [21] Egbert Rijke. Introduction to Homotopy Type Theory, 2022. arXiv:2212.11082.
- [22] Egbert Rijke, Michael Shulman, and Bas Spitters. Modalities in homotopy type theory. Logical Methods in Computer Science, Volume 16, Issue 1, January 2020. doi:10.23638/LMCS-16(1:2)2020.
- [23] Egbert Rijke, Elisabeth Stenholm, Jonathan Prieto-Cubides, Fredrik Bakke, and others. The agda-unimath library. URL: https://github.com/UniMath/agda-unimath/.
- [24] Kristina Sojakova. Higher Inductive Types as Homotopy-Initial Algebras. SIGPLAN Not., 50(1):31–42, 2015. doi:10.1145/2775051.2676983.
- [25] Kristina Sojakova, Floris van Doorn, and Egbert Rijke. Sequential Colimits in Homotopy Type Theory. In Proceedings of the 35th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS ’20, pages 845–858, 2020. doi:10.1145/3373718.3394801.
- [26] Ross Street. Limits indexed by category-valued 2-functors. Journal of Pure and Applied Algebra, 8(2):149–181, 1976. doi:10.1016/0022-4049(76)90013-X.
- [27] The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. https://homotopytypetheory.org/book, Institute for Advanced Study, 2013.
- [28] Floris van Doorn, Jakob von Raumer, and Ulrik Buchholtz. Homotopy Type Theory in Lean. In Interactive Theorem Proving, pages 479–495. Springer International Publishing, 2017. doi:10.1007/978-3-319-66107-0_30.