On Left Adjoints Preserving Colimits in HoTT
Abstract
We examine how the standard proof that left adjoints preserve colimits behaves in the setting of wild categories, a natural setting for synthetic homotopy theory inside homotopy type theory. We prove that the proof may fail for adjunctions between wild categories. Our core contribution, however, is a sufficient condition on the left adjoint for the proof to go through. The condition, called -coherence, expresses that the naturality structure of the hom-isomorphism commutes with composition of morphisms. We present two useful examples of this condition in action. First, we use it, along with a new version of a known trick for homogeneous types, to show that the suspension functor preserves graph-indexed colimits. Second, we show that every modality, viewed as a functor on coslices of a type universe, is -coherent as a left adjoint to the forgetful functor from the subcategory of modal types, thereby proving this subcategory is cocomplete. We have formalized our main results in Agda.
Keywords and phrases:
wild categories, colimits, adjunctions, homotopy type theory, category theory, synthetic homotopy theory, higher inductive types, modalities2012 ACM Subject Classification:
Theory of computation Type theoryAcknowledgements:
The author thanks his PhD advisor, Favonia, for help with writing the extended abstract on the same topic for the HoTT/UF Workshop 2025.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:
Stefano Guerrini and Barbara KönigSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
In category theory, a basic and eminently useful fact is that left adjoints preserve colimits (LAPC). We would like to invoke this classical theorem in the categorical setting of synthetic homotopy theory, the axiomatic and usually type-theoretic study of topological spaces with higher-dimensional structure. This would let us produce new universal constructions of spaces from existing ones via purely algebraic methods. For synthetic homotopy theory carried out in homotopy type theory (HoTT), the appropriate categorical setting is that of wild categories, the canonical examples of which are type universes. This notion is a type-theoretic approximation of an -category that specifies the data of a -category but omits higher coherence data. Despite its naivete, this setting is expressive enough to study concepts like (co)limits and adjunctions inside type theory.
We would like to port LAPC to adjunctions between wild categories. In particular, we would like to port the “standard” proof, i.e., the proof one would expect to see based on the category theory literature. This, however, turns out to be harder than one might hope as we produce, inside HoTT, an example of such an adjunction for which the proof fails. Nevertheless, we identify a sufficient condition for the proof to go through. Roughly, it expresses that the adjunction data interacts nicely with the left adjoint’s (proof-relevant) composition law. With this condition, combined with a higher version a known technique based on homogeneous types, we show that suspension, an example of a left adjoint, preserves (graph-indexed) colimits, which has applications to the theory of acylic types and to homology theory. We also show that every modality (such as truncation), viewed as a functor on coslices of a type universe, satisfies the condition as a left adjoint to the forgetful functor. As a result, the full wild subcategory of modal types inherits colimits from the ambient coslice. Our proof of this fact differs from the one described for truncations by [26, Section 7.4]. Ours is ultimately simpler by placing modalities in the general context of left adjoints.
The sufficient condition for the standard proof and its application to truncations were mentioned briefly in prior work by Hart and Favonia [12, Remark 24]. In the present work, we place these results in a wider context and explain, for the first time, how one proves them. Moreover, we have formalized all our main results in Agda.
1.1 Motivation
To motivate our work, we should review the well-known proofs of LAPC from classical category theory and explain why the one we choose is the right one to port to wild categories. In addition, we should explain why the issue of porting it deserves the HoTT community’s attention. We assume the reader is familiar with the basic notions of category theory.
Consider an adjunction between -categories and . Let be a small -category. The classical theorem states that preserves -shaped colimits, and it has two well-known proofs. The first requires that and admit global colimit functors and [19, Section V.5]. The proof assumes these colimit functors satisfy some coherence conditions that are automatically true for -categories (but not for wild ones). It proceeds by using the uniqueness of left adjoints to define an isomorphism . By unfolding the units of two composite adjunctions derived from and showing that commutes with these units, we can deduce that maps the canonical cocone on to the induced one on for all diagrams . Proving that commutes in this way tacitly uses coherence conditions on that hold for -categories. Also, to conclude that is colimiting, the proof tacitly uses the pentagon identity of (which holds trivially) to transfer the colimiting property of .
Instead of requiring global colimit functors, the second proof starts with a specific colimit of a diagram and shows that is a colimit under . Like the first proof, it secretly uses coherence conditions that hold for -categories, a point we’ll return to. It argues that for all , the following chain of isomorphisms with equals the canonical post-composition map [21, Theorem 4.5.2]:
This means that the induced cocone on is indeed colimiting, i.e., preserves colimits. Besides avoiding global colimit functors, this proof argues in terms of hom-isomorphisms, which are directly supplied by the usual definition of adjunctions between wild categories. This helps us formulate further laws that such adjunctions must satisfy for the proof to work. Finally, it doesn’t rely on bicategorical structure of or . Overall, the second proof, which we call the standard proof, is better for wild categories.
So, what makes porting the standard proof an interesting problem? The chain of isomorphisms (1.1) is not hard to replay in wild category theory. Due to the secret coherence conditions, however, proving that it equals the canonical map becomes a problem. In fact, this equality is sometimes false. This problem is surprising at first glance and easy to miss. It indicates a subtle mismatch between the data used to construct the cocone on and the data used to construct a hom-type adjunction. (In our setting, is a family of types, not necessarily sets.) The latter uses only the - and -dimensional data of , data coming from the underlying directed graph of . The latter, however, also uses the composition law of , a -dimensional datum. This mismatch has strange effects: we can build two naturally isomorphic left adjoints such that the standard proof goes through for one but not the other! One of the chief virtues of this paper is that it puts this issue into the literature and sets the record straight on the approach to LAPC that was expected to work.
1.2 Contributions
In this section, we explain the contributions of the paper and its organization. We start by outlining the heart of the paper: a coherence condition on the data of a (hom-type) adjunction between wild categories that guarantees the left adjoint preserves colimits. Afterward, we outline two applications of this coherence condition in synthetic homotopy theory. We provide links to corresponding formal proofs in Agda throughout the paper.
1.2.1 -coherent left adjoints (Section 5)
Let and be wild categories. (We review the relevant concepts of wild category theory in Section 4.) Our work centers on a new notion of coherence for adjunctions between and . Such an adjunction consists of functors and together with a family of type equivalences and witnesses and of the naturality of in and in . The main point of this paper is that, despite being a direct translation of the classical notion, this definition is not coherent enough, due to the proof-relevance of the hom types. Indeed, it doesn’t let us prove left adjoints preserve colimits, the defining property of left adjoints between locally presentable categories. To solve this problem, we introduce the following coherence condition.
Given an adjunction between and , we say that is -coherent if for all suitable morphisms , , and , the identity obtained by applying multiple times equals the identity obtained by applying the composition law of . This nice interaction between and holds automatically for -categories, in which case these two equalities are proof-irrelevant. Also, it holds for adjunctions between -categories by virtue of the infinite tower of coherence data they encode. For wild categories, however, adjunctions may fail to satisfy it.
We prove that -coherent left adjoints preserve colimits. The proof proceeds entirely by algebraic manipulation of the adjunction data. Conceptually, it is quite direct as it relies on just three foundational ingredients of HoTT: the naturality of homotopies, the triangle identity of equivalences, and the structure identity principle.
During the proof, we must take care to eliminate the data witnessing that is an equivalence. Otherwise, we would need to include this data in the -coherence condition, which would make it far less tractable. Indeed, the condition we arrive at is relatively simple to check and thus quite useful in practice. We just need to know how to compute and . In Sections 1.2.2 and 1.2.3, we outline natural examples of left adjoints along with methods for proving that they are -coherent.
1.2.2 Suspension preserves colimits (Section 6)
The suspension endofunctor on the wild category of pointed types is critical to synthetic homotopy theory. For a while, it has been known that is left adjoint to the loop space functor in HoTT. Its preservation of colimits has been expected to follow from LAPC in the usual way. Yet, this paper shows that the usual way requires a coherence between the adjunction and ’s composition law, which makes the proof trickier than expected.
We verify that this coherence holds, i.e., that is -coherent, thereby verifying that preserves colimits. In this case, the final part of the proof of -coherence is infeasible to perform directly. Instead, we get it for free by proving a new, higher version of Cavallo’s trick for homogeneous types, which include all loop spaces.
This infeasibility highlights a major difference between our type system (Book HoTT) and cubical type theory [27]. Unlike Book HoTT, cubical supports definitional -rules for path constructors in higher inductive types (HITs), such as suspension types. Such support greatly simplifies the proof in question as it erases many postulated equalities that we must carry around. Although constructions with HITs tend to be much harder in Book HoTT [20], they are still valuable. Indeed, Book HoTT has models in all -toposes [18, 24], whereas it’s not known whether the type theory underlying Cubical Agda has a model Quillen equivalent to the category of topological spaces.
Inside HoTT, the fact that preserves colimits has useful consequences. It implies that the pointed acyclic types [3] are closed under colimits in . Moreover, it puts on firm footing a key step of Graham’s construction of stable homotopy as a homology theory: proving that preserves cofibers [10, Corollary 2.2].
1.2.3 Colimits of modal types (Section 7)
Modalities are functors on a type universe that arise as reflectors into well-behaved subuniverses of [23]. Although they are well-studied in HoTT [6, 7], their interaction with colimits could be explained better. Since reflectors are by definition left adjoints, we should expect that modalities preserve colimits. In the case of pushouts, this property already has a proof for -truncations [26, Section 7.4], which are examples of modalities, and it should extend easily to all graph-indexed colimits. The problem is that this proof, which we call the Book proof, relies on the particular computational behavior of the composition law of . Thus, it doesn’t generalize to arbitrary left adjoints.
We offer a different proof of the same property by showing that every modality is a -coherent left adjoint. By fitting into the general framework of LAPC, our proof gets rid of the ad-hoc steps required by the Book proof. As a result, ours amounts to an easy application of the induction principle of . Moreover, we argue that ours matches the usual classical proof for reflective subcategories because one would normally view colimit preservation here as a special case of LAPC.111This goes against [26, Section 7.7]’s claim that the Book proof matches the usual classical one. Hence our proof has some advantages over the Book proof.
In fact, given a modality , we prove the more general fact that the induced functor on an arbitrary coslice of is -coherent. (We recover the original case when .) Previously, Hart and Favonia used that is -coherent in order to construct colimits of higher groups [12, Section 7]. Here we offer a concise proof that is formulated for all modalities. Finally, we use the colimit preservation of together with some general results about wild bicategories to build colimits in from those in . (The latter are explicitly constructed by [12, Section 5].)
2 Additional related work
2.1 Wild category theory
Our work establishes a fundamental property of well-behaved adjunctions between wild categories. It thus fits neatly into the rich theory of wild categories developed in HoTT [8, 14]. In particular, we continue the study of adding higher coherence data to wild-categorical notions. So far, this study has focused on adding conditions internalizing the axioms of a -category to the wild category itself [4, 5, 12]. The literature calls the resulting concept wild -precategory, -coherent wild category, or wild bicategory. In this paper, we focus on a different aspect of -coherence: adding it to data between wild categories.
2.2 Homogeneous types
For the application to the suspension functor (Section 6), we build on the theory of homogeneous types in HoTT [2, Section 2]. These are pointed types that are independent of basepoint in a strong sense. The key feature of such types is that proving identities about pointed maps into them is considerably easier than about arbitrary pointed maps. This feature, known as Cavallo’s trick, can make normally intractable computations in higher path algebra tractable. For example, Axel Ljungström adapted Cavallo’s trick to show that the smash product forms a symmetric monoidal product on the wild category of pointed types [17]. We provide a new adaptation to handle the -coherence condition for the suspension.
3 Background on type theory
We review some basic constructions in HoTT that are important for our work. We assume the reader is familiar with Martin-Löf type theory (MLTT), the core type system of HoTT, in the style of [26]. Notably, MLTT is sufficient for the core of our work: all of Section 5 is carried out in MLTT (with function extensionality). For Sections 6 and 7, we postulate a simple class of HITs: pushout types [26, Section 6.8]. In particular, Section 6 focuses on suspensions, a kind of pushout.
3.1 Type system
We review three 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. A key property of is the following naturality law.
Lemma 1 (Homotopy naturality).
Let . For all , , and , we have a commuting square of identities
Here, for any dependent functions , called the type of homotopies between and . If , we say that and are homotopic.
The second is the notion of half-adjoint equivalence. Let be a function. We say that is a half-adjoint equivalence, or just equivalence, if it has a function , homotopies and , and a triangle identity for every . We may denote by . We use to refer to equivalences. A function is an equivalence if and only if it is bi-invertible, i.e., has a right inverse and a left inverse [26, Corollary 4.3.3].
The third is the transport function for any type family over . This notion gives us a dependent version of : If , then we have a function . As a result, we can generalize Lemma 1 as follows: For all , , , and , we have a path . The transport function is essential for stating the induction principle of HITs, such as suspensions.
3.2 Suspensions
For all functions , the cofiber of is the pushout of the span . Let be a type. The suspension of is the cofiber of . Explicitly, it is the pushout
where . We denote and by and , respectively, and consider the basepoint of . The induction principle for states that for every type family over with elements
we have a function that satisfies the definitional equalities
and is equipped with an identity . In the non-dependent case, this principle is called the recursion principle.
Let be pointed types in a universe and be a pointed map. We have a pointed map defined by recursion on , which trivially preserves the basepoint. Note that for each .
4 Wild category theory
In this section, we record essential concepts and constructions in wild category theory, including adjunctions. The reader will notice that the basic definitions are naive translations of their classical counterparts.
The key distinction between wild categories and the categories of [26, Section 9.1] is that the latter have hom types that behave as sets, i.e., have trivial identity types, so that all higher coherences between morphisms in them hold trivially. By contrast, wild categories simply ignore such coherences. In synthetic homotopy theory, many wild categories have hom types that are not sets, so developing the theory of wild categories is worthwhile.
Definition 2.
A wild category (relative to universes and ) is a tuple consisting of a type of objects, a family of hom types, identity morphisms , composition , left and right unit laws for , and an associativity law for .
Example 3.
Let be a type. The wild category has objects and morphisms . Composition and associativity are defined easily via path induction (and the structure identity principle for ). The wild category of pointed types , which is isomorphic to , has a similar structure.
The following notion generalizes the univalence axiom [26, Axiom 2.10.3] and can significantly simplify proofs. We will invoke it in the proof of Corollary 23.
Definition 4.
A wild category is univalent if for all , the canonical function is an equivalence. Here, elements of the right-hand type are equivalences in , defined as bi-invertible morphisms.
Definition 5.
Let and be wild categories.
-
1.
A functor from to consists of a function and an action on morphisms along with a composition law and an identity law .
We may refer to or by just . We call and the - and -dimensional data of , respectively. We call and its -dimensional data.
-
2.
Let be functors. A natural transformation from to consists of functions and . (If , we may tacitly use the equivalent type instead.) We say is a natural isomorphism if each is an equivalence.
Definition 6 (Adjunction).
Let and be functors of wild categories. An adjunction is a family of equivalences equipped with functions witnessing that is natural in and , respectively:
For each adjunction , we also have naturality squares
Here, the right-hand square is defined by the commuting square
where and are from the equivalence data of . The left-hand square is defined similarly.
Remark.
Our results will make no use of or , so we could have omitted them.
In particular, is a natural isomorphism for each . The terms and are related by the following exchange law.
Lemma 7.
Let . For all and , we have a commuting square
Proof.
Define as the chain of paths
Limits
Since we are studying colimits, we need to discuss cocones under diagrams. In HoTT, we have a concrete description of limits in the wild category of types that offers a useful way of representing cocones in wild categories. To avoid an infinite tower of coherence conditions (an unsolved problem in HoTT), we only consider diagrams over graphs, which are type-theoretic versions of free categories [12, Section 3.2]. Let be a universe. A graph is a pair consisting of a type of vertices and a family of edges. Given a wild category , a -shaped diagram in is a pair consisting of a function and a family of maps . We may write for and . A natural transformation between two diagrams is defined similarly to one between two functors.
Let be a graph. For every -valued diagram over , the (standard) limit of [1, Definition 4.2.7] is the type . The limit is functorial in . The action on maps sends to the function defined by . Let be a wild category. For every -valued diagram over and every , we have the diagram over , the opposite graph of , similar to the opposite category. We define the type of cocones under on as .
Lemma 8.
Let be a graph and let and be -shaped diagrams in . If is a natural isomorphism, then is an equivalence.
Next, we state the structure identity principle (SIP) for . The SIP is a general lemma characterizing identity types of -types [22, Theorem 11.6.2]. We will need the SIP for limits in order to port the proof of LAPC.
Lemma 9.
Let be a -shaped diagram in . Let . Then is equivalent to the type of equipped with commuting squares
5 Porting the proof of LAPC
This section is the core of the paper. We find a sufficient, practically useful condition for the standard proof of LAPC to work for wild categories. Informally, the condition states that interacts nicely with the composition law of the left adjoint.
Let be a wild category. Let be a graph and be a -valued diagram over . Consider a cocone under , where for each and for all and .
Definition 10 ([11, is-colim]).
We say that is colimiting if for every , the following post-composition map is an equivalence:
Definition 10 expresses that for every cocone under , there is a unique cocone morphism . Let be a wild category and be a functor. We have an induced diagram and an induced cocone under :
Suppose that is colimiting and that we have an adjunction . We wish to replay the standard classical proof by showing the chain of isomorphisms (1.1) equals the post-composition map. Let us preview this argument. Let denote the composite of the isomorphisms. By function extensionality, it suffices to show and post-composition are equal on for every . For each , we can build an equality from and the equivalence data for . By the SIP for (Lemma 9), it suffices to prove the following equality for all and :
The problem is that this equality need not hold for wild categories, and we offer an example of an adjunction for which it’s provably false inside HoTT (Example 14). Still, by reverse engineering the equality, we arrive at the following general property of an adjunction as a sufficient condition for it to hold.
Definition 11 ([11, ladj-is-2coher]).
The left adjoint is -coherent if for all , , and , the following diagram commutes:
| (-coh) |
Note 12.
In terms of a classical biadjunction [9, Definition 9.8], Definition 11 is part of the pseudonaturality of .
Intuitively, Definition 11 accounts for the -dimensional datum introduced by . This is necessary as the definition of adjunction only accounts for - and -dimensional data. By accounting for the relevant -dimensional data, we can finish porting the standard proof to wild category theory as follows.
Theorem 13 ([11, Ladj-colim]).
If is -coherent, the cocone under is colimiting.
Proof.
For all and , we have that
| (hom-isomorphism) | ||||
| ( is colimiting) | ||||
| (Lemma 8 applied to ) |
Let denote the composite of these three equivalences: sends to
We want to show . For each , we have the chain of paths
Let and . By Lemma 9, it suffices to prove that
| (eq-edge) |
We start with the top endpoint of (eq-edge). By Lemma 7, we have the commuting diagram
We also have the commuting diagram
By rewriting (eq-edge) with these two commuting diagrams, we turn it into the equality expressing that the following diagram commutes:
| () |
At this point, we could have defined (-coh) so that it aligns with ( ‣ 5), but this equality is difficult to check in practice. Hence we now transform ( ‣ 5) into something more tractable. Since is an equivalence (hence an embedding), the equality ( ‣ 5) is equivalent to its image under . By homotopy naturality of , this image is equivalent to an equality expressing that the following diagram commutes:
Finally, this diagram commutes because is -coherent.
Example 14.
As claimed, without the -coherence assumption, (eq-edge) may not hold.
Define the wild category by and . Here, denotes the circle, defined as the HIT generated by a point and a path . The remaining structure on , including its composition operation , comes from path concatenation on a loop space. Indeed, is the loop space of the Eilenberg-MacLane space [16]. For all , we have a nontrivial loop at : It is known that is nontrivial [26, Lemma 6.4.1], and we have an equivalence of pointed types because is a loop space. (As we’ll see in Section 6, loop spaces are independent of basepoint in this sense, i.e., homogeneous.) Let the functor be the identity on objects and morphisms, but let . Consider the evident adjunction . If , then (eq-edge), with respect to this adjunction, reduces to showing is trivial. But it’s nontrivial by construction.222Kraus has used to form a wild category that is provably not a bicategory [13, Lemma 8]. Still, our counterexample is independent of this concern, as itself is a bicateogry.
6 Suspension is -coherent
This section (along with Section 7) offers evidence that Definition 11 is useful in practice. We show that the suspension endofunctor on the wild category of pointed types is a -coherent left adjoint to the loop space endofunctor (which maps to ). By Theorem 13, we deduce that preserves (graph-indexed) colimits. Although the diagram (-coh) is a valuable approach to proving this preservation property, it does rely on a new trick based on homogeneous types to handle the path algebra generated by . The adjunction is already known [8, Lemma 2.16], so our contribution is verifying that is -coherent. Also, to our knowledge, ours is the first proof in HoTT (in particular, Book HoTT) that preserves colimits.
If is a pointed type, then and denote the underlying type and basepoint of , respectively. If is a pointed map, then and denote the underlying function and proof of basepoint preservation of , respectively.
Definition 15.
Let be pointed maps. A pointed homotopy is a homotopy with a path .
The SIP for pointed maps says that the canonical function is an equivalence, with inverse denoted by . We use this equivalence to define the terms and , which will help us manipulate them in the proof of -coherence.
The composition law’s first component is defined by induction (see Section 3.2), with and trivial and defined, for suitable pointed maps and , via the commuting square
Its second component is trivial. The adjunction [11, SuspAdjointLoop] is defined by
where the underbrace denotes term abbreviation and denotes the evident path of type . For all and , is defined as the path
| () | ||||
Here, for each , is defined as the path
and is defined by path induction on .
Now that we’ve defined and , we claim that the diagram (-coh) commutes. The SIP for pointed homotopies turns this goal into a double pointed homotopy:
Definition 16.
Let and be pointed maps and let . A double pointed homotopy consists of a homotopy and a commuting triangle
To construct the first component of the desired double pointed homotopy, we have to reduce a large expression involving various terms (coming from the and edges of (-coh)). We do so via a mechanical, though nontrivial, process of iteratively eliminating matching terms. The commuting triangle, however, is infeasible to construct directly. The problem is that it contains the entire first component, which involves complex path algebra and does not reduce at . In addition, it contains a handful of nontrivial path inductions from ’s second component. The result is an expression that is simply too big.
Luckily, we can get the commuting triangle for free by noticing the special nature of loop spaces. Every loop space is a homogeneous type, i.e., a pointed type equipped with a pointed equivalence for every . In this case, we also say is homogeneous at . We note a few things about such types. First, if is homogeneous, then it’s homogeneous at all its elements. Second, by applying to , we can make every homogeneous type strongly homogeneous, i.e., . Finally, as preserves pointed equivalences, if is homogeneous, we have for every . Now, a key insight for our goal is Cavallo’s trick: two pointed maps into homogoneous types are pointed-homotopic when their underlying functions are homotopic [25, ]. As our goal is a higher pointed homotopy, we want the following higher version of the trick, which will finish the proof that is -coherent [11, Susp-2coher]:
Proof.
We begin with a general observation. Let and consider the evaluation map . As is homogeneous at , this map has a pointed section whose underlying function sends a loop at to the homotopy . It’s easy to check that is pointed. It remains to construct a pointed homotopy . The first component of is a homotopy , which we get by promoting to a strongly homogeneous type. The second component, which also uses the fact is strongly homogeneous, follows routinely.
Let . By strong function extensionality, we “path induct” on and so that they are both identity homotopies. Further, by generalizing , we induct on to make it with . By our general observation, has a pointed section , so that is a pointed section of . We want a pair . We define as the image of a certain loop at under . To make the right choice for , we look ahead to the commuting triangle :
Since is a pointed section of , will equal . Finally, is an equivalence, so we simply solve for .
Theorem 18 ([11, Susp-colim]).
The suspension preserves colimits.
Remark 19.
One may try to derive Theorem 18 from the property that pushouts commute with colimits. The lemma [15, Section VII] tells us pushouts commute with pushouts, and preservation of coproducts (at least by ) is easy to prove since the underlying graph is discrete. If every colimit is a pushout of coproducts, we’re done. But there are problems: This characterization of colimits in is quite nontrivial on its own [12, Section 8.1]. Also, the lemma says nothing about pushouts in .
Recall that a type is acyclic if its suspension is contractible [3]. We contribute a new closure property of acyclic types with the next corollary. It uses Hart and Favonia’s construction of colimits in as the cofiber of a map between colimits in [12, Theorem 15]. (Colimits in are postulated as HITs definable from pushouts.)
Corollary 20 ([11, Acyc-colim]).
The pointed acyclic types are closed under colimits in .
Proof.
By Theorem 18 and uniqueness of colimits in (as in any wild bicategory), we have an equivalence of pointed types . If is acyclic for each , then is contractible as the cofiber of an equivalence, namely the function induced by the unique natural transformation into . This completes the proof since equivalences preserve contractibility.
7 Colimits of modal types
We end with another application of Theorem 13 in synthetic homotopy theory. We prove that all modalities on coslices of a universe are -coherent and thereby construct (graph-indexed) colimits of modal types. Consider functions and . A type is modal if is an equivalence. Let denote the subuniverse of modal types.
Definition 21 ([11, Modality]).
We say that is a modality if
-
for all , is modal;
-
for all and , the identity type is modal;
-
for all and , the function has a section. (This condition is called -induction.)
Let be a modality and be a type. By -induction (including the associated nondependent recursion principle), we have a functor into the full wild subcategory of on those with modal, called modal -types. It is a straightforward extension of the functor : for example, its object function sends to . By -induction, we also have a family of equivalences for -types and modal -types that is natural in . (It’s trivially natural in .) Hence we have an adjunction between and the forgetful functor [11, Mod-cos-adj].
Theorem 22 ([11, Mod-cos-adj-2coh]).
The left adjoint is -coherent.
Proof.
By -induction followed by a burst of path induction.
Proof.
Let be a -shaped diagram in . By [12, Theorem 15], the diagram has a colimit in . Since preserves colimits (Theorem 22), we have the following colimiting cocone and natural isomorphism in :
where for all . It suffices to prove that composing with natural isomorphisms preserves colimiting cocones. This property has a simple proof in univalent wild bicategories, such as (given the univalence axiom). Indeed, univalence reduces the isomorphism to the identity, and a standard bicategorical property implies that composing with the identity preserves colimiting cocones.
Our construction of colimits of modal types is simpler than the Book proof (see Section 1.2.3) and illuminates a higher coherence used by the latter. Equality (7.4.11) of the Book proof secretly requires a coherence condition between ’s composition law and its naturality data , which is satisfied because . The required coherence has a similar flavor to Definition 11, but our proof makes such a condition explicit.
8 Conclusion and future work
We addressed a coherence problem in the proof that a left adjoint between wild categories preserves colimits. We proved that the coherence, which always holds in the classical setting, may be false for wild categories. With just “off-the-shelf” tools from HoTT, we identified a relatively tractable sufficient condition on the left adjoint for the proof to work, namely -coherence. We showed that the suspension functor is -coherent and thus preserves colimits. In doing so, we managed to avoid an infeasible equality proof by developing a higher-dimensional version of Cavallo’s trick for homogeneous types. Finally, we showed that modalities on coslices of a universe are -coherent and, as a result, that the associated subcategories of modal types are cocomplete.
There are a few open questions raised by our work. The simplest is the analysis of the dual statement that right adjoints preserve limits for wild categories, which should be similar to the one presented here. Another question is whether we can extend Theorem 22 to all reflective subuniverses. Finally, it would be quite useful to find a trick to show, in Book HoTT, that the smash product is -coherent for each . The right adjoint of the smash product is the pointed map space functor, which is not generally valued in homogeneous types. Hence we cannot use Lemma 17 to escape the infeasible equality proof, which is likely even harder than the one for the suspension.
References
- [1] Jeremy Avigad, Krzysztof Kapulkin, and Peter LeFanu Lumsdaine. Homotopy limits in type theory. Mathematical Structures in Computer Science, 25(5):1040–1070, 2015. doi:10.1017/S0960129514000498.
- [2] Ulrik Buchholtz, J. Daniel Christensen, Jarl G. Taxerås Flaten, and Egbert Rijke. Central H-spaces and banded types. Journal of Pure and Applied Algebra, 229(6):107963, 2025. doi:10.1016/j.jpaa.2025.107963.
- [3] Ulrik Buchholtz, Tom de Jong, and Egbert Rijke. Epimorphisms and Acyclic Types in Univalent Foundations. The Journal of Symbolic Logic, pages 1–36, 2025. doi:10.1017/jsl.2024.76.
- [4] Paolo Capriotti and Nicolai Kraus. Univalent higher categories via complete Semi-Segal types. Proc. ACM Program. Lang., 2(POPL), 2017. doi:10.1145/3158132.
- [5] Joshua Chen. 2-Coherent Internal Models of Homotopical Type Theory, 2025. doi:10.48550/arXiv.2503.05790.
- [6] Felix Cherubini and Egbert Rijke. Modal descent. Mathematical Structures in Computer Science, 31(4):363–391, 2021. doi:10.1017/S0960129520000201.
- [7] J. Daniel Christensen and Egbert Rijke. Characterizations of modalities and lex modalities. Journal of Pure and Applied Algebra, 226(3):106848, 2022. doi:10.1016/j.jpaa.2021.106848.
- [8] 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.
- [9] Thomas M. Fiore. Pseudo Limits, Biadjoints, and Pseudo Algebras: Categorical Foundations of Conformal Field Theory, 2006. arXiv:math/0408298.
- [10] Robert Graham. Synthetic Homology in Homotopy Type Theory, 2018. arXiv:1706.01540.
- [11] Perry Hart. PHart3/colimits-agda, 2025. Software (visited on 2026-01-23). URL: https://github.com/PHart3/colimits-agda/tree/lapc, doi:10.4230/artifacts.25210.
- [12] Perry Hart and Kuen-Bang Hou (Favonia). Coslice Colimits in Homotopy Type Theory. In Jörg Endrullis and Sylvain Schmitz, editors, 33rd EACSL Annual Conference on Computer Science Logic (CSL 2025), volume 326 of Leibniz International Proceedings in Informatics (LIPIcs), pages 46:1–46:20, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.CSL.2025.46.
- [13] Nicolai Kraus. Internal -Categorical Models of Dependent Type Theory: Towards 2LTT Eating HoTT, 2021. arXiv:2009.01883.
- [14] 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.
- [15] 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.
- [16] 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.
- [17] Axel Ljungström. Symmetric monoidal smash products in homotopy type theory. Mathematical Structures in Computer Science, 34(9):985–1007, 2024. doi:10.1017/S0960129524000318.
- [18] Peter Lefanu Lumsdaine and Michael Shulman. Semantics of higher inductive types. Mathematical Proceedings of the Cambridge Philosophical Society, 169(1):159–208, 2020. doi:10.1017/S030500411900015X.
- [19] Saunders MacLane. Categories for the Working Mathematician. Graduate Texts in Mathematics. Springer, 1978. doi:10.1007/978-1-4757-4721-8.
- [20] Anders Mörtberg and Lo\̈mathcal{i}c Pujet. Cubical synthetic homotopy theory. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs, CPP 2020, pages 158–171, New York, NY, USA, 2020. Association for Computing Machinery. doi:10.1145/3372885.3373825.
- [21] Emily Riehl. Category Theory in Context. Aurora: Dover Modern Math Originals. Dover Publications, 2016.
- [22] Egbert Rijke. Introduction to Homotopy Type Theory, 2022. arXiv:2212.11082.
- [23] 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.
- [24] Michael Shulman. All -toposes have strict univalent universes, 2019. arXiv:1904.07004.
- [25] The Agda Community. Cubical Agda Library, February 2025. version 0.8. URL: https://github.com/agda/cubical.
- [26] The Univalent Foundations Program. Homotopy Type Theory: Univalent Foundations of Mathematics. https://homotopytypetheory.org/book, Institute for Advanced Study, 2013.
- [27] Andrea Vezzosi, Anders Mörtberg, and Andreas Abel. Cubical Agda: A dependently typed programming language with univalence and higher inductive types. Journal of Functional Programming, 31:e8, 2021. doi:10.1017/S0956796821000034.
