∞-Categories for the Working Mathematician

Emily Riehl and Dominic Verity

Department of Mathematics, , Baltimore, MD 21218, USA Email address: [email protected] Centre of Australian Category Theory, Macquarie University, NSW 2109, Australia Email address: [email protected] This text is a rapidly-evolving work in progress — use at your own risk. The most recent version can always be found here: www.math.jhu.edu/∼eriehl/ICWM.pdf We would be delighted to hear about any comments, corrections, or confusions readers might have. Please send to: [email protected]

Commenced on January 14, 2018.

Last modified on June 15, 2018. Contents

Preface vii

Part I. Basic ∞-category theory 1 Chapter 1. ∞-Cosmoi and their homotopy 2-categories 3 1.1. Quasi-categories 3 1.2. ∞-Cosmoi 12 1.3. Cosmological 22 1.4. The homotopy 2-category 24 Chapter 2. Adjunctions, limits, and colimits I 31 2.1. Adjunctions and equivalences 31 2.2. Initial and terminal elements 37 2.3. Limits and colimits 39 2.4. Preservation of limits and colimits 45 Chapter 3. Weak 2-limits in the homotopy 2-category 49 3.1. Smothering functors 50 3.2. ∞-categories of arrows 53 3.3. The comma construction 58 3.4. Representable comma ∞-categories 64 3.5. Sliced homotopy 2-categories and fibered equivalences 73 Chapter 4. Adjunctions, limits, and colimits II 81 4.1. The universal property of adjunctions 81 4.2. ∞-categories of cones 84 4.3. The universal property of limits and colimits 87 4.4. Loops and suspension in pointed ∞-categories 97 Chapter 5. Fibrations and Yoneda’s lemma 103 5.1. The 2-category theory of cartesian fibrations 103 5.2. Cocartesian fibrations and bifibrations 123 5.3. The quasi-category theory of cartesian fibrations 125 5.4. Discrete cartesian fibrations 129 5.5. The external Yoneda lemma 135

Part II. Homotopy coherent category theory 145 Chapter 6. Simplicial computads and homotopy coherence 147 6.1. Simplicial computads 148

iii 6.2. Free resolutions and homotopy coherent simplices 153 6.3. Homotopy coherent realization and the homotopy coherent nerve 157 Chapter 7. Weighted limits in ∞-cosmoi 165 7.1. Weighted limits and colimits 165 7.2. Flexible weighted limits and the collage construction 171 7.3. Homotopical properties of flexible weighed limits 176 7.4. More ∞-cosmoi 183 7.5. Weak 2-limits revisited 193 Chapter 8. Homotopy coherent adjunctions and monads 197 8.1. The free homotopy coherent adjunction 198 8.2. Homotopy coherent adjunction data 209 8.3. Building homotopy coherent adjunctions 216 8.4. Homotopical uniqueness of homotopy coherent adjunctions 219 Chapter 9. The formal theory of homotopy coherent monads 227 9.1. Homotopy coherent monads 227 9.2. Homotopy coherent algebras and the monadic adjunction 230 9.3. Limits and colimits in the ∞-category of algebras 236 9.4. The monadicity theorem 240 9.5. Monadic descent 249 9.6. Homotopy coherent monad maps 256

Part III. The calculus of modules 263 Chapter 10. Two-sided fibrations 265 10.1. Four equivalent definitions of two-sided fibrations 265 10.2. The ∞-cosmos of two-sided fibrations 272 10.3. Representable two-sided fibrations and the Yoneda lemma 275 10.4. Modules as discrete two-sided fibrations 280 Chapter 11. The calculus of modules 285 11.1. The double category of two-sided fibrations 286 11.2. The virtual equipment of modules 293 11.3. Composition of modules 297 11.4. Representable modules 303 Chapter 12. Formal category theory in a virtual equipment 311 12.1. Exact squares 311 12.2. Pointwise right and left extensions 316 12.3. Formal category theory in a virtual equipment 321 12.4. Limits and colimits in cartesian closed ∞-cosmoi 323

Part IV. Change of model and model independence 329 Chapter 13. Cosmological biequivalences 331 13.1. Cosmological functors 331

iv 13.2. Biequivalences of ∞-cosmoi as change-of-model functors 336 13.3. Properties of change-of-model functors 340 13.4. Ad hoc model invariance 344 Chapter 14. Proof of model independence 347 14.1. A biequivalence of virtual equipments 350

Appendix of Abstract Nonsense 353 Appendix A. Basic concepts of enriched category theory 355 A.1. Cartesian closed categories 356 A.2. Enriched categories 359 A.3. Enriched natural transformations and the enriched Yoneda lemma 362 A.4. Tensors and cotensors 367 A.5. Conical limits 369 A.6. Change of base 372 Appendix B. Introduction to 2-category theory 377 B.1. 2-categories and the calculus of pasting diagrams 377 B.2. The 3-category of 2-categories 382 B.3. Adjunctions and mates 383 B.4. Right adjoint right inverse adjunctions 384 B.5. A bestiary of 2-categorical lemmas 384 Appendix C. Abstract homotopy theory 385 C.1. Lifting properties, weak factorization systems, and Leibniz closure 385

Appendix of Semantic Considerations 387 Appendix D. The combinatorics of simplicial sets 389 D.1. Simplicial sets and markings 389 Appendix E. Examples of ∞-cosmoi 391 Appendix F. Compatibility with the analytic theory of quasi-categories 393 Bibliography 395

v

Preface

In this text we develop the theory of ∞-categories from first principles in a model-independent fashion using a common axiomatic framework that is satisfied by a variety of models. In contrast with prior “analytic” treatments of the theory of ∞-categories — in which the central categorical notions are defined in reference to the combinatorics of a particular model — our approach is “synthetic,” proceeding from definitions that can be interpreted simultaneously in many models to which our proofs then apply. While synthetic, our work is not schematic or hand-wavy, with the details of how to make things fully precise left to “the experts” and turtles all the way down.¹ Rather, we prove our theorems starting from a short list of clearly-enumerated axioms, and our conclusions are valid in any model of ∞-categories satisfying these axioms. The synthetic theory is developed in any ∞-cosmos, which axiomatizes the universe in which ∞-categories live as objects. So that our theorem statements suggest their natural interpretation, we recast ∞-category as a technical term, to mean an object in some (typically fixed) ∞-cosmos. Several models of (∞, 1)-categories² are ∞-categories in this sense, but our ∞-categories also include certain models of (∞, 푛)-categories³ as well as fibered versions of all of the above. This usage is meant to in- terpolate between the classical one, which refers to any variety of weak infinite-dimensional category, and the common one, which is often taken to mean quasi-categories or complete Segal spaces. Much of the development of the theory of ∞-categories takes place not in the full ∞-cosmos but in a quotient that we call the homotopy 2-category, the name chosen because an ∞-cosmos is some- thing like a category of fibrant objects in an enriched and the homotopy 2-category is then a categorification of its homotopy category. The homotopy 2-category is a strict 2-category — like the 2-category of categories, functors, and natural transformations — and in this way the foun- dational proofs in the theory of ∞-categories closely resemble the classical foundations of ordinary category theory except that the universal properties that characterize, e.g. when a between ∞-categories defines a cartesian fibration, are slightly weaker than in the familiar case. In Part I, we define and develop the notions of equivalence and adjunction between ∞-categories, limits and colimits in ∞-categories, cartesian and cocartesian fibrations and their discrete variants, and prove an external version of the Yoneda lemma all from the comfort of the homotopy 2-category. In Part II, we turn our attention to homotopy coherent structures present in the full ∞-cosmos to define

¹A less rigorous “model-independent” presentation of ∞-category theory might confront a problem of infinite regress, since infinite-dimensional categories are themselves the objects of an ambient infinite-dimensional category, and in de- veloping the theory of the former one is tempted to use the theory of the latter. We avoid this problem by using a very concrete model for the ambient (∞, 2)-category of ∞-categories that arises frequently in practice and is designed to fa- cilitate relatively simple proofs. While the theory of (∞, 2)-categories remains in its infancy, we are content to cut the Gordian knot in this way. ² (naturally marked quasi-categories) all define the ∞-categories in an ∞-cosmos. ³Θ푛-spaces, iterated complete Segal spaces, and 푛-complicial sets also define the ∞-categories in an ∞-cosmos, as do (nee. weak) complicial sets, a model for (∞, ∞)-categories. We hope to add other models of (∞, 푛)-categories to this list.

vii and study homotopy coherent adjunctions and monads borne by ∞-categories as a mechanism for universal algebra. What’s missing from this basic account of the category theory of ∞-categories is a satisfactory treatment of the “hom” bifunctor associated to an ∞-category, which is the prototypical example of what we call a module. In Part III, we develop the calculus of modules between ∞-categories and apply this to define and study pointwise Kan extensions. This will give us an opportunity to repackage universal properties proven in Part I as parts of the “formal category theory” of ∞-categories. This work is all “model-agnostic” in the sense of being blind to details about the specifications of any particular ∞-cosmos. In Part IV we prove that the category theory of ∞-categories is also “model-independent” in a precise sense: all categorical notions are preserved, reflected, and created by any “change-of-model” functor that defines what we call a biequivalence. This model-independence theorem is stronger than our axiomatic framework might initially suggest in that it also allows us to transfer theorems proven using “analytic” techniques to all biequivalent ∞-cosmoi. For instance, the four ∞-cosmoi whose objects model (∞, 1)-categories are all biequivalent. It follows that the analytically-proven theorems about quasi-categories⁴ from [36] transfer to complete Segal spaces, and vice versa.

⁴Importantly, the synthetic theory developed in the ∞-cosmos of quasi-categories is fully compatible with the analytic theory developed by Joyal, Lurie, and many others. This is the subject of Appendix F. viii Part I

Basic ∞-category theory

CHAPTER 1

∞-Cosmoi and their homotopy 2-categories

1.1. Quasi-categories Before introducing an axiomatic framework that will allow us to develop ∞-category theory in general, we first consider one model in particular: namely, quasi-categories, which were first analyzed by Joyal in [24] and [25] and in several unpublished draft book manuscripts. 1.1.1. Notation (the category). Let 횫 denote the simplex category of finite non-empty ordi- nals [푛] = {0 < 1 < ⋯ < 푛} and order-preserving maps. These include in particular the

푖 elementary face operators [푛 − 1] 훿 [푛] 0 ≤ 푖 ≤ 푛 and the

푖 elementary degeneracy operators [푛 + 1] 휎 [푛] 0 ≤ 푖 ≤ 푛 whose images respectively omit and double up on the element 푖 ∈ [푛]. Every morphism in 횫 fac- tors uniquely as an epimorphism followed by a monomorphism; these epimorphisms, the degeneracy operators, decompose as composites of elementary degeneracy operators, while the monomorphisms, the face operators, decompose as composites of elementary face operators. op The category of simplicial sets is the category 풮풮푒푡 ≔ 풮푒푡횫 of presheaves on the simplex cat- egory. We write Δ[푛] for the standard 푛-simplex, the represented by [푛] ∈ 횫, and Λ푘[푛] ⊂ 휕Δ[푛] ⊂ Δ[푛] for its 푘-horn and boundary sphere respectively. Given a simplicial set 푋, it is conventional to write 푋푛 for the set of 푛-simplices, defined by evaluating at [푛] ∈ 횫. By the Yoneda lemma, each 푛-simplex 푥 ∈ 푋푛 corresponds to a map of simplicial sets 푥∶ Δ[푛] → 푋. Accordingly, we write 푥 ⋅ 훿푖 for the 푖th face of the 푛-simplex, an (푛 − 1)-simplex classified by the composite map

푖 Δ[푛 − 1] 훿 Δ[푛] 푥 푋. Geometrically, 푥 ⋅ 훿푖 is the “face opposite the vertex 푖” in the 푛-simplex 푥. Since the morphisms of 횫 are generated by the elementary face and degeneracy operators, the data of a simplicial set¹ 푋 is often presented by a diagram

훿3 휎2 훿2 훿2 휎1 훿1 휎 휎 ⋯ 푋3 1 푋2 훿1 푋1 0 푋0, 훿1 휎0 훿0 휎0 훿0 훿0 identifying the set of 푛-simplices for each [푛] ∈ 횫 as well as the (contravariant) actions of the elemen- tary operators, conventionally denoted using subscripts. ¹This presentation is also used for more general simplicial objects valued in any category.

3 1.1.2. Definition (quasi-category). A quasi-category is a simplicial set 퐴 in which any inner horn can be extended to a simplex, solving the displayed lifting problem: Λ푘[푛] 퐴 푛 ≥ 2, 0 < 푘 < 푛. (1.1.3)

Δ[푛] Quasi-categories were first introduced by Boardman and Vogt [8] under the name “weak Kan complexes,” a Kan complex being a simplicial set admitting extensions as in (1.1.3) along all horn inclusions 푛 ≥ 1, 0 ≤ 푘 ≤ 푛. Since any can be encoded as a Kan complex,² in this way spaces provide examples of quasi-categories. Categories also provide examples of quasi-categories via the nerve construction. 1.1.4. Definition (nerve). The category 풞푎푡 of 1-categories embeds fully faithfully into the category of simplicial sets via the nerve functor. An 푛-simplex in the nerve of a 1-category 퐶 is a sequence of 푛 composable arrows in 퐶, or equally a functor [푛] → 퐶 from the ordinal category 핟 + 1 ≔ [푛] with objects 0, … , 푛 and a unique arrow 푖 → 푗 just when 푖 ≤ 푗. 1.1.5. Remark. The nerve of a category 퐶 is 2-coskeletal as a simplicial set, meaning that every sphere 휕Δ[푛] → 퐶 with 푛 ≥ 3 is filled uniquely by an 푛-simplex in 퐶 (see Definition D.1.1). This is because the simplices in dimension 3 and above witness the associativity of the composition of the path of composable arrows found along their spine, the 1-skeletal simplicial subset formed by the edges con- necting adjacent vertices. In fact, as suggested by the proof of the following proposition, any simplicial set in which inner horns admit unique fillers is isomorphic to the nerve of a 1-category; see Exercise 1.1.iii. We decline to introduce explicit notation for the nerve functor, preferring instead to identify 1-categories with their nerves. As we shall discover the theory of 1-categories extends to ∞-categories modeled as quasi-categories in such a way that the restriction of each ∞-categorical concept along the nerve embedding recovers the corresponding 1-categorical concept. For instance, the standard simplex Δ[푛] is the nerve of the ordinal category 핟 + 1, and we frequently adopt the latter notation — writing ퟙ ≔ Δ[0], ퟚ ≔ Δ[1], ퟛ ≔ Δ[2], and so on — to suggest the correct categorical intuition. To begin down this path, we must first verify the assertion that has implicitly just been made: 1.1.6. Proposition (nerves are quasi-categories). Nerves of categories are quasi-categories.

Proof. Via the isomorphism 퐶 ≅ cosk2 퐶 and the adjunction sk2 ⊣ cosk2 of D.1.1, the required lifting problem displayed below-left transposes to the one displayed below-right

푘 푘 Λ [푛] 퐶 ≅ cosk2 퐶 sk2 Λ [푛] 퐶 ↭

Δ[푛] sk2 Δ[푛]

²The total singular complex construction defines a functor from topological spaces to simplicial sets that is an equiv- alence on their respective homotopy categories — weak homotopy types of spaces correspond to homotopy equivalence classes of Kan complexes.

4 푘 For 푛 ≥ 4, the inclusion sk2 Λ [푛] ↪ sk2 Δ[푛] is an isomorphism, in which case the lifting problems on the right admit (unique) solutions. So it remains only to solve the lifting problems on the left in the cases 푛 = 2 and 푛 = 3. To that end consider Λ1[2] 퐶 Λ1[3] 퐶 Λ2[3] 퐶

Δ[2] Δ[3] Δ[3] An inner horn Λ1[2] → 퐶 defines a composable pair of arrows in 퐶; an extension to a 2-simplex exists precisely because any composable pair of arrows admits a (unique) composite. An inner horn Λ1[3] → 퐶 specifies the data of three composable arrows in 퐶, as displayed in the diagram below, together with the composites 푔푓, ℎ푔, and (ℎ푔)푓.

푐1 푓 ℎ푔

(ℎ푔)푓 푐0 푐3 푔 푔푓 ℎ 푐2 Because composition is associative, the arrow (ℎ푔)푓 is also the composite of 푔푓 followed by ℎ, which proves that the 2-simplex opposite the vertex 푐1 is present in 퐶; by 2-coskeletality, the 3-simplex filling this boundary sphere is also present in 퐶. The filler for a horn Λ2[3] → 퐶 is constructed similarly.  1.1.7. Definition (homotopy relation on 1-simplices). A parallel pair of 1-simplices 푓, 푔 in a simplicial set 푋 are homotopic if there exists a 2-simplex of either of the following forms

푥1 푥0 푓 푓 (1.1.8)

푥0 푔 푥1 푥0 푔 푥1 or if 푓 and 푔 are in the same equivalence class generated by this relation. In a quasi-category, the relation witnessed by any of the types of 2-simplex on display in (1.1.8) is an equivalence relation and these equivalence relations coincide: 1.1.9. Lemma (homotopic 1-simplices in a quasi-category). Parallel 1-simplices 푓 and 푔 in a quasi-category are homotopic if and only if there exists a 2-simplex of any or equivalently all of the forms displayed in (1.1.8). Proof. Exercise 1.1.i.  1.1.10. Definition (the homotopy category). By 1-truncating, any simplicial set 푋 has an underlying reflexive directed graph 훿1 휎 푋1 0 푋0, 훿0 the 0-simplices of 푋 defining the “objects” and the 1-simplices defining the “arrows,” by convention pointing from their 0th vertex (the face opposite 1) to their 1st vertex (the face opposite 0). The free 5 category on this reflexive directed graph has 푋0 as its object set, degenerate 1-simplices serving as iden- tity morphisms, and non-identity morphisms defined to be finite directed paths of non-degenerate 1-simplices. The homotopy category h푋 of 푋 is the quotient of the free category on its underlying reflexive directed graph by the congruence³ generated by imposing a composition relation ℎ = 푔 ∘ 푓 witnessed by 2-simplices 푥 푓 1 푔 푥 푥 0 ℎ 2 This implies in particular that homotopic 1-simplices represent the same arrow in the homotopy cat- egory. 1.1.11. Proposition. The nerve embedding admits a left adjoint, namely the functor which sends a simplicial set to its homotopy category: h 풞푎푡 ⊥ 풮풮푒푡

Proof. Using the description of h푋 as a quotient of the free category on the underlying reflexive directed graph of 푋, we argue that the data of a functor h푋 → 퐶 can be extended uniquely to a simplicial map 푋 → 퐶. Presented as a quotient in this way, the functor h푋 → 퐶 defines a map from the 1-skeleton of 푋 into 퐶, and since every 2-simplex in 푋 witnesses a composite in h푋, this map extends to the 2-skeleton. Now 퐶 is 2-coskeletal, so via the adjunction sk2 ⊣ cosk2 of Definition D.1.1, this map from the 2-truncation of 푋 into 퐶 extends uniquely to a simplicial map 푋 → 퐶.  The homotopy category of a quasi-category admits a simplified description. 1.1.12. Lemma (the homotopy category of a quasi-category). If 퐴 is a quasi-category then its homotopy category h퐴 has

• the set of 0-simplices 퐴0 as its objects • the set of homotopy classes of 1-simplices 퐴1 as its arrows • the identity arrow at 푎 ∈ 퐴0 represented by the degenerate 1-simplex 푎 ⋅ 휎0 ∈ 퐴1 • a composition relation ℎ = 푔 ∘ 푓 in h퐴 if and only if, for any choices of 1-simplices representing these arrows, there exists a 2-simplex with boundary 푎 푓 1 푔 푎 푎 0 ℎ 2 Proof. Exercise 1.1.ii.  1.1.13. Definition (isomorphisms in a quasi-category). A 1-simplex in a quasi-category is an isomor- phism just when it represents an isomorphism in the homotopy category. By Lemma 1.1.12 this means that 푓∶ 푎 → 푏 is an isomorphism if and only if there exist a 1-simplex 푓−1 ∶ 푏 → 푎 together with a pair of 2-simplices 푏 푎 푓 푓−1 푓−1 푓 푎 푎 푏 푏 ³A relation on parallel pairs of arrows of a 1-category is a congruence if it is an equivalence relation that is closed under pre- and post-composition: if 푓 ∼ 푔 then ℎ푓푘 ∼ ℎ푔푘. 6 The properties of the isomorphisms in a quasi-category are most easily proved by arguing in a slightly different category where simplicial sets have the additional structure of a “marking” on a spec- ified subset of the 1-simplices subject to the condition that all degenerate 1-simplices are marked; maps of these so-called marked simplicial sets must then preserve the markings. Because these objects will seldom appear outside of the proofs of certain combinatorial lemmas about the isomorphisms in quasi-categories, we save the details for Appendix D. Let us now motivate the first of several results proven using marked techniques. Quasi-categories are defined to have extensions along all inner horns. But if in an outer horn Λ0[2] → 퐴 or Λ2[2] → 퐴, the initial or final edges, respectively, are isomorphisms, then intuitively a filler should exist

푓 푎1 −1 −1 푎1 푔 ∼ ℎ푓 푔 ℎ ∼ 푎 푎 푎 푎 0 ℎ 2 0 ℎ 2 and similarly for the higher-dimensional outer horns. 1.1.14. Proposition (special outer horn lifting). (i) Let 퐴 be a quasi-category. Then any outer horns 푔 Λ0[푛] 퐴 Λ푛[푛] ℎ 퐴

Δ[푛] Δ[푛]

in which the edges 푔|{0,1} and ℎ|{푛−1,푛} are isomorphisms admit fillers. (ii) Let 퐴 and 퐵 be quasi-categories and 푓∶ 퐴 → 퐵 a map that lifts against the inner horn inclusions. Then any outer horns 푔 Λ0[푛] 퐴 Λ푛[푛] ℎ 퐴 푓 푓 Δ[푛] 퐵 Δ[푛] 퐵

in which the edges 푔|{0,1} and ℎ|{푛−1,푛} are isomorphisms admit fillers. The proof of Proposition 1.1.14 requires clever combinatorics, due to Joyal, and is deferred to Appendix D.⁴ Here, we enjoy its myriad consequences. Immediately: 1.1.15. Corollary. A quasi-category is a Kan complex if and only if its homotopy category is a groupoid. Proof. If the homotopy category of a quasi-category is a groupoid, then all of its 1-simplices are isomorphisms, and Proposition 1.1.14 then implies that all inner and outer horns have fillers. Thus, the quasi-category is a Kan complex. Conversely, in a Kan complex, all outer horns can be filled and in particular fillers for the horns Λ0[2] and Λ2[2] can be used to construct left and right inverses for any 1-simplex of the form displayed in Definition 1.1.13.⁵  ⁴The second statement subsumes the first, but the first is typically used to prove the second. ⁵In a quasi-category, any left and right inverses to a common 1-simplex are homotopic, but as Corollary 1.1.16 proves, any isomorphism in fact has a single two-sided inverse.

7 A quasi-category contains a canonical maximal sub Kan complex, the simplicial subset spanned by those 1-simplices that are isomorphisms. Just as the arrows in a quasi-category 퐴 are represented by simplicial maps ퟚ → 퐴 whose domain is the nerve of the free-living arrow, the isomorphisms in a quasi-category are represented by diagrams 핀 → 퐴 whose domain is the free-living isomorphism: 1.1.16. Corollary. An arrow 푓 in a quasi-category 퐴 is an isomorphism if and only if it extends to a homo- topy coherent isomorphism 푓 ퟚ 퐴

핀 Proof. If 푓 is an isomorphism, the map 푓∶ ퟚ → 퐴 lands in the maximal sub Kan complex con- tained in 퐴. The postulated extension also lands in this maximal sub Kan complex because the inclu- sion ퟚ ↪ 핀 can be expressed as a sequential composite of outer horn inclusions; see Exercise 1.1.iv.  The category of simplicial sets, like any category of presheaves, is cartesian closed. By the Yoneda lemma and the defining adjunction, an 푛-simplex in the exponential 푌푋 corresponds to a simplicial map 푋 × Δ[푛] → 푌, and its faces and degeneracies are computed by precomposing in the simplex variable. Our aim is now to show that the quasi-categories define an exponential ideal in the simpli- cially enriched category of simplicial sets: if 푋 is a simplicial set and 퐴 is a quasi-category, then 퐴푋 is a quasi-category. We will deduce this as a corollary of the “relative” version of this result involving a class of maps called isofibrations that we now introduce. 1.1.17. Definition (isofibrations between quasi-categories). A simplicial map 푓∶ 퐴 → 퐵 is a isofibra- tion if it lifts against the inner horn inclusions, as displayed below left, and also against the inclusion of either vertex into the free-standing isomorphism 핀. Λ푘[푛] 퐴 ퟙ 퐴 푓 푓 Δ[푛] 퐵 핀 퐵 To notationally distinguish the isofibrations, we depict them as arrows “↠” with two heads. 1.1.18. Observation. (i) For any simplicial set 푋, the unique map 푋 → ∗ whose codomain is the terminal simplicial set is an isofibration if and only if 푋 is a quasi-category. (ii) Any class of maps characterized by a right lifting property is automatically closed under com- position, product, pullback, retract, and limits of towers; see Lemma C.1.1. (iii) Combining (i) and (ii), if 퐴 ↠ 퐵 is an isofibration, and 퐵 is a quasi-category, then so is 퐴. (iv) The isofibrations generalize the eponymous categorical notion. The nerve of any functor 푓∶ 퐴 → 퐵 between categories defines a map of simplicial sets that lifts against the inner horn inclusions. This map then defines an isofibration if and only if given any isomorphism in 퐵 and specified object in 퐴 lifting either its domain or codomain, there exists an isomorphism in 퐴 with that domain or codomain lifting the isomorphism in 퐵. We typically only deploy the term “isofibration” for a map between quasi-categories because our usage of this class of maps intentionally parallels the classical categorical case. 8 Much harder to establish is the stability of the class of isofibrations under forming “Leibniz ex- ponentials” as displayed in (1.1.20). The proof of this result is given in Proposition ?? in Appendix D. 1.1.19. Proposition. If 푖∶ 푋 ↪ 푌 is a monomorphism and 푓∶ 퐴 ↠ 퐵 is an isofibration, then the induced Leibniz exponential map 푖 퐴푌 퐴 푖⋔푓ᄃ

푋 (1.1.20) • ⌟ 퐴 푌 푓 푓푋 퐵푌 퐵푋 퐵푖 is again an isofibration.⁶ 1.1.21. Corollary. If 푋 is a simplicial set and 퐴 is a quasi-category, then 퐴푋 is a quasi-category. Moreover, a 1-simplex in 퐴푋 is an isomorphism if and only if its components at each vertex of 푋 are isomorphisms in 퐴. Proof. The first statement is a special case of Proposition 1.1.19; see Exercise 1.1.vi. The second statement is proven similarly by arguing with marked simplicial sets. See Lemma ??.  1.1.22. Definition (equivalences of quasi-categories). A map 푓∶ 퐴 → 퐵 between quasi-categories is an equivalence if it extends to the data of a “homotopy equivalence” with the free-living isomorphism 핀 serving as the interval: that is, if there exist maps 푔∶ 퐵 → 퐴 and 퐴 퐵 푓푔 ev0 ev0 훽 퐴 훼 퐴핀 퐵 퐵핀

ev1 ev1 푔푓 퐴 퐵 We write “⥲” to decorate equivalences and 퐴 ≃ 퐵 to indicate the presence of an equivalence 퐴 ⥲ 퐵. 1.1.23. Definition. A map 푓∶ 푋 → 푌 between simplicial sets is a trivial fibration if it admits lifts against the boundary inclusions for all simplices 휕Δ[푛] 푋 푛 ≥ 0 푓 (1.1.24) Δ[푛] 푌 We write “⥲→” to decorate trivial fibrations. 1.1.25. Remark. The simplex boundary inclusions 휕Δ[푛] ↪ Δ[푛] “cellularly generate” the monomor- phisms of simplicial sets — see Definition C.1.2 and Lemma D.1.2. Hence the dual of Lemma C.1.1

⁶Degenerate cases of this result, taking 푋 = ∅ or 퐵 = 1, imply that the other six maps in this diagram are also isofibrations; see Exercise 1.1.vi.

9 implies that trivial fibrations lift against any monomorphism between simplicial sets. In particular, applying this to the map ∅ → 푌, it follows that any trivial fibration 푋 ⥲→푌 is a split epimorphism. The notation “⥲→” is suggestive: the trivial fibrations between quasi-categories are exactly those maps that are both isofibrations and equivalences. This can be proven by a relatively standard although rather technical argument in simplicial homotopy theory, given as Proposition ?? in Appendix D. 1.1.26. Proposition. For a map 푓∶ 퐴 → 퐵 between quasi-categories the following are equivalent: (i) 푓 is at trivial fibration (ii) 푓 is both an isofibration and an equivalence (iii) 푓 is a split fiber homotopy equivalence: an isofibration admitting a section 푠 that is also an equivalence inverse via a homotopy from 푠푓 to 1퐴 that composes with 푓 to the constant homotopy from 푓 to 푓. As a class characterized by a right lifting property, the trivial fibrations are also closed under composition, product, pullback, limits of towers, and contain the isomorphisms. The stability of these maps under Leibniz exponentiation will be verified along with Proposition 1.1.19 in Proposition ??. 1.1.27. Proposition. If 푖∶ 푋 → 푌 is a monomorphism and 푓∶ 퐴 → 퐵 is an isofibration, then if either 푓 is a trivial fibration or if 푖 is in the class cellularly generated⁷ by the inner horn inclusions and the map ퟙ ↪ 핀 then the induced Leibniz exponential map

ᄃ 푌 푖⋔푓 푌 푋 퐴 퐵 ×퐵푋 퐴 a trivial fibration. 1.1.28. Digression (the Joyal model structure). The category of simplicial set bears a model structure (see Appendix D) whose fibrant objects are exactly the quasi-categories; all objects are cofibrant. The fibrations, weak equivalences, and trivial fibrations between fibrant objects are precisely the classes of isofibrations, equivalences, and trivial fibrations defined above. Proposition 1.1.26 proves that the trivial fibrations are the intersection of the classes of fibrations and weak equivalences. Propositions 1.1.19 and 1.1.27 reflect the fact that the Joyal model structure is a closed monoidal model category with respect to the cartesian closed structure on the category of simplicial sets. We have declined to elaborate on the Joyal model structure for quasi-categories alluded to in Di- gression 1.1.28 because the only aspects of it that we will need are those described above. The results proven here suffice to show that the category of quasi-categories defines an ∞-cosmos, a concept to which we now turn. Exercises.

1.1.i. Exercise. Consider the set of 1-simplices in a quasi-category with initial vertex 푎0 and final vertex 푎1. (i) Prove that the relation defined by 푓 ∼ 푔 if and only if there exists a 2-simplex with boundary 푎1 푓 is an equivalence relation.

푎0 푔 푎1

⁷See Definition C.1.2.

10 (ii) Prove that the relation defined by 푓 ∼ 푔 if and only if there exists a 2-simplex with boundary 푎0 푓 is an equivalence relation.

푎0 푔 푎1 (iii) Prove that the equivalence relations defined by (i) and (ii) are the same. This proves Lemma 1.1.9. 1.1.ii. Exercise. Consider the free category on the reflexive directed graph

훿1 휎 퐴1 0 퐴0, 훿0 underlying a quasi-category 퐴. (i) Consider the relation that identifies a pair of sequences of composable 1-simplices with com- mon source and common target whenever there exists a simplex of 퐴 in which the sequences of 1-simplices define two paths from its initial vertex to its final vertex. Prove that this relation is stable under pre- and post-composition with 1-simplices and conclude that its transitive clo- sure is a congruence: an equivalence relation that is closed under pre- and post-composition.⁸ (ii) Consider the congruence relation generated by imposing a composition relation ℎ = 푔 ∘ 푓 witnessed by 2-simplices 푎 푓 1 푔 푎 푎 0 ℎ 2 and prove that this coincides with the relation considered in (i). (iii) In the congruence relations of (i) and (ii), prove that every sequence of composable 1-simplices in 퐴 is equivalent to a single 1-simplex. Conclude that every morphism in the quotient of the free category by this congruence relation is represented by a 1-simplex in 퐴. (iv) Prove that for any triple of 1-simplices 푓, 푔, ℎ in 퐴, ℎ = 푔 ∘ 푓 in the quotient category if and only if there exists a 2-simplex with boundary 푎 푓 1 푔 푎 푎 0 ℎ 2 This proves Lemma 1.1.12. 1.1.iii. Exercise. Show that any quasi-category in which inner horns admit unique fillers is isomorphic to the nerve of its homotopy category. 1.1.iv. Exercise. (i) Prove that 핀 contains exactly two non-degenerate simplices in each dimension.

⁸Given a congruence relation on the hom-sets of a 1-category, the quotient category can be formed by quotienting each hom-set; see [39, §II.8].

11 (ii) Inductively build 핀 from ퟚ by expressing the inclusion ퟚ ↪ 핀 as a sequential composite of pushouts of outer horn inclusions⁹ Λ0[푛] ↪ Δ[푛], one in each dimension starting with 푛 = 2.¹⁰ 1.1.v. Exercise. Prove the relative version of Corollary 1.1.16: for any isofibration 푝∶ 퐴 ↠ 퐵 between quasi-categories and any isomorphism 푓∶ ퟚ → 퐴 any homotopy coherent isomorphism in 퐵 extending 푝푓 lifts to a homotopy coherent isomorphism in 퐴 extending 푓. 푓 ퟚ 퐴 푝 핀 퐵 1.1.vi. Exercise. Specialize Proposition 1.1.19 to prove the following: (i) If 퐴 is a quasi-category and 푋 is a simplicial set then 퐴푋 is a quasi-category. (ii) If 퐴 is a quasi-category and 푋 ↪ 푌 is a monomorphism then 퐴푌 ↠ 퐴푋 is an isofibration. (iii) If 퐴 ↠ 퐵 is an isofibration and 푋 is a simplicial set then 퐴푋 ↠ 퐵푋 is an isofibration. 1.1.vii. Exercise. (i) Prove that the equivalences defined in Definition 1.1.22 are closed under retracts. (ii) Prove that the equivalences defined in Definition 1.1.22 satisfy the 2-of-3 property. 1.2. ∞-Cosmoi In §1.1, we presented “analytic” proofs of a few of the basic facts about quasi-categories. The category theory of quasi-categories can be developed in a similar style, but we aim instead to develop the “synthetic” theory of infinite-dimensional categories, so that our results will apply to many models at once. To achieve this, our strategy is not to axiomatize what these infinite-dimensional categories are, but rather axiomatize the “universe” in which they live. The following definition abstracts the properties of the quasi-categories and the classes of isofibra- tions, equivalences, and trivial fibrations introduced in §1.1. Firstly, the category of quasi-categories and simplicial maps is enriched over the category of simplicial sets — the set of morphisms from 퐴 to 퐵 coincides with the set of vertices of the simplicial set 퐵퐴 — and moreover these hom-spaces are all quasi-categories. Secondly, a number of limit constructions that can be defined in the underlying 1-category of quasi-categories and simplicial maps satisfy universal properties relative to this simpli- cial enrichment. And finally, the classes of isofibrations, equivalences, and trivial fibrations satisfy properties that are familiar from abstract homotopy theory. In particular, the use of isofibrations in diagrams guarantees that their strict limits are equivalence invariant, so we can take advantage of up- to-isomorphism universal properties and strict functoriality of these constructions while still working “homotopically.” As will be explained in Digression 1.2.9, there are a variety of models of infinite-dimensional cat- egories for which the category of “∞-categories,” as we will call them, and “functors” between them is

⁹By duality — the opposite of a simplicial set 푋 is the simplicial set obtained by reindexing along the involution (−)op ∶ 횫 → 횫 that reverses the ordering in each ordinal — the outer horn inclusions Λ푛[푛] ↪ Δ[푛] can be used instead. ¹⁰This decomposition of the inclusion ퟚ ↪ 핀 reveals which data can always be extended to a homotopy coherent isomorphism: for instance, the 1- and 2-simplices of Definition 1.1.13 together with a single 3-simplex that has these as its outer faces with its inner faces degenerate.

12 enriched over quasi-categories and admits classes of isofibrations, equivalences, and trivial fibrations satisfying analogous properties. This motivates the following axiomatization: 1.2.1. Definition (∞-cosmoi). An ∞-cosmos 풦 is a category enriched over quasi-categories,¹¹ mean- ing that it has • objects 퐴, 퐵, that we call ∞-categories, and • its morphisms define the vertices of functor-spaces Fun(퐴, 퐵), which are quasi-categories, that is also equipped with a specified class of maps that we call isofibrations and denote by “↠.” From these classes, we define a map 푓∶ 퐴 → 퐵 to be an equivalence if and only the induced map 푓∗ ∶ Fun(푋, 퐴) ⥲ Fun(푋, 퐵) on functor-spaces is an equivalence of quasi-categories for all 푋 ∈ 풦, and we define 푓 to be a trivial fibration just when 푓 is both an isofibration and an equivalence; these classes are denoted by “⥲” and “⥲→” respectively. These classes must satisfy the following two axioms: (i) (completeness) The simplicial category 풦 possesses a terminal object, small products, pull- backs of isofibrations, limits of countable towers of isofibrations, and cotensors with all sim- plicial sets, each of these limit notions satisfying a universal property that is enriched over simplicial sets.¹² (ii) (isofibrations) The class of isofibrations contains all isomorphisms and any map whose codo- main is the terminal object; is closed under composition, product, pullback, forming inverse limits of towers, and Leibniz cotensors with monomorphisms of simplicial sets; and has the property that if 푓∶ 퐴 ↠ 퐵 is an isofibration and 푋 is any object then Fun(푋, 퐴) ↠ Fun(푋, 퐵) is an isofibration of quasi-categories.

1.2.2. Digression (simplicial categories). A simplicial category 풜 is given by categories 풜푛, with a common set of objects and whose arrows are called 푛-arrows, that assemble into a diagram 횫op → 풞푎푡 of identity-on-objects functors

훿3 휎2 훿2 훿2 휎1 훿1 휎 휎 ⋯ 풜3 1 풜2 훿1 풜1 0 풜0, ≕ 풜 (1.2.3) 훿1 휎0 훿0 휎0 훿0 훿0 The data of a simplicial category can equivalently be encoded by a simplicially enriched category with a set of objects and a simplicial set 풜(푥, 푦) of morphisms between each ordered pair of ob- jects: an 푛-arrow in 풜푛 from 푥 to 푦 corresponds to an 푛-simplex in 풜(푥, 푦) (see Exercise 1.2.i). Each endo-hom-space contains a distinguished identity 0-arrow (the degenerate images of which define the corresponding identity 푛-arrows) and composition is required to define a simplicial map 풜(푦, 푧) × 풜(푥, 푦) ∘ 풜(푥, 푧) the single map encoding the compositions in each of the categories 풜푛 and also the functoriality of the diagram (1.2.3). The composition is required to be associative and unital, in a sense expressed by

¹¹This is to say 풦 is a simplicially enriched category whose hom-spaces are quasi-categories; this will be unpacked in 1.2.2. ¹²This will be elaborated upon in 1.2.4.

13 the commutative diagrams

id푦 ×1 풜(푦, 푧) × 풜(푥, 푦) × 풜(푤, 푥) ∘×1 풜(푥, 푧) × 풜(푤, 푥) 풜(푥, 푦) 풜(푦, 푦) × 풜(푥, 푦)

1×∘ ∘ 1×id푥 ∘

풜(푦, 푧) × 풜(푤, 푦) ∘ 풜(푤, 푧) 풜(푥, 푦) × 풜(푥, 푥) ∘ 풜(푥, 푦) the latter making use of natural isomorphisms 풜(푥, 푦) × 1 ≅ 풜(푥, 푦) ≅ 1 × 풜(푥, 푦) in the domain vertex. On account of the equivalence between these two presentations, the terms “simplicial category” and “simplicially-enriched category” are generally taken to be synonyms.¹³ The category 풜0 of 0-arrows is the underlying category of the simplicial category 풜, which forgets the higher dimensional simpli- cial structure. In particular, the underlying category of an ∞-cosmos 풦 is the category whose objects are the ∞-categories in 풦 and whose morphisms are the 0-arrows in the functor spaces. In all of the examples to appear below, this recovers the expected category of ∞-categories in a particular model and functors between them. 1.2.4. Digression (simplicially enriched limits). Let 풜 be a simplicial category. The cotensor of an object 퐴 ∈ 풜 by a simplicial set 푈 is characterized by an isomorphism of simplicial sets 풜(푋, 퐴푈) ≅ 풜(푋, 퐴)푈 (1.2.5) natural in 푋 ∈ 풜. Assuming such objects exist, the simplicial cotensor defines a bifunctor 풮풮푒푡op × 풜 풜

(푈, 퐴) 퐴푈 in a unique way making the isomorphism (1.2.5) natural in 푈 and 퐴 as well. The other simplicial limit notions postulated by axiom 1.2.1(i) are conical, which is the term used for ordinary 1-categorical limit shapes that satisfy an enriched analog of the usual universal property; see Definition 7.1.14. When these limits exist they correspond to the usual limits in the underlying cat- egory, but the usual universal property is strengthened. Applying the covariant representable functor 풜(푋, −)∶ 풜0 → 풮풮푒푡 to a limit cone (lim푗∈퐽 퐴푗 → 퐴푗)푗∈퐽 in 풜0, there is natural comparison map

풜(푋, lim 퐴푗) → lim 풜(푋, 퐴푗) (1.2.6) 푗∈퐽 푗∈퐽 and we say that lim푗∈퐽 퐴푗 defines a simplicially enriched limit if and only if (1.2.6) is an isomorphism of simplicial sets for all 푋 ∈ 풜. Considerably more details on the general theory of enriched categories can be found in [31] and in Appendix A. Enriched limits are the subject of §A. 1.2.7. Remark (flexible weighted limits in ∞-cosmoi). The axiom 1.2.1(i) implies that any ∞-cosmos 풦 admits all flexible limits (see Corollary 7.3.3), a much larger class of simplicially enriched “weighted” limits that will be introduced in §7.2. ¹³The phrase “simplicial object in 풞푎푡” is reserved for the more general yet less common notion of a diagram 횫op → 풞푎푡 that is not necessarily comprised of identity-on-objects functors.

14 Using the results of Joyal discussed in §1.1, we can easily verify: 1.2.8. Proposition. The full subcategory 풬풞푎푡 ⊂ 풮풮푒푡 of quasi-categories defines an ∞-cosmos with the isofibrations, equivalences, and trivial fibrations of Definitions 1.1.17, 1.1.22, and 1.1.23. Proof. The subcategory 풬풞푎푡 ⊂ 풮풮푒푡 inherits its simplicial enrichment from the cartesian closed category of simplicial sets: note that for quasi-categories 퐴 and 퐵, Fun(퐴, 퐵) ≔ 퐵퐴 is again a quasi-category. The limits postulated in 1.2.1(i) exist in the ambient category of simplicial sets.¹⁴ The defining universal property of the simplicial cotensor is satisfied by the exponentials of simplicial sets. We now argue that the full subcategory of quasi-categories inherits all these limit notions. Since the quasi-categories are characterized by a right lifting property, it is clear that they are closed under small products. Similarly, since the class of isofibrations is characterized by a right lifting property, Lemma C.1.1 implies that the fibrations are closed under all of the limit constructions of 1.2.1(ii) except for the last two: Leibniz closure and closure under exponentiation (−)푋. These last closure properties are established in Proposition 1.1.19. This completes the proof of 1.2.1(i) and 1.2.1(ii). Remark 1.1.25 proves that trivial fibrations split once we verify that the classes of trivial fibrations and of equivalences coincide with those defined by 1.1.23 and 1.1.22. By Proposition 1.1.26 the former coincidence follows from the latter, so it remains only to show that the equivalences of 1.1.22 coincide with the representably-defined equivalences: those maps of quasi-categories 푓∶ 퐴 → 퐵 for which 퐴푋 → 퐵푋 is an equivalence of quasi-categories in the sense of 1.1.22. Taking 푋 = Δ[0], we see immediately that representably-defined equivalences are equivalences, and the converse holds since the exponential (−)푋 preserves the data defining a simplicial homotopy.  We mention a common source of ∞-cosmoi found in nature at the outside to help ground the intuition for readers familiar with Quillen’s model categories, a popular framework for “abstract ho- motopy theory,” but reassure others that model categories are not needed outside of Appendix E. 1.2.9. Digression (a source of ∞-cosmoi in nature). As explained in Appendix E, certain easily de- scribed properties of a model category imply that the full subcategory of fibrant objects defines an ∞-cosmos whose isofibrations, equivalences, and trivial fibrations are the fibrations, weak equiva- lences, and trivial fibrations between fibrant objects. Namely, any model category that is enriched as such over the Joyal model structure on simplicial sets and with the property that all fibrant objects are cofibrant has this property. This compatible enrichment in the Joyal model structure can be defined when the model category is cartesian closed and equipped with a right Quillen adjoint to the Joyal model structure on simplicial sets whose left adjoint preserves finite products. In this case, the right adjoint becomes the underlying quasi-category functor (see Proposition 1.3.3(ii)) and the ∞-cosmoi so-produced will then be cartesian closed (see Definition 1.2.18). The ∞-cosmoi listed in Example 1.2.19 all arise in this way. The following results are consequences of the axioms of Definition 1.2.1. The first of these results tells us that the trivial fibrations enjoy all of the same stability properties satisfied by the isofibrations. 1.2.10. Lemma (stability of trivial fibrations). The trivial fibrations in an ∞-cosmos define a subcategory containing the isomorphisms; are stable under product, pullback, forming inverse limits of towers; the Leibniz cotensors of any trivial fibration with a monomorphism of simplicial sets is a trivial fibration as is the Leibniz

¹⁴Any category of presheaves is cartesian closed, complete, and cocomplete — a “cosmos” in the sense of Bénabou. Our ∞-cosmoi are more similar to the fibrational cosmoi due to Street [57]. 15 cotensor of an isofibration with a map in the class cellularly generated by the inner horn inclusions and the map ퟙ ↪ 핀; and if 퐸 ⥲→퐵 is a trivial fibration then so is Fun(푋, 퐸) ⥲→ Fun(푋, 퐵). Proof. We prove these statements in the reverse order. By axiom 1.2.1(ii) and the definition of the trivial fibrations in an ∞-cosmos, we know that if 퐸 ⥲→퐵 is a trivial fibration then is Fun(푋, 퐸) ⥲→ Fun(푋, 퐵) is both an isofibration and an equivalence, and hence by Proposition 1.1.26 a trivial fibra- tion. For stability under the remaining constructions, we know in each case that the maps in ques- tion are isofibrations in the ∞-cosmos; it remains to show only that the maps are also equivalences. The equivalences in an ∞-cosmos are defined to be the maps that Fun(푋, −) carries to equivalences of quasi-categories, so it suffices to verify that trivial fibrations of quasi-categories satisfy the corre- sponding stability properties. This is established in Proposition 1.1.27 and the fact that that class is characterized by a right lifting property.  Additionally, every trivial fibration is “split” by a section. 1.2.11. Lemma (trivial fibrations split). Every trivial fibration admits a section 퐸 ∼

퐵 퐵 Proof. If 푝∶ 퐸 ⥲→퐵 is a trivial fibration, then by the final stability property of Lemma 1.2.10, so is 푝∗ ∶ Fun(퐵, 퐸) ↠ 퐹푢푛(퐵, 퐵). By Definition 1.1.23, we may solve the lifting problem ∅ = 휕Δ[0] Fun(퐵, 퐸)

푠 푝∗ ∼

Δ[0] Fun(퐵, 퐵) id퐵 to find a map 푠∶ 퐵 → 퐸 so that 푝푠 = id퐵.  A classical construction in abstract homotopy theory proves the following: 1.2.12. Lemma (Brown factorization lemma). Any functor 푓∶ 퐴 → 퐵 in an ∞-cosmos may be factored as an equivalence followed by an isofibration, where this equivalence is constructed as a section of a trivial fibration.

푞 푃푓

∼ 푝 ∼ (1.2.13) 푠 퐴 퐵 푓

16 Proof. The displayed factorization is constructed by the pullback of an isofibration formed by the simplicial cotensor of the inclusion ퟙ + ퟙ ↪ 핀 into the ∞-category 퐵. 퐴핀 핀 Δ 푓

퐴 ∼ 푃푓 퐵핀 푠 ⌟ (푞,푝) (ev ,ev ) (퐴,푓) 0 1 퐴 × 퐵 퐵 × 퐵 푓×퐵 핀 Note the map 푞 is a pullback of the trivial fibration ev0 ∶ 퐵 ⥲→퐵 and is hence a trivial fibration. Its section 푠, constructed by applying the universal property of the pullback to the displayed cone with summit 퐴, is thus an equivalence.  1.2.14. Remark (equivalences satisfy the 2-of-6 property). Exercise 1.1.vii proves that the equivalences between quasi-categories — and hence also the equivalences in any ∞-cosmos — are closed under retracts and have the 2-of-3 property. Using this latter fact, we see that in the case where 푓∶ 퐴 → 퐵 is an equivalence, the map 푝 of (1.2.13) is also a trivial fibration, and in particular has a section by Lemma 1.2.11. Combining these facts, a result of Blumberg and Mandell [7, 6.4] reproduced in Appendix C applies to prove that the equivalences in any ∞-cosmos satisfy the stronger 2-of-6 property: for any composable triple of morphisms 퐵

푓 ℎ푔 ∼ ℎ푔푓 퐴 퐷 ∼ 푔 푔푓 ℎ 퐶 if 푔푓 and ℎ푔 are equivalences then 푓, 푔, ℎ, and ℎ푔푓 are too. By a Yoneda-style argument, the “homotopy equivalence” characterization of the equivalences in the ∞-cosmos of quasi-categories extends to an analogous characterization of the equivalences in any ∞-cosmos: 1.2.15. Lemma (equivalences are homotopy equivalences). A map 푓∶ 퐴 → 퐵 between ∞-categories in an ∞-cosmos 풦 is an equivalence if and only if it extends to the data of a “homotopy equivalence” with the free-living isomorphism 핀 serving as the interval: that is, if there exist maps 푔∶ 퐵 → 퐴 and 퐴 퐵 푓푔 ev0 ev0 훽 퐴 훼 퐴핀 퐵 퐵핀 (1.2.16)

ev1 ev1 푔푓 퐴 퐵 in the ∞-cosmos.

17 Proof. By hypothesis, if 푓∶ 퐴 → 퐵 defines an equivalence in the ∞-cosmos 풦 then the induced map on post-composition 푓∗ ∶ Fun(퐵, 퐴) ⥲ Fun(퐵, 퐵) is an equivalence of quasi-categories. Evalu- ating the equivalence inverse 푔∶̃ Fun(퐵, 퐵) ⥲ Fun(퐵, 퐴) and homotopy 훽∶̃ Fun(퐵, 퐵) → Fun(퐵, 퐵)핀 at the 0-arrow 1퐵 ∈ Fun(퐵, 퐵), we obtain a 0-arrow 푔∶ 퐵 → 퐴 together with an isomorphism 핀 → Fun(퐵, 퐵) from the composite 푓푔 to 1퐵. By the defining universal property of the cotensor, this isomorphism internalizes to define the map 훽∶ 퐵 → 퐵핀 in 풦 displayed on the right of (1.2.16). Now the hypothesis that 푓 is an equivalence also provides an equivalence of quasi-categories 핀 푓∗ ∶ Fun(퐴, 퐴) ⥲ Fun(퐴, 퐵) and the map 훽푓∶ 퐴 → 퐵 represents an isomorphism in Fun(퐴, 퐵) from 푓푔푓 to 푓. Since 푓∗ is an equivalence, we can conclude that 1퐴 and 푔푓 are isomorphic in the quasi-category Fun(퐴, 퐴): such an isomorphism may be defined by applying the inverse equivalence ̃ ℎ∶ Fun(퐴, 퐵) → Fun(퐴, 퐴) and composing with the components at 1퐴, 푔푓 ∈ Fun(퐴, 퐴) of the iso- 핀 ̃ morphism 훼∶̃ Fun(퐴, 퐴) → Fun(퐴, 퐴) from 1Fun(퐴,퐴) to ℎ푓∗. Now by Corollary 1.1.16 this isomor- 핀 phism is represented by a map 핀 → Fun(퐴, 퐴) from 1퐴 to 푔푓, which internalizes to a map 훼∶ 퐴 → 퐴 in 풦 displayed on the left of (1.2.16). The converse is easy: the simplicial cotensor construction commutes with Fun(푋, −) so homotopy equivalences are preserved and by Definition 1.1.22 homotopy equivalences of quasi-categories define equivalences of quasi-categories.  One of the key advantages of the ∞-cosmological approaches to abstract category theory is that there are a myriad varieties of “fibered” ∞-cosmoi that can be built from a given ∞-cosmos, which means that any theorem proven in this axiomatic framework specializes and generalizes to those con- texts. The most basic of these derived ∞-cosmos is the ∞-cosmos of isofibrations over a fixed base, which we introduce now. Other examples of ∞-cosmoi will be introduced in §7.4, once we have de- veloped a greater facility with the simplicial limits of axiom 1.2.1(i). 1.2.17. Proposition (sliced ∞-cosmoi). For any ∞-cosmos 풦 and any object 퐵 ∈ 풦 there is an ∞-cosmos 풦/퐵 of isofibrations over 퐵 whose (i) objects are isofibrations 푝∶ 퐸 ↠ 퐵 with codomain 퐵 (ii) functor-spaces, say from 푝∶ 퐸 ↠ 퐵 to 푞∶ 퐹 ↠ 퐵, are defined by pullback

Fun퐵(푝∶ 퐸 ↠ 퐵, 푞∶ 퐹 ↠ 퐵) Fun(퐸, 퐹) ⌟ 푞∗ 푝 ퟙ Fun(퐸, 퐵)

and abbreviated to Fun퐵(퐸, 퐹) when the specified isofibrations are clear from context (iii) isofibrations are commutative triangles of isofibrations over 퐵 퐸 푟 퐹 푝 푞 퐵

18 (iv) terminal object is 1∶ 퐵 ↠ 퐵 and products are defined by the pullback along the diagonal

퐵 ×푖 퐸푖 ∏ 퐸푖 ⌟ 푖

Δ ∏ 퐵 푖 퐵

(v) pullbacks and limits of towers of isofibrations are created by the forgetful functor 풦/퐵 → 풦 (vi) simplicial cotensors 푝∶ 퐸 ↠ 퐵 by 푈 ∈ 풮풮푒푡 are denoted 푈 ⋔퐵 푝 and constructed by the pullback 푈 푈 ⋔퐵 푝 퐸 ⌟ 푝푈

퐵 Δ 퐵푈 (vii) and in which a map 푓 퐸 퐹 푝 푞 퐵

over 퐵 is an equivalence in the ∞-cosmos 풦/퐵 if and only if 푓 is an equivalence in 풦. Proof. Note first that the functor spaces are quasi-categories since axiom 1.2.1(ii) asserts that for any isofibration 푞∶ 퐹 ↠ 퐵 in 풦 the map 푞∗ ∶ Fun(퐸, 퐹) ↠ Fun(퐸, 퐵) is an isofibration of quasi- categories. Other parts of this axiom imply that that each of the limit constructions define isofibra- tions over 퐵. The closure properties of the isofibrations in 풦/퐵 follow from the corresponding ones in 풦. The most complicated of these is the Leibniz cotensor stability of the isofibrations in 풦/퐵, which follows from the corresponding property in 풦, since for a monomorphism of simplicial sets ᄄ ᄃ 푖∶ 푋 ↪ 푌 and an isofibration 푟 over 퐵 as above, the map 푖 ⋔퐵 푟 is constructed by pulling back 푖 ⋔ 푟 along Δ∶ 퐵 → 퐵푌. The fact that the above constructions define simplicially enriched limits in a simplicially enriched slice category are standard from enriched category theory. It remains only to verify that the equiva- lences in the ∞-cosmos of isofibrations are created by the forgetful functor 풦/퐵 → 풦. First note that if 푓∶ 퐸 → 퐹 defines an equivalence in 풦, then for any isofibration 푠∶ 퐴 ↠ 퐵 the induced equivalence on functor-spaces in 풦 pulls back to define an equivalence on corresponding functor spaces in 풦/퐵. Fun (퐴, 퐸) Fun(퐴, 퐸)

퐵 ⌟

푓∗ 푓∗ ∼

∼ 푝∗ Fun (퐴, 퐹) Fun(퐴, 퐹) 퐵 ⌟

푞∗

ퟙ 푟 Fun(퐴, 퐵)

19 This can be verified either by appealing to Lemmas 1.2.10 and 1.2.12 and using standard techniques from simplicial homotopy theory¹⁵ or by appealing to Lemma 1.2.15 and using the fact that pullback along 푟 defines a simplicial functor. For the converse implication, we appeal to Lemma 1.2.15. If 푓∶ 퐸 → 퐹 is an equivalence in 풦/퐵 then it admits a homotopy inverse in 풦/퐵. The inverse equivalence 푔∶ 퐹 → 퐸 also defines an inverse equivalence in 풦 and the required simplicial homotopies in 풦 are defined by composing

훼 핀 훽 핀 퐸 핀 ⋔퐵 퐸 퐸 퐹 핀 ⋔퐵 퐹 → 퐹 with the top horizontal leg of the pullback defining the cotensor in 풦/퐵.  1.2.18. Definition (cartesian closed ∞-cosmoi). An ∞-cosmos 풦 is cartesian closed if the product bifunctor − × −∶ 풦 × 풦 → 풦 extends to a simplicially enriched two-variable adjunction Fun(퐴 × 퐵, 퐶) ≅ Fun(퐴, 퐶퐵) ≅ Fun(퐵, 퐶퐴) in which the right adjoint (−)퐴 preserve the class of isofibrations. For instance, the ∞-cosmos of quasi-categories is cartesian closed, with the exponentials defined as (special cases of) simplicial cotensors. This is one of the reasons that we use the same notation for cotensor and for exponential.¹⁶ 1.2.19. Example (∞-cosmoi of (∞, 1)-categories). The following models of (∞, 1)-categories define cartesian closed ∞-cosmoi: (i) Rezk’s complete Segal spaces define the objects of an ∞-cosmos 풞풮풮, in which the isofibra- tions, equivalences, and trivial fibrations are the corresponding classes of the model structure of [45].¹⁷ (ii) The Segal categories defined by Dwyer, Kan, and Smith [18] and developed by Hirschowitz and Simpson [23] define the objects of an ∞-cosmos 풮푒푔푎푙, in which the isofibrations, equivalences and trivial fibrations are the corresponding classes of the model structure of [43] and [3].¹⁸ (iii) The 1-complicial sets of [61], equivalently the “naturally marked quasi-categories” of [36], de- fine the objects of an ∞-cosmos 1-풞표푚푝 in which the isofibrations, equivalences and trivial fibrations are the corresponding classes of the model structure from either of these sources. Proofs of these facts can be found in Appendix E. Appendix E also proves that certain models of (∞, 푛)-categories or even (∞, ∞)-categories define ∞-cosmoi. ¹⁵In more detail: any functor between the 1-categories underlying ∞-cosmoi that preserves trivial fibrations also preserves equivalences ¹⁶Another reason for this convenient notational conflation will be explained in §2.3. ¹⁷Warning: the model category of complete Segal spaces is enriched over simplicial sets in two distinct “directions” — one enrichment makes the simplicial set of maps between two complete Segal spaces into a Kan complex that probes the “spacial” structure while another enrichment makes the simplicial set of maps into a quasi-category that probes the “categorical” structure [26]. It is this latter enrichment that we want. ¹⁸Here we reserve the term “Segal category” for those simplicial objects with a discrete set of objects that are Reedy fibrant and satisfy the Segal condition. The traditional definition does not include the Reedy fibrancy condition because it is not satisfied by the simplicial object defined as the nerve of a Kan complex enriched category. Since Kan complex enriched categories are not among our preferred models of (∞, 1)-categories this does not bother us.

20 1.2.20. Example (풞푎푡 as an ∞-cosmos). The category 풞푎푡 of 1-categories defines a cartesian closed ∞-cosmos, inheriting its structure as a full subcategory 풞푎푡 ↪ 풬풞푎푡 of the ∞-cosmos of quasi- categories via the nerve embedding, which preserves all limits and also exponentials: the nerve of the functor category 퐵퐴 is the exponential of the nerves. In the ∞-cosmos of categories, the isofibrations are the isofibrations: functors satisfying the dis- played right lifting property: ퟙ 퐴 푓 핀 퐵 The equivalences are the equivalences of categories and the trivial fibrations are surjective equiva- lences: equivalences of categories that are also surjective on objects. 1.2.21. Definition (discrete ∞-categories). An object 퐸 in an ∞-cosmos 풦 is discrete just when for all 푋 ∈ 풦 the functor-space Fun(푋, 퐸) is a Kan complex. In the ∞-cosmos of quasi-categories, the discrete objects are exactly the Kan complexes: by Propo- sition ?? the Kan complexes also define an exponential ideal in the category of simplicial sets. Similarly, in the ∞-cosmoi of Example 1.2.19 whose ∞-categories are (∞, 1)-categories in some model, the dis- crete objects are the ∞-groupoids. 1.2.22. Proposition (∞-cosmos of discrete objects). The full subcategory 풟푖푠푐(풦) ↪ 풦 spanned by the discrete objects in any ∞-cosmos form an ∞-cosmos. Proof. We first establish this result for the ∞-cosmos of quasi-categories. By Proposition 1.1.14 an isofibration between Kan complexes is a Kan fibration: a map with the right lifting property with respect to all horn inclusions. Conversely, all Kan fibrations define isofibrations. Since Kan com- plexes are closed under simplicial cotensor (which coincides with exponentiation), It follows that the full subcategory 풦푎푛 ↪ 풬풞푎푡 is closed under all of the limit constructions of axiom 1.2.1(i). The remaining axiom 1.2.1(ii) is inherited from the analogous properties established for quasi-categories in Proposition 1.2.8. In a generic ∞-cosmos 풦 we need only show that the discrete objects are closed in 풦 under the limit constructions of 1.2.1(i). The definition natural isomorphism (1.2.6) characterizing these simplicial limits expresses the functor-space Fun(푋, lim푗∈퐽 퐴푗) as an analogous limit of functor space Fun(푋, 퐴푗). If each 퐴푗 is discrete then these objects are Kan complexes and the previous paragraph then establishes that the limit is a Kan complex as well. This holds for all objects 푋 ∈ 풦 so it follows that lim푗∈퐽 퐴푗 is discrete as required.  Exercises. 1.2.i. Exercise. Prove that the following are equivalent: (i) a simplicial category, as in 1.2.2, (ii) a category enriched over simplicial sets. 1.2.ii. Exercise. Elaborate on the proof of Proposition 1.2.8 by proving that the simplicially enriched category 풬풞푎푡 admits conical products satisfying the universal property of Digression 1.2.4. That is:

21 (i) For quasi-categories 퐴, 퐵, 푋, form the cartesian product 퐴 × 퐵 and prove that the projection maps 휋퐴 ∶ 퐴 × 퐵 → 퐴 and 휋퐵 ∶ 퐴 × 퐵 → 퐵 induce an isomorphism of quasi-categories (퐴 × 퐵)푋 ≅ 퐴푋 × 퐵푋. (ii) Explain how this relates to the universal property of Digression 1.2.4. (iii) Express the usual 1-categorical universal property of the product 퐴 × 퐵 as the “0-dimensional aspect” of the universal property of (i). 1.2.iii. Exercise. Prove that any object in an ∞-cosmos has a path object

핀 ∼ 퐵 (ev0,ev1) ∼ 퐵 퐵 × 퐵 Δ constructed by cotensoring with the free-living isomorphism. 1.2.iv. Exercise. (i) Use Exercise 1.1.iv and results from Appendix D to prove that a quasi-category 푄 is a Kan complex if and only if the map 푄핀 ↠ 푄ퟚ induced by the inclusion ퟚ ↪ 핀 is a trivial fibration. (ii) Conclude that an ∞-category 퐴 is discrete if and only if 퐴핀 ⥲→퐴ퟚ is a trivial fibration. 1.3. Cosmological functors Certain “right adjoint type” constructions define maps between ∞-cosmoi that preserve all of the structures axiomatized in Definition 1.2.1. The simple observation that such constructions define cosmological functors between ∞-cosmoi will streamline many proofs. 1.3.1. Definition (cosmological functor). A cosmological functor is a simplicial functor 퐹∶ 풦 → ℒ that preserves the specified classes of isofibrations and all of the simplicial limits enumerated in 1.2.1(i). 1.3.2. Lemma. Any cosmological functor also preserves the equivalences and the trivial fibrations. Proof. By Lemma 1.2.15 the equivalences in an ∞-cosmos coincide with the homotopy equiva- lences defined relative to cotensoring with the free-living isomorphism. Since a cosmological functor preserves simplicial cotensors, it preserves the data displayed in (1.2.16) and hence carries equivalences to equivalences. The statement about trivial fibrations follows.  In general, cosmological functors preserve any ∞-categorical notion that can be characterized internally to the ∞-cosmos — for instance, as a property of a certain map — as opposed to externally — for instance, in a statement that involves a universal quantifier. From Definition 1.2.21 it is not clear whether cosmological functors preserve discrete objects, but using the internal characterization of Exercise 1.2.iv — an ∞-category 퐴 is discrete if and only if 퐴핀 ⥲→퐴ퟚ is at trivial fibration — this follows easily: cosmological functors preserve simplicial cotensors and trivial fibrations. 1.3.3. Proposition. (i) For any object 퐴 in an ∞-cosmos 풦, Fun(퐴, −)∶ 풦 → 풬풞푎푡 defines a cosmological functor. (ii) Specializing, each ∞-cosmos has an underlying quasi-category functor

(−)0 ≔ Fun(1, −)∶ 풦 → 풬풞푎푡.

22 (iii) For any ∞-cosmos 풦 and any simplicial set 푈, the simplicial cotensor defines a cosmological functor (−)푈 ∶ 풦 → 풦. (iv) For any object 퐴 in a cartesian closed ∞-cosmos 풦, exponentiation defines a cosmological functor (−)퐴 ∶ 풦 → 풦. ∗ (v) For any map 푓∶ 퐴 → 퐵 in an ∞-cosmos 풦, pullback defines a cosmological functor 푓 ∶ 풦/퐵 → 풦/퐴. (vi) For any cosmological functor 퐹∶ 풦 → ℒ and any 퐴 ∈ 풦, the induced map on slices 퐹∶ 풦/퐴 → ℒ/퐹퐴 defines a cosmological functor. Proof. The first four of these statements are nearly immediate, the preservation of isofibrations being asserted explicitly as a hypothesis in each case and the preservation of limits following from standard categorical arguments. For (v), pullback in an ∞-cosmos 풦 is a simplicially enriched limit construction; one consequence ∗ ∗ of this is that 푓 ∶ 풦/퐵 → 풦/퐴 defines a simplicial functor. The action of the functor 푓 on a 0-arrow 푔 in 풦/퐵 is also defined by a pullback square: since the front and back squares in the displayed diagram are pullbacks the top square is as well 푓∗퐸 퐸 ⌟ 푔 푝 푓∗(푔) 푓∗퐹 퐹 ⌟ 푞 퐴 퐵 푓 ∗ Since isofibrations are stable under pullback, it follows that 푓 ∶ 풦/퐵 → 풦/퐴 preserves isofibrations. It remains to prove that this functor preserves the simplicial limits constructed in Proposition 1.2.17. In the case of connected limits, which are created by the forgetful functors to 풦, this is clear. For products and simplicial cotensors, this follows from the commutative cubes ×퐴푓∗퐸 ∏ 푓∗퐸 푈 ⋔ 푓∗(푝) (푓∗퐸)푈 푖 푖⌟ 푖 푖 퐴 ⌟ ⌞ ⌞ 퐵 푈 ∗ 푈 × 퐸푖 ∏ 퐸푖 푈 ⋔퐵 푝 퐸 (푓 푝) 푖 ⌟ 푖 ⌟ 푝푈 Δ ∏ Δ 푈 퐴 푖 퐴 퐴 퐴 ∏ 푈 푓 푖 푓 푓 푓 퐵 ∏ 퐵 퐵 Δ 퐵푈 Δ 푖 Since the front, back, and right faces are pullbacks, the left is as well, which is what we wanted to show. The final statement (vi) is left as Exercise 1.3.i. 

1.3.4. Non-Example. The forgetful functor 풦/퐵 → 풦 is simplicial and preserves the class of isofibra- tions but does not define a cosmological functor, failing to preserve cotensors and products. However, by Proposition 1.3.3(v), − × 퐵∶ 풦 → 풦/퐵 does define a cosmological functor. 1.3.5. Definition (biequivalences). A cosmological functor defines a biequivalence 퐹∶ 풦 ⥲ ℒ if ad- ditionally it

23 (i) is essentially surjective on objects up to equivalence: for all 퐶 ∈ ℒ there exists 퐴 ∈ 풦 so that 퐹퐴 ≃ 퐶 and (ii) it defines a local equivalence: for all 퐴, 퐵 ∈ 풦, the action of 퐹 on functor quasi-categories defines an equivalence Fun(퐴, 퐵) ∼ Fun(퐹퐴, 퐹퐵).

1.3.6. Remark. Cosmological biequivalences will be studied more systematically in Chapter 13, where we think of them as “change-of-model” functors. A basic fact is that any biequivalence of ∞-cosmoi not only preserves equivalences but also creates them: a pair of objects in an ∞-cosmos are equivalent if and only if their images in any biequivalent ∞-cosmos are equivalent (Exercise 1.3.ii). It follows that the cosmological biequivalences satisfy the 2-of-3 property. 1.3.7. Example (biequivalences between ∞-cosmoi of (∞, 1)-categories). (i) The underlying quasi-category functors defined on the ∞-cosmoi of complete Segal spaces, Segal categories, and 1-complicial sets

(−)0 (−)0 (−)0 ∼ ∼ 풞풮풮 ∼ 풬풞푎푡 풮푒푔푎푙 풬풞푎푡 1-풞표푚푝 풬풞푎푡 are all biequivalences. In the first two cases these are defined by “evaluating at the 0th row” and in the last case this is defined by “forgetting the markings.” (ii) There is also a cosmological biequivalence 풬풞푎푡 ⥲ 풞풮풮 defined by Joyal and Tierney [26]. (iii) The functor 풞풮풮 ⥲ 풮푒푔푎푙 defined by Bergner [5] that “discretizes” a complete Segal spaces also defines a cosmological biequivalence. (iv) There is a further cosmological biequivalence (−)♮ ∶ 풬풞푎푡 → 1-풞표푚푝 that gives each quasi- category its “natural marking,” with all invertible 1-simplices and all simplices in dimension greater than 1 marked. Proofs of these facts can be found in Appendix E. Exercises. 1.3.i. Exercise. Prove that for any cosmological functor 퐹∶ 풦 → ℒ and any 퐴 ∈ 풦, the induced map 퐹∶ 풦/퐴 → ℒ/퐹퐴 defines a cosmological functor. 1.3.ii. Exercise. Let 퐹∶ 풦 ⥲ ℒ be a cosmological biequivalence and let 퐴, 퐵 ∈ 풦. Sketch a proof that if 퐹퐴 ≃ 퐹퐵 in ℒ then 퐴 ≃ 퐵 in 풦 (and see Exercise 1.4.i). 1.4. The homotopy 2-category Small 1-categories define the objects of a strict 2-category¹⁹ 풞푎푡 of categories, functors, and natural transformations. Many basic categorical notions — those defined in terms of categories, functors, and natural transformations and their various composition operations — can be defined internally to the 2-category 풞푎푡. This suggests a natural avenue for generalization: reinterpreting these same

¹⁹A comprehensive introduction to strict 2-categories appears as Appendix B. Succinctly, in parallel with Digression 1.2.2, 2-categories can be understood equally as • “two-dimensional” categories, with objects, 0-arrows (typically called 1-cells), and 1-arrows (typically called 2-cells) • or as categories enriched over 풞푎푡.

24 definitions in a generic 2-category using its objects in place of small categories, its 1-cells in place of functors, and its 2-cells in place of natural transformations. In Chapter 2, we will develop a non-trivial portion of the theory of ∞-categories in any fixed ∞-cosmos following exactly this outline, working internally to a strict 2-category that we refer to as the homotopy 2-category that we associate to any ∞-cosmos. The homotopy 2-category of an ∞-cosmos is a quotient of the full ∞-cosmos, replacing each quasi-categorical functor-space by its homotopy cat- egory. Surprisingly, this rather destructive quotienting operation preserves quite a lot of information. Indeed, essentially all of the work in Part I will take place in the homotopy 2-category of an ∞-cosmos. This said, we caution the reader against becoming overly seduced by homotopy 2-categories, for that structure is more of a technical convenience for reducing the complexity of our arguments than a fundamental notion of ∞-category theory. The homotopy 2-category for the ∞-cosmos of quasi-categories was first introduced by Joyal in his work on the foundations of quasi-category theory. 1.4.1. Definition (homotopy 2-category). Let 풦 be an ∞-cosmos. Its homotopy 2-category is the strict 2-category 픥풦 whose • objects are the ∞-categories, i.e., the objects 퐴, 퐵 of 풦; • 1-cells 푓∶ 퐴 → 퐵 are the 0-arrows in the functor space Fun(퐴, 퐵) of 풦, i.e., the ∞-functors; and 푓 • 2-cells 퐴 ⇓훼 퐵 are homotopy classes of 1-simplices in Fun(퐴, 퐵), which we call ∞-natural 푔 transformations. Put another way 픥풦 is the 2-category with the same objects as 풦 and with hom-categories defined by hFun(퐴, 퐵) ≔ h(Fun(퐴, 퐵)), that is, as the homotopy category of the quasi-category Fun(퐴, 퐵). The underlying category of a 2-category is defined by simply forgetting its 2-cells. Note that an ∞-cosmos 풦 and its homotopy 2-category 픥풦 share the same underlying category of ∞-categories and ∞-functors in 풦. 1.4.2. Digression. The homotopy category functor h∶ 풮풮푒푡 → 풞푎푡 preserves finite products, as of course does its right adjoint. It follows that the adjunction of Proposition 1.1.11 induces a change-of- base adjunction h∗ 2-풞푎푡 ⊥ 풮풮푒푡-풞푎푡 whose left and right adjoints change the enrichment by applying the homotopy category functor or the nerve functor to the hom objects of the enriched category. Here 2-풞푎푡 and 풮풮푒푡-풞푎푡 can each be understood as 2-categories — of enriched categories, enriched functors, and enriched natural trans- formations — and both change of base constructions define 2-functors [10, 6.4.3]. 1.4.3. Observation (functors representing (invertible) 2-cells). By definition, 2-cells in the homotopy category 픥풦 are represented by maps ퟚ → Fun(퐴, 퐵) valued in the appropriate functor space and two such maps represent the same 2-cell if and only if their images are homotopic as 1-simplices in Fun(퐴, 퐵) in the sense defined by Lemma 1.1.9.

25 Now a 2-cell in a 2-category is invertible if and only if it defines an isomorphism in the appropriate hom-category hFun(퐴, 퐵). By Definition 1.1.13 and Corollary 1.1.16 it follows that each invertible 2-cell in 픥풦 is represented by a map 핀 → Fun(퐴, 퐵). 1.4.4. Lemma. Any simplicial functor 퐹∶ 풦 → ℒ between ∞-cosmoi induces a 2-functor 퐹∶ 픥풦 → 픥ℒ between their homotopy 2-categories. Proof. This follows immediately from the remarks on change of base in Digression 1.4.2 but we can also argue directly. The action of the induced 2-functor 퐹∶ 픥풦 → 픥ℒ on objects and 1-cells is given by the corresponding action of 퐹∶ 풦 → ℒ; recall an ∞-cosmos and its homotopy 2-category have the same underlying 1-category. Each 2-cell in 픥풦 is represented by a 1-simplex in Fun(퐴, 퐵) which is mapped via Fun(퐴, 퐵) 퐹 Fun(퐹퐴, 퐹퐵)

푓 퐹푓 퐴 ⇓훼 퐵 퐹퐴 ⇓퐹훼 퐹퐵 푔 퐹푔 to a 1-simplex representing a 2-cell in 픥ℒ. Since the action 퐹∶ Fun(퐴, 퐵) → Fun(퐹퐴, 퐹퐵) on functor spaces defines a morphism of simplicial sets, it preserves faces and degeneracies. In particular, homo- topic 1-simplices in Fun(퐴, 퐵) are carried to homotopic 1-simplices in Fun(퐹퐴, 퐹퐵) so the action on 2-cells just described is well-defined. The 2-functoriality of these mappings follows from the simplicial functoriality of the original mapping.  We now begin to relate the simplicially enriched structures of an ∞-cosmos to the 2-categorical structures in its homotopy 2-category. The first result proves that homotopy 2-categories inherit products from their ∞-cosmoi, which satisfy a 2-categorical universal property. To illustrate, recall that the terminal ∞-category 1 ∈ 풦 has the universal property Fun(푋, 1) ≅ ퟙ for all 푋 ∈ 풦. Applying the homotopy category functor we see that 1 ∈ 픥풦 has the universal property hFun(푋, 1) ≅ ퟙ for all 푋 ∈ 픥풦. This 2-categorical universal property has both a 1-dimensional and a 2-dimensional aspect. Since hFun(푋, 1) ≅ ퟙ is a category with a single object, there exists a unique morphism 푋 → 1 in 풦. And since hFun(푋, 1) ≅ ퟙ has only a single identity morphism, we see that the only 2-cells in 픥풦 with codomain 1 are identities. 1.4.5. Proposition (cartesian (closure)). (i) The homotopy 2-category of any ∞-cosmos has 2-categorical products. (ii) The homotopy 2-category of a cartesian closed ∞-cosmos is cartesian closed as a 2-category. Proof. While the functor h∶ 풮풮푒푡 → 풞푎푡 only preserves finite products, the restricted functor h∶ 풬풞푎푡 → 풞푎푡 preserves all products on account of the simplified description of the homotopy category of a quasi-category given in Lemma 1.1.12. Thus for any set 퐼 and family of ∞-categories (퐴푖)푖∈퐼 in 풦, the homotopy category functor carries the isomorphism of quasi-categories displayed below left to an isomorphisms of hom-categories displayed below right

Fun ∏ ≅ ∏ Fun h hFun ∏ ≅ ∏ hFun (푋, 푖∈퐼 퐴푖) 푖∈퐼 (푋, 퐴푖) (푋, 푖∈퐼 퐴푖) 푖∈퐼 (푋, 퐴푖). This proves that the homotopy 2-category 픥풦 has products whose universal properties have both a 1- and 2-dimensional component, as described for terminal objects above.

26 If 풦 is a cartesian closed ∞-cosmos, then for any triple of ∞-categories 퐴, 퐵, 퐶 ∈ 풦 there exist exponential objects 퐶퐴, 퐶퐵 ∈ 풦 characterized by natural isomorphisms Fun(퐴 × 퐵, 퐶) ≅ Fun(퐴, 퐶퐵) ≅ Fun(퐵, 퐶퐴). Passing to homotopy categories we have natural isomorphisms hFun(퐴 × 퐵, 퐶) ≅ hFun(퐴, 퐶퐵) ≅ hFun(퐵, 퐶퐴), which demonstrates that 픥풦 is cartesian closed as a 1-category: functors 퐴 × 퐵 → 퐶 transpose to define functors 퐴 → 퐶퐵 and 퐵 → 퐶퐴, and 2-cells transpose similarly.  There is a standard definition of isomorphism between two objects in any 1-category. Similarly, there is a standard definition of equivalence between two objects in any 2-category: 1.4.6. Definition (equivalence). An equivalence in a 2-category is given by • a pair of objects 퐴 and 퐵 • a pair of 1-cells 푓∶ 퐴 → 퐵 and 푔∶ 퐵 → 퐴 • a pair of invertible 2-cells 푓푔 퐴 ≅⇓훼 퐴 퐵 ≅⇓훽 퐵 푔푓 When 퐴 and 퐵 are equivalent, we write 퐴 ≃ 퐵 and refer to the 1-cells 푓 and 푔 as equivalences, denoted by “⥲.” In the case of the homotopy 2-category of an ∞-cosmos we have a competing definition of equiva- lence from 1.2.1: namely a 1-cell 푓∶ 퐴 ⥲ 퐵 that induces an equivalence 푓∗ ∶ Fun(푋, 퐴) ⥲ Fun(푋, 퐵) on functor-spaces — or equivalently, by Lemma 1.2.15, a homotopy equivalence defined relative to the interval 핀. Crucially, these two notions of equivalence coincide: 1.4.7. Theorem (equivalences are equivalences). A functor 푓∶ 퐴 → 퐵 between ∞-categories defines an equivalence in the ∞-cosmos 풦 if and only if it defines an equivalence in its homotopy 2-category 픥풦. Proof. Given an equivalence 푓∶ 퐴 ⥲ 퐵 in the ∞-cosmos 풦, Lemma 1.2.15 provides an inverse equivalence 푔∶ 퐵 ⥲ 퐴 and homotopies 훼∶ 퐴 → 퐴핀 and 훽∶ 퐵 → 퐵핀 in 풦. By Observation 1.4.3 this data represents an equivalence in the homotopy 2-category 픥풦. For the converse, first note that if parallel 1-cells ℎ, 푘∶ 퐴 ⇉ 퐵 in the homotopy 2-category are connected by an invertible 2-cell as displayed below left, then ℎ is an equivalence in the ∞-cosmos 풦 if and only if 푘 is: ℎ 퐴 퐴 ≅⇓훾 퐵 ℎ 훾 푘 푘 퐵 ∼ 퐵핀 ∼ 퐵 ev0 ev1 By Observation 1.4.3, the invertible 2-cell can be represented by a map 훾∶ 퐴 → 퐵핀 in 풦 as displayed above right; now apply the 2-of-3 property for the equivalences in 풦. Now it follows immediately from the 2-of-6 property of the equivalences in any ∞-cosmos estab- lished in Remark 1.2.14 and the fact that the equivalences contain the identities that any 2-categorical

27 equivalence defines an equivalence in the ∞-cosmos: since 푔푓 and 푓푔 are isomorphic to identities, they must be equivalences in 풦, and hence so must 푓 and 푔.  1.4.8. Digression (on the importance of Theorem 1.4.7). It is hard to overstate the importance of Theorem 1.4.7 to the work that follows. The categorical constructions that we will introduce for ∞-categories, ∞-functors, and ∞-natural transformations are invariant under 2-categorical equiva- lence in the homotopy 2-category and the universal properties we develop similarly characterize a 2-categorical equivalence class of ∞-categories. Theorem 1.4.7 then asserts that such constructions are “homotopically correct”: both invariant under equivalence in the ∞-cosmos and precisely identi- fying equivalence classes of objects. The equivalence invariance of the functor space in the codomain variable is axiomatic, but equiv- alence invariance in the domain variable is not.²⁰ But using 2-categorical techniques, there is now a short proof: 1.4.9. Corollary. Equivalences of ∞-categories 퐴′ ⥲ 퐴 and 퐵 ⥲ 퐵′ induce an equivalence of functor spaces Fun(퐴, 퐵) ⥲ Fun(퐴′, 퐵′). Proof. The simplicial functors Fun(퐴, −)∶ 풦 → 풬풞푎푡 and Fun(−, 퐵)∶ 풦op → 풬풞푎푡 induce 2-functors Fun(퐴, −)∶ 픥풦 → 픥풬풞푎푡 and Fun(−, 퐵)∶ 픥풦op → 픥풬풞푎푡, which preserve the 2-categor- ical equivalences of Definition 1.4.6. By Theorem 1.4.7 this is what we wanted to show.  Similarly, there is a standard 2-categorical notion of an isofibration, defined in the statement of Proposition 1.4.10, and any isofibration in an ∞-cosmos defines an isofibration in its homotopy 2-category.²¹ 1.4.10. Proposition (isofibrations define isofibrations). Any isofibration 푝∶ 퐸 ↠ 퐵 in an ∞-cosmos 풦, also defines an isofibration in the homotopy 2-category 픥풦: given any invertible 2-cell as displayed below left abutting to 퐵 with a specified lift of one of its boundary 1-cells through 푝, there exists an invertible 2-cell abutting to 퐸 with this boundary 1-cell as displayed below right that whiskers with 푝 to the original 2-cell. 푒 푒 푋 퐸 푋 ≅⇓훾 퐸 ≅⇓훽 푒̄ 푝 = 푝 푏 퐵 퐵 Proof. Put another way, the universal property of the statement says that the functor

푝∗ ∶ hFun(푋, 퐸) ↠ hFun(푋, 퐵) is an isofibration of categories in the sense defined in Example 1.2.20. By axiom 1.2.1(ii), since 푝∶ 퐸 ↠ 퐵 is an isofibration in 풦, the induced map 푝∗ ∶ Fun(푋, 퐸) ↠ Fun(푋, 퐵) is an isofibration of quasi- categories. So it suffices to show that the functor h∶ 풬풞푎푡 → 풞푎푡 carries isofibrations of quasi- categories to isofibrations of categories.²²

²⁰Lemma 1.3.2 does not apply since Fun(−, 퐵) is not cosmological. ²¹In this case, the converse does not hold, nor is it the case that a representably-defined isofibration of quasi-categories is necessarily an isofibration in the ∞-cosmos; consider the case of sliced ∞-cosmoi for instance. ²²Alternately, argue directly using Observation 1.4.3.

28 So let us now consider an isofibration 푝∶ 퐸 ↠ 퐵 between quasi-categories. By Corollary 1.1.16, ev- ery isomorphism 훽 in the homotopy category h퐵 of the quasi-category 퐵 is represented by a simplicial map 훽∶ 핀 → 퐵. By Definition 1.1.17, the lifting problem ퟙ 푒 퐸 훾 푝 핀 퐵 훽 can be solved, and the map 훾∶ 핀 → 퐸 so-produced represents a lift of the isomorphism from h퐵 to an isomorphism in h퐸 with domain 푒.  1.4.11. Convention (on “isofibrations” in homotopy 2-categories). Since the converse to Proposition 1.4.10 does not hold, there is a potential ambiguity when using the term “isofibration” to refer to a map in the homotopy 2-category of an ∞-cosmos. We adopt the convention that when we declare that a map in 픥풦 is an isofibration we always mean this is the stronger sense of defining an isofibration in 풦. This stronger condition gives us access to the 2-categorical lifting property of Proposition 1.4.10 but also to the many homotopical properties axiomatized in Definition 1.2.1, which guarantee that the strictly defined limits of 1.2.1(i) are automatically equivalence invariant constructions. The 1- and 2-cells in the homotopy 2-category from the terminal ∞-category 1 ∈ 풦 to a generic ∞-category 퐴 ∈ 풦 define the objects and morphisms in the homotopy category of 퐴. 1.4.12. Definition (homotopy category of an ∞-category). The homotopy category of an ∞-category 퐴 in an ∞-cosmos 풦 is defined to be the homotopy category of its underlying quasi-category, that is: h퐴 ≔ hFun(1, 퐴) ≔ h(퐹푢푛(1, 퐴)). As we shall discover, homotopy categories generally bear “derived” analogues of structures present at the level of ∞-categories. See the remark after the statement Proposition 2.1.7 for an early example of this. Exercises. 1.4.i. Exercise. Let 퐹∶ 풦 ⥲ ℒ be a cosmological biequivalence and let 퐴, 퐵 ∈ 풦. Prove that if 퐹퐴 ≃ 퐹퐵 in ℒ then 퐴 ≃ 퐵 in 풦 and ruminate on why this exercise is considerably easier than Exercise 1.3.ii). 1.4.ii. Exercise. (i) What is the homotopy 2-category of the ∞-cosmos 풞푎푡 of 1-categories? (ii) Prove that the nerve defines a 2-functor 풞푎푡 ↪ 픥풬풞푎푡 that is locally fully faithful.

1.4.iii. Exercise. Let 퐵 be an ∞-category in the ∞-cosmos 풦 and let 픥풦/퐵 denote the 2-category whose • objects are isofibrations 퐸 ↠ 퐵 in 풦 with codomain 퐵 • 1-cells are 1-cells in 픥풦 over 퐵 퐸 퐹

29 • 2-cells are 2-cells in 픥풦 over 퐵 푓 퐸 ⇓훼 퐹 푝 푔 푞 퐵

in the sense that 푞훼 = id푝. Argue that the homotopy 2-category 픥(풦/퐵) of the sliced ∞-cosmos has the same underlying 1-category but different 2-cells. How do these compare with the 2-cells of 픥풦/퐵?²³

²³A more systematic comparison will be given in Proposition 3.5.3. 30 CHAPTER 2

Adjunctions, limits, and colimits I

Heuristically, ∞-categories generalize ordinary 1-categories by adding in higher dimensional mor- phisms and weakening the composition law. The dream is that proofs establishing the theory of 1-categories similarly generalize to give proofs for ∞-categories, just by adding a prefix “∞-” every- where. In this chapter, we make this dream a reality — at least for a library of basic propositions concerning equivalences, adjunctions, limits, and colimits and the relationships between these no- tions. Recall that categories, functors, and natural transformations assemble into a 2-category 풞푎푡. Sim- ilarly, the ∞-categories, ∞-functors, and ∞-natural transformations in any ∞-cosmos assemble into a 2-category, namely the homotopy 2-category of the ∞-cosmos, introduced in §1.4. By Exercise 1.4.ii, 풞푎푡 can be regarded as a special case of a homotopy 2-category. In this chapter, we will use strict 2-categorical techniques to define adjunctions between ∞-categories and limits and colimits of diagrams valued in an ∞-category and prove that these notions interact in the expected ways. In the homotopy 2-category of categories, these recover the classical results from 1-category theory. As these proofs are equally valid in any homotopy 2-category, our arguments also establish the desired generalizations by simply appending the prefix “∞-.” 2.1. Adjunctions and equivalences In §1.4, we encountered the definition of an equivalence between a pair of objects in a 2-category. In the case where the ambient 2-category is the homotopy 2-category of an ∞-cosmos, we observed in Theorem 1.4.7 that the 2-categorical notion of equivalence precisely recaptures the notion of equiva- lence introduced in Definition 1.2.1 between ∞-categories in the full ∞-cosmos. In each of the exam- ples of ∞-cosmoi we have considered, the representably-defined equivalences in the ∞-cosmos coin- cide with the standard notion of equivalences between ∞-categories as presented in that particular model.¹ Thus, the 2-categorical notion of equivalence is the “correct” notion of equivalence between ∞-categories. Similarly, there is a standard definition of an adjunction between a pair of objects in a 2-category, which, when interpreted in the homotopy 2-category of ∞-categories, functors, and natural transfor- mations in an ∞-cosmos, will define the correct notion of adjunction between ∞-categories. 2.1.1. Definition (adjunction). An adjunction between ∞-categories is comprised of: • a pair of ∞-categories 퐴 and 퐵, • a pair of functors 푢∶ 퐴 → 퐵 and 푓∶ 퐵 → 퐴, • and a pair of natural transformations 휂∶ 1퐵 ⇒ 푢푓 and 휖∶ 푓푢 ⇒ 1퐴, called the unit and counit respectively,

¹For instance, as outlined in Digression 1.2.9, the equivalences in the ∞-cosmoi of Example 1.2.19 recapture the weak equivalences between fibrant-cofibrant objects in the usual model structure.

31 so that the triangle equalities hold:² 퐵 퐵 퐵 퐵 퐵 퐵 푢 푢 푢 푓 푓 푓 푓 ⇓휂 = = ⇓휂 푢 = = ⇓휖 푢 푓 ⇓휖 퐴 퐴 퐴 퐴 퐴 퐴 The functor 푓 is called the left adjoint and 푢 is called the right adjoint, a relationship that is denoted symbolically in text by writing 푓 ⊣ 푢 or in a displayed diagram such as³ 푓 퐴 ⊥ 퐵 푢 2.1.2. Digression (why this is the right definition). For readers who find Definition 2.1.1 implausible — perhaps too simple to be trusted — we offer a few words of justification. Firstly, the correct notion of adjunction between quasi-categories is well established, though the definition appearing in [36, §5.2] takes a quite different form. In Appendix F, we prove that in the ∞-cosmos of quasi-categories, our definition of adjunction precisely recovers Lurie’s. As explained in Part IV, each of the models of (∞, 1)-categories described in Example 1.2.19 “has the same category theory,” so Definition 2.1.1 agrees with the community consensus notion of adjunction between (∞, 1)-categories. But what about those ∞-cosmoi whose objects model (∞, 푛)- or (∞, ∞)-categories? For in- stance in the ∞-cosmos of complicial sets, the adjunctions defined in the homotopy 2-category are the “pseudo-style” adjunctions. While these are not the most general adjunctions that might be con- sidered — for instance, one could have (op)lax units and counits — they are an important class of adjunctions. One reason for the relevance of Definition 2.1.1 in all ∞-cosmoi is its formal properties vis-a-vis the related notion of equivalence, which Theorem 1.4.7 has established is morally “correct,” and with the notions of limits and colimits to be introduced. Finally, a reasonable objection is that Definition 2.1.1 appears too “low dimensional,” comprised of data found entirely in the homotopy 2-category and ignoring the higher dimensional morphisms in an ∞-cosmos. This deficiency will be addressed in Chapter 8, when we prove that any adjunction between ∞-categories extends to a homotopy coherent adjunction, and moreover such extensions are homotopically unique. The definition of an adjunction given in Definition 2.1.1 is “equational” in character: stated in terms of the objects, 1-cells, and 2-cells of a 2-category and their composites. Immediately:

2.1.3. Lemma. Adjunctions in a 2-category are preserved by any 2-functor.  Lemma 2.1.3 provides an easy source of examples of adjunctions between quasi-categories. The 2-functors underlying the cosmological functors of Example 1.3.7 then transfer adjunctions defined in one model of (∞, 1)-categories to adjunctions defined in each of the other models. 2.1.4. Example (adjunctions between 1-categories). Via the nerve embedding 풞푎푡 ↪ 픥풬풞푎푡, any ad- junction between 1-categories induces an adjunction between their nerves regarded as quasi-categories.

²The left-hand equality of pasting diagrams asserts the composition relation 푢휖 ⋅ 휂푢 = id푢 in the hom-category hFun(퐴, 퐵), while the right-hand equality asserts that 휖푓 ⋅ 푓휂 = id푓 in hFun(퐵, 퐴). ³Some authors contort adjunction diagrams so that the left adjoint is always on the left; we instead use the turnstile symbol “⊥” to indicate which adjoint is the left adjoint.

32 2.1.5. Example (adjunctions between topological categories). The homotopy coherent nerve defines a 2-functor 픑∶ 풦푎푛-풞푎푡 → 픥풬풞푎푡 from the 2-category of Kan complex enriched categories, simpli- cially enriched functors, and simplicial natural transformations, to the homotopy 2-category 픥풬풞푎푡. In this way, topologically enriched adjunctions define adjunctions between quasi-categories. 2.1.6. Remark. Topologically enriched adjunctions are relatively rare. More prevalent are “up-to- homotopy” topologically enriched adjunctions, such as those given by Quillen adjunctions between simplicial model categories. These also define adjunctions between quasi-categories, though the proof will have to wait until Part II. The preservation of adjunctions by 2-functors proves:

푓 2.1.7. Proposition. Given any adjunction 퐴 ⊥ 퐵 between ∞-categories then: 푢 (i) for any ∞-category 푋, 푓∗

Fun(푋, 퐴) ⊥ Fun(푋, 퐵)

푢∗ defines an adjunction between quasi-categories; (ii) for any ∞-category 푋,

푓∗

hFun(푋, 퐴) ⊥ hFun(푋, 퐵)

푢∗ defines an adjunction between categories; (iii) for any simplicial set 푈, 푓푈 퐴푈 ⊥ 퐵푈

푢푈 defines an adjunction between ∞-categories; (iv) and if the ambient ∞-cosmos is cartesian closed, then for any ∞-category 퐶,

푓퐶 퐴퐶 ⊥ 퐵퐶

푢퐶 defines an adjunction between ∞-categories. For instance, taking 푋 = 1 in (ii) yields a “derived” adjunction between the homotopy categories of the ∞-categories 퐴 and 퐵. Proof. Any adjunction 푓 ⊣ 푢 in the homotopy 2-category 픥풦 is preserved by the 2-functors Fun(푋, −)∶ 픥풦 → 픥풬풞푎푡, hFun(푋, −)∶ 픥풦 → 풞푎푡, (−)푈 ∶ 픥풦 → 픥풦, and (−)퐶 ∶ 픥풦 → 픥풦. 

33 2.1.8. Remark. There are contravariant versions of each of the adjunction-preservation results of Proposition 2.1.7, the first of which we explain in detail. Fixing the codomain variable of the functor- space at any ∞-category 퐶 ∈ 풦 defines a 2-functor Fun(−, 퐶)∶ 픥풦op → 픥풬풞푎푡 that is contravariant on 1-cells and covariant on 2-cells.⁴ Similarly, the cotensor or exponential 퐶(−) is contravariant on 1-cells and covariant on 2-cells.⁵ Such 2-functors preserve adjunctions, but exchange left and right adjoints: for instance, given 푓 ⊣ 푢 in 풦, we obtain an adjunction 푢∗

Fun(퐴, 퐶) ⊥ Fun(퐵, 퐶)

푓∗ between the functor- spaces. 2.1.9. Proposition. Adjunctions compose: given adjoint functors

푓′ 푓 푓푓′ 퐶 ⊥ 퐵 ⊥ 퐴 ⇝ 퐶 ⊥ 퐴 푢′ 푢 푢′푢 the composite functors are adjoint. ′ ′ ′ ′ ′ ′ Proof. Writing 휂∶ id퐵 ⇒ 푢푓, 휖∶ 푓푢 ⇒ id퐴, 휂 ∶ idc ⇒ 푢 푓 , and 휖 ∶ 푓 푢 ⇒ id퐵 for the respective units and counits, the pasting diagrams 퐶 퐶 퐶 ′ 푢′ 푓 ′ ′ 푓′ ⇓휂 푢′ ⇓휖 퐵 퐵 퐵 퐵 푢 푓 ⇓휂 푓 푢 ⇓휖 퐴 퐴 퐴 define the unit and counit of 푓푓′ ⊣ 푢′푢 so that the triangle equalities 퐶 퐶 퐶 퐶 퐶 퐶 푓′ ′ ′ 푢 ′ ′ 푢 ′ ′ ′ ′ 푓 ′ 푓′ ⇓휂 ⇓휖 푓푓 푓푓 ⇓휖 ⇓휂 푢′ 푢′푢 푢′푢 퐵 퐵 퐵 = = 퐵 퐵 퐵 = = 푓 푢 ⇓휂 푢 푓 ⇓휂 푓 ⇓휖 ⇓휖 푢 퐴 퐴 퐴 퐴 퐴 퐴 hold.  ⁴On a strict 2-category, the superscript “op” is used to signal that the 1-cells should be reversed but not the 2-cells, the superscript “co” is used to signal that the 2-cells should be reversed but not the 1-cells, and the superscript “coop” is used to signal that both the 1- and 2-cells should be reversed; see Chapter B. ⁵In the case of the simplicial cotensor, the domain can safely be restricted to the homotopy 2-category of quasi- categories or can be regarded as an analogously-defined homotopy 2-category of simplicial sets.

34 An adjoint to a given functor is unique up to natural isomorphism: 2.1.10. Proposition (uniqueness of adjoints). (i) If 푓 ⊣ 푢 and 푓′ ⊣ 푢, then 푓 ≅ 푓′. (ii) Conversely, if 푓 ⊣ 푢 and 푓 ≅ 푓′ then 푓′ ⊣ 푢. ′ ′ ′ ′ Proof. Writing 휂∶ id퐵 ⇒ 푢푓, 휖∶ 푓푢 ⇒ id퐴, 휂 ∶ idc ⇒ 푢푓 , and 휖 ∶ 푓 푢 ⇒ id퐵 for the respective units and counits, the pasting diagrams 퐵 퐵 퐵 퐵 푓 푓′ ′ ⇓휂 푢 ⇓휂 푢 ′ 푓′ ⇓휖 푓 ⇓휖 퐴 퐴 퐴 퐴 define 2-cells 푓 ⇒ 푓′ and 푓′ ⇒ 푓. The composites 푓 ⇒ 푓′ ⇒ 푓 and 푓′ ⇒ 푓 ⇒ 푓 are computed by pasting these diagrams together horizontally on one side or the other. Applying the triangle equalities for the adjunctions 푓 ⊣ 푢 and 푓′ ⊣ 푢 both composites are easily seen to be identities. Hence 푓 ≅ 푓′ as functors from 퐵 to 퐴. Part (ii) is left as Exercise 2.1.i.  We will make repeated use of the following standard 2-categorical result, which says that any equivalence in a 2-category can be promoted to an equivalence that also defines an adjunction: 2.1.11. Proposition (adjoint equivalences). Any equivalence can be promoted to an adjoint equivalence by modifying one of the 2-cells. That is, the invertible 2-cells in an equivalence can be chosen so as to satisfy the triangle equalities. Hence, if 푓 and 푔 are inverse equivalences then 푓 ⊣ 푔 and 푔 ⊣ 푓. Proof. Consider an equivalence comprised of functors 푓∶ 퐴 → 퐵 and 푔∶ 퐵 → 퐴 and invertible 2-cells 푓푔 퐴 ≅⇓훼 퐴 퐵 ≅⇓훽 퐵 푔푓 We will construct an adjunction 푓 ⊣ 푔 with unit 휂 ≔ 훼 by modifying 훽. The “triangle identity composite” 푓훼 훽푓 휙 ≔ 푓 푓푔푓 푓 is an isomorphism, though likely not an identity. Define

휙−1푔 훽 훽−1푓푔 푓훼−1푔 훽 휖 ≔ 푓푔 푓푔 id퐵 ≔ 푓푔 푓푔푓푔 푓푔 id퐵 This “corrects” the counit so that now the composite 휖푓 ⋅ 푓휂, displayed on the top of the diagram 푓푔푓 푓훼 휖푓 휙−1푔푓 푓 푓푔푓 훽푓 푓 푓훼 휙−1 휙 푓

35 which agrees with the bottom composite by “naturality of whiskering,” is the identity id푓. Now by another diagram chase, the other triangle composite 푔휖 ⋅ 휂푔 is an idempotent: 휂푔 푔휖 푔 푔푓푔 푔

휂푔 휂푔푓푔 휂푔 푔푓휂푔 푔푓푔휖 푔푓푔 푔푓푔푓푔 푔푓푔

푔휖푓푔 푔휖

푔푓푔 푔휖 푔

By cancelation, any idempotent isomorphism is the identity, proving that 푔휖 ⋅ 휂푔 = id푔.  One use of Proposition 2.1.10 is to show that adjunctions are equivalence invariant: 2.1.12. Proposition (equivalence-invariance of adjunctions). A functor 푢∶ 퐴 → 퐵 between ∞-categories admits a left adjoint if and only if, for any pair of equivalent ∞-categories 퐴′ ≃ 퐴 and 퐵′ ≃ 퐵, the equivalent functor 푢∶ 퐴′ → 퐵′ admits a right adjoint.

Proof. Exercise 2.1.ii.  As we will discover, all of ∞-category theory is equivalence invariant in this way. 2.1.13. Lemma. For any ∞-category 퐴, the “composition” functor

(−,iddom(−)) ⊥ 퐴ퟚ × 퐴ퟚ ∘ 퐴ퟚ (2.1.14) 퐴 ⊥

(idcod(−),−) admits left and right adjoints, which, respectively, “extend an arrow into a composable pair” by pairing it with the identities at its domain or its codomain. Proof. There is a dual adjunction in 풞푎푡 whose functors we describe using notation for simplicial operators introduced in 1.1.1; the full subcategory of 풞푎푡 spanned by the finite non-empty ordinals is isomorphic to 횫.

0 0 푠 퐴푠 ⊤ ⊥ ퟛ 1 ퟚ ퟛ 푑1 ퟚ ⇝ 퐴 퐴푑 퐴 ⊤ ⊥ 1 푠1 퐴푠 Any ∞-category 퐴 in an ∞-cosmos 풦 defines a 2-functor 퐴(−) ∶ 풞푎푡op → 픥풦 carrying the adjoint triple displayed above-left to the one displayed above-right. ퟛ ퟚ ퟚ Now we claim there is a trivial fibration 퐴 ⥲→퐴 ×퐴 퐴 constructed as follows. The pushout diagram of simplicial sets displayed below-left is carried by the simplicial cotensor 퐴(−) ∶ 풮풮푒푡op → 풦 to a pullback diagram displayed below-right; since the legs of the pushout square are monomorphisms,

36 the legs of the pullback square are isofibrations

1 Λ1[2] ퟚ 퐴Λ [2] 퐴ퟚ ⌟ ⌟ 푑1 ev0 ퟚ ퟚ ퟙ 퐴 ev 퐴 푑0 1 Lemma 1.2.10 tells us that the cotensor of the inner horn inclusion Λ1[2] ↪ ퟛ with the ∞-category 1 퐴 defines a trivial fibration 퐴ퟛ ⥲→퐴Λ [2] and the pullback square above left recognizes its codomain ퟛ ퟚ ퟚ as the desired ∞-category of “composable pairs.” Any section 푠 to 푞∶ 퐴 ⥲→퐴 ×퐴 퐴 can be made into an equivalence inverse. By Proposition 2.1.11, these functors are both left and right adjoints. Composing the adjunction 푞 ⊣ 푠 ⊣ 푞 with the adjunction constructed above defines the desired adjunction.  Note that the adjoint functors of (2.1.14) commute with the “endpoint evaluation” functors to 퐴 × 퐴. In fact, the units and counits can similarly be fibered over 퐴 × 퐴; see Example 3.5.12. Exercises. 2.1.i. Exercise. Prove Proposition 2.1.10(ii).

푓 2.1.ii. Exercise. Prove Proposition 2.1.12: given an adjunction 퐴 ⊥ 퐵 and equivalences 퐴 ≃ 퐴′ 푢 and 퐵 ≃ 퐵′ construct an adjunction between 퐴′ and 퐵′. 2.2. Initial and terminal elements Employing the tactic used to define the homotopy category of 퐴 in Definition 1.4.12, we use the terminal ∞-category 1 to probe inside the ∞-category 퐴. The objects 푎 ∈ h퐴 of the homotopy category of 퐴 were defined to be maps of ∞-categories 푎∶ 1 → 퐴, but to avoid the proliferation of the term “objects” we refer to maps 푎∶ 1 → 퐴 as elements of the ∞-category 퐴 instead. Before introducing limits and colimits of general diagram shapes, we warm up by defining initial and terminal elements in an ∞-category 퐴. 2.2.1. Definition (initial/terminal element). An initial element in an ∞-category 퐴 is a left adjoint to the unique functor !∶ 퐴 → 1, as displayed below left, while a terminal element in an ∞-category 퐴 is a right adjoint, as displayed below right. 푖 ! 1 ⊥ 퐴 1 ⊥ 퐴 ! 푡 Let us unpack the definition of an initial element; dual remarks apply to terminal elements. 2.2.2. Lemma (the minimal data required to present an initial element). To define an initial element in 퐴, it suffices to specify • an element 푖∶ 1 → 퐴 and

37 • a natural transformation 1 ! 푖 ⇓휖 퐴 퐴 so that the component 휖푖∶ 푖 ⇒ 푖 is the identity in h퐴. Proof. Proposition 1.4.5 demonstrates that the ∞-category 1 ∈ 풦 is terminal in the homotopy 2-category 픥풦. The 1-dimensional aspect of this universal property implies that 푖 defines a section of the unique map 퐴 → 1 and from the 2-dimensional aspects, we see that there exist no non-identity 2-cells with codomain 1. In particular, the unit of the adjunction 푖 ⊣! is necessarily an identity and one of the triangle equalities comes for free. The data enumerated above is what remains of Definition 2.1.1 in this setting.  Put more concisely, an initial element 푖 defines a left adjoint right inverse to the functor !∶ 퐴 → 1. Such adjunctions are studied more systematically in §B.4. In fact, it suffices to assume that the counit component 휖푖 is an isomorphism, not necessarily the identity; see Lemma B.4.1. 2.2.3. Remark. Applying the 2-functor Fun(푋, −)∶ 픥풦 → 픥풬풞푎푡 to an initial or terminal element of an ∞-category 퐴 ∈ 풦 yields adjunctions

푖∗ !

ퟙ ≅ Fun(푋, 1) ⊥ Fun(푋, 퐴) ퟙ ≅ Fun(푋, 1) ⊥ Fun(푋, 퐴)

! 푡∗ Via the isomorphisms Fun(푋, 1) ≅ ퟙ that express the universal property of the terminal ∞-category 1, we see that initial or terminal elements of 퐴 define initial or terminal elements of the functor-space Fun(푋, 퐴), namely the composite functors 푋 ! 1 푖 퐴 or 푋 ! 1 푡 퐴 . In particular, initial or terminal elements are representably initial or terminal at the level of the ∞-cosmos. This representable universal property is also captured at the level of the homotopy 2-category. The next lemma shows that the initial element 푖∶ 1 → 퐴 is initial among all generalized elements 푓∶ 푋 → 퐴 in the following precise sense. 2.2.4. Lemma. An element 푖∶ 1 → 퐴 is initial if and only if for all 푓∶ 푋 → 퐴 there exists a unique 2-cell with boundary 1 ! 푖 ⇓∃! 푋 퐴 푓

38 Proof. If 푖∶ 1 → 퐴 is initial, then the adjunction of Definition 2.2.1 is preserved by the 2-functor hFun(푋, −)∶ 픥풦 → 풞푎푡, defining an adjunction

푖∗

ퟙ ≅ hFun(푋, 1) ⊥ hFun(푋, 퐴)

! Via the isomorphism hFun(푋, 1) ≅ ퟙ, this adjunction proves that the element 푖!∶ 푋 → 퐴 is initial in hFun(푋, 퐴) and thus has the universal property of the statement. Conversely, if 푖∶ 1 → 퐴 satisfies the universal property of the statement, applying this to the generic element of 퐴 (the identity map id퐴 ∶ 퐴 → 퐴) easily produces the data of Lemma 2.2.2.  2.2.5. Remark. Lemma 2.2.4 says that initial elements are representably initial in the homotopy 2-cat- egory. Specializing the generalized elements to ordinary elements, we see that initial and terminal elements in 퐴 respectively define initial and terminal elements in the homotopy category h퐴. 2.2.6. Lemma. If 퐴 has an initial element and 퐴 ≃ 퐴′ then 퐴′ has an initial element and these elements are preserved up to isomorphism by the equivalences. Proof. By Proposition 2.1.11, the equivalence 퐴 ≃ 퐴′ can be promoted to an adjoint equivalence, which can immediately be composed with the adjunction characterizing an initial element 푖 of 퐴: 푖 ∼ 1 ⊥ 퐴 ⊥ 퐴′

! ∼ The composite adjunction provided by Proposition 2.1.9 proves that the image of 푖 defines an initial element of 퐴′, which by construction is preserved by the equivalence 퐴 ⥲ 퐴′. To see that the equivalence 퐴′ ⥲ 퐴 also preserves initial elements, we can use the invertible 2-cells of the equivalence to see that 푖 is isomorphic to the image of the image of 푖 in 퐴′. In case the initial objects in mind are not the ones being considered here, we can appeal to the uniqueness of initial elements proven in Exercise 2.2.ii.  Exercises. 2.2.i. Exercise. Prove that initial elements are preserved by left adjoints and terminal elements are preserved by right adjoints. 2.2.ii. Exercise. Prove that any two initial elements in an ∞-category 퐴 are isomorphic in h퐴. 2.3. Limits and colimits Our aim is now to introduce limits and colimits of diagram valued inside an ∞-category 퐴 in some ∞-cosmos. We will consider two varieties of diagrams: • In a generic ∞-cosmos 풦, we shall consider diagrams indexed by a simplicial set 퐽 and valued in an ∞-category 퐴.

39 • In a cartesian closed ∞-cosmos 풦, we shall also consider diagram indexed by an ∞-category 퐽 and valued in an ∞-category 퐴.⁶ 2.3.1. Definition (diagram ∞-categories). For a simplicial set 퐽 — or possibly, in the case of a cartesian closed ∞-cosmos, an ∞-category 퐽 — and an ∞-category 퐴, we refer to 퐴퐽 as the ∞-category of 퐽-shaped diagrams in 퐴. Both constructions define bifunctors 풮풮푒푡op × 풦 풦 풦op × 풦 풦 (퐽, 퐴) 퐴퐽 (퐽, 퐴) 퐴퐽 In either indexing context, there is a terminal object 1 with the property that 퐴1 ≅ 퐴 for any ∞-category 퐴. Restriction along the unique map !∶ 퐽 → 1, induces the constant diagram functor Δ∶ 퐴 → 퐴퐽. We are deliberately conflating the notation for ∞-categories of diagrams indexed by a simplicial set or by another ∞-category because all of the results we will prove in Part I about the former case will also apply to the latter. For economy of language, we refer only to simplicial set indexed diagrams for the remainder of this section. 2.3.2. Definition. An ∞-category 퐴 admits all colimits of shape 퐽 if the constant diagram functor Δ∶ 퐴 → 퐴퐽 admits a left adjoint, while 퐴 admits all limits of shape 퐽 if the constant diagram functor admits a right adjoint: colim ⊥ 퐴퐽 Δ 퐴 ⊥ lim 2.3.3. Warning. Limits or colimits of set-indexed diagrams — the case where the indexing shape is a coproduct of the terminal object 1 indexed by a set 퐽 — are called products or coproducts, respectively. 퐽 ∏ In this case the ∞-category of diagrams itself decomposes as a product 퐴 ≅ 퐽 퐴. As the functor hFun(1,−) 픥풦 풞푎푡

퐴 h퐴 that carries an ∞-category to its homotopy category preserves products, when 퐽 is a set there is a chain of isomorphisms h 퐽 h ∏ ∏ h h 퐽 (퐴 ) ≅ ( 퐽 퐴) ≅ 퐽 퐴 ≅ ( 퐴) Thus, in this special case the adjunctions of Definition 2.3.2 that define products or coproducts in an ∞-category descend to the adjunctions that define products or coproducts in its homotopy category. However, this argument does not extend to more general limit or colimit notions, and such ∞-cat- egorical limits or colimits are generally not limits or colimits in the homotopy category.⁷ In §3.2, we

⁶In Proposition 13.3.4 proven in Part IV, we shall discover that in the case of the ∞-cosmoi of (∞, 1)-categories, there is no essential difference between these notions: in 풬풞푎푡 they are tautologically the same, and in all biequivalent ∞-cosmsoi the ∞-category of diagrams indexed by an ∞-category 퐴 is equivalent to the ∞-category of diagrams indexed by its underlying quasi-category, regarded as a simplicial set. ⁷This sort of behavior is expected in abstract homotopy theory: homotopy limits and colimits are not generally limits or colimits in the homotopy category. 40 shall see that the homotopy category construction fails to preserve more complicated cotensors, even in the relatively simple case of 퐽 = ퟚ. The problem with Definition 2.3.2 is that it is insufficiently general: many ∞-categories will have certain, but not all, limits of diagrams of a particular indexing shape. So it would be desirable to re-express Definition 2.3.2 in a form that allows us to define the limit of a single diagram 푑∶ 1 → 퐴퐽 or of a family of diagrams. To achieve this, we make use of the following 2-categorical notion that op-dualizes the more familiar absolute extension diagrams.

푔 푓 2.3.4. Definition (absolute lifting diagrams). Given a cospan 퐶 퐴 퐵 in a 2-category, an absolute left lifting of 푔 through 푓 is given by a 1-cell and 2-cell as displayed below-left

퐵 푋 푏 퐵 푋 푏 퐵 ℓ ∃!⇑휁 푓 푐 ⇑휒 푓 푐 ℓ 푓 ⇑휆 = ⇑휆 퐶 푔 퐴 퐶 푔 퐴 퐶 푔 퐴 so that any 2-cell as displayed above-center factors uniquely through (ℓ, 휆) as displayed above-right. Dually, an absolute right lifting of 푔 through 푓 is given by a 1-cell and 2-cell as displayed below-left

퐵 푋 푏 퐵 푋 푏 퐵 푟 ∃!⇓휁 푓 푐 ⇓휒 푓 푐 푟 푓 ⇓휌 = ⇓휌 퐶 푔 퐴 퐶 푔 퐴 퐶 푔 퐴 so that any 2-cell as displayed above-center factors uniquely through (푟, 휌) as displayed above-right. The adjectives “left” and “right” refer to the handedness of the adjointness of these construc- tions: left and right liftings respectively define left and right adjoints to the composition functor 푓∗ ∶ hFun(퐶, 퐵) → hFun(퐶, 퐴), with the 2-cells defining the components of the unit and counit of these adjunctions, respectively, at the object 푔. The adjective “absolute” refers to the following stability property. 2.3.5. Lemma. Absolute left or right lifting diagrams are stable under restriction of their domain object: if (ℓ, 휆) defines an absolute left lifting of 푔 through 푓, then for any 푐∶ 푋 → 퐶, the restricted diagram (ℓ푐, 휆푐) defines an absolute left lifting of 푔푐 through 푓. 퐵 ℓ 푓 ⇑휆

푋 푐 퐶 푔 퐴

Proof. Exercise 2.3.i.  Units and counits of adjunctions provide important examples of absolute left and right lifting diagrams respectively:

41 2.3.6. Lemma. A 2-cell 휂∶ id퐵 ⇒ 푢푓 defines the unit of an adjunction 푓 ⊣ 푢 if and only if (푓, 휂) defines an absolute left lifting diagram, displayed below-left. 퐴 퐵 푓 푢 푢 푓 ⇑휂 ⇓휖 퐵 퐵 퐴 퐴

Dually a 2-cell 휖∶ 푓푢 ⇒ id퐴 defines the counit of an adjunction if and only if (푢, 휖) defines an absolute right lifting diagram, displayed above-right. Proof. We prove the universal property of the counit. Given a 2-cell 훼∶ 푓푏 ⇒ 푎 as displayed below left 푋 푏 퐵 푋 푏 퐵 ⇓훽 푎 ⇓훼 푓 = 푎 푢 푓 ⇓휖 퐴 퐴 퐴 퐴 there exists a unique transpose 훽∶ 푏 ⇒ 푢푎 as displayed above-right across the induced adjunction

푓∗

hFun(푋, 퐵) ⊥ hFun(푋, 퐴)

푢∗ between the hom-categories of the homotopy 2-category; see Proposition 2.1.7(ii). From right to left, transposes are composed by pasting with the counit; hence the left-hand side above equals the right- hand side. The converse is left as Exercise 2.3.ii.  In particular, the unit of the adjunction colim ⊣ Δ of Definition 2.3.2 defines an absolute left lifting diagram 퐴 colim Δ ⇑휂 퐴퐽 퐴퐽 By Lemma 2.3.5, this universal property is retained upon restricting to any subobject of the ∞-category of diagrams. This motivates the following definitions:. 2.3.7. Definition. A colimit of a family of diagrams 푑∶ 퐷 → 퐴퐽 indexed by 퐽 in an ∞-category 퐴 is given by an absolute left lifting diagram 퐴 colim Δ ⇑휂 퐷 퐴퐽 푑 comprised of a colimit functor colim∶ 퐷 → 퐴 and a colimit cone 휂∶ 푑 ⇒ Δ colim.

42 Dually, a limit of a family of diagrams 푑∶ 퐷 → 퐴퐽 indexed by 퐽 in an ∞-category 퐴 is given by an absolute right lifting diagram 퐴 lim Δ ⇓휖 퐷 퐴퐽 푑 comprised of a limit functor lim∶ 퐷 → 퐴 and a limit cone 휖∶ Δ lim ⇒ 푑. 2.3.8. Remark. If 퐴 has all limits of shape 퐽, then Lemma 2.3.5 implies that any family of diagrams 푑∶ 퐷 → 퐴퐽 has a limit, defined by evaluating the limit functor lim∶ 퐴퐽 → 퐴 at 푑, i.e., by restricting lim along 푑. In certain ∞-cosmoi, such as 풬풞푎푡, if every diagram 푑∶ 1 → 퐴퐽 has a limit, then 퐴 has all 퐽-indexed limits, because the quasi-category 1 generates the ∞-cosmos of quasi-categories in a suitable sense, but this result is not true for all ∞-cosmoi. For example, a 2-categorical lemma enables general proof of a classical result from homotopy the- ory that computes geometric realizations of “split” simplicial objects. Before proving this, we introduce the indexing shapes involved. 2.3.9. Definition (split augmented (co)simplicial objects). Recall 횫 is the simplex category of finite non-empty ordinals and order-preserving maps introduced in 1.1.1. It defines a full subcategory of a category 횫+ which freely appends the empty ordinal “[−1]” as an initial object. This in turn defines −1 a wide subcategory of a category 횫⊥, which adds an “extra” degeneracy 휎 ∶ [푛 + 1] ↠ [푛] between each pair of consecutive ordinals, including 휎−1 ∶ [0] ↠ [−1]. Diagrams indexed by 횫 ⊂ 횫+ ⊂ 횫⊥ are respectively called cosimplicial objects, coaugmented cosimplicial objects, and split coaugmented cosimplicial objects, if they are covariant, and simplicial objects, augmented simplicial objects, and split augmented simplicial objects, if they are contravariant. op A simplicial object 푑∶ 1 → 퐴횫 in an ∞-category 퐴 admits an augmentation or admits a split- ting, if it lifts along the restriction functors

op 퐴횫⊥

op 퐴횫+

op 1 퐴횫 푑 The family of simplicial objects admitting an augmentation and splitting is then represented by the op op generic element 퐴횫⊥ ↠ 퐴횫 . The following proposition proves that for any simplicial object admitting a splitting, the augmentation defines the colimit cone; dual results apply to colimits of split cosimplicial objects. The limit and colimit cones are defined by cotensoring with the unique natural transformation 횫 횫+ ⇑휈 (2.3.10) ! [−1] ퟙ that exists because [−1]∶ ퟙ → 횫+ is initial; see Lemma 2.2.4. 43 2.3.11. Proposition (geometric realizations). Let 퐴 be any ∞-category. For every cosimplicial object in 퐴 that admits a coaugmentation and a splitting, the coaugmentation defines a limit cone. Dually, for every simplicial object in 퐴 that admits an augmentation and a splitting, the augmentation defines a colimit cone. That is, there exist absolute right and left lifting diagrams 퐴 퐴 ev[−1] ev[−1] Δ op Δ ⇓퐴휈 ⇑퐴휈 op op op 횫⊥ 횫+ 횫 횫⊥ 횫+ 횫 퐴 res 퐴 res 퐴 퐴 res 퐴 res 퐴 in which the 2-cells are obtained as restrictions of the cotensor of the 2-cell (2.3.10) with 퐴. Moreover, such limits and colimits are absolute, preserved by any functor 푓∶ 퐴 → 퐵 of ∞-categories.

Proof. By Example B.5.2, the inclusion 횫 ↪ 횫⊥ admits a right adjoint, which can automatically be regarded as an adjunction “over” ퟙ since ퟙ is 2-terminal. The initial element [−1] ∈ 횫+ ⊂ 횫⊥ defines a left adjoint to the constant functor:

⊤ 횫 횫+ 횫⊥ [−1] ! ⊥ ! ퟙ with the counit of this adjunction (2.3.10) defining the colimit cone under the constant functor at the initial element. These adjunctions are preserved by the 2-functor 퐴(−) ∶ 풞푎푡op → 픥풦, yielding a diagram ! 퐴 ev[−1] ⊥ Δ ⇓퐴휈 횫⊥ 횫+ 횫 퐴 res 퐴 res 퐴 ⊤ By Lemma B.5.1 these adjunctions witness the fact that evaluation at [−1] and the 2-cell from (2.3.10) define an absolute right lifting of the canonical restriction functor 퐴횫⊥ → 퐴횫 through the constant diagram functor, as claimed. The colimit case is proven similarly by applying the composite 2-functor (−)op (−) 풞푎푡coop 풞푎푡op 퐴 픥풦 Finally, by the 2-functoriality of the simplicial cotensor, any 푓∶ 퐴 → 퐵 commutes with the 2-cells defined by cotensoring with 휈 or its opposite. 푓 퐴 퐵 퐵 ev[−1] ev[−1] Δ Δ = Δ ⇓퐴휈 ⇓퐴휈 횫⊥ 횫+ 횫 횫 횫⊥ 횫⊥ 횫+ 횫 퐴 res 퐴 res 퐴 퐵 퐴 퐵 res 퐵 res 퐵 푓횫 푓횫⊥ Since the right-hand composite is an absolute right lifting diagram, so is the left-hand composite, which says that 푓∶ 퐴 → 퐵 preserves the totalization of any split coaugmented cosimplicial object in 퐴. 

44 Exercises. 2.3.i. Exercise. Prove Lemma 2.3.5. 2.3.ii. Exercise. Re-prove the forwards implication of Lemma 2.3.6 by following your nose through a pasting diagram calculation and prove the converse similarly. 2.4. Preservation of limits and colimits Famously, right adjoint functors preserve limits and left adjoints preserve colimits. Our aim in this section is to prove this in the ∞-categorical context and exhibit the first examples of initial and final functors, in the sense introduced in Definition 2.4.6 below. The commutativity of right adjoints and limits is very easily established in the case where the ∞-categories in question admit all limits of a given shape: under these hypotheses, the limit functor is right adjoint to the constant diagram functor, which commutes with all functors between the base ∞-categories. Since the left adjoints commute, the uniqueness of adjoints (Proposition 2.1.10) implies that the right adjoints do as well. This outline gives a hint for Exercise 2.4.i. A slightly more delicate argument is needed in the general case, involving, say the preservation of a single limit diagram without a priori assuming that any other limits exist. This follows easily from a general lemma about composition and cancelation of absolute lifting diagrams: 2.4.1. Lemma (composition and cancelation of absolute lifting diagrams). Suppose (푟, 휌) defines an ab- solute right lifting of ℎ through 푓: 퐶 푔 푠 ⇓휎 퐵 푟 푓 ⇓휌 퐷 퐴 ℎ Then (푠, 휎) defines an absolute right lifting of 푟 through 푔 if and only if (푠, 휌 ⋅ 푓휎) defines an absolute right lifting of ℎ through 푓푔.

Proof. Exercise 2.4.ii.  2.4.2. Theorem (RAPL/LAPC). Right adjoints preserve limits and left adjoints preserve colimits. The usual argument that right adjoints preserve limits proceeds like this: a cone over a 퐽-shaped diagram in the image of 푢 transposes across the adjunction 푓퐽 ⊣ 푢퐽 to a cone over the original diagram, which factors through the designated limit cone. This factorization transposes across the adjunction 푓 ⊣ 푢 to define the sought-for unique factorization through the image of the limit cone. The use of absolute lifting diagrams to express the universal properties of limits and colimits (Definition 2.3.7) and adjoint transposition (Lemma 2.3.6) allows us to economize on the usual proof by suppressing consideration of a generic test cone that must be shown to uniquely factor through the limit cone. Proof. We prove that right adjoints preserve limits. By taking “co” duals the same argument demonstrates that left adjoints preserve colimits.

45 Suppose 푢∶ 퐴 → 퐵 admits a left adjoint 푓∶ 퐵 → 퐴 with unit 휂∶ id퐵 ⇒ 푢푓 and counit 휖∶ 푓푢 ⇒ id퐴. Our aim is to show that any absolute right lifting diagram as displayed below-left is carried to an absolute right lifting diagram as displayed below-right: 퐴 퐴 푢 퐵 lim Δ lim Δ Δ (2.4.3) ⇓휌 ⇓휌 퐷 퐴퐽 퐷 퐴퐽 퐵퐽 푑 푑 푢퐽 The cotensor (−)퐽 ∶ 픥풦 → 픥풦 carries the adjunction 푓 ⊣ 푢 to an adjunction 푓퐽 ⊣ 푢퐽 with unit 휂퐽 and counit 휖퐽. In particular, by Lemma 2.3.6, (푢퐽, 휖퐽) defines an absolute right lifting of the identity through 푓퐽, which is then preserved by restriction along the functor 푑. Thus, by Lemma 2.4.1, the diagram on the right of (2.4.3) is an absolute right lifting diagram if and only if the pasted composite displayed below-left 퐴 푢 퐵 퐵 퐵 lim Δ Δ 푢 푓 푓 ⇓휌 푢 lim ⇓휖 lim 퐽 ⇓휖 퐷 퐴퐽 푢 퐵퐽 = 퐴 퐴 = 퐴 푑 퐽 ⇓휖 퐽 lim 푓 Δ Δ lim Δ ⇓휌 ⇓휌 퐴퐽 퐷 퐴퐽 퐴퐽 퐷 퐴퐽 푑 푑 defines an absolute right lifting diagram. Pasting the 2-cell on the right of (2.4.3) with the counit in this way amounts to transposing the cone under 푢 lim across the adjunction 푓퐽 ⊣ 푢퐽. We’ll now observe that this transposed cone factors through the limit cone (lim, 휌) in a canonical way. From the 2-functoriality of the simplicial cotensor in its exponent variable, 푓퐽Δ = Δ푓 and 휖퐽Δ = Δ휖. Hence, the pasting diagram displayed above-left equals the one displayed above-center and hence also, by naturality of whiskering, the diagram above-right.⁸ This latter diagram is a pasted composite of two absolute right lifting diagrams, and is hence an absolute right lifting diagram in its own right; this universal property says that any cone over 푑 whose summit factors through 푓 factors uniquely through the limit cone (lim, 휌) through a map that then transposes along the adjunction 푓 ⊣ 푢. Hence all of the diagrams in the statement are absolute right lifting diagrams, including in particular the one on the right-hand side of (2.4.3).  By combining Theorem 2.4.2 with Proposition 2.1.11, we have immediately that: 2.4.4. Corollary. Equivalences preserve limits and colimits.  We can also prove a more refined result: 2.4.5. Proposition. If 퐴 ≃ 퐵, then any family of diagrams in 퐴 admitting a limit or colimit in 퐵 also admits a limit or colimit in 퐴 that is preserved by the equivalence. Proof. By Proposition 2.1.11 the equivalence 퐵 ⥲ 퐴 is both left and right adjoint to its equiva- lence inverse, preserving both limits and colimits of the composite family of diagrams 퐷 → 퐴퐽 ⥲ 퐵퐽. Via the invertible 2-cells of the equivalence 퐴퐽 ≃ 퐵퐽 constructed by applying (−)퐽 ∶ 픥풦 → 픥풦 to the equivalence 퐴 ≃ 퐵, the preserved diagram 퐷 → 퐴퐽 ⥲ 퐵퐽 ⥲ 퐴퐽 is isomorphic to the original family

⁸By naturality of whiskering, 휖퐽푑 ⋅ 푓퐽푢퐽휌 = 휌 ⋅ 휖퐽Δ lim, and since 휖퐽Δ = Δ휖, this composite equals 휌 ⋅ Δ휖 lim. 46 of diagrams 퐷 → 퐴퐽. Thus, we conclude that a family of diagrams in 퐴 has a limit or colimit if and only if its image in an equivalent ∞-category 퐵 does, and such limits and colimits are preserved by the equivalence.  The following definition makes sense between small quasi-categories or equally between arbitrary ∞-categories in a cartesian closed ∞-cosmos. 2.4.6. Definition (initial and final functor). A functor 푘∶ 퐼 → 퐽 is final if 퐽-indexed colimits exist if and only if, and in such cases coincide with, the restricted 퐼-indexed colimits. That is, 푘∶ 퐼 → 퐽 is final if and only if for any ∞-category 퐴, the square 퐴 퐴 Δ Δ 퐴퐽 퐴퐼 퐴푘 preserves and reflects all absolute left lifting diagrams. Dually a functor 푘∶ 퐼 → 퐽 is initial if this square preserves and reflects all absolute right lifting diagrams: or informally, if a generalized element defines a limit of a 퐽-indexed diagram if and only if it defines a limit of the restricted 퐼-indexed diagrams. Historically, final functors were called “cofinal” with no obvious name for the dual notion. Our preferred terminology hinges on the following mnemonic: the inclusion of an initial element defines an initial functor, while the inclusion of a terminal (aka final) element defines a final functor. These results are special cases of a more general result we now establish, using exactly the same tactics as taken to prove Theorem 2.4.2. 2.4.7. Proposition. Left adjoints define initial functors and right adjoints define final functors.

Proof. If 푘 ⊣ 푟 with unit 휂∶ id퐼 ⇒ 푟푘 and counit 휖∶ 푘푟 ⇒ id퐽, then cotensoring into 퐴 yields an adjunction 퐴푟 퐴퐽 ⊥ 퐴퐼 퐴푘 휂 푘 푟 휖 푟 푘 with unit 퐴 ∶ id퐴퐼 ⇒ 퐴 퐴 and counit 퐴 ∶ 퐴 퐴 ⇒ id퐴퐽. To prove that 푘 is initial we must show that for any (푑, lim, 휌) as displayed below-left, 퐴 퐴 퐴 lim Δ lim Δ Δ ⇓휌 ⇓휌 퐷 퐴퐽 퐷 퐴퐽 퐴퐼 푑 푑 퐴푘 the left-hand diagram is an absolute right lifting diagram if and only if the right-hand diagram is an absolute right lifting diagram.

47 By Lemmas 2.3.6 and 2.4.1, the right-hand diagram is an absolute right lifting diagram if and only if the pasted composite displayed below-left 퐴 퐴 퐴 lim Δ Δ lim Δ ⇓휌 ⇓휌 푘 퐷 퐴퐽 퐴 퐴퐼 = 퐷 퐴퐽 푑 푑 ⇓퐴휖 퐴푟 퐴퐽 푟 휖 is also an absolute right lifting diagram. On noting that 퐴 Δ = Δ and 퐴 Δ = idΔ, the left-hand side reduces to the right-hand side, which proves the claim.  Exercises. 2.4.i. Exercise. Show that any left adjoint 푓∶ 퐵 → 퐴 between ∞-categories admitting all 퐽-shaped colimits preserves them in the sense that the square of functors

푓퐽 퐵퐽 퐴퐽 colim ≅ colim 퐵 퐴 푓 commutes up to isomorphism. 2.4.ii. Exercise. Prove Lemma 2.4.1. 2.4.iii. Exercise. Given a proof of Theorem 2.4.2 that does not appeal to Lemma 2.4.1 by directly verifying that the diagram on the right of (2.4.3) is an absolute right lifting diagram. 2.4.iv. Exercise. Use Lemma 2.4.1 to give a new proof of Proposition 2.1.9.

48 CHAPTER 3

Weak 2-limits in the homotopy 2-category

In Chapter 2, we introduced adjunctions between ∞-categories and limits and colimits of dia- grams valued within an ∞-category through definitions that are particularly expedient for establishing the expected interrelationships. But neither 2-categorical definition clearly articulates the universal properties of these notions. Definition 2.3.7 does not obviously express the expected universal prop- erty of the limit cone: namely, that the limit cone over a diagram 푑 defines the terminal element of the ∞-category of cones over 푑, yet-to-be-defined. Nor have we understood how an adjunction 푓 ⊣ 푢 induces an equivalence on as-yet-to-be-defined hom-spaces Hom퐴(푓푏, 푎) ≃ Hom퐵(푏, 푢푎) for a pair of generalized elements.¹ In this section, we make use of the completeness axiom in the definition of an ∞-cosmos to exhibit a general construction that will specialize to give a definition of this ∞-category of cones and also specialize to define these hom-spaces. This construction will also permit us to rep- resent a functor between ∞-categories as an ∞-category, in dual “left” or “right” fashions. Using this, we can redefine an adjunction to consist of a pair of functors 푓∶ 퐵 → 퐴 and 푢∶ 퐴 → 퐵 so that the left representation of 푓 is equivalent to the right representation of 푢 over 퐴 × 퐵. Our vehicle for all of these new definitions is the comma ∞-category associated to a cospan

Hom퐴(푓, 푔) 푔 푓 퐶 퐴 퐵 ⇝ (푝1,푝0) 퐶 × 퐵 Our aim in this chapter is to develop the general theory of comma constructions from the point of view of the homotopy 2-category of an ∞-cosmos. Our first payoff for this work will occur in Chapter 4 where we study the universal properties of adjunctions, limits, and colimits in the sense of the ideas just outlined. The comma construction will also provide the essential vehicle for establishing the model-independence of the categorical notions we will introduce throughout this text. There is a standard definition of a “comma object” that can be stated in any strict 2-category, defined as a particular weighted limit (see Example 7.1.17). Comma ∞-categories do not satisfy this universal property in the homotopy 2-category, however. Instead, they satisfy a somewhat peculiar “weak” variant of the usual 2-categorical universal property that to our knowledge has not been dis- covered elsewhere in the categorical or homotopical literature, expressed in terms of something we call a smothering functor. To introduce these universal properties in a concrete rather than abstract framework, we start in §3.1 by considering smothering functors involving homotopy categories of quasi-categories. The intrepid and impatient reader may skip the entirety of §3.1 if they wish to in- stead first encounter these notions in their full generality.

¹A 2-categorical version of this result — exhibiting a bijection between sets of 2-cells — appears as Lemma 2.3.6, but in an ∞-category we’d hope for a similar equivalence of hom-spaces.

49 3.1. Smothering functors Let 푄 be a quasi-category. Recall from Lemma 1.1.12 that its homotopy category h푄 has • the elements 1 → 푄 of 푄 as its objects; • the set of homotopy classes of 1-simplices of 푄 as its arrows, where parallel 1-simplices are homo- topic just when they bound a 2-simplex with the remaining outer edge degenerate; and • a composition relation if and only if any chosen 1-simplices representing the three arrows bound a 2-simplex. For a 1-category 퐽, it is well-known in classical homotopy theory that the homotopy category of dia- grams h(푄퐽) is not equivalent to the category (h푄)퐽 of diagrams in the homotopy category — except in very special cases, such as when 퐽 is a set (see Warning 2.3.3). The objects of h(푄퐽) are homotopy coherent diagrams of shape 퐽 in 푄, while the objects of (h푄)퐽 are mere homotopy commutative diagrams. There is, however, a canonical comparison functor h(푄퐽) → (h푄)퐽 defined by applying h∶ 풬풞푎푡 → 풞푎푡 to the evaluation functor 푄퐽 × 퐽 → 푄 and then transposing; a homotopy coherent diagram is in particular homotopy commutative. Our first aim in this section is to better understand the relationship between the arrows in the homotopy category h푄 and what we’ll refer to as the arrows of 푄, namely, the 1-simplices in the quasi-category. To study this we’ll be interested in the quasi-category in which the arrows of 푄 live as elements, namely 푄ퟚ, where ퟚ = Δ[1] is the nerve of the “walking” arrow. Our notation deliberately imitates the notation commonly used for the category of arrows: if 퐶 is a 1-category, then 퐶ퟚ is the category whose objects are arrows in 퐶 and whose morphisms are commutative squares, regarded as a morphism from the arrow displayed vertically on the left-hand side to the arrow displayed vertically on the right-hand side. This notational conflation suggests our first motivating question: how does the homotopy category of 푄ퟚ relate to the category of arrows in the homotopy category of 푄?

3.1.1. Lemma. The canonical functor h(푄ퟚ) → (h푄)ퟚ is • surjective on objects, • full, and • conservative, i.e., reflects invertibility of morphisms, but not injective on objects nor faithful. Proof. Surjectivity on objects asserts that every arrow in the homotopy category h푄 is repre- sented by a 1-simplex in 푄. This is the conclusion of Exercise 1.1.ii(iii) which outlines the proof of Lemma 1.1.12. To prove fullness, consider a commutative square in h푄 and choose arbitrary 1-simplices repre- senting each morphism and their common composite: • ℎ • ℓ 푓 푔 • • 푘 By Lemma 1.1.12, every composition relation in h푄 is witnessed by a 2-simplex in 푄; choosing a pair of such 2-simplices defines a diagram ퟚ → 푄ퟚ, which represents a morphism from 푓 to 푔 in h(푄ퟚ), proving fullness.

50 Surjectivity on objects and fullness of the functor h(푄ퟚ) → h(푄)ퟚ are special properties having to do with the diagram shape ퟚ. Conservativity is much more general as a consequence of the second statement of Corollary 1.1.21.  The properties of the canonical functor h(푄ퟚ) → h(푄)ퟚ will reappear frequently so are worth giving a name: 3.1.2. Definition. A functor 푓∶ 퐴 → 퐵 between 1-categories is smothering if it is surjective on objects, full, and conservative. That is, a functor is smothering if and only if it has the right lifting property with respect to the set of functors: ⎧ ⎫ ⎪ ⎪ ⎪ ∅ ퟙ + ퟙ ퟚ ⎪ ⎨⎪ ⎬⎪ ⎪ , , ⎪ ⎪ ⎪ ⎩⎪ ⎭⎪ ퟙ ퟚ 핀 Some elementary properties of smothering functors are established in Exercise 3.1.i. The most important of these is: 3.1.3. Lemma. Each fibre of a smothering functor is a non-empty connected groupoid. Proof. Suppose 푓∶ 퐴 → 퐵 is smothering and consider the fiber 퐴 퐴 푏 ⌟ 푓 ퟙ 푏 퐵 over an object 푏 of 퐵. By surjectivity on objects, the fiber is non-empty. Its morphisms are defined to be arrows between objects in the fiber of 푏 that map to the identity on 푏. By fullness, any two objects in the fiber are connected by a morphism, indeed, by morphisms pointing in both directions. By conservativity, all the morphisms in the fiber are necessarily invertible.  The argument used to prove Lemma 3.1.1 generalizes to: 3.1.4. Lemma. If 퐽 is a 1-category that is free on a reflexive directed graph and 푄 is a quasi-category, then the canonical functor h(푄퐽) → (h푄)퐽 is smothering.

Proof. Exercise 3.1.ii.  Cotensors are one of the simplicial limit constructions enumerated in axiom 1.2.1(i). Other limit constructions listed there also give rise to smothering functors. 3.1.5. Lemma. For any pullback diagram of quasi-categories in which 푝 is an isofibration

퐸 ×퐵 퐴 퐸 ⌟ 푝

퐴 퐵 푓 the canonical functor h(퐸 ×퐵 퐴) → h퐸 ×h퐵 h퐴 is smothering.

51 Proof. As h∶ 풬풞푎푡 → 풞푎푡 does not preserve pullbacks, the canonical comparison functor of the statement is not an isomorphism. It is however bijective on objects since the composite functor obj 풬풞푎푡 h 풞푎푡 풮푒푡 is given by evaluation on the set of vertices of each quasi-category, and this functor does preserve pullbacks. ′ For fullness, note that a morphism in h퐸 ×h퐵 h퐴 is represented by a pair of 1-simplices 훼∶ 푎 → 푎 and 휖∶ 푒 → 푒′ in 퐴 and 퐸 whose images in 퐵 are homotopic, a condition that implies in particular that 푓(푎) = 푝(푒) and 푓(푎′) = 푝(푒′). By Lemma 1.1.9, we can arrange this homotopy however we like, and thus we choose a 2-simplex witness 훽 so as to define a lifting problem

푒 휖 Λ1[2] 퐸 ∋ 푒 푒′

푝 ↧

푝(푒) 푝(휖) Δ[2] 퐵 ∋ 훽 푓(푎) 푓(푎′) = 푝(푒′) 푓(훼) Since 푝 is an isofibration, a solution exists, defining an arrow 휖∶̃ 푒 → 푒′ in 퐸 in the same homotopy class as 휖 so that 푝(휖)̃ = 푓(훼). The pair (훼, 휖)̃ now defines the lifted arrow in h(퐸 ×퐵 퐴). Finally, consider an arrow ퟚ → 퐸 ×퐵 퐴 whose image in h퐸 ×h퐵 h퐴 is an isomorphism, which is the case just when the projections to 퐸 and 퐴 define isomorphisms. By Corollary 1.1.16, we may choose a homotopy coherent isomorphism 핀 → 퐴 extending the given isomorphism ퟚ → 퐴. This data presents us with a lifting problem ퟚ 퐸 × 퐴 퐸 퐵 ⌟ 푝

핀 퐴 퐵 푓 which Exercise 1.1.v tells us we can solve. This proves that h(퐸 ×퐵 퐴) → h퐸 ×h퐵 h퐴 is conservative and hence also smothering.  A similar argument proves: 3.1.6. Lemma. For any tower of isofibrations between quasi-categories

⋯ 퐸푛 퐸푛−1 ⋯ 퐸2 퐸1 퐸0 the canonical functor h(lim푛 퐸푛) → lim푛 h퐸푛 is smothering. Proof. Exercise 3.1.iii. 

52 푔 푓 3.1.7. Lemma. For any cospan between quasi-categories 퐶 퐴 퐵 consider the quasi-category defined by the pullback ퟚ Hom퐴(푓, 푔) 퐴 ⌟ (푝1,푝0) (cod,dom) 퐶 × 퐵 퐴 × 퐴 푔×푓

The canonical functor hHom퐴(푓, 푔) → Homh퐴(h푓, h푔) is smothering. Proof. Here, the codomain is the category defined by an analogous pullback

ퟚ Homh퐴(h푓, h푔) (h퐴) ⌟ (cod,dom) h퐶 × h퐵 h퐴 × h퐴 h푔×h푓 in 풞푎푡 and the canonical functor factors as ퟚ ퟚ hHom퐴(푓, 푔) → h(퐴 ) ×h퐴×h퐴 (h퐶 × h퐵) → (h퐴) ×h퐴×h퐴 (h퐶 × h퐵) By Lemma 3.1.5 the first of these functors is smothering. By Lemma 3.1.1 the second is a pullback of a smothering functor. By Exercise 3.1.i(i) it follows that the composite functor is smothering.  In the sections that follow, we will discover that the smothering functors just constructed express particular “weak” universal properties of arrow, pullback, and comma constructions in the homotopy 2-category of any ∞-cosmos. It is to the first of these that we now turn. Exercises. 3.1.i. Exercise. Prove that: (i) The class of smothering functors is closed under composition, retract, product, and pullback. (ii) The class of smothering functors contains all surjective equivalences of categories. (iii) All smothering functors are isofibrations, that is, maps that have the right lifting property with respect to ퟙ ↪ 핀. (iv) Prove that if 푓 and 푔푓 are smothering functors, then 푔 is a smothering functor.² 3.1.ii. Exercise. Prove Lemma 3.1.4. 3.1.iii. Exercise. Prove Lemma 3.1.6. 3.2. ∞-categories of arrows In this section, we replicate the discussion from the start of the previous section using an arbitrary ∞-category 퐴 in place of the quasi-category 푄. The analysis of the previous section could have been developed natively in this general setting but at the cost of an extra layer of abstraction and more confusing notation — with a functor space Fun(푋, 퐴) replacing the quasi-category 푄. Recall an element of an ∞-category is defined to be a functor 1 → 퐴. Tautologically, the elements of 퐴 are the vertices of the underlying quasi-category Fun(1, 퐴) of 퐴. In this section, we will define

²It suffices, in fact, to merely assume that 푓 is surjective on objects and arrows.

53 and study an ∞-category 퐴ퟚ whose elements are the 1-simplices in the underlying quasi-category of 퐴. We refer to 퐴ퟚ as the ∞-category of arrows in 퐴 and call its elements simply arrows of 퐴. In fact, we’ve tacitly introduced this construction already. Recall ퟚ is our preferred notation for the quasi-category Δ[1], as this coincides with the nerve of the 1-category ퟚ with a single non-identity morphism 0 → 1. 3.2.1. Definition (arrow ∞-category). Let 퐴 be an ∞-category. The ∞-category of arrows in 퐴 is the simplicial cotensor 퐴ퟚ together with the canonical endpoint-evaluation isofibration (푝 ,푝 ) 퐴ퟚ ≔ 퐴Δ[1] 1 0 퐴휕Δ[1] ≅ 퐴 × 퐴 ퟚ induced by the inclusion 휕Δ[1] ↪ Δ[1]. For conciseness, we write 푝0 ∶ 퐴 ↠ 퐴 for the domain- ퟚ evaluation induced by the inclusion 0∶ ퟙ ↪ ퟚ and write 푝1 ∶ 퐴 ↠ 퐴 for the codomain-evaluation induced by 1∶ ퟙ ↪ ퟚ. As an object of the homotopy 2-category 픥풦, the ∞-category of arrows comes equipped with a canonical 2-cell that we now construct. 3.2.2. Lemma. For any ∞-category 퐴, the ∞-category of arrows comes equipped with a canonical 2-cell

푝0 퐴ퟚ ⇓휅 퐴 (3.2.3)

푝1 that we refer to as the generic arrow with codomain 퐴. Proof. The simplicial cotensor has a strict universal property described in Digression 1.2.4: namely 퐴ퟚ is characterized by the natural isomorphism Fun(푋, 퐴ퟚ) ≅ Fun(푋, 퐴)ퟚ. (3.2.4) By the Yoneda lemma, the data of the natural isomorphism (3.2.4) is encoded by its “universal element”, which is defined to be the image of the identity at the representing object. Here the identity functor id∶ 퐴ퟚ → 퐴ퟚ is mapped to an element of Fun(퐴ퟚ, 퐴)ퟚ, a 1-simplex in Fun(퐴ퟚ, 퐴) which represents a 2-cell in the homotopy 2-category defining (3.2.3). To see that its source and target must be the domain-evaluation and codomain-evaluation maps, note that the action of the simplicial cotensor 퐴(−) on morphisms of simplicial sets is defined so that the isomorphism (3.2.4) is natural in the cotensor variable as well. Thus, by restricting along the endpoint inclusion ퟙ + ퟙ ↪ ퟚ, we may regard the isomorphism (3.2.4) as lying over Fun(푋, 퐴 × 퐴) ≅ Fun(푋, 퐴) × Fun(푋, 퐴).  There is a 2-categorical limit notion that is analogous to Definition 3.2.1, which constructs, for any object 퐴, the universal 2-cell with codomain 퐴: namely the cotensor with the 1-category ퟚ. Its universal property is analogous to (3.2.4) but with the hom-categories of the 2-category in place of the functor spaces. In 풞푎푡 this constructs the arrow category associated to a 1-category. In the homotopy 2-category 픥풦, by the Yoneda lemma again, the data (3.2.3) encodes a natural transformation hFun(푋, 퐴ퟚ) → hFun(푋, 퐴)ퟚ of categories but this is not a natural isomorphism, nor even a natural equivalence of categories but does express the arrow ∞-category as a “weak” arrow object with a universal property of the following form: 54 3.2.5. Proposition (the weak universal property of the arrow ∞-category). The generic arrow (3.2.3) with codomain 퐴 has a weak universal property in the homotopy 2-category given by three operations: (i) 1-cell induction: Given a 2-cell over 퐴 as below-left 푋 푋 푎 훼 푡 ⇐ 푠 = 푡 퐴ퟚ 푠 푝 푝 1 휅 0 ⇐ 퐴 퐴 ퟚ there exists a 1-cell 푎∶ 푋 → 퐴 so that 푠 = 푝0푎, 푡 = 푝1푎, and 훼 = 휅푎. ′ ퟚ (ii) 2-cell induction: Given a pair of functors 푎, 푎 ∶ 푋 ⇉ 퐴 and a pair of 2-cells 휏0 and 휏1 so that 푋 푋 푎′ 푎 푎′ 푎 휏1 휏0 ퟚ ⇐ ퟚ ퟚ ⇐ ퟚ 퐴 푝1 퐴 = 퐴 푝0 퐴 휅 휅 ⇐ ⇐ 푝1 푝0 퐴 푝0 푝1 퐴 there exists a 2-cell 휏∶ 푎 ⇒ 푎′ so that 푋 푋 푋 푋 ′ ′ ′ ′ 푎 푎 푎 휏 푎 푎 휏 푎 푎 푎 ⇐ ⇐ 휏 휏 ퟚ 1 ퟚ ퟚ ퟚ ퟚ 0 ퟚ 퐴 ⇐ 퐴 = 퐴 and 퐴 = 퐴 ⇐ 퐴

푝1 푝0 푝1 푝1 푝0 푝0 퐴 퐴 퐴 퐴 (iii) 2-cell conservativity: Any 2-cell 푋 ′ 푎 휏 푎 ⇐ 퐴ퟚ

with the property that both 푝1휏 and 푝0휏 are isomorphisms is an isomorphism. Proof. Let 푄 = Fun(푋, 퐴) and apply Lemma 3.1.1 to observe that the natural map of hom- categories

hFun(푋, 퐴ퟚ) hFun(푋, 퐴)ퟚ

((푝1)∗,(푝0)∗) (ev1,ev0) hFun(푋, 퐴) × hFun(푋, 퐴) over hFun(푋, 퐴 × 퐴) ≅ hFun(푋, 퐴) × hFun(푋, 퐴) is a smothering functor. Surjectivity on objects is expressed by 1-cell induction, fullness by 2-cell induction, and conservativity by 2-cell conservativity.  55 Note that the functors 푋 → 퐴ퟚ that represent a fixed 2-cell with domain 푋 and codomain 퐴 are ퟚ not unique. However, they are unique up to “fibered” isomorphisms that whisker with (푝1, 푝0)∶ 퐴 ↠ 퐴 × 퐴 to an identity 2-cell: 3.2.6. Proposition. Whiskering with (3.2.3) induces a bijection between 2-cells with domain 푋 and codomain 퐴 as displayed below-left ⎧ ⎫ ⎪ ⎪ ⎧ ⎫ ⎪ 푋 ⎪ ⎪ 푠 ⎪ ⎪ 푡 푠 ⎪ ⎨⎪ ⎬⎪ ⎨⎪ ⎬⎪ ⎪ 푋 ⇓훼 퐴 ⎪ ↭ ⎪ 푎 ⎪ ⎩⎪ ⎭⎪ ⎪ 퐴 퐴 ⎪ 푡 ⎪ ⎪ ⎪ 푝1 푝0 ⎪ ⎩ 퐴ퟚ ⎭ /≅ and fibered isomorphism classes of functors 푋 → 퐴ퟚ as displayed above-right, where the fibered isomorphisms are given by invertible 2-cells 푋 푡 푠 푎′ 훾 푎 퐴 ≅ 퐴

푝1 푝0 퐴ퟚ so that 푝0훾 = id푠 and 푝1훾 = id푡. Proof. Lemma 3.1.3 proves that the fibers of the smothering functor of Proposition 3.2.5 are con- nected groupoids. The objects of these fibers are functors 푋 → 퐴ퟚ and the morphisms are invertible ퟚ 2-cells that whisker with (푝1, 푝0)∶ 퐴 ↠ 퐴 × 퐴 to an identity 2-cell. The action of the smothering functor defines a bijection between the objects of its codomain and their corresponding fibers.  Our final task is to observe that the universal property of Proposition 3.2.5 is also enjoyed by any ퟚ object (푒1, 푒0)∶ 퐸 ↠ 퐴 × 퐴 that is equivalent to the arrow ∞-category (푝1, 푝0)∶ 퐴 ↠ 퐴 × 퐴 in the slice ∞-cosmos 풦/퐴×퐴. We have special terminology to allow us to concisely express the type of equivalence we have in mind. 3.2.7. Definition (fibered equivalence). A fibered equivalence over an ∞-category 퐵 in an ∞-cosmos 풦 is an equivalence 퐸 ∼ 퐹 (3.2.8) 퐵 in the sliced ∞-cosmos 풦/퐵. We write 퐸 ≃퐵 퐹 to indicate that that specified isofibrations with these domains are equivalent over 퐵. By Proposition 1.2.17(vii), a fibered equivalence is just a map between a pair of isofibrations over a common base that defines an equivalence in the underlying ∞-cosmos: the forgetful functor 풦/퐵 → 풦 preserves and reflects equivalences. Note, however, that it does not create them: it is possible for two ∞-categories 퐸 and 퐹 to be equivalent without there existing any equivalence compatible with a pair of specified isofibration 퐸 ↠ 퐵 and 퐹 ↠ 퐵.

56 3.2.9. Remark. At this point, there is some ambiguity about the 2-categorical data that presents a fibered equivalence related to the question posed in Exercise 1.4.iii. But since Proposition 1.2.17(vii) tells us that a mere equivalence in 픥풦 involving a functor of the form (3.2.8) is sufficient to guarantee that this as-yet-unspecified 2-categorical data exists, we defer a careful analysis of this issue to §3.5.

3.2.10. Proposition (uniqueness of arrow ∞-categories). For any isofibration (푒1, 푒0)∶ 퐸 ↠ 퐴 × 퐴 equipped with a fibered equivalence 푒∶ 퐸 ⥲ 퐴ퟚ, the corresponding 2-cell

푒0 퐸 ⇓휖 퐴 푒1 satisfies the weak universal property of Proposition 3.2.5. Conversely, if (푑1, 푑0)∶ 퐷 ↠ 퐴×퐴 and (푒1, 푒0)∶ 퐸 ↠ 퐴 × 퐴 are equipped with 2-cells

푑0 푒0 퐷 ⇓훿 퐴 and 퐸 ⇓휖 퐴 푒 푑1 1 satisfying the weak universal property of Proposition 3.2.5, then 퐷 and 퐸 are fibered equivalent over 퐴 × 퐴. Proof. We prove the first statement. By the definition equation of 1-cell induction 휖 = 휅푒, where 휅 is the canonical 2-cell of (3.2.3). Hence, pasting with 휖 induces a functor 푒 hFun(푋, 퐸) ∗ hFun(푋, 퐴ퟚ) hFun(푋, 퐴)ퟚ

((푝1)∗,(푝0)∗) (ev1,ev0) hFun(푋, 퐴) × hFun(푋, 퐴) and our task is to prove that this composite functor is smothering. We see that the first functor, defined by post-composing with the equivalence 푒∶ 퐸 → 퐴ퟚ, is an equivalence of categories, and the second functor is smothering. Thus, the composite is clearly full and conservative. To see that it is also surjective on objects, note first that by 1-cell induction any 2-cell 푠 푋 ⇓훼 퐴 푡 is represented by a functor 푎∶ 푋 → 퐴ퟚ over 퐴 × 퐴. Composing with any fibered inverse equivalence 푒′ to 푒 yields a functor

′ 푒 ∼ 푋 푎 퐴ퟚ 퐸 (푝1,푝0) (푡,푠) (푒1,푒0) 퐴 × 퐴 whose image after post-composing with 푒 is isomorphic to 푎 over 퐴 × 퐴. Because this isomorphism is fibered (see Proposition 3.2.6), the image of 푎푒′ under the functor hFun(푋, 퐸) → hFun(푋, 퐴)ퟚ returns the 2-cell 훼. This proves that this mapping is surjective on objects and hence defines a smothering functor as claimed. The converse is left to Exercise 3.2.ii and proven in a more general context in Proposition 3.3.11. 

57 3.2.11. Convention. On account of Proposition 3.2.10, we extend the appellation “∞-category of ar- rows” from the strict model constructed in Definition 3.2.1 to any ∞-category that is fibered equivalent to it. Via Lemma 3.1.4, the discussion of this section extends to establish corresponding weak universal properties for the cotensors 퐴퐽 of an ∞-category 퐴 with a free category 퐽. We leave the exploration of this to the reader. Exercises. 3.2.i. Exercise. (i) Prove that a parallel pair of 1-simplices in a quasi-category 푄 are homotopic if and only if they are isomorphic as elements of 푄ퟚ via an isomorphism that projects to an identity along ퟚ (푝1, 푝0)∶ 푄 ↠ 푄 × 푄. (ii) Conclude that a parallel pair of 1-arrows in the functor space Fun(푋, 퐴) between two ∞-cate gories 푋 and 퐴 in any ∞-cosmos represent the same natural transformation if and only if they are isomorphic as elements of Fun(푋, 퐴)ퟚ ≅ Fun(푋, 퐴ퟚ) via an isomorphism whose domain and codomain components are an identity. (iii) Conclude that a parallel pair of 1-arrows in the functor space Fun(푋, 퐴), which may be en- coded as functors 푋 ⇉ 퐴ퟚ, represent the same natural transformation if and only if they are connected by a fibered isomorphism:

ퟚ 푋 ≅ 퐴

(푝1,푝0) 퐴 × 퐴 3.2.ii. Exercise. Prove the second statement of Proposition 3.2.10. 3.3. The comma construction The comma ∞-category is defined by restricting the domain and codomain of the ∞-category of arrows 퐴ퟚ along specified functors with codomain 퐴.

푔 푓 3.3.1. Definition (comma ∞-category). Let 퐶 퐴 퐵 be a diagram of ∞-categories. The comma ∞-category is constructed as a pullback of the simplicial cotensor 퐴ퟚ along 푔 × 푓

휙 ퟚ Hom퐴(푓, 푔) 퐴 ⌟ (3.3.2) (푝1,푝0) (푝1,푝0) 퐶 × 퐵 퐴 × 퐴 푔×푓

58 This construction equips the comma ∞-category with a specified isofibration (푝1, 푝0)∶ Hom퐴(푓, 푔) ↠ 퐶 × 퐵 and a canonical 2-cell Hom퐴(푓, 푔) 푝1 푝0 휙 (3.3.3) 퐶 ⇐ 퐵

푔 푓 퐴 in the homotopy 2-category called the comma cone. 3.3.4. Example (arrow ∞-categories as comma ∞-categories). The arrow ∞-category arises as a spe- cial case of the comma construction applied to the identity span. This provides us with alternate notation for the generic arrow of (3.2.3), which may be regarded as a particular instance of a comma cone. Hom퐴 푝1 푝0

휙 퐴 ⇐ 퐴

퐴 The following proposition encodes the homotopical properties of the comma construction. The proof is by a standard argument in abstract homotopy theory, which can be found in Appendix C. A hint for this proof is given in Exercise 3.3.i. 3.3.5. Proposition (maps between commas). A commutative diagram 푔 푓 퐶 퐴 퐵 푟 푝 푞 푔̄ 푓̄ 퐶̄ 퐴̄ 퐵̄ induces a map between the comma ∞-categories

Hom (푞,푟) 푝 ̄ Hom퐴(푓, 푔) Hom퐴̄(푓, 푔)̄

(푝1,푝0) (푝1,푝0) 푟×푞 퐶 × 퐵 퐶̄ × 퐵̄ Moreover, if 푝, 푞, and 푟 are all (i) equivalences, (ii) isofibrations, or (iii) trivial fibrations then the induced map is again an equivalence, isofibration, or trivial fibration, respectively.

59 There is a 2-categorical limit notion that is analogous to Definition 3.3.1, which constructs the universal 2-cell inhabiting a square over a specified cospan. In 풞푎푡 the category so-constructed is referred to as a comma category, from when we borrow the name. As with the case of ∞-categories of arrow, comma ∞-categories do not satisfy this 2-universal property strictly. Instead: 3.3.6. Proposition (the weak universal property of the comma ∞-category). The comma cone (3.3.3) has a weak universal property in the homotopy 2-category given by three operations: 푔 푓 (i) 1-cell induction: Given a 2-cell over 퐶 퐴 퐵 as below-left 푋 푎 푋 푐 푏 푐 푏 Hom퐴(푓, 푔) 훼 푝 푝 퐶 ⇐ 퐵 = 1 0 휙 ⇐ 푔 푓 퐶 퐵 퐴 푔 푓 퐴

there exists a 1-cell 푎∶ 푋 → Hom퐴(푓, 푔) so that 푏 = 푝0푎, 푐 = 푝1푎, and 훼 = 휙푎. ′ (ii) 2-cell induction: Given a pair of functors 푎, 푎 ∶ 푋 ⇉ Hom퐴(푓, 푔) and a pair of 2-cells 휏0 and 휏1 so that 푋 푋 푎′ 푎 푎′ 푎 휏1 휏0 ⇐ ⇐ Hom퐴(푓, 푔) Hom퐴(푓, 푔) = Hom퐴(푓, 푔) Hom퐴(푓, 푔) 푝1 푝0 푝1 푝0 푝1 푝0 휙 휙 퐶 ⇐ 퐵 퐶 ⇐ 퐵

푔 푓 푔 푓 퐴 퐴 there exists a 2-cell 휏∶ 푎 ⇒ 푎′ so that 푋 푋 푋 푋 ′ ′ ′ ′ 푎 푎 푎 휏 푎 푎 휏 푎 푎 푎 ⇐ ⇐ 휏1 휏0 Hom퐴(푓, 푔) ⇐ Hom퐴(푓, 푔) = Hom퐴(푓, 푔) Hom퐴(푓, 푔) = Hom퐴(푓, 푔) ⇐ Hom퐴(푓, 푔)

푝1 푝0 푝1 푝1 and 푝0 푝0 퐶 퐶 퐵 퐵 (iii) 2-cell conservativity: Any 2-cell 푋 ′ 푎 휏 푎 ⇐

Hom퐴(푓, 푔)

60 with the property that both 푝1휏 and 푝0휏 are isomorphisms is an isomorphism. Proof. The cosmological functor Fun(푋, −)∶ 풦 → 풬풞푎푡 carries the pullback (3.3.2) to a pull- back

휙 ퟚ Fun(푋, Hom퐴(푓, 푔)) ≅ HomFun(푋,퐴)(Fun(푋, 푓), Fun(푋, 푔)) Fun(푋, 퐴) ⌟ (푝1,푝0) (푝1,푝0) Fun(푋, 퐶) × Fun(푋, 퐵) Fun(푋, 퐴) × Fun(푋, 퐴) Fun(푋,푔)×Fun(푋,푓) of quasi-categories. Now Lemma 3.1.7 demonstrates that the canonical 2-cell (3.3.3) induces a natural map of hom-categories

hFun(푋, Hom퐴(푓, 푔)) HomhFun(푋,퐴)(hFun(푋, 푓), hFun(푋, 푔))

((푝1)∗,(푝0)∗) (ev1,ev0) hFun(푋, 퐶) × hFun(푋, 퐵) over hFun(푋, 퐶×퐵) ≅ hFun(푋, 퐶)×hFun(푋, 퐵) that is a smothering functor. The properties of 1-cell induction, 2-cell induction, and 2-cell conservativity follow from surjectivity on objects, fullness, and conservativity of this smothering functor respectively. 

The 1-cells 푋 → Hom퐴(푓, 푔) that are induced by a fixed 2-cell 훼∶ 푓푏 ⇒ 푔푐 are unique up to fibered isomorphism over 퐶 × 퐵. 3.3.7. Proposition. Whiskering with the comma cone (3.3.3) induces a bijection between 2-cells as displayed below-left ⎧ ⎫ ⎪ ⎪ ⎧ ⎫ ⎪ 푋 ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ 푋 ⎪ ⎪ 푐 푏 ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ 푐 푏 ⎪ ⎨ 훼 ⎬ ⎨ ⎬ ⎪ 퐶 ⇐ 퐵 ⎪ ↭ ⎪ 퐶 푎 퐵 ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ 푝1 푝0 ⎪ ⎪ 푔 ⎪ ⎩⎪ ⎭⎪ ⎪ 푓 ⎪ Hom퐴(푓, 푔) ⎩ 퐴 ⎭ /≅ and fibered isomorphism classes of maps of spans from 퐶 to 퐵 as displayed above-right, where the fibered isomorphisms are given by invertible 2-cells 푋 푐 푏 훾 ′ 푎 퐶 푎 ≅ 퐵

푝1 푝0 Hom퐴(푓, 푔) so that 푝0훾 = id푏 and 푝1훾 = id푐. Proof. Lemma 3.1.3 proves that the fibers of the smothering functor of Proposition 3.3.6 are connected groupoids. The objects of these fibers are functors 푋 → Hom퐴(푓, 푔) and the morphisms are invertible 2-cells that whisker with

(푝1, 푝0)∶ Hom퐴(푓, 푔) ↠ 퐶 × 퐵 61 to an identity 2-cell. The action of the smothering functor defines a bijection between the objects of its codomain and their corresponding fibers.  The construction of the comma ∞-category is also pseudo-functorial in lax maps defined in the homotopy 2-category: 3.3.8. Observation. By 1-cell induction a diagram 푔 푓 퐶 퐴 퐵 푟 ⇐훾 푝 ⇐훽 푞 퐶̄ 퐴̄ 퐵̄ 푔̄ 푓̄ induces a map between comma ∞-categories as displayed below-right:

Hom퐴(푓, 푔) Hom퐴(푓, 푔) 푝 푝 1 0 훽↓훾 푟푝1 푞푝0 휙 ̄ 퐶 ⇐ 퐵 Hom퐴̄(푓, 푔)̄ 푔 푓 푝1 푝0 푟 푞 = 휙 퐶̄ ⇐훾 퐴 ⇐훽 퐵̄ 퐶̄ ⇐ 퐵̄ 푝 푔̄ 푓̄ 푔̄ 푓̄ 퐴̄ 퐴̄ that is well-defined and functorial up to fibered isomorphism. One of many uses of comma ∞-categories is to define the internal mapping spaces between two elements of an ∞-category 퐴. This is one motivation for our notation “Hom퐴.” 3.3.9. Definition. For any two elements 푥, 푦∶ 1 ⇉ 퐴 of an ∞-category 퐴, their mapping space is the comma ∞-category Hom퐴(푥, 푦) defined by the pullback diagram

휙 ퟚ Hom퐴(푥, 푦) 퐴 ⌟ (푝1,푝0) (푝1,푝0) 1 퐴 × 퐴 (푦,푥) The mapping spaces in any ∞-category are discrete in the sense of Definition 1.2.21. 3.3.10. Proposition (internal mapping spaces are discrete). For any pair of elements 푥, 푦∶ 1 ⇉ 퐴 of an ∞-category 퐴, the mapping space Hom퐴(푥, 푦) is discrete.

Proof. Our task is to prove that for any ∞-category 푋, the functor space Fun(푋, Hom퐴(푥, 푦)) is a Kan complex. This is so just when hFun(푋, Hom퐴(푥, 푦)) is a groupoid, i.e., when any 2-cell with codomain Hom퐴(푥, 푦) is invertible. By 2-cell conservativity, a 2-cell with codomain Hom퐴(푥, 푦) is invertible just when its whiskered composite with the isofibration (푝1, 푝0)∶ Hom퐴(푥, 푦) ↠ 1 × 1 is an invertible 2-cell, but in fact this whiskered composite is an identity since 1 is terminal. 

62 As in our convention for ∞-categories of arrows, it will be convenient to weaken the meaning of “comma ∞-category” to extend this appellation to any object of 풦/퐶×퐵 that is fibered equivalent (see Definition 3.2.7) to the strict model (푝1, 푝0)∶ Hom퐴(푓, 푔) ↠ 퐶 × 퐵 defined by 3.3.1. This is justified because such objects satisfy the weak universal property of Proposition 3.3.6 and conversely any two objects satisfying this weak universal property are equivalent over 퐶 × 퐵.

3.3.11. Proposition (uniqueness of comma ∞-categories). For any isofibration (푒1, 푒0)∶ 퐸 ↠ 퐶 × 퐵 that is fibered equivalent to Hom퐴(푓, 푔) ↠ 퐶 × 퐵 the 2-cell 퐸 푒1 푒0

휖 퐶 ⇐ 퐵

푔 푓 퐴 encoded by the equivalence 퐸 ⥲ Hom퐴(푓, 푔) satisfies the weak universal property of Proposition 3.3.6. Con- versely, if (푑1, 푑0)∶ 퐷 ↠ 퐶 × 퐵 and (푒1, 푒0)∶ 퐸 ↠ 퐶 × 퐵 are equipped with 2-cells 퐷 퐸 푑1 푑0 푒1 푒0

훿 휖 퐶 ⇐ 퐵 and 퐶 ⇐ 퐵 (3.3.12)

푔 푓 푔 푓 퐴 퐴 satisfying the weak universal property of Proposition 3.3.6, then 퐷 and 퐸 are fibered equivalent over 퐶 × 퐵. Proof. The proof of the first statement proceeds exactly as in the special case of Proposition 3.2.10. We prove the converse, solving Exercise 3.2.ii. Consider a pair of 2-cells (3.3.12) satisfying the weak universal properties enumerated in Proposi- tion 3.3.6. 1-cell induction supplies maps of spans 퐷 퐸 퐷 푑 푑 푑 퐸 푒 푒 푒 푑 푑 1 0 푒 푒 1 0 1 0 퐸 1 0 퐷 훿 = 푒1 푒0 and 휖 = 푑1 푑0 퐶 ⇐ 퐵 퐶 ⇐ 퐵 퐶 휖 퐵 퐶 훿 퐵 푔 푓 ⇐ 푔 푓 ⇐ 퐴 푔 푓 퐴 푔 푓 퐴 퐴 with the property that 휖푑푒 = 휖 and 훿푒푑 = 훿. By Proposition 3.3.7 it follows that 푑푒 ≅ id퐸 over 퐶 × 퐵 and 푒푑 ≅ id퐷 over 퐶 × 퐵. This defines the data of a fibered equivalence 퐷 ≃ 퐸.³  3.3.13. Convention. On account of Proposition 3.3.11, we extend the appellation “comma ∞-category” from the strict model constructed in Definition 3.3.1 to any ∞-category that is fibered equivalent to it and refer to its accompanying 2-cell as the “comma cone.”

³For the reader uncomfortable with Remark 3.2.9, Proposition 3.5.3 and Lemma 3.5.4 provides a small boost to finish the proof. 63 For example, in §4.3 we define the ∞-category of cones over a fixed diagram as a comma ∞-category. Proposition 3.3.11 gives us the flexibility to use multiple models for this ∞-category, which will be use- ful in characterizing the universal properties of limits and colimits. Exercises.

3.3.i. Exercise. Prove Proposition 3.3.5 by observing that the map Hom푝(푞, 푟) factors as a pullback of the Leibniz cotensor of 휕Δ[1] ↪ Δ[1] with 푝 followed by a pullback of 푟 × 푞. 3.3.ii. Exercise. Use Proposition 3.3.7 to justify the pseudofunctoriality of the comma construction in lax morphisms described in Observation 3.3.8. 3.4. Representable comma ∞-categories Definition 3.3.1 constructs a comma ∞-category for any cospan. Of particular importance, are the special cases of this construction where one of the legs of the cospan is an identity: 3.4.1. Definition (left and right representations). Any functor 푓∶ 퐴 → 퐵 admits a left representa- tion and a right representation as a comma ∞-category, displayed below-left and below-right respec- tively:

Hom퐵(푓, 퐵) Hom퐵(퐵, 푓) 푝1 푝0 푝1 푝0

휙 휙 퐵 ⇐ 퐴 퐴 ⇐ 퐵

푓 푓 퐵 퐵 To save space, we typically depict the left comma cone over 푝 displayed above-left and the right comma cone over 푝 displayed above-right as inhabiting triangles rather than squares. By Proposition 3.3.11, the weak universal property of the comma cone characterizes the comma span up to fibered equivalence over the product of the codomain objects. Thus:

3.4.2. Definition. A comma ∞-category Hom퐴(푓, 푔) ↠ 퐶 × 퐵 is • left representable if there exists a functor ℓ∶ 퐵 → 퐶 so that Hom퐴(푓, 푔) ≃ Hom퐶(ℓ, 퐶) over 퐶 × 퐵 and • right representable if there exists a functor 푟∶ 퐶 → 퐵 so that Hom퐴(푓, 푔) ≃ Hom퐵(퐵, 푟) over 퐶 × 퐵. In this section, we prove the first of many representability theorems: demonstrating that a functor 푔∶ 퐶 → 퐴 admits an absolute right lifting along 푓∶ 퐵 → 퐴 if and only if the comma ∞-category Hom퐴(푓, 푔) is right representable, the representing functor then defining the postulated lifting. We prove this over the course of three theorems, each strengthening the previous statement. The first theorem characterizes 2-cells 퐵 푟 푓 ⇓휌 퐶 푔 퐴

64 that define absolute right lifting diagrams via an induced equivalence Hom퐵(퐵, 푟) ≃퐶×퐵 Hom퐴(푓, 푔) between comma ∞-categories. The second theorem proves that a functor 푟 defines an absolute right lifting of 푔 through 푓 just when Hom퐴(푓, 푔) is right-represented by 푟; the difference is that no 2-cell 휌∶ 푓푟 ⇒ 푔 need be postulated a priori to exist. The final theorem gives a general right-representability criterion that can be applied to construct a right representation to Hom퐴(푓, 푔) without a priori spec- ifying the representing functor 푟. 3.4.3. Theorem. The triangle below-left defines an absolute right lifting diagram if and only if the induced 1-cell below-right

Hom퐵(퐵, 푟) 푦 Hom퐵(퐵, 푟) 푝 푝 푝 푝 0 1 퐵 1 휙 0 Hom (푓, 푔) ⇐ 퐴 푟 푝 푝 푓 ⇝ 푟 = 1 0 (3.4.4) ⇓휌 퐶 퐵 휌 휙 퐶 퐴 ⇐ ⇐ 푔 푔 푓 퐶 퐵 퐴 푔 푓 퐴 defines a fibered equivalence Hom퐵(퐵, 푟) ≃ Hom퐴(푓, 푔) over 퐶 × 퐵. Proof. Suppose that (푟, 휌) defines an absolute right lifting of 푔 through 푓 and consider the cor- responding unique factorization of the comma cone under Hom퐴(푓, 푔) through 휌 as displayed below- center

Hom퐴(푓, 푔)

Hom퐴(푓, 푔) Hom퐴(푓, 푔) 푧 푝 푝 푝 푝 푝 푝 1 0 1 0 1 휁 0 Hom (퐵, 푟) ⇐ 퐵 휙 = = 푝1 푝0 퐶 ⇐ 퐵 퐶 푟 퐵 휙 휌 ⇐ ⇐ 푟 푔 푓 푔 푓 퐶 퐵 휌 퐴 퐴 ⇐ 푔 푓 퐴 (3.4.5) By 1-cell induction, the 2-cell 휁 factors through the right comma cone over 푟 as displayed above- right. Substituting the right-hand side of (3.4.4) into the bottom portion of the above-right diagram, we see that 푦푧∶ Hom퐴(푓, 푔) → Hom퐴(푓, 푔) is a 1-cell that factors the comma cone for Hom퐴(푓, 푔) through itself. Applying the universal property of Proposition 3.3.7, it follows that there is a fibered isomorphism 푦푧 ≅ idHom퐴(푓,푔) over 퐶 × 퐵.

To prove that 푧푦 ≅ idHom퐵(퐵,푟) it suffices to argue similarly that the right comma cone over 푟 restricts along 푧푦 to itself. Since 휌 is absolute right lifting, it suffices to verify the equality 휙푧푦 = 휙

65 after pasting below with 휌. But now reversing the order of the equalities in (3.4.5) and (3.4.4) we have

Hom퐵(퐵, 푟) 푦 Hom퐵(퐵, 푟) Hom퐵(퐵, 푟) 푦 푦 Hom퐴(푓, 푔) Hom퐵(퐵, 푟) 푝1 푝0 푝1 푝0 푝1 푝0 푝1 푝0 푧 Hom (푓, 푔) Hom (푓, 푔) 휙 퐴 퐴 ⇐ 푝 푝 푝 푝 푝1 푝0 = 1 휁 0 = 1 0 = 푟 Hom퐵(퐵, 푟) 퐶 퐵 ⇐ 휌 푝 푝 휙 1 휙 0 푟 ⇐ ⇐ 퐶 퐵 퐶 퐵 푔 푓 ⇐ 휌 푟 ⇐ 퐴 퐶 퐵 푔 푓 푔 푓 휌 ⇐ 퐴 퐴 푔 푓 퐴 which is exactly what we wanted to show. Thus, we see that if (푟, 휌) is an absolute right lifting of 푔 through 푓, then the induced map (3.4.4) defines a fibered equivalence Hom퐵(퐵, 푟) ≃ Hom퐴(푓, 푔). Now, conversely, suppose the 1-cell 푦 defined by (3.4.4) is a fibered equivalence and let us argue that (푟, 휌) is an absolute right lifting of 푔 through 푓. By Proposition 3.3.11, via this fibered equivalence the 2-cell displayed on the left-hand side of (3.4.4) inherits the weak universal property of a comma cone from Hom퐴(푓, 푔). So Proposition 3.3.7 supplies a bijection displayed below-left-center ⎧ ⎫ ⎪ ⎪ ⎧ ⎫ ⎪ 푋 ⎪ ⎪ ⎪ ⎧ ⎫ ⎪ ⎪ ⎪ 푋 ⎪ ⎪ ⎪ ⎪ 푐 푏 ⎪ ⎪ 푐 푏 ⎪ ⎪ 푋 ⎪ ⎨⎪ ⎬⎪ ⎨⎪ ⎬⎪ ⎨⎪ ⎬⎪ 훼 푐 푏 ⎪ 퐶 ⇐ 퐵 ⎪ ↭ ⎪ 퐶 푎 퐵 ⎪ ↭ ⎪ 휉 ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⇐ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ 푝1 푝0 ⎪ ⎩ 퐶 퐵 ⎭ ⎪ 푔 푓 ⎪ ⎩⎪ ⎭⎪ 푟 ⎩⎪ ⎭⎪ Hom퐵(퐵, 푟) 퐴 /≅ between 2-cells over the cospan and fibered isomorphism classes of maps of spans that is implemented, from center to left, by whiskering with the 2-cell 휌푝1 ⋅ 푓휙∶ 푓푝0 ⇒ 푔푝1 in the center of (3.4.4). Proposition 3.3.7 also applies to the right comma cone 휙 over 푟∶ 퐶 → 퐵 giving us a second bijection, displayed above center-right between the same fibered isomorphism classes of maps of spans and 2-cells over 푟. This second bijection is implemented, from center to right, by pasting with the right comma cone 휙∶ 푝0 ⇒ 푟푝1. Combining these yields a bijection between the 2-cells displayed on the right and the 2-cells displayed on the left implemented by pasting with 휌, which is precisely the universal property that characterizes absolute right lifting diagrams.  As a special case of this result, we can now present several equivalent characterizations of fully faithful functors between ∞-categories. 3.4.6. Corollary. The following are equivalent, and define what it means for a functor 푓∶ 퐴 → 퐵 between ∞-categories to be fully faithful:

66 (i) The identity defines an absolute right lifting diagram: 퐴 푓 퐴 퐵 푓 (ii) The identity defines an absolute left lifting diagram: 퐴 푓 퐴 퐵 푓 (iii) For all 푋 ∈ 풦, the induced functor

푓∗ ∶ hFun(푋, 퐴) → hFun(푋, 퐵) is a fully faithful functor of 1-categories. (iv) The functor induced by the identity 2-cell id푓 is an equivalence 풜ퟚ 푝1 푝0 ⌜id ⌝ 퐴 ∼ 푓 퐴

푝1 푝0 Hom퐵(푓, 푓) Proof. The statement (iii) is an unpacking of the meaning of both (i) and (ii). Theorem 3.4.3 specializes to prove (i)⇔(iv) or dually (ii)⇔(iv).  It is not surprising that post-composition with a fully faithful functor of ∞-categories should induce a fully-faithful functor of hom-categories in the homotopy 2-category. What is surprising is that this definition is strong enough. This result, together with the general case of Theorem 3.4.3 should be provide some retroactive justification for our use of absolute lifting diagrams in Chapter 2. Having proven Theorem 3.4.3 our immediate aim is to strengthen it to show that a fibered equiv- alence Hom퐵(퐵, 푟) ≃ Hom퐴(푓, 푔) over 퐶 × 퐵 implies that 푟∶ 퐶 → 퐵 defines an absolute right lifting of 푔 through 푓 without a previously specified 2-cell 휌∶ 푓푟 ⇒ 푔. 3.4.7. Theorem. Given a trio of functors 푟∶ 퐶 → 퐵, 푓∶ 퐵 → 퐴, and 푔∶ 퐶 → 퐴 there is a bijection between 2-cells as displayed below-left and fibered isomorphism classes of maps of spans as displayed below-right ⎧ ⎫ ⎧ ⎫ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ Hom퐵(퐵, 푟) ⎪ ⎪ 퐵 ⎪ ⎪ 푝1 푝0 ⎪ ⎨⎪ ⎬⎪ ⎨⎪ ⎬⎪ 푟 ⎪ 푓 ⎪ ↭ ⎪ 퐶 푦 퐵 ⎪ ⎪ ⇓휌 ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ 푝1 푝0 ⎪ ⎩ 퐶 푔 퐴 ⎭ ⎪ ⎪ ⎩ Hom퐴(푓, 푔) ⎭ /≅

67 that is constructed by pasting the right comma cone over 푟 and then applying 1-cell induction to factor through the comma cone for Hom퐴(푓, 푔).

Hom퐵(퐵, 푟) 푦 Hom퐵(퐵, 푟) 푝 푝 푝 푝 1 0 1 휙 0 Hom (푓, 푔) ⇐ 퐴 = 푝1 푝0 퐶 푟 퐵 휌 휙 ⇐ ⇐ 푔 푓 퐶 퐵 퐴 푔 푓 퐴 Moreover, a 2-cell 휌∶ 푓푟 ⇒ 푔 displays 푟 as an absolute right lifting of 푔 through 푓 if and only if the corre- sponding map of spans 푦∶ Hom퐵(퐵, 푟) → Hom퐴(푓, 푔) is an equivalence. The second clause is the statement of Theorem 3.4.3, so it remains only to prove the first. We show the claimed construction is a bijection by exhibiting its inverse, the construction of which involves a rather mysterious lemma the significance of which will gradually reveal itself. For instance, Lemma 3.4.8 figures prominently in the proof of the external Yoneda lemma in §5.5 and is also the main ingredient in a “cheap” version of the Yoneda lemma appearing as Corollary 3.4.10. 3.4.8. Lemma. Let 푓∶ 퐴 → 퐵 be any functor and denote the right comma cone over 푓 by

Hom퐵(퐵, 푓) 푝1 푝0 휙 ⇐ 퐴 퐵 푓

Then the codomain-projection functor 푝1 ∶ Hom퐵(퐵, 푓) ↠ 퐴 admits a right adjoint right inverse⁴ induced from the identity 2-cell id푓, defining an adjunction

푝1

퐴 ⊥ Hom퐵(퐵, 푓)

푖 푝1 퐴 over 퐴 whose counit is an identity and whose unit 휂∶ id ⇒ 푖푝1 satisfies the conditions 휂푖 = id푖, 푝1휂 = id푝1 and 푝0휂 = 휙. ⁴A functor admits a right adjoint right inverse just when it admits a right adjoint in an adjunction whose counit is the identity. When the original functor is an isofibration, as is the case here, it suffices to merely assume that the counit is invertible; see Lemma 3.5.9 and Appendix B.

68 Proof. This adjunction will be constructed using the weak universal properties of the right comma cone over 푓. The identity 2-cell id푓 induces a 1-cell over the right comma cone over 푓: 퐴 푖 푓 퐴 = 푓 Hom퐵(퐵, 푓) = 푝1 푝0 휙 퐴 퐵 ⇐ 푓 퐴 퐵 푓

Note that 푝1푖 = id퐴, so we may take the counit to be the identity 2-cell. Since 휙푖 = id푓, we have a pasting equality:

Hom퐵(퐵, 푓) 푝1

휙 Hom퐵(퐵, 푓) 퐴 ⇐ 푖푝 1 푖 푝 푓 0

Hom퐵(퐵, 푓) = Hom퐵(퐵, 푓) = Hom퐵(퐵, 푓) 푝1 푝0 푝1 푝0 휙 휙 푝1 ⇐ ⇐ 퐴 퐵 퐴 퐵 푓 푓 while allows us to induce a 2-cell 휂∶ id ⇒ 푖푝1 with defining equations 푝1휂 = id푝1 and 푝0휂 = 휙. The first of these conditions ensures one triangle identity; for the other, we must verify that 휂푖 = id푖. By 2-cell conservativity, 휂푖 is an isomorphism since 푝1휂푖 = id퐴 and 푝0휂푖 = 휙푖 = id푓 are both invertible. By naturality of whiskering, we have 휂푖 푖 푖 휂푖 휂푖 푖 푖 푖푝1휂푖 and since 푝1휂 = id푝1 the bottom edge is an identity. So 휂푖 ⋅ 휂푖 = 휂푖 and since 휂푖 is an isomorphism cancelation implies that 휂푖 = id푖 as required.  One interpretation of Lemma 3.4.8 is best revealed though a special case:

3.4.9. Corollary. For any element 푏∶ 1 → 퐵, the identity at 푏 defines a terminal element in Hom퐵(퐵, 푏). Proof. By Lemma 3.4.8, the codomain-projection from the right representation of any functor ad- mits a right adjoint right inverse induced from its identity 2-cell. In this case, the codomain-projection is the unique functor !∶ Hom퐵(퐵, 푏) → 1, so by Definition 2.2.1, this right adjoint identifies a terminal element of Hom퐵(퐵, 푏) corresponding to the identity morphism id푏 in the homotopy category h퐵. 

The general version of Lemma 3.4.8 has a similar interpretation: in the sliced ∞-cosmos 풦/퐴, the identity functor at 퐴 defines the terminal object, and Lemma 3.4.8 asserts that id푓 induces a terminal element of Hom퐵(퐵, 푓) “over 퐴.” 69 Proof of Theorem 3.4.7. The inverse to the function that takes a 2-cell 푓푟 ⇒ 푔 and produces an isomorphism class of maps Hom퐵(퐵, 푟) → Hom퐴(푓, 푔) over 퐶 × 퐵 is constructed by applying Lemma 3.4.8 to the functor 푟∶ 퐶 → 퐵: given a map of spans, restrict along the right adjoint 푖∶ 퐶 → Hom퐵(퐵, 푟) and paste with the comma cone for Hom퐴(푓, 푔) to define a 2-cell 푓푟 ⇒ 푔. Starting from a 2-cell 휌∶ 푓푟 ⇒ 푔, the composite of these two functions constructs the 2-cell displayed below-left 퐶 푖 퐶 퐶 Hom퐵(퐵, 푟) 푖 푟 푟 푟 푦 Hom퐵(퐵, 푟) = 푝 푝1 푝0 = 1 휙 푝0 = Hom퐴(푓, 푔) ⇐ 푟 푝1 푝0 퐶 퐵 퐶 푟 퐵 휌 휌 휙 ⇐ ⇐ ⇐ 푔 푓 퐶 퐵 푔 푓 퐴 퐴 푔 푓 퐴 which equals the above-center pasted composite by the definition of 푦 from 휌, and equals the above- right composite since 휙푖 = id푟. Thus, when a 2-cell 휌∶ 푓푟 ⇒ 푔 is encoded as a map 푦∶ Hom퐵(퐵, 푟) → Hom퐴(푓, 푔) over 퐶 × 퐵, and then re-converted into a 2-cell, the original 2-cell 휌 is recovered. For the converse, starting with a map 푧∶ Hom퐵(퐵, 푟) → Hom퐴(푓, 푔) over 퐶 × 퐵, the composite of these two functions constructs an isomorphism class of maps of spans 푤 displayed below-left by applying 1-cell induction for the comma cone Hom퐴(푓, 푔) to the composite 2-cell pasted below-center- left:

Hom퐵(퐵, 푟) Hom퐵(퐵, 푟)

푝1 푝1 휙 Hom (퐵, 푟) ⇐ 휂 Hom (퐵, 푟) 퐵 퐶 퐶 ⇐ 퐵 푤 푖 푖 푧 푝0 푝1 푝0 푝1 푝0 Hom퐴(푓, 푔) Hom퐵(퐵, 푟) Hom퐵(퐵, 푟) Hom퐴(푓, 푔) 푝 푝 푟 푝 푝 1 0 = 푧 = 푧 = 1 0

휙 푝1 푝0 푝1 푝0 휙 퐶 ⇐ 퐵 Hom퐴(푓, 푔) Hom퐴(푓, 푔) 퐶 ⇐ 퐵 푝1 푝0 푝1 푝0 푔 푓 푔 푓 휙 휙 퐴 퐶 ⇐ 퐵 퐶 ⇐ 퐵 퐴

푔 푓 푔 푓 퐴 퐴

70 Applying Lemma 3.4.8, there exists a 2-cell 휂∶ id ⇒ 푖푝1 so that 푝0휂 = 휙 — this gives the pasting equality above center — and 푝1휂 = id — which gives the pasting equality above right. Proposition 3.3.7 now implies that 푤 ≅ 푧 over 퐶 × 퐵.  A dual version of Theorem 3.4.7 represents 2-cells 푔 ⇒ 푓ℓ as fibered isomorphism classes of maps Hom퐵(ℓ, 퐵) → Hom퐴(푔, 푓) over 퐵 × 퐶. Specializing these results to the case where one of 푓 or 푔 is the identity, we immediately recover a “cheap” form of the Yoneda lemma: 3.4.10. Corollary. Given a parallel pair of functors, 푓, 푔∶ 퐴 ⇉ 퐵, there are bijections between 2-cells as displayed below-center and fibered isomorphism classes of maps between their left and right representations as comma ∞-categories, as displayed below-left and below-right, respectively: ⎧ ⎫ ⎧ ⎫ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ Hom퐵(푔, 퐵) ⎪ ⎧ ⎫ ⎪ Hom퐵(퐵, 푓) ⎪ ⎪ 푝1 푝0 ⎪ ⎪ 푓 ⎪ ⎪ 푝1 푝0 ⎪ ⎨⎪ ⎬⎪ ⎨⎪ ⎬⎪ ⎨⎪ ⎬⎪ ⎪ 푎 ⎪ ↭ ⎪ 퐴 ⇓훼 퐵 ⎪ ↭ ⎪ 푎 ⎪ ⎪ 퐵 퐴 ⎪ ⎪ ⎪ ⎪ 퐴 퐵 ⎪ ⎪ ⎪ ⎩ 푔 ⎭ ⎪ ⎪ ⎪ 푝1 푝0 ⎪ ⎪ 푝1 푝0 ⎪ ⎪ ⎪ ⎪ ⎪ ⎩ Hom퐵(푓, 퐵) ⎭ ⎩ Hom퐵(퐵, 푔) ⎭ /≅ /≅ that are constructed by pasting with the left comma cone over 푔 and right comma cone over 푓, respectively:

Hom퐵(푔, 퐵) Hom퐵(퐵, 푓)

Hom퐵(푔, 퐵) 푎 Hom퐵(퐵, 푓) 푎 푝1 푝0 푝1 푝0 푝1 푝0 푝1 푝0 휙 = Hom (푓, 퐵) 휙 = Hom (퐵, 푔) ⇐ 퐵 ⇐ 퐵 푝1 푝0 푝1 푝0 퐵 푔 퐴 휙 퐴 푓 퐵 휙 ⇑훼 ⇐ ⇓훼 ⇐ 푓 퐵 퐴 푔 퐴 퐵 푓 푔 and then applying 1-cell induction to factor through the left comma cone over 푓 in the former case or the right comma cone over 푔 in the latter.  Combining the results of this section, we prove one final representability theorem that allows us to recognize when a comma ∞-category is right representable in the absence of a predetermined representing functor. This result specializes to give existence theorems for adjoint functors and limits and colimits in the next chapter.

푔 푓 3.4.11. Theorem. The comma ∞-category Hom퐴(푓, 푔) associated to a cospan 퐶 퐴 퐵 is right representable if and only if its codomain-projection functor admits a right adjoint right inverse

Hom퐴(푓, 푔) 푝1 푝0

⊥ 퐶 푖 퐵 in which case the composite 푝0푖∶ 퐶 → 퐵 defines the representing functor and the 2-cell represented by the functor 푖∶ 퐶 → Hom퐴(푓, 푔) defines an absolute right lifting of 푔 through 푓.

71 Proof. If Hom퐴(푓, 푔) is represented on the right by a functor 푟∶ 퐶 → 퐵, then Hom퐴(푓, 푔) ≃ Hom퐵(퐵, 푟) over 퐶 × 퐵 and the codomain-projection functor is equivalent to 푝1 ∶ Hom퐵(퐵, 푟) ↠ 퐶, which admits a right adjoint right inverse 푖 by Lemma 3.4.8. The proof of Theorem 3.4.3 then shows that 푖 represents an absolute right lifting diagram. Thus, it remains only to prove the converse. To that end, suppose we are given a right adjoint right inverse adjunction 푝1 ⊣ 푖. Unpacking the definition, this provides an adjunction

푝1

퐶 ⊥ Hom퐴(푓, 푔)

푖 푝1 퐶 over 퐶 whose counit is an identity and whose unit 휂∶ id ⇒ 푖푝1 satisfies the conditions 휂푖 = id푖 and

푝1휂 = id푝1. By Theorem 3.4.7, to construct the fibered equivalence Hom퐵(퐵, 푟) ≃퐶×퐵 Hom퐴(푓, 푔) with 푟 ≔ 푝0푖, it suffices to demonstrate that the 2-cell defined by restricting the comma cone for Hom퐴(푓, 푔) along 푖 퐶 푖 푟 Hom퐴(푓, 푔) 푝1 푝0

휙 퐶 ⇐ 퐵

푔 푓 퐴 defines an absolute right lifting diagram. By 1-cell induction any 2-cell as displayed below-left induces a 1-cell 푚 as displayed below-center:

푏 푏

푏 푋 Hom (푓, 푔) 퐵 푋 Hom (푓, 푔) Hom (푓, 푔) 퐵 푋 퐵 푚 퐴 푝0 푚 퐴 퐴 푝0 ⇓휂 푐 ⇓휒 푓 = 푝1 ⇓휙 푓 = 푝1 푝1 ⇓휙 푓 푖 퐶 퐴 푐 푐 푔 퐶 푔 퐴 퐶 퐶 푔 퐴

Inserting the triangle equality 푝1휂 = id푝1 as displayed above-right constructs the desired factorization 푝0휂푚∶ 푏 ⇒ 푟푐 of 휒 through 휙푖. In fact, by 2-cell induction for the comma cone 휙, any 2-cell 휏0 ∶ 푏 ⇒ 푟푐 defining a factorization of 휒∶ 푓푏 ⇒ 푔푐 through 휙푖 must have the form 휏0 = 푝0휏 for some 2-cell 휏∶ 푚 ⇒ 푖푐 so that 휋1휏 = id푐. The pair (휏0, id푐) satisfies the compatibility condition of Proposition 3.3.6(ii) to induce a 2-cell 휏∶ 푚 ⇒ 푖푐. We’ll argue that the 2-cell 휏 is unique, proving that the factorization 푝0휏∶ 푏 ⇒ 푟푐 is also unique. To see this, note that the adjunction 푝1 ⊣ 푖 over 퐶 exhibits the right adjoint as a terminal element of the object 푝1 ∶ Hom퐴(푓, 푔) ↠ 퐶 in the slice 2-category (픥풦)/퐶. It follows, as in Lemma 2.2.4, that for any object 푐∶ 푋 → 퐶 and any morphism 푚∶ 푋 → Hom퐴(푓, 푔) over 퐶, there exists a unique 2-cell

72 푚 ⇒ 푖푐 over 퐶. Thus, there is a unique 2-cell 휏∶ 푚 ⇒ 푖푐 with the property that 푝1휏 = id푐, and so the factorization 푝0휏∶ 푏 ⇒ 푟푐 of 휒 through 휙푖 must also be unique. 

More concisely, Theorem 3.4.11 shows that a comma ∞-category Hom퐴(푓, 푔) is right representable just when its codomain-projection functor 푝1 ∶ Hom퐴(푓, 푔) ↠ 퐶 admits a terminal element as an object of the sliced ∞-cosmos 풦/퐶; dually, Hom퐴(푓, 푔) is left representable just when its domain- projection functor admits an initial element as an object of the sliced ∞-cosmos 풦/퐵; see Corollary 3.5.10. There is a small gap between this statement and the version proven in Theorem 3.4.11 having to do with the discrepancy between the homotopy 2-category of 풦/퐶 and the slice of the homotopy 2-category 픥풦 over 퐶. This is the subject to which we now turn. Exercises. 3.4.i. Exercise. How might one encode the existence of an adjunction 푓 ⊣ 푢 between a given oppos- ing pair of functors using comma ∞-categories? 3.5. Sliced homotopy 2-categories and fibered equivalences The ∞-category 퐴ퟚ of arrows in 퐴 together with its domain- and codomain-evaluation functors ퟚ (푝0, 푝1)∶ 퐴 ↠ 퐴 × 퐴 satisfies a weak universal property in the homotopy 2-category that charac- terizes the ∞-category up to equivalence over 퐴 × 퐴; see Proposition 3.2.10. Similarly the comma ∞-category is characterized up to fibered equivalence, as defined in Definition 3.2.7. As commented upon in Remark 3.2.9 there is some ambiguity regarding the 2-categorical data required to specify a fibered equivalence, that we shall now address head-on. The issue is that, for an ∞-category 퐵 in an ∞-cosmos 풦, the homotopy 2-category 픥(풦/퐵) of the sliced ∞-cosmos of Proposition 1.2.17 is not isomorphic to the 2-category (픥풦)/퐵 of isofibrations, functors, and 2-cells over 퐵 in the homotopy 2-category 픥풦 of 풦; see Exercise 1.4.iii. However, there is a canonical comparison functor relating this pair of 2-categories that satisfies a property we now introduce: 3.5.1. Definition (smothering 2-functor). A 2-functor 퐹∶ 풜 → ℬ is smothering if it is • surjective on 0-cells; • full on 1-cells: for any pair of objects 퐴, 퐴′ in 풜 and 1-cell 푘∶ 퐹퐴 → 퐹퐴′ in ℬ, there exists 푓∶ 퐴 → 퐴′ in 풜 with 퐹푓 = 푘; 퐹푓 • full on 2-cells: for any parallel pair 푓, 푔∶ 퐴 ⇉ 퐴′ in 풜 and 2-cell 퐹퐴 ⇓훽 퐹퐴′ in ℬ, there 퐹푔 exists a 2-cell 훼∶ 푓 ⇒ 푔 in 풜 with 퐹훼 = 훽; and • conservative on 2-cells: for any 2-cell 훼 in 풜 if 퐹훼 is invertible in ℬ then 훼 is invertible in 풜. 3.5.2. Remark. Note that smothering 2-functors are surjective on objects 2-functors that are “locally smothering”: meaning that the action on hom-categories is by a smothering functor, as defined in 3.1.2. The prototypical example of a smothering 2-functor solves Exercise 1.4.iii. 3.5.3. Proposition. Let 퐵 be an ∞-category in an ∞-cosmos 풦. There is a canonical 2-functor

픥(풦/퐵) → (픥풦)/퐵

73 from the homotopy 2-category of the sliced ∞-cosmos 풦/퐵 to the 2-category of isofibrations, functors, and 2-cells over 퐵 in 픥풦 and this 2-functor is smothering. This follows more-or-less immediately from Lemma 3.1.5 but we spell out the details nonetheless.

Proof. The 2-categories 픥(풦/퐵) and (픥풦)/퐵 have the same objects — isofibrations with codomain 퐵 — and 1-cells — functors between the “total spaces” that commute with these isofibrations to 퐵 — so the canonical mapping may be defined to act as the identity on underlying 1-categories. By the definition of the sliced ∞-cosmos given in Proposition 1.2.17, a 2-cell between functors 푓, 푔∶ 퐸 ⇉ 퐹 from 푝∶ 퐸 ↠ 퐵 to 푞∶ 퐹 ↠ 퐵 is a homotopy class of 1-simplices in the quasi-category defined by the pullback of simplicial sets below-left

Fun퐵(퐸, 퐹) Fun(퐸, 퐹) (hFun)/퐵(퐸, 퐹) hFun(퐸, 퐹) ⌟ ⌟ 푞∗ 푞∗

ퟙ 푝 Fun(퐸, 퐵) ퟙ 푝 hFun(퐸, 퐵) Unpacking, a 2-cell 훼∶ 푓 ⇒ 푔 is represented by a 1-simplex 훼∶ 푓 → 푔 in Fun(퐸, 퐹) that whiskers with 푞 to the degenerate 1-simplex on the vertex 푝 ∈ Fun(퐸, 퐵), and two such 1-simplices represent the same 2-cell if and only if they bound a 2-simplex of the form displayed in (1.1.8) that also whiskers with 푞 to the degenerate 2-simplex on 푝. By contrast, a 2-cell in (픥풦)/퐵 is a morphism in the category defined by the pullback of categories above-right. Such 2-cells are represented by 1-simplices 훼∶ 푓 → 푔 in Fun(퐸, 퐹) that whisker with 푞 to 1-simplices in Fun(퐸, 퐵) that are homotopic to the degenerate 1-simplex on 푝, and two such 1-simplices represent the same 2-cell if and only if they are homotopic in Fun(퐸, 퐹). Applying the homotopy category functor h∶ 풬풞푎푡 → 풞푎푡 to the above-left pullback produces a cone over the above-right pullback, inducing a canonical map

픥(Fun퐵(퐸, 퐹)) → (hFun)/퐵(퐸, 퐹), which is the action on homs of the canonical 2-functor 픥(풦/퐵) → (픥풦)/퐵. The 2-functor just constructed is bijective on 0- and 1-cells. To see that it is full on 2-cells we must show that any 1-simplex 훼∶ 푓 → 푔 in Fun(퐸, 퐹), for which 푞훼∶ 푝 → 푝 is homotopic to 푝 ⋅ 휎0 ∶ 푝 → 푝 in Fun(퐸, 퐵), is homotopic in Fun(퐸, 퐹) to a 1-simplex from 푓 to 푔 over 푝 ⋅ 휎0. By Lemma 1.1.9, any such 훼 defines a lifting problem 푓 훼 1 Λ [2] Fun(퐸, 퐹) ∋ 푓 푔

푞∗ ↧

Δ[2] Fun(퐸, 퐵) ∋ 푝 푞훼 푝 푝

A solution exists since 푞∗ ∶ Fun(퐸, 퐹) ↠ Fun(퐸, 퐵) is an isofibration, proving that 픥(풦/퐵) → (픥풦)/퐵 is full on 2-cells. Now suppose 훼∶ 푓 → 푔 represents a 2-cell in Fun퐵(퐸, 퐹) whose image in (hFun)/퐵(퐸, 퐹) is an isomorphism. A map in a 1-category defined by a pullback is invertible if and only if its projections along the legs of the pullback cone are isomorphisms. Thus the image of 훼 is invertible if and only if 74 훼∶ 푓 → 푔 defines an isomorphism in hFun(퐸, 퐹), which by Definition 1.1.13 is the case if and only if 훼∶ 푓 → 푔 represents an isomorphism in Fun(퐸, 퐹). Since 훼 is fibered over the degenerate 1-simplex at 푝, this presents us with a lifting problem 훼 ퟚ Fun (퐸, 퐹) Fun(퐸, 퐹) 퐵 ⌟ 푞∗

핀 ퟙ 푝 Fun(퐸, 퐵) which Exercise 1.1.v tells us we can solve. This proves that 픥(풦/퐵) → (픥풦)/퐵 reflects invertibility of 2-cells and hence defines a smothering 2-functor.  Smothering 2-functors are not strictly speaking invertible, but nevertheless 2-categorical struc- tures from the codomain can be lifted to the domain: 3.5.4. Lemma. Smothering 2-functors reflect equivalences: for any smothering 2-functor 퐹∶ 풜 → ℬ and 1-cell 푓∶ 퐴 → 퐵 in 풜, if 퐹푓∶ 퐹퐴 ⥲ 퐹퐵 is an equivalence in ℬ then 푓 is an equivalence in 풜. Proof. By fullness on 1-cells, an equivalence inverse 푔′ ∶ 퐹퐵 ⥲ 퐹퐴 to 퐹푓 lifts to a 1-cell 푔∶ 퐵 → ′ ′ 퐴 in 풜. By fullness on 2-cells, the isomorphisms id퐹퐴 ≅ 푔 ∘ 퐹푓 and 퐹푓 ∘ 푔 ≅ id퐹퐵 also lift to 풜 and by conservativity on 2-cells these lifted 2-cells are also invertible.  Applying Lemma 3.5.4 to the smothering 2-functor

픥(풦/퐵) → (픥풦)/퐵 we resolve the ambiguity about the 2-categorical data of a fibered equivalence. 3.5.5. Proposition.

(i) Any equivalence in (픥풦)/퐵 lifts to an equivalence in 픥(풦/퐵). That is, fibered equivalences over 퐵 may be specified by defining an opposing pair of 1-cells 푓∶ 퐸 → 퐹 and 푔∶ 퐹 → 퐸 over 퐵 together with invertible 2-cells id퐸 ≅ 푔푓 and 푓푔 ≅ id퐹 that lie over 퐵 in 픥풦. (ii) Moreover, if 푓∶ 퐸 → 퐹 is a map between isofibrations over 퐵 that admits an not-necessarily fibered equivalence inverse 푔∶ 퐹 → 퐸 with not-necessarily fibered 2-cells id퐸 ≅ 푔푓 and 푓푔 ≅ id퐹, then this data is isomorphic to a genuine fibered equivalence. Proof. The first statement is proven by Lemma 3.5.4 and Proposition 3.5.3. The second statement asserts that the forgetful 2-functor (픥풦)/퐵 → 픥풦 reflects equivalences. Exercise 3.5.i shows that for any map between isofibrations over 퐵 that admits an equivalence inverse in the underlying 2-category, the inverse equivalence and invertible 2-cells can be lifted to also lie over 퐵.  This gives a 2-categorical proof of Proposition 1.2.17(vii), that for any ∞-category 퐵 in an ∞-cosmos 풦, the forgetful functor 풦/퐵 → 풦 preserves and reflects equivalences. The smothering 2-functor 픥(풦/퐵) → (픥풦)/퐵 can also be used to lift adjunctions that are fibered 2-categorically over 퐵 to adjunctions in the sliced ∞-cosmos 풦/퐵.

75 3.5.6. Definition (fibered adjunction). A fibered adjunction over an ∞-category 퐵 in an ∞-cosmos 풦 is an adjunction 푓 퐸 ⊥ 퐹 푢 퐵 in the sliced ∞-cosmos 풦/퐵. We write 푓 ⊣퐵 푢 to indicate that specified maps over 퐵 are adjoint over 퐵. 3.5.7. Lemma (pullback and pushforward of fibered adjunctions). (i) A fibered adjunction over 퐵 can be pulled back along any functor 푘∶ 퐴 → 퐵 to define a fibered adjunction over 퐴. (ii) A fibered adjunction over 퐴 can be pushed forward along any isofibration 푝∶ 퐴 ↠ 퐵 to define a fibered adjunction over 퐵. ∗ Proof. By Proposition 1.3.3(v), pullback defines a cosmological functor 푘 ∶ 풦/퐵 → 풦/퐴, which ∗ descends to a 2-functor 푘 ∶ 픥(풦/퐵) → 픥(풦/퐴) that carries fibered adjunctions over 퐵 to fibered ad- junctions over 퐴. This proves (i). Composition with an isofibration 푝∶ 퐴 ↠ 퐵 also defines a 2-functor 푝∗ ∶ 픥(풦/퐴) → 픥(풦/퐵); the reason we ask 푝 to be an isofibration is due to our convention that the objects in the sliced ∞-cosmoi are isofibrations over a fixed base. Thus, composition with an isofibration carries a fibered adjunction over 퐴 to a fibered adjunction over 퐵 proving (ii).  In analogy with Lemma 3.5.4, we have: 3.5.8. Lemma. If 퐹∶ 풜 → ℬ is a smothering 2-functor, then any adjunction in ℬ may be lifted to an adjunction in 풜. Proof. Exercise 3.5.ii.  Many of the examples of fibered adjunctions we will encounter are right adjoint right inverses or left adjoint right inverses to a given isofibration. The next result shows that whenever an isofibration 푝∶ 퐸 ↠ 퐵 admits a left adjoint with unit an isomorphism, then this left adjoint may be modified so as to define a left adjoint right inverse, making the adjunction fibered over 퐵. The dual also holds: 3.5.9. Lemma. Let 푝∶ 퐸 ↠ 퐵 be any isofibration that admits a right adjoint 푟′ ∶ 퐵 → 퐸 with counit ′ ′ 휖∶ 푝푟 ≅ id퐵 an isomorphism. Then 푟 is isomorphic to a functor 푟 that lies strictly over 퐵 and defines a right adjoint right inverse to 푝. Thus any such 푝 defines a fibered adjunction 푝

퐸 ⊥ 퐵

푝 푟 퐵 in 풦/퐵 whose right adjoint 푟 lies strictly over 퐵, whose counit is the identity 2-cell, and in which the unit 휂 lies over 퐵 in the sense that 푝휂 = id푝. Proof. Exercise 3.5.iii.  76 Since the identity on 퐵 defines the terminal object of the sliced ∞-cosmos 풦/퐵, Lemma 3.5.9 can be summarized more compactly as follows: 3.5.10. Corollary. An isofibration 푝∶ 퐸 ↠ 퐵 admits a right adjoint right inverse if and only if it admits a terminal element as an object of 풦/퐵. Dually, 푝∶ 퐸 ↠ 퐵 admits a left adjoint right inverse if and only if it admits an initial element as an object of 풦/퐵

3.5.11. Example. Lemma 3.4.8 constructs an adjunction in the sliced 2-category 픥풦/퐴. Lemma 3.5.8 now allows us to lift it to a genuine adjunction

푝1

퐴 ⊥ Hom퐵(퐵, 푓)

푖 푝1 퐴 in the sliced ∞-cosmos 풦/퐴. By Corollary 3.5.10 this situation may be summarized by saying that 푝1 ∶ Hom퐵(퐵, 푓) ↠ 퐴 admits a terminal element over 퐴. By Lemma 3.5.7(i), we may pull back the fibered adjunction along any element 푎∶ 1 → 퐴 to obtain an adjunction !

1 ⊥ Hom퐵(퐵, 푓푎)

푖푎 that identifies a terminal element in the fiber Hom퐵(퐵, 푓푎) of 푝1 ∶ Hom퐵(퐵, 푓) ↠ 퐴 over 푎. This generalizes the result of Corollary 3.4.9. 3.5.12. Example (the fibered adjoints to composition). For any ∞-category 퐴, the adjoints to the “composition” functor ∘∶ 퐴ퟚ × 퐴ퟚ → 퐴ퟚ constructed in Lemma 2.1.13 may be constructed by com- 퐴 posing a triple of adjoint functors that are fibered over the endpoint-evaluation functors

0 퐴푠 ⊥ ퟛ 1 ퟚ 퐴 퐴푑 퐴 ⊥ 푠1 (ev2,ev0) 퐴 (ev1,ev0) 퐴 × 퐴 with an adjoint equivalence involving a functor 퐴ퟛ ⥲→퐴ퟚ × 퐴ퟚ, which also lies over 퐴 × 퐴. Lemma 퐴 3.5.9 and its dual implies that these adjoint equivalences can be lifted to fibered adjoint equivalences over 퐴 × 퐴, and now both adjoint triples and hence also the composite adjunctions

(−,iddom(−))

⊥ 퐴ퟚ × 퐴ퟚ ∘ 퐴ퟚ 퐴 ⊥

(idcod(−),−) (ev1,ev0) (ev2,ev0) 퐴 × 퐴 77 lie in 풦/퐴×퐴. This fibered adjunction figures in the proof of a result that will allow us to convert limit and colimit diagrams into right and left Kan extension diagrams in the next chapter. 3.5.13. Proposition. A cospan as displayed below-left admits an absolute right lifting if and only if the cospan displayed below-right admits an absolute right lifting

퐵 Hom퐴(푓, 퐴) 푟 푓 푖 푝1 ⇓휌 ⇓휖 퐶 푔 퐴 퐶 푔 퐴 in which case the the 2-cell 휖 is necessarily an isomorphism and can be chosen to be an identity. Proof. By Theorem 3.4.11, a cospan admits an absolute right lifting if and only if the codomain- projection functor from the associated comma ∞-category admits a right adjoint right inverse. Our task is thus to show that this right adjoint right inverse exists for Hom퐴(푓, 푔) if and only if this right adjoint right inverse exists for Hom퐴(푝1, 푔). From the defining pullback (3.3.2) that constructs the comma ∞-category Hom퐴(푝1, 푔) repro- duced below-left, we have the below-right pullback square

ퟚ Hom퐴(푝1, 푔) Hom퐴(퐴, 푔) 퐴 ⌟ ⌟ (푝1,푝0) (푝1,푝0) Hom퐴(푝1, 푔) Hom퐴(퐴, 푔) ⌟ ⇝ 푝 퐶 × Hom퐴(푓, 퐴) 퐶 × 퐴 퐴 × 퐴 0 퐶×푝1 푔×퐴 휋 휋 Hom (푓, 퐴) 퐴 퐴 푝1 Hom (푓, 퐴) 퐴 퐴 푝1 (3.5.14) By Lemma 3.5.7, the composition-identity fibered adjunction of Example 3.5.12 pulls back along 푔 × 푓∶ 퐶 × 퐵 → 퐴 × 퐴 to define a fibered adjunction

Hom퐴(푝1, 푔) ≅ Hom퐴(퐴, 푔) × Hom퐴(푓, 퐴) ∘ Hom퐴(푓, 푔) 퐴 ⊥ (푝 ,푝 ) (푝1,푝0) 1 0 퐶 × 퐵 which then pushes forward along the projection 휋∶ 퐶 × 퐵 ↠ 퐶 to a fibered adjunction over 퐶

⊥ Hom퐴(푝1, 푔) ∘ Hom퐴(푓, 푔) ⊥

푝1 푝1 퐶

78 between the codomain-projection for Hom퐴(푝1, 푔) and the codomain projection for Hom퐴(푓, 푔). Now by Corollary 3.5.10, 푝1 ∶ Hom퐴(푓, 푔) ↠ 퐶 admits a right adjoint right inverse just when the object on the right admits a terminal element, while 푝1 ∶ Hom퐴(푝1, 푔) ↠ 퐶 similarly admits a right adjoint right inverse just when the object on the left admits a terminal element. By Theorem 2.4.2, a terminal element on either side is carried by the appropriate right adjoint to a terminal element on the other side. This proves the equivalence of these conditions. It remains only to prove that the 2-cell for the absolute right lifting of 푔 through 푝1 is invertible. By Theorem 3.4.11, this 2-cell is constructed as by restricting the comma cone along the terminal element, so it is given by the composite

푝0 ퟚ 퐶 Hom퐴(푝1, 푔) 퐴 ⇓휅 퐴 푝1 where the left-hand map is the terminal element just constructed and the middle one comes comes from the defining pullback diagram displayed on the left of (3.5.14). As just argued, that terminal element may be chosen to be in the image of the right adjoint Hom퐴(푓, 푔) → Hom퐴(퐴, 푔) ×퐴 Hom퐴(푓, 퐴) ≅ Hom퐴(푝1, 푔), whose component on the left factor is the identity. Simultaneously, ퟚ the pullback defining the map Hom퐴(푝1, 푔) → 퐴 factors through the projection onto the left factor, so we see that the 2-cell in the absolute right lifting diagram is represented by the composite

푝0 (id ,−) 푖 cod(−) 휋 ퟚ 퐶 Hom퐴(푓, 푔) Hom퐴(퐴, 푔) × Hom퐴(푓, 퐴) Hom퐴(퐴, 푔) 퐴 ⇓휅 퐴 퐴 푝1 and hence that this cell is invertible.  Exercises. 3.5.i. Exercise. Let 퐵 be an object in a 2-category 풞 and consider a map 푓 퐸 퐹

퐵 between isofibrations over 퐵. Prove that if 푓 is an equivalence in 풞 then 푓 is also an equivalence in the slice 2-category 풞/퐵 of isofibrations over 퐵, 1-cells that form commutative triangles over 퐵, and 2-cells that lie over 퐵 in the sense that they whisker with the codomain isofibration to the identity 2-cell on the domain isofibration. 3.5.ii. Exercise. Let 퐹∶ 풜 → ℬ be a smothering 2-functor. Show that any adjunction in ℬ can be lifted to an adjunction in 풜. Demonstrate furthermore that if we have previously specified a lift of the objects, 1-cells, and either the unit or counit of the adjunction in ℬ, then there is a lift of the remaining 2-cell that combines with the previously specified data to define an adjunction in 풜. This proves a more precise version of Lemma 3.5.8. 3.5.iii. Exercise. Prove Lemma 3.5.9.

79

CHAPTER 4

Adjunctions, limits, and colimits II

Comma ∞-categories provide a vehicle for encoding the universal properties of categorical con- structions that restrict to define equivalences between the internal mapping spaces introduced in Def- inition 3.3.9 between suitable pairs of elements. Using the theory developed in Chapter 3, we quickly prove a variety of results of this type first for adjunctions in §4.1 and then for limits and colimits in §4.3. In an interlude in §4.2, we introduce the ∞-categories of cones over or under a diagram as a comma ∞-category and then give a second model for these ∞-categories of cones in the case of dia- grams indexed by simplicial sets built from Joyal’s join construction. Then we conclude in §4.4 with an application, constructing the loops ⊢ suspension adjunction for pointed ∞-categories, containing an element that is both initial and terminal. 4.1. The universal property of adjunctions Our first result shows that an adjunction between an opposing pair of functors can equally be encoded by a “transposing equivalence” between their left and right representations as comma ∞-cat- egories. 4.1.1. Proposition. An opposing pair of functors 푢∶ 퐴 → 퐵 and 푓∶ 퐵 → 퐴 define an adjunction 푓 ⊣ 푢 if and only if Hom퐴(푓, 퐴) ≃ Hom퐵(퐵, 푢) over 퐴 × 퐵. Proof. This is a special case of Theorem 3.4.7. If 푓 ⊣ 푢, then Lemma 2.3.6 tells us that its counit 휖∶ 푓푢 ⇒ id퐴 defines an absolute right lifting diagram. Theorem 3.4.7 then tells us that the 1-cell induced by the left-hand pasted composite

Hom퐵(퐵, 푢) 푦 Hom퐵(퐵, 푢) 푝 푝 푝 푝 1 0 1 휙 0 Hom (푓, 퐴) ⇐ 퐴 = 푝1 푝0 퐴 푢 퐵 휖 휙 ⇐ ⇐ 푓 퐴 퐵 퐴 푓 퐴 defines a fibered equivalence Hom퐵(퐵, 푢) ⥲ Hom퐴(푓, 퐴) over 퐴 × 퐵. We interpret this result as saying that in the presence of an adjunction 푓 ⊣ 푢, the right comma cone over 푢 transposes to define the left comma cone over 푓.¹

¹If desired, an inverse equivalence can be constructed by applying the dual of Theorem 3.4.7 to the absolute left lifting diagram presented by the unit.

81 Conversely, Theorem 3.4.7 tells us that from a fibered equivalence Hom퐵(퐵, 푢) ⥲ Hom퐴(푓, 퐴) over 퐴 × 퐵 one can extract a 2-cell that defines an absolute right lifting diagram 퐵 푢 푓 ⇓휖 퐴 퐴 Lemma 2.3.6 then tells us that this 2-cell defines the counit of an adjunction 푓 ⊣ 푢.  4.1.2. Observation (the transposing equivalence). To justify referring to the induced functor

Hom퐵(퐵, 푢) ⥲ Hom퐴(푓, 퐴) as a transposing equivalence, recall that the transpose of a 2-cell 휒∶ 푏 ⇒ 푢푎 across the adjunction 푓 ⊣ 푢 is computed by the left-hand pasting diagram below: 푋 푋 푥 푥 푋 푎 푏 푎 푏 휒 Hom (퐵, 푢) Hom퐵(퐵, 푢) ⇐ 퐵 푎 푏 푝 푝 ∼ 퐴 푢 퐵 = 1 휙 0 = 휖 ⇐ 푝1 푝0 ⇐ 푢 Hom (푓, 퐴) 푓 퐴 퐵 퐴 휖 푝1 푝0 퐴 ⇐ 휙 푓 ⇐ 퐴 퐴 퐵 푓 By the weak universal property of the right comma cone over 푢, the 2-cell 휒 is represented by the induced functor 푋 → Hom퐵(퐵, 푢), which then composes with the transposing equivalence to define a functor 푋 → Hom퐴(푓, 퐴) that represents the transpose of 휒, by the pasting diagram equalities from right to left.

4.1.3. Corollary. An adjunction 퐵 ⊥ 퐴 induces an equivalence Hom퐴(푓푏, 푎) ≃ Hom퐵(푏, 푢푎) 푢 over 푋 × 푌 for any pair of generalized elements 푎∶ 푋 → 퐴 and 푏∶ 푌 → 퐵. Proof. By the pullback construction of comma ∞-categories given in (3.3.2), the equivalence Hom퐴(푓, 퐴) ≃ Hom퐵(퐵, 푢) in 풦/퐴×퐵 pulls back along 푎×푏∶ 푋×푌 →퐴×퐵 to define an equivalence Hom퐴(푓푏, 푎) ≃ Hom퐵(푏, 푢푎) in 풦/푋×푌.  In particular, the equivalence of Proposition 4.1.1 pulls back to define an equivalence of internal mapping spaces, introduced in 3.3.9. 4.1.4. Proposition (the universal property of units and counits). Consider an adjunction 푓

퐵 ⊥ 퐴 with unit 휂∶ id퐵 ⇒ 푢푓 and counit 휖∶ 푓푢 ⇒ id퐴 . 푢

Then for each element 푎∶ 1 → 퐴, the component 휖푎 defines a terminal element of Hom퐴(푓, 푎), and for each element 푏∶ 1 → 퐵, the component 휂푏 defines an initial element of Hom퐵(푏, 푢). 82 Proof. By Corollary 4.1.3, the fibered equivalence Hom퐴(푓, 퐴) ≃퐴×퐵 Hom퐵(퐵, 푢) of Proposition 4.1.1 pulls back to define equivalences

Hom퐴(푓, 푎) ≃퐵 Hom퐵(퐵, 푢푎) and Hom퐴(푓푏, 퐴) ≃퐴 Hom퐵(푏, 푢).

By Corollary 3.4.9, id푢푎 induces a terminal element of Hom퐵(퐵, 푢푎) and by Observation 4.1.2 its image across the equivalence Hom퐵(퐵, 푢푎) ⥲ Hom퐴(푓, 푎) is again a terminal element, which represents the transposed 2-cell: the component of the counit 휖 at the element 푎. The proof that the unit component defines a terminal element of Hom퐵(푏, 푢) is dual.  A more sophisticated formulation of the universal property of unit and counit components will appear in Proposition 8.3.2 where it will form a key step in the proof that any adjunction extends to a homotopy coherent adjunction. The universal property of unit and counit components captured in Proposition 4.1.4 gives the main idea behind the adjoint functor theorems: a functor 푓∶ 퐵 → 퐴 admits a right adjoint just when for each element 푎∶ 1 → 퐴, the ∞-category Hom퐴(푓, 푎) admits a terminal element. The image of this terminal element under the domain-projection functor 푝0 ∶ Hom퐴(푓, 푎) ↠ 퐵 then defines the element 푢푎∶ 1 → 퐵 and the comma cone defines the component of the counit at 푎. The universal property of these unit components is then used to extend the mapping on elements to a functor 푢∶ 퐴 → 퐵. The result just stated is true in the ∞-cosmos of quasi-categories and in other ∞-cosmoi where universal properties are generated by the terminal ∞-category 1.² What is true in all ∞-cosmoi is the version of the result just stated where the quantifier “for each element 푎∶ 1 → 퐴” is replaced with “for each generalized element 푎∶ 푋 → 퐴,” in which case the meaning of “terminal element” should be enhanced to “terminal element over 푋”; see the remark after Corollary 3.4.9. Since every generalized element factors through the universal generalized element, namely the identity functor at 퐴, it suffices to prove:

4.1.5. Proposition. A functor 푓∶ 퐵 → 퐴 admits a right adjoint if and only if Hom퐴(푓, 퐴) admits a terminal element over 퐴. Dually, 푓∶ 퐵 → 퐴 admits a left adjoint if and only if Hom퐴(퐴, 푓) admits an initial element over 퐴. Proof. By Proposition 4.1.1, 푓∶ 퐵 → 퐴 admits a right adjoint if and only if the comma ∞-category Hom퐴(푓, 퐴) is right representable. Theorem 3.4.11 specializes to tell us that this is the case if and only if the codomain-projection functor 푝1 ∶ Hom퐴(푓, 퐴) ↠ 퐴 admits a right adjoint right inverse, which by Corollary 3.5.10 is equivalent to postulating a terminal element over 퐴.  The same suite of results from §3.4 specialize to theorems that encode the universal properties of limits and colimits. Before proving these, we first construct the ∞-category of cones over a fixed diagram and also construct alternate models for the ∞-categories of cones over varying 퐽-indexed diagrams, in the case where 퐽 is a simplicial set. Exercises. 4.1.i. Exercise. Prove that the transposing equivalence of Proposition 4.1.1, as elaborated upon in Observation 4.1.2, is natural with respect to pre-composing with a 2-cell 훽∶ 푏′ ⇒ 푏 or post-composing with a 2-cell 훼∶ 푎 ⇒ 푎′. ²We delay the discussion of “analytically-proven” theorems about quasi-categories until we demonstrate in Part IV that such results apply also in biequivalent ∞-cosmoi.

83 4.2. ∞-categories of cones 4.2.1. Definition (the ∞-category of cones). Let 푑∶ 1 → 퐴퐽 be a 퐽-shaped diagram in an ∞-category 퐴. The ∞-category of cones over 푑 is the comma ∞-category Hom퐴퐽(Δ, 푑) with comma cone displayed below-left, while the ∞-category of cones under 푑 is the comma ∞-category Hom퐴퐽(푑, Δ) with comma cone displayed below-right:

Hom퐴퐽(Δ, 푑) Hom퐴퐽(푑, Δ) 푝1 푝0 푝1 푝0 휙 휙 1 ⇐ 퐴 퐴 ⇐ 1

푑 Δ Δ 푑 퐴퐽 퐴퐽 By replacing the “푑” leg of the cospans, Definition 4.2.1 can be modified to allow 푑∶ 퐷 → 퐴퐽 to be a family of diagrams or to define ∞-categories of cones over any diagram of shape 퐽: an element of 퐽 Hom퐴퐽(Δ, 퐴 ) is a cone with any summit over any 퐽-indexed diagram. In the case where the indexing shape 퐽 is a simplicial set (and not an ∞-category in a cartesian closed ∞-cosmos), there is another model of the ∞-categories of cones over or under a diagram that may be constructed using Joyal’s join construction. The reason for the equivalence is that joins of simplicial sets are known to be equivalent to so-called “fat joins” of simplicial sets, and a particular instance of the fat join construction gives the shape of the cones appearing in Definition 4.2.1. We now introduce these notions. 4.2.2. Definition (fat join). The fat join of simplicial sets 퐼 and 퐽 is the simplicial set constructed by the following pushout: 휋퐼⊔휋퐽 (퐼 × 퐽) ⊔ (퐼 × 퐽) 퐼 ⊔ 퐽

⌜ 퐼 × ퟚ × 퐽 퐼 ⋄ 퐽 from which it follows that (퐼 ⋄ 퐽)푛 ≔ 퐼푛 ⊔ ( ᄁ 퐼푛 × 퐽푛) ⊔ 퐽푛. [푛]↠[1] Note there is a natural map 퐼 ⋄ 퐽 ↠ ퟚ induced by the projection 휋∶ 퐼 × ퟚ × 퐽 ↠ ퟚ so that 퐼 is the fiber over 0 and 퐽 is the fiber over 1: 퐼 ⊔ 퐽 퐼 ⋄ 퐽 ⌟

(0,1) ퟙ + ퟙ ퟚ 4.2.3. Lemma. For any simplicial set 퐽 and ∞-category 퐴 we have natural isomorphisms 퐽 ퟙ⋄퐽 퐽 퐽⋄ퟙ Hom퐴퐽(Δ, 퐴 ) ≅ 퐴 and Hom퐴퐽(퐴 , Δ) ≅ 퐴 .

84 Proof. The simplicial cotensor 퐴(−) ∶ 풮풮푒푡op → 풦 carries the pushout of Definition 4.2.2 to the pullback squares that define the left and right representations of Δ∶ 퐴 → 퐴퐽 as a comma ∞-category: 퐴ퟙ⋄퐽 (퐴퐽)ퟚ 퐴퐽⋄ퟙ (퐴퐽)ퟚ ⌟ ⌟ (푝1,푝0) (푝1,푝0)  퐴퐽 × 퐴 퐴퐽 × 퐴퐽 퐴 × 퐴퐽 퐴퐽 × 퐴퐽 id ×Δ Δ×id 4.2.4. Definition (join). The join of simplicial sets 퐼 and 퐽 is the simplicial set 퐼 ⋆ 퐽 퐼 ⊔ 퐽 퐼 ⋆ 퐽 ⌟

(0,1) ퟙ + ퟙ ퟚ with (퐼 ⋆ 퐽)푛 ∶= 퐼푛 ⊔ ( ᄁ 퐼푛−푘−1 × 퐽푘) ⊔ 퐽푛 0≤푘<푛 and with the vertices of these 푛-simplices oriented so that there is a canonical map 퐼 ⋆ 퐽 → ퟚ so that 퐼 is the fiber over 0 and 퐽 is the fiber over 1. See [24, §3] for more details. The join functor − ⋆ 퐽∶ 풮풮푒푡 → 풮풮푒푡 preserves connected colimits but not the initial object or other coproducts, but this issue can be rectified by replacing the codomain by the slice category under 퐽. Contextualized in this way, the join admits a right adjoint, defined by Joyal’s slice construction: 4.2.5. Proposition. The join functors admit right adjoints

퐼⋆− −⋆퐽 풮풮푒푡 ⊥ 퐼/풮풮푒푡 풮풮푒푡 ⊥ 퐽/풮풮푒푡 − −/− /− defined by the natural bijections ⎧ ⎫ ⎧ ⎫ ⎪ ⎪ ⎪ ⎪ ⎨⎪ 퐼 ⎬⎪ ⎨⎪ 퐽 ⎬⎪ ⎪ ℎ ⎪ ≅  Δ[푛] ℎ/푋 ￾ and ⎪ 푘 ⎪ ≅  Δ[푛] 푋 ￾ . ⎪ ⎪ ⎪ ⎪ /푘 ⎩ 퐼 ⋆ Δ[푛] 푋 ⎭ ⎩ Δ[푛] ⋆ 퐽 푋 ⎭

Proof. As in the statement, the simplicial set 푋/푘 is defined to have 푛-simplices corresponding to maps Δ[푛] ⋆ 퐽 → 푋 under 퐽, with the right action by the simplicial operators [푚] → [푛] given by pre-composition with Δ[푚] → Δ[푛]. Since the join functor − ⋆ 퐽∶ 풮풮푒푡 → 퐽/풮풮푒푡 preserves colimits, this extends to a bijection between maps 퐼 → 푋/푘 and maps 퐼 ⋆ 퐽 → 푋 under 퐽 that is natural in 퐼 and in 푘∶ 퐽 → 푋.  4.2.6. Notation. For any simplicial set 퐽, we write 퐽◁ ≔ ퟙ ⋆ 퐽 and 퐽▷ ≔ 퐽 ⋆ ퟙ and write ⊤ for the cone vertex of 퐽◁ and ⊥ for the cone vertex of 퐽▷. These simplicial sets are equipped with canonical inclusions 퐽◁ 퐽 퐽▷

85 4.2.7. Proposition (an alternate model). For any simplicial sets 퐼 and 퐽 and any ∞-category 퐴, there is a natural equivalence 퐴퐼⋆퐽 ∼ 퐴퐼⋄퐽

res res 퐴퐼⊔퐽 In particular, there are comma squares

◁ ▷ 퐴퐽 퐴퐽 res ev⊤ ev⊥ res 휙 휙 퐽 퐽 (4.2.8) 퐴 ⇐ 퐴 퐴 ⇐ 퐴

Δ Δ 퐴퐽 퐴퐽 Proof. There is a canonical map of simplicial sets

휋퐼⊔휋퐽 (퐼 × 퐽) ⊔ (퐼 × 퐽) 퐼 ⊔ 퐽

⌜ 퐼 × ퟚ × 퐽 퐼 ⋄ 퐽 퐼 ⋆ 퐽

ퟚ that commutes with the inclusions of the fibers 퐼 ⊔ 퐽 over the endpoints of ퟚ. This dashed map displayed above is defined on those 푛-simplices over 퐼 ⋄ 퐽 that map surjectively onto ퟚ to send a triple (훼∶ [푛] ↠ [1], 휎 ∈ 퐼푛, 휏 ∈ 퐽푛) representing an 푛-simplex of 퐼 ⋄ 퐽 to the pair (휎|{0,…,푘} ∈ 퐼푘, 휏|{푘+1,…,푛} ∈ −1 퐽푛−푘−1) representing an 푛-simplex of 퐼 ⋆ 퐽, where 푘 ∈ [푛] is the maximal vertex in 훼 (0). Proposition ?? of Appendix C proves that this map induces a natural equivalence 푄퐼⋆퐽 ⥲ 푄퐼⋄퐽 of quasi-categories over 푄퐽 × 푄퐼. Taking 푄 to be the functor space Fun(푋, 퐴) proves the claimed equivalence for general ∞-categories. ◁ ▷ Now Proposition 3.3.11 and Lemma 4.2.3 implies that this fibered equivalence equips 퐴퐽 and 퐴퐽 with comma cone squares. The 2-cells in (4.2.8) are represented by the maps 퐽 ⊔ 퐽 ퟙ ⊔ 퐽 퐽 ⊔ 퐽 퐽 ⊔ ퟙ

⌜ ⌜ 퐽 × ퟚ ퟙ ⋄ 퐽 퐽◁ 퐽 × ퟚ 퐽 ⋄ ퟙ 퐽▷

ퟚ ퟚ

86 which yield 2-cells

Δ ev⊤ res

푝0 푝0 ◁ ▷ 퐴퐽 (퐴퐽)ퟚ ⇓휅 퐴퐽 퐴퐽 (퐴퐽)ퟚ ⇓휅 퐴퐽

푝1 푝1 res Δ ev⊥ upon cotensoring into 퐴.  Exercises. 4.2.i. Exercise. Compute Δ[푛] ⋆ Δ[푚] and Δ[푛] ⋄ Δ[푚] and define a section Δ[푛] ⋆ Δ[푚] → Δ[푛] ⋄ Δ[푚] to the map constructed in the proof of Proposition 4.2.7. 4.3. The universal property of limits and colimits We now return to the general context of Definition 2.3.1, simultaneously considering diagrams valued in an ∞-category 퐴 that are indexed either by a simplicial set or by another ∞-category in the case where the ambient ∞-cosmos is cartesian closed. As was the case for Proposition 4.1.1, Theorem 3.4.7 specializes immediately to prove: 4.3.1. Proposition (co/limits represent cones). A family of diagrams 푑∶ 퐷 → 퐴퐽 admits a limit if and only if the ∞-category of cones Hom퐴퐽(Δ, 푑) over 푑 is right representable

Hom퐴퐽(Δ, 푑) ≃퐷×퐴 Hom퐴(퐴, ℓ), in which case the representing functor ℓ∶ 퐷 → 퐴 defines the limit functor. Dually, 푑∶ 퐷 → 퐴퐽 admits a colimit if and only if the ∞-category of cones Hom퐴퐽(푑, Δ) under 푑 is left representable

Hom퐴퐽(푑, Δ) ≃퐴×퐷 Hom퐴(푐, 퐴), in which case the representing functor 푐∶ 퐷 → 퐴 defines the colimit functor.  Theorem 3.4.11 now specializes to tell us that such representations can be encoded by terminal or initial elements, a result which is easiest to interpret in the case of a single diagram rather than a family of diagrams. 4.3.2. Proposition (limits as terminal elements). Consider a diagram 푑∶ 1 → 퐴퐽 of shape 퐽 in an ∞-category 퐴.

(i) If 푑 admits a limit, then the 1-cell 1 → Hom퐴퐽(Δ, 푑) induced by the limit cone 휖∶ Δℓ ⇒ 푑 defines a terminal element of the ∞-category of cones. (ii) Conversely, if the ∞-category of cones Hom퐴퐽(Δ, 푑) admits a terminal element, then the cone repre- sented by this element defines a limit cone.

Dually 푑 admits a colimit if and only if the ∞-category Hom퐴퐽(푑, Δ) of cones under 푑 admits an initial element, in which case the initial element defines the colimit cone.

87 Proof. By Definition 2.3.7, a limit cone defines an absolute right lifting diagram, which by Theo- rem 3.4.3, induces an equivalence Hom퐴(퐴, ℓ) ⥲ Hom퐴퐽(Δ, 푑) over 퐴. By Corollary 3.4.9, the identity at ℓ induces a terminal element of Hom퐴(퐴, ℓ) which the equivalence carries to a terminal element of the ∞-category of cones, this being the element that represents the limit cone 휖∶ Δℓ ⇒ 푑. Conversely, if Hom퐴퐽(Δ, 푑) admits a terminal element, this defines a right adjoint right inverse to the codomain-projection functor Hom퐴퐽(Δ, 푑). Theorem 3.4.11 then tells us that the cone represented by this element 1 → Hom퐴퐽(Δ, 푑) defines an absolute right lifting of 푑 through Δ.  4.3.3. Remark. The proof of Proposition 4.3.2 extends without change to the case of a family of di- agrams 푑∶ 퐷 → 퐴퐽 in place of a single diagram since Theorem 3.4.11 applies at this level of gen- erality. For a family of diagrams 푑 parametrized by 퐷, the ∞-category of cones defines an object 푝1 ∶ Hom퐴퐽(Δ, 푑) ↠ 퐷 of the sliced ∞-cosmos 풦/퐷 and the terminal elements referred to in both (i) and (ii) should be interpreted as terminal elements in 풦/퐷. 4.3.4. Proposition. An ∞-category 퐴 admits a limit of a family of diagrams 푑∶ 퐷 → 퐴퐽 indexed by a simplicial set³ 퐽 if and only if there exists an absolute right lifting of 푑 through the restriction functor

◁ 퐴퐽 ran res ⇓휖 퐷 퐴퐽 푑 When these equivalent conditions hold, 휖 is necessarily an isomorphism and may be chosen to be the identity. Proof. By Definition 2.3.7, the family of diagrams admits a limit if and only if 푑 admits an absolute right lifting through Δ∶ 퐴 → 퐴퐽. By Proposition 3.5.13, such an absolute lifting diagram exists if and 퐽 only if 푑 admits an absolute right lifting through codomain-projection functor 푝1 ∶ Hom퐴퐽(Δ, 퐴 ) ↠ 퐴퐽, in which case the 2-cell of this latter absolute right lifting diagram is invertible. By Proposition ◁ 4.2.7, the restriction functor res∶ 퐴퐽 ↠ 퐴퐽 is equivalent to this codomain-projection functor, so absolute right liftings of 푑 through 푝1 are equivalent to absolute right liftings of 푑 through res. If this absolute lifting diagram is inhabited by an invertible 2-cell, the isomorphism lifting property of the ◁ isofibration proven in Proposition 1.4.10 can be used to replace the functor ran∶ 퐷 → 퐴퐽 with an isomorphic functor making the triangle commute strictly.  Recall from Lemma 2.3.6 that absolute lifting diagrams can be used to encode the existence of adjoint functors. Combining this with Definition 2.3.2, Proposition 4.3.4 specializes to prove: 4.3.5. Corollary. An ∞-category 퐴 admits all limits indexed by a simplicial set 퐽 if and only if the restriction functor res ◁ 퐴퐽 ⊥ 퐴퐽 ran

³We have stated this result for diagrams indexed by simplicial sets because its means is easiest to interpret, but we 퐽 퐽 actually prove it with the codomain-projection functor 푝1 ∶ Hom퐴퐽 (Δ, 퐴 ) ↠ 퐴 in place of the equivalent isofibration ◁ 퐴퐽 ↠ 퐴퐽, and this proof applies equally in the case of diagrams indexed by ∞-categories 퐽 in cartesian closed ∞-cosmoi that may or may not have a join operation available.

88 admits a right adjoint. Dually, an ∞-category 퐴 admits all colimits indexed by a simplicial set 퐽 if and only if the restriction functor lan ▷ 퐴퐽 ⊥ 퐴퐽 res admits a left adjoint.  4.3.6. Remark. Since the restriction functor is an isofibration, Lemma 3.5.9 applies and the adjunc- tions of Corollary 4.3.5 can be defined so as to be fibered over the ∞-category of diagrams 퐴퐽. The adjunctions of Corollary 4.3.5 are particular useful in the case of pullbacks and pushouts. 4.3.7. Definition (pushouts and pullbacks). A pushout in an ∞-category 퐴 is a colimit indexed by the simplicial set ⟔≔ Λ0[2]. Dually, a pullback in an ∞-category 퐴 is a limit indexed by the simplicial set ⟓≔ Λ2[2]. Cones over diagrams of shape ⟓ or cones under diagrams of shape ⟔ define commutative squares, diagrams of shape ⊡ ≔ Δ[1] × Δ[1] ≅⟔▷≅⟓◁ . A pullback square in an ∞-category 퐴 is an element of 퐴⊡ in the essential image of the functor ran of Proposition 4.3.4 for some diagram of shape ⟓. When 퐴 admits all pullbacks, these are exactly those elements of 퐴⊡ at which the component of the unit of the adjunction res ⊣ ran of Corollary 4.3.5 is an isomorphism. Dually, a pushout square in 퐴 is an element in the essential image of the dual functor lan for some diagram of shape ⟔, i.e., those elements for which the component of the counit of the adjunction lan ⊣ res is an isomorphism. An 푋-indexed commutative square in 퐴 is a diagram 푋 → 퐴⊡, or equivalently, an element of Fun(푋, 퐴)⊡. We label the 0- and 1-simplex components as follows: 푑 푢 푏 푣 푤 푓 ∈ Fun(푋, 퐴)

푐 푔 푎 The diagram also determines a pair of 2-simplices that witness commutativity 푓푢 = 푤 = 푔푣 in hFun(푋, 퐴), but the names of these witnesses won’t matter for this discussion. 4.3.8. Lemma. An 푋-indexed commutative square valued in an ∞-category 퐴 in 풦 as below-left is a pullback square if and only if the induced 2-cell below-right is an absolute right lifting diagram in 풦/푋: 푢 푑 푏 Hom퐴(퐴, 푏) ⌜푢⌝ ⌜푓 ⌝ 푣 푤 푓 ⇓(id푎,푣) ∗ 푐 푎 푋 Hom (퐴, 푎) 푔 ⌜푔⌝ 퐴 푝1 푝1 푋 89 푐 The statement requires some explanation. The 1-simplex 푔∶ 푐 → 푎 represents a 2-cell 푋 ⇓푔 퐴 , 푎 inducing the map ⌜푔⌝∶ 1 → Hom퐴(퐴, 푎). The map ⌜푢⌝∶ 푋 → Hom퐴(퐴, 푏) is defined similarly. The map ⌜푓∗⌝∶ Hom퐴(퐴, 푏) → Hom퐴(퐴, 푎) is characterized by the pasting diagram

Hom퐴(퐴, 푏) Hom (퐴, 푏) 퐴 ⌜푓∗⌝ 푝1 푝0 푝1 휙 푝0 = ⇐ Hom퐴(퐴, 푎) 푏 푝1 휙 푝0 푋 ⇓푓 퐴 ⇐ 푎 푋 푎 퐴

By Proposition 3.3.7, the composite ⌜푓∗⌝⌜푢⌝ is isomorphic to ⌜푓푢⌝. By 2-cell induction, the 2-cell may be constructed by specifying its domain and codomain components, the former of which we take to 푑 be 푋 ⇓푣 퐴 and the latter of which we take to be id푎. Note that the 2-cell just constructed lies 푐 in 픥풦/푋 and so can be lifted to 픥(풦/푋) by Proposition 3.5.3. Proof. We prove the result in the case 푋 = 1 and then deduce the result for families of pullback diagrams from this case. By Proposition 4.2.7, the pullback ⊡ ⊡ 퐴푔∨푓 퐴 ⌟ res

1 퐴⟓ 푔∨푓 is equivalent to the ∞-category of cones over the cospan diagram 푔 ∨ 푓. By Proposition 4.3.2, to ⊡ show that the commutative square defines a pullback diagram is to show that (푢, 푣, 푓, 푔)∶ 1 → 퐴푔∨푓 ⊡ defines a terminal element in the pullback. We will show that this pullback 퐴푔∨푓 is also equivalent to Hom the comma ∞-category Hom퐴(퐴,푎)(⌜푓∗⌝, ⌜푔⌝). By Theorem 3.4.11, the pair (⌜푢⌝, (id푎, 푣)) defines an absolute right lifting if and only if it represents a terminal element in this comma ∞-category, which will prove the claimed equivalence. To see this first consider the diagram, which induces a map between the two pullbacks

ퟛ 푝01 ퟚ 퐴/푓 퐴 퐴 푝푓 ⌟ 푝02

Hom (퐴, 푎) 퐴ퟚ 푝12 푝1 퐴 ⌟

푓 푝1 푝 푋 퐴ퟚ 0 퐴

푝1 푋 푎 퐴

90 1 Since 퐴ퟛ ≃ 퐴Λ [2], the right-hand back square is equivalent to a pullback. Composing the pullback squares in the back face of the diagram, we obtain an equivalence 퐴/푓 ⥲ Hom퐴(퐴, 푏) and by in- spection see that the map 푝푓 ∶ 퐴/푓 ↠ Hom퐴(퐴, 푎) is equivalent to the map ⌜푓∗⌝∶ Hom퐴(퐴, 푏) → Hom퐴(퐴, 푎) over Hom퐴(퐴, 푎). ퟚ By applying (−) to the pullback diagram that defines Hom퐴(퐴, 푎) we obtain a pullback square that factors as: ퟚ ퟚ⋄ퟙ ퟚ×ퟚ Hom퐴(퐴, 푎) 퐴 퐴 ⌟ ⌟ ퟚ 푝1 1 푎 퐴 Δ 퐴ퟚ By the equivalence 퐴ퟚ⋄ퟙ ≃ 퐴ퟚ⋆ퟙ of Proposition 4.2.7, the left-hand pullback square shows that ퟚ ퟛ Hom퐴(퐴, 푎) is equivalent to the pullback of 푝2 ∶ 퐴 ↠ 퐴 along 푎∶ 1 → 퐴. Modulo this equiv- ퟚ alence, the map 푝0 ∶ Hom퐴(퐴, 푎) ↠ Hom퐴(퐴, 푎) is the pullback of the fibered map 푝 퐴ퟛ 02 퐴ퟚ

푝2 푝1 퐴 ퟛ along 푎∶ 1 → 퐴 and the codomain projection is similarly the pullback of the fibered map 푝12 ∶ 퐴 ↠ 퐴ퟚ. Putting this together, it follows that the pullback

ퟚ HomHom (퐴,푎)(⌜푓∗⌝, Hom퐴(퐴, 푎)) Hom퐴(퐴, 푎) 퐴 ⌟ 푝0

Hom퐴(퐴, 푏) Hom퐴(퐴, 푎) ⌜푓∗⌝ is equivalently computed by forming the limit 푝 • 퐴⊡ 퐴ퟛ 12 퐴ퟚ ⌟ ⌟ 푝02 퐴ퟛ 퐴ퟚ 푝02 푝12 1 퐴ퟚ 푓 Hom Hom Hom The codomain projection 푝1 ∶ Hom퐴(퐴,푎)(⌜푓∗⌝, 퐴(퐴, 푎)) ↠ 퐴(퐴, 푎) is the pullback of the ퟚ top-horizontal composite in the above diagram along Hom퐴(퐴, 푎) → 퐴 . So we see that the comma Hom ∞-category Hom퐴(퐴,푎)(⌜푓∗⌝, ⌜푔⌝) is equivalently computed by the limit below-left, or equivalently

91 by the limit below right, exactly as we claimed:

• ⌟ • ⌟ 1 푔

⊡ ퟛ 푝12 ퟚ ⊡ ⊡ • 퐴 퐴 퐴 퐴푔∨푓 퐴 ⌟ ⌟ ⌟ 푝02 res

ퟛ ퟚ ⟓ 퐴 푝 퐴 1 퐴 02 푔∨푓 푝12 1 퐴ퟚ 푓 The same computation proves the general case for 푋 ≠ 1 when the comma ∞-category is con- structed in 풦/푋; see Proposition 1.2.17 for a description of the simplicial limits in sliced ∞-cosmoi. ⊡ Alternatively, a diagram 푠∶ 푋 → 퐴 in 풦 also defines a 푋-indexed diagram in the ∞-cosmos 풦/푋 ⊡ valued in the ∞-category 휋∶ 퐴 × 푋 → 푋. This takes the form of a functor (푑, id푋)∶ 푋 → 퐴 × 푋 over 푋. It’s easy to verify that a diagram valued in 휋∶ 퐴 × 푋 ↠ 푋 whose component at 푋 is the identity has a limit in 풦/푋 if and only if the 퐴-component of the diagram has a limit in 풦. Since id푋 is the terminal object of 풦/푋, this object is the ∞-category 1 ∈ 풦/푋, so the proof just give applies to prove the general case of 푋-indexed families of commutative squares.  There is an automorphism of the simplicial set ퟚ × ퟚ that swaps the “intermediate” vertices (0, 1) and (1, 0), which induces a “transposition” automorphism of 퐴⊡. By symmetry, a commutative square in 퐴 is a pullback if and only if its transposed square is a pullback. This gives a dual form of Lemma 4.3.8 with the roles of 푓 and 푔 and of 푢 and 푣 interchanged. As a corollary, we can easily prove that pullback squares compose both “vertically” and “horizontally” and can be cancelled from the “right” and “bottom”: 4.3.9. Proposition (composition and cancelation of pullback squares). Given a composable pair of 푋-indexed commutative squares in 퐴 and their composite rectangle defined via the equivalence 퐴ퟛ×ퟚ ≃ 퐴⊡ × 퐴⊡ 퐴ퟚ 푝 푥 푑 푢 푏

푦 푧 푣 푤 푓 푒 푐 푎 ℎ 푔 if the right-hand square is a pullback, then the left-hand square is a pullback if and only if the composite rectangle is a pullback.

Proof. By Lemma 4.3.8, we are given an absolute right lifting diagram in 풦/푋

Hom퐴(퐴, 푐) ⌜푣⌝ ⌜푔∗⌝ ⇓(id푎,푢) 푋 Hom (퐴, 푎) ⌜푓⌝ 퐴

92 By Lemma 2.4.1, the composite diagram

Hom퐴(퐴, 푒)

⌜ℎ∗⌝ ⌜푦⌝ ⇓(id푐,푥) Hom퐴(퐴, 푐) ⌜푣⌝ ⌜푔∗⌝ ⇓(id푎,푢) 푋 Hom (퐴, 푎) ⌜푓⌝ 퐴 is an absolute right lifting diagram in 풦/푋 if and only if the top triangle is an absolute right lifting diagram in 풦/푋. By Lemma 4.3.8, this is exactly what we wanted to show.  Terminal elements are special cases of limits where the diagram shape is empty. For any ∞-category 퐴, the ∞-category of diagrams 퐴∅ ≅ 1, which tells us that there is a unique ∅-indexed diagram in 퐴. In this context, the ∞-categories of cones over or under the unique diagram constructed in Definition 4.2.1 are isomorphic to 퐴. In the case of cones over an empty diagram, the domain-evaluation functor, carrying a cone to its summit, is the identity on 퐴, while in the case of cones under the empty diagram, the codomain-evaluation functor, carrying a cone to its nadir, is the identity on 퐴. The following characterization of terminal elements can be deduced as a special case of Proposition 4.3.1, though we find it easier to argue from Proposition 4.1.1. 4.3.10. Proposition. For an element 푡∶ 1 → 퐴 of an ∞-category 퐴,

(i) 푡 defines a terminal element of 퐴 if and only if the domain-projection functor 푝0 ∶ Hom퐴(퐴, 푡) ↠ 퐴 is a trivial fibration. (ii) 푡 defines an initial element of 퐴 if and only if the codomain-projection functor 푝1 ∶ Hom퐴(푡, 퐴) ↠ 퐴 is a trivial fibration. Proof. Recall from Definition 2.2.1, that an element is terminal if and only if it is right adjoint to the unique functor ! 1 ⊥ 퐴 푡 By Proposition 4.1.1, ! ⊣ 푡 if and only if there is an equivalence Hom1(!, 1) ≃퐴 Hom퐴(퐴, 푡). By the defining pullback (3.3.2) for the comma ∞-category, the left representation of !∶ 퐴 → 1 is 퐴 itself, with domain-projection functor the identity. So the component of the equivalence Hom퐴(퐴, 푡) ⥲ 퐴 over 퐴 must be the domain projection functor 푝0 ∶ Hom퐴(퐴, 푡) ↠ 퐴, and we conclude that 푡 is a terminal element if and only if this isofibration is a trivial fibration.  4.3.11. Digression (terminal elements of a quasi-category). In the ∞-cosmos of quasi-categories the isofibration 푝0 ∶ Hom퐴(퐴, 푡) ↠ 퐴 is equivalent over 퐴 to the slice quasi-category 퐴/푡, defined as a right adjoint to the join construction of Definition 4.2.4. Proposition 4.3.10 proves that 푡 is terminal if and only if the projection 퐴/푡 ↠ 퐴 is a trivial fibration in the sense of Definition 1.1.23, which transposes to Joyal’s original definition of a terminal element of a quasi-category. See Appendix F for a full proof. We conclude with two results that could have been proven in Chapter 2, were it not for one small step of the argument, as we explain. A functor 푓∶ 퐴 → 퐵 preserves limits if the image of a limit cone in 퐴 also defines a limit cone in 퐵. In the other direction, a functor 푓∶ 퐴 → 퐵 reflects limits if a cone in 퐴 that defines a limit cone in 퐵 is also a limit cone in 퐴. 93 4.3.12. Proposition. A fully faithful functor 푓∶ 퐴 → 퐵 reflects any limits or colimits that exist in 퐴. Proof. The statement for limits asserts that given any family of diagrams 푑∶ 퐷 → 퐴퐽 of shape 퐽 in 퐴, any functor ℓ∶ 퐷 → 퐴 and cone 휌∶ Δℓ ⇒ 푑 as below-left so that the whiskered composite with 푓퐽 ∶ 퐴퐽 → 퐵퐽 displayed below is an absolute right lifting diagram 푓 퐴 퐵 ℓ Δ Δ ⇓휌 퐷 퐴퐽 퐵퐽 푑 푓퐽 then (ℓ, 휌) defines an absolute right lifting of 푑∶ 퐷 → 퐴퐽 through Δ∶ 퐴 → 퐴퐽. Our proof strategy mirrors the results of §2.4. By Corollary 3.4.6(i), to say that 푓 is fully faithful is to say that id퐴 ∶ 퐴 → 퐴 defines an absolute right lifting of 푓 through itself. So by Lemma 2.4.1 and the hypothesis just stated, the composite diagram below-left is an absolute right lifting diagram, and by 2-functoriality of the simplicial cotensor with 퐽, the diagram below-left coincides with the diagram below-right: 퐴 퐴 푓 Δ 퐴 퐵 = ℓ 퐴퐽 푓 ⇓휌 ℓ Δ Δ 푓퐽 ⇓휌 퐷 퐴퐽 퐵퐽 퐷 퐴퐽 퐵퐽 푑 푓퐽 푑 푓퐽 ퟚ By Corollary 3.4.6(iv) to say that 푓 is fully faithful is to say that ⌜id푓⌝∶ 퐴 ⥲ Hom퐵(푓, 푓) is a fibered 퐽 퐽 ퟚ equivalence over 퐴 × 퐴. Applying (−) ∶ 풦 → 풦, this maps to a fibered equivalence ⌜id푓퐽⌝∶ (퐴 ) ⥲ 퐽 퐽 퐽 퐽 퐽 퐽 퐽 Hom퐵퐽(푓 , 푓 ) over 퐴 × 퐴 , proving that if 푓∶ 퐴 → 퐵 is fully faithful, then 푓 ∶ 퐴 → 퐵 is also.⁴ 퐽 퐽 퐽 Hence by Corollary 3.4.6(i), id퐴퐽 ∶ 퐴 → 퐴 defines an absolute right lifting of 푓 through itself. Applying Lemma 2.4.1 again, we now conclude that (ℓ, 휌) is an absolute right lifting of 푑 through Δ as required.  An alternate approach to proving this result is suggested as Exercise 4.3.iii. Our final result, proves that, for 퐼 and 퐽 simplicial sets, whenever we are given a 퐽-indexed diagram valued in the ∞-category 퐴퐼 of 퐼-indexed diagrams in 퐴, its limit may be computed pointwise in the vertices of 퐼 as the limit of the corresponding 퐽-indexed diagram in 퐴. Our argument requires the following representable characterization of absolute lifting diagrams whose proof again makes use of the fact that they are preserved by cosmological functors. 4.3.13. Proposition. A natural transformation defined in an ∞-cosmos 풦 as below-left is an absolute right lifting diagram if and only if its “externalization” displayed below-right defines a right lifting diagram in 풬풞푎푡 퐵 Fun(퐶, 퐵) 푟 푟 푓 푓∗ ⇓휌 ↭ ⇓휌

퐶 푔 퐴 ퟙ 푔 Fun(퐶, 퐴)

⁴This is the statement that we could not yet prove in Chapter 2. 94 that is preserved by precomposition with any functor 푐∶ 푋 → 퐶 in 풦 in the sense that the diagram below is also right lifting: 푐∗ Fun(퐶, 퐵) Fun(푋, 퐵) Fun(푋, 퐵)

푟 푓 푓 푟푐 푓 ⇓휌 ∗ ∗ = ⇓휌푐 ∗ ퟙ Fun(퐶, 퐴) Fun(푋, 퐴) ퟙ Fun(푋, 퐶) 푔 푐∗ 푔푐 Moreover the externalized right lifting diagrams in 풬풞푎푡 are in fact absolute. Proof. Since Fun(ퟙ, −)∶ 풬풞푎푡 → 풬풞푎푡 is naturally isomorphic to the identity functor, for any ∞-categories 푋, 퐴 ∈ 풦 we have Fun(푋, 퐴) ≅ Fun(ퟙ, Fun(푋, 퐴)) and hence hFun(푋, 퐴) ≅ hFun(ퟙ, Fun(푋, 퐴)). (4.3.14) This justifies our use of the same name 휌 for the 2-cell in 픥풦 and the 2-cell in 픥풬풞푎푡 in the statement. To say that (푟, 휌) defines a right lifting of 푔 through 푓 in 픥풦 asserts a bijection between 2-cells in hFun(퐶, 퐵) with codomain 푟 and 2-cells in hFun(퐶, 퐴) with codomain 푔 and domain factoring through 푓 implemented by pasting with 휌. Under the correspondence of (4.3.14), this asserts equally that 푟 defines a right lifting of 푔 through 푓∗ in 픥풬풞푎푡. To say that (푟, 휌) defines an absolute right lifting of 푔 through 푓 is to assert the analogous right lifting property for the pair (푟푐, 휌푐) defined by restricting along any 푐∶ 푋 → 퐶. This is exactly the first claim of the statement. It remains only to argue that if (푟, 휌) is an absolute right lifting diagram in 풦, then its externalized right lifting diagram of quasi-categories is also absolute. To see this, first note that the cosmological functor Fun(퐶, −)∶ 풦 → 풬풞푎푡 preserves this absolute right lifting diagram, yielding an absolute right lifting diagram of quasi-categories as below left: Fun(퐶, 퐵) Fun(퐶, 퐵) Fun(퐶, 퐵) 푟∗ 푟 푟∗ 푓∗ 푓∗ = 푓∗ ⇓Fun(퐶,휌) ⇓휌 ⇓Fun(퐶,휌) id Fun(퐶, 퐶) Fun(퐶, 퐴) ퟙ Fun(퐶, 퐴) ퟙ 퐶 Fun(퐶, 퐶) Fun(퐶, 퐴) 푔∗ 푔 푔∗ We obtain the desired absolute right lifting diagram by evaluating at the identity.  4.3.15. Proposition. Let 퐼 and 퐽 be simplicial sets and let 퐴 be an ∞-category. Then a diagram as below-left is an absolute right lifting diagram ev 퐴퐼 퐴퐼 푖 퐴 lim lim Δ퐼 Δ퐼 Δ ⇓휌 ⇓휌 퐷 퐴퐼×퐽 퐷 퐴퐼×퐽 퐴퐽 푑 푑 ev푖 if for each vertex 푖 ∈ 퐼, the diagram above right is an absolute right lifting diagram. Note this statement is not a biconditional. Even in the case of strict 1-categories, there may exist coincidental limits of diagram valued in functor categories that are not defined pointwise [9, 2.17.10].

95 Proof. By Proposition 4.3.13, we may externalize and instead show that the diagram of quasi- categories displayed below left ev Fun(퐷, 퐴)퐼 Fun(퐷, 퐴)퐼 푖 Fun(퐷, 퐴)

lim Δ퐼 lim Δ퐼 Δ ⇓휌 ⇓휌 ퟙ Fun(퐷, 퐴)퐼×퐽 ퟙ Fun(퐷, 퐴)퐼×퐽 Fun(퐷, 퐴)퐽 푑 푑 ev푖 is absolute right lifting lifting if the diagrams above-right are for each vertex 푖 ∈ 퐼. By naturality of our methods, our proof will show that the absolute right lifting diagrams on the left are preserved by postcomposition with the restriction functors induced by 푑∶ 푋 → 퐷 if the same is true on the right. We simplify our notation and write 푄 for the quasi-category Fun(퐷, 퐴) and assume that for each 푖 ∈ 퐼 the diagram ev 푄퐼 푖 푄 lim Δ퐼 Δ ⇓휌 ퟙ 푄퐼×퐽 푄퐽 푑 ev푖 is absolute right lifting. By 2-adjunction (− × 퐼) ⊣ (−)퐼, a diagram as below-left is absolute right lifting if and only if the transposed diagram below-right is a right lifting diagram and this remains the case upon restricting along functors of the form 휋∶ 푋 × 퐼 → 퐼.⁵ 푄퐼 푄 lim lim Δ퐼 Δ (4.3.16) ⇓휌 ↭ ⇓휌 ퟙ 푄퐼×퐽 퐼 푄퐽 푑 푑 We’ll argue that this right-hand diagram is in fact absolute right lifting, which implies that the left- hand diagram is absolute right lifting as well, as desired. To see this we appeal to Corollary ??, a consequence of a general theorem proven in Appendix F that universal properties in 풬풞푎푡 are detected pointwise. Specifically, this tells us that the triangle above right is an absolute right lifting diagram if and only if the restricted diagram is absolute right lifting for each vertex 푖 ∈ 퐼 푄

lim Δ ⇓휌 ퟙ 푖 퐼 푄퐽 푑 and this is exactly what we have assumed in (4.3.16).  ⁵If the reader is concerned that 퐼 is not a quasi-category, there are two ways to proceed. One is to replace 퐼 by a quasi-category 퐼′ by inductively attaching fillers for inner horns; note that 퐼 and 퐼′ will have the same sets of vertices. ′ By Proposition 1.1.27, the diagram quasi-categories 푄퐼 and 푄퐼 are equivalent. The other option is to observe that it doesn’t matter if 퐼 is a quasi-category or not, because we may define hFun(퐼, 푄) ≔ h(푄퐼) and by Corollary 1.1.21 푄퐼 is a quasi-category regardless of whether 퐼 is.

96 Exercises. 4.3.i. Exercise. Prove that if 퐴 has a terminal element 푡 then for any element 푎 the mapping space Hom퐴(푎, 푡) is contractible, i.e., is equivalent to the terminal ∞-category 1. 4.3.ii. Exercise. Prove that a square in 퐴 is a pullback if and only if its “transposed” square, defined by composing with the involution 퐴⊡ ≅ 퐴⊡ induced from the automorphism of ퟚ × ퟚ that swaps the “off-diagonal” elements, is a pulllback square. 4.3.iii. Exercise ([60, 3.7]). Use Theorem 3.4.3 and Corollary 3.4.6(iv) to prove that a fully faithful functor 푓∶ 퐴 → 퐵 reflects all limits or colimits that exist in 퐴. Why does this argument not also show that 푓∶ 퐴 → 퐵 preserves them? 4.4. Loops and suspension in pointed ∞-categories 4.4.1. Definition (pointed ∞-categories). An ∞-category 퐴 is pointed if it admits a zero element: an element ∗∶ 1 → 퐴 that is both initial and terminal. The counit of the adjunction ∗ ⊣! that witnesses the initiality of the zero element defines a natural transformation 휌∶ ∗! ⇒ id퐴 that we refer to as the family of points of 퐴. Dually, the unit of the adjunction ! ⊣ ∗ that witnesses the terminality of the zero element defines a natural transformation 휉∶ id퐴 ⇒ ∗! that we refer to as the family of copoints. Cospans and spans in an ∞-category 퐴 may be defined by gluing together a pair of arrows along their codomains or domains respectively: 퐴⟓ 퐴ퟚ 퐴⟔ 퐴ퟚ ⌟ ⌟ 푝1 푝0 퐴ퟚ 퐴 퐴ퟚ 퐴 푝1 푝0 For instance, the family of points in a pointed ∞-category 퐴 is represented by a functor 휌∶ 퐴 → 퐴ퟚ whose domain-component is constant at ∗ and whose codomain component is id퐴. Gluing two copies of this map along their codomain defines a diagram 휌∶̌ 퐴 → 퐴⟓. Dually, there is a diagram 휉∶̂ 퐴 → 퐴⟔ defined by gluing the functor 휉∶ 퐴 → 퐴ퟚ that represents the family of copoints to itself along their domains. 4.4.2. Definition (loops and suspension). A pointed ∞-category 퐴 admits loops if it admits a limit of the family of diagrams 퐴 Ω Δ ⇓ 퐴 퐴⟓ 휌̌ in which case the limit functor Ω∶ 퐴 → 퐴 is called the loops functor. Dually, a pointed ∞-category 퐴 admits suspensions if it admits a colimit of the family of diagrams 퐴 Σ Δ ⇑ 퐴 퐴⟔ 휉̂ 97 in which case the colimit functor Σ∶ 퐴 → 퐴 is called the suspension functor. Importantly, if 퐴 admits loops and suspensions, then the loops and suspension functors are adjoint: 4.4.3. Proposition (the loops-suspension adjunction). If 퐴 is a pointed ∞-category that admits loops and suspensions, then the loops functor is right adjoint to the suspension functor Σ 퐴 ⊥ 퐴 Ω The main idea of the proof is easy to describe. If 퐴 admits all pullbacks and all pushouts, then Corollary 4.3.5 supplies adjunctions res lan

퐴⟓ ⊥ 퐴⊡ ⊥ 퐴⟔

ran res that are fibered over 퐴 × 퐴 upon evaluating at the intermediate vertices of the commutative square. By pulling back along (∗, ∗)∶ 1 → 퐴 × 퐴, we can pin these vertices at the zero element. Since the zero element is initial and terminal, the ∞-categories of pullback and pushout diagrams of this form are both equivalent to 퐴 and the pulled-back adjoints now coincide with the loops and suspension functors. The only subtlety in the proof that follows is that we have assumed weaker hypotheses: that 퐴 admits only loops and suspensions, but perhaps not all pullbacks and pushouts. ⟓ ⟓ Proof. The diagram 휌̌ lands in a subobject 퐴∗ of 퐴 defined below-left that is comprised of those pullback diagrams whose source elements are pinned at the zero element ∗ of 퐴. 휌 퐴 휌∨휌 퐴

휌̌∗ 휌̌∗ ⟓ ⟓ ⟓ ∼ 퐴∗ 퐴 퐴∗ Hom퐴(∗, 퐴) ⌟ 휌 ⌟

∼ 푝 ∼ 1 ∼ 1 퐴 × 퐴 Hom퐴(∗, 퐴) 퐴 (∗,∗) 푝1 ⟓ From a second construction of 퐴∗ displayed above-right and the characterization of initiality given in Proposition 4.3.10, we may apply the 2-of-3 property of equivalences to conclude first that 휌∶ 퐴 ⥲ ⟓ Hom퐴(∗, 퐴) and then that the induced diagram 휌̌∗ ∶ 퐴 ⥲ 퐴∗ are equivalences. Dually, the diagram ̂ ⟔ ̂ ⟔ 휉∶ 퐴 → 퐴 defines an equivalence 휉∗ ∶ 퐴 ⥲ 퐴∗ when its codomain is restricted to the subobject of pushout diagrams whose target elements are pinned at the zero element ∗. By Proposition 4.3.4, a pointed ∞-category 퐴 admits loops or admits suspensions if and only if there exist absolute lifting diagrams as below-left and below-right respectively: 퐴⊡ 퐴⊡ ran res lan res ≅⇓ ≅⇑ 퐴 퐴⟓ 퐴 퐴⟔ 휌̌ 휉̂

98 ⊡ By Theorem 3.4.3 the absolute right lifting diagram defines a right representation Hom퐴⊡(퐴 , ran) ≃ ⊡ Hom퐴⟓(res, 휌)̌ , this being a fibered equivalence over 퐴×퐴 . The represented comma ∞-category may ⊡ ⊡ be pulled back along the inclusion of the subobject 퐴∗ ↪ 퐴 of commutative squares in 퐴 whose intermediate vertices are pinned at the zero object:

⟓ ퟚ Hom ⟓(res, 휌)̌ (퐴 ) 퐴 ⌟

⟓ ퟚ Hom ⟓(res, 휌̌ ) (퐴 ) 퐴∗ ∗⌟ ∗ res ×휌̌ 퐴⊡ × 퐴 퐴⟓ × 퐴⟓

⊡ ⌝ ⟓ ⟓ 퐴∗ × 퐴 퐴∗ × 퐴∗ res ×휌̌∗ The right-hand face of this commutative cube is not strictly a pullback but the universal property of ⟓ ퟚ the zero element implies that the induced map from (퐴∗ ) to the pullback is an equivalence. It follows ⊡ ⟓ ⟓ that Hom퐴∗ (res, 휌̌∗) is equivalent over 퐴∗ × 퐴 to the pullback of Hom퐴 (res, 휌)̌ along this inclusion ⟓ and so the fibered equivalence pulls back to define a right representation for Hom퐴∗ (res, 휌̌∗). Dually, ⟔ ̂ ⟔ ̂ the left representation for Hom퐴 (휉, res) pulls back to a left representation for Hom퐴∗ (휉∗, res). By Theorem 3.4.7 these unpack to define absolute lifting diagrams: ⊡ ⊡ ⊡ ⊡ 퐴∗ 퐴∗ 퐴∗ 퐴∗ ran lan ran res ⇝ res lan res ⇝ res ≅⇓ ≅⇓ ≅⇑ ≅⇑ ⟓ ⟓ ⟓ ⟔ ⟔ ⟔ 퐴 퐴∗ 퐴∗ 퐴∗ 퐴 퐴∗ 퐴∗ 퐴∗ 휌̌∗ 휉̂∗ ⟓ ⟔ Restricting along the inverse equivalences 퐴∗ ⥲ 퐴 and 퐴∗ ⥲ 퐴 and pasting with the invertible 2-cell we obtain absolute lifting diagrams whose bottom edge is the identity. By Lemma 2.3.6, these lifting diagrams define adjunctions: res lan

⟓ ⊡ ⟔ 퐴 ≃ 퐴∗ ⊥ 퐴∗ ⊥ 퐴∗ ≃ 퐴

ran res which compose to the desired adjunction Σ ⊣ Ω.  4.4.4. Definition. An arrow 푓∶ 1 → 퐴ퟚ from 푥 to 푦 in a pointed ∞-category 퐴 admits a fiber if 퐴 admits a pullback of the diagram defined by gluing 푓 to the component 휌푦 of the family of points. By Proposition 4.3.4 such pullbacks give rise to a pullback square 퐴⊡ ran res ≅⇓ 1 퐴⟓ 휌푦∨푓 that is referred to as the fiber sequence for 푓. Dually, 푓 admits a cofiber if 퐴 admits a pushout of the diagram defined by gluing 푓 to the component 휉푥 of the family of copoints, in which case the pushout

99 square 퐴⊡ lan res ≅⇑ 1 퐴⟔ 휉푥∨푓 defines the cofiber sequence for 푓. Fiber and cofiber sequences define commutative squares in 퐴 whose lower-left vertex is the zero element ∗. The data of such squares is given by a commutative triangle in 퐴 — an element of 퐴ퟛ — together with a nullhomotopy of the diagonal edge, a witness that this edge factors through the zero element in h퐴. Borrowing a classical term from homological algebra, a commutative square in 퐴 whose lower-left vertex is the zero element is referred to as a triangle in 퐴. 4.4.5. Definition (stable ∞-category). A stable ∞-category is a pointed ∞-category 퐴 in which (i) every morphism admits a fiber and a cofiber: that is, there exist absolute lifting diagrams 퐴⊡ 퐴⊡ ran res lan res ≅⇓ ≅⇑ 퐴ퟚ 퐴⟓ 퐴ퟚ 퐴⟔ 휌∨id 휉∨id (ii) and a triangle in 퐴 defines a fiber sequence if and only if it also defines a cofiber sequence. Such triangles are called exact. A stable ∞-category admits loops and admits suspensions, formed by taking fibers of the arrows in the family of points and cofibers of arrows in the family of copoints respectively. 4.4.6. Proposition. If 퐴 is a stable ∞-category, then Σ ⊣ Ω are inverse equivalences. Proof. In the proof of Proposition 4.4.3, the adjunction Σ ⊣ Ω is constructed as a composite of adjunctions res lan

⟓ ⊡ ⟔ 퐴 ≃ 퐴∗ ⊥ 퐴∗ ⊥ 퐴∗ ≃ 퐴

ran res that construct fiber and cofiber sequences. By Proposition 2.1.9, the unit and counit of this composite adjunction are given by 퐴 퐴 퐴 lan res res lan ⇓≅ Ω ⇓휖 Σ ⊡ ⊡ ⊡ ⊡ 퐴∗ 퐴∗ 퐴∗ 퐴∗ Σ ⇓휂 Ω res ran ran ⇓≅ res 퐴 퐴 퐴 By Definition 4.3.7, the unit of res ⊣ ran restricts to an isomorphism on the subobject of pushout ⊡ squares. In a stable ∞-category, the cofiber sequences in the image of lan∶ 퐴 → 퐴∗ are pullback squares, so this tells us that 휂 lan is an isomorphism. Dually, the fiber sequences in the image of 100 ⊡ ran∶ 퐴 → 퐴∗ are pushout squares, which tells us that 휖 ran is an isomorphism. Hence, the unit and counit of Σ ⊣ Ω are invertible, so these functors define an adjoint equivalence.  4.4.7. Proposition (finite limits and colimits in stable ∞-categories). A stable ∞-category admits all pushouts and all pullbacks, and moreover, a square is pushout if and only if it is a pullback. Proof. Given a cospan 푔 ∨ 푓∶ 푋 → 퐴⟓ in 퐴, form the cofiber of 푓 followed by the fiber of the composite map 푐 → 푎 → coker 푓: ker(푞푔) 푢 푏 ∗ ⌟ ⌟ 푣 푓 ⌜ 푐 푔 푎 푞 coker(푓) By Definition 4.4.5(ii), the cofiber sequence 푏 → 푎 → ker 푓 is also a fiber sequence. By the pullback cancelation result of Proposition 4.3.9, we conclude that ker(푞푔) computes the pullback of the cospan 푔 ∨ 푓. To see that this pullback square is also a pushout, form the fiber of the map 푣: ker(푣) ker(푞푔) 푢 푏 ⌟ ⌟ 푣 푓

∗ 푐 푔 푎 By the pullback composition result of Proposition 4.3.9, ker(푣) is also the fiber of the map 푓. By Def- inition 4.4.5(ii), the fiber sequences ker(푣) → ker(푞푔) → 푐 and ker(푣) → 푏 → 푎 are also cofiber sequences. Now by the pushout cancelation result of Proposition 4.3.9, we see that the right-hand pullback square is also a pushout square. A dual argument proves that pushouts coincide with pull- backs.  Exercises. 4.4.i. Exercise. Arguing in the homotopy category, show that if an ∞-category 퐴 • admits an initial element 푖, • admits a terminal element 푡, and • there exists an arrow 푡 → 푖 then 퐴 is a pointed ∞-category.

101

CHAPTER 5

Fibrations and Yoneda’s lemma

The fibers 퐸푏 of an isofibration 푝∶ 퐸 ↠ 퐵 over an element 푏∶ 1 → 퐵 are necessarily ∞-categories, so it is natural to ask where the isofibration also encodes the data of functors between the fibers in this family of ∞-categories. Roughly speaking, an isofibration defines a cartesian fibration just when the arrows of 퐵 act contravariantly functorially on the fibers and a cocartesian fibration when the arrows of 퐵 act covariantly functorially on the fibers. This action is not strict but rather pseudofunctorial or homotopy coherent in a sense that will be made precise when we study the comprehension construc- tion. One of the properties that characterizes cocartesian fibrations is an axiom that says that for any 2-cell with codomain 퐵 and specified lift of its source 1-cell, there is a lifted 2-cell with codomain 퐸 with that one cell as its source. In particular, this lifting property can be applied in the case where the 2-cell in question is a whiskered composite of an arrow in the homotopy category of 퐵 as below-left and the lift of the source 1-cell is the canonical inclusion of its fiber:

ℓ푎 ℓ푎

⇓휒 퐸푎 ⌟ 퐸 퐸푎 훽 퐸 훽∗(ℓ푎) 훽∗ 푝 = 퐸푏 ℓ 푝 (5.0.1) 푎 ⌟ 푏 1 ⇓훽 퐵 1 퐵

푏 푏

In this case the codomain 훽∗(ℓ푎) of the lifted cell 휒훽 displayed above right lies strictly above the codomain of the original 2-cell, and thus factors through the pullback defining its fiber. This de- fines a functor 훽∗ ∶ 퐸푎 → 퐸, the “action” of the arrow 훽 on the fibers of 푝. The pseudofunctoriality of these action maps arises from a universal property required of the specified lifted 2-cells, namely that they are cartesian in a sense we now define. 5.1. The 2-category theory of cartesian fibrations There is a standard notion of cartesian fibration in a 2-category developed by Street [55] that recovers the Grothendieck fibrations when specialized to the 2-category 풞푎푡. This is not the correct notion of cartesian fibration between ∞-categories as the universal property the usual notion demands of lifted 2-cells is too strict. Instead of referring to the notions defined here as “weak,” we would prefer to refer to the classical notion of cartesian fibration in a 2-category as “strict” were we to refer to it again, which we largely will not. To remind the reader of the interpretation of the data in the homotopy 2-category of an ∞-cosmos, we refer to 1- and 2-cells as “functors” and “natural transformations.” Before defining the notion of

103 cartesian fibration we describe the weak universal property enjoyed by a certain class of “upstairs” natural transformations. 5.1.1. Definition (푝-cartesian transformations). Let 푝∶ 퐸 ↠ 퐵 be an isofibration. A natural trans- 푒′ formation 푋 ⇓휒 퐸 with codomain 퐸 is 푝-cartesian if 푒 ″ 푒″ 푝푒 (i) induction: Given any natural transformations 푋 ⇓휏 퐸 and 푋 ⇓훾 퐵 so that 푝휏 = 푒 푝푒′ 푒″ 푝휒 ⋅ 훾, there exists a lift 푋 ⇓훾̄ 퐸 of 훾 so that 휏 = 휒 ⋅ 훾̄. 푒′ 푒″ 휏 푒 휒 훾̄ 푒′ ∈ hFun(푋, 퐸)

↧ 푝∗ 푝휏 푝푒″ 푝푒 ∈ hFun(푋, 퐵) 훾 푝휒 푝푒′

푒′ (ii) conservativity: Any fibered endomorphism of 휒 is invertible: if 푋 ⇓휁 퐸 is any natural 푒′ transformation so that 휒 ⋅ 휁 = 휒 and 푝휁 = id푝푒′ then 휁 is invertible. 5.1.2. Remark (why “cartesian”). The induction property for a 푝-cartesian natural transformation 휒∶ 푒′ ⇒ 푒 says that for any 푒″ ∶ 푋 → 퐸, there is a surjective function from the set hFun(푋, 퐸)(푒″, 푒′) of natural transformations from 푒″ to 푒′ to the pullback induced in the commutative square 휒∘− hFun(푋, 퐸)(푒″, 푒′) hFun(푋, 퐸)(푒″, 푒) 푝 푝

″ ′ ″ hFun(푋, 퐵)(푝푒 , 푝푒 ) 푝휒∘− hFun(푋, 퐵)(푝푒 , 푝푒) Were the induction property strict and not weak, this square would be a pullback, i.e., a “cartesian” square. It follows that 푝-cartesian lifts of a given 2-cell with specified codomain are unique up to fibered isomorphism:

푒′ 푒″ 5.1.3. Lemma (uniqueness of cartesian lifts). If 푋 ⇓휒 퐸 and 푋 ⇓휒′ 퐸 are 푝-cartesian lifts of 푒 푒 푒″ a common 2-cell 푝휒, then there exists an invertible 2-cell 푋 ≅⇓휁 퐸 so that 휒′ = 휒 ⋅ 휁 and 푝휁 = id.  푒′ 104 Proof. By induction, there exists 2-cells 휁∶ 푒″ ⇒ 푒′ and 휁′ ∶ 푒′ ⇒ 푒″ so that 휒′ = 휒 ⋅ 휁 and 휒 = 휒′ ⋅ 휁′ with 푝휁 = 푝휁′ = id. The composites 휁 ⋅ 휁′ and 휁′ ⋅ 휁 are then fibered automorphisms of 휒 and 휒′ and thus invertible by conservativity. Now the 2-of-6 property for isomorphisms implies that 휁 and 휁′ are also isomorphisms (though perhaps not inverses).  We frequently make use of the isomorphism stability of the 푝-cartesian transformations given by the following suite of observations: 5.1.4. Lemma. Let 푝∶ 퐸 ↠ 퐵 be an isofibration. (i) Isomorphisms define 푝-cartesian transformations. (ii) Any 푝-cartesian lift of an identity is a natural isomorphism. (iii) The class of 푝-cartesian transformations is closed under pre- and post-composition with natural isomor- phisms.

Proof. Exercise 5.1.i.  Furthermore: 푒′ 푒″ 푒″ 5.1.5. Lemma (more conservativity). If 푋 ⇓휒 퐸 , 푋 ⇓휒′ 퐸 , and 푋 ⇓휁 퐸 are 2-cells so 푒 푒 푒′ that 휒 and 휒′ are 푝-cartesian, 휒′ = 휒 ⋅ 휁, and 푝휁 is invertible, then 휁 is invertible. Proof. Given the data in the statement we can use the induction property for 휒′ applied to the pair (휒, 푝휁−1) to induce a candidate inverse 휁̂ for 휁 and then apply the conservativity property to conclude that 휁 ⋅ 휁̂ and 휁̂ ⋅ 휁 are both isomorphisms. By the 2-of-6 property, 휁 is an isomorphism, as desired.  We now introduce the class of cartesian fibrations. 5.1.6. Definition (cartesian fibration). An isofibration 푝∶ 퐸 ↠ 퐵 is a cartesian fibration if ∗ (i) Any natural transformation 훽∶ 푏 ⇒ 푝푒 as below-left admits a 푝-cartesian lift¹휒훽 ∶ 훽 푒 ⇒ 푒 as below-right: 푒 푒 푋 퐸 푋 ⇑휒훽 퐸 ⇑훽 ∗ 푝 = 훽 푒 푝 푏 퐵 퐵 푒′ (ii) The class of 푝-cartesian transformations is closed under restriction: that is, if 푋 ⇓휒 퐸 is 푒 푒′푓 푝-cartesian and 푓∶ 푌 → 푋 is any functor then 푌 ⇓휒푓 퐸 is 푝-cartesian. 푒푓 The lifting property (i) implies that a 푝-cartesian transformation 휒∶ 푒′ ⇒ 푒 is the “universal natural transformation over 푝휒 with codomain 푒” in the following weak sense: any transformation

∗ ∗ ¹To ask that 휒훽 ∶ 훽 푒 ⇒ 푒 is a lift of 훽∶ 푏 ⇒ 푝푒 asserts that 푝휒훽 = 훽 and hence 푝훽 푒 = 푏.

105 ′ ∗ ′ ∗ 휓∶ 푒 ⇒ 푒 factors through a 푝-cartesian lift 휒휓 ∶ (푝휓) 푒 ⇒ 푒 of 푝휓 via a 2-cell 훾∶ 푒 ⇒ (푝휓) 푒 over an identity, and moreover 휓 is 푝-cartesian if and only if this factorization 훾 is invertible. The reason for condition (ii) will become clearer in §5.3. For now, note that since all 푝-cartesian lifts of a given 2-cell 훽 are isomorphic and the class of 푝-cartesian cells is stable under isomorphism, to verify the condition (ii) it suffices to show that for any functor 푓∶ 푌 → 푋 there is some 푝-cartesian lift of 훽 that restricts along 푓 to another 푝-cartesian transformation. 5.1.7. Lemma (composites of cartesian fibrations). If 푝∶ 퐸 ↠ 퐵 and 푞∶ 퐵 ↠ 퐴 are cartesian fibrations, 푒′ then so is 푞푝∶ 퐸 ↠ 퐴. Moreover, a natural transformation 푋 ⇓휒 퐸 is 푞푝-cartesian if and only if 휒 is 푒 푝-cartesian and 푝휒 is 푞-cartesian. Proof. The first claim follows immediately from the second, for the lifts required by Definition

5.1.6(i) can be constructed by first taking a 푞-cartesian lift 휒훽 and then taking a 푝-cartesian lift 휒휒훽 of this lifted cell. 푒 푒 푒 ⇑휒 푋 퐸 푋 퐸 푋 휒훽 퐸 ∗ ⇑훽 푝 ⇑휒훽 푝 훽 푒 푝 퐵 = 푏 퐵 = 퐵 푎 푞 푞 푞 퐴 퐴 퐴 and the stability condition 5.1.6(ii) is then inherited from the stability of 푝- and 푞-cartesian transfor- mations. 푒′ To prove the second claim, first consider a natural transformation 푋 ⇓휒 퐸 that is 푝-cartesian 푒 ″ 푒″ 푞푝푒 and so that 푝휒 is 푞-cartesian. Given any natural transformations 푋 ⇓휏 퐸 and 푋 ⇓훾 퐴 so 푒 푞푝푒′ 푒″ that 푞푝휏 = 푞푝휒 ⋅ 훾, 푞-cartesianness of 푝휒 induces a lift 푋 ⇓훾̂ 퐵 of 훾 so that 푝휏 = 푝휒 ⋅ 훾̂. 푒′ 푒″ Now 푝-cartesianness of 휒 induces a further lift 푋 ⇓훾̄ 퐸 of 훾̂ so that 휏 = 휒 ⋅ 훾̄. Moreover, if 푒′ 푒′ 푋 ⇓휁 퐸 is any natural transformation so that 휒 ⋅ 휁 = 휒 and 푞푝휁 = id then 푝휒 ⋅ 푝휁 = 푝휒 and by 푒′ conservativity for 푝휒, 푝휁 is invertible. Applying Lemma 5.1.5, we conclude that 휁 is invertible. This proves that 휒 is 푞푝-cartesian. Conversely, if 휒 is 푞푝-cartesian, then Lemma 5.1.3 implies it is isomorphic to all other 푞푝-cartesian lifts of 푞푝휒. The construction given above produces a 푞푝-cartesian lift of any 2-cell that is 푝-cartesian

106 and whose image under 푝 is 푞-cartesian. By the isomomorphism stability of 푝- and 푞-cartesian trans- formations of Lemma 5.1.4, 휒 must also have these properties.  The following lemma proves that cartesian fibrations come equipped with a “generic 푝-cartesian transformation.” 5.1.8. Lemma. An isofibration 푝∶ 퐸 ↠ 퐵 is a cartesian fibration if and only if the right comma cone over 푝 displayed below-left admits a lift 휒 as displayed below-right:

푝1 푝1

Hom퐵(퐵, 푝) 퐸 Hom퐵(퐵, 푝) ⇑휒 퐸 ⇑휙 (5.1.9) 푝 = 푟 푝 푝0 퐵 퐵 with the property that the restriction of 휒 along any 푋 → Hom퐵(퐵, 푝) is a 푝-cartesian transformation.

Proof. If 푝∶ 퐸 ↠ 퐵 is cartesian, then the right comma cone 휙 admits a 푝-cartesian lift 휒∶ 푟 ⇒ 푝1 by 5.1.6(i), which by 5.1.6(ii) has the property that the restriction of this 푝-cartesian transformation along any 푋 → Hom퐵(퐵, 푝) is also 푝-cartesian. For the converse, suppose we are given the generic 푝-cartesian transformation 휒∶ 푟 ⇒ 푝1 of the statement and consider a 2-cell 훽∶ 푏 ⇒ 푝푒 as below-left. 푒 푒 푒 푝 푝 1 푋 퐸 푋 ⌜훽⌝ Hom퐵(퐵, 푝) 1 퐸 푋 ⌜훽⌝ Hom퐵(퐵, 푝) 퐸 ⇑휒 ⇓훽 ⇑휙 푝 = 푝 = 푟 푝 푝0 푏 푏 푏 퐵 퐵 퐵

By 1-cell induction 훽 = 휙⌜훽⌝ for some functor ⌜훽⌝∶ 푋 → Hom퐵(퐵, 푝) as above- center. By substitut- ing the equation (5.1.9) as above-right, we see that 휒⌜훽⌝ is a lift of 훽 whose codomain is 푝1⌜훽⌝ = 푒, as required. The hypothesis that restrictions of 휒 are 푝-cartesian implies that this lift is a 푝-cartesian transformation. Now Lemma 5.1.3 implies that any 푝-cartesian natural transformation is isomorphic to a restric- tion of 휒. Thus restrictions of 푝-cartesian transformations are isomorphic to restrictions of 휒, and it follows from Lemma 5.1.4 that the class of 푝-cartesian transformation is closed under restriction.  The first major result of this section is an internal characterization of cartesian fibrations inspired by a similar result of Street [55, 58, 59]; see also [63]. Before stating this result, recall from Lemma 3.4.8 that from a functor 푝∶ 퐸 ↠ 퐵, we can build a fibered adjunction 푝1 ⊣퐸 푖, where the right adjoint is induced from the identity 2-cell id푝: 푝 퐸 1 푖 푝 퐸 퐸 ⊥ Hom퐵(퐵, 푝) = 푝 ⇝ Hom퐵(퐵, 푝) = 푖 푝1 푝1 푝0 휙 퐸 퐵 ⇐ 푝 퐸 퐸 푝 퐵

107 Similarly, 1-cell induction for the right comma cone over 푝 applied to the generic arrow for 퐸 induces a functor 퐸ퟚ 퐸ퟚ 휅 푝1 ⇐ 푝0 푘 푝1 푝푝0 = (5.1.10) 퐸 Hom퐵(퐵, 푝) 푝1 푝0 푝 휙 ⇐ 퐵 퐸 푝 퐵 5.1.11. Theorem (an internal characterization of cartesian fibrations). For an isofibration 푝∶ 퐸 ↠ 퐵 the following are equivalent: (i) 푝∶ 퐸 ↠ 퐵 defines a cartesian fibration. (ii) The functor 푖∶ 퐸 → Hom퐵(퐵, 푝) admits a right adjoint over 퐵: 푖

퐸 ⊥ Hom퐵(퐵, 푝)

푟 푝 푝0 퐵 ퟚ (iii) The functor 푘∶ 퐸 → Hom퐵(퐵, 푝) admits a right adjoint with invertible counit: 푘 ퟚ 퐸 ⊥ Hom퐵(퐵, 푝) 푟̄

푒′ When these equivalent conditions hold, then for a natural transformation 푋 ⇓휓 퐸 the following are 푒 equivalent: (iv) 휓 is 푝-cartesian. (v) 휓 factors through a restriction of the 2-cell 푝1휖, where 휖 is the counit of the adjunction 푖 ⊣ 푟, via a natural isomorphism 훾̄ so that 푝훾̄ = id: 푒

푒 푝 푋 ⇑휓 퐸 = 푋 ⌜푝휓⌝ Hom퐵(퐵, 푝) ⇑휖 Hom퐵(퐵, 푝) 1 퐸 푒′ ≅⇑훾̄ 푟 푖 퐸 푒′ (vi) The component ⌜휓⌝ 푋 퐸ퟚ ⇓휂̄ 퐸ퟚ 푟푘̄ of the unit for 푘 ⊣ 푟̄ is invertible; that is, 휓 is in the essential image of the right adjoint.

108 The right adjoint of (ii) is the domain-component of the generic cartesian lift of (5.1.9); that carte- sian transformation is then recovered as 푝1휖, where 휖 is the counit of the fibered adjunction 푖 ⊣ 푟. This explains the statement of (v). By 1-cell induction, the generic cartesian lift 휒 can be represented ퟚ by a functor 푟∶̄ Hom퐵(퐵, 푝) → 퐸 and this defines the right adjoint of (iii) and explains the statement of (vi). Before proving Theorem 5.1.11 we make two further remarks on these postulated adjunctions.

5.1.12. Remark. By Lemma 3.4.8, the functor 푖∶ 퐸 → Hom퐵(퐵, 푝) is itself a right adjoint over 퐵 to the codomain-projection functor. Since the counit of the adjunction 푝1 ⊣ 푖 is an isomorphism, it follows formally that the unit of the adjunction 푖 ⊣ 푟 must also be an isomorphism, whenever the adjunction postulated in (ii) exists; see Lemma B.3.2. ퟚ 5.1.13. Remark. In the case where the ∞-categories 퐸 and Hom퐵(퐵, 푝) are defined by the strict simplicial limits of Definitions 3.2.1 and 3.3.1, the 1-cell 푘 induced in (5.1.10) can be modeled by an isofibration: 푝ퟚ 퐸ퟚ 푘

ퟚ Hom퐵(퐵, 푝) 퐵 ⌟ 푝 1 푝1 푝1

퐸 푝 퐵 namely the Leibniz cotensor of the codomain inclusion 1∶ ퟙ ↪ ퟚ and the isofibration 푝∶ 퐸 ↠ 퐵. Now Lemma 3.5.9 can be used to rectify the adjunction 푘 ⊣ 푟 of (iii) to a right adjoint right inverse adjunction, that is then fibered over Hom퐵(퐵, 푝). So when Theorem 5.1.11(iii) holds, we may model the postulated adjunction by a right adjoint right inverse to the isofibration 푘. Proof. We’ll prove (i)⇒(iii)⇒(ii)⇒(i) and demonstrate the equivalences (iv)⇔(vi) and (iv)⇔(v) in parallel. (i)⇒(iii): If 푝∶ 퐸 ↠ 퐵 is cartesian, then the right comma cone over 푝 admits a cartesian lift along 푝, 푝1 푝1

Hom퐵(퐵, 푝) 퐸 Hom퐵(퐵, 푝) ⇑휒 퐸 ⇑휙 푝 = 푟 푝 푝0 퐵 퐵 defining a functor 푟∶ Hom퐵(퐵, 푝) → 퐸 over 퐵 together with a 푝-cartesian transformation 휒∶ 푟 ⇒ 푝1. By 1-cell induction, this generic cartesian transformation is represented by a functor

푟 푝0 푟̄ ퟚ Hom퐵(퐵, 푝) ⇓휒 퐸 = Hom퐵(퐵, 푝) 퐸 ⇓휅 퐸 푝1 푝1 which we take as our definition of the putative right adjoint 푟̄. By the definition (5.1.10) of 푘, 휙푘푟̄ = ̄ ̄ 푝휅푟̄ = 푝휒 = 휙, so Proposition 3.3.7 supplies a fibered isomorphism 휖∶ 푘푟̄ ≅ id with 푝0휖 = id푝0 and ̄ 푝1휖 = id푝1. 109 To prove that 푘 ⊣ 푟̄, it remains to define the unit 2-cell 휂̄, which we do by 2-cell induction from a pair given by an identity 2-cell 푝1휂̄ = id푝1 and a 2-cell 푝0휂̄ that remains to be specified. The required compatibility condition of Proposition 3.3.6(ii) asserts that this 푝0휂̄ must define a factorization of the generic arrow 휅 푝0 푝1 푝0휂̄ 푝1휂=̄ id (5.1.14) 푝 푟푘̄ = 푟푘 푝 푘 0 휒푘 1 through 휅푟푘̄ = 휒푘. Note 푝휅 = 휙푘 has 휒푘 as its 푝-cartesian lift, so we define 푝0휂̄ by the induction prop- erty for the cartesian transformation 휒푘 applied to the generic arrow 휅∶ 푝0 ⇒ 푝1. By construction 푝푝0휂̄ = id. By Lemma B.4.1, once we verify that 푘휂̄ and 휂̄푟̄ are invertible, then this data this together with 휖∶̄ 푘푟̄ ≅ id defines an adjunction with invertible counit. We prove 푘휂̄ is invertible by 2-cell conserva- tivity: 푝1푘휂̄ = 푝1휂̄ = id and 푝0푘휂̄ = 푝푝0휂̄ = id. Similarly, by 2-cell conservativity, to conclude that 휂̄푟̄ is invertible, it suffices to prove that 푝0휂̄푟̄ is an isomorphism. Restricting (5.1.14) along 푟̄, we see that 푝0휂̄푟̄ defines a fibered isomorphism of 푝-cartesian transformations 휒 푟 푝1

푝0휂̄푟̄ 휒푘푟̄ 푝0푟푘̄ = 푟푘 so this follows from Lemma 5.1.5. Finally note that a transformation 휓∶ 푒′ ⇒ 푒 is 푝-cartesian if and only if its factorization through the generic 푝-cartesian lift of 푝휓 is invertible. This factorization may be constructed by restricting the 2-cells of (5.1.14) along ⌜휓⌝∶ 푋 → 퐸ퟚ since 휅⌜휓⌝ = 휓, so we see that 휓 is 푝-cartesian if and only if 푝0휂⌜휓⌝̄ is invertible. By 2-cell conservativity, 휂⌜휓⌝̄ is invertible if and only if its domain component is invertible. This proves that (iv)⇔(vi). (iii)⇒(ii): By Remark 5.1.13, we can model the left adjoint of (iii) by an isofibration 푘∶ 퐸ퟚ ↠ Hom퐵(퐵, 푝) and use Lemma 3.5.9 to rectify the adjunction 푘 ⊣ 푟̄ with invertible counit into a right adjoint right inverse adjunction, that is then fibered over Hom퐵(퐵, 푝). Composing with the projection 푝0 ∶ Hom퐵(퐵, 푝) ↠ 퐵, Lemma 3.5.7(ii) then gives us a fibered adjunction over 퐵 푘

ퟚ 퐸 ⊥ Hom퐵(퐵, 푝)

푟̄ 푝푝0 푝0 퐵 By the dual of Lemma 3.4.8, the 1-cell 푗∶ 퐸 → 퐸ퟚ induced by the identity defines a left adjoint right inverse to the domain projection 푝1 ⊥ 퐸 푗 퐸ퟚ (5.1.15) ⊥ 푝0

110 supplying a fibered adjunction 푗 ⊣ 푝0 over 퐸 that we push forward along 푝∶ 퐸 ↠ 퐵 to a fibered adjunction over 퐵: 푗

퐸 ⊥ 퐸ퟚ

푝 푝 0 푝푝0 퐵 This pair of fibered adjunctions composes to define a fibered adjunction over 퐵 with left adjoint 푘푗 and right adjoint 푟 ≔ 푝0푟̄. Proposition 3.3.7 supplies a fibered isomorphism 푖 ≅ 푘푗 since both 푖 and 푘푗 define functors 퐸 ⇉ Hom퐵(퐵, 푝) are induced by the identity id푝 over the right comma cone over 푝. Composing with this fibered isomorphism, we can replace the left adjoint of the composite adjunction by 푖 푖

푗 ≅ 푘 푖 ퟚ 퐸 ⊥ 퐸 ⊥ Hom퐵(퐵, 푝) = 퐸 ⊥ Hom퐵(퐵, 푝) 푝0 푟̄ 푝푝0 푟 푝 푝0 푝 푝 퐵 0 퐵 proving (ii). (ii)⇒(i): Now suppose given a fibered adjunction 푖

퐸 ⊥ Hom퐵(퐵, 푝)

푟 푝 푝0 퐵 We will show that the codomain component of the counit

푝1 Hom퐵(퐵, 푝) ⇑휖 Hom퐵(퐵, 푝) 퐸 푖 푟 퐸 satisfies the conditions of the generic 푝-cartesian transformation described in Lemma 5.1.8. This will then also demonstrate the equivalence (iv)⇔(v). The first thing to check is that 푝1휖 defines a lift of the right comma cone along 푝. To see this, consider the horizontal composite:

푝1 퐸

푝 Hom퐵(퐵, 푝) ⇑휖 Hom퐵(퐵, 푝) ⇑휙 푖 푟 퐸 푝0 퐵

111 Naturality of whiskering provides a commutative square

푝0휖 푝0푖푟 푝0

휙푖푟 휙 푝푝 푖푟 푝푝 1 푝푝1휖 1 in which 푝0휖 = id, as a fibered counit, and 휙푖푟 = id, since 휙푖 = id푝. Thus 푝푝1휖 = 휙 and we see that 푝1휖 is a lift of 휙 along 푝. It remains only to verify that the restriction of 푝1휖 along any functor defines a 푝-cartesian trans- formation. To that end, consider ⌜훽⌝∶ 푋 → Hom퐵(퐵, 푝) representing a 2-cell 훽∶ 푏 ⇒ 푝푒; our task is to verify that 푝1휖⌜훽⌝ is 푝-cartesian. Note that 푝푝1휖⌜훽⌝ = 휙⌜훽⌝ = 훽, so to prove the induction property, consider a 2-cell 휏∶ 푒″ ⇒ 푒 and a factorization 푝휏 = 훽 ⋅ 훾 for some 훾∶ 푝푒″ ⇒ 푏. Our task is to define a 2-cell 훾∶̄ 푒″ ⇒ 푟⌜훽⌝ so that the pasted composite 푒

푋 Hom (퐵, 푝) ⇑휖 Hom (퐵, 푝) 푝1 퐸 ⌜훽⌝ 퐵 퐵 ⇑훾̄ 푖 푟 퐸 푒″ is 휏. Transposing across the adjunction 푖 ⊣ 푟, it suffices instead to define a 2-cell 훾∶̂ 푖푒″ ⇒ ⌜훽⌝ so that 푝1훾̂ = 휏. We define 훾̂ by 2-cell induction from this condition and 푝0훾̂ = 훾, a pair which satisfies the 2-cell induction compatibility condition 푝푒″ 푝푒″

훾=푝0훾̂ 푝푝1훾=푝휏̂ 푏 푝푒 훽 precisely on account of the postulated factorization 푝휏 = 훽 ⋅ 훾. This verifies the induction condition of Definition 5.1.1(i). ̂ ̂ Now consider an endomorphism 휁∶ 푟훽 ⇒ 푟훽 so that 푝1휖⌜훽⌝⋅휁 = 푝1휖⌜훽⌝ and 푝휁 = id푏. Write 푟̄ ≔ ퟚ ⌜푝1휖⌝∶ Hom퐵(퐵, 푝) → 퐸 for the functor induced by 1-cell induction from the generic 푝-cartesian transformation. Now the conditions defining 휁 allow us to induce a 2-cell 휁∶̄ 푟⌜훽⌝̄ ⇒ 푟⌜훽⌝̄ satisfying ̄ ̄ 푝0휁 = 휁 and 푝1휁 = id. To prove that 휁 is invertible, will make use of the naturality of whiskering square for the horizontal composite Hom (퐵, 푝) 푝0 훾̄푟⌜훽⌝̄ 퐵 푝0푟⌜훽⌝ 푟푘푟⌜훽⌝̄ ⌜훽⌝ 푟̄ ≅ ퟚ ⇝ ̄ ≅ ̄ 푋 ⇓휁̄ 퐸 ⇓훾̄ 퐸 휁=푝0휁 푟푘휁 푟 훾̄푟⌜훽⌝̄ ⌜훽⌝ 푟̄ 푘 푝 푟⌜훽⌝̄ 푟푘푟⌜훽⌝̄ Hom퐵(퐵, 푝) Hom퐵(퐵, 푝) 0 ≅ where 훾̄ is a special case of the 2-cell just given this name to be described momentarily for which ̄ ̄ we will demonstrate that 훾̄푟̄ is an isomorphism. The composite 푘휁 is a 2-cell induced from 푝0푘휁 = ̄ ̄ ̄ 푝푝0휁 = 푝휁 = id and 푝1푘휁 = 푝1휁 = id, so by 2-cell conservativity, this is an isomorphism. Now 휁 is a composite of three isomorphisms and hence is invertible.

112 To complete the proof, we must define 훾̄ and prove that 훾̄푟̄ is invertible. Specializing the construc- tion just given, we define 훾̄ to be the induced 2-cell satisfying 푝훾̄ = id and 휅 = 푝1휖푘 ⋅ 훾̄. Transposing across the fibered adjunction 푖 ⊣ 푟, it suffices to define the transposed 2-cell 훾∶̂ 푖푝0 ⇒ 푘 so that 푝1훾̂ = 휅 and 푝0훾̂ = id. And we may transpose once more along an adjunction 푗 ⊣ 푝0 of (5.1.15) con- structed by the dual of Lemma 3.4.8. The counit 휈∶ 푗푝0 ⇒ id of this adjunction satisfied the defining conditions that 푝0휈 = id and 푝1휈 = 휅, so to construct 훾̂ satisfying the conditions just described, it suffices to define instead a 2-cell 휉∶ 푖 ⇒ 푘푗 satisfying the conditions 푝1휉 = id and 푝0휉 = id. These conditions are satisfied by the fibered isomorphism 휉∶ 푖 ≅ 푘푗 that arises by Proposition 3.3.7 since both 1-cells 퐸 ⇉ Hom퐵(퐵, 푝) are induced by the identity id푝. Unpacking these transpositions, 훾̄ is defined to be the composite

휂 휉 푟푘휈 훾̄ ≔ 푝0 ≅ 푟푖푝0 ≅ 푟푘푗푝0 푟푘 To verify that 훾̄푟̄ is invertible, it thus suffices to demonstrate that 푟푘휈푟̄ is invertible. To see this, we consider another pasting diagram 퐸 퐸 푟 푟 푖 푗 푝0 ⇓휖 ⇓휈 푟̄ ퟚ ퟚ 푘 푟 Hom퐵(퐵, 푝) Hom퐵(퐵, 푝) 퐸 퐸 Hom퐵(퐵, 푝) 퐸 ≅⇓휖̄

By the definition (5.1.10) of 푘, 휙푘푟̄ = 푝휅푟̄ = 푝휒 = 휙, so Proposition 3.3.7 supplies a fibered isomor- ̄ ̄ ̄ phism 휖∶ 푘푟̄ ≅ id with 푝0휖 = id푝0 and 푝1휖 = id푝1. Now naturality of whiskering supplies a commutative diagram of 2-cells 푟푘휈푟푖푟̄ 푟휖푖푟̄ 푟푘푗푝0푟푖푟̄ 푟푘푟푖푟̄ ≅ 푟푖푟 ≅

푟푘푗푟휖 푟푘푟휖̄ ≅ 푟휖 푟푘푗푝 푟̄ 푟푘푟̄ ≅ 푟 0 푟푘휈푟̄ 푟휖̄ Since 휖 is the counit of an adjunction 푖 ⊣ 푟 with invertible unit, 푟휖 is an isomorphism, so we see that 푟푘휈푟̄ is an isomorphism if and only if 푟푘휈푟푖푟̄ is. And this is the case since 푘휈푟푖̄ is an isomorphism by 2-cell conservativity: 푝0푘휈푟푖̄ = id푝, while 푝1푘휈푟푖̄ = 푝1휖푖, which is an isomorphism again because 휖 is the counit of an adjunction 푖 ⊣ 푟 with invertible unit.  One of the myriad applications of Theorem 5.1.11 is: 5.1.16. Corollary. Cosmological functors preserve cartesian fibrations and cartesian natural transforma- tions. Proof. By Theorem 5.1.11(i)⇔(iii), an isofibration 푝∶ 퐸 ↠ 퐵 in an ∞-cosmos 풦 is cartesian if ퟚ and only if the isofibration 푘∶ 퐸 ↠ Hom퐵(퐵, 푝) defined in Remark 5.1.13 admits a right adjoint right inverse. A cosmological functor 퐹∶ 풦 → ℒ preserves the class of isofibrations and the simpli- cial limits that define the domain and codomain of this 푘. Moreover, cosmological functors preserve adjunctions and natural isomorphisms, so if this adjoint exists in 풦 it also does in ℒ. Similarly, the internal characterization of 푝-cartesian natural transformations given by Theorem 5.1.11(iv)⇔(vi) is also preserved by cosmological functors. 

113 Another application of Theorem 5.1.11 is that it allows us to conclude that cartesianness is an equivalence-invariant property of isofibrations. 5.1.17. Corollary. Consider a commutative square between isofibrations whose horizontals are equivalences

푔 퐹 ∼ 퐸 푞 푝 퐴 ∼ 퐵 푓 Then 푝 is a cartesian fibration if and only if 푞 is a cartesian fibration in which case 푔 preserves and reflects cartesian transformations: 휒 is 푞-cartesian if and only if 푔휒 is 푝-cartesian. Proof. The commutative square of the statement induces a commutative square up to isomor- phism whose horizontals are equivalences

푔ퟚ 퐹ퟚ ∼ 퐸ퟚ 푘 ≅ 푘 ∼ Hom퐴(퐴, 푞) Hom퐵(퐵, 푝) Hom푓(푓,푔) By the equivalence-invariance of adjunctions, the left-hand vertical admits a right adjoint with invert- ible counit if and only if the right-hand vertical does, these adjunctions being defined in such a way that the mate of the given square is an isomorphism built by composing with the natural isomorphisms of the horizontal equivalences (see Proposition B.3.1). By Theorem 5.1.11(i)⇔(iii), it follows that 푝 is cartesian if and only if 푞 is cartesian. Supposing the postulated adjoints exist, via their construction, the whiskered composites 푔ퟚ휂 and 휂푔ퟚ of the units of the respective adjunctions are isomorphic. Hence the component at an element ⌜휒⌝∶ 푋 → 퐹ퟚ of 푔ퟚ휂 is invertible if and only if the component of 휂푔ퟚ is invertible; since 푔ퟚ is an equivalence, the former is the case if and only if the component of 휂 is invertible. By Theorem 5.1.11(iv)⇔(vi), this proves that 휒 is 푝-cartesian if and only if 푔휒 is 푞-cartesian.  In terminology we now introduce, the square defined by the equivalences and also the square defined by their inverses², defines a cartesian functor from 푞 to 푝. 5.1.18. Definition (cartesian functor). Let 푝∶ 퐸 ↠ 퐵 and 푞∶ 퐹 ↠ 퐴 be cartesian fibrations. A commutative square 푔 퐹 퐸 푞 푝 퐴 퐵 푓 defines a cartesian functor if 푔 preserves cartesian transformations: if 휒 is 푞-cartesian then 푔휒 is 푝-cartesian.

²For any inverse equivalences 푔′ and 푓′ to 푔 and 푓, there is a natural isomorphism 푞푔′ ≅ 푓′푓푞푔′ = 푓′푝푔푔′ ≅ 푓′푝. Using the isofibration property of 푞 of Proposition 1.4.10, 푔′ may be replaced by an isomorphic functor 푔″, which also defines an inverse equivalence to 푔 and for which the square 푞푔″ = 푓′푝 commutes strictly.

114 The internal characterization of cartesian functors makes use of a map between right representable comma ∞-categories induced by the commutative square 푓푞 = 푝푔 defined by Proposition 3.3.5. 5.1.19. Theorem (an internal characterization of cartesian functors). For a commutative square 푔 퐹 퐸 푞 푝 퐴 퐵 푓 between cartesian fibrations the following are equivalent: (i) The square (푔, 푓) defines a cartesian functor from 푞 to 푝. (ii) The mate of the canonical isomorphism 푔 푔 퐹 퐸 퐹 퐸 ≅⇙ ≅⇘ 푖 푖 ⇝ 푟 푟

Hom퐴(퐴, 푞) Hom퐵(퐵, 푝) Hom퐴(퐴, 푞) Hom퐵(퐵, 푝) Hom푓(푓,푔) Hom푓(푓,푔) in the diagram of functors over 푓∶ 퐴 → 퐵 is an isomorphism. (iii) The mate of the canonical isomorphism

푔ퟚ 푔ퟚ 퐹ퟚ 퐸ퟚ 퐹ퟚ 퐸ퟚ 푘 ≅⇙ 푘 ⇝ 푟̄ ≅⇘ 푟̄

Hom퐴(퐴, 푞) Hom퐵(퐵, 푝) Hom퐴(퐴, 푞) Hom퐵(퐵, 푝) Hom푓(푓,푔) Hom푓(푓,푔) in the diagram of functors is an isomorphism. Proof. We will prove (i)⇔(ii) and (i)⇔(iii). The idea in each case is similar. Conditions (ii) and (iii) imply that 푔 preserves the explicitly chosen cartesian lifts up to isomorphism, which by Lemma 5.1.3 implies that 푔 preserves all cartesian lifts. Conversely, assuming (i), we need to show that a whiskered copy of the counit of 푖 ⊣ 푟 and of the unit of 푘 ⊣ 푟̄ are isomorphisms. The counit of 푖 ⊣ 푟 and unit of 푘 ⊣ 푟̄ each encode the data of the factorizations of a natural transformation through the cartesian lift of its projection. It will follow from (i) that the cells in question are cartesian and the factorizations live over identities, so Lemma 5.1.5 will imply that these natural transformations are invertible. (i)⇔(iii): For convenience, we take the functors 푘 to be the isofibrations of Remark 5.1.13, so the square on the left hand side of (iii) commutes strictly and its mate is the 2-cell 휂푔̄ ퟚ푟̄. By Theorem 5.1.11(iv)⇔(vi), this component of 휂̄ is invertible if and only if 푔휒 is 푝-cartesian, where 휒 is the generic 푞-cartesian lift of Lemma 5.1.8 for the cartesian fibration 푞∶ 퐹 ↠ 퐴; recall 푟̄ = ⌜휒⌝. By that lemma again, 푔휒 is 푝-cartesian if and only if 푔 preserves cartesian transformations, since the other canonical 푞-cartesian lifts are constructed as restrictions of 휒. (i)⇔(ii): Let us write 푔̄ for Hom푓(푓, 푔) to save space. Since the unit of 푖 ⊣ 푟 is an isomorphism by Remark 5.1.12, the mate of the isomorphism on the left hand side of (ii) is isomorphic to 푟푔휖̄ , so our task is to show that this natural transformation is invertible if and only if 푔 defines a cartesian functor. Recall from the proof of Theorem 5.1.11(ii)⇒(i) that 푝1휖 defines the generic 푞-cartesian lift of

115 Lemma 5.1.8 for the cartesian fibration 푞∶ 퐹 ↠ 퐴, whiskering with 푔̄ ≔ Hom푓(푓, 푔)∶ Hom퐴(퐴, 푞) → Hom퐵(퐵, 푝) carries this to a 2-cell whose projection with 푝0 is an identity, since 푝0휖 = id, and whose projection along 푝1 is 푔푝1휖, by the commutativity of the left-hand portion of the diagram below. 푔 퐹 퐸 퐸 푟 푖 푖 푟 푖 ⇓휖 ⇓휖

Hom퐴(퐴, 푞) Hom퐴(퐴, 푞) 푔̄ Hom퐵(퐵, 푝) Hom퐵(퐵, 푝)

푝1 푝1 푝1

퐹 푔 퐸 퐸 Now naturality of whiskering provides a commutative square of natural transformations: 푟푔휖̄ 푝1푖푟푖푔푟 푟푔̄

푝1휖푖푔푟 ≅ 푝1휖푔̄ 푝 푔푖푟̄ 푝 푔̄ 1 푝1푔휖̄ 1 where we’ve simplified some of the names since 푝1푖 = id. Since 휖 is the counit of an adjunction 푖 ⊣ 푟 with invertible unit, 휖푖 is an isomorphism. Note 푝푟푔휖̄ = 푝0푔휖̄ = id and the right-hand vertical 푝1휖푔̄ is a 푝-cartesian lift of the restriction of 휙푔̄, this 휙 being the right comma cone over 푝, which equals the whiskered right comma cone 푓휙, this 휙 being the right comma cone over 푞, by the definition of 푔̄. The bottom horizontal 푝1푔휖̄ is similarly a lift of 푓휙 = 휙푔̄. So if 푔 is a cartesian functor, the right-hand vertical and bottom horizontal are both 푝-cartesian lifts of a common 2-cell and the conservativity property implies that 푟푔휖̄ is invertible. Conversely, if 푟푔휖̄ is invertible, the 푝1푔휖̄ = 푔푝1휖 is isomorphic to a 푝-cartesian transformation and is consequently 푝-cartesian. Since Lemma 5.1.8 constructs the other canonical 푞-cartesian lifts as restrictions of 푝1휖, this is the case if and only if 푔 is a cartesian functor.  5.1.20. Proposition (pullback stability). If 푔 퐹 퐸 ⌟ 푞 푝 퐴 퐵 푓 is a pullback square and 푝 is a cartesian fibration then 푞 is a cartesian fibration. Moreover, a natural transfor- mation 휒 with codomain 퐹 is 푞-cartesian if and only if 푔휒 is 푝-cartesian, and in particular the pullback square defines a cartesian functor.

116 Proof. We apply Theorem 5.1.11(i)⇒(iii) in the form described in Remark 5.1.13 to the cartesian fibration 푝, which yields a fibered adjunction 푘

ퟚ 퐸 ⊥ Hom퐵(퐵, 푝) (5.1.21) 푘 푟̄

Hom퐵(퐵, 푝) We will now argue that this functor 푘 pulls back to the corresponding functor for 푞. To that end, first note that the top face of the following cube is a pullback since the front, back, and bottom faces are. 퐹ퟚ 푞ퟚ 푔ퟚ 푘 ퟚ 퐸 푝ퟚ

ퟚ 푘 Hom퐴(퐴, 푞) 퐴 Hom푓(푓,푔) ⌟ 푝1 푓ퟚ Hom (퐵, 푝) 퐵ퟚ 푝1 퐵 ⌟ 푝 푞 1 푝1 퐹 퐴 푔 ⌟ 푓 퐸 푝 퐵 The right adjoint (−)ퟚ preserves pullbacks, so 퐹ퟚ is the pullback of 푝ퟚ along 푓ퟚ, and since this pullback square factors through the top face of the cube along the square inducing the maps 푘, we conclude that this last square is a pullback, as claimed. ∗ Now pullback defines a cosmological functor Hom푓(푓, 푔) ∶ 풦/Hom퐵(퐵,푝) → 풦/Hom퐴(퐴,푞) that car- ries the fibered adjunction (5.1.21) to a fibered adjunction 푘

ퟚ 퐹 ⊥ Hom퐴(퐴, 푞)

푘 푟̄

Hom퐴(퐴, 푞) which by Theorem 5.1.11(iii)⇒(i) proves that 푞 is a cartesian fibration. Moreover, by construction of the adjunction 푘 ⊣ 푟̄ as a pullback of the adjunction 푘 ⊣ 푟̄, both of the mates in Theorem 5.1.19(iii) are identities, proving that (푔, 푓) defines a cartesian functor. To see that (푔, 푓) creates cartesian natural transformations, note that a natural transformation 휒 with codomain 퐹 is represented by an element ⌜휒⌝∶ 푋 → 퐹ퟚ and 푔휒 is represented by the image of this element under the functor 푔ퟚ ∶ 퐹ퟚ → 퐸ퟚ. By Theorem 5.1.11(iv)⇔(vi), 휒 is 푞-cartesian just when the component 휂⌜휒⌝̄ of the unit of 푘 ⊣ 푟̄. This unit component 휂⌜휒⌝ is the pullback of the corresponding

117 unit component 휂푔ퟚ⌜휒⌝ indexed by 푔휒, and by conservativity of the smothering functor ퟚ ퟚ hFun(푋, 퐹 ) → hFun(푋, Hom퐴(퐴, 푞)) × hFun(푋, 퐸 ) hFun(푋,Hom퐵(퐵,푝)) if 휂푔ퟚ⌜휒⌝ is invertible, then so is 휂⌜휒⌝.  Pullback squares provide a key instance of cartesian functors. Another is given by the following lemma, which can be proven using Theorem 5.1.19. 5.1.22. Lemma. If 푔 퐹 퐸

푞 푝 퐵 is a functor between cartesian fibrations that admits a left adjoint over 퐵, then 푔 defines a cartesian functor. ∗ Proof. If ℓ ⊣퐵 푔, then the cosmological functor 푝1 ∶ 풦/퐵 → 풦/퐵ퟚ carries this fibered adjunction to a fibered adjunction Hom (id ,ℓ) id퐵 퐵

Hom퐵(퐵, 푞) ⊥ Hom퐵(퐵, 푝)

Hom (id ,푔) id퐵 퐵 Now both horizontal functors in the commutative square

푔ퟚ 퐹ퟚ 퐸ퟚ 푘 ≅⇙ 푘

Hom퐴(퐴, 푞) Hom퐵(퐵, 푝) Hom푓(푓,푔) admit left adjoints and a standard result from the calculus of mates tells us that the mate with respect to the vertical adjunctions 푘 ⊣ 푟̄ is an isomorphism if and only if the mate with respect to the horizon- tal adjunctions is an isomorphism, the latter natural transformation between left adjoints being the transpose of the former natural transformation between their right adjoints. This is the case because the mate with respect to the left adjoints lies is the fiber of the smothering functor of Proposition 3.2.5 for 퐹ퟚ.  Examples of cartesian fibrations are overdue. ퟚ 5.1.23. Proposition (domain projection). For any ∞-category 퐴, the domain-projection functor 푝0 ∶ 퐴 ↠ ퟚ 퐴 defines a cartesian fibration. Moreover, a natural transformation 휒 with codomain 퐴 is 푝0-cartesian if and only if 푝1휒 is invertible. Before giving the proof, we explain the idea. A 2-cell ⌜훽⌝ 푋 퐴ퟚ

⇑훼 푝0 푎 퐴 118 defines a composable pair of 2-cells 훼∶ 푎 ⇒ 푥 and 훽∶ 푥 ⇒ 푦 in hFun(푋, 퐴). Composing these we ⌜훽∘훼⌝ induce a 2-cell 푋 ⇓휒 퐴ퟚ representing the commutative square ⌜훽⌝

푎 훼 푥 훽∘훼 훽 푦 푦 so that 푝0휒 = 훼, as required, and 푝1휒 = id.³

Proof. We use Theorem 5.1.11(i)⇔(iii) and prove that 푝0 is cartesian by constructing an appro- priate adjoint to the functor

ퟚ 푝0 (퐴ퟚ)ퟚ ퟚ × ퟚ 0×ퟚ 푘

ퟚ Hom퐴(퐴, 푝0) 퐴 ퟛ ퟚ ⌟ ퟚ×1 푝1 푝1 푝1 1 퐴ퟚ 퐴 ퟚ ퟙ 푝0 0 defined by cotensoring with the 1-categories displayed above right.⁴ To construct a right adjoint with invertible counit to the map 푘, it suffices to construct a left adjoint left inverse to the inclusion of 1-categories ퟛ ↪ ퟚ × ퟚ with image (0, 0) → (0, 1) → (1, 1). The left adjoint ℓ∶ ퟚ × ퟚ → ퟛ is a left inverse on the image of ퟛ and sends (1, 0) to the terminal element of ퟛ: ⎧ ⎫ ⎧ ⎫ ⎪ ⎪ ⎪ ⎪ ⎪ (0, 0) (0, 1) ⎪ ⎪ 0 1 ⎪ ⎨⎪ ⎬⎪ ⎨⎪ ⎬⎪ ퟚ × ퟚ ∋ ⎪ ⎪ ↦ ⎪ ⎪ ∈ ퟛ ⎪ ⎪ ⎪ ⎪ ⎪ ⎪ ⎩⎪ ⎭⎪ ⎩ (1, 0) (1, 1) ⎭ 2 2 Now 푘

ퟚ ퟚ ퟛ (퐴 ) ⊥ 퐴 ≃ Hom퐴(퐴, 푝0)

퐴ℓ defines the desired right adjoint with invertible counit.

³While the weak universal property of the arrow ∞-category can be used to induce 2-cells with codomain 퐴ퟚ, it cannot be used to prove equations between the induced 2-cells, as required to demonstrate that induction condition of Definition 5.1.1. Thus, some sort of ∞-cosmos-level argument is necessary to establish this result. (−) ⁴The cotensor 퐴 carries pushouts of simplicial sets to pullbacks of ∞-categories, and the pushout of ퟚ ∪ퟙ ퟚ of 1 simplicial sets is Λ1[2], not ퟛ = Δ[2]. However, on account of the equivalence of ∞-categories 퐴ퟛ ≃ 퐴Λ [2], no harm comes from making the indicated substitution.

119 The characterization of 푝0-cartesian transformations now follows from Theorem 5.1.11(iv)⇔(vi). ퟚ ퟚ ퟚ A cell 휒 with codomain 퐴 is 푝0-cartesian if and only if it its representing element of (퐴 ) is in the essential image of the right adjoint 퐴ℓ ∶ 퐴ퟛ → 퐴ퟚ×ퟚ. Clearly if 휒 is in the essential image then its codomain component must be invertible. Conversely, suppose the codomain component

⌜휒⌝ ev(1,−) 푋 퐴ퟚ×ퟚ 퐴ퟚ represents a natural isomorphism. Applying Lemma 1.1.12 to Fun(푋, 퐴) one can build a diagram in Fun(푋, 퐴)ퟚ×ퟚ ≅ Fun(푋, 퐴ퟚ×ퟚ) whose top edge is the given isomorphism, whose vertical edges are isomorphisms, and whose bottom edge is an identity. This glues onto 휒 to define a diagram 푋 → 1 퐴Λ [2]×ퟚ and now the composite

1 푐 푋 퐴Λ [2]×ퟚ ∼ 퐴ퟛ×ퟚ 퐴 퐴ퟚ×ퟚ×ퟚ where 푐∶ ퟚ×ퟚ → ퟛ is the surjective functor that sends (0, 0) and (0, 1) to 0, witnesses an isomorphism between ⌜휒⌝ and a diagram in the image of 퐴ℓ, whose codomain component is the identity. 

The same argument proves that for any 푔∶ 퐶 → 퐴, the domain-projection 푝0 ∶ Hom퐴(퐴, 푔) ↠ 퐴 is a cartesian fibration. For 푓∶ 퐵 → 퐴, the domain-projections 푝0 ∶ Hom퐴(푓, 퐴) ↠ 퐵 and 푝0 ∶ Hom퐴(푓, 푔) ↠ 퐵 are obtained by pullback via Proposition 5.1.20. These cartesian fibrations figures in a final important lemma about the class of 푝-cartesian transformations. 5.1.24. Lemma. Let 푝∶ 퐸 ↠ 퐵 be a cartesian fibration and consider a composable pair of natural transfor- 푒′ 푒″ mations 푋 ⇓휓 퐸 and 푋 ⇓휓′ 퐸 with codomain 퐸. 푒 푒′ (i) If 휓 and 휓′ are 푝-cartesian, then so is 휓 ⋅ 휓′. (ii) If 휓 and 휓 ⋅ 휓′ are 푝-cartesian, then so is 휓′. Proof. For (i), recall from the proof of Lemma 5.1.8 that a 푝-cartesian lift of 푝휓 is given by the composite 푟 ⌜푝휓⌝ 푋 Hom퐵(퐵, 푝) ⇓휒 퐸

푝1 with the natural transformation 휒∶ 푟 ⇒ 푝1 of (5.1.9) whose domain 푟 is the right adjoint of Theorem 5.1.11(ii). Since we are assuming that 휓 is 푝-cartesian, 휓 is isomorphic to this whiskered natural trans- formation so we may redefine 휓 to equal it and redefine 휓′ to absorb the isomorphism. By Lemma 5.1.4, this new 휓′ is still 푝-cartesian since we’ve assumed 휓′ is. This modification does not change the composition transformation 휓 ⋅ 휓′ that we desire to show is 푝-cartesian. Now by 2-cell induction, the diagram as below-left defines a 2-cell as below-right:

푝휓′ ′ 푝푒″ 푝푒′ ⌜푝(휓⋅휓 )⌝ ⇓훾 푝(휓⋅휓′) 푝휓 푋 Hom퐵(퐵, 푝) 푝푒 푝푒 ⌜푝휓⌝

120 By the generalization of Proposition 5.1.23, 훾 is a 푝0-cartesian cell. By Lemma 5.1.22, the fibered right adjoint 푟 푖

Hom퐵(퐵, 푝) ⊥ 퐸

푟 푝 푝0 퐵 carries 훾 to a 푝-cartesian transformation 푟훾. Now the horizontal composite ′ ⌜푝(휓⋅휓 )⌝ 푟

푋 ⇓훾 Hom퐵(퐵, 푝) ⇓휒 퐸

⌜푝휓⌝ 푝1 provides a commutative diagram of natural transformations 푟훾 푒̄ 푒′

휒푝(휓⋅휓′) 휓 푒 푒 ′ In particular, the composite 휓 ⋅ 푟훾 is a 푝-cartesian natural transformation. Since 푝푟훾 = 푝0훾 = 푝휓 , 푟훾 is a 푝-cartesian lift of the cartesian transformation 휓′, so 휓′ and 푟훾 are isomorphic. But now ′ ′ 휓 ⋅ 휓 is isomorphic to the 푝-cartesian transformation 휒푝(휓⋅휓′), and Lemma 5.1.4 proves that 휓 ⋅ 휓 is 푝-cartesian. Now for (ii) suppose 휓 and 휓 ⋅ 휓′ are 푝-cartesian and let 휒′ ∶ 푒̄ ⇒ 푒′ denote a 푝-cartesian lift of 푝휓′. Consider the factorization 휓′ = 휒′ ⋅ 휃 of 휓′ through its 푝-cartesian lift with 푝휃 = id. Now part (i) implies that 휓 ⋅ 휒′ is 푝-cartesian and 휓 ⋅ 휓′ = 휓 ⋅ 휒′ ⋅ 휃, so Lemma 5.1.5 implies that 휃 is an isomorphism. Now 휓′ is isomorphic to a 푝-cartesian cell so Lemma 5.1.4 implies that 휓′ must be 푝-cartesian.  For ∞-categories admitting pullbacks, the codomain-projection functor also defines a cartesian fibration: 5.1.25. Proposition (codomain projection). Let 퐴 be an ∞-category that admits pullbacks in the sense ퟚ of Definition 4.3.7. Then the codomain-projection functor 푝1 ∶ 퐴 ↠ 퐴 is a cartesian fibration and the 푝1-cartesian arrows are just those 2-cells that represent pullback squares.

121 Proof. Via Theorem 5.1.11(i)⇔(iii), we desire a right adjoint right inverse to the functor 푘 defined below-left applying 퐴− to the diagram of simplicial sets appearing below-right:

ퟚ 푝1 (퐴ퟚ)ퟚ ퟚ × ퟚ 1×ퟚ 푘

Hom (퐴, 푝 ) 퐴ퟚ ⟓ ퟚ 퐴 1 ⌟ ⌟ ퟚ×1 푝1 푝1 푝1 1 퐴ퟚ 퐴 ퟚ ퟙ 푝0 1 This is done in Corollary 4.3.5: res ퟚ ퟚ ⊡ ⟓ (퐴 ) ≅퐴 ⊥ 퐴 ≅ Hom퐴(퐴, 푝1)  ran Exercises. 5.1.i. Exercise. Prove Lemma 5.1.4. 5.1.ii. Exercise. Attempt to prove directly from Definition 5.1.6 that cosmological functors preserve cartesian fibrations and explain what goes wrong. 5.1.iii. Exercise. Categorify the intuition that cartesian fibrations 푝∶ 퐸 ↠ 퐵 and 푞∶ 퐹 ↠ 퐵 define “contravariant 퐵-indexed functors valued in ∞-categories” by proving that a cartesian functor 푔 퐸 퐹 푝 푝 퐵 defines a “natural transformation”: show that there exists a natural isomorphism in the square of fibers 푔 퐸푏 퐹푏

훽∗ ∃≅ 훽∗

퐸푎 푔 퐹푎 where the action of an arrow 훽 in the homotopy category of 퐵 on the fibers is defined by factoring the domain of a 푝- or 푞-cartesian lift of 훽:

ℓ푏 ℓ푏

⇑휒 퐸푏 ⌟ 퐸 퐸푏 훽 퐸 훽∗(ℓ ) 훽∗ 푏 푝 = 퐸푎 ℓ 푝 푏 ⌟ 푎 1 ⇑훽 퐵 1 퐵

푎 푎 5.1.iv. Exercise. Use Proposition 5.1.20 to prove that cartesian functors pull back.

122 5.2. Cocartesian fibrations and bifibrations By the dual of Proposition 5.1.23, the codomain-projection functor is also a cocartesian fibration, a notion we now introduce. 5.2.1. Definition (푝-cocartesian transformations). Let 푝∶ 퐸 ↠ 퐵 be an isofibration. A natural trans- 푒 formation 푋 ⇓휒 퐸 with codomain 퐸 is 푝-cocartesian if 푒′ ′ 푒 푝푒 (i) induction: Given any natural transformations 푋 ⇓휏 퐸 and 푋 ⇓훾 퐵 so that 푝휏 = 푒″ 푝푒″ 푒′ 훾 ⋅ 푝휒, there exists a lift 푋 ⇓훾̄ 퐸 of 훾 so that 휏 = 훾̄ ⋅ 휒. 푒″ 푒 휏 푒″ 휒 푒′ 훾̄ ∈ hFun(푋, 퐸)

↧ 푝∗ 푝휏 푝푒 푝푒″ ∈ hFun(푋, 퐵) 푝휒 훾 푝푒′

푒′ (ii) conservativity: Any fibered endomorphism of 휒 is invertible: if 푋 ⇓휁 퐸 is any natural 푒′ transformation so that 휁 ⋅ 휒 = 휒 and 푝휁 = id푝푒′ then 휁 is invertible. 5.2.2. Definition (cocartesian fibration). An isofibration 푝∶ 퐸 ↠ 퐵 is a cocartesian fibration if

(i) Any natural transformation 훽∶ 푝푒 ⇒ 푏 as below-left admits a lift 휒훽 ∶ 푒 ⇒ 훽∗푒 as below-right 푒 푒 푋 퐸 푋 ⇓휒훽 퐸 ⇓훽 푝 = 훽∗푒 푝 푏 퐵 퐵 that is a 푝-cartesian transformation so that 푝휒 = 훽. (ii) The class of 푝-cocartesian transformations is closed under restriction along any functor: that 푒 푒푓 is, if 푋 ⇓휒 퐸 is 푝-cocartesian and 푓∶ 푌 → 푋 is any functor then 푌 ⇓휒푓 퐸 is 푝-co- 푒′ 푒′푓 cartesian. ퟚ The dual to Theorem 5.1.11 asks for left adjoints to 푖∶ 퐸 → Hom퐵(푝, 퐵) and 푘∶ 퐸 → Hom퐵(푝, 퐵) in place of right adjoints. See Exercise 5.2.i. This result can be deduced immediately by considering the isofibration 푝∶ 퐸 ↠ 퐵 as a map in the dual ∞-cosmos. 123 5.2.3. Observation (dual ∞-cosmoi). There is an identity-on-objects functor (−)∘ ∶ 횫 → 횫 that reverses the ordering of the elements in each ordinal [푛] ∈ 횫. The functor (−)∘ sends a face map 훿푖 ∶ [푛−1] ↣ [푛] to the face map 훿푛−푖 ∶ [푛−1] ↣ [푛] and sends the degeneracy map 휎푖 ∶ [푛+1] ↠ [푛] to the degeneracy map 휎푛−푖 ∶ [푛 + 1] ↠ [푛]. Precomposition with this involutive automorphism induces an involution (−)op ∶ 풮풮푒푡 → 풮풮푒푡 that sends a simplicial set 푋 to its opposite simplicial set 푋op, with the orientation of the vertices in each simplex reversed. This construction preserves all op conical limits and colimits and induces an isomorphism (푌푋)op ≅ (푌op)푋 on exponentials. For any ∞-cosmos 풦, there is a dual ∞-cosmos 풦co with the same objects but with functor spaces defined by: op Fun풦co(퐴, 퐵) ≔ Fun풦(퐴, 퐵) . The isofibrations, equivalences, and trivial fibrations in 풦co coincide with those of 풦. Conical limits in 풦co coincide with those in 풦, while the cotensor of 퐴 ∈ 풦 with 푈 ∈ 풮풮푒푡 is op op defined to be 퐴푈 . In particular, the cotensor of an ∞-category with ퟚ is defined to be 퐴ퟚ , which exchanges the domain and codomain projections from arrow and comma ∞-categories. 5.2.4. Definition. An isofibration 푝∶ 퐸 ↠ 퐵 defines a bifibration if 푝 is both a cartesian fibration and a cocartesian fibration. Projections give trivial examples of bifibrations. 5.2.5. Example. For any ∞-categories 퐴 and 퐵 the projection functor 휋∶ 퐴 × 퐵 ↠ 퐵 is a bifibration, in which a 2-cell with codomain 퐴×퐵 is 휋-cocartesian or 휋-cartesian if and only if its composite with the projection 휋∶ 퐴 × 퐵 ↠ 퐴 is an isomorphism. 푎 5.2.6. Proposition. Let 푝∶ 퐸 ↠ 퐵 be a bifibration. Then any arrow 푋 ⇓훽 퐵 induces a fibered 푏 adjunction 훽∗ ℓ ℓ 퐸 ⊥ 퐸 퐸 푎 퐸 푏 퐸 푎 푏 푎 ⌟ ⌞ 푏 ∗ 푝푎 푝 푝푏 푝푎 훽 푝푏 푋 푋 퐵 푋 푎 푏 between the fibers of 푝 over 푎 and 푏.

As will be remarked upon following the proof of this result, the left adjoint 훽∗ is the covariantly pseudofunctorial action of the arrow 훽 on the fibers of 푝 defined in (5.0.1), while the right adjoint 훽∗ is the dual contravariantly pseudofunctorial action. Proof. Write ⌜훽⌝∶ 푋 → 퐵ퟚ for the functor induced by 훽. Note that the pullbacks defining the fibers over its domain edge 푎 and codomain edge 푏 factor as:

ℓ푎 ℓ푏

퐸푎 Hom퐵(푝, 퐵) 푝 퐸 푝 Hom퐵(퐵, 푝) 퐸푏 ⌟ ⌟ 0 1 ⌞ ⌞ 푝푎 푞 푝 푞 푝푏 ⌜훽⌝ 푝 푝 ⌜훽⌝ 푋 퐵ퟚ 0 퐵 1 퐵ퟚ 푋 푎 푏 124 Now via Remark 5.1.13, Theorem 5.1.11(i)⇒(iii) and its dual provide a right adjoint right inverse ퟚ ퟚ to 푘∶ 퐸 → Hom퐵(퐵, 푝) and a left adjoint right inverse to 푘∶ 퐸 → Hom퐵(푝, 퐵). Composing ퟚ the former fibered adjunction with 푞∶ Hom퐵(퐵, 푝) ↠ 퐵 and the latter fibered adjunction with ퟚ 푞∶ Hom퐵(푝, 퐵) ↠ 퐵 we obtain a composable pair of adjunctions ℓ̄ 푘 ퟚ Hom퐵(푝, 퐵) ⊥ 퐸 ⊥ Hom퐵(퐵, 푝)

푘 푝ퟚ 푟̄ 푞 푞 퐵ퟚ fibered over 퐵ퟚ; note in both cases that 푞푘 = 푝ퟚ. Pulling back the composite adjunction along ⌜훽⌝∶ 푋 → 퐵ퟚ yields the fibered adjunction of the statement.  5.2.7. Remark (action of arrows on the fibers of a co/cartesian fibration). If 푝∶ 퐸 ↠ 퐵 is a cocartesian fibration but not a cartesian fibration, the construction in the proof of Proposition 5.2.6 still defines the functor 훽∗ ∶ 퐸푎 → 퐸푏. Examining the details of this construction, we see that it produces the functor given this name in (5.0.1). The functor just constructed as the pullback over ⌜훽⌝ of 푘ℓ̄ is induced by the composite commutative square

푝1ℓ̄ 퐸 Hom (푝, 퐵) 퐸 푎 ⌟ 퐵 푝푎 푞 푝 푋 퐵ퟚ 퐵 ⌜훽⌝ 푝1 which defines a cone over the pullback defining 퐸푏. The top-horizontal functor takes the codomain- component of the 푝-cocartesian lift of 훽 with domain ℓ푎. This recovers the description given at the start of this chapter. Exercises. 5.2.i. Exercise. Formulate the dual to Theorem 5.1.11, providing an internal characterization of co- cartesian fibrations. ퟚ 5.2.ii. Exercise. Prove that for any ∞-category 퐴, the codomain-projection functor 푝1 ∶ 퐴 ↠ 퐴 defines a cocartesian fibration. 5.3. The quasi-category theory of cartesian fibrations In this section, we reinterpret the notion of cartesian fibration and cartesian natural transforma- tion from the point of view of the ∞-cosmos 풦, rather than its quotient homotopy 2-category 픥풦. In doing so, we recall that the functors 푒∶ 푋 → 퐸 between ∞-categories are precisely the vertices, or 0-arrows, in the quasi-categorical functor space Fun(푋, 퐸). The 1-simplices, or 1-arrows, 휒∶ 푒′ → 푒 푒′ of Fun(푋, 퐸) represent natural transformations 푋 ⇓휒 퐸 . Every natural transformation from 푒′ 푒 to 푒 is represented by a 1-arrow 푒′ → 푒 and a parallel pair of 1-arrows represent the same natural transformation if and only if they are homotopic, bounding a 2-arrow in Fun(푋, 퐸) whose 0th or 2nd edge is degenerate. 125 Before analyzing the 0- and 1-arrows in the functor spaces in particular, we consider the collection of functor spaces of an ∞-cosmos globally and prove another important corollary of the internal characterization of cartesian fibrations. The notion of cartesian fibrations are representably defined in the following sense: 5.3.1. Proposition. Let 푝∶ 퐸 ↠ 퐵 be an isofibration between ∞-categories in an ∞-cosmos 풦. Then 푝 is a cartesian fibration if and only if:

(i) For all 푋 ∈ 풦, the isofibration 푝∗ ∶ Fun(푋, 퐸) ↠ Fun(푋, 퐵) is a cartesian fibration between quasi- categories. (ii) For all 푓∶ 푌 → 푋 ∈ 풦, the square 푓∗ Fun(푋, 퐸) Fun(푌, 퐸)

푝∗ 푝∗ Fun(푋, 퐵) Fun(푌, 퐵) 푓∗ is a cartesian functor. Proof. If 푝∶ 퐸 ↠ 퐵 is a cartesian fibration, then Theorem 5.1.11(i)⇒(iii) constructs a right ad- ퟚ op joint right inverse to 푘∶ 퐸 ↠ Hom퐵(퐵, 푝). The simplicial bifunctor Fun(−, −)∶ 풦 × 풦 → 풬풞푎푡 defines a 2-functor Fun(−, −)∶ 픥풦op × 픥풦 → 픥풬풞푎푡, which transposes to a Yoneda-type embedding 픥풦op Fun(−, −)∶ 픥풦 → 픥풬풞푎푡 from the homotopy 2-category of 풦 to the 2-category of 2-functors, 2-natural transformations, and modifications. This 2-functor carries the adjunction 푘 ⊣ 푟̄ to an ad- op junction in the 2-category 픥풬풞푎푡픥풦 . This latter adjunction defines, for each 푋 ∈ 풦, a right adjoint right inverse adjunction

푘∗ ퟚ ퟚ Fun(푋, 퐸) ≅ Fun(푋, 퐸 ) ⊥ Fun(푋, Hom퐵(퐵, 푝)) ≅ HomFun(푋,퐵)(Fun(푋, 퐵), 푝∗) 푟̄∗ and for each 푓∶ 푌 → 푋 in 풦, a strict adjunction morphism⁵ commuting strictly with the left adjoints and with the right adjoints: 푓∗ Fun(푋, 퐸)ퟚ ≅ Fun(푋, 퐸ퟚ) Fun(푌, 퐸ퟚ) ≅ Fun(푌, 퐸)ퟚ

푟̄∗ ⊢ 푘∗ 푘∗ ⊣ 푟̄∗ Hom(Fun(푋, 퐵), 푝 ) ≅ Fun(푋, Hom (퐵, 푝)) Fun(푌, Hom (퐵, 푝)) ≅ Hom(Fun(푌, 퐵), 푝 ) ∗ 퐵 푓∗ 퐵 ∗ (5.3.2) By Theorems 5.1.11(iii)⇒(i) and 5.1.19(iii)⇒(i), this demonstrates the two conditions of the statement. Conversely, supposing 푝∶ 퐸 ↠ 퐵 satisfies conditions (i) and (ii) by Theorems 5.1.11(i)⇒(iii) and ∗ ∗ 5.1.19(i)⇒(iii) there is a commutative square 푘∗푓 = 푓 푘∗ where both verticals 푘∗ admit right adjoint ∗ ∗ ∗ ∗ right inverses 푘∗ ⊣ 푟̄ and the mate of the identity 푘∗푓 = 푓 푘∗ defines an isomorphism 푓 푟̄ ≅ 푟푓̄ . By Proposition ?? in Appendix B, this data suffices to internalize the right adjoints to the repre- ퟚ sentable functors 푘∗ ∶ Fun(푋, 퐸 ) → Fun(푋, Hom퐵(퐵, 푝)) to a functor 푟̄∗ ∶ Fun(푋, Hom퐵(퐵, 푝)) → ⁵A strict adjunction morphism is given by a pair of functors, the horizontals of (5.3.2), that define strictly commutative squares with both the left and with the right adjoints and so that the units of each adjunction whisker along these functors to each other and the counits of each adjunction whisker along these functors to each other. See Appendix B for more. 126 ퟚ ퟚ Fun(푋, 퐸 ) arising from post-composition with some 푟∶̄ Hom퐵(퐵, 푝) → 퐸 . This right adjoint 푟̄ is extracted as the image of the identity element

푟̄ ퟚ Fun(Hom퐵(퐵, 푝), Hom퐵(퐵, 푝)) Fun(Hom퐵(퐵, 푝), 퐸 ) id 푟̄ and the unit and counit are internalized similarly; the condition on mates is used to verify the triangle equalities that demonstrate that 푘 ⊣ 푟̄. Now Theorem 5.1.11(iii)⇒(i) proves that 푝∶ 퐸 ↠ 퐵 is a cartesian fibration.  An easier argument along the same lines demonstrates: 5.3.3. Corollary. A commutative square between cartesian fibrations as displayed below-left

푔 푔∗ 퐹 퐸 Fun(푋, 퐹) Fun(푋, 퐸) 푞 푝 ⇝ 푞∗ 푝∗ 퐴 퐵 Fun(푋, 퐴) Fun(푋, 퐵) 푓 푓∗ defines a cartesian functor in an ∞-cosmos 풦 if and only if for all 푋 ∈ 풦, the square displayed above right defines a cartesian functor between cartesian fibrations of quasi-categories.

Proof. Exercise 5.3.i.  Our aim is now to characterize those 1-arrows in Fun(푋, 퐸) that represent 푝-cartesian natural transformation for some cartesian fibration 푝∶ 퐸 ↠ 퐵. Recall that the 1-arrows in Fun(푋, 퐸) are in bijection with the 0-arrows of Fun(푋, 퐸)ퟚ ≅ Fun(푋, 퐸ퟚ). 5.3.4. Definition (푝-cartesian 1-arrow). Let 푝∶ 퐸 ↠ 퐵 be a cartesian fibration and consider a 1-arrow 휒 in Fun(푋, 퐸), defining an element 휒 ∈ Fun(푋, 퐸)ퟚ ≅ Fun(푋, 퐸ퟚ). Say 휒 is a 푝-cartesian 1-arrow if it is isomorphic to some object in the image of the right adjoint right inverse functor

푟̄∗ ퟚ Fun(푋, Hom퐵(퐵, 푝)) Fun(푋, 퐸 ) of Theorem 5.1.11(iii). The new notion of 푝-cartesian 1-arrow coincides exactly with the previous notion of 푝-cartesian natural transformation: 5.3.5. Lemma. Consider a cartesian fibration 푝∶ 퐸 ↠ 퐵 between ∞-categories. For a 1-arrow 휒∶ 푒′ → 푒 in Fun(푋, 퐸), the following are equivalent: (i) 휒 is a 푝-cartesian 1-arrow. 푒′ (ii) 휒 represents a 푝-cartesian natural transformation 푋 ⇓휒 퐸 . 푒 (iii) 휒 represents a natural transformation 푒′ ퟙ ⇓휒 Fun(푋, 퐸) 푒 127 that is cartesian for 푝∗ ∶ Fun(푋, 퐸) ↠ Fun(푋, 퐵). 푒′ Conversely, a natural transformation 푋 ⇓휒 퐸 is 푝-cartesian if and only if any representing 1-arrow 푒 ⌜휒⌝∶ 푋 → 퐸ퟚ satisfies all of these equivalent conditions. Proof. We start with the final clause. Note from Exercise 3.2.i that homotopic 1-arrows are iso- morphic as objects of Fun(푋, 퐸ퟚ) so if some 1-arrow representing a 푝-cartesian transformation is a 푝-cartesian 1-arrow then all representatives of that natural transformation are. Now the equivalence (i)⇔(ii) follows from Theorem 5.1.11(iv)⇔(vi) once we establish that a 1-arrow ퟚ of Fun(푋, 퐸), when encoded as a functor 휒∶ 푋 → 퐸 is in the essential image of 푟̄∗ if and only if the component 휂휒̄ of the unit of 푘 ⊣ 푟̄ is invertible. ′ If 휒∶ 푒 → 푒 is a 푝-cartesian 1-arrow, then by definition there exists some 훽∶ 푋 → Hom퐵(퐵, 푝) and an invertible 2-cell 휒 푋 퐸ퟚ 훽 ⇓≅ 푟̄ Hom퐵(퐵, 푝) The unit 휂̄ of the adjunction 푘 ⊣ 푟̄ of Theorem 5.1.11(iii) has the property that 휂̄푟̄ is invertible, so the component 휂̄푟훽̄ is invertible and so 휂휒̄ is also invertible. By Theorem 5.1.11(vi)⇒(iv), this implies that 휒 represents a 푝-cartesian natural transformation. Conversely, if 휒 defines a 푝-cartesian natural transformation then Theorem 5.1.11(iv)⇒(vi) tells us that for any representing 1-arrow ⌜휒⌝∶ 푋 → 퐸ퟚ, the component 휂⌜휒⌝̄ is an isomorphism. In particular, ⌜휒⌝ is isomorphic to 푟푘⌜휒⌝̄ , which proves that ⌜휒⌝ is in the essential image of 푟̄∗ and thus defines a 푝-cartesian 1-arrow. Finally, via the characterization of cartesian transformations given in Theorem (vi) and the fact that the adjunction 푘 ⊣ 푟̄ in 픥풦 induces an adjunction 푘∗ ⊣ 푟̄∗ in 픥풬풞푎푡, the conditions (ii) and (iii) are tautologically equivalent. The former refers to the adjunction between categories hFun(푋, 퐸) and hFun(푋, 퐵), while the latter refers to the adjunction between categories hFun(ퟙ, Fun(푋, 퐸)) and hFun(ퟙ, Fun(푋, 퐵)) and these are isomorphic.  Combining Lemma 5.3.5 with Proposition 5.3.1 we arrive at a new equivalent definition of cartesian fibrations. 5.3.6. Corollary. An isofibration 푝∶ 퐸 ↠ 퐵 is a cartesian fibration if and only if (i) Any 1-arrow with codomain 퐵 admits a 푝-cartesian lift with specified codomain 0-arrow. (ii) 푝-cartesian 1-arrows are stable under precomposition with 0-arrows.  5.3.7. Lemma. Let 푝∶ 퐸 ↠ 퐵 be a cartesian fibration and consider a 2-arrow 푒′ 휓′ 휓 푒″ 푒 휓″ in Fun(푋, 퐸). (i) If 휓 and 휓′ are 푝-cartesian 1-arrows, so is 휓″. (ii) If 휓 and 휓″ are 푝-cartesian 1-arrows, so is 휓′.

128 (iii) If 휓 and 휓″ are 푝-cartesian 1-arrows and 푝휓′ is invertible, then 휓′ is invertible.

Proof. Via Lemma 5.3.5, (i) and (ii) are Lemmas 5.1.24(i) and (ii), while (iii) is Lemma 5.1.5.  5.3.8. Lemma. A 2-cell as below left ′ ′ 푒 푒 푒′푞 푞 푄 ⇓휒 Fun(푋, 퐸) ퟙ 푄 ⇓휒 Fun(푋, 퐸) ↭ 푋 ⇓휒푞 퐸 푒푞 푒 푒 is 푝∗-cartesian if and only if each of its components 휒푞 is 푝-cartesian.

Proof. If 휒 is 푝∗-cartesian, then so is the restriction 휒푞 along any element 푞∶ ퟙ → 푄. By Lemma 5.3.5 this tells us that 휒푞 defines a 푝-cartesian transformation. Conversely, if 휒푞 is a 푝-cartesian transformation, then Lemma 5.3.5 tells us that 휒푞 is a 푝∗-cartesian transformation. Now consider the factorization 휒 = 휒휒⋅휃 through 푝∗-cartesian lift 휒휒 of 푝∗휒. Because the components 휒푞 of 휒 are 푝∗-cartesian, the components 휃푞 of 휃 are isomorphisms. By Lemma ??, an arrow in an exponetial Fun(푋, 퐸)푄 is an isomorphism if and only if it is a pointwise isomorphism, so this implies that 휒. By isomorphism stability of cartesian transformations, we thus conclude that 휒 is 푝∗-cartesian.  Exercises. 5.3.i. Exercise. Prove Corollary 5.3.3. 5.4. Discrete cartesian fibrations Recall from Definition 1.2.21 that an object 퐸 in an ∞-cosmos 풦 is discrete if for all 푋 ∈ 풦, the functor-space Fun(푋, 퐸) is a Kan complex. Since a quasi-category is a Kan complex just when its homotopy category is a groupoid (see Corollary 1.1.15), equivalently, 퐸 is discrete if and only if every natural transformation with codomain 퐸 is invertible. From this definition it follows that an isofibration 푝∶ 퐸 ↠ 퐵, considered as an object of 풦/퐵, is discrete if and only if any 2-cell with codomain 퐸 that whiskers with 푝 to an identity is invertible. In fact, the discrete objects are exactly those isofibrations that define conservative functors in 픥풦.

5.4.1. Lemma. An isofibration 푝∶ 퐸 ↠ 퐵 is a discrete object of 풦/퐵 if and only if 푝∶ 퐸 ↠ 퐵 is a conservative 푎 functor: meaning any 푋 ⇓훾 퐸 for which 푝훾 is an isomorphism is invertible. 푏 Proof. Exercise 5.4.i.  Our aim in this section is to study a special class of cartesian fibrations and cocartesian fibrations: 5.4.2. Definition. An isofibration 푝∶ 퐸 ↠ 퐵 is a discrete cartesian fibration if it is a cartesian fibra- tion and if it is discrete as an object of 풦/퐵. Dually, an isofibration 푝∶ 퐸 ↠ 퐵 is a discrete cocartesian fibration if it is a cocartesian fibration and if it is discrete as an object of 풦/퐵

The fibers of a discrete object 푝∶ 퐸 ↠ 퐵 in 풦/퐵 are discrete ∞-categories; in ∞-cosmoi whose objects model (∞, 1)-categories, the discrete cartesian fibrations and discrete cocartesian fibrations are “∞-groupoid-valued pseudofunctors.”

129 There is also a direct 2-categorical characterization of the discrete cartesian fibrations, which reveals that, unlike the case for cartesian and cocartesian fibrations, for their discrete analogues, there are no special classes of 푝-cartesian or 푝-cocartesian cells. 5.4.3. Proposition. (i) If 푝∶ 퐸 ↠ 퐵 is a discrete cartesian fibration, every natural transformation with codomain 퐸 is 푝-cartesian. (ii) An isofibration 푝∶ 퐸 ↠ 퐵 is a discrete cartesian fibration if and only if every 2-cell 훽∶ 푏 ⇒ 푝푒 has an essentially unique lift: given 휒∶ 푒′ ⇒ 푒 and 휓∶ 푒″ ⇒ 푒 so that 푝휒 = 푝휓 = 훽, then there exists an isomorphism 훾∶ 푒″ ⇒ 푒′ with 휒 ⋅ 훾 = 휓 and 푝훾 = id. Note that (i) implies immediate that any commutative square 푔 퐹 퐸 푞 푝 퐴 퐵 푓 from a cartesian fibration 푞 to a discrete cartesian fibration 푝 defines a cartesian functor. Proof. By the definition of cartesian fibration, any 2-cell 휓 with codomain 퐸 factors through a 푝-cartesian lift of 푝휓 along a 2-cell 훾 so that 푝훾 = id. The discrete objects of 풦/퐵 are exactly those isofibrations with the property that any 2-cell with codomain 퐸 that whiskers with 푝 to an identity is invertible. In particular, 훾 is an isomorphism, and now 휓 is isomorphic to a 푝-cartesian transformation and hence by Lemma 5.1.4 itself 푝-cartesian. By (i) and Lemma 5.1.3, it’s now clear that if 푝∶ 퐸 ↠ 퐵 is a discrete cartesian fibration, then any 2-cell 훽∶ 푏 ⇒ 푝푒 has an essentially unique lift. For the converse, note first that any 푝∶ 퐸 ↠ 퐵 satisfying this hypothesis is a discrete object: if 휓∶ 푒′ ⇒ 푒 is so that 푝휓 = id, then id∶ 푒 ⇒ 푒 is another lift of 푝휓 and essential uniqueness provides an inverse isomorphism 휓−1 ∶ 푒 ⇒ 푒′. To complete the proof, we now show that any 2-cell 휒∶ 푒′ ⇒ 푒 is cartesian for 푝 and to that end consider a pair 휏∶ 푒″ ⇒ 푒 and 훾∶ 푝푒″ ⇒ 푝푒′ so that 푝휏 = 푝휒 ⋅ 훾. By the hypothesis that every 2-cell admits an essentially unique lift, we can construct a lift 휇∶ 푒̄ ⇒ 푒′ so that 푝휇 = 훾. Now 휏 and 휒 ⋅ 휇 are two lifts of 푝휏 with the same codomain, so there exists an isomorphism 휃∶ 푒″ ⇒ 푒̄ with 푝휃 = id. The composite 휇 ⋅ 휃 then defines the desired lift of 훾 to a cell so that 휏 = 휒 ⋅ 휇 ⋅ 휃.  5.4.4. Example (domain projection from an element). For an element 푏∶ 1 → 퐵, the domain-projection functor 푝0 ∶ Hom퐵(퐵, 푏) ↠ 퐵 is a discrete cartesian fibration. Cartesianness was established in Propo- 푎 sition 5.1.23 and discreteness follows immediately from 2-cell conservativity. If 푋 ⇓훾 Hom퐵(퐵, 푏) 푏 is a natural transformation for which 푝0훾 is an identity, then since 푝1훾 is also an identity, 훾 must be invertible. Dually, the codomain-projection functor 푝1 ∶ Hom퐵(푏, 퐵) ↠ 퐵 is a discrete cocartesian fibration.

130 5.4.5. Lemma (pullback stability). If 푔 퐹 퐸 ⌟ 푞 푝 퐴 퐵 푓 is a pullback square and 푝 is a discrete cartesian fibration then 푞 is a discrete cartesian fibration. Proof. In light of Proposition 5.1.20 it remains only to verify that 푞 is discrete. Consider a 2-cell 푎 푋 ⇓훾 퐹 so that 푞훾 is invertible. Then 푓푞훾 = 푝푔훾 is invertible and conservativity of 푝 implies 푏 that 푔훾 is invertible. By Lemma 3.1.5, the pullback square of functor spaces

푔∗ Fun(푋, 퐹) Fun(푋, 퐸) ⌟ 푞∗ 푝∗ Fun(푋, 퐴) Fun(푋, 퐵) 푓∗ induces a smothering functor hFun(푋, 퐹) → hFun(푋, 퐸) × hFun(푋, 퐴) hFun(푋,퐵) We’ve just verified that the image of 훾 is an isomorphism, so conservativity implies that 훾 is also invertible.  In analogy with Theorem 5.1.11, there is an internal characterization of discrete cartesian fibra- tions, which in the discrete case takes a much simpler form. Recall any functor 푝∶ 퐸 → 퐵 induces ퟚ ퟚ functors 푘∶ 퐸 → Hom퐵(퐵, 푝) and 푘∶ 퐸 → Hom퐵(푝, 퐵) as in (5.1.10) by applying 푝 to the generic arrow for 퐸. 5.4.6. Proposition (internal characterization of discrete fibrations). An isofibration 푝∶ 퐸 ↠ 퐵 is a ퟚ discrete cartesian fibration if and only if the functor 푘∶ 퐸 → Hom퐵(퐵, 푝) is an equivalence and a discrete ퟚ cocartesian fibration if and only if the functor 푘∶ 퐸 → Hom퐵(푝, 퐵) is an equivalence. Recall from Theorem 5.1.11(iii) that 푝∶ 퐸 ↠ 퐵 defines a cartesian fibration if and only if 푘∶ 퐸ퟚ → Hom퐵(푝, 퐵) admits a right adjoint with invertible counit. Proposition 5.4.6 asserts that 푝 defines a dis- crete cartesian fibration if and only if the unit of that adjunction, a natural transformation that defines the factorization of any natural transformation with codomain 퐸 through the canonical 푝-cartesian lift of its image under 푝, is an isomorphism, in which case that adjunction defines an adjoint equivalence and all natural transformations with codomain 퐸 are 푝-cartesian. Proof. Assume first that 푝∶ 퐸 ↠ 퐵 is a discrete cartesian fibration. By Theorem 5.1.11(i)⇒(iii), ퟚ 푘∶ 퐸 → Hom퐵(퐵, 푝) then admits a right adjoint 푟̄ with invertible counit 휖∶̄ 푘푟̄ ≅ id. We will show that in this case the unit 휂∶̄ id ⇒ 푟푘̄ is also invertible, proving that 푘 ⊣ 푟̄ defines an adjoint equiva- lence. Since the counit of 푘 ⊣ 푟̄ is invertible, 푘휂̄ is an isomorphism. Thus 푝1푘휂̄ = 푝1휂̄ and 푝0푘휂̄ = 푝푝0휂̄ are both isomorphisms. By conservativity of the discrete fibration 푝∶ 퐸 ↠ 퐵 proven in Lemma 5.4.1, ퟚ this implies that 푝0휂̄ is invertible and now 2-cell conservativity for 퐸 reveals that 휂̄ is an isomorphism. 131 ퟚ Conversely, if 푘∶ 퐸 ⥲ Hom퐵(퐵, 푝) is an equivalence, by Proposition 2.1.11, we may choose a right adjoint equivalence inverse 푟̄. The counit of this adjoint equivalence is necessarily an isomorphism, so by Theorem 5.1.11(iii)⇒(i) we know that 푝∶ 퐸 ↠ 퐵 is a cartesian fibration. Since the unit of 푘 ⊣ 푟̄ is also an isomorphism, Theorem 5.1.19(vi)⇒(iv) tells us that every natural transformation with codomain 퐸 is 푝-cartesian, and now the conservativity property for cartesian transformations of Lemma 5.1.5 tells us that 푝∶ 퐸 ↠ 퐵 defines a conservative fun ctor, and in particular is discrete.  Since equivalences and simplicial limits in an ∞-cosmos are representably-defined notions, it fol- lows immediately from Proposition 5.4.6 that: 5.4.7. Proposition. An isofibration 푝∶ 퐸 ↠ 퐵 in an ∞-cosmos 풦 defines a discrete cartesian fibration if and only if for all 푋 ∈ 풦, the functor 푝∗ ∶ Fun(푋, 퐸) ↠ Fun(푋, 퐵) defines a discrete cartesian fibration of quasi-categories.  Using the internal characterization, it is straightforward to verify that discrete cartesian fibrations compose and cancel on the left: 5.4.8. Lemma. (i) If 푝∶ 퐸 ↠ 퐵 and 푞∶ 퐵 ↠ 퐴 are discrete cartesian fibrations, so is 푞푝∶ 퐸 ↠ 퐴. (ii) If 푝∶ 퐸 ↠ 퐵 is an isofibration and 푞∶ 퐵 ↠ 퐴 and 푞푝∶ 퐸 ↠ 퐴 are discrete cartesian fibrations, then so is 푝∶ 퐸 ↠ 퐵. ퟚ Proof. By considering the defining pullback diagrams, the map 퐸 ↠ Hom퐴(퐴, 푞푝) that tests ퟚ whether 푞푝∶ 퐸 ↠ 퐴 is a discrete cartesian fibration factors as the map 퐸 ↠ Hom퐵(퐵, 푝) that tests whether 푝∶ 퐸 ↠ 퐵 is a discrete cartesian fibration followed by a pullback of the map 퐵ퟚ ↠ Hom퐴(퐴, 푞) that tests whether 푞∶ 퐵 ↠ 퐴 is a discrete cartesian fibration: 퐸ퟚ

ퟚ ퟚ Hom퐵(퐵, 푝) 퐵 퐴 ⌟ 푝1 Hom (퐴, 푞푝) Hom (퐴, 푞) 푝1 퐴 퐴 푝1 ⌟ 푝1 ⌟

퐸 푝 퐵 푞 퐴 Both parts now follow from the 2-of-3 property.  The internal characterization of discrete cartesian fibrations is useful for establishing further ex- amples. 5.4.9. Lemma. A trivial fibration 푝∶ 퐸 ⥲→퐵 is a discrete bifibration. ퟚ ퟚ Proof. Recall from Remark 5.1.13, that the canonical functors 푘∶ 퐸 ↠ Hom퐵(퐵, 푝) and 푘∶ 퐸 ↠ Hom퐵(푝, 퐵) can be constructed as the Leibniz cotensor of the monomorphism 1∶ ퟙ ↪ ퟚ in the first case and 0∶ ퟙ ↪ ퟚ in the second with the trivial fibration 푝∶ 퐸 ⥲→퐵. By Lemma 1.2.10, both maps are trivial fibrations and in particular equivalences. Now Proposition 5.4.6 proves that 푝 is a discrete cartesian fibration and also a discrete cocartesian fibration. 

132 A final important family of examples of discrete cartesian fibrations are worth establishing. Propo- ퟚ sition 5.1.23 proves that for any ∞-category 퐴, the domain-projection functor 푝0 ∶ 퐴 ↠ 퐴 defines a cartesian fibration. Thus functor does not define a discrete cartesian fibration in the ∞-cosmos 풦, ퟚ but recall that 푝0-cartesian lifts can be constructed to project to identity arrows along 푝1 ∶ 퐴 ↠ 퐴. This suggests that we might productively consider the domain-projection functor as a map over 퐴, in which case we have the following result: 5.4.10. Proposition. The functor (푝 ,푝 ) 퐴ퟚ 1 0 퐴 × 퐴 (5.4.11) 푝1 휋 퐴 defines a discrete cartesian fibration in the slice ∞-cosmos 풦/퐴.

Proof. Note that 2-cell conservativity implies that (5.4.11) is a discrete object in (풦/퐴)/휋∶ 퐴×퐴↠퐴 ≅ 풦/퐴×퐴, so it remains only to prove that this functor defines a cartesian fibration. We prove this using Theorem 5.1.11(i)⇔(ii). The first step is to compute the right representable comma object for the functor (5.4.11) by interpreting the formula (3.3.2) in the slice ∞-cosmos 풦/퐴 using Proposition 1.2.17. The ퟚ-cotensor of the object 휋∶ 퐴 × 퐴 ↠ 퐴 is 휋∶ 퐴 × 퐴ퟚ ↠ 퐴, so this right representable comma is computed by the left-hand pullback in 풦/퐴 below: 휋 Hom (퐴, 푝 ) 퐴 × 퐴ퟚ 퐴ퟚ 퐴 0 ⌟ ⌟ 푝2 id퐴 ×푝1 푝1 (푝 ,푝 ) 퐴ퟚ 1 0 퐴 × 퐴 휋 퐴

푝1 휋 퐴 Pasting with the right-hand pullback in 풦, we recognize that the ∞-category so-constructed coincides ퟚ with the right representable comma object for the functor 푝0 ∶ 퐴 ↠ 퐴 considered as a map in ퟛ 풦. Under the equivalence Hom퐴(퐴, 푝0) ≃ 퐴 established in the proof of Proposition 5.1.23, the isofibration 푝2 ∶ Hom퐴(퐴, 푝0) ↠ 퐴 is evaluation at the final element 2 ∈ ퟛ in the composable pair of ퟚ arrows. Similarly, the canonical functor 푖∶ 퐴 → Hom퐴(퐴, 푝0) induced by id푝0 in 풦 coincides with ퟚ the canonical functor 푖∶ 퐴 → Hom퐴(퐴, 푝0) over 퐴 induced by id(푝1,푝0) in 풦/퐴. Now applying Proposition 5.1.23 and Theorem 5.1.11(i)⇒(ii) in 풦, this functor 푖 admits a right adjoint 푟 over the domain-projection functor 푖

ퟚ 퐴 ⊥ Hom퐴(퐴, 푝0)

푝 0 푟 푝0 퐴

133 By the proofs of Theorem 5.1.11(iii)⇒(ii) and Proposition 5.1.23 this adjunction can be constructed by cotensoring 퐴(−) the composite adjunction of categories

휎0 푖 ퟚ×! 푘 ퟚ ⊤ ퟚ × ퟚ ⊤ ퟛ ⇝ 퐴ퟚ ⊥ 퐴ퟛ ퟚ×0 ℓ 푟 (1,0) 훿1 (2,0) (푝1,푝0) (푝2,푝0) ퟙ + ퟙ 퐴 × 퐴 where ℓ ⊣ 푘 is described in the proof of Proposition 5.1.23. The composite right adjoint is the functor 휎0 ∶ ퟛ ↠ ퟚ that sends 0 and 1 to 0 and 2 to 1, while the composite left adjoint is the functor 훿1 ∶ ퟚ ↣ ퟛ that sends 0 to 0 and 1 to 2. In particular, this adjunction lies in the strict slice 2-category under the inclusion of the “endpoints” of ퟚ and ퟛ. It follows that upon cotensoring into 퐴, we obtain a fibered adjunction over 퐴 × 퐴, which by Theorem 5.1.11(ii)⇒(i) implies that (5.4.11) is a cartesian fibration in 풦/퐴, completing the proof.  Combining Propositions 5.1.23 and Proposition 5.4.10, we can now generalize both results to ar- bitrary comma ∞-categories.

푔 푓 5.4.12. Corollary. For any functors 퐶 퐴 퐵 between ∞-categories in an ∞-cosmos 풦:

(i) The domain-projection functor 푝0 ∶ Hom퐴(푓, 푔) ↠ 퐵 is a cartesian fibration. Moreover, a natural transformation 휒 with codomain Hom퐴(푓, 푔) is 푝0-cartesian if and only if 푝1휒 is invertible. (ii) The codomain-projection functor 푝1 ∶ Hom퐴(푓, 푔) ↠ 퐶 is a cocartesian fibration. Moreover, a natu- ral transformation 휒 with codomain Hom퐴(푓, 푔) is 푝1-cartesian if and only if 푝0휒 is invertible. (iii) The functor (푝1,푝0) Hom퐴(푓, 푔) 퐶 × 퐵

푝 휋 1 퐶

defines a discrete cartesian fibration in 풦/퐶. (iv) The functor (푝1,푝0) Hom퐴(푓, 푔) 퐶 × 퐵

푝 휋 0 퐵

defines a discrete cocartesian fibration in 풦/퐵. Proof. We prove (i) and (iii) and leave the dualizations to the reader. For (iii), we first use the ∗ cosmological functor 푔 ∶ 풦/퐴 → 풦/퐶, which preserves discrete cartesian fibrations, to establish that

(푝1,푝0) Hom퐴(퐴, 푔) 퐶 × 퐴

푝 휋 1 퐶

134 defines a discrete cartesian fibration in 풦/퐶; this argument works because 푝1 ∶ Hom퐴(퐴, 푔) ↠ 퐶 is ퟚ the pullback of 푝1 ∶ 퐴 ↠ 퐴 along 푔. Now Hom (푓, 푔) Hom (퐴, 푔) 퐴 ⌟ 퐴 (푝1,푝0) 푝1 푝1 (푝1,푝0) 퐶×푓 퐶 × 퐵 퐶 × 퐴

휋 휋 퐶 is a pullback square in 풦/퐶, so Lemma 5.4.5 now implies that the pullback is also a discrete cartesian fibration. Using (iii) we can now prove (i). This follows directly from a general claim that if (푞,푝) 퐸 퐶 × 퐵 푞 휋 퐶 defines a cartesian fibration in 풦/퐶 then 푝∶ 퐸 ↠ 퐵 defines a cartesian fibration in 풦. By Theorem 5.1.11(i)⇔(ii), this functor defines a cartesian fibration in 풦/퐶 if and only if the functor 푖 푖

퐸 ⊥ Hom퐵(퐵, 푝)

푟 (푞,푝) (푞푝1,푝0) 퐶 × 퐵 admits a right adjoint 푟 over 퐶 × 퐵. Composing with 휋∶ 퐶 × 퐵 ↠ 퐵, this fibered adjunction defines an adjunction over 퐵, and Theorem 5.1.11(i)⇔(ii) applied this time in 풦 allows us to conclude that 푝∶ 퐸 ↠ 퐵 is a cartesian fibration.  ퟚ Note that the domain projection 푝0 ∶ Hom퐴(푓, 퐴) ↠ 퐵 is the pullback of 푝0 ∶ 퐴 ↠ 퐴 along 푓∶ 퐵 → 퐴, so Proposition 5.1.20 proves directly from Proposition 5.1.23 that this functor is a cartesian ퟚ fibration, but 푝0 ∶ Hom퐴(퐴, 푔) ↠ 퐴 is not similarly a pullback of 푝0 ∶ 퐴 ↠ 퐴. This is why a more circuitous argument to the general result is needed. Exercises. 5.4.i. Exercise. Prove Lemma 5.4.1. 5.5. The external Yoneda lemma

Let 푏∶ 1 → 퐵 be an element of an ∞-category 퐵 and consider its right representation Hom퐵(퐵, 푏) as a comma ∞-category. In this case, there is no additional data given by the codomain-projection functor, but Example 5.4.4 observes that the domain-projection functor 푝0 ∶ Hom퐵(퐵, 푏) ↠ 퐵 has a special property: it defines a discrete cartesian fibration. The fibers of this map over an element 푎∶ 1 → 퐵 are the internal mapping spaces Hom퐵(푎, 푏) of Definition 3.3.9. In this way, the right representation of the element 푏 encodes the contravariant functor represented by 푏, which is why all along we’ve been referring to the comma ∞-categories Hom퐵(퐵, 푏) as “representable.”

135 Our aim in this section is to state and prove the Yoneda lemma in this setting, where contravari- ant representable functors are encoded as discrete cartesian fibrations. A dual statement applies to covariant representable functors encoded as discrete cocartesian fibration 푝1 ∶ Hom퐵(푏, 퐵) ↠ 퐵, but for ease of exposition we leave the dualization to the reader. Informally, the Yoneda lemma asserts that “evaluation at the identity defines an equivalence,” so the first step towards the statement of the Yoneda lemma is to introduce this identity element, which in fact is something we’ve already encountered. The identity arrow id푏 induces an element ⌜id푏⌝∶ 1 → Hom퐵(퐵, 푏) which Corollary 3.4.9 proves is terminal in the ∞-category Hom퐵(퐵, 푏) of arrows in 퐵 with codomain 푏. The identity element inclusion defines a functor over 퐵

⌜id푏⌝ 1 Hom퐵(퐵, 푏) (5.5.1) 푏 푝0 퐵

Technically, this functor does not live in the sliced ∞-cosmos 풦/퐵 because the domain object 푏∶ 1 → 퐵 is not an isofibration but nevertheless for any isofibration 푝∶ 퐸 ↠ 퐵, restriction along ⌜id푏⌝ induces a functor between sliced quasi-categorical functor spaces ev 푝0 푝 ⌜id푏⌝ 푏 푝 Fun퐵(Hom퐵(퐵, 푏) −−→→퐵, 퐸 −→→퐵) −−−−−→ Fun퐵(1 −→퐵, 퐸 −→→퐵) Here the codomain is the quasi-category defined by the pullback

Fun퐵(푏, 푝) Fun(1, 퐸) ⌟ 푝∗ 푏 ퟙ Fun(1, 퐵) which is isomorphic to Fun(1, 퐸푏), the underlying quasi-category of the fiber 퐸푏 of 푝∶ 퐸 ↠ 퐵 over 푏. If a discrete cartesian fibration over 퐵 is thought of as a 퐵-indexed discrete ∞-category valued contravariant functor, then maps of discrete cartesian fibrations over 퐵 are “natural transformations”: the “naturality in 퐵” arises because we only allow functors over 퐵. This leads to our first statement of the fibrational Yoneda lemma: 5.5.2. Theorem (external Yoneda lemma, discrete case). If 푝∶ 퐸 ↠ 퐵 is a discrete cartesian fibration, then ev 푝0 푝 ⌜id푏⌝ 푏 푝 Fun퐵(Hom퐵(퐵, 푏) −−→→퐵, 퐸 −→→퐵) −−−−−→ Fun퐵(1 −→퐵, 퐸 −→→퐵) ≅ Fun(1, 퐸푏) is an equivalence of Kan complexes. Theorem 5.5.2 is subsumed by a generalization that allows 푝∶ 퐸 ↠ 퐵 to be any cartesian fibra- tion, not necessarily discrete. In this case, 푝 encodes an “∞-category-valued contravariant 퐵-indexed functor,” as does 푝0 ∶ Hom퐵(퐵, 푏) ↠ 퐵. The correct notion of “natural transformation” between two such functors is now given by a cartesian functor over 퐵; see Exercise 5.1.iii. To that end, for a pair of cartesian fibration 푞∶ 퐹 ↠ 퐵 and 푝∶ 퐸 ↠ 퐵, we write cart 푞 푝 푞 푝 Fun퐵 (퐹 −→→퐵, 퐸 −→→퐵) ⊂ Fun퐵(퐹 −→→퐵, 퐸 −→→퐵)

136 for the sub quasi-category containing all those simplices whose vertices define cartesian functors from 푞 to 푝.⁶ 5.5.3. Theorem (external Yoneda lemma). If 푝∶ 퐸 ↠ 퐵 is a cartesian fibration, then ev cart 푝0 푝 ⌜id푏⌝ 푏 푝 Fun퐵 (Hom퐵(퐵, 푏) −−→→퐵, 퐸 −→→퐵) −−−−−→ Fun퐵(1 −→퐵, 퐸 −→→퐵) ≅ Fun(1, 퐸푏) is an equivalence of quasi-categories. The proofs of these theorems overlap significantly and we develop them in parallel. The basic idea is to use the universal property of ⌜id푏⌝ as a terminal element of Hom퐵(퐵, 푏) to define a right adjoint to ev⌜id푏⌝ and prove that when 푝∶ 퐸 ↠ 퐵 is discrete or when the domain is restricted to the sub-quasi-category of cartesian functors, this adjunction defines an adjoint equivalence. Note that the Fun op functor ev⌜id푏⌝ is the image of the functor ⌜id푏⌝ under the 2-functor 퐵(−, 푝)∶ 픥(풦/퐵) → 풬풞푎푡. If the adjunction ! ⊣ ⌜id푏⌝ lived in the slice ∞-cosmos 풦/퐵, this would directly construct a right adjoint to ev⌜id푏⌝. The main technical difficulty in following the outline just given is that the adjunction that witnesses the terminality of ⌜id푏⌝ does not live in the slice of the homotopy 2-category 픥풦/퐵 but rather in a lax slice of the homotopy 2-category, that we now introduce.

5.5.4. Definition. Consider a 2-category 픥풦 and an object 퐵 ∈ 픥풦. The lax slice 2-category 픥풦⫽퐵 is the strict 2-category whose • objects are maps 푓∶ 푋 → 퐵 in 픥풦 with codomain 퐵; • 1-cells are diagrams 푋 푘 푌 훼 ⇒ (5.5.5) 푓 푔 퐵 in 픥풦; and • 2-cells from the 1-cell displayed above to the 1-cell below-right are 2-cells 휃∶ 푘 ⇒ 푘′ so that 푘′ ⇑휃 ′ 푋 푌 푋 푘 푌 푘 훼 훼′ ⇒ ⇒ 푓 푔 = 푓 푔 퐵 퐵 5.5.6. Lemma. The identity functor (5.5.1) is right adjoint to the right comma cone ! Hom퐵(퐵, 푏) 1 휙 ⇒ 푝 푏 0 퐵 in 픥풦⫽퐵.

⁶For any quasi-category 푄 and any subset 푆 of its vertices, there is a “full” sub-quasi-category 푄푆 ⊂ 푄 containing exactly those vertices and all the simplices of 푄 that they span.

137 Proof. Since 1 is the terminal ∞-category, we take the counit of the postulated adjunction to be the identity. By Definition 5.5.4 to define the unit, we must provide a 2-cell:

⌜id푏⌝! ⇑휂 ! ⌜id푏⌝ Hom퐵(퐵, 푏) Hom퐵(퐵, 푏) Hom퐵(퐵, 푏) 1 Hom퐵(퐵, 푏) 휙 ⇒ = 푏 푝0 푝0 푝0 푝0 퐵 퐵 so that 푝0휂 = 휙. This is the defining property of the unit in Lemma 3.4.8. The forgetful 2-functor 픥풦⫽퐵 → 픥풦 is faithful on 1- and 2-cells, so the verification of the triangle equalities in Lemma 3.4.8 proves that they also hold in 픥풦⫽퐵.  Using somewhat non-standard 2-categorical techniques, we will transfer the adjunction of Lemma 5.5.6 to an adjunction between the quasi-categories Fun퐵(푏, 푝) and Fun퐵(푝0, 푝); see Proposition 5.5.13. Because our initial adjunction lives in the lax rather than the strict slice, the construction will be somewhat delicate, passing through a pair of auxiliary 2-categories that we now introduce. 5.5.7. Definition. Let 픥풦 be the homotopy 2-category of an ∞-cosmos and write 픥풦⟓ for the strict 2-category whose • objects are cospans 푓 푝 퐴 퐵 퐸 in which 푝 is a cartesian fibration; • 1-cells are diagrams of the form 푓′ 푝′ 퐴′ 퐵′ 퐸′ 푎 ⇑휙 푏 푒 (5.5.8) 퐴 퐵 퐸 푓 푝 • and whose 2-cells consist of triples 훼∶ 푎 ⇒ 푎̄, 훽∶ 푏 ⇒ 푏̄, and 휖∶ 푒 ⇒ 푒̄ between the verticals of parallel 1-cell diagrams so that 푝휖 = 훽푝′ and 휙̄ ⋅ 푓훼 = 훽푓′ ⋅ 휙. 5.5.9. Definition. Let 픥풦 be the homotopy 2-category of an ∞-cosmos and write 픥풦⊡ for the strict 2-category whose • objects are pullback squares 푔 퐹 퐸 ⌟ 푞 푝 퐴 퐵 푓 whose verticals are cartesian fibrations;

138 • 1-cells are cubes ′ ′ 푔 ′ 퐹 ⌟ 퐸 푒 ⇑휒 ℓ 푝′ 푞′ 퐹⌟ 푔 퐸 (5.5.10) 푞 푓′ 퐴′ 퐵′ 푝 푏 ⇑휙 푎 퐴 퐵 푓 whose vertical faces commute and in which 휒∶ 푔ℓ ⇒ 푒푔′ is a 푝-cartesian lift of 휙푞′; and • whose 2-cells are given by quadruples 훼∶ 푎 ⇒ 푎̄, 훽∶ 푏 ⇒ 푏̄, 휖∶ 푒 ⇒ 푒̄, and 휆∶ ℓ ⇒ ℓ̄ in which 휖 and 휆 are, respectively, lifts of 훽푝′ and 훼푞′ and so that 휙 ⋅ 푓훼 = 훽푓′ ⋅ 휙 and 휒̄ ⋅ 푔휆 = 휖푔′ ⋅ 휒. These definitions are arranged so that there is an evident forgetful 2-functor 픥풦⊡ → 픥풦⟓. 5.5.11. Lemma. The forgetful 2-functor 픥풦⊡ → 픥풦⟓ is a smothering 2-functor. Proof. Proposition 5.1.20 tells us that 픥풦⊡ → 픥풦⟓ is surjective on objects. To see that it is full on 1-cells, first form the pullbacks of the cospans in (5.5.8), then define 휒 to be any 푝-cartesian lift of 휙푞′ with codomain 푒푔′. By construction, the domain of 휒 lies strictly over 푓푎푞′ and so this functor factors uniquely through the pullback leg 푔 defining the map ℓ of (5.5.10). To prove that 픥풦⊡ → 픥풦⟓ is full on 2-cells, consider a parallel pair of 1-cells in 픥풦⊡. For one of these we use the notation of (5.5.10) and for the other we denote the diagonal functors by 푎,̄ 푏,̄ 푒̄, and ℓ̄ and denote the 2-cells by 휙̄ and 휒̄; the requirement that these 1-cells be parallel implies that the pullback faces are necessarily the same. Now consider a triple 훼∶ 푎 ⇒ 푎̄, 훽∶ 푏 ⇒ 푏̄, and 휖∶ 푒 ⇒ 푒̄ satisfying the conditions of Definition 5.5.7. Our task is to define a fourth 2-cell 휆∶ ℓ ⇒ ℓ̄ so that 푞휆 = 훼푞′ and 휒̄ ⋅ 푔휆 = 휖푔′ ⋅ 휒. To achieve this, we first define a 2-cell 훾∶ 푔ℓ ⇒ 푔ℓ̄ using the induction property of the 푝-cartesian cell 휒∶̄ 푔ℓ̄ ⇒ 푒푔̄ ′ applied to the composite 2-cell 휖푔′ ⋅ 휒∶ 푔ℓ ⇒ 푒푔̄ ′ and the factorization 푝휖푔′ ⋅ 푝휒 = 휙푞̄ ′ ⋅ 푓훼푞′. By construction 푝훾 = 푓훼푞′ so the pair 훼푞′ and 훾 induces a 2-cell 휆∶ ℓ ⇒ ℓ̄ so that 푞휆 = 훼푞′ and 푔휆 = 훾. The quadruple (훼, 훽, 휖, 휆) now defines the required 2-cell in 픥풦⊡. Finally, for 2-cell conservativity, suppose 훼, 훽, and 휖 as above are isomorphisms. By the conser- vativity property for pullbacks to show that 휆 is an isomorphism, it suffices to prove that 푞휆 = 훼푞′ is, which we know already, and that 푔휆 = 훾 is invertible. But 훾 was constructed as a factorization 휖푔′ ⋅ 휒 = 휒̄ ⋅ 훾 with 푝훾 = 푓훼푞′. Since 휖 is an isomorphism, 휖푔′ ⋅ 휒 is 푝-cartesian, so Lemma 5.1.5 proves that 훾 is an isomorphism.  5.5.12. Remark. While we cannot directly define a pullback 2-functor 픥풦⟓ → 픥풦 in the homotopy 2-category because the 2-categorical universal property of pullbacks in 픥풦 is weak and not strict, the zig zag of 2-functors 픥풦⟓ ← 픥풦⊡ → 픥풦, in which the backwards map is a smothering 2-functor and the forwards map evaluates at the pullback vertex, defines a reasonable replacement. Using Lemma 5.5.11, we can now construct the desired adjunction:

139 5.5.13. Proposition. For any element 푏∶ 1 → 퐵 and any cartesian fibration 푝∶ 퐸 ↠ 퐵, the evaluation at the identity functor admits a right adjoint ev ⌜id푏⌝

Fun퐵(푝0, 푝) ⊥ Fun퐵(푏, 푝)

푅 defined by the domain-component of the 푝∗-cartesian lift of the right comma cone over 푏: Fun (푏, 푝) Fun(1, 퐸) 퐵 ⌟ ∗ ⇑휒 ! 푅 푝∗ Fun퐵(푝0, 푝) Fun(Hom퐵(퐵, 푏), 퐸) ⌟ (5.5.14) 푏 ퟙ Fun(1, 퐵) 푝∗ ∗ ⇑휙 ! ퟙ Fun(Hom (퐵, 푏), 퐵) 푝0 퐵 The idea will be to transfer the adjunction of Lemma 5.5.6 through a sequence of 2-functors ev 픥풬풞푎푡⊡ ⊤ 픥풬풞푎푡

op ⟓ 픥풦⫽퐵 픥풬풞푎푡 using Lemma 3.5.8 to lift along the middle smothering 2-functor. op ⟓ Proof. Fixing a cartesian fibration 푝∶ 퐸 ↠ 퐵 in 풦, we define a 2-functor⁷ 풦⫽퐵 → 픥풬풞푎푡 that carries a 1-cell (5.5.5) to 푔 푝∗ ퟙ Fun(푌, 퐵) Fun(푌, 퐸)

⇑훼 푘∗ 푒 ퟙ Fun(푋, 퐵) Fun(푋, 퐸) 푓 푝∗ and a 2-cell 휃∶ 푘 ⇒ 푘′ to the 2-cell that acts via pre-whiskering with 휃 in its two non-identity components. By Corollary 5.1.16, the functors 푝∗ are cartesian fibration of quasi-categories. op ⟓ We now apply the 2-functor 풦⫽퐵 → 픥풬풞푎푡 to the adjunction of Lemma 5.5.6 to obtain an adjunction in 픥풬풞푎푡⟓ and then use the smothering 2-functor of Lemma 5.5.11 and Lemma 3.5.8 to lift this to an adjunction in 픥풬풞푎푡⊡. As elaborated on in Exercise 3.5.ii, the lifted adjunction in 픥풬풞푎푡⊡ can be constructed using any lifts of the objects, 1-cells, and either the unit or counit of the adjunction in 픥풬풞푎푡⟓.

⁷To explain the variance, recall that the 2-functor Fun(−, 퐵)∶ 픥풦op → 픥풬풞푎푡 is contravariant on 1-cells but covariant on 2-cells. Such 2-functors, like all 2-functors, preserve adjunctions, though in this case the left and right adjoints are interchanged, while the units and counits retain the same roles.

140 In particular, we may take the left adjoint of the lifted adjunction in 픥풬풞푎푡⊡ to be any lift of the ⟓ image in 픥풬풞푎푡 of the right adjoint of the adjunction ! ⊣ ⌜id푏⌝ in 픥풦⫽퐵, and so our left adjoint is

Fun퐵(푝0, 푝) Fun(Hom퐵(퐵, 푏), 퐸) ⌟ ⌜id ⌝∗ = 푏 ev ⌜id푏⌝ 푝∗ Fun (푏, 푝) Fun(1, 퐸) 퐵 ⌟ 푝 0 푝 ퟙ Fun(Hom퐵(퐵, 푏), 퐵) ∗ ⌜id ⌝∗ = 푏 ퟙ Fun(1, 퐵) 푏 We may also take the right adjoint to be any lift of the image of the right adjoint of the adjunction. This proves that the right adjoint is defined by (5.5.14). Since the counit of ! ⊣ ⌜id푏⌝ is an identity, the counit of the lifted adjunction may also be taken to be an identity. Finally, we compose with the forgetful 2-functor 픥풬풞푎푡⊡ → 픥풬풞푎푡 that evaluates at the pullback ⊡ vertex to project our adjunction in 픥풬풞푎푡 to the desired adjunction in 픥풬풞푎푡.  The proof of the discrete case of the Yoneda lemma is now one line.

Proof of Theorem 5.5.2. If 푝∶ 퐸 ↠ 퐵 is discrete, then Fun퐵(푝0, 푝) and Fun퐵(푏, 푝) are Kan com- plexes, so the adjunction defined in Proposition 5.5.13 is an adjoint equivalence.  Specializing to the case of two right representable discrete cartesian fibrations, we conclude that the Kan complex of natural transformations is equivalent to the underlying quasi-category of their internal mapping space. 5.5.15. Corollary (external Yoneda embedding). For any elements 푥, 푦∶ 1 ⇉ 퐴 in an ∞-category 퐴, evaluation at the identity of 푥 induces an equivalence of Kan complexes

ev⌜id푥⌝

Fun퐴(Hom퐴(퐴, 푥), Hom퐴(퐴, 푦)) ∼ Fun(1, Hom퐴(푥, 푦))  It remains to prove the general case of Theorem 5.5.3. The next step is to observe that the right adjoint in the adjunction of Proposition 5.5.13 lands in the sub quasi-category of cartesian functors from 푝0 to 푝. Lemma 5.5.16 proves this after which it is short work to complete the proof of Theorem 5.5.3 by arguing that this restricted adjunction defines an adjoint equivalence.

5.5.16. Lemma. For each vertex in Fun퐵(푏, 푝) below-left 푅 Fun퐵(푏, 푝) Fun퐵(푝0, 푝)

푒 푅푒 1 퐸 Hom퐵(퐵, 푏) 퐸

푏 푝 ↦ 푝0 푝 퐵 퐵 the map 푅푒 in Fun퐵(푝0, 푝) above-right defines a cartesian functor in 풦/퐵.

141 Proof. From the definition of the right adjoint in (5.5.14) and Lemma 5.3.5, we see that 푅푒 is the domain component of a 푝-cartesian lift 휒 of the composite natural transformation below-left 푒! ! 푒 Hom퐵(퐵, 푏) 1 퐸 Hom퐵(퐵, 푏) ⇑휒 퐸 푅푒 ⇑휙 푏 푝 = 푝0 푝 푝0 퐵 퐵

Since 푝0 ∶ Hom퐵(퐵, 푏) ↠ 퐵 is discrete, every natural transformation 휓 with codomain Hom퐵(퐵, 푏) is 푝0-cartesian, so to prove that 푅푒 defines a cartesian functor, we must show that 푅푒휓 is 푝-cartesian. To that end, consider the horizontal composite 푦 푒!

푋 ⇑휓 Hom퐵(퐵, 푏) ⇑휒 퐸 푥 푅푒 By naturality of whiskering, we have 휒푦 ⋅ 푅푒휓 = 푒!휓 ⋅ 휒푥 = 휒푥, since 1 is the terminal ∞-category and hence 푒!휓 is an identity. Now Lemma 5.1.24(ii) implies that 푅푒휓 is 푝-cartesian.  Proof of Theorem 5.5.3. By Lemma 5.5.16, the adjunction of Proposition 5.5.13 restricts to de- fine an adjunction ev ⌜id푏⌝

cart Fun퐵 (푝0, 푝) ⊥ Fun퐵(푏, 푝)

푅 Since the counit of the original adjunction ! ⊣ ⌜id푏⌝ is an isomorphism and smothering 2-functors are conservative on 2-cells, the counit of the adjunction of Proposition 5.5.13 and hence also of the restricted adjunction is an isomorphism. As in the proof of Theorem 5.5.2, we will prove that ev⌜id푏⌝ is an equivalence by demonstrating that the unit of the restricted adjunction is also invertible. By Lemma ??, it suffices to verify this elementwise, proving that the component of the unit indexed by a cartesian functor 푓 Hom퐵(퐵, 푏) 퐸

푝 푝 0 퐵 is an isomorphism.

Unpacking the proof of Proposition 5.5.13, the unit 휂̂ of ev⌜id푏⌝ ⊣ 푅 is defined to be a factorization ∗ ⌜id푏⌝ Fun퐵(푝0, 푝) Fun(Hom퐵(퐵, 푏), 퐸) Fun(1, 퐸) ⇑Fun(휂,퐸) ∗ = ! ev ⌜id푏⌝ Fun퐵(푝0, 푝) Fun퐵(푏, 푝) Fun(1, 퐸) Fun(Hom퐵(퐵, 푏), 퐸) ⇑휂̂ 푅 ⇑휒 !∗

Fun퐵(푝0, 푝) Fun(Hom퐵(퐵, 푏), 퐸)

142 of the pre-whiskering 2-cell Fun(휂, 퐸) through the 푝∗-cartesian lift 휒. The component of the pre- whiskering 2-cell Fun(휂, 퐸) at the cartesian functor 푓 is 푓휂. Since 푝0 ∶ Hom퐵(퐵, 푏) ↠ 퐵 is a discrete cartesian fibration, any 2-cell, such as 휂, which has codomain Hom퐵(퐵, 푏) is 푝0-cartesian, and since 푓 is a cartesian functor, we then see that 푓휂 is 푝-cartesian. By Lemma 5.3.8, the components of the 푝∗-cartesian cell 휒 define 푝-cartesian natural transforma- tions in 풦. As 휂̂ is a natural transformation with codomain Fun퐵(푝0, 푝) its components project along 푝 to the identity. In this way, we see that 휂푓̂ is a factorization of the 푝-cartesian transformation 푓휂 through a 푝-cartesian lift of 휙 over an identity, and Lemma 5.1.5 proves that 휂푓̂ is an isomorphism, as desired.  Exercises.

5.5.i. Exercise. Given an element 푓∶ 1 → Hom퐴(푥, 푦) in the internal mapping space between a pair of elements in an ∞-category 퐴, use the explicit description of the inverse equivalence to the map of Corollary 5.5.15 to construct a map

푓∗ Hom퐴(퐴, 푥) Hom퐴(퐴, 푦)

푝0 푝 퐴 0 which represents the “natural transformation” defined by post-composing with 푓.⁸

⁸Hint: this construction is a special case of the construction given in the first half of the proof of Lemma 5.5.16. 143

Part II

Homotopy coherent category theory

CHAPTER 6

Simplicial computads and homotopy coherence

Consider a diagram 푑∶ 1 → 퐴퐽 in an ∞-category 퐴 indexed by a 1-category 퐽. Via the isomorphism Fun(1, 퐴퐽) ≅ Fun(1, 퐴)퐽, an element in the ∞-category of diagrams 퐴퐽 equally defines a functor 푑∶ 퐽 → Fun(1, 퐴) valued in the underlying quasi-category of 퐴. Applying h∶ 풬풞푎푡 → 풞푎푡, this descends to a diagram h푑∶ 퐽 → h퐴 of shape 퐽 in the homotopy category of 퐴; such diagrams are called homotopy commutative. But the original diagram 푑 has a much richer property, defining what is called a homotopy coherent diagram of shape 퐽 in the quasi-category Fun(1, 퐴). To make the data involved in defining a homotopy coherent diagram most explicit, we first in- troduce a general notion of homotopy coherent diagram as a simplicial functor valued in a simplicial category whose hom-spaces are Kan complexes. What makes such diagrams “homotopy coherent” and not just “simplicially enriched” is that their domains are required to be “free” simplicial categories of a particular form that we refer to by the name simplicial computads. Because every quasi-category can be presented up to equivalence by a Kan-complex enriched category, it will follow that “all diagrams valued in quasi-categories are homotopy coherent.” To build intuition for the general notion of a homotopy coherent diagram, it is helpful to consider a special case of diagrams indexed by the category 흎 ≔ 0 1 2 3 ⋯

whose objects are finite ordinals and with a morphism 푗 → 푘 if and only if 푗 ≤ 푘 and valued in the Kan-complex enriched category of spaces 풮푝푎푐푒.A 흎-shaped graph in 풮푝푎푐푒 is comprised of spaces 푋푘 for each 푘 ∈ 흎 together with continuous maps 푓푗,푘 ∶ 푋푗 → 푋푘 whenever 푗 < 푘.¹ This data defines a homotopy commutative diagram just when 푓푖,푘 ≃ 푓푗,푘 ∘ 푓푖,푗 whenever 푖 < 푗 < 푘.² To extend this data to a homotopy coherent diagram 흎 → 풮푝푎푐푒 requires:

• Chosen homotopies ℎ푖,푗,푘 ∶ 푓푖,푘 ≃ 푓푗,푘 ∘ 푓푖,푗 whenever 푖 < 푗 < 푘. This amounts to specifying a path in Map(푋푖, 푋푘) from the vertex 푓푖,푘 to the vertex 푓푗,푘 ∘ 푓푖,푗, which is obtained as the composite of the two vertices 푓푖,푗 ∈ Map(푋푖, 푋푗) and 푓푗,푘 ∈ Map(푋푗, 푋푘).

¹To simplify somewhat we adopt the convention that 푓푗,푗 is the identity, making this data into a reflexive directed graph with implicitly designated identities. ²This data defines a strictly commutative diagram (aka a functor 흎 → 풮푝푎푐푒) just when 푓푖,푘 = 푓푗,푘 ∘ 푓푖,푗 whenever 푖 < 푗 < 푘. Strictly commutative diagrams are certainly homotopy commutative. Homotopy coherent category theory arose from the search for conditions under which something like the converse implication held: a homotopy commutative diagram is realized by (i.e., naturally isomorphic to up to homotopy) a strictly commutative diagram, if and only if it extends to a homotopy coherent diagram [18, 2.5].

147 • For 푖 < 푗 < 푘 < ℓ, the chosen homotopies provide four paths in Map(푋푖, 푋ℓ)

ℎ푖,푘,ℓ 푓푖,ℓ 푓푘,ℓ ∘ 푓푖,푘

ℎ푖,푗,ℓ 푓푘,ℓ∘ℎ푖,푗,푘

푓푗,ℓ ∘ 푓푖,푗 푓푘,ℓ ∘ 푓푗,푘 ∘ 푓푖,푗 ℎ푗,푘,ℓ∘푓푖,푗 We then specify a higher homotopy — a 2-homotopy — filling in this square. • For 푖 < 푗 < 푘 < ℓ < 푚, the previous choices provide 12 paths and six 2-homotopies in Map(푋푖, 푋푚) that assemble into the boundary of a cube. We then specify a 3-homotopy, a ho- motopy between homotopies between homotopies, filling in this cube. • Etc. Even in this simple case of the category 흎, this data is a bit unwieldy. Our task is to define a category to index this homotopy coherent data arising from 흎: the objects 푋푖, the functions 푋푖 → 푋푗, the 1-homotopies ℎ푖,푗,푘, the 2-homotopies, and so on. This data will assemble into a simplicial category whose objects are the same as the objects of 흎 but which will have 푛-morphisms in each dimension 푛 ≥ 0, to index the 푛-homotopies. Importantly, this simplicial category will be “freely generated” from a much smaller collection of data. We begin by studying such “freely generated” simplicial categories under the name simplicial computads. 6.1. Simplicial computads 6.1.1. Definition (free categories and atomic arrows). An arrow 푓 in a 1-category is atomic if it is not an identity and if it admits no non-trivial factorizations: i.e., if whenever 푓 = 푔 ∘ ℎ, either 푔 or ℎ is an identity. A 1-category is free if every arrow may be expressed uniquely as a composite of atomic arrows, with the convention that empty composites correspond to identity arrows.³ 6.1.2. Digression (on free categories and reflexive directed graphs). The category of presheaves on the truncation 푠 횫≤1 ≔ • 푖 • 푖푠 = 푖푡 = id 푡 defines the category 풢푝ℎ of (reflexive, directed) graphs: for us, a graph consists of a set of vertices, a set of edges each with a specified source and target vertex, and a distinguished “identity” endo-edge for each vertex. Any category has an underlying reflexive directed graph, and this forgetful functor admits a left adjoint, defining the free category whose atomic and identity arrows are the arrows in the given graph: 퐹 풞푎푡 ⊥ 풢푝ℎ 푈 Recall, from Digression 1.2.2, that a simplicial category 풜 may be presented by a family of 1-categories op 풜푛 of 푛-arrows, for 푛 ≥ 0, each with a common set of objects, that assemble into a diagram 풜• ∶ 횫 → ³Alternatively, a 1-category is free if every non-identity arrow may be expressed uniquely as a non-empty composite of atomic arrows and if identity arrows admit no non-trivial factorizations.

148 풞푎푡 comprised of identity-on-objects functors. The notion of “free” simplicial category was first in- troduced by Dwyer and Kan [19, 4.5]. 6.1.3. Definition (simplicial computad). A simplicial category 풜 is a simplicial computad if and only if

• Each category 풜푛 of 푛-arrows is freely generated by the graph of atomic 푛-arrows. • If 푓 is an atomic 푛-arrow in 풜푛 and 휎∶ [푚] ↠ [푛] is an epimorphism in 횫, then the degenerated 푚-arrow 푓 ⋅ 휎 is atomic in 풜푚. By the Eilenberg-Zilber lemma⁴, a simplicial category 풜 is a simplicial computad if and only if all of its non-identity arrows can be expressed uniquely as a composite

푓 = (푓1 ⋅ 훼1) ∘ (푓2 ⋅ 훼2) ∘ ⋯ ∘ (푓ℓ ⋅ 훼ℓ) in which each 푓푖 is non-degenerate and atomic and each 훼푖 is a degeneracy operator in 횫.

6.1.4. Example. A 1-category 퐴 may be regarded as a simplicial category 퐴• in which 퐴푛 ≔ 퐴 for all 푛. In the construction, the hom-spaces of 퐴 coincide with the hom-sets of 퐴. Such “constant” simplicial categories define simplicial computads if and only if the 1-category 퐴 is free. 6.1.5. Example. For any simplicial set 푈, let ퟚ[푈] denote the simplicial category with two objects “−” and “+” and with hom-spaces defined by ퟚ[푈](+, −) ≔ ∅, ퟚ[푈](+, +) ≔ ퟙ ≕ ퟚ[푈](−, −), ퟚ[푈](−, +) ≔ 푈. This simplicial category is a simplicial computad because there are no composable sequences of arrows in ퟚ[푈] containing more than one non-identity arrow. Every arrow from − to + is atomic. 6.1.6. Definition. A simplicial functor 퐺∶ 풜 → ℬ between simplicial computads defines a sim- plicial computad morphism if it maps every atomic arrow 푓 in 풜 to an arrow 퐺푓 which is either atomic or an identity in ℬ. Write 풮풮푒푡-풞푝푡푑 ⊂ 풮풮푒푡-풞푎푡 for the non-full subcategory of simplicial computads and their morphisms. The axioms of Definition 6.1.3 assert that the atomic and identity 푛-arrows of a simplicial com- op putad assemble into a diagram in 풢푝ℎ횫epi and a simplicial computad morphism restricts to define op a natural transformation between the underlying 횫epi -indexed graphs of atomic and identity ar- rows; in this way, restricting to the atomic or identity arrows defines a functor atom∶ 풮풮푒푡-풞푝푡푑 → op 풢푝ℎ횫epi . The next lemma tells us that the category 풮풮푒푡-풞푝푡푑 is canonically isomorphic to the op op intersection of 풢푝ℎ횫epi and 풮풮푒푡-풞푎푡 in 풞푎푡횫epi . 6.1.7. Lemma. The functor that carries a simplicial computad to its underlying diagram of atomic and identity arrows and the inclusion of simplicial computads into simplicial categories define the legs of a pullback cone: 풮풮푒푡-풞푝푡푑 풮풮푒푡-풞푎푡 ⌟ atom op op 횫epi op 풢푝ℎ횫epi 퐹 풞푎푡횫epi

⁴The Eilbenberg-Zilber lemma asserts that any degenerate simplex in a simplicial set may be uniquely expressed as a degenerated image of a non-degenerate simplex; see [21, II.3.1, pp. 26-27].

149 op op op Moreover since 풮풮푒푡-풞푎푡 and 풢푝ℎ횫epi have colimits, the functors to 풞푎푡횫epi preserve them, and 퐹횫epi is an isofibration, it follows that 풮풮푒푡-풞푝푡푑 has colimits created by either of the functors to 풮풮푒푡-풞푎푡 or to op 풢푝ℎ횫epi . op Proof. If 풜 is a simplicial category, presented as a simplicial object 풜• ∶ 횫 → 풞푎푡, then 풜 is a simplicial computad if and only if there exists a dotted lift as below-left

op ∃! op 횫epi 풢푝ℎ 횫epi ⇓∃! 풢푝ℎ

퐹 풜• 퐹 풜• 횫op 풞푎푡 횫op ⇓퐺 풞푎푡

ℬ• in which case this lift is necessarily unique. Correspondingly, as simplicial functor 퐺∶ 풜 → ℬ de- fines a computad morphism if and only if the restricted natural transformation above-right also lifts through the free category functor, again necessarily uniquely. These facts verify that the category 풮풮푒푡-풞푝푡푑 is captured as the stated pullback. Now consider a diagram 퐷∶ 퐽 → 풮풮푒푡-풞푝푡푑 and form its colimit cone in 풮풮푒푡-풞푎푡 and in op op 풢푝ℎ횫epi . The functors to 풞푎푡횫epi carry these to a pair of isomorphic colimit cones under the same op diagram and since 퐹횫epi is an isofibration (any category isomorphic to a free category is itself a free category and this isomorphism necessarily restricts to underlying graphs of atomic arrows), there exists op op a colimit cone under 퐷 in 풢푝ℎ횫epi whose image under 퐹횫epi is equal to the image of the colimit cone under 퐷 in 풮풮푒푡-풞푎푡. Now the universal property of the pullback allows us to lift this cone to 풮풮푒푡-풞푝푡푑, and a similar argument using the 2-categorical universal property of the pullback diagram of categories demonstrates that the lifted cone is a colimit cone.  6.1.8. Definition (simplicial subcomputads). A simplicial computad morphism 풜 ↪ ℬ that is in- jective on objects and faithful — i.e., carries every atomic arrow in 풜 to an atomic arrow in ℬ — displays 풜 as a simplicial subcomputad of ℬ. The simplicial subcomputad 푆 generated by a set of arrows 푆 in a simplicial computad 풜 is the smallest simplicial subcomputad of 풜 containing those arrows. The objects of 푆 are those objects that appear as domains or codomains of arrows in 푆 and its set of morphisms is the smallest subset of morphisms containing 푆 that have the following closure properties: • if 푓 ∈ 푆 and 훼∶ [푛] → [푚] ∈ 횫, then 푓 ⋅ 훼 ∈ 푆. • If 푓, 푔 ∈ 푆 are composable then 푓 ∘ 푔 ∈ 푆. Lemma 6.1.7 proves that simplicial computads and computad morphisms are closed under colimits formed in the category of simplicial categories. For certain special colimit shapes, the property of being a simplicial subcomputad is also preserved: 6.1.9. Lemma. A simplicial subcategory 풜 ↪ ℬ of a simplicial computad ℬ displays 풜 as a simplicial subcomputad of ℬ just when 풜 is closed under factorizations: if 푓 and 푔 are composable arrows of ℬ and 푓 ∘ 푔 ∈ 풜 then 푓 and 푔 are in 풜.

Proof. Exercise 6.1.i. 

150 6.1.10. Lemma. Simplicial subcomputads are closed under coproduct, pushout, and colimit of countable se- quences. Proof. Simplicial subcomputad inclusions are precisely those morphisms in 풮풮푒푡-풞푝푡푑 whose op images in 풢푝ℎ횫epi are pointwise monomorphisms. Lemma 6.1.7 proves that colimits in 풮풮푒푡-풞푝푡푑 op are crated in 풢푝ℎ횫epi . As colimits in this presheaf category are formed pointwise and as monomor- phisms are stable under coproduct, pushout, and colimit of countable sequences, the result follows.  6.1.11. Definition (relative simplicial computad). The class of all relative simplicial computads is the class of all simplicial functors that can be expressed as a countable composite of pushouts of coproducts of • the unique simplicial functor ∅ ↪ ퟙ and • the simplicial subcomputad inclusion ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]] for 푛 ≥ 0. The next lemma reveals that relative simplicial computads differ from simplicial subcomputad inclusions only in the fact that the domains of relative simplicial computads need not be simplicial computads — but when they are, the codomain is also a simplicial computad and the map is a simplicial subcomputad inclusion. 6.1.12. Lemma. If 풜 is a simplicial computad, then an inclusion of simplicial categories 풜 ↪ ℬ is a simplicial computad inclusion if and only if it is a relative simplicial computad. In particular, a simplicial category ℬ is a simplicial computad if and only if ∅ ↪ ℬ is a relative simplicial computad. Proof. First note that ∅ ↪ ퟙ and ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]] are simplicial subcomputad inclusions: the first case is trivial and for the latter, all the non-identity arrows in ퟚ[푈] atomic. By Lemma 6.1.10, to prove that any relative simplicial computad 풜 ↪ ℬ whose domain is a simplicial computad is a subcomputad inclusion, it suffices to prove that for any simplicial computad 풜 and any simplicial functor 푓∶ ퟚ[휕Δ[푛]] → 풜, not necessarily a computad moprhism, the pushout of ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]] along 푓 is a simplicial computad containing 풜 as a simplicial subcomputad. The subcomputad inclusion ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]] is full on 푟-arrows for 푟 < 푛; for 푟 > 푛, the codomain is constructed by adjoining one atomic arrow from − to + for each epimorphism [푟] ↠ [푛]. It follows that the pushout 풜 ↪ 풜′ is similarly full on 푟-arrows for 푟 < 푛, and for 푟 ≥ 푛, the category of 푟-arrows of 풜′ is obtained from that of 풜 by adjoining one atomic 푟-arrow for each degeneracy operator [푟] ↠ [푛] with boundary specified by the attaching map 푓. If we adjoin an arrow to a free category along its boundary we get a free category with that arrow as an extra generator, so each of the categories of 푟-arrows of 풜′ are freely generated, and it is clear from this description that on degenerating one of these extra adjoined arrows we just map it to one of the generating arrows we’ve adjoined at a higher dimension. This proves that 풜 ↪ 풜′ is a simplicial subcomputad inclusion as claimed. It follows inductively that the codomain of a relative simplicial computad is a simplicial computad whenever its domain is, in which case the inclusion is a subcomputad inclusion. For the converse, we inductively present any simplicial subcomputad inclusion 풜 ↪ ℬ as a sequential composite of pushouts of coproducts of the maps ∅ ↪ ퟙ and ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]]. Note that ퟚ[Δ[푛]] contains a single non-degenerate atomic arrow not present in ퟚ[휕Δ[푛]], namely the unique non-degenerate 푛-arrow representing the 푛-simplex. At stage “−1,” use the inclusion ∅ ↪ ퟙ to attach any object in ℬ\풜 to 풜. At stage “0,” use the inclusion ퟚ[∅] ↪ ퟚ[Δ[0]] to attach each atomic 0-arrows of ℬ that is not in 풜. Iteratively, at 151 stage “푟,” use the inclusion ퟚ[휕Δ[푟]] ↪ ퟚ[Δ[푟]] to attach each atomic 푟-arrows of ℬ that is not in 풜. There is a canonical map from the codomain of the relative simplicial computad defined in this way to ℬ, which by construction is bijective on objects and sends the unique atomic arrow attached by each cell to an atomic arrow in ℬ; in particular this comparison functor, which by construction lies in 풮풮푒푡-풞푝푡푑 is in fact a simplicial subcomputad inclusion. The comparison is surjective on atomic 푛-arrows by construction and hence surjective on all arrows, because the unique factorization any arrow into non-degenerate atomics is present in the colimit at the stage corresponding to the dimension of that arrow. Thus, we have presented 풜 ↪ ℬ as a relative simplicial computad inclusion.  The morphisms listed in Definition 6.1.11 are the generating cofibrations in the Bergner model structure on simplicial categories [4]. Hence, the relative simplicial computads are precisely the cellu- lar cofibrations, those that are built as sequential composites of pushouts of coproducts of generating cofibrations (without closing under retracts). For non-cofibrant domains, the notion of Bergner cofi- bration is more general than the notion of relative simplicial computad. However: 6.1.13. Lemma. Every retract of a simplicial computad is a simplicial computad. Proof. A simplicial category 풜 is a retract of a simplicial computad ℬ if there exist simplicial functors 풜 푆 ℬ 푅 풜 so that 푅푆 = id. The category 풜 is then recovered as the coequalizer (or the equalizer) of 푆푅 and the identity, so if we knew that this idempotent defined a computad morphism, we could appeal to Lemma 6.1.7 and be done; but we do not know this, so we must argue further. First we demonstrate that every retract of a free category is free. To see this, we’ll first show that the inclusion 풜푛 ↪ ℬ푛 satisfies the “2-of-3” property: of 푓 and 푔 are composable morphisms of ℬ푛 so that two of three of 푓, 푔, and 푓 ∘ 푔 lie in 풜푛, then so does the third. This is clear in the case where 푓, 푔 ∈ 풜푛 so suppose that 푓, 푓 ∘푔 ∈ 풜푛. Then 푓 and 푓 ∘푔 are fixed points for the idempotent 푆푅 and so we have 푓 ∘ 푔 = 푆푅(푓 ∘ 푔) = 푆푅(푓) ∘ 푆푅(푔) = 푓 ∘ 푆푅(푔). In the free category ℬ푛, all morphisms are both monic and epic, so 푔 = 푆푅(푔) lies in 풜푛 as well. Now by induction it is easy to verify that every arrow in 풜푛 factors uniquely as a product of composites of atomic arrows in ℬ푛, with each of these composites defining an atomic arrow in 풜푛. This verifies the first condition of Definition 6.1.3. It remains only to verify that degenerate images of atomic arrows in 풜푛 are atomic. To that end consider an epimorphism 훼∶ [푚] ↠ [푛] and an atomic 푛-arrow 푓 in 풜푛. If 푓 ⋅ 훼 = 푔 ∘ ℎ is a non-trivial factorization in 풜푚 ↪ ℬ푚 then since ℬ is a simplicial computad we must have 푆(푓) = 푔′ ∘ ℎ′ with 푔′ ⋅ 훼 = 푆(푔) and ℎ′ ⋅ 훼 = 푆(ℎ). Since 푓 = 푅푆(푓) = 푅푔′ ∘ 푅ℎ′ is atomic, we must have 푅푔′ or 푅ℎ′ an identity, but then 푅푔′ ⋅ 훼 = 푅푆(푔) = 푔 or 푅ℎ′ ⋅ 훼 = 푅푆(ℎ) = ℎ is an identity, and so the factorization 푓 ⋅ 훼 = 푔 ∘ ℎ is trivial after all.  Consequently: 6.1.14. Corollary. The simplicial computads are precisely the cofibrant simplicial categories in the Bergner model structure.  Exercises. 6.1.i. Exercise. Prove Lemma 6.1.9.

152 6.1.ii. Exercise. Prove that the 푟-skeleton of a simplicial computad, defined by discarding all arrows of dimension⁵ greater than 푟, is the simplicial subcomputad generated by the atomic arrows of dimension 푟. 6.2. Free resolutions and homotopy coherent simplices The original example of a simplicial computad, also due to Dwyer and Kan [19], is given by the free resolution of a 1-category 퐶. 6.2.1. Definition (free resolutions). Write 퐹 ⊣ 푈 for the free category and underlying graph functors of Digression 6.1.2. Note that the components of the counit and comultiplication of the comonad (퐹푈∶ 풞푎푡 → 풞푎푡, 휖∶ 퐹푈 ⇒ id, 퐹휂푈∶ 퐹푈 ⇒ 퐹푈퐹푈) define identity-on-objects functors. For any 1-category 퐶, we will define a simplicial category 퐹푈•퐶 with the same objects and with the category of 푛-arrows defined to be (퐹푈)푛+1퐶. A 0-arrow is a sequence of composable arrows in 퐶. A non-identity 푛-arrow is a sequence of composable arrows in 퐶 with each arrow in the sequence enclosed in exactly 푛 pairs of well-formed parentheses. The simplicial object 횫op → 풞푎푡 is formed by evaluating the comonad resolution at 퐶 ∈ 풞푎푡:

퐹푈퐶 (퐹푈)2퐶 (퐹푈)3퐶 (퐹푈)4퐶 ⋯ (6.2.2)

For 푗 ≥ 1, the face maps (퐹푈)푘휖(퐹푈)푗 ∶ (퐹푈)푘+푗+1퐶 → (퐹푈)푘+푗퐶 remove the parentheses that are contained in exactly 푘 others, while 퐹푈 ⋯ 퐹푈휖 composes the mor- phisms inside the innermost parentheses. For 푗 ≥ 1, the degeneracy maps 퐹(푈퐹)푘휂(푈퐹)푗푈∶ (퐹푈)푘+푗−1퐶 → (퐹푈)푘+푗퐶 double up the parentheses that are contained in exactly 푘 others, while 퐹 ⋯ 푈퐹휂푈 inserts parentheses around each individual morphism. 6.2.3. Example (free resolution of a group). A classically important special case is given by the free resolution of a 1-object groupoid, whose automorphisms are the elements of a discrete group 퐺. In this case, each category of 푛-arrows is again a 1-object groupoid. The category of 0-arrows is the group of words in the non-identity elements of 퐺. The category of 1-arrows is the group of words of words, and so on. We now explain the sense in which free resolutions are “resolutions” of the original 1-category. As discussed in Example 6.1.4, a 1-category 퐶 can be regarded as a constant simplicial category 퐶•, whose hom-spaces coincide with the hom-sets of 퐶. There is a canonical “augmentation” map 휖∶ 퐹푈•퐶 → 퐶 in 풮풮푒푡-풞푎푡 that is determined by its degree zero component 휖∶ 퐹푈퐶 → 퐶 which is just given by composition in 퐶.

⁵An 푛-arrow 푓 in a simplicial category 풜 has dimension 푟 if there exists a non-degenerate 푟-arrow 푔 and an epimor- phism 훼∶ [푛] ↠ [푟] so that 푓 = 푔 ⋅ 훼.

153 6.2.4. Proposition. The functor 휖∶ 퐹푈•퐶 → 퐶 is a local homotopy equivalence of simplicial sets. That is, for any pair of objects 푥, 푦 ∈ 퐶, the map 휖∶ 퐹푈•퐶(푥, 푦) → 퐶(푥, 푦) is a simplicial homotopy equivalence: 퐹푈•퐶(푥, 푦) is homotopy equivalent to the discrete set 퐶(푥, 푦) of arrows in 퐶 from 푥 to 푦. Proof. The augmented simplicial object

퐶 (퐹푈)퐶 (퐹푈)2퐶 (퐹푈)3퐶 (퐹푈)4퐶 ⋯

is split at the level of reflexive directed graphs (i.e., after applying 푈). These splittings are not functors, but that won’t matter. These directed graph morphisms displayed here are all identity on objects, which means that for any 푥, 푦 ∈ 퐶 there is a split augmented simplicial set

퐶(푥, 푦) (퐹푈)퐶(푥, 푦) (퐹푈)2퐶(푥, 푦) (퐹푈)3퐶(푥, 푦) (퐹푈)4퐶(푥, 푦) ⋯

and now some classical simplicial homotopy theory of Meyer [42] reviewed in Appendix C proves that 휖∶ 퐹푈•퐶(푥, 푦) → 퐶(푥, 푦) is a simplicial homotopy equivalence.  As the name suggests, free resolutions are simplicial computads: 6.2.5. Proposition (free resolutions are simplicial computads). The free resolution of any 1-category defines a simplicial computad in which the atomic 푛-arrows are those enclosed in precisely one pair of outermost parentheses. Proof. In the free resolution of a 1-category 퐶, the category of 푛-arrows is (퐹푈)푛+1퐶. The cate- gory 퐹푈퐶 is the free category on the underlying graph of 퐶. Its arrows are sequences of composable non-identity arrows of 퐶; the atomic 0-arrows are the non-identity arrows of 퐶. An 푛-arrow is a sequence of composable arrows in 퐶 with each arrow in the sequence enclosed in exactly 푛 pairs of parentheses. The atomic 푛-arrows are those enclosed in precisely one pair of parentheses on the out- side. Since composition in a free category is by concatenation, the unique factorization property is clear. Since degeneracy arrows “double up” on parentheses, these preserve atomics as required.  The atomic 푛-arrows in the free resolution of a 1-category index the generating 푛-homotopies in a homotopy coherent diagram, such as enumerated for the homotopy coherent 휔-simplex at the start of this chapter. 6.2.6. Definition (the homotopy coherent 휔-simplex). The homotopy coherent 휔-simplex ℭΔ[휔] is a simplicial category defined to be the free resolution of the category 흎 ≔ 0 1 2 3 ⋯

The objects of ℭΔ[휔] are natural numbers 푘 ≥ 0. Unpacking Definition 6.2.1 we can completely describe its arrows: 154 • A non-identity 0-arrow from 푗 to 푘 is a sequence of non-identity composable morphisms from 푗 to 푘, the data of which is uniquely determined by the objects being passed through. In particular, there are no 0-arrows from 푗 to 푘 if 푗 > 푘, and the only 0-arrow from 푘 to 푘 is the identity. If 푗 < 푘, the non-identity 0-arrows from 푗 to 푘 correspond to subsets {푗, 푘} ⊂ 푇0 ⊂ [푗, 푘] of the closed internal [푗, 푘] = {푡 ∈ 흎 ∣ 푗 ≤ 푡 ≤ 푘} containing both endpoints. • A 1-arrow from 푗 to 푘 is a once bracketed sequence of non-identity composable morphisms from 푗 to 푘. This data is specified by two nested subsets {푗, 푘} ⊂ 푇0 ⊂ 푇1 ⊂ [푗, 푘] the larger one 푇1 specifying the underlying unbracketed sequence and the smaller one 푇0 speci- fying the placement of the brackets. • A 푟-arrow from 푗 to 푘 is an 푟 times bracketed sequence of non-identity composable morphisms from 푗 to 푘, the data of which is specified by nested subsets {푗, 푘} ⊂ 푇0 ⊂ ⋯ ⊂ 푇푟 ⊂ [푗, 푘] (6.2.7) indicating the locations of all of the parentheses.⁶ The face and degeneracy maps of (6.2.2) are the obvious ones, either duplicating or omitting one of the sets 푇푖. In particular, the 푟-arrows just enumerated are non-degenerate if and only if each of the inclusions 푇0 ⊂ ⋯ ⊂ 푇푟 is proper. We now describe the geometry of the mapping spaces ℭΔ[휔](푗, 푘). 6.2.8. Lemma (homs in the homotopy coherent 휔-simplex are cubes). The mapping spaces of the homo- topy coherent 휔-simplex are defined for 푗, 푘 ∈ 흎 by ⎧ ⎪∅ 푗 > 푘 ⎨⎪ ℭΔ[휔](푗, 푘) ≅ ⎪Δ[0] 푘 = 푗 or 푘 = 푗 + 1 ⎪ ⎩Δ[1]푘−푗−1 푗 < 푘. Proof. Because 흎 has no arrows from 푗 to 푘 when 푗 > 푘 these hom-spaces of ℭΔ[휔] are similarly empty. When 푘 = 푗 or 푘 = 푗 + 1 we have {푗, 푘} = [푗, 푘], using the notation of Definition 6.2.6, so ℭΔ[휔](푗, 푘) ≅ Δ[0] is comprised of a single point. For 푘 > 푗, there are 푘−푗−1 elements of [푗, 푘] excluding the endpoints and so we see that ℭΔ[휔](푗, 푘) has 2푘−푗−1 vertices. The 푟-simplices of ℭΔ[휔](푗, 푘) are given by specifying 푟+1 vertices — each a subset {푗, 푘} ⊂ 푇푖 ⊂ [푗, 푘] — that respect the ordering of subsets relation. From this we see that ℭΔ[휔](푗, 푘) ≅ Δ[1]푘−푗−1

⁶The nesting is because parenthezations should be “well formed” with open brackets closed in the reverse order to that in which they were opened.

155 is the nerve of the poset of subsets {푗, 푘} ⊂ 푇 ⊂ [푗, 푘] ordered by inclusion, as displayed for instance in the case 푗 = 0 and 푘 = 4: ⎛ ⎞ ⎜ ⎟ ⎜ {0, 4} {0, 1, 4} ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ {0, 3, 4} {0, 1, 3, 4} ⎟ ⎜ ⎟ ℭΔ[휔](0, 4) ∶= ⎜ ⎟  ⎜ ⎟ ⎜ ⎟ ⎜ {0, 2, 4} {0, 1, 2, 4} ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎝ {0, 2, 3, 4} {0, 1, 2, 3, 4} ⎠ Proposition 6.2.5 proves that the homotopy coherent 휔-simplex is a simplicial computad and its proof identifies its atomic arrows. 6.2.9. Lemma. The simplicial category ℭΔ[휔] is a simplicial computad whose atomic 푟-arrows are those with a single outermost parenthesis: i.e., those sequences of subsets {푗, 푘} = 푇0 ⊂ ⋯ ⊂ 푇푟 ⊂ [푗, 푘] for which 푇0 = {푗, 푘}. Geometrically, the atomic arrows from 푗 to 푘 are precisely the simplices in the hom-cube ℭΔ[휔](푗, 푘) ≅ Δ[1]푘−푗−1 that contain the initial vertex {푗, 푘}.  The finite ordinals define full subcategories of 흎. In this way, the homotopy coherent 휔-simplex restricts to define homotopy coherent simplices in each finite dimension. 6.2.10. Definition (the homotopy coherent 푛-simplex). The homotopy coherent 푛-simplex ℭΔ[푛] is the full subcategory of the homotopy coherent 휔-simplex ℭΔ[휔] spanned by the objects 0, … , 푛. Equivalently, it is the free resolution of the ordinal category with 푛 + 1 objects. Explicitly the homotopy coherent 푛-simplex has mapping spaces given for 푗, 푘 ∈ [푛] by cubes ⎧ ⎪∅ 푗 > 푘 ⎨⎪ ℭΔ[푛](푗, 푘) ≅ ⎪Δ[0] 푘 = 푗 or 푘 = 푗 + 1 ⎪ ⎩Δ[1]푘−푗−1 푗 < 푘. each of which may be understood as the nerve of the poset of subsets {푗, 푘} ⊂ 푇 ⊂ [푗, 푘] ordered by inclusion. An 푟-arrow may be represented as a nested sequence of subsets {푗, 푘} ⊂ 푇0 ⊂ ⋯ ⊂ 푇푟 ⊂ [푗, 푘] The homotopy coherent 푛-simplex is a simplicial computad whose atomic 푟-arrows are those se- quences for which 푇0 = {푗, 푘} or those simplices that contain the initial vertex in the hom-cube. Exercises. 6.2.i. Exercise. Compute the free resolution of the commutative square category ퟚ × ퟚ and compare it with the product ℭΔ[1] × ℭΔ[1] of two copies of the free resolution of ퟚ. This computation implies that the functor ℭ∶ 풮풮푒푡 → 풮풮푒푡-풞푝푡푑 to be introduced in Definition 6.3.2 does not preserve products.

156 6.3. Homotopy coherent realization and the homotopy coherent nerve Our aim now is to introduce the homotopy coherent realization of any simplicial set 푋, which will define a simplicial computad ℭ푋 whose objects are the vertices of 푋. The homotopy coherent real- ization of Δ[푛] will be the homotopy coherent 푛-simplex ℭΔ[푛] of Definition 6.2.10. The homotopy coherent realization of 푋 will be defined by “gluing together” homotopy coherent 푛-simplices in a canonical way: succinctly, ℭ푋 is defined as a colimit in 풮풮푒푡-풞푝푡푑 of a diagram of homotopy coher- ent simplices indexed by the category of simplices of 푋. We will then leverage Lemma 6.2.9 into an explicit presentation of ℭ푋 as a simplicial computad stated as Theorem 6.3.10, recovering a result of Dugger and Spivak. The homotopy coherent realization and homotopy coherent nerve functors are determined by the cosimplicial object ℭΔ[•] 횫 풮풮푒푡-풞푎푡 [푛] ℭΔ[푛] where a simplicial operator 훼∶ [푛] → [푚] acts on an 푟-arrow from 푗 to 푘, as described in Definition 6.2.10, by taking the direct image of the sequence of subsets (6.2.7). We introduce these functors in turn. 6.3.1. Definition (homotopy coherent nerve). The homotopy coherent nerve of a simplicial category 풜 is the simplicial set 픑풜 whose 푛-simplices

픑풜푛 ≔ 풮풮푒푡-풞푎푡(ℭΔ[푛], 풜) are defined to be diagrams ℭΔ[푛] → 풜; the simplicial operators act contravariantly on 픑풜 by pre- composition. Explicitly, a homotopy coherent 푛-simplex in 풜 is given by:

• a sequence of objects 푎0, … , 푎푛 ∈ 풜 and • a sequence of simplicial maps 푘−푗−1 푎푖,푗 ∶ Δ[1] → 풜(푎푗, 푎푘) for each 0 ≤ 푗 < 푘 ≤ 푛 • satisfying the simplicial functoriality condition:

∨푗 Δ[1]푘−푗−1 × Δ[1]푗−푖−1 Δ[1]푘−푖−1

푎푗,푘×푎푖,푗 푎푖,푘 ∘ 풜(푎푗, 푎푘) × 풜(푎푖, 푎푗) 풜(푎푖, 푎푘) where ∨푗 Δ[1]푘−푗−1 × Δ[1]푗−푖−1 ≅ Δ푘−푖−2 Δ[1]푘−푖−1 ≅ ≅ ℭΔ[푛](푗, 푘) × ℭΔ[푛](푖, 푗) ∘ ℭΔ[푛](푖, 푘) is the map that sends a pair of 푟-simplices {푖, 푗} ⊂ 푆0 ⊂ ⋯ ⊂ 푆푟 ⊂ [푖, 푗] and {푗, 푘} ⊂ 푇0 ⊂ ⋯ ⊂ 푇푟 ⊂ [푗, 푘]

157 to their union {푖, 푘} ⊂ 푆0 ∪ 푇0 ⊂ ⋯ ⊂ 푆푟 ∪ 푇푟 ⊂ [푖, 푘]. If the {0, 1}-valued coordinates of the cube Δ[1]푘−푖−1 are indexed by integers 푖 < 푡 < 푘, then the image of ∨푗 is the 푗 = 1 face of the cube. 6.3.2. Definition (homotopy coherent realization). The homotopy coherent realization functor ℭ is the pointwise left Kan extension of the cosimplicial object ℭΔ[•] along the Yoneda embedding: 풮풮푒푡 よ ℭ ⇑≅ 횫 풮풮푒푡-풞푎푡 ℭΔ[•] The value of a pointwise left Kan extension at an object 푋 ∈ 풮풮푒푡 can be computed as a colimit indexed by the comma category Hom풮풮푒푡(よ, 푋) [48, 6.2.1]. This comma category is better know as the category of simplices of 푋, whose objects are simplices of 푋 and in which a morphism from an 푛-simplex 푥 to an 푚-simplex 푦 is a simplicial operator 훼∶ [푛] → [푚] so that 푦 ⋅ 훼 = 푥. In this case, the colimit formula gives ℭ푋 ≔ colim ℭΔ[푛]. [푛]∈횫,푥∈푋푛 By general abstract nonsense: 6.3.3. Proposition. The homotopy coherent realization functor is left adjoint to the homotopy coherent nerve: ℭ 풮풮푒푡 ⊥ 풮풮푒푡-풞푎푡

픑 Proof. The homotopy coherent nerve was defined so that this adjoint correspondence would hold for the standard simplices and the general result follows since every simplicial set is a colimit, indexed by its category of simplices, of standard simplices. See [48, 6.5.9] for more details.  6.3.4. Lemma. The homotopy coherent realization functor takes its values in the subcategory of simplicial computads and computad morphisms.

풮풮푒푡 ℭ 풮풮푒푡-풞푎푡 ℭ 풮풮푒푡-풞푝푡푑

Proof. By Lemma 6.1.7, which proves that the category of simplicial computads is closed under colimits in the category of simplicial categories, it suffices to demonstrate that the cosimplicial object ℭΔ[•] is valued in the subcategory of simplicial computads and simplicial computad morphisms. We know already that the homotopy coherent simplices are simplicial computads, so we need only verify that the simplicial operators act by computad morphisms. A simplicial operator 훼∶ [푛] → [푚] acts on the 푟-arrow from 푗 to 푘 described in Definition 6.2.10 by taking the direct image of the sequence of subsets (6.2.7). The condition that characterizes the atomic arrows, {푗, 푘} = 푇0, is preserved by direct images, so we see that 훼 defines a computad mor- phism ℭ훼∶ ℭΔ[푛] → ℭΔ[푚]. As the subcategory 풮풮푒푡-풞푝푡푑 ↪ 풮풮푒푡-풞푎푡 is closed under colimits,

158 it follows that every homotopy coherent realization is a simplicial computad and any simplicial map 푋 → 푌 induces a morphism of simplicial computads ℭ푋 → ℭ푌.  6.3.5. Lemma. For any inclusion 푋 ↪ 푌 of simplicial sets, the morphism ℭ푋 ↪ ℭ푌 is a simplicial subcom- putad inclusion. Moreover, in the case of 푋 ↪ Δ[푛], an atomic 푟-arrow {푗, 푘} = 푇0 ⊂ ⋯ ⊂ 푇푟 ⊂ [푗, 푘] from 푗 to 푘 of ℭΔ[푛] lies in the subcomputad ℭ푋 if and only if the simplex spanned by the vertices of 푇푟 lies in 푋. Proof. Recall that every monomorphism of simplicial sets 푋 ↪ 푌 admits a canonical decomposi- tion as a sequential composite of pushouts of coproducts of the simplex boundary inclusions 휕Δ[푛] ↪ Δ[푛]. Since all colimits are preserved by the left adjoint ℭ and Lemma 6.1.10 proves that simplicial subcomputads are closed under colimits of this form, it suffices to prove that ℭ휕Δ[푛] ↪ ℭΔ[푛] is a simplicial subcomputad inclusion. We’ll argue more generally that for 푋 ⊂ Δ[푛], ℭ푋 ↪ ℭΔ[푛] is a simplicial subcomputad inclusion where the atomic arrows of ℭ푋 are as described in the second clause of the statement. We argue using ideas from Reedy category theory reviewed in Appendix C. Our task is to show that the image of 푋 ↪ Δ[푛] under the functor

op 풮풮푒푡 ℭ 풮풮푒푡-풞푝푡푑 atom 풢푝ℎ횫epi op that takes a simplicial set to its 횫epi -indexed graph of atomic and identity arrows is a pointwise monomorphism. The simplicial subset 푋 ⊂ Δ[푛] can be described as a colimit of certain faces of Δ[푛] glued along their common faces; the functor just described preserves these colimits. Our claim asserts that the op composite cosimplicial object ℭΔ[•]∶ 횫 → 풮풮푒푡 → 풮풮푒푡-풞푝푡푑 → 풢푝ℎ횫epi is Reedy monomorphic: meaning that every atomic 푟-arrow 푇• in the homotopy coherent 푛-simplex is uniquely expressible in the form 훼 ⋅ 푆• where 훼∶ [푚] ↣ [푛] is a monomorphism in 횫 and 푆• is “non-co-degenerate,” i.e., not in the image of any monomorphism. This is clear: take 푚 = |푇푟| − 1 and define 훼∶ [푚] ↣ [푛] to be the inclusion with image 푇푟 ⊂ [푛]. Then take 푆• to be the atomic 푟-arrow from 0 to 푚 in ℭΔ[푚] whose direct image under 훼 is 푇•. It is clear that 푆• is not in the image of any smaller face map. This argument also reveals that the atomic 푟-arrows 푇• of ℭΔ[푛] that are present in the subcomputad ℭ푋 are exactly those for which the vertices of 푇• are contained in one of its faces.  Lemma 6.3.5 allows us to compute the following subcomputads of the homotopy coherent sim- plex. Before stating the results of these computations, we introduce notation that suggests the correct geometric intuition: 6.3.6. Notation (cubes, boundaries, and cubical horns). We introduce special notation for the fol- lowing simplicial sets: • Write 푘 for the simplicial cube Δ[1]푘. • Write 휕푘 for the boundary of the 푘-cube. Formally, 휕푘 is the domain of the iterated Leibniz ×푘̂ 푘 product (휕Δ[1] ↪ Δ[1]) . If an 푟-simplex in  is represented by a 푘-tuple of maps 휌푖 ∶ [푟] → 푘 [1], then that 푟-simplex lies in 휕 if and only if there is some 푖 for which 휌푖 is constant at either vertex of [1].

159 푘,푗 푘 • Write ⊓푒 ⊂ 휕 for the cubical horn containing only the face 푒 ∈ [1] in direction 1 ≤ 푗 ≤ 푘. 푘,푗 Formally, ⊓푒 is the domain of the iterated Leibniz product 푒 (휕Δ[1] ↪ Δ[1])×푗−1̂ ×(Δ[0]̂ −→Δ[1])×(휕Δ[1]̂ ↪ Δ[1])×푘−푗̂ . 푘 푘,푗 An 푟-simplex in  represented by a 푘-tuple of map 휌푖 ∶ [푟] → [1] lies in ⊓푒 if and only if for some 푖 ≠ 푗 the map 푝푖 is constant or 푝푗 is the constant operator at 푒 ∈ [1]. 6.3.7. Lemma (coherent subsimplices). The homotopy coherent realizations of the simplicial sphere and inner and outer horns define subcomputads of the homotopy coherent 푛-simplex containing all of the objects and defined on homs by: (i) spheres: ℭ휕Δ[푛] ↪ ℭΔ[푛] is full on all arrows except those from 0 to 푛 and has ℭ휕Δ[푛](0, 푛) ℭΔ[푛](0, 푛) ≅ ≅ 휕푛−1 푛−1 (ii) inner horns: For 0 < 푘 < 푛, ℭΛ푘[푛] ↪ ℭΔ[푛] is full on all arrows except those from 0 to 푛 and has ℭΛ푘[푛](0, 푛) ℭΔ[푛](0, 푛) ≅ ≅ 푛−1,푘 푛−1 ⊓1  (iii) outer horns: ℭΛ푛[푛] ↪ ℭΔ[푛] is full on all arrows except those from 0 to 푛 − 1 or 푛 and has ℭΛ푛[푛](0, 푛 − 1) ℭΔ[푛](0, 푛 − 1) ℭΛ푛[푛](0, 푛) ℭΔ[푛](0, 푛) ≅ ≅ ≅ ≅ 푛−2 푛−2 푛−1,푛−1 푛−1 휕  ⊓0  Similarly, ℭΛ0[푛] ↪ ℭΔ[푛] is full on all arrows except those from 0 or 1 to 푛 and has ℭΛ0[푛](1, 푛) ℭΔ[푛](1, 푛) ℭΛ0[푛](0, 푛) ℭΔ[푛](0, 푛) ≅ ≅ ≅ ≅ 푛−2 푛−2 푛−1,1 푛−1 휕  ⊓0  Proof. For (i), the only non-degenerate simplex of Δ[푛] that is not present in 휕Δ[푛] is the top dimensional 푛-simplex. Consequently, the only atomic 푟-arrows 푇• that are not present in ℭ휕Δ[푛] are those with 푇푟 = [0, 푛]. The atomic 푟-arrows must also have 푇0 = {0, 푛} and consequently correspond precisely to those 푟-simplices of the cube 푛−1 that contain both the first and last vertex. Thus, we see that ℭ휕Δ[푛](0, 푛) is isomorphic to the cubical boundary 휕푛−1. For (ii), the only non-degenerate simplex of 휕Δ[푛] that is not present in an inner horn Λ푘[푛] is the 푘-th face of the top dimensional simplex. Consequently, the only atomic 푟-arrows 푇• that are not present in ℭΛ푘[푛] but are present in ℭ휕Δ[푛] are those with 푇푟 = [0, 푛]\{푘}. The atomic 푟-arrows must also have 푇0 = {0, 푛} and consequently correspond precisely to those 푟-simplices of the cube 푛−1 that contain both the first vertex and last vertex of the 푘 = 0 face of the cube 푛−1. Thus, we 푘 푛−1,푘 see that ℭΛ [푛](0, 푛) is isomorphic to the cubical horn ⊓1 . For (iii), the only non-degenerate simplex of 휕Δ[푛] that is not present in the outer horn Λ푛[푛] is the 푛-th face of the top dimensional simplex. Consequently, the only atomic 푟-arrows 푇• that are not 160 present in ℭΛ푛[푛] but are present in ℭ휕Δ[푛] are those with 푇푟 = [0, 푛 − 1]; note that the source of such 푟-arrows is 0 and the target is 푛−1. The atomic 푟-arrows must also have 푇0 = {0, 푛−1}, and so, as in the proof of (i), this identifies the inclusion ℭΛ푛[푛](0, 푛−1) ↪ ℭΔ[푛](0, 푛−1) as 휕푛−2 ↪ 푛−2. The subcomputad ℭΛ푛[푛] is also missing non-atomic 푟-arrows that are present in ℭ휕Δ[푛], namely those composites of the unique arrow from 푛 − 1 to 푛 with the atomic 푟-arrows from 0 to 푛 − 1 just described. Such non-atomic 푟-arrows are represented by sets of inclusions with 푇0 = {0, 푛 − 1, 푛} and 푇푟 = [0, 푛] and thus are found in the 푛 − 1 = 1 face of the cube 푛−1. Thus, we see that ℭΛ푛[푛](0, 푛) 푛−1,푛−1 is isomorphic to the cubical horn ⊓0 .  6.3.8. Definition (bead shapes). We call the atomic 푟-arrows of ℭΔ[푛](0, 푛) that are not present in ℭ휕Δ[푛](0, 푛) bead shapes. By Lemma 6.3.7, an 푟-dimensional bead shape corresponds to a sequence of subsets {0, 푛} = 푇0 ⊂ 푇1 ⊂ ⋯ ⊂ 푇푟−1 ⊂ 푇푟 = [0, 푛] (6.3.9) and is non-degenerate if and only if each of the inclusions is proper. Putting this together we can now explicitly present the simplicial computad structure on the ho- motopy coherent realization of any simplicial set. 6.3.10. Theorem (homotopy coherent realizations, explicitly). For any simplicial set 푋, the homotopy coherent realization ℭ푋 is a simplicial computad in which: • The objects of ℭ푋 are the vertices of the simplicial set 푋. • The atomic 0-arrows are non-degenerate 1-simplices of 푋, with the initial vertex of the simplex defining the source of the 0-arrow and the final vertex of the simplex defining the target of the 0-arrow. • The atomic 1-arrows are non-degenerate 푛-simplices of 푋, with the initial vertex of the simplex defining the source of the 0-arrow and the final vertex of the simplex defining the target of the 0-arrow. • The atomic 푘-arrows are pairs comprised of a non-degenerate 푛-simplex in 푋 together with a 푘-dimensional bead shape in ℭΔ[푛]. This source of this 푘-arrow is the initial vertex of the 푛-simplex, while the target is the final vertex of the 푛-simplex, and the arrow is non-degenerate if and only if the bead shape is non- degenerate. Note that the description of atomic 푘-arrows subsumes those of the atomic 0-arrows and atomic 1-arrows as there is a unique 1-dimensional bead shape in ℭΔ[푛] and a 0-dimensional bead shape exists only in the case 푛 = 1. The data of a non-degenerate atomic 푘-arrow from 푥 to 푦 in ℭ푋 is given by a “bead,” that is a non-degenerate 푛-simplex in 푋 from 푥 to 푦, together with the additional data of a “bead shape”: sequence of proper subset inclusions (6.3.9), which Dugger and Spivak refer to as a “flag of vertex data” [16]. Non-atomic 푘-arrows are then “necklaces,” that is strings of beads in 푋 joined head to tail, together with accompanying “vertex data” for each simplex. Proof. As observed in the proof of Lemma 6.3.5, using the canonical skeletal decomposition of the simplicial set 푋

∐ 휕Δ[푛] ∐ Δ[푛] 푋푛\퐿푛푋 푋푛\퐿푛푋

⌜ ∅ sk0 푋 ⋯ sk푛−1 푋 sk푛 푋 ⋯ colim = 푋

161 the homotopy coherent realization ℭ푋 is constructed iteratively by a process that adjoints one copy of ℭΔ[푛] along a map of its boundary ℭ휕Δ[푛] for each non-degenerate 푛-simplex of 푋. Thus, each atomic 푘-arrow arises from a unique pushout of this form, as the image of an atomic 푘-arrow in ℭΔ[푛] that is not present in the subcomputad ℭ휕Δ[푛].  6.3.11. Remark. From the description of Theorem 6.3.10, the subcomputad inclusions ℭ푋 ↪ ℭ푌 induced by monomorphisms of simplicial sets 푋 ↪ 푌 are easily understood: an 푟-arrow in ℭ푌 lies in ℭ푋 if and only if each bead in its representing necklace in 푌 lies in 푋. This generalizes the description given to subcomputads of homotopy coherent simplices in Lemma 6.3.5. Our convention is to identify 1-categories with their nerves. The homotopy coherent realization of these simplicial sets then produces a simplicial computad. But we have already encountered a way to produce a simplicial computad from a 1-category: namely via the free resolution of Definition 6.2.1. This would lead to a potential source of ambiguity were it not for the happy coincidence that these two constructions are isomorphic:⁷ 6.3.12. Proposition (free resolutions are homotopy coherent realizations). For any 1-category, the free resolution is naturally isomorphic to the homotopy coherent realization of its nerve. Proof. Proposition 6.2.5 and Theorem 6.3.10 present both simplicial categories as simplicial com- putads. We will argue that they have the same objects and non-degenerate atomic 푘-arrows. Both have the same set of objects, the objects of the 1-category coinciding with the vertices in its nerve. Atomic 0-arrows of the free resolution are morphisms in the category; while atomic 0-arrows in the coherent realization are non-degenerate 1-simplices of the nerve — these are the same thing. Atomic non-degenerate 1-arrows of the free resolution are sequences of at least two morphisms (en- closed in a single set of outer parentheses), while atomic 1-arrows of the coherent realization are non- degenerate simplices of dimension at least two — again these are the same. Finally a non-degenerate atomic 푘-arrow is a sequence of 푛 composable morphisms with (푘 − 1) non-repeating bracketings; this non-degeneracy necessitates 푛 > 푘. This data defines a 푛-simplex in the nerve together with a non- degenerate atomic 푘-arrow in ℭΔ[푛](0, 푛), i.e., an atomic 푘-arrow in the coherent realization.  We now exploit the description of the subcomputads of the homotopy coherent 푛-simplex in Lemma 6.3.7 to prove a key source of examples of quasi-categories, a result first stated in this form in [13]. 6.3.13. Theorem. The homotopy coherent nerve 픑풮 of a Kan-complex enriched category 풮 is a quasi- category. Proof. By adjunction, to extend along an inner horn inclusion Λ푘[푛] ↪ Δ[푛] mapping into the homotopy coherent nerve 픑풮 is to extend along simplicial subcomputad inclusions ℭΛ푘[푛] ↪ ℭΔ[푛] mapping into the Kan complex enriched category 풮. By Lemma 6.3.7(ii), the only missing 푟-arrows

⁷Note the isomorphism between the homotopy coherent realization of the 푛-simplex and the free resolution of the ordinal category [푛] is tautologous The left Kan extension along the Yoneda embedding is defined so as to agree with ℭΔ[•]∶ 횫 → 풮풮푒푡-풞푝푡푑 on the subcategory of representables. Many arguments involving simplicial sets can be reduced to a check on representables, with the extension to the general case following formally by “taking colimits.” This result, however, is not one of them since we are trying to prove something for all categories and the embedding 풞푎푡 ↪ 풮풮푒푡 does not preserve colimits.

162 are in the mapping space from 0 to 푛, so we are asked to solve a single lifting problem

푘 푛−1,푘 ℭΛ [푛](0, 푛) ≅ ⊓1 Map(푋0, 푋푛)

ℭΔ[푛](0, 푛) ≅ 푛−1

Cubical horn inclusions can be filled in the Kan complex Map(푋0, 푋푛), completing the proof.  We conclude by giving a precise meaning to the notion that motivated this chapter. 6.3.14. Definition. Let 푋 be a simplicial set. A homotopy coherent diagram of shape 푋 in a Kan complex enriched category 풮 is a simplicial functor ℭ푋 → 풮 from the homotopy coherent realization of 푋 to 풮. Exercise 6.2.i reveals that there are two possible notions of natural transformation between homo- topy coherent diagram. We opt for the more structured of the two: 6.3.15. Definition. Let 퐹, 퐺∶ ℭ푋 ⇉ 풮 be homotopy coherent diagrams of shape 푋 in a Kan com- plex enriched category 풮.A homotopy coherent natural transformation 훼∶ 퐹 ⇒ 퐺 is a homotopy coherent diagram of shape 푋 × ퟚ ℭ푋 0 퐹 ℭ[푋 × ퟚ] 훼 풮

1 퐺 ℭ푋 that restricts to 퐹 and to 퐺 along the edges of the cylinder. These notions are originally due to Boardman and Vogt in [8] who observed that homotopy coher- ent natural transformations do not define a the morphisms of a 1-category. Instead, as they observed, they define the 1-arrows of a quasi-category. 6.3.16. Corollary. Homotopy coherent diagrams of shape 푋 valued in a Kan complex enriched category 풮 and homotopy coherent natural transformations between them define the objects and 1-arrows of a quasi- category Coh(푋, 풮) whose 푛-simplices are homotopy coherent diagram ℭ[푋 × Δ[푛]] → 풮. Proof. By adjunction ℭ ⊣ 픑, the simplicial set Coh(푋, 풮) is isomorphic to (픑풮)푋. As the quasi- categories form an exponential ideal in the category of simplicial sets, this follows immediately from Theorem 6.3.13.  6.3.17. Remark (all diagrams in homotopy coherent nerves are homotopy coherent). Corollary 6.3.16 explains that any homotopy coherent diagram ℭ푋 → 풮 of shape 푋 in a Kan complex enriched cat- egory 풮 transposes to define a map of simplicial sets 푋 → 픑풮 valued in the quasi-category defined as the homotopy coherent nerve of 풮. While not every quasi-category is isomorphic to a homotopy coherent nerve of a Kan complex enriched category, once consequence of the internal Yoneda lemma, to be proven much later, is that every quasi-category is equivalent to a homotopy coherent nerve. This explains the slogan introduced at the beginning of this chapter and the title for this part of the book: all diagrams in quasi-categories are homotopy coherent, thus quasi-category theory can be understood as “homotopy coherent category theory.” 163 Exercises. 6.3.i. Exercise. Compare the simplicial computad structure of the homotopy coherent 휔-simplex as given by Theorem 6.3.10 with the simplicial computad structure of Lemma 6.2.9.

164 CHAPTER 7

Weighted limits in ∞-cosmoi

7.1. Weighted limits and colimits Let (풱, ×, ퟙ) denote a complete and cocomplete cartesian closed monoidal category. The ex- amples we have in mind are (풮풮푒푡, ×, ퟙ), its cartesian closed subcategory (풞푎푡, ×, ퟙ), or its further cartesian closed subcategory (풮푒푡, ×, ퟙ). Ordinary limits and colimits are objects representing the functor of cones with a given apex over or under a fixed diagram. Weighted limits and colimits are defined analogously, except that the cones over or under a diagram might have exotic “shapes, ” which are allowed to vary with the objects indexing the diagram. More formally, in the 풱-enriched context, the weight, defining the “shape” of a cone over a diagram indexed by 풜 or under a diagram indexed by 풜op, takes the form of a functor in 풱풜. Before introducing the general notion of weighted limit and colimit, we first reacquaint ourselves an example that we have seen already in Digression 1.2.4. 7.1.1. Example (tensors and cotensors). A diagram indexed by the category ퟙ valued in a 풱-enriched category ℳ is just an object 퐴 in ℳ. In this case, the weight is just an object 푈 of 풱. The 푈-weighted limit of the diagram 퐴 is an object of ℳ denoted 퐴푈 — or denoted {푈, 퐴} whenever superscripts are inconvenient — called the the cotensor of 퐴 ∈ ℳ with 푈 ∈ 풱 defined by the universal property ℳ(푋, 퐴푈) ≅ 풱(푈, ℳ(푋, 퐴)), this isomorphism between mapping spaces in 풱. Dually, the 푈-weighted colimit of 퐴 is an object 푈 ⊗ 퐴 ∈ ℳ called the tensor of 퐴 ∈ ℳ with 푈 ∈ 풱 defined by the universal property ℳ(푈 ⊗ 퐴, 푋) ≅ 풱(푈, ℳ(퐴, 푋)), this isomorphism again between mapping spaces in 풱. Assuming such objects exist, the cotensor and tensor define 풱-enriched bifunctors − 풱op × ℳ − ℳ 풱 × ℳ −⊗− ℳ in a unique way making the defining isomorphisms natural in 푈 and 퐴 as well. Since 풱 is cartesian closed, it is tensored and cotensored over itself, with 푈 ⊗ 푉 ≔ 푈 × 푉 and 푉푈 ≔ 풱(푈, 푉). In particular, the defining natural isomorphisms characterizing tensors and cotensors in ℳ can be rewritten as ℳ(푋, 퐴푈) ≅ ℳ(푋, 퐴)푈 and ℳ(푈 ⊗ 퐴, 푋) ≅ ℳ(퐴, 푋)푈. The fact that the natural isomorphisms defining tensors and cotensors are required to exist in 풱 (and not merely in 풮푒푡) has the following consequence: 7.1.2. Lemma (associativity of tensors and cotensors). If ℳ is a 풱-category with tensors and cotensors then for any 푈, 푉 ∈ 풱 and 퐴 ∈ ℳ, there exist natural isomorphisms 푈 푈 ⊗ (푉 ⊗ 퐴) ≅ (푈 × 푉) ⊗ 퐴 and (퐴푉) ≅ 퐴푈×푉. 165 Proof. By the defining universal property 푈 ℳ(푋, (퐴푉) ) ≅ 풱(푈, ℳ(푋, 퐴푉)) ≅ 풱(푈, 풱(푉, ℳ(푋, 퐴))) ≅ 풱(푈 × 푉, ℳ(푋, 퐴)) ≅ ℳ(푋, 퐴푈×푉) 푈 for all 푋 ∈ ℳ. By the Yoneda lemma (퐴푉) ≅ 퐴푈×푉. The case for tensors is similar.  We now introduce the general notions of weighted limit and weighted colimit from three different viewpoints. We introduce these perspectives in the reverse of the logical order, because we find this route to be the most intuitive. We first describe the axioms that characterize the weighted limit and colimit bifunctors, whenever they exist. We then explain how weighted limits and colimits can be constructed, again assuming these exist. We then finally introduce the general universal property that defines a particular weighted limit or colimit, which tells us when the notions just introduced do in fact exist. 7.1.3. Definition (weighted limits and colimits, axiomatically). For a small 풱-enriched category 풜 and a large 풱-enriched category ℳ, the weighted limit and weighted colimit bifunctors 풜 풜 op 풜 풜 풜 풜op lim− −∶ (풱 ) × ℳ → ℳ and colim− −∶ 풱 × ℳ → ℳ are characterized by the following pair of axioms whenever they exist: (i) Weighted (co)limits with representable weights evaluate at the representing object: 풜 풜 lim풜(푎,−) 퐹 ≅ 퐹(푎) and colim풜(−,푎) 퐺 ≅ 퐺(푎). (ii) The weighted (co)limit bifunctors are cocontinuous in the weight: for any diagrams 퐹 ∈ ℳ풜 풜op 풜 풜 and 퐺 ∈ ℳ , the functor colim− 퐺 preserves colimits, while the functor lim− 퐹 carries colimits to limits.¹ We interpret axiom (ii) to mean that weights can be “made-to-order”: a weight constructed as a colimit of representables — as all 풱-valued functors are — will stipulate the expected universal property. 7.1.4. Definition (weighted limits and colimits, constructively). The limit of 퐹 ∈ ℳ풜 weighted by 푊 ∈ 풱풜 is computed by the functor cotensor product: ⎛ ⎞ ⎜ ⎟ 풜 푊(푎) ⎜ 푊(푎) 풜(푎,푏)×푊(푎) ⎟ lim푊 퐹 ≔ ル 퐹(푎) ≔ eq ⎝⎜ ∏ 퐹(푎) ∏ 퐹(푏) ⎠⎟ , (7.1.5) 푎∈풜 푎∈풜 푎,푏∈풜 where the product and equalizer should be interpreted as conical limits; see Digression 1.2.4 or Defini- tion 7.1.14 below. The maps in the equalizer diagram are induced by the actions 풜(푎, 푏) × 푊(푎) → 푊(푏) and 퐹(푎) → 퐹(푏)풜(푎,푏) of the hom-object 풜(푎, 푏) on the 풱-functors 푊 and 퐹; the latter case 푊(푎) makes use of the natural isomorphism 퐹(푏)풜(푎,푏)×푊(푎) ≅ (퐹(푏)풜(푎,푏)) of Lemma 7.1.2.

풜 ¹More precisely, as will be proven in Proposition 7.1.12, the weighted colimit functor colim− 퐺 preserves weighted 풜 colimits, while the weighted limit functor lim− 퐹 carries weighted colimits to weighted limits.

166 op Dually, the colimit of 퐺 ∈ ℳ풜 weighted by 푊 ∈ 풱풜 is computed by the functor tensor product: ⎛ ⎞ 푎∈풜 ⎜ ⎟ 풜 ⎜ ∐ ∐ ⎟ colim푊 퐺 ≔ ル 푊(푎) ⊗ 퐺(푎) ≔ coeq ⎝⎜ (푊(푎) × 풜(푎, 푏)) ⊗ 퐺(푏) 푊(푎) ⊗ 퐺(푎) ⎠⎟ , 푎,푏∈풜 푎∈풜 (7.1.6) where the coproduct and coequalizer should be interpreted as conical colimits. One of the maps in the coequalizer diagram is induced by the action 풜(푎, 푏) ⊗ 퐺(푏) → 퐺(푎) of 풜(푎, 푏) on the contravariant 풱-functor 퐺 and the natural isomorphism (푊(푎) × 풜(푎, 푏)) ⊗ 퐺(푏) ≅ 푊(푎) ⊗ (풜(푎, 푏) ⊗ 퐺(푏)) of Lemma 7.1.2; the other uses the covariant action of 풜(푎, 푏) on 푊 as before. 풜 7.1.7. Definition (weighed limits and colimits, the universal property). The limit lim푊 퐹 of the dia- 풜 풜 풜 풜op 풜 gram 퐹 ∈ ℳ weighted by 푊 ∈ 풱 and the colimit colim푊 퐺 of 퐺 ∈ ℳ weighted by 푊 ∈ 풱 are characterized by the universal properties: 풜 풜 풜 풜 ℳ(푋, lim푊 퐹) ≅ 풱 (푊, ℳ(푋, 퐹)) and ℳ(colim푊 퐺, 푋) ≅ 풱 (푊, ℳ(퐺, 푋)), (7.1.8) each of these defining an isomorphism between objects of 풱. When the indexing category 풜 is clear from context, as is typically the case, we frequently drop it from the notation for the weighted limit and weighted colimit. We now argue that these three definitions characterize the same objects. Along the way, we obtain results of interest in their own right, that we record separately. 7.1.9. Lemma. The category 풱 admits all weighted limits, as defined by the formula of (7.1.5) satisfying the natural isomorphism of (7.1.8). Explicitly, for a weight 푊∶ 풜 → 풱 and a diagram 퐹∶ 풜 → 풱, the weighted limit 풜 풜 lim푊 퐹 ≔ 풱 (푊, 퐹), is the 풱-object of 풱-natural transformations from 푊 to 푉. Proof. The 풱-functor 풱(ퟙ, −)∶ 풱 → 풱 represented by the monoidal unit is naturally isomor- phic to the identity functor. So taking 푋 = ퟙ in the universal property of (7.1.8) in the case where the diagram 퐹 ∈ 풱풜 is valued in the 풱-category 풱, we have 풜 풜 lim푊 퐹 ≅ 풱 (푊, 퐹). Simultaneously, the formula (7.1.5) computes the 풱-object 풱풜(푊, 퐹) of 풱-natural transformations from 푊 to 퐹 defined in Definition A.3.8.  The 풱-object of 풱-natural transformations satisfies the natural isomorphism 풱(푉, 풱풜(푊, 퐹)) ≅ 풱풜(푊, 풱(푉, 퐹)) for any 푉 ∈ 풱. Applying the observation that 푊-weighted limits of 풱-valued functors are 풱-objects of natural transformations to the functor ℳ(푋, 퐹−) and ℳ(퐺−, 푋) in the op case of 퐹 ∈ ℳ풜 and 퐺 ∈ ℳ풜 , we may re-express the natural isomorphism (7.1.8) as: 7.1.10. Corollary. The weighted limits and weighted colimits of (7.1.8) are representably defined as weighted op limits in 풱: for 푊 ∈ 풱풜 and 퐹 ∈ ℳ풜 and 퐺 ∈ ℳ풜 the weighted limit and colimit are characterized by isomorphisms

ℳ(푋, lim푊 퐹) ≅ lim푊 ℳ(푋, 퐹) and ℳ(colim푊 퐺, 푋) ≅ lim푊 ℳ(퐺, 푋) (7.1.11) natural in 푋 in 풱.  167 We now unify the Definitions 7.1.3, 7.1.4, and 7.1.7. 7.1.12. Proposition. When the limits and colimits of (7.1.5) and (7.1.6) exist they define objects satisfying the universal properties (7.1.8) or equivalently (7.1.11) and bifunctors satisfying the axioms of Definition 7.1.3. Proof. The proofs are dual, so we confine our attention to the limit case. The general case of the implication Definition 7.1.4 ⇒ 7.1.7 — for either weighted limits or weighted colimits — is a direct consequence of the special case of this implication for weighted limits valued in ℳ = 풱 proven as Lemma 7.1.9 and Corollary 7.1.10. The limits of (7.1.5) in ℳ are also defined representably in terms of the analogous limits in 풱. So the objected defined by (7.1.5) represents the 풱-functor lim푊 ℳ(−, 퐹) that defines the weighted limit lim푊 퐹. It remains to prove that the weighted limits of Definitions 7.1.4 and 7.1.7 satisfy the axioms of Definition 7.1.3. In the case of a 풱-valued diagram 퐹 ∈ 풱풜, axiom (i) is the 풱-Yoneda lemma: 풱풜(풜(푎, −), 퐹) ≅ 퐹(푎) proven in Theorem A.3.11. Once again, the general case for 퐹 ∈ ℳ풜 follows from the special case for 풱-valued diagrams, for to demonstrate an isomorphism lim풜(푎,−) 퐹 ≅ 퐹(푎) in ℳ it suffices to demonstrate an isomorphism ℳ(푋, lim풜(푎,−) 퐹) ≅ ℳ(푋, 퐹(푎)) in 풱 for all 푋 ∈ ℳ and have such a natural isomorphism by applying (7.1.11) and the observation just made to the functor ℳ(푋, 퐹−) ∈ 풱풜. For the axiom (ii), consider a diagram 퐾∶ 풥op → 풱풜 of weights and a weight 푉 ∈ 풱풥 so that 풥 풜 풜 풜 op colim푉 퐾 ≅ 푊. For any 퐹 ∈ ℳ , we will show that the 풱-functor lim− 퐹∶ (풱 ) → ℳ carries 풜 the 푉-weighted colimit of 퐾 to the 푉-weighted limit of the composite diagram lim퐾 퐹∶ 풥 → ℳ. 풥 The universal property (7.1.8), applied first to the colim푉 퐾-weighted limit of the diagram 퐹 and the object 푋, and then to the 푉-weighted colimit of the diagram 퐾 and the object ℳ(푋, 퐹), supplies isomorphisms: 풜 풜 풥 풥 풜 ℳ(푋, lim 풥 퐹) ≅ 풱 (colim푉 퐾, ℳ(푋, 퐹)) ≅ 풱 (푉, 풱 (퐾, ℳ(푋, 퐹))). colim푉 퐾 Applying (7.1.8) twice more, first for the weights 퐾푗 for each 푗 ∈ 풥 and then for the weight 푉 and the 풜 diagram lim퐾 퐹∶ 풥 → ℳ, we have 풥 풜 풥 풜 ≅ 풱 (푉, ℳ(푋, lim퐾 퐹)) ≅ ℳ(푋, lim푉 lim퐾 퐹). By the Yoneda lemma, this proves that 풜 풥 풜 lim 풥 퐹 ≅ lim푉 lim퐻 퐹, colim푉 퐾 풜 i.e., that the weighted limit functor lim− 퐹 is carries a weighted colimit of weights to the analogous weighted limit of weights.  7.1.13. Remark (for unenriched indexing categories). When the indexing category is unenriched, the limit and colimit formulas from Definition 7.1.4 simplify ⎛ ⎞ ⎜ ⎟ 풜 ⎜ 푊(푎) 푊(푎) ⎟ lim푊 퐹 ≅ eq ⎝⎜ ∏ 퐹(푎) ∏ 퐹(푏) ⎠⎟ 푎∈풜 풜(푎,푏) ⎛ ⎞ ⎜ ⎟ 풜 ⎜ ∐ ∐ ⎟ colim푊 퐺 ≅ coeq ⎝⎜ (푊(푎) ⊗ 퐺(푏) 푊(푎) ⊗ 퐺(푎) ⎠⎟ 풜(푎,푏) 푎∈풜

168 and in fact, it suffices to consider only non-identity arrows or even just atomic arrows. 7.1.14. Definition (conical limits and colimits). The unit for the cartesian product defines a terminal object ퟙ ∈ 풱. The constant diagram at the terminal object then defines a terminal object ퟙ ∈ 풱풜.A limit weighted by the terminal weight is called a conical limit and a colimit weighted by the terminal 풜 weight is called a conical colimit. It is common to use the simplified notation lim 퐹 ≔ limퟙ 퐹 and 풜 colim 퐺 ≔ colimퟙ 퐺. Conical limits and colimits satisfy the defining universal properties ℳ(푋, lim 퐹) ≅ 풱풜(ퟙ, ℳ(푋, 퐹)) and ℳ(colim 퐺, 푋) ≅ 풱풜(ퟙ, ℳ(퐺, 푋)), which say that lim 퐹 and colim 퐺 represent the functors of 풱-enriched conical cones over 퐹 or under 퐺, respectively. We can now properly understand the formulae for weighted limits and colimits given in Definition 7.1.4. In particular, these formulae give criteria under which weighted limits or colimits are guaranteed to exist. 7.1.15. Corollary. If ℳ is a 풱-enriched category that admits cotensors and conical limits of all unenriched diagram shapes, then ℳ admits all weighted limits. Dually, if ℳ admits tensors and conical colimits of all unenriched diagram shapes, then ℳ admits all weighted colimits. 7.1.16. Remark. If ℳ is a 풱-category whose underlying unenriched category admits all small limits, then if ℳ admits cotensors and tensors over 풱, then ℳ admits all weighted limits. Via the Yoneda lemma, the presence of tensors suffices to internalize the isomorphism of sets expressing the unen- riched universal property of limits to an isomorphism in 풱 that expresses the universal property of conical limits. See Exercise 7.1.i. 7.1.17. Example (commas). The comma ∞-category is the limit in the ∞-cosmos 풦 of the diagram ⟓→ 풦 given by the cospan 푔 푓 퐶 퐴 퐵 weighted by the diagram ⟓→ 풮풮푒푡 given by the cospan ퟙ 1 ퟚ 0 ퟙ Under the simplification of Remark 7.1.13, the formula for the weighted limit reduces to the equalizer ⎛ ⎞ ⎜ ퟚ ⎟ ⎜ 퐴 (푝 ,푝 ) ⎟ ⎜ 휋 1 0 ⎟ eq ⎜ ⎟ ⎜ 퐶 × 퐴ퟚ × 퐵 퐴 × 퐴 ⎟ ⎝⎜ ⎠⎟ 휋 퐶 × 퐵 푔×푓 which computes the pullback of (3.3.2). The universal property (7.1.8) says that functors 푋 → Hom퐴(푓, 푔) in 풦 correspond to simplicial natural transformations, the data of which is given by the three dashed vertical maps that fit into two commutative squares: ퟙ 1 ퟚ 0 ퟙ 푐 훼 푏 Fun(푋, 퐶) Fun(푋, 퐴) Fun(푋, 퐵) 푔∗ 푓∗ 169 7.1.18. Example (Bousfield-Kan homotopy limits). In their classic book on homotopy limits and col- imits [11], Bousfield and Kan define the homotopy limit of a diagram indexed by a 1-category 퐴 and valued in a Kan-complex enriched category ℳ to be the limit weighted by the functor 퐴 풮풮푒푡

푎 퐴/푎 which carries each object 푎 ∈ 퐴 the the nerve of the slice category over 푎. 7.1.19. Example (Kan extensions as weighted co/limits). The usual colimit or limit formula that com- putes the value of a pointwise left or right Kan extension of an unenriched functor 퐹∶ 퐶 → 퐸 along 퐾∶ 퐶 → 퐷 at an object 푑 ∈ 퐷 can be succinctly expressed by the weighted colimit or weighted limit

lan퐾 퐹(푑) ∶= colim퐷(퐾−,푑) 퐹 and ran퐾 퐹(푑) ∶= lim퐷(푑,퐾−) 퐹. We conclude with a few results from the general theory of weighted limits and colimits. Immedi- ately from their defining universal properties, it can be verified that: 7.1.20. Lemma (weighted limits of restricted diagrams). Suppose given a 풱-functor 퐾∶ 풜 → ℬ, a weight 푊∶ 풜 → 풱, and diagrams 퐹∶ ℬ → ℳ and 퐺∶ ℬop → ℳ. Then the 푊-weighted limit or colimit of the restricted diagram is isomorphic to the lan퐾 푊-weighted limit or colimit of the original diagram: 풜 ℬ 풜 ℬ lim푊 (퐹 ∘ 퐾) ≅ limlan퐾 푊 퐹 and colim푊 (퐺 ∘ 퐾) ≅ colimlan퐾 푊 퐺. Proof. Exercise 7.1.iii.  An enriched adjunction is comprised of a pair of 풱-functors 퐹∶ ℬ → 풜 and 푈∶ 풜 → ℬ together with a family of isomoprphisms 풜(퐹푏, 푎) ≅ ℬ(푏, 푈푎) that are 풱-natural in both variables; see Definition A.3.15. The usual Yoneda-style argument enriches to show: 7.1.21. Proposition (weighted RAPL/LAPC). A 풱-enriched right adjoint functor 푈∶ 풜 → ℬ preserves all weighted limits that exist in 풜, while it’s 풱-enriched left adjoint 퐹∶ ℬ → 풜 preserves all weighted colimits that exist in ℬ.

Proof. Exercise 7.1.iv.  By the axioms of Definition 1.2.1, ∞-cosmoi will admit a large class of simplicially-enriched weight- ed limits built from the simplicial cotensors and conical simplicial limits enumerated in 1.2.1(i). In practice, ∞-cosmoi often arise as subcategories (of “fibrant objects”) in a larger category that is also admits simplicially-enriched weighted colimits, which can then be reflected back into the ∞-cosmos to defined weighted bicolimits. This is a story for much later, so we will confine our attention to the case of weighted limits for the rest of this chapter. Exercises. 7.1.i. Exercise. Suppose ℳ is a tensored and 풱-enriched category whose underlying unenriched category admits limits of all unenriched diagram shapes. Show that ℳ admits conical limits of all unenriched diagram shapes, proving the extension of Corollary 7.1.15 described in Remark 7.1.16. 7.1.ii. Exercise. Taking the base for enrichment 풱 to be 풮푒푡, compute the following weighted limits op of a simplicial set 푋, regarded as a diagram in 풮푒푡횫 , weighted by:

170 op (i) the standard 푛-simplex Δ[푛] ∈ 풮푒푡횫 , (ii) the spine of the 푛-simplex, the simplicial subset Γ[푛] ↪ Δ[푛] obtained by gluing together the 푛 edges from 푖 to 푖 + 1 into a composable path, op (iii) the 푛-simplex boundary 휕Δ[푛] ∈ 풮푒푡횫 .² 7.1.iii. Exercise. Prove Lemma 7.1.20. 7.1.iv. Exercise. Prove Proposition 7.1.21. 7.2. Flexible weighted limits and the collage construction Our aim in this section is to introduce a special class of 풮풮푒푡-valued weights whose associated weighted limit notions are homotopically well-behaved. Borrowing a term from 2-category theory, we refer to these weights as flexible. All of the limits enumerated in 1.2.1(i) are flexible limits. In fact, we will prove that ∞-cosmoi admit all flexible weighted limits because these can be built out of the limits enumerated in 1.2.1(i). In §7.4, we will use this observation to help us verify the limit axiom for newly constructed ∞-cosmoi in a more systematic way. In this section, we will characterize the class of flexible weights as precisely those whose associated collages define relative simplicial computads, which will allow us to readily produce examples. In §7.3, we will establish the homotopical properties of flexible weighted limits and make precise the relationships between this class of the limits and limits assumed present in any ∞-cosmos by axiom 1.2.1(i). 7.2.1. Definition (flexible weights and projective cell complexes). Let 풜 be a simplicial category. • A simplicial natural transformation of the form 휕Δ[푛] × 풜(푎, −) ↪ Δ[푛] × 풜(푎, −) is called a projective 푛-cell at 푎 ∈ 풜. • A natural transformation 훼∶ 푉 ↪ 푊 in 풮풮푒푡풜 that can be expressed as a countable composite of pushouts of coproducts of projective cells is called a projective cell complex. • A weight 푊 ∈ 풮풮푒푡풜 is flexible just when ∅ ↪ 푊 is a projective cell complex. 7.2.2. Remark (on generalized projective cells). Since any monomorphism of simplicial sets 푈 ↪ 푉 can be decomposed as a sequential composite of pushouts of coproducts of boundary inclusions 휕Δ[푛] ↪ Δ[푛], the class of projective cell complexes may be also be described as the class of maps in 풮풮푒푡풜 that can be expressed as a countable composite of pushouts of coproducts of monomorphisms 푈 × 풜(푎, −) ↪ 푉 × 풜(푎, −) for some 푎 ∈ 풜. 7.2.3. Example. Since any simplicial set can be decomposed as a sequential composite of pushouts of coproducts of boundary inclusions 휕Δ[푛] ↪ Δ[푛], simplicial cotensors are flexible weights. 7.2.4. Example. Conical products also define flexible weighted limits, built by attaching one projec- tive 0-cell for each object in the indexing set. 7.2.5. Non-Example. Conical limits indexed by any 1-category that contains non-identity arrows are not flexible because the legs of a conical cone over the domain and codomain of each arrow in the diagram are required to define a strictly commutative triangle of 0-arrows. The specifications for a

²The limit of a simplicial object weighted by 휕Δ[푛] is called the 푛th-matching object; see Appendix C. 171 flexible weight allow us to free attach 푛-arrows of any dimension, but do not provide a mechanism for demanding strict commutativity of any diagram of 푛-arrows — only commutativity up to the presence of a higher cell. 7.2.6. Digression (on flexible limits in 2-category theory). Simplicial limits weighted by flexible weights should be thought of as analogous to flexible 2-limits, i.e., 2-limits built out of products, insert- ers, equifiers, and retracts (splittings of idempotents) [6]. More precisely, simplicial limits weighted by flexible weights are analogous to the PIE limits, those built just from products, inserters, and equi- fiers, but we choose to adopt the moniker from the slight larger class of weights because we find it to be more evocative. The PIE limits also include iso-inserters, descent objects, comma objects, and Eilenberg-Moore objects, as well as all pseudo, lax, and oplax limits. Many important 2-categories, such as the 2-category of accessible categories and accessible functors, fail to admit all 2-categorical limits, but do admit all PIE-limits [40]. The weights for flexible limits are the cofibrant objects in a model structure on the diagram 2-category 풞푎푡풜 that is enriched over the folk model structure on 풞푎푡; the PIE weights are exactly the cellular cofibrant objects. Correspondingly, the projective cell complexes of Definition 7.2.1 are exactly the cellular cofibrations in the projective model structure on 풮풮푒푡풜. Recall that a weight is intended to describe the “shape” of cones over diagrams indexed by a par- ticular category. In the case a weight 푊∶ 풜 → 풮풮푒푡 valued in simplicial sets, we can describe the shape of 푊-cones directly as a simplicial category called the collage of the weight. 7.2.7. Definition (collage construction). The collage of a weight 푊∶ 풜 → 풮풮푒푡 is a simplicial cat- egory coll푊 which contains 풜 as a full subcategory together with one additional object ⊤ whose endomorphism space is the point. The mapping spaces from any object 푎 ∈ 풜 to ⊤ are empty, while the mapping spaces from ⊤ to the image of 풜 ↪ coll푊 are defined by: coll푊(⊤, 푎) ≔ 푊(푎) with the action maps 풜(푎, 푏) × 푊(푎) → 푊(푏) from the simplicial functor 푊 used to define compo- sition. This defines a simplicial category together with a canonical inclusion ퟙ + 풜 ↪ coll푊 that is bijective on objects and fully faithful on ퟙ and 풜 separately. 7.2.8. Proposition (collage adjunction). (i) The collage construction defines a fully faithful functor

풮풮푒푡풜 coll ퟙ+풜/풮풮푒푡-풞푎푡 from the category of 풜-indexed weights to the category of simplicial categories under ퟙ + 풜 whose essential image is comprised of those ⟨푒, 퐹⟩∶ ퟙ + 풜 → ℰ that are bijective on objects, fully faithful when restricted to ퟙ and 풜, and have the property that there are no arrows in ℰ from the image of 퐹 to 푒. (ii) The collage functor admits a right adjoint coll

풮풮푒푡풜 ⊥ ퟙ+풜/풮풮푒푡-풞푎푡

wgt which carries a pair ⟨푒, 퐹⟩∶ ퟙ + 풜 → ℰ to the weight ℰ(푒, 퐹−)∶ 풜 → 풮풮푒푡. 172 Proof. The construction of the collage functor is straightforward and left to the reader. The characterization of its essential image follows from the observation that to define a simplicial functor 푊∶ 풜 → 풮풮푒푡 requires no more and no less than • the specification of simplicial sets 푊(푎) for each 푎 ∈ 풜 and • and the specification of simplicial maps 풜(푎, 푏) × 푊(푎) → 푊(푏) for each 푎, 푏 ∈ 풜 so that this action is associative in sense that the diagram 풜(푏, 푐) × 풜(푎, 푏) × 푊(푎) ∘ 풜(푎, 푐) × 푊(푎)

풜(푏, 푐) × 푊(푏) 푊(푐) commutes. This is the same as what is required to extend ퟙ + 풜 to a simplicial category in which all of the additional maps start at ⊤ and end at an object in 풜. The adjunction asserts that simplicial functors ퟙ + 풜 ⟨푒,퐹⟩ coll푊 ℰ 퐺 from coll푊 to ℰ under ퟙ + 풜 stand in natural bijective correspondence with simplicial natural transformations 훾∶ 푊 ⇒ ℰ(푒, 퐹−). Since the inclusion 1 + 풜 ↪ coll푊 is bijective on objects and full on most homs, the data of the simplicial functor requires only the specification of the maps coll푊(⊤, 푎) = 푊(푎) → ℰ(푒, 퐹푎). These define the components of the simplicial natural transforma- tion 훾 and functoriality of 퐺 corresponds to naturality of 훾.  The collage adjunction has a useful and important interpretation. 7.2.9. Corollary. The collage of a weight 푊∶ 풜 → 풮풮푒푡 realizes the shape of 푊-weighted cones in the sense that simplicial functors 퐺∶ coll푊 → ℰ with domain coll푊 stand in bijection to 푊-cones over the diagram 퐺|풜 with summit 퐺(⊤).  On account of Lemma 7.1.20, we’ll be interested in computing left Kan extensions of weights encoded as collages. 7.2.10. Lemma. For any weight 푊∶ 풜 → 풮풮푒푡 and simplicial functor 퐾∶ 풜 → ℬ, the pushout of simplicial categories ퟙ + 풜 ퟙ+퐾 ퟙ + ℬ

⌜ coll푊 coll(lan퐾 푊) computes the collage of the weight lan퐾 푊∶ ℬ → 풮풮푒푡. Proof. By the defining universal property, a simplicial functor out of the pushout is given by a pair of functors ⟨푒, 퐹⟩∶ ퟙ + ℬ → ℰ and 퐺∶ coll푊 → ℰ so that ퟙ + 풜 ⟨푒,퐹퐾⟩ coll푊 ℰ 퐺 173 By Corollary 7.2.9, this data defines a 푊-cone with summit 푒 over the diagram 퐹퐾∶ 풜 → ℰ. By Lemma 7.1.20 such data equivalently describes a lan퐾 푊-cone with summit 푒 over the diagram 퐹∶ ℬ → ℰ. Applying Corollary 7.2.9 again, we conclude that the pushout is given by the simplicial category coll(lan퐾 푊) as claimed.  In analogy with Corollary 4.3.5, we can encode simplicial 푊-weighted limits as a right Kan ex- tension from the indexing simplicial category to the simplicial category that describes the shape of 푊-cones. 7.2.11. Lemma. For any simplicial functor 퐹∶ 풜 → ℰ and any weight 푊∶ 풜 → 풮풮푒푡, the weighted limit lim푊 퐹 exists if and only if the pointwise right Kan extension of 퐹 along 풜 ↪ coll푊 exists, in which case lan 퐹(⊤) ≅ lim푊 퐹. Proof. Since 풜 ↪ coll푊 is fully faithful, pointwise right Kan extensions may be chosen to define genuine extensions 풜 퐹 coll푊 ℰ ran 퐹 By Corollary 7.2.9, this data defines a 푊-cone over 퐹 with summit ran 퐹(⊤) that we denote by 휆∶ 푊 ⇒ ℰ(ran 퐹(⊤), 퐹(−)). By Corollary 7.2.9 again, the data of a cone over the right Kan extension diagram displayed below- left 풜 풜 퐹 퐹 ⇑훼 = coll푊 ℰ coll푊 ran 퐹 ℰ ∃!⇑휂 퐺 퐺 defines a 푊-cone 훾 훼∗ 푊 ℰ(퐺(⊤), 퐺|풜(−)) ℰ(퐺(⊤), 퐹(−)) over 퐹. The universal property of the right Kan extension depicted above-right says this cone factors uniquely through the 푊-cone 휆 along a map 휂⊤ ∶ 퐺(⊤) → ran 퐹(⊤). Thus, the right Kan extension of 퐹 along 풜 ↪ coll푊 equips the resulting 푊-cone with the universal property of the 푊-weighted limit.  A particularly convenient aspect of the collage construction is that it allows us to detect the class of flexible weights. 7.2.12. Theorem (flexible weights and collages). A natural transformation 훼∶ 푉 ↪ 푊 between weights in 풮풮푒푡풜 is a projective cell complex if and only if coll(훼)∶ coll푉 ↪ coll푊 is a relative simplicial computad. In particular, 푊 is a flexible weight if and only if ퟙ + 풜 ↪ coll푊 is a relative simplicial computad. Proof. If 훼∶ 푉 ↪ 푊 is a projective cell complex, then it can be presented as a countable com- posite of pushouts of coproducts of projective cells of varying dimensions indexed by the objects 푎 ∈ 풜. Since the collage construction is a left adjoint, it preserves these colimits, and hence the map coll(훼)∶ coll푉 ↪ coll푊 as a transfinite composite of pushouts of coproducts of simplicial func- tors coll(휕Δ[푛] × 풜(푎, −)) ↪ coll(Δ[푛] × 풜(푎, −)) in ퟙ+풜/풮풮푒푡-풞푎푡. This composite colimit dia- gram is connected — note coll∅ = ퟙ + 풜, so this cell complex presentation is also preserved by the

174 forgetful functor ퟙ+풜/풮풮푒푡-풞푎푡 → 풮풮푒푡-풞푎푡 and the simplicial functor coll(훼)∶ coll푉 ↪ coll푊 can be understood as a transfinite composite of pushouts of coproducts of coll(휕Δ[푛] × 풜(푎, −)) ↪ coll(Δ[푛] × 풜(푎, −)) in 풮풮푒푡-풞푎푡. This is advantageous because there is a pushout square in 풮풮푒푡-풞푎푡 id ퟚ[휕Δ[푛]] coll(휕Δ[푛] × 풜(푎, −)) 휕Δ[푛] 푎 휕Δ[푛] × 풜(푎, 푎) (7.2.13) ↭ ⌜ id ퟚ[Δ[푛]] coll(Δ[푛] × 풜(푎, −)) Δ[푛]] 푎 Δ[푛] × 풜(푎, 푎) whose horizontals sends the two objects − and + of the simplicial computads defined in Example 6.1.5 to ⊤ and 푎 and act on the non-trivial hom-spaces via the inclusions whose component in 풜(푎, 푎) is constant at the identity element at 푎. The fact that coll(휕Δ[푛] × 풜(푎, −)) ↪ coll(Δ[푛] × 풜(푎, −)) is a pushout of ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]] can be verified by transposing across the adjunction of Proposition 7.2.8 and applying the Yoneda lemma. From this we see that coll(훼)∶ coll푉 ↪ coll푊 is a transfinite composite of pushouts of coproducts of simplicial functors ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]], which proves that this map is a relative simplicial computad. Conversely, if coll(훼)∶ coll푉 ↪ coll푊 is a relative simplicial computad, then it can be presented as a countable composite of pushouts of coproducts of simplicial functors ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]]; since this inclusion is bijective on objects the inclusion ∅ ↪ ퟙ is not needed. Since the only arrows of coll푊 that are not present in coll푉 have domain ⊤ and codomain 푎 ∈ 풜, the characterization of the essential image of the collage functor of Proposition 7.2.8(i) allows us to identify each stage of the countable composite coll푉 coll(푊 1) ⋯ coll(푊 푖) coll(푊 푖+1) ⋯ coll푊 as the collage of some weight 푊 푖 ∶ 풜 → 풮풮푒푡. Each attaching map ퟚ[휕Δ[푛]] → coll푊 푖 in the cell complex presentation acts on objects by mapping − and + to ⊤ and 푎 for some 푎 ∈ 풜, and hence factors through the top horizontal of the pushout square (7.2.13). Hence, the inclusion coll(푊 푖) ↪ coll(푊 푖+1) is a pushout of a coproduct of the maps coll(휕Δ[푛] × 풜(푎, −)) ↪ coll(Δ[푛] × 풜(푎, −)), one for each cell ퟚ[휕Δ[푛]] ↪ ퟚ[Δ[푛]] whose attaching map sends + to 푎 ∈ coll(푊 푖). As the collage functor is fully faithful, we have now expressed coll(훼)∶ coll푉 ↪ coll푊 as a countable composite of pushouts of coproducts of simplicial functors coll(휕Δ[푛] × 풜(푎, −)) ↪ coll(Δ[푛] × 풜(푎, −)).A fully faithful functor that preserves colimits also reflects them, so in this way we see that 훼∶ 푉 ↪ 푊 is a countable composite of pushouts of coproducts of projective cells, proving that it is a projective cell complex as claimed.  As the first of many applications, we introduce the weights for pseudo limits by constructing their collages and observe immediately that this class of weights is flexible. 7.2.14. Definition (weights for pseudo limits). For any simplicial set 푋, the coherent realization of the canonical inclusion ퟙ + 푋 ↪ 푋◁ defines a collage ퟙ + ℭ푋 ↪ ℭ(푋◁). By Lemma 6.3.5, ퟙ + ℭ푋 ↪ ℭ(푋◁) is a simplicial subcomputad inclusion and hence by Lemma 6.1.12 a relative simplicial computad. Thus, Theorem 7.2.12 tells us that the collage ퟙ + ℭ푋 ↪ ℭ(푋◁) encodes a flexible weight 푊푋 ∶ ℭ푋 → 풮풮푒푡, which we call the weight for the pseudo limit of a homotopy coherent diagram of shape 푋. The 푊푋-weighted limit of a homotopy coherent diagram of shape 푋 is then referred to as the pseudo weighted limit of that diagram.

175 Since the left adjoint of the collage adjunction is fully faithful, its unit is an isomorphism, and this permits us to define the weight 푊푋 explicitly: for a vertex 푥 ∈ 푋, ◁ 푊푋(푥) ≔ ℭ(푋 )(⊤, 푥).

We call 푊푋 the weight for a “pseudo” limit because we anticipate considering homtopy cohererent diagrams valued in Kan-complex enriched categories, in which all arrows in positive dimension are automatically invertible. By Corollary 7.3.3, 푊푋-weighted limits also exist for diagrams valued in ∞-cosmoi, which are only quasi-categorically enriched. In such contexts, it would be more appropriate ◁ to refer to 푊푋 as the weight for lax limits, since in that context the 1-arrows of ℭ(푋 ) will likely map to non-invertible morphisms. Exercises. 7.2.i. Exercise. Compute the collage of the weight 푈∶ ퟙ → 풮풮푒푡 and use Theorem 7.2.12 to give a second proof that simplicial cotensors are flexible weighted limits. Compare this argument with that given in Example 7.2.3. 7.2.ii. Exercise. The inclusion into the join ퟙ + 푋 ↪ 푋◁ ≅ ퟙ ⋆ 푋 is bijective on vertices. The com- plement of the image contains a non-degenerate (푛 + 1)-simplex for each non-degenerate 푛-simplex of 푋 whose initial vertex is ⊤ and whose 0th face is isomorphic to the image of that simplex. Use Theorem 6.3.10 to describe the atomic arrows of the simplicial computad ℭ(푋◁) that are not in the image of ퟙ + ℭ푋. 7.3. Homotopical properties of flexible weighed limits In a 풱-model category ℳ, the fibrant objects are closed under weighted limits whose weights are projective cofibrant. For instance, the fibrant objects in a 풞푎푡-enriched model structure are closed under flexible weighted limits [33, 5.4] in the sense of [6]. Specializing this argument to the case of ∞-cosmoi, we obtain the following result: 7.3.1. Proposition (flexible weights are homotopical). Let 푊∶ 풜 → 풮풮푒푡 be a flexible weight and let 풦 be an ∞-cosmos. 풜 (i) The weighted limit lim푊 퐹 of any diagram 퐹∶ 풜 → 풦 may be expressed as a countable inverse limit of pullbacks of products of isofibrations

퐹푎Δ[푛] 퐹푎휕Δ[푛] (7.3.2) one for each projective 푛-cell at 푎 in the given projective cell complex presentation of 푊. (ii) If 푉 ↪ 푊 ∈ 풮풮푒푡풜 is a projective cell complex between flexible weights, then for any diagram 퐹∶ 풜 → 풦, the induced map between weighted limits

lim푊 퐹 ↠ lim푉 퐹 is an isofibration. (iii) If 훼∶ 퐹 ⇒ 퐺 is a simplicial natural transformation between a pair of diagrams 퐹, 퐺∶ 풜 ⇉ 풦 whose

components 훼푎 ∶ 퐹푎 ⥲ 퐺푎 are equivalences, then the induced map 훼∼ lim푊 퐹 lim푊 퐺 is an equivalence.

176 Proof. To begin, observe that the axioms of Definition 7.1.3 imply that the limit of 퐹 weighted by the weight 푈 × 풜(푎, −), for 푈 ∈ 풮풮푒푡 and 푎 ∈ 풜, is the cotensor 퐹푎푈. Consequently, the map of weighted limits induced by the projective 푛-cell at 푎 is the isofibration (7.3.2). By definition, any flexible weight is built as a countable composite of pushouts of coproducts of these projective cells 풜 and the weighted limit functor lim− 퐹 carries each of these conical colimits to the corresponding 풜 limit notion. So it follows that lim푊 퐹 may be expressed as a countable inverse limit of pullbacks of products of the maps (7.3.2). This proves 9.2. The same argument proves (ii). By definition, a relative cell complex 푉 ↪ 푊 is built as a countable 풜 composite of pushouts of coproducts of these projective cells and the weighted limit functor lim− 퐹 풜 carries each of these conical colimits to the corresponding limit notion. So it follows that lim푊 퐹 is 풜 the limit of a countable tower of isofibrations whose base in lim푉 퐹, where each of these isofibrations is the pullback of products of the maps (7.3.2) appearing in the projective cell complex decomposition of 푉 ↪ 푊. As products, pullbacks, and limits of towers of isofibrations are isofibrations, (ii) follows. 풜 In 9.2, we have decomposed each weighted limit lim푊 퐹 as the limit of a tower of isofibrations, in which each of these isofibrations is the pullback of a product of the isofibrations (7.3.2). We argue inductively that if 훼∶ 퐹 ⇒ 퐺 is a componentwise equivalence, then the map induced between the towers of isofibrations for 퐹 and for 퐺 by the projective cell complex presentation of 푊 is a level- wise equivalence. It follows from the standard argument in abstract homotopy theory reviewed in Appendix C that the inverse limit is then an equivalence, proving (iii). The bottom of the tower of isofibrations is lim∅ 퐹 ≅ 1 ≅ lim∅ 퐺, which is certainly an equiva- lence. For the inductive step, observe that upon taking the map of weighted limits induced by each projective 푛-cell at 푎 in 푊, we obtain a commutative square

Δ[푛]

훼푎 퐹푎Δ[푛] ∼ 퐺푎Δ[푛]

휕Δ[푛]

훼푎 퐹푎휕Δ[푛] ∼ 퐺푎휕Δ[푛] defining a pointwise equivalence between the isofibrations; the simplicial cotensor, as cosmologi- cal functor, preserves equivalences. Now the product of squares of this form gives a commutative square whose horizontals are isofibrations and whose verticals are equivalences. A pullback of this square forms the next layer in the tower of isofibrations; by the inductive hypothesis, the map be- tween the codomains of the pulled back isofibrations is already known to be an equivalence. Now the equivalence-invariance of pullbacks of isofibrations established in Appendix C completes the proof.  Immediately from the construction of Proposition 7.3.19.2: 7.3.3. Corollary (∞-cosmoi admit all flexible weighted limits). ∞-cosmoi admit all flexible weighted limits and cosmological functors preserve them.  Our aim is now to describe a converse of sorts to Proposition 7.3.19.2, which proves that the flexible weighted limit of any diagram in an ∞-cosmos can be constructed out of the limits of diagrams of isofibrations axiomatized in 1.2.1(i). Over a series of lemmas, we will construct each of the limits listed there as instances of flexible weighted limits. It will follow that any quasi-categorically enriched category equipped with a class of representably-defined isofibrations that possesses flexible weighted

177 limits will admit all of the simplicial limits of 1.2.1(i). This will help us identify new examples of ∞-cosmoi. To start, simplicial cotensors are flexible weighted limits. For any simplicial set 푈, the collage of 푈∶ ퟙ → 풮풮푒푡 is the simplicial computad ퟚ[푈]. As ퟙ + ퟙ ↪ ퟚ[푈] is a simplicial subcomputad inclusion, Theorem 7.2.12 tells us that 푈∶ ퟙ → 풮풮푒푡 is a flexible weight; this solves Exercise 7.2.i. This leaves only the conical limits. The weights for products are easily seen to be flexible directly from Definition 7.2.1. However, the weights for conical pullbacks or limits of towers of isofibrations are not flexible because the definition of a cone over either diagram shape imposes composition rela- tions on 0-arrows. 7.3.4. Example (the collage of the conical pullback). Let ⟓ denote the 1-category 푐 → 푎 ← 푏. Its collage is the 1-category with four objects and five non-identity 0-arrows as displayed ⊤ 푏

푐 푎 regarded as a constant simplicial category as in Example 6.1.4. Because the square commutes, this category is not free and hence does not define a simplicial computad, though the subcategory ퟙ+ ⟓ is free and hence is a simplicial computad. Lemma 6.1.11 tells us that the inclusion is not a relative simplicial computad and so by Theorem 7.2.12, the weight for the conical pullback is not flexible. Our strategy is to modify the weights for pullbacks and for limits of countable towers so that each composition equation involved in defining cones over such diagrams is replaced by the insertion of an “invertible” arrow of one dimension up, where we must also take care to define this “invertibility” without specifying any equations between arrows in the next dimension. We have a device for speci- fying just this sort of isomorphism: recall from Exercise 1.1.iv(i) a diagram 핀 → Fun(퐴, 퐵) specifies a “homotopy coherent isomorphism” between a pair of 0-arrows 푓 and 푔 from 퐴 to 퐵, given by: • a pair of 1-arrows 훼∶ 푓 → 푔 and 훽∶ 푔 → 푓 • a pair of 2-arrows 푔 푓 훼 훽 훽 훼 Φ Ψ 푓 푓 푔 푔 • a pair of 3-arrows whose outer faces are Φ and Ψ and whose inner faces are degenerate • etc We now introduce the weight for pullback diagrams whose cone shapes are given by squares in- habited by a homotopy coherent isomorphism. 7.3.5. Definition (iso-commas). The iso-comma object 퐶 ⨰ 퐵 of a cospan 퐴 푔 푓 퐶 퐴 퐵 in a simplicially-enriched and cotensored category ℳ is the limit weighted by a weight 푊⨰ ∶ ⟓→ 풮풮푒푡 defined by the cospan ퟙ 1 핀 0 ퟙ

178 Under the simplification of Remark 7.1.13, the formula for the weighted limit reduces to the equalizer ⎛ ⎞ ⎜ 핀 ⎟ ⎜ 퐴 (푞 ,푞 ) ⎟ ⎜ 휋 1 0 ⎟ eq ⎜ ⎟ ⎜ 퐶 × 퐴핀 × 퐵 퐴 × 퐴 ⎟ ⎝⎜ ⎠⎟ 휋 퐶 × 퐵 푔×푓 핀 where the maps (푞1, 푞0)∶ 퐴 → 퐴×퐴 are defined by restricting along the endpoint inclusion ퟙ+ퟙ = 휕핀 ↪ 핀. In an ∞-cosmos, this map is an isofibration and the equalizer defining the iso-comma object is computed by the pullback 퐶 ⨰ 퐵 퐴핀 퐴 ⌟ (푞1,푞0) (7.3.6) (푞1,푞0) 퐶 × 퐵 퐴 × 퐴 푔×푓 7.3.7. Lemma. Iso-comma objects are flexible weighted limits and in particular exist in any ∞-cosmos.

Proof. Reprising the notation for the category ⟓ used in Example 7.3.4, the weight 푊⨰ is con- structed by the pushout 휕핀 × ⟓(푎, −) ⟓ (푏, −)⊔ ⟓(푐, −)

⌜ 핀 × ⟓(푎, −) 푊⨰ where the attaching map picks out the two arrows in the cospan ⟓. As a projective cell complex, 푊⨰ is built from a project 0-cell at 푏, a projective 0-cell at 푐, and two projective 푘-cells at 푎 for each 푘 > 0, correspnoding to the non-degenerate simplices of 핀. As described by Remark 7.2.2, these may be attached all at once. In this way, we see that 푊⨰ is a flexible weight, so Corollary 7.3.3 tells us that iso-comma objects exist in any ∞-cosmos, a fact that is also evident from the pullback (7.3.6).  7.3.8. Remark. In the homotopy 2-category of an ∞-cosmos, there is a canonical invertible 2-cell defining the iso-comma cone: 퐶 ⨰ 퐵 퐴 푞1 푞0 휙 퐶 ≅ 퐵 푔 푓 퐴 that has a weak universal property analogous to that of the comma cone presented in Proposition 3.3.6. The proof, like the proof of that result, makes use of the fact that 퐴핀 is the weak 핀-cotensor in the homotopy 2-category. The proof of this fact is somewhat delicate, making use of marked simplicial sets as appeared already in the proof of Corollary 1.1.16, which gives 1-cell induction. Our notation for iso-commas is deliberately similar to the usual notation for pullbacks. In an ∞-cosmos, iso-commas can be used to compute “homotopy pullbacks” of diagrams in which neither map is an isofibration. When at least one map of the cospan is an isofibration, these constructions are equivalent.

179 7.3.9. Lemma (iso-commas and pullbacks). In an ∞-cosmos 풦, pullbacks and iso-commas of cospans in which at least one map is an isofibration are equivalent. More precisely, given a pullback square as below-left and an iso-comma square as below-right 푞 푃 푏 퐵 퐶 ⨰ 퐵 0 퐵 ⌟ 퐴 푐 푓 푞 휙 푓 1 ≅

퐶 푔 퐴 퐶 푔 퐴 푃 ≃ 퐶 ⨰ 퐵 over 퐶 and up to isomorphism over 퐵. 퐴 Proof. Applying Lemma 1.2.12 to the functor 푏∶ 푃 → 퐵, we can replace the span (푐, 푏)∶ 푃 → 퐶×퐵 by a span (푐푞, 푝)∶ 푃푏 ↠ 퐶×퐵 whose legs are both isofibrations that is related via an equivalence 푠∶ 푃 ⥲ 푃푏 that lies over 퐶 on the nose and over 퐵 up to isomorphism. We will show that under the hypothesis that 푓 is an isofibration, this new span is equivalent to the iso-comma span. To see this, note that the factorization constructed in (1.2.13) is in fact defined using an iso-comma, constructed via the pullback in the top square of the diagram below-left. Since the map 푏 is itself defined by a pullback, the bottom square of the diagram below-left is also a pullback, defining the left-hand pullback rectangle: 푃푏 퐵핀 ⌟ 핀 (푞,푝) (푞 ,푞 ) 퐶 ⨰ 퐵 퐴 ⨰ 퐵 퐴 1 0 퐴 퐴 푏×퐵 ⌟ ⌟ 푃 × 퐵 퐵 × 퐵 (푞1,푞0) ⌟ (푞1,푞0) (푞1,푞0) 푐×퐵 푓×퐵 퐶 × 퐵 퐴 × 퐵 퐴 × 퐴 푔×퐵 퐴×푓 퐶 × 퐵 퐴 × 퐵 푔×퐵 Now the iso-comma is constructed by a similar pullback rectangle, displayed above-right. And because ᄃ 핀 푓 is an isofibration, Lemma 1.2.10 tells us that the Leibniz tensor 푖0 ⋔ 푓∶ 퐵 ⥲→퐴 ⨰ 퐵 of 푖0 ∶ ퟙ ↪ 핀 퐴 with 푓∶ 퐵 ↠ 퐴 is a trivial fibration. This equivalence commutes with the projections to 퐴 × 퐵 and hence the maps (푐푞, 푝)∶ 푃푏 ↠ 퐶 × 퐵 and (푞1, 푞0)∶ 퐶 ⨰ 퐵 ↠ 퐶 × 퐵, defined as pullbacks of an 퐴 equivalence pair of isofibrations along 푔 × 퐵, are equivalent as claimed.  We now introduce a flexible weight diagrams given by a countable tower of 0-arrows whose cone shapes will have a homotopy coherent isomorphism in the triangle over each generating arrow in the diagram. 7.3.10. Definition (iso-towers). Recall the category 흎 whose objects are natural numbers and whose morphisms are freely generated by maps 휄푛,푛+1 ∶ 푛 → 푛 + 1 for each 푛.

180 The iso-tower of a diagram 퐹∶ 흎op → ℳ in a simplicially enriched and cotensored category ℳ op is the limit weighted by the diagram 푊← ∶ 흎 → 풮풮푒푡 defined by the pushout

(id ,휄푛,푛+1) ∐ 휕핀 × 흎(−, 푛) 푛 ∐ 흎(−, 푛) 푛∈흎 푛∈흎 (7.3.11) ⌜ ∐ 핀 × 흎(−, 푛) 푊← 푛∈흎 op in 풮풮푒푡흎 . By Definition 7.1.3(ii), in an ∞-cosmos the iso-tower of a diagram

푓푛+2,푛+1 푓푛+1,푛 푓푛,푛−1 푓2,1 푓1,0 퐹 ≔ ⋯ 퐹푛+1 퐹푛 ⋯ 퐹1 퐹0 is constructed by the pullback 휙 ∏ 핀 lim푊← 퐹 퐹푛 ⌟ 푛∈흎 휌 ∏(푞1,푞0) (7.3.12)

∏ 퐹푛 ∏ 퐹푛 × 퐹푛 푛∈흎 (푓푛+1,푛,id퐹푛) 푛∈흎

The limit cone is generated by a 0-arrow 휌푛 ∶ lim푊← 퐹 → 퐹푛 for each 푛 ∈ 흎 together with a homotopy op coherent isomorphism 휙푛 in each triangle over a generating arrow 퐹푛+1 → 퐹푛 in the 흎 -indexed diagram. 7.3.13. Lemma. Iso-towers are flexible weighted limits and in particular exist in any ∞-cosmos.

Proof. The weight 푊← is a projective cell complex built by attaching one projective 0-cell at each 푛 ∈ 흎 — forming the coproduct appearing in the upper right-hand corner of (7.3.11) — and then by attaching a projective 푘-cell at each 푛 ∈ 흎 for each non-degenerate 푘-simplex of 핀. Rather than attach each projective 푘-cell for fixed 푛 ∈ 흎 in sequence, by Remark 7.2.2 these can all be attached at once by taking a single pushout of the “generalized projective cell at 푛” defined by the map 휕핀 × 흎(−, 푛) ↪ 핀 × 흎(−, 푛). These are the maps appearing as the left-hand vertical of (7.3.11). Now Corollary 7.3.3 or the formula (7.3.12) make it clear that such objects exist in any ∞-cosmos.  7.3.14. Lemma (iso-towers and inverse limits). In an ∞-cosmos 풦, the inverse limit of a countable tower of isofibrations is equivalent to the iso-pullback of that tower.

Proof. We will rearrange the formula (7.3.12) to construct the iso-tower lim푊← 퐹 as an inverse limit of a countable tower of isofibrations 푃∶ 흎op → 풦 that is pointwise equivalent to the diagram 퐹∶ 흎op → 풦. In the case where the diagram 퐹 is also given by a tower of isofibrations

푝푛+2,푛+1 푝푛+1,푛 푝푛,푛−1 푝2,1 푝1,0 lim 푃 ≅ ⋯ 푃푛+1 푃푛 ⋯ 푃1 푃0

∼ (7.3.15) ∼ ∼ ∼ 푒푛 푒푛 푒1 ∼ 푒0

lim 퐹 ≅ ⋯ 퐹푛+1 퐹푛 ⋯ 퐹1 퐹0 푓푛+2,푛+1 푓푛+1,푛 푓푛,푛−1 푓2,1 푓1,0

181 the equivalence invariance of the inverse limit of a diagram of isofibrations will imply that the limits lim푊← 퐹 ≅ lim 푃 and lim 퐹 are equivalent as claimed. The ∞-categories 푃푛 will be defined as conical limits of truncated versions of the diagram (7.3.12). To start define 푃0 ≔ 퐹0 and 푒0 to be the identity, then define 푃1, 푝1,0, and 푒1 via the pullback

푝1,0

핀 ∼ 푃1 퐹0 퐹0 ⌟ 푞0 푒 ∼ 푞 1 ∼ 1

퐹1 퐹0 푓1,0

Note that 푃1 ≅ 퐹1 ⨰ 퐹0 computes the iso-comma objects of the cospan given by id퐹0 and 푓1,0. 퐹0 Now define 푃2, 푝2,1, and 푒2 using the composite pullback

푝2,1

∼ 핀 ∼ 푃2 • 푃1 퐹0 퐹0 ⌟ ⌟ ⌟ 푞0 ∼ ∼ ∼ 푒 푞 1 ∼ 1

푒 ∼ 핀 ∼ 2 • 퐹1 퐹1 퐹0 ⌟ 푞0 푓1,0 ∼ 푞 ∼ 1

퐹2 퐹1 푓2,1

Continuing inductively, 푃푛, 푝푛,푛−1, and 푒푛 are defined by appending the diagram 핀 ∼ 퐹푛−1 퐹푛−1 푞0 푞 ∼ 1

퐹푛 퐹푛−1 푓푛,푛−1 to the limit cone defining 푃푛−1 and taking the limit of this composite diagram. There is one small problem with the construction just given: it defines a diagram (7.3.15) in which 핀 each square commutes up to isomorphism — the isomorphism encoded by the map 푃푛 → 퐹푛−1 — not on the nose. But because the maps 푓푛+1,푛 are isofibrations this is no problem. The isomorphism ′ inhabiting the square 푒0푝1,0 ≅ 푓1,0푒1 can be lifted along 푓1,0 to define a new map 푒1 ∶ 푃1 ⥲ 퐹1 ′ isomorphic to 푒1; as observed in the proof of Theorem 1.4.7 this 푒1 is then also an equivalence, so ′ we replace 푒1 with 푒1, and then continue inductively to lift away the isomorphisms in the square ′ 푒1푝2,1 ≅ 푓2,1푒2. Since inverse limits of towers of isofibrations are equivalence-invariant, it follows that lim 푃 ≃ lim 퐹. By construction lim 푃 ≅ lim푊← 퐹, so it follows that lim푊← 퐹 ≃ lim 퐹, which is what we wanted to show.  Exercises. 7.3.i. Exercise. Verify — either directly from Definition 7.2.1 or by applying Theorem 7.2.12 — that conical products are flexible weighted limits.

182 7.4. More ∞-cosmoi Our aim in this section is to introduce further examples of ∞-cosmoi. Our first example is a special case of a more general result that will appear in Appendix E that we nonetheless spell out in detail to illustrate the ideas involved in this sort of argument. The walking arrow category ퟚ is an inverse Reedy category, where the domain of the non-identity arrow is assigned “degree 1” and the codomain is assigned “degree zero.” This Reedy structure motivates the definitions in the ∞-cosmos of isofibrations that we now introduce: 7.4.1. Proposition (∞-cosmoi of isofibrations). For any ∞-cosmos 풦 there is an ∞-cosmos 풦ퟚ whose (i) objects are isofibrations 푝∶ 퐸 ↠ 퐵 in 풦 (ii) functor-spaces, say from 푞∶ 퐹 ↠ 퐴 to 푝∶ 퐸 ↠ 퐵, are defined by pullback 푞 푝 Fun(퐹 −→→퐴, 퐸 −→→퐵) Fun(퐹, 퐸) ⌟ 푝∗ Fun(퐴, 퐵) Fun(퐹, 퐵) 푞∗ (iii) isofibrations from 푞 to 푝 are commutative squares 푔 퐹 퐸 푞 • ⌟ 푝 퐴 퐵 푓 in which the horizontals and the induced map from the initial vertex to the pullback of the cospan are isofibrations in 풦 (iv) limits are defined pointwise in 풦 (v) and in which a map

푔 퐹 ∼ 퐸 푞 푝 퐴 ∼ 퐵 푓 is an equivalence in the ∞-cosmos 풦ퟚ if and only if 푔 and 푓 are equivalences in 풦. Relative to these definitions, the domain, codomain, and identity functors dom 풦ퟚ id 풦 cod are all cosmological. Proof. The diagram category 풦ퟚ inherits its simplicially enriched limits, defined pointwise, from 풦. The functor-spaces described in (ii) are the usual ones for an enriched category of diagrams. This verifies 1.2.1(i). For axiom 1.2.1(ii) note that the product and simplicial cotensor functors carry pointwise isofibra- tions to isofibrations. The pullback of an isofibration as in (iii) along a commutatative square from an 183 isofibration 푟 to 푝 may be formed in 풦. Our task is to show that the induced map 푡 is an isofibration and also that the square from 푡 to 푟 is an isofibration in the sense of (iii): 퐺 × 퐹 퐹 퐸 푧 퐺 퐸 푡 푞 (7.4.2) •⌟ •⌟ 푟 푝 퐶 × 퐴 퐴 퐵 퐶 퐵 The map 푡 factors as a pullback of 푧 followed by a pullback of 푟 as displayed above, and is thus an isofi- bration, as claimed. This observation also verifies that the square from 푡 to 푟 defines an isofibration. A similar argument verifies the Leibniz stability of the isofibrations and that the limit of a tower of isofibration is an isofibartion. This proves that 풦ퟚ defines an ∞-cosmos in such a way so that the domain, codomain, and identity functors are cosmological. Finally, since pullbacks of isofibrations in 풬풞푎푡 are invariant under equivalences, a pair of equiv- alences (푔, 푓) induces an equivalence between the functor-spaces defined in (ii). The converse, that an equivalence in 풦ퟚ defines a pair of equivalences in 풦 follows from the fact that domain and codomain- projection functors are cosmological and Lemma 1.3.2.  In close analogy with Proposition 3.5.3 we have a smothering 2-functor that relates the homo- topy 2-category of 풦ퟚ to the 2-category of isofibrations, commutative squares, and parallel natural transformations in the homotopy 2-category of 풦. 7.4.3. Lemma. There is an identity on objects and 1-cells smothering 2-functor 픥(풦ퟚ) → (픥풦)ퟚ whose codomain is the 2-category whose • objects are isofibrations in 풦, • 1-cells are commutative squares between such, • 2-cells are pairs of 2-cells in 픥풦 푔 퐹 ⇓훼 퐸 ′ 푞 푔 푝 푓 퐴 ⇓훽 퐵 푓′

Proof. Exercise 7.4.i.  For any ∞-cosmos 풦 and any subcategory of its underlying 1-category — that is for any subset of its objects and subcategory of its 0-arrows — one can form a quasi-categorically enriched subcategory ℒ ⊂ 풦 that contains exactly those objects and 0-arrows and all higher dimensional arrows that they span. We call such subcategories ℒ full on positive-dimensional arrows; note the functor spaces of ℒ are quasi-categories because all inner horn inclusions are bijective on vertices. We will take particular interest in subcategories that satisfy a further “repleteness” condition.

184 7.4.4. Definition. Let 풦 be an ∞-cosmos. A subcategory ℒ ⊂ 풦 is replete in 풦 if it is full on positive-dimensional arrows and moreover: (i) Every ∞-category in 풦 that is equivalent to an object in ℒ lies in ℒ. (ii) Any equivalence in 풦 between objects in ℒ lies in ℒ. (iii) Any arrow in 풦 that is isomorphic in 풦 to an arrow in ℒ lies in ℒ. 7.4.5. Lemma. Suppose ℒ ⊂ 풦 is a replete subcategory of an ∞-cosmos. Then any map 푝∶ 퐸 → 퐵 in ℒ that defines an isofibration in 풦 is a representably-defined isofibration in ℒ: that is for all 푋 ∈ ℒ, 푝∗ ∶ Funℒ(푋, 퐸) ↠ Funℒ(푋, 퐵) is an isofibration of quasi-categories.

Proof. Since 풦 is an ∞-cosmos, axiom 1.2.1(ii) requires that 푝∗ ∶ Fun풦(푋, 퐸) ↠ Fun풦(푋, 퐵) is an isofibration of quasi-categories. Because the inner horn inclusions are bijective on vertices and Funℒ(푋, 퐸) ↪ Fun풦(푋, 퐸) is full on positive-dimensional arrows, it follows immediately that the restricted map 푝∗ ∶ Funℒ(푋, 퐸) ↠ Funℒ(푋, 퐵) lifts against the inner horn inclusions. Thus it remains only to solve lifting problems of the form displayed below-left 푒 ퟙ Funℒ(푋, 퐸) Fun풦(푋, 퐸)

푝∗ 푝∗ 핀 Fun (푋, 퐵) Fun (푋, 퐵) 훽 ℒ 풦 The lifting problem defines a 0-arrow 푒∶ 푋 → 퐸 in ℒ and an isomorphism 훽∶ 푏 ≅ 푝푒 in ℒ. Its solution in 풦 defines a 0-arrow 푒′ ∶ 푋 → 퐸 in 풦 so that 푝푒′ = 푏 together with an isomorphism 푒 ≅ 푒′ in 풦. By fullness on positive-dimensional arrows, to show that this lift factors through the inclusion ′ Funℒ(푋, 퐸) ↪ Fun풦(푋, 퐸), we need only argue that the map 푒 lies in ℒ, but this is the case by condition (iii) of Definition 7.4.4.  The following result describes a condition under which a replete subcategory ℒ ⊂ 풦 inherits an ∞-cosmos structure created from 풦. 7.4.6. Proposition. Suppose ℒ ⊂ 풦 is a replete subcategory of an ∞-cosmos. If ℒ is closed under flexible weighted limits in 풦, then ℒ defines an ∞-cosmos with isofibrations, equivalences, trivial fibrations and simplicial limits created by the inclusion ℒ ↪ 풦, which then defines a cosmological functor. When these conditions hold, we refer to ℒ as a replete sub ∞-cosmos of 풦 and ℒ ↪ 풦 as a cosmological embedding. Proof. To say that a replete subcategory ℒ ↪ 풦 is closed under flexible weighted limits means that for any diagram in ℒ and any limit cone in 풦 that limit cone lies in ℒ and satisfies appropriate simplicially-enriched universal property of Definition 7.1.7 in there. We must verify that each of the limits of axiom 1.2.1(i) exist in ℒ. Immediately, ℒ has a terminal object, products, and simplicial cotensors, since all of these are flexible weighted limits. By Lemmas 7.3.7 and 7.3.13, ℒ also admits the construction of iso-comma objects and of iso-towers. Define the class of isofibrations in ℒ to be those maps in ℒ that define isofibrations in 풦. By Lemmas 7.3.9 and 7.3.14, pullbacks and limits of towers of isofibrations are equivalent in 풦 to the iso-commas and iso-towers formed over the same diagrams. Since these latter limit cones lie in ℒ by hypothesis, so do the equivalence former cones by repleteness of ℒ in 풦.

185 There is a little more still to verify: namely that pullbacks and limits of towers of isofibrations satisfy the simplicially-enriched universal property as conical limits in ℒ. In the case of a pullback diagram 푃 푏 퐵 ⌟ 푐 푓

퐶 푔 퐴 in ℒ we must show that for each 푋 ∈ ℒ, the functor-space Funℒ(푋, 푃) is isomorphic to the pullback

Funℒ(푋, 퐶)×Funℒ(푋,퐴)Funℒ(푋, 퐵) of functor spaces. We have such an isomorphism for functor spaces in 풦 and on account of the commutative diagram

Funℒ(푋, 푃) Funℒ(푋, 퐶) × Funℒ(푋, 퐵) Funℒ(푋,퐴)

≅ Fun풦(푋, 푃) Fun풦(푋, 퐶) × Fun풦(푋, 퐵) Fun풦(푋,퐴) and fullness on positive-dimensional arrows, we need only verify surjectivity of the dotted map on 0-arrows. So consider a cone (ℎ∶ 푋 → 퐵, 푘∶ 푋 → 퐶) over the pullback diagram in ℒ. By the universal property of the isocomma 퐴⨰퐸, there exists a factorization 푦∶ 푋 → 퐶⨰퐵 in ℒ. Composing with the 퐵 퐴 equivalence 퐶⨰퐵 ≃ 푃, this map is equivalent to the factorization 푧∶ 푋 → 푃 of the cone (ℎ, 푘) through 퐴 the limit cone (푏, 푐) in 풦 that exists on account of the strict universal property of the pullback in there. By repleteness, the isomorphism between 푧 and the composite of 푦 with the equivalence suffices to show that 푧 lies in ℒ. Hence, the functor spaces in ℒ are isomorphic. A similar argument invoking Lemma 7.3.14 proves that inverse limits of towers of isofibrations define conical limits in ℒ. This completes the proof of the limit axiom 1.2.1(i). Since the isofibrations in ℒ are a subset of the isofibrations in 풦 and the limit constructions in both contexts coincide, most of the closure properties of 1.2.1(ii) are inherited from the closure properties in 풦. The one exception is the requirement that the isofibrations in ℒ define isofibrations of quasi-categories representably, which was proven for any replete subcategory in Lemma 7.4.5. This proves that ℒ defines an ∞-cosmos. Finally, we argue that the equivalences in ℒ coincide with those of 풦, which will imply that the trivial fibrations in ℒ coincide with those of 풦 as well. Condition (ii) of Definition 7.4.4 implies that for any arrow in ℒ that defines an equivalence in 풦, its equivalence inverse and witnessing homotopies of Lemma 1.2.15 lie in ℒ. Because we have already shown that ℒ admits cotensors with 핀 preserved by the inclusion ℒ ↪ 풦, Lemma 1.2.15 implies that this data defines an equivalence in ℒ. Conversely, any equivalence in ℒ extends to the data of (1.2.16) and since ℒ ↪ 풦 preserves 핀-cotensors, this data defines an equivalence in 풦. Thus, by construction, the ∞-cosmos structure of ℒ is preserved and reflected by the inclusion ℒ ↪ 풦 as claimed.  In practice the repleteness condition of Definition 7.4.4 is satisfied by any subcategory of objects and 0-arrows that is determined by some ∞-categorical property, so the main task in verifying that a subcategory defines an ∞-cosmos is verifying the closure under flexible weighted limits.

7.4.7. Proposition. For any ∞-cosmos 풦, let 풦⊤ denote the quasi-categorically enriched category whose (i) objects are ∞-categories in 풦 that possess a terminal object 186 (ii) functor spaces Fun⊤(퐴, 퐵) ⊂ Fun(퐴, 퐵) are the sub-quasi-categories whose 0-arrows preserve termi- nal objects and containing all 푛-arrows they span

Then the inclusion 풦⊤ ↪ 풦 creates an ∞-cosmos structure on 풦⊤ from 풦, and moreover for each object of 풦⊤ defined as a flexible weighted limit of some diagram in 풦⊤, its terminal element is created by the 0-arrow legs of the limit cone. Proof. We apply Proposition 7.4.6. Lemma 2.2.6 and Proposition 2.1.10 verify the repleteness condition, so it remains only to prove closure under flexible weighted limits, which we do by induction over the tower of isofibrations constructed in Proposition 7.3.19.2, which expresses a flexible weighted limit lim푊 퐹 as the inverse limit of a tower of isofibrations

lim푊 퐹 ⋯ lim푊푘+1 퐹 lim푊푘 퐹 ⋯ lim푊0 퐹 1 each of which is a pullback of products of maps of the form (7.3.2) indexed by the projective cells of the flexible weight 푊. We’ll argue inductively that each ∞-category in this tower possesses a terminal element that’s created by the legs of the tower of isofibrations. For the base case, note that if (퐴푖)푖∈퐼 is a family of ∞-categories possessing terminal elements 푡푖 ∶ 1 → 퐴푖, then the product of the adjunctions ! ⊣ 푡푖 defines an adjunction ! ∏ ∏ 1 ≅ 푖∈퐼 1 ⊥ 푖∈퐼 퐴푖

∏ (푡푖)푖∈퐼≅ 푖 푡푖 ∏ exhibiting (푡푖)푖∈퐼 as a terminal element of 푖∈퐼 퐴푖. By construction, this terminal element is jointly created by the legs of the limit cone. Note that by construction the product-projection functors pre- ∏ serve this terminal element and the map into the product ∞-category 푖∈퐼 퐴푖 induced by any family of terminal element preserving functors (푓∶ 푋 → 퐴푖)푖∈퐼 will preserve terminal elements. This verifies that the subcategory 풦⊤ is closed under products. For the inductive step consider a pullback diagram

Δ[푛] lim푊 퐹 퐴 푘+1 ⌟

lim 퐹 퐴휕Δ[푛] 푊푘 ℓ that arises from the attaching map for a projective 푛-cell. The inductive hypothesis tells us that lim푊푘 퐹 admits a terminal element 푡푘 and for each vertex of 푖 ∈ 휕Δ[푛], the corresponding com- ponent ℓ푖 ∶ lim푊푘 퐹 → 퐴 of the limit cone preserves it. Since 퐹 is a diagram valued in 풦⊤ and 퐴 is an ∞-category in its image, we know that 퐴 must possess a terminal element 푡∶ 1 → 퐴. By Proposition 2.1.7(iii), the constant diagram at 푡 then defines a terminal element in 퐴휕Δ[푛] and 퐴Δ[푛], which we 휕Δ[푛] also denote by 푡. By terminality, there is a 1-arrow 훼∶ ℓ(푡푘) → 푡 ∈ 퐴 whose components at each 푖 ∈ 휕Δ[푛] are isomorphisms in 퐴. By Lemma ??, it follows that 훼 is also an isomorphism, which tells 휕Δ[푛] us that ℓ(푡푘) is also a terminal element of 퐴 . The same argument demonstrates that terminal elements in simplicial cotensors, in this case by 휕Δ[푛] are jointly created by the 0-arrow components of the limit cone, namely by evaluation on each of the vertices of the cotensoring simplicial set. The proof is completed now by the following lemma.  187 7.4.8. Lemma. Consider a pullback diagram 푔 퐹 퐸 ⌟ 푞 푝 퐴 퐵 푓 in which the ∞-categories 퐴, 퐵, and 퐸 possess a terminal element and the functors 푓 and 푝 preserve them. Then 퐹 possesses a terminal element that is created by the legs of the pullback cone 푞 and 푔. Proof. If 푒∶ 1 → 퐸 and 푎∶ 1 → 퐴 are terminal, then this implies that 푓(푎) ≅ 푝(푒) ∈ 퐵. Using the fact that 푝 is an isofibration, there is a lift 푒′ ≅ 푒 of this isomorphism along 푝 that then defines another terminal element of 퐸. The pair (푎, 푒′) now induces an element 푡 of 퐹 that we claim is terminal. To see this we’ll apply Proposition 4.3.10, which proves that 푡 is a terminal element of 퐹 if and only if the domain-projection functor 푝0 ∶ Hom퐹(퐹, 푡) ↠ 퐹 is a trivial fibration. By construction of 푡, we know that the domain-projection functors for the elements 푔푡, 푞푡, and 푝푔푡 = 푓푞푡 are all trivial fibrations and moreover the top and bottom faces of the cube Hom (퐹, 푡) Hom (퐸, 푔푡) 퐹 ⌟ 퐸 푝0 푝 Hom퐴(퐴, 푞푡) Hom퐵(퐵, 푓푞푡) ∼ 0 푝 ∼ 푔 ≀ 0 푝0 푞 퐹 ⌟ 퐸 푝 퐴 퐵 푓 are pullbacks. Since homotopy pullbacks are homotopical, the fact that the three maps between the cospans are equivalences implies that the map between their pullbacks is also an equivalence, as re- quired.  co Applying the result of Proposition 7.4.7 to 풦 constructs an ∞-cosmos 풦⊥ whose objects are ∞-categories in 풦 that possess an initial object and 0-arrows are initial-element-preserving functors. Combining these, we get an ∞-cosmos for the pointed ∞-categories of Definition 4.4.1, those that possess a zero element.

7.4.9. Proposition. For any ∞-cosmos 풦, let 풦∗ denote the quasi-categorically enriched category of pointed ∞-categories, i.e., ∞-categories that possess a zero element, and functors that preserve them. Then the inclusion 풦∗ ↪ 풦 creates an ∞-cosmos structure on 풦⊤ from 풦. Proof. The natural inclusions define a pullback diagram of quasi-categorically enriched cate- gories

풦⊥,⊤ 풦⊤ ⌟

풦⊥ 풦 where the objects of 풦⊥,⊤ are ∞-categories that possess both an initial and terminal element and functors that preserve them separately.

188 Now repleteness of 풦⊥,⊤ follows from repleteness of 풦⊤ and 풦⊥ as does closure under flexible weighted limits. Given a diagram in 풦⊥,⊤ admitting a flexible weighted limit in 풦 that limit cone lies in both 풦⊤ and 풦⊥ and hence in their intersection. Since the functor spaces of 풦⊥,⊤ are the intersections of the functor spaces of 풦⊤ and 풦⊥ in 풦, the simplicial universal property in those ∞-cosmoi restricts to the required simplicially-enriched universal property in 풦⊥,⊤. Now the ∞-cosmos 풦∗ of interest is the full subcategory of 풦⊥,⊤ spanned by those ∞-categories in which the initial and terminal element coincide. To prove that 풦∗ is an ∞-cosmos, created by cosmological embedding 풦∗ ↪ 풦⊥,⊤ it remains only to show that this subcategory is closed un- der flexible weighted limits. To that end consider a diagram 퐹∶ 풜 → 풦⊥,⊤ and a flexible weight 푊∶ 풜 → 풮풮푒푡. We have shown that the limit lim푊 퐹 admits an initial element 푖∶ 1 → lim푊 퐹 and also a terminal element 푡∶ 1 → lim푊 퐹, each of which is preserved the the 0-arrow legs of the limit cone. The elements 푖 and 푡 are vertices in the underlying quasi-category Fun(1, lim푊 퐹), and remain respectively initial and terminal in there. Appealing to the universal property of either, there is a 1-simplex 훼∶ 푖 → 푡 ∈ Fun(1, lim푊 푇), representing a natural transformation 훼∶ 푖 ⇒ 푡 in 픥풦, and lim푊 퐹 is a pointed ∞-category if and only if 훼 is invertible. Invertibility of 1-simplices in quasi-categories can be detected by applying the cosmological func- ♮ tor (−) ∶ 풬풞푎푡 → 1-풞표푚푝 of Example 1.3.7; a 1-simplex in Fun(1, lim푊 퐹) is an isomorphism if and ♮ only if its image in Fun(1, lim푊 퐹) is marked. Corollary 7.3.3 proves that the cosmological functor Fun(1, −)♮ ∶ 풦 → 1-풞표푚푝 presrves flexible weighted limits, so ♮ ♮ Fun(1, lim푊 퐹) ≅ lim푊 Fun(1, 퐹−) , and thus it remains only to show that a 1-simplex in a flexible weighted limit of a diagram of 1-complicial sets, whose image under each of the legs of the limit cone is marked, is marked in the weighted limit. Indeed the markings for all simplicially enriched limits in 1-풞표푚푝 are defined in this manner: a 1-simplex is marked if and only if each of its components is marked. So this proves that 풦∗ ↪ 풦⊥,⊤ is closed under flexible weighted limits, completing the proof. 

Applying the result of Proposition 7.4.7 or its dual to the ∞-cosmos 풦/퐵 of isofibrations over 퐵 ∈ 풦, we obtain two new ∞-cosmoi of interest.

7.4.10. Corollary. For any ∞-category 퐵 in an ∞-cosmos 풦, the sliced ∞-cosmos 풦/퐵 admits sub ∞-cosmoi

ℛ 푎푟푖(풦)/퐵 풦/퐵 ℒ푎푟푖(풦)/퐵 whose • objects are isofibrations over 퐵 admitting a right adjoint right inverse or left adjoint right inverse, respec- tively, and • 0-arrows are functors over 퐵 that commute with the respective right or left adjoints up to fibered isomor- phism with the ∞-cosmos structures created by the inclusions.

Proof. These ∞-cosmoi are defined by ℛ 푎푟푖(풦)/퐵 ≔ (풦/퐵)⊤ and ℒ푎푟푖(풦)/퐵 ≔ (풦/퐵)⊥.  Leveraging Corollary 7.4.10, we can establish similar cosmological embeddings ℛ 푎푟푖(풦) 풦ퟚ ℒ푎푟푖(풦)

189 The quasi-categorically enriched subcategories ℛ 푎푟푖(풦) and ℒ푎푟푖(풦) are replete in 풦ퟚ, so by Propo- sition 7.4.6 we need only check closure under flexible weighted limits. We argue separately for coten- sors, which are easy, and for the conical limits, which are harder. For this, we make use of a general 1-categorical result making use of the fact that the codomain-projection functor cod∶ ℛ 푎푟푖(풦) → 풦 is a Grothendieck fibration of underlying 1-categories, defined by restricting the Grothendieck fibra- tion cod∶ 풦ퟚ → 풦. 7.4.11. Lemma. Let 푃∶ ℰ → ℬ be a Grothendieck fibration between 1-categories. Suppose that 풥 is a small category, that 퐷∶ 풥 → ℰ is a diagram, and that (i) the diagram 푃퐷∶ 풥 → ℬ has a limit 퐿 in ℬ with limiting cone 휆∶ Δ퐿 ⇒ 퐷, ∗ (ii) the diagram 휆 퐷∶ 풥 → ℰ퐿 퐷 퐷 풥 ℰ 풥 ⇑휒 ℰ ⇑휆 ∗ 푃 휆 퐷 푃 Δ퐿 = ℬ ℬ constructed by lifting the cone 휆 to a cartesian natural transformation 휒∶ 휆∗퐷 ⇒ 퐷 has a limit 푀 ∗ in the fibre ℰ퐿 with limiting cone 휇∶ Δ푀 ⇒ 휆 퐷, and ∗ ∗ (iii) the limit 휇∶ Δ푀 ⇒ 휆 퐷 is preserved by the re-indexing functor 푢 ∶ ℰ퐿 → ℰ퐵 associated with any arrow 푢∶ 퐵 → 퐿 in ℬ. Then the composite cone 휇 휒 Δ푀 휆∗퐷 퐷 displays 푀 as a limit of the diagram 퐷 in ℰ. Proof. Any arrow 푓∶ 퐸 → 퐸′ in the domain of a Grothendieck fibration 푃∶ ℰ → ℬ factors uniquely up to isomorphism through a “vertical” arrow in the fiber ℰ푃퐸 followed by a “horizontal” cartesian lift of 푃푓 with codomain 퐸′. Given a cone 훼∶ Δ퐸 ⇒ 퐷 with summit 퐸 ∈ ℰ over 퐷, by (i) its image 푃훼∶ Δ푃퐸 ⇒ 푃퐷 factors uniquely through the limit cone 휆∶ Δ퐿 ⇒ 퐷 via a map 푏∶ 푃퐸 → 퐿 ∈ ℬ. By the universal property of the cartesian lift 휒 of 휆 constructed in (ii), it follows that 훼 factors uniquely through 휒 via a natural transformation 훽∶ Δ퐸 ⇒ 휆∗퐷 so that 푃훽 = Δ푏. This arrow factors uniquely up to isomorphism via “vertical” natural transformation 훾∶ Δ퐸 → 훼∗퐷 ≅ 푏∗훾∗퐷 followed by a “horizontal” cartesian lift of ∗ 푏. By (iii), the limit cone 휇∶ Δ푀 ⇒ 휆 퐷 in ℰ퐿 pulls back along 푏 to a limit cone in ℰ푃퐸 through which the pullback of 훽 factors via a map 푘∶ 퐸 → 푏∗푀. Thus, 훽 itself factors uniquely through 휇 via the composite of this map 푘∶ 퐸 → 푏∗푀 with the cartesian arrow 푏∗푀 → 푀 lifting 푏∶ 푃퐸 → 퐿.  7.4.12. Proposition. For any ∞-cosmos 풦, the ∞-cosmos of isofibrations admits sub ∞-cosmoi ℛ 푎푟푖(풦) 풦ퟚ ℒ푎푟푖(풦) whose • objects are isofibrations admitting a right adjoint right inverse or left adjoint right inverse, respectively, and • 0-arrows are commutative squares between the right or left adjoints, respectively, whose mates are isomor- phisms

190 with the ∞-cosmos structures created by the inclusions. We refer to a commutative square between right adjoints whose mate is an isomorphism as an exact square. Proof. The quasi-categorically enriched subcategories ℛ 푎푟푖(풦) and ℒ푎푟푖(풦) are replete in 풦ퟚ, so by Proposition 7.4.6 we need only check that ℛ 푎푟푖(풦) ↪ 풦ퟚ is closed under flexible weighted limits; the argument for ℒ푎푟푖(풦) ↪ 풦ퟚ is dual. We argue separately for cotensors and for the conical limits. If 푝∶ 퐸 ↠ 퐵 is an isofibration admitting a right adjoint right inverse in 풦 and 푈 is a simplicial set, then the cosmological functor (−)푈 ∶ 풦 → 풦 carries this data to a right adjoint right inverse to 푝푈 ∶ 퐸푈 ↠ 퐵푈, which proves that the simplicial cotensor in 풦ퟚ of an object in ℛ 푎푟푖(풦) lies in ℛ 푎푟푖(풦). The limit cone for the cotensor is given by the canonical map of simplicial sets 푈 → 푝푈 푝 Fun(퐸푈 −−→→퐵푈, 퐸 −→→퐵) defined on each vertex 푢∶ ퟙ → 푈 by the commutative square ∗ 퐸푈 푢 퐸 푝푈 푝 (7.4.13) 퐵푈 퐵 푢∗ The maps 푢∗ define the components of a simplicial natural transformation from (−)푈 to the iden- tity functor and thus the mate of this commutative square is an identity, so the limit cone for the 푈-cotensor lies in ℛ 푎푟푖(풦). Finally, to verify the universal property of the cotensor in ℛ 푎푟푖(풦), we must show that for any commutative square whose domain is an isofibration admitting a right adjoint right inverse 퐹 퐸푈 푞 푝푈 퐴 퐵푈 that composes with each of the squares (7.4.13) to an exact square is itself exact. To see this take the mate to define a 1-arrow in Fun(퐴, 퐸푈) ≅ Fun(퐴, 퐸)푈 and note that the hypothesis says that the components of this 1-arrow are invertible for each vertex of 푈. Lemma ?? then tells us that this 1-arrow is invertible as required. Taking 푈 to be a set, the argument just given proves also that ℛ 푎푟푖(풦) is closed in 풦ퟚ under products. It remains only to show that it is closed under the remaining conical limits. By pullback stability of fibered adjunctions, the Grothendieck fibration of 1-categories cod∶ 풦ퟚ → 풦 restricts to cod∶ ℛ 푎푟푖(풦) → 풦, so we may appeal to Lemma 7.4.11 to calculate 1-categorical limit cones in ℛ 푎푟푖(풦) ⊂ 풦ퟚ as composites of cartesian cells with limit cones of fiberwise diagrams. By Corol- lary 7.4.10, these fiberwise limits in 풦/퐵 of diagrams in ℛ 푎푟푖(풦)/퐵 lie in ℛ 푎푟푖(풦)/퐵 ↪ ℛ 푎푟푖(풦). Moreover, these 1-categorical limits are preserved by the simplicial cotensor, which by Proposition A.5.6 implies that their universal property enriches to define conical limits. In this way we see that ℛ 푎푟푖(풦) ↪ 풦ퟚ is closed under flexible weighted limits and thus defines a cosmological embedding, as claimed.  Proposition 7.4.12 allows us to construct further ∞-cosmoi of interest.

191 7.4.14. Proposition. For any ∞-cosmos 풦 and simplicial set 퐽, there exist sub ∞-cosmoi

풦⊤,퐽 풦 풦⊥,퐽 whose • objects are ∞-categories in 풦 that admit all limits of shape 퐽 or all colimits of shape 퐽, respectively, • 0-arrows are the functors that preserve them with the ∞-cosmos structures created by the inclusions. Moreover for each object of 풦⊤,퐽 or 풦⊥,퐽 defined as a flexible weighted limit of some diagram in that ∞-cosmos, its 퐽-shaped limits or colimits arecreated by the 0-arrow legs of the limit or colimits cones respectively.

Proof. First note that the quasi-categorically enriched subcategories 풦⊤,퐽 and 풦⊥,퐽 are replete in 풦, so by Proposition 7.4.6 we need only confirm that the inclusions are closed under flexible weighted limits. We prove this in the case of colimits, the other case being dual. ퟚ For any fixed simplicial set 퐽, there is a cosmological functor 퐹퐽 ∶ 풦 → 풦 defined on objects by mapping an ∞-category 퐴 to the isofibration 퐴퐽▷ ↠ 퐴퐽 in the notation of 4.2.6 and a functor 푓∶ 퐴 → 퐵 to the commutative square

퐽▷ ▷ 푓 ▷ 퐴퐽 퐵퐽

퐴퐽 퐵퐽 푓퐽 By Corollary 4.3.5, 퐴 admits colimits of shape 퐽 if and only if this isofibration admits a left adjoint right inverse, and now it is clear that 푓∶ 퐴 → 퐵 preserves these colimits if and only if the square displayed above is exact. In summary, the quasi-categorically enriched subcategory 풦⊥,퐽 is defined by the pullback

풦⊥,퐽 ℒ푎푟푖(풦) ⌟

퐹퐽 풦 풦ퟚ ퟚ Proposition 7.4.12 proves that ℒ푎푟푖(풦) ↪ 풦 is closed under flexible weighted limits and 퐹퐽 ∶ 풦 → ퟚ 풦 preserves them, so it follows, as in the proof of Lemma 6.1.7, that 풦⊥,퐽 is closed in 풦 under flexible weighted limits. Now Proposition 7.4.6 proves that the inclusion 풦⊥,퐽 ↪ 풦 creates an ∞-cosmos structure.  7.4.15. Proposition. The ∞-cosmos of isofibrations admits sub ∞-cosmoi 풞푎푟푡(풦) 풦ퟚ 푐표풞푎푟푡(풦) whose objects are cartesian or cocartesian fibrations, respectively, and whose 0-arrows are cartesian functors, with the ∞-cosmos structures created by the inclusions. Similarly, for any ∞-category 퐵 in an ∞-cosmos 풦, the sliced ∞-cosmos 풦/퐵 admits sub ∞-cosmoi

풞푎푟푡(풦)/퐵 풦/퐵 푐표풞푎푟푡(풦)/퐵

192 whose objects are cartesian or cocartesian fibrations over 퐵, respectively, and whose 0-arrows are cartesian functors, with the ∞-cosmos structures created by the inclusions. Proof. The quasi-categorically enriched subcategories 풞푎푟푡(풦) and 푐표풞푎푟푡(풦) are replete in 풦ퟚ by Corollary 5.1.17. By Theorems 5.1.11 and 5.1.19, the quasi-categorically enriched category 풞푎푟푡(풦) is defined by the pullback 풞푎푟푡(풦) ℛ 푎푟푖(풦) ⌟

풦ퟚ 퐾 풦ퟚ along the simplicial functor that sends an isofibration 푝∶ 퐸 ↠ 퐵 to the isofibration 푘∶ 퐸ퟚ ↠ Hom퐵(퐵, 푝) defined by Remark 5.1.13. The simplicial functor 퐾 is constructed out of weighted limits and thus preserves all weighted limits, and the replete subcategory inclusion ℛ 푎푟푖(풦) ↪ 풦ퟚ cre- ates flexible weighted limits by Proposition 7.4.12. Hence, as in the proof of Lemma 6.1.7, 풞푎푟푡(풦) is closed in 풦ퟚ under flexible weighted limits, and now Proposition 7.4.6 proves that the inclusion 풞푎푟푡(풦) ↪ 풦ퟚ creates an ∞-cosmos structure. The result for cartesian fibrations with a fixed base can be proven directly by a similar argument ퟚ or deduced by considering 풦/퐵 ⊂ 풦 as the (non-replete!) subcategory whose 푛-arrows have id퐵 as their codomain components.  Exercises. 7.4.i. Exercise. Prove Lemma 7.4.3. 7.4.ii. Exercise. Use an argument similar to that given in the proof of Proposition 7.4.9 to prove that any ∞-cosmos 풦 admits a sub ∞-cosmos 풮푡푎푏(풦) ↪ 풦 whose objects are the stable ∞-categories of Definition 4.4.5 and whose morphisms are the exact functors, which preserve the zero elements and the exact triangles. 7.4.iii. Exercise. Consider a functor between isofibrations 푔 퐸 퐹 푝 푞 ⊢ ⊣ 푟 푠 퐵 in which 푝 admits a right adjoint right inverse 푟 and 푞 admits a right adjoint right inverse 푠. Prove that if 푔푟 ≅ 푠 over 퐵, then the mate of the identity 푞푔 = 푝 is an isomorphism. This proves that the 0-arrows in the ∞-cosmos ℛ 푎푟푖(풦)/퐵 are exact transformations between right adjoint right inverse adjunctions. 7.4.iv. Exercise. Prove that ℒ푎푟푖(풦) ≅ ℛ 푎푟푖(풦co)co. 7.4.v. Exercise. Use Exercise 1.2.iv to show that if ℒ ↪ 풦 is a replete sub ∞-cosmos, then an object 퐴 ∈ ℒ is discrete if and only if 퐴 is discrete as an object of 풦. 7.5. Weak 2-limits revisited To wrap up this chapter on weighted limits, we briefly switch the base of enrichment from sim- plicial sets to categories and reconsider the weak 2-limits introduced in Chapter 3. We give a general

193 definition that unifies the weak 2-limits introduced in special cases there and prove their essential uniqueness in a uniform manner. Before turning our attention to weak 2-limits we describe the explicit construction of the weighted limit of any 풞푎푡-valued diagram. Let 풜 be a small 2-category and consider any pair of 2-functors 퐹, 푊∶ 풜 ⇉ 풞푎푡, the first regarded as the diagram and the second as the weight. 7.5.1. Lemma (on the construction of weighted limits in 풞푎푡). For any diagram 퐹∶ 풜 → 풞푎푡 and weight 푊∶ 풜 → 풞푎푡, the weighted limit lim푊 퐹 ∈ 풞푎푡 exists, defined to be the category whose • objects are 2-natural transformations 훼∶ 푊 ⇒ 퐹 and • morphisms are modifications.

Proof. By Definition 7.1.7, the 푊-weighted limit of 퐹 is a category lim푊 퐹 ∈ 풞푎푡 characterized by a natural isomorphism of categories 풜 풞푎푡(푋, lim푊 퐹) ≅ 풞푎푡 (푊, 풞푎푡(푋, 퐹−)) for any category 푋. The 2-functor 풞푎푡(ퟙ, −)∶ 풞푎푡 → 풞푎푡 is the identity, so taking 푋 = ퟙ this tells us that 풜 lim푊 퐹 ≅ 풞푎푡 (푊, 퐹), the category of 2-natural transformations and modifications from 푊 to 퐹.  7.5.2. Definition (weak 2-limits in a 2-category). Consider a 2-functor 퐹∶ 풜 → 풞 indexed by a small 2-category 풜 and a weight 푊∶ 풜 → 풞푎푡.A 푊-cone with summit 푃 ∈ 풞

푊 휆 풞(푃, 퐹−) displays 푃 as a weak 2-limit of 퐹 if and only if for all 푋 ∈ 풞 the functor induced by composition with 휆 휆∗ 풞(푋, 푃) lim푊 풞(푋, 퐹−) to the 푊-weighted limit of the diagram 풞(푋, 퐹−)∶ 풜 → 풞푎푡 is smothering, in the sense of Definition 3.1.2. The weak universal property encoded by a smothering functor is sufficiently strong to characterize the limit objects up to equivalence in the ambient 2-category: 7.5.3. Proposition (uniqueness of weak 2-limits). For any fixed diagram and fixed weight, any pair of weak 2-limits are equivalent via an equivalence that commutes with the legs of the limit cones. Proof. If ′ 푊 휆 풞(푃, 퐹−) and 푊 휆 풞(푃′, 퐹−) both define weak 2-limit 푊-weighted cones over a 2-functor 퐹∶ 풜 → 풞, then for any 푋 ∈ 풞, we have a pair of smothering functors ′ 휆∗ 휆∗ ′ 풞(푋, 푃) lim푊 풞(푋, 퐹−) 풞(푋, 푃 )

Taking 푋 = 푃, the identity id푃 ∈ 풞(푃, 푃) maps to the cone 휆 ∈ lim푊 풞(푃, 퐹−), which then lifts along the right-hand smothering functor to define a 1-cell 푢∶ 푃 → 푃′; a 1-cell 푣∶ 푃′ → 푃 is defined ′ ′ similarly as the lift of 휆 ∈ lim푊 풞(푃 , 퐹−) along 휆∗. By construction, both 푢 and 푣 commute with the legs of the limit cones 휆 and 휆′.

194 Now 휆∗ carries the composite 푣푢 ∈ 풞(푃, 푃) to the cone 푊 ⇒ 풞(푃, 퐹−) whose component at 푎 ∈ 풜 is the composite 휆 푃 푢 푃′ 푣 푃 푎 퐹푎 ′ 휆푎 휆푎 which equals simply the cone leg 휆푎. Thus id푃 and 푣푢 lie in the same fiber of the smothering functor 휆∗ and so by Lemma 3.1.3 must be isomorphic via an isomorphism that whiskers to identities along ′ the legs of the limit cone. Similarly, 푢푣 ≅ id푃′, proving that 푃 ≃ 푃 as claimed.  Exercises. 7.5.i. Exercise. An inserter is a limit of a diagram indexed by the parallel pair category • ⇉ • weighted by the weight 0 ퟙ ퟚ ∈ 풞푎푡 1 Prove that the homotopy 2-category of an ∞-cosmos has weak inserters of any parallel pair of functors 푓, 푔∶ 퐴 ⇉ 퐵 constructed by the pullback Ins(푓, 푔) 퐵ퟚ ⌟ (푝1,푝0) 퐴 퐵 × 퐵 (푔,푓)

195

CHAPTER 8

Homotopy coherent adjunctions and monads

Bar and cobar resolutions are ubiquitous in modern homotopy theory, defining for instances var- ious completions of spaces and spectra [11] and free resolutions such as given in Definition 6.2.1. For- mally, these bar or cobar constructions are associated to the monad or comonad of an adjunction 푓

퐴 ⊥ 퐵 휂∶ id퐵 ⇒ 푢푓 , 휖∶ 푓푢 ⇒ id퐴 푢 between ∞-categories. The monad and comonad resolutions associated to an adjunction are dual. By the triangle equalities, the unit and counit maps give rise to a coaugmented cosimplicial object in hFun(퐵, 퐵), the “monad resolution” 휂푢푓 휂 id퐵 푢푓 푢휖푓 푢푓푢푓 푢푓푢푓푢푓 ⋯ (8.0.1) 푢푓휂 an augmented simplicial object in hFun(퐴, 퐴), the “comonad resolution” 휖푓푢

id퐴 휖 푓푢 푓휂푢 푓푢푓푢 푓푢푓푢푓푢 ⋯ (8.0.2) 푓푢휖 and augmented simplicial objects in hFun(퐴, 퐵) and hFun(퐵, 퐴) admitting forwards and backwards contracting homotopies 휂푢푓푢 휂푢 푢휖푓푢 푢 푢푓푢 푢푓푢푓푢 푢푓푢푓푢푓푢 ⋯ 푢휖 푢푓휂푢 푢푓푢휖 (8.0.3) 휖푓푢푓 휖푓 푓휂푢푓 푓 푓푢푓 푓푢푓푢푓 푓푢푓푢푓푢푓 ⋯ 푓휂 푓푢휖푓 푓푢푓휂 A classical categorical observation tells a richer story, relating the four resolutions displayed above. There is a strict 2-category 풜푑푗 containing two objects and an adjunction between them — the free 2-category containing an adjunction — and collectively these four diagrams display the image of a 2-functor whose domain is 풜푑푗 [53]. More precisely, each diagram is the image of one of the four hom- categories of this two object 2-category: a 2-functor 풜푑푗 → 픥풦 extending the adjunction 푓 ⊣ 푢 is defined by a pair of objects 퐴, 퐵 ∈ 픥풦, the monad and comonad resolutions in the functor categories hFun(퐵, 퐵) and hFun(퐴, 퐴), and the dual pair of split augmented simplicial objects in hFun(퐴, 퐵) and hFun(퐵, 퐴). The fact that these resolutions assemble into a 2-functor says that, e.g., that the image of

197 the comonad resolution under 푢 is an augmented simplicial object in hFun(퐴, 퐵) that admits “extra degeneracies.” In this chapter, we will prove that any adjunction in the homotopy 2-category of an ∞-cosmos — that is, any adjunction between ∞-categories — can be lifted to a homotopy coherent adjunction in the ∞-cosmos. The data of a homotopy coherent adjunction is indexed by a simplicial computad that is uncannily closely related to the free adjunction 풜푑푗. In fact, we define the free homotopy coherent adjunction to be the 2-category 풜푑푗 regarded as a simplicial category by identifying its hom-categories with their nerves. Section 8.1 is spent justifying this definition by introducing a graphical calculus that allows us to precisely understand homotopy coherent adjunction data and prove that 풜푑푗 is a simplicial computad. In a homotopy coherent adjunction, the resolutions (8.0.1), (8.0.2), and (8.0.3) lift to homotopy coherent diagrams op 횫+ → Fun(퐵, 퐵) , 횫+ → Fun(퐴, 퐴) , 횫⊤ → Fun(퐴, 퐵) , 횫⊥ → Fun(퐵, 퐴) indexed by the 1-categories introduced in Definition 2.3.9 and valued in the functor quasi-categories of the ∞-cosmos. In the case of the split augmented simplicial objects, the contracting homotopies, also called “splittings” or “extra degeneracies,” are given by the bottom and top 휂’s respectively. Applying Proposition 2.3.11, it follows that the geometric realization or homotopy invariant realization of the simplicial objects spanned by maps in the image of 푓푢푓 and 푢푓푢 are simplicial homotopy equivalent to 푓 and 푢. Dual results apply to the (homotopy invariant) totalization of the cosimplicial object spanned by these same objects; in this case the “extra codegeneracies” are given by the top and bottom 휖’s. The main theorem of this chapter proves that homotopy coherent adjunctions are abundant: in- deed any adjunction of ∞-categories extends to a homotopy coherent adjunction. Homotopy coherent adjunctions extending a subcomputad of generating adjunction data are not unique on the nose. How- ever, whenever the subcomputad of generating adjunction is “parental” — loosely, generating from the universal property of either the right adjoint or the left adjoint exclusively — then extensions to a full homotopy coherent adjunction define the vertices of a contractible Kan complex, proving appropri- ately generated extensions are “homotopically unique.” All of the results in this chapter apply to any adjunction defined in (the homotopy 2-category of) a quasi-categorically enriched category 풦. Yet since we’ll typically apply these results to ∞-cosmoi, we retain the usual notation Fun(퐴, 퐵) for the hom quasi-categories of 풦 to trigger the correct intuition in these contexts. 8.1. The free homotopy coherent adjunction In this section, we present a strict 2-category 풜푑푗 introduced by Schanuel and Street under the name “the free adjunction” [53], which has the universal property that it is the free 2-category contain- ing an adjunction. Immediately after introducing this classical object, we take the unorthodox step of reconsidering it as a simplicial category via a mechanism that we shall describe. We develop a new presentation of 풜푑푗 by introducing a graphical calculus that allows us to prove the surprising fact that this simplicial category is a simplicial computad. This justifies referring to it as the free homotopy coherent adjunction. The remainder of this chapter will explore the consequences of this definition.

198 8.1.1. Definition (the free adjunction). Let 풜푑푗 denote the 2-category with two objects + and − and the four hom-categories op 풜푑푗(+, +) ≔ 횫+ , 풜푑푗(−, −) ≔ 횫+ , 풜푑푗(−, +) ≔ 횫⊤ , 풜푑푗(+, −) ≔ 횫⊥ displayed in the following cartoon: op 횫⊥≅횫⊤ op 횫+ + ⟂ − 횫+ op 횫⊤≅횫⊥

Here 횫⊤, 횫⊥ ⊂ 횫 ⊂ 횫+ are the subcategories of order-preserving maps that preserve the top or bottom elements, respectively, in each ordinal, as described in Definition 2.3.9. Their intersection op 횫⊥,⊤ ≔ 횫⊥ ∩ 횫⊤ ≅ 횫+ is the subcategory of order-preserving maps that preserve both the top and bottom elements in each op ordinal. This identifies 횫+ with the subcategory 횫⊥,⊤ ⊂ 횫+ of “intervals,” as is elaborated upon in Digression 8.1.8. op The horizontal composition maps in 풜푑푗 are defined in 풜푑푗(−, −) ≅ 풜푑푗(+, +) ≅ 횫+ by the ordinal sum operation: ⊕ 횫+ × 횫+ 횫+ [푛], [푚] [푛 + 푚 + 1] 훼(푖) 푖 ≤ 푛 훼,훽 ↦ 훼⊕훽 훼 ⊕ 훽(푖) ≔  훽(푖 − 푛 − 1) + 푛′ + 1 푖 > 푛 [푛′], [푚′] [푛′ + 푚′ + 1]

The object [−1] ∈ 횫+ serves as the identity for ordinal sum, and thus represents the identity 1-cells on − and + in 풜푑푗. Ordinal sum restricts to the subcategories 횫⊥, 횫⊤ ⊂ 횫+ to give bifunctors ⊕ ⊕ 횫+ × 횫⊤ 횫⊤ 횫⊥ × 횫+ 횫⊥ ≅ ≅ ≅ ≅ 풜푑푗(+, +) × 풜푑푗(−, +) ∘ 풜푑푗(−, +) 풜푑푗(+, −) × 풜푑푗(+, +) ∘ 풜푑푗(+, −) defining these horizontal composition operations that we’ll later come to think of as “actions” of 풜푑푗(+, +) on the left and right of 풜푑푗(−, +) and 풜푑푗(+, −). The opposites of these functors defines the action of 풜푑푗(−, −) on the right and left of 풜푑푗(−, +) and 풜푑푗(+, −). 8.1.2. Lemma. The 2-category 풜푑푗 contains a distinguished adjunction [0] + ⟂ − [0] op with unit !∶ [−1] → [0] ∈ 횫+ ≅ 풜푑푗(+, +) and counit given by the same map in 횫+ ≅ 풜푑푗(−, −). Proof. We must verify the triangle equalities in 풜푑푗(−, +) and 풜푑푗(+, −); these categories are opposites and the calculation in each case is dual, so we focus on the case of 풜푑푗(−, +). The whiskered composite of the unit !∶ [−1] → [0] ∈ 풜푑푗(+, +) with the right adjoint [0] ∈ 풜푑푗(−, +) is the map 훿0 ∶ [0] → [1] ∈ 풜푑푗(−, +), which is indeed top-element preserving. The whiskered composite of the counit in 풜푑푗(−, −) with the right adjoint in 풜푑푗(−, +) is defined by whiskering the opposite map

199 !∶ [−1] → [0] ∈ 풜푑푗(+, +) ≅ 풜푑푗(−, −)op with [0] ∈ 풜푑푗(+, −) ≅ 풜푑푗(−, +)op. This composite is the map 훿1 ∶ [0] → [1] ∈ 풜푑푗(+, −) ≅ 풜푑푗(−, +)op, which is indeed top-element preserving. Under the isomorphism 풜푑푗(−, +) ≅ 풜푑푗(+, −)op, this corresponds to the map 휎0 ∶ [1] → [0] ∈ 풜푑푗(−, +). Now the composite 휎0 ⋅ 훿0 ∶ [0] → [0] ∈ 풜푑푗(−, +) is the identity as required.  The 2-categorical universal property of 풜푑푗 — that 2-functors 풜푑푗 → 풞 correspond to adjunc- tions in the 2-category 풞 — is stated without proof in [53]. We will take a roundabout route to verifying it in Proposition 8.1.13 that uses the simplicial computads of Chapter 6. Throughout this text we have found it convenient to identify 1-categories with their nerves, which define simplicial sets. The 1-categories can be characterized as those simplicial sets that admit unique extensions along any inner horn inclusion or spine inclusion, or as those 2-coskeletal simplicial sets that admit unique extensions along inner horn or spine inclusions in dimensions 2 and 3; see Remark 1.1.5. Similarly, in developing homotopy coherent category theory it will be convenient to identity 2-categories with the simplicial categories obtained by identifying each of the hom-categories with its nerve — a categorification of the previous construction. As a corollary of the characterization of nerves of 1-categories, we obtain a characterization of the simplicially enriched categories that arise in this way. 8.1.3. Lemma (2-categories as simplicial categories). A 2-category 풜 may be regarded as a quasi-categorically enriched category whose • objects are the objects of 풜 • 0-arrows in 풜(푥, 푦) are the 1-cells of 풜 from 푥 to 푦 푓 • 1-arrows in 풜(푥, 푦) from 푓 to 푔 are the 2-cells of 풜 of the form 푥 ⇓ 푦 푔 • and in which there exists a 2-arrow 휎 in 풜(푥, 푦) whose faces 휎푖 ≔ 휎 ⋅ 훿푖 are 1-arrows in 풜(푥, 푦) 푓 푓 푔 2 휎2 휎0 ⇓휎 푔 ⇓휎1 휎 ↭ 푥 푦 = 푥 푦 ⇓휎0 푓 ℎ ℎ 휎1 ℎ if and only if 휎1 is the vertical composite 휎0 ⋅ 휎2 with the higher-dimensional arrows determined by the property that each of the hom-spaces is 2-coskeletal. Conversely, a simplicially-enriched category 풜 is isomorphic to a 2-category if and only if each of its hom- spaces are 2-coskeletal simplicial sets that admit unique extensions along the spine inclusions in dimensions 2 and 3.  We now give the first of two presentations of the free homotopy coherent adjunction. Since we use the same notation for 1-categories and their nerves, we also adopt the same notation for a 2-category and its corresponding simplicial category under the embedding of Lemma 8.1.3. 8.1.4. Definition (the free homotopy coherent adjunction, as a 2-category). The free homotopy co- herent adjunction to be the free adjunction 풜푑푗, regarded as a simplicial category. Explicitly 풜푑푗 has two objects + and − and the four hom quasi-categories defined by op 풜푑푗(+, +) ≔ 횫+ , 풜푑푗(−, −) ≔ 횫+ , 풜푑푗(−, +) ≔ 횫⊤ , 풜푑푗(+, −) ≔ 횫⊥ with the composition maps defined in 8.1.1. 200 This presentation of the free homotopy coherent adjunction is not particularly enlightening. Via Lemma 8.1.3 and Definition 8.1.1 we could in principle describe the 푛-arrows in 풜푑푗 but it’s tricky to get a real feel for them. We will now reintroduce this simplicial category in a different guise that achieves just this. Before doing so, note: 8.1.5. Observation. To specify a simplicial category, thought of as an identity-on-objects simplicial object in 풞푎푡, it suffices to specify: • a set of objects • for each 푛 ≥ 0, a set of 푛-arrows whose domains and codomains are among the specified object set, • a right action of the morphisms in 횫 on this graded set of arrows that preserves domains and codomains, • a “horizontal” composition operation for the 푛-arrows with compatible (co)domains that pre- serves the simplicial action. We will now reintroduce 풜푑푗 following this outline, by exhibiting its graded set of 푛-arrows be- tween the objects + and −. 8.1.6. Definition (strictly undulating squiggles). Define a graded set of arrows between objects − and + whose 푛-arrows are strictly undulating squiggles on 푛 + 1 lines, such as displayed below in the case 푛 = 5: − 0 1 1 2 2 3 3 4 4 5 5 + +,2,3,1,4,2,+,−,4,−,3,2,+,− The lines are labeled 0, 1, … , 푛 and the gaps between them are labeled −, 1, … , 푛, +. A squiggle must start, on the right-hand side, and end, on the left-hand side, in either the gap − or +. The right-hand starting gap becomes the domain of the squiggle and the left-hand ending gap becomes its codomain, these conventions chosen to follow the usual composition order. Each turning point of the squiggle must lie entirely within a single gap. The qualifier “strict undulation” refers to the requirement that adjacent turning points should be distinct and that they should oscillate up and down as we proceed from right to left. Formally, the data of a strictly undulating squiggle on 푛 + 1 lines can be encoded by a string 푎 = (푎0, 푎1, … , 푎푟−1, 푎푟) of letters in the set {−, 1, 2, … , 푛, +} corresponding to the gaps in which each successive turning point occurs, whose width is the integer 푤(푎) ≔ 푟, subject to the following condi- tions:

(i) The domain 푎푤(푎) and codomain 푎0 of 푎 are both in {−, +}. (ii) If 푎0 = − then for all 0 ≤ 푖 < 푤(푎) we have 푎푖 < 푎푖+1 whenever 푖 is even and 푎푖 > 푎푖+1 whenever 푖 is odd, and if 푎0 = + then for all 0 ≤ 푖 < 푤(푎) we have 푎푖 > 푎푖+1 whenever 푖 is even and 푎푖 < 푎푖+1 whenever 푖 is odd. 8.1.7. Lemma. The graded set of strictly undulating squiggles admits a right action of the morphisms in 횫 that preserves domains and codomains and a “horizontal” composition operation for arrows in the same degree with

201 compatible (co)domains that preserves the simplicial action. Relative to the horizontal composition, an 푛-arrow is atomic if and only if there are no instances of + or − occurring in its interior. While the faces of an atomic arrow need not be atomic, the degeneracies of an atomic arrow always are. Proof. The horizontal composition of 푛-arrows is given by horizontal juxtaposition of strictly undulating squiggles on 푛 + 1 lines, which produces a well-formed squiggle just when the codomain of the right-hand squiggle matches the domain of the left-hand squiggle: − − − 0 0 0 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 ∘ 3 = 3 4 4 4 4 4 4 + + + +,3,4,1,3,2,+ +,2,3,1,3,− +,3,4,1,3,2,+,2,3,1,3,− This operation is clearly associative. Moreover, any strictly undulating squiggle admits a unique de- composition into squiggles that do not contain + or − in their interior sequences of gaps, which proves that any squiggle 푎 = (푎0, 푎1, … , 푎푟−1, 푎푟) with the property that 푎1, … , 푎푟−1 ∈ {1, … , 푛} is atomic. The right action of the simplicial operators on strictly undulating squiggles is best described in two cases. If 훼∶ [푚] ↠ [푛] is an epimorphism, then a strictly undulating squiggle on lines 0, … , 푛 becomes a strictly undulating squiggle on lines 0, … , 푚 by replacing each line labeled 푖 ∈ [푛] with lines labeled by each element of the fiber 훼−1(푖) and then “pulling these lines apart” to create new gaps: − 0 훼 1 [5] [2] − 1 0 2 1 2 1 3 0, 1 0 2 3 푎 ≔ 2 ⇝ 푎 ⋅ 훼 ≔ 4 + 4 2, 3, 4 1 5 +,1,+,2,+,−,1,− 5 + 5 2 +,2,+,5,+,−,2,− Note that “pulling apart lines” does not create instances of + or − in the interior sequence of gaps, so the action by degeneracy operators preserves atomic arrows. If 훼∶ [푚] ↣ [푛] is a monomorphism, then a strictly undulating squiggle on lines 0, … , 푛 becomes a strictly undulating squiggle on lines 0, … , 푚 by removing the lines labelled by elements 푖 ∈ [푛] not in the image of 훼 and renumbering the lines that are in the image in sequence. The original squiggle will still undulate between the new lines, but may not do so “strictly” — it is possible for the squiggle to turn around mutliple times in the same gap — but this is easily corrected by “pulling the string

202 taut”: − 0 훼 1 [2] [5] 1 2 2 3 0 1 3 푎 ≔ 4 4 1 4 5 5 + 2 5 +,2,3,1,4,2,+,−,5,2,4,3,+,− − − 0 0 1 1 1 1 2 2 ⇝ 푎 ⋅ 훼 ≔ 2 ≔ 2 + + +,1,1,−,1,1,+,−,2,1,1,1,+,− +,−,+,−,2,1,+,− Note that in both of these cases, the actions by epimorphisms and monomorphisms preserve domains and codomains of squiggles and respect horizontal concatenations. Now in general, a simplicial operator 훼∶ [푚] → [푛] can be factored uniquely in 횫 as an epimor- phism followed by a monomorphism, so it acts on a strictly undulating squiggle on 푛 + 1 lines by first “removing lines and pulling taut” and then by “duplicating lines and pulling apart.”  We leave the formalization of these geometric descriptions of the actions of the simplicial opera- tors on strictly undulating squiggles presented as sequences satisfying the axioms of Definition 8.1.6(i) and (ii) to Exercise 8.1.iii, with the hint that a combinatorial description of this action can easily be defined using the “interval representation” of 횫op. 8.1.8. Digression (the interval representation). There is a faithful interval representation of the cat- op egory 횫+ as a subcategory of 횫 in the form of a functor op ir 횫+ 횫 [푛 − 1] [푛] 훿푖 ↦ 휎푖 [푛] [푛 + 1] 휎푖 ↦ 훿푖+1 [푛 + 1] [푛 + 2] whose image is the subcategory 횫⊥,⊤ ≔ 횫⊥ ∩ 횫⊤ ⊂ 횫 of simplicial operators that preserve both the top and bottom elements in each ordinal. If we think of the elements of [푛] as labelling the lines in the graphical representation of an 푛-arrow, then the elements of ir[푛] ≔ [푛 + 1] label the gaps, with the bottom element 0 relabeled as − and the top element 푛 + 1 relabeled as +. If the elementary face operators 훿푖 and elementary degen- eracy operators 휎푖 act by removing and duplicating the lines in a squiggle diagram, then the functors ir 훿푖 and ir 휎푖 describe the corresponding actions on the gaps. The graphical description of its 푛-arrows of 풜푑푗 clearly exhibits a simplicial computad structure on a simplicial category we now more formally introduce following the outline of Observation 8.1.5: 8.1.9. Definition (the free homotopy coherent adjunction, as a simplicial computad). The free ho- motopy coherent adjunction 풜푑푗 is the simplicial computad with 203 • two objects + and −, • whose 푛-arrows are strictly undulating squiggles on 푛 + 1 lines of Definition 8.1.6, oriented from right to left, with the right-hand starting position defining the domain object and the left-hand ending position defining the codomain object, • with the simplicial operators acting as described in Lemma 8.1.7, and • with horizontal composition defined by horizontal juxtaposition of squiggle diagrams, which means that the atomic 푛-arrows are those squiggles each of whose interior undulations occurs between the lines 0 and 푛. We now reconcile our two descriptions of the free homotopy coherent adjunction, comparing Definition 8.1.9 with Definition 8.1.4. Zaganidis discovered a similar proof in his PhD thesis [65, §2.3.3] that improves upon some aspects of the authors’ original argument. 8.1.10. Proposition. The simplicial computad 풜푑푗 is isomorphic to the 2-category 풜푑푗. Proof. We explain how the 푛-arrows in each of the four homs of the simplicial category 풜푑푗 cor- respond to sequences of 푛 composable arrows in the corresponding hom-categories 횫+, 횫⊥, 횫⊤, and 횫⊥,⊤ of the 2-category 풜푑푗. Here it is most convenient to think of 횫⊥, 횫⊤, and 횫⊥,⊤ as subcategories of 횫, the latter via the interval representation of Digression 8.1.8. To easily visualize the isomorphism, shade the region under a strictly undulating squiggle on 푛+1 lines to define a topological space 푆 embedded in the plane. In the case of a squiggle from − to −, this shaded region includes both the left and right boundary regions of the squiggle diagram. For each 푖 ∈ [푛], the connected components of the intersection 푆푖 of the shaded region with the region above the labelled 푖 define a finite linearly ordered set, ordered from left to right by the order in which the intervals defined as the intersection of each component with the line 푖 appear on that line. These ordinals define the objects in the composable sequence of arrows in 횫+ or one of its subcategory 횫⊥,⊤, 횫⊥, or 횫⊤ corresponding to the squiggle diagram.¹ Formally, the ordinal representing the 푖th object in the sequence of 푛 arrows counts the number of “maximal convex subsequences” of the sequence 푎 = (푎0, … , 푎푤(푎)) that encodes the squiggle; a maximal convex subsequence is a maximal sequence of consecutive entries 푎푗 satisfying the condition 푎푗 ≤ 푖. The intersections of the shaded region 푆 with the regions above the lines 푖 = 0, … , 푛 define a nested sequence of subspaces 푆0 ↪ 푆1 ↪ ⋯ ↪ 푆푛−1 ↪ 푆푛. Taking path components yields a composable sequence

휋0푆0 → 휋0푆1 → ⋯ → 휋0푆푛−1 → 휋0푆푛.

As explained above, each of the sets 휋0푆푖 is linearly ordered, from left to right, by the positions in which each component of 푆푖 intersects the line labeled 푖 and the functions induced by the inclusions are order-preserving. This defines the composable sequence of arrows in 횫+, 횫⊥, 횫⊤, or 횫⊥,⊤ corre- sponding to a strictly undulating squiggle on 푛 + 1-lines. For instance, suppose the shaded region under the squiggle diagram intersects the line labelled 푖 in 푚 + 1 components, corresponding to the ordinal [푚] and similarly suppose the shaded region

¹In the case of a squiggle from + to +, it is possible that the squiggle diagram does not intersect the line labeled 0, in which case the subspace 푆0 is empty; if this is the case, the squiggle may also fail to cross the next several lines. In each of the other three hom-categories, the ordinals defined by taking the connected components of the intersection of each line with the shaded region are non-empty because either the left or right boundary of the squiggle diagram is also shaded.

204 under the squiggle diagram intersects the line labelled 푖+1 in 푘+1 components, corresponding to the ordinal [푘]. We identify the corresponding simplicial operator 훼∶ [푚] → [푘] by taking the fiber over 푡 ∈ [푘] to be the subset of shaded regions 푠 ∈ [푚] above the 푖th line that belong to the same connected component as 푡 in the shaded region above the line 푖 + 1. Formally, the element 푡 ∈ [푘] represents a maximal convex subsequence of 푎 = (푎0, … , 푎푤(푎)) comprised of those 푎푗 ≤ 푖 + 1. This convex subsequence is partitioned into possibly smaller maximally convex subsequences satisfying the more restrictive condition 푎푗 ≤ 푖 and the elements 푠 ∈ [푚] indexing these subsequences form the fiber of 훼 over 푡. Note that if the domain of the squiggle is −, then the top element of each ordinal is necessarily preserved because the right-hand boundary of the squiggle diagram defines a connected shaded region; similarly, if the codomain of the squiggle is −, then the bottom element of each ordinal is preserved. The constructs a map from the simplicial computad 풜푑푗 of Definition 8.1.9 to the 2-category 풜푑푗 of Definition 8.1.4. The converse map can be constructed by iterating a splicing operation that we now introduce. This splicing operation proves that each of the hom-spaces of the simplicial computad 풜푑푗 satisfies a “strict Segal condition” that says that the set of 푛 + 푚-arrows is isomorphic to the set of pairs of 푛-arrows and 푚-arrows whose last and first vertices coincide. In more detail, if 푎 and 푏 are strictly undulating squiggles on 푛 + 1 and 푚 + 1 lines that lie in the same hom-space with the property that the 푛th vertex of 푎 coincides with the 0th vertex of 푏, then these squiggle diagrams can be uniquely spliced to form a strictly undulating squiggle 푐 on 푛 + 푚 + 1 lines whose face spanned by the vertices 0, … , 푛 is 푎 and whose face spanned by the vertices 푛, … , 푚 + 푛 is 푏. − 0 1 1 − 2 0 2 1 푎 ≔ 3 1 3 2 + 2 3 −,+,1,3,−,2,1,+,2,+ 3 4 − 4 0 ⇝ 푐 ≔ 5 1 5 1 6 2 6 2 7 3 7 푏 ≔ 3 + 4 4 −,5,4,6,1,3,−,2,1,7,4,+,5,6,2,+ + −,2,1,3,−,4,1,+,2,3,−,+ This splicing operation is defined graphically by separating the squiggle diagrams for 푎 and for 푏 into an ordered sequence of components by cutting the squiggle 푎 each time it enters or leaves the gap marked “+,” removing the dotted arcs at the bottom of the squiggle diagram, and cutting the squiggle 푏 each time it enters or leaves the gap marked “−,” removing the dotted arcs at the top of the depicted squiggle diagram. This requires two cuts for each occurrence of “+” or “−” in the interior of 푎 or 푏 respectively and one cut for each occurrence of “+” or “−” as the source or target of 푎 or 푏 respectively. The condition that the 푛th vertex of 푎 coincides with the 0th vertex of 푏 ensures that the numbers of cuts made to 푎 (the number of times 푎 intersects the 푛th line) and 푏 (the number of times 푏 intersects the 0th line) are the same. Now form 푐 by sewing together these squiggle components in order to form the crossings of the line labeled “푛.” By iterating the splicing operation, we can construct a strictly undulating squiggle on 푛 + 1 lines from a sequence of 푛 composable arrows once we know how to encode a single 1-arrow of 풜푑푗 as a strictly undulating squiggle on 2 lines. We give full details in the case of a 1-arrow from + to +.A

205 simplicial operator 훼∶ [푚] → [푘] defines a strictly undulating squiggle on 2 lines from + to + by a sequence 푎 with “−” occurring 푚 + 1 times (each occurrence of which corresponds to an intersection of the shaded region and the 0th line) and “+” occurring 푘 + 2 times (each consecutive pair bounding an intersection of the shaded region and the 1st line). The strings between each consecutive pair of +s correspond to the elements 푖 ∈ [푘]. If the fiber over 푖 is empty, the sequence is “+1+.” If the fiber contains a single element, the sequence is “+ − 1 − +,” and if the fiber contains 푠 > 1 elements, the sequence is “+ − (1−)푠−1+.”  Note that the planar orientation of a strictly undulating squiggle diagram makes the numerical la- bels for the lines, gaps, and the sequence of undulation points redundant. Going forward, we typically omit them. 8.1.11. Example (adjunction data in 풜푑푗). For later use we name some of the low-dimensional non- degenerate atomic arrows in 풜푑푗. There exist just two atomic 0-arrows, which we call 푓 ≔ and 푢 ≔ . Since 풜푑푗 is a simplicial computad, all of its other 0-arrows may be obtained as a unique alternating composite of these two, for example: 푓푢푓푢푓 ≔ . There are exactly two non-degenerate atomic 1-arrows in 풜푑푗, these being: 휂 ≔ and 휖 ≔ . Again, since 풜푑푗 is a simplicial computad, all of its other 1-arrows are uniquely expressible as hori- zontal composites of the 1-arrows 휂 and 휖 with degenerated 1-arrows obtained from 푓 and 푢, such as for example

푢푓휂 ≔ and 휖휖 ≔ .

There exist two non-degenerate atomic 2-arrows with minimal width, whose faces are easily com- puted:

훼 ≔ 훼 ⋅ 훿2 ≔ 푓휂 ≔ 훼 ⋅ 훿1 ≔ 푓 ≔ 훼 ⋅ 훿0 ≔ 휖푓 ≔

훽 ≔ 훽 ⋅ 훿2 ≔ 휂푢 ≔ 훽 ⋅ 훿1 ≔ 푢 ≔ 훽 ⋅ 훿0 ≔ 푢휖 ≔

For each width 푤 ≥ 3, there exist exactly two non-degenerate atomic 2-arrows, the description of which we leave to Exercise 8.1.v. There are countably many atomic non-degenerate 푛-arrows in each dimension 푛 ≥ 2, which we shall partially enumerate in the proof of Proposition 8.2.11. In the “homotopy 2-category” of the simplicial category 풜푑푗, which is isomorphic to the 2-category 풜푑푗, the atomic 2-arrows 훼 and 훽 witness the triangle equalities, proving that this 2-category contains an adjunction (푓, 푢, 휂∶ id+ ⇒ 푢푓, 휖∶ 푓푢 ⇒ id−).

206 8.1.12. Lemma. The simplicial computad 풜푑푗 contains a distinguished adjunction 푓 + ⟂ − 푢 with unit 휂∶ id+ → 푢푓 ∈ 풜푑푗(+, +) and counit 휖∶ 푓푢 → id− ∈ 풜푑푗(−, −). Proof. By Proposition 8.1.10 this follows from Lemma 8.1.2 though the reader may prefer to prove this result directly.  We can now prove the universal property of the free adjunction 풜푑푗 claimed by Schanuel and Street. 8.1.13. Proposition. For any 2-category 풞, 2-functors 풜푑푗 → 풞 correspond to adjunctions in the 2-category 풞. Proof. Lemma 8.1.2 identifies an adjunction in 풜푑푗 that we denote in the notation of Lemma 8.1.12 by (푓, 푢, 휂∶ id+ ⇒ 푢푓, 휖∶ 푓푢 ⇒ id−). A 2-functor 풜푑푗 → 풞 carries this data to an adjunction in the 2-category 풞. Conversely, we suppose that 풞 is equipped with an adjunction (푓, 푢, 휂∶ id퐵 ⇒ 푢푓, 휖∶ 푓푢 ⇒ id퐴). To construct a 2-functor 풜푑푗 → 풞 it suffices, because the embedding 2-풞푎푡 ↪ 풮풮푒푡-풞푎푡 is fully faithful, to consider both 2-categories as simplicial categories via Lemma 8.1.3 and instead define a simplicial functor 풜푑푗 → 풞; see Exercise 8.1.i. Now since 풜푑푗 is a simplicial computad and the homs of 풞 are 2-coskeletal, it suffices to define a simplicial functor sk2 풜푑푗 → 풞 from the subcomputad of 풜푑푗 generated by its atomic 0-, 1-, and 2-arrows. This functor is given by the mapping • + ↦ 퐵 and − ↦ 퐴 on objects, • 푓 ↦ 푓 and 푢 ↦ 푢 on atomic 0-arrows, • 휂 ↦ 휂 and 휖 ↦ 휖 on atomic non-degenerate 1-arrows, and for each of the atomic non-degenerate 2-arrows of Exercise 8.1.v we must, by Lemma 8.1.3, verify that the 2-cells in 풞 defined by their boundaries compose vertically as indicated. For 훼 and 훽, the unique non-degenerate atomic 2-arrows of minimal width 3, the required com- position relations are 휖푓 ⋅ 푓휂 = id푓 and 푢휖 ⋅ 휂푢 = id푢, which hold by the triangle equalities for the adjunction in 풞. For the atomic 2-arrows of odd width 2푟 + 1, the required composition relations are the “higher order triangle equalities” 푟 푟 푟 푟 휖 푓 ⋅ 푓휂 = id푓 and 푢휖 ⋅ 휂 푢 = id푢, which can easily be seen to hold by depicting the left-hand expressions as pasting diagrams.² For the atomic 2-arrows of even with 2푟, the required composites are closely related “higher order triangle equalties” 휖푟+1 ⋅ 푓휂푟푢 = 휖 and 푢휖푟 ⋅ 휂푟+1 = 휂, which again can easily be seen to hold by depicting the left-hand expressions as pasting diagrams.  ²Here 휂푟 refers to the horizontal composite of 푟 copies of the unit and the “⋅” expresses a vertical composite of a whiskered copy of this with a whiskered copy of 휖푟, the horizontal composite of 푟-copies of the counit. The 1-cell codomain of the former and 1-cell domain of the latter fit together like a cartoon depiction of a closed mouth of pointy teeth. 207 Motivated by this result and the fact that the simplicial category 풜푑푗 is a simplicial computad, we use it to define a notion of homotopy coherent adjunction in any quasi-categorically enriched category, and in particular in any ∞-cosmos. 8.1.14. Definition. A homotopy coherent adjunction in a quasi-categorically enriched category 풦 is a simplicial functor 풜푑푗 → 풦. Explicitly, it picks out: • a pair of objects 퐴, 퐵 ∈ 풦 • together with four homotopy coherent diagrams op 횫+ → Fun(퐵, 퐵), 횫+ → Fun(퐴, 퐴), 횫⊤ → Fun(퐴, 퐵), 횫⊥ → Fun(퐵, 퐴) (8.1.15) that are functorial with respect to the composition action of 풜푑푗. The 0- and 1-dimensional data of the these diagrams has the form displayed in (8.0.1), (8.0.2), and (8.0.3). We interpret the homotopy coherent diagrams (8.1.15) as defining homotopy coherent versions of the bar and cobar resolutions of the adjunction (푓 ⊣ 푢, 휂, 휖). Exercises. 8.1.i. Exercise. Prove that the embedding 2-풞푎푡 ↪ 풮풮푒푡-풞푎푡 defined by Lemma 8.1.3 is fully faith- ful: prove that simplicial functors 풜 → ℬ between 2-categories define 2-functors. 8.1.ii. Exercise. Use Lemma 8.1.3 to prove that the homotopy coherent 휔-simplex ℭΔ[휔] is a 2-cat- egory.³ 8.1.iii. Exercise. Describe the action of a general simplicial operator 훼∶ [푚] → [푛] on a strictly undulating squiggle on 푛 + 1 lines represented by a sequence 푎 = (푎0, 푎1, … , 푎푟−1, 푎푟) of “gaps” 푎푖 ∈ {−, 1, … , 푛, +}. 8.1.iv. Exercise. Give a graphical interpretation of the dualities 풜푑푗(−, −) ≅ 풜푑푗(+, +)op and 풜푑푗(−, +) ≅ 풜푑푗(+, −)op of Definition 8.1.4. 8.1.v. Exercise. (i) Describe the non-degenerate atomic 2-arrows of 풜푑푗 and compute their faces and compare your results with the composition relations appearing in the last paragraph of the proof of Proposition 8.1.13. (ii) Describe the degenerate atomic 2-arrows of 풜푑푗 and “compute” their faces. 8.1.vi. Exercise. Use the graphical calculus presented in Definition 8.1.9 to verify the following ob- servation of Karol Szumiło: the simplicial category 풜푑푗 is isomorphic to the Dwyer-Kan hammock localization [17] of the category consisting of two objects + and − and a single non-identity arrow + ⥲ − that is a weak equivalence. 8.1.vii. Exercise. For any homotopy coherent adjunction as in Definition 8.1.14, define internal ver- sions of monad resolution, the comonad resolution, the bar resolution, and the comonad resolution • (푢푓) (푓푢)• op bar cobar 퐵 −−−−→퐵횫+, 퐴 −−−−→퐴횫+ , 퐴 −−→퐵횫⊤, 퐵 −−−−→퐴횫⊥, ³In light of Lemma 8.1.3, Theorem 6.4 of [46] proves more generally that the simplicial computads defined as free resolutions of strict 1-categories are always 2-categories.

208 and explore the relationships between these functors.⁴ 8.2. Homotopy coherent adjunction data Any homotopy coherent adjunction in an ∞-cosmos or general quasi-categorically enriched cat- egory has an underlying adjunction in its homotopy 2-category. Remarkably, this low-dimensional adjunction data may always be extended to give a full homotopy coherent adjunction by repeated in- voking the universal property of the unit, as expressed in Proposition 8.3.2. In this section, we filter the free homotopy coherent adjunction 풜푑푗 by a sequence of “parental” subcomputads, which must contain, for each atomic 푛-arrow with codomain “−,” its “fillable parent,” the atomic 푛+1-arrow with codomain “+” obtained by whiskering with 푢 and the “precomposing” with 휂. In §8.3 we then use this filtration to prove that any adjunction in an ∞-cosmos — or more precisely any diagram indexed by a parental subcomputad — extends to a homotopy coherent adjunction. Our proof is essentially constructive, enumerating the choices necessary to make each stage of the extension. In §8.4, we give precise characterizations of the homotopical uniqueness of such extensions, proving that the appropriate spaces of extensions are contractible Kan complexes. Via the 2-categorical self- duality of 풜푑푗 described in Remark 8.2.12, there is a dual proof that instead exploits the universal property of the counit, the main steps of which are alluded to in the exercises. Our proof that any adjunction extends to a homotopy coherent adjunction inductively specifies the data in the image of a homotopy coherent adjunction by choosing fillers for horns corresponding to “fillable” arrows. 8.2.1. Definition. An arrow 푏 of 풜푑푗 is fillable if • it is non-degenerate and atomic, • its codomain 푏0 = +, and • 푏푖 ≠ 푏1 for 푖 > 1. 0 0 0 0 1 0 0 1 1 1 2 0 1 1 2 2 2 3 2 3 3 3 4

Write Fill푛 ⊂ Atom푛 for the subset of fillable 푛-arrows of the subset of atomic and non-degenerate 푛-arrows. 8.2.2. Definition (distinguished faces of fillable arrows). On account of the graphical calculus, we refer to ℎ(푏) ≔ 푏1 − 1, an integer in {0, … , 푛 − 1} that labels the line immediately above the position of the left-most turn-around, as the height of the fillable arrow 푏.⁵ The fillability of 푏 implies that no “tautening” is required in computing the distinguished codimension-one face 푏 ⋅ 훿ℎ(푏), which then is non-degenerate and has the same width as 푏. Further analysis of this face differs by case:

bar 퐴 퐵횫⊤ ⁴For instance, there is a commutative diagram 푢 res .

퐵 퐵횫+ (푢푓)• ⁵The unique fillable 0-arrow 푢 behaves somewhat differently, but nonetheless it is linguistically convenient to include it among the fillable arrows.

209 • case ℎ(푏) > 0: The face 푏 ⋅ 훿ℎ(푏) is non-degenerate and atomic, but it is not fillable, since non- ℎ(푏) degeneracy implies that there is some 푖 > 1 with 푏푖 = ℎ(푏), whence the entries of 푏 ⋅ 훿 at 1 and 푖 both equal ℎ(푏). • case ℎ(푏) = 0: The face 푏 ⋅ 훿ℎ(푏) decomposes as 푢 ⋅ 푎, where 푎 is non-degenerate, atomic, has width one less than the width of 푏, and has codomain −. We write ℎ(푏) ⋄ 푏 ⋅ 훿 ℎ(푏) > 0 푏 ≔  푎 ℎ(푏) = 0. for the non-degenerate atomic ℎ(푏)th face in the positive height case and for the non-degenerate atomic factor of the 0th face 푢푎 in the height 0 case and refer to the atomic 푛 − 1-arrow defined in either case as the distinguished face of the fillable arrow. We now argue that any non-degenerate and atomic 푛-arrow of 풜푑푗 that is not fillable arises as the distinguished face of a unique fillable 푛 + 1-arrow in the form of the first case just described when its codomain is + and in the form of the second case just described when its codomain is −. 8.2.3. Lemma (identifying fillable parents). (i) If 푏 is a non-degenerate and atomic 푛-arrow of 풜푑푗 with codomain + that is not fillable then it is the codimension-one face of exactly two fillable (푛 + 1)-arrows with the same width, both of which has 푏 † as its 푏1th face: one which has height 푏1 that we refer to as its fillable parent and denote by 푏 and the other which has height 푏1 − 1. (ii) If 푎 is a non-degenerate and atomic 푛-arrow of 풜푑푗 with codomain −, then the composite arrow 푢푎 is a codimension-one face of exactly one fillable (푛 + 1)-arrow, which we call the fillable parent of 푎 and denote by 푎†. The fillable parent 푎† has width one greater than the width of 푎, has height 0, and has 푢푎 as its 0th face. Together, these cases define a “fillable parent/distinguished face” bijection

(−)† Atom푛\Fill푛 ≅ Atom푛+1 (−)⋄ between fillable 푛 + 1-arrows and non-degenerate atomic 푛-arrows which are not fillable. Proof. For 8.2, if 푏 is a non-degenerate atomic 푛-arrow with domain + that is not fillable, then it must be the case that 푏푖 = 푏1 for some 푖 > 1. This arrow is then a codimension-one face of the two atomic 푛 + 1-arrows that are formed by inserting an extra line into the gap labeled 푏1 separate the entry 푏1 from the other turn-arounds that occur in the same gap; the 푛 + 1-arrows obtained in this way will then clearly have 푏 as their 푏1th face. There are exactly two ways to do this, as illustrated below: 0 0 0 1 1 1 † 푏 ≔ ⇝ 푏 ≔ 2 or 2 2 3 3 For (ii), given a non-degenerate atomic 푛-arrow 푎 with codomain −, there is a unique way to make 푢푎 into the face of an atomic 푛 + 1-arrow with domain + whose width is only one greater: by adding

210 an extra line in the upper-most space above the squiggle diagram.

0 0 0 † 1 푎 ≔ 1 ⇝ 푢푎 ≔ 1 ⇝ 푎 ≔ 2  2 2 3

8.2.4. Definition. A subcomputad 풜 of 풜푑푗 is parental if it contains at least one non-identity arrow and satisfies the condition: • if 푐 is a non-degenerate atomic arrow in 풜, then either it is fillable or its fillable parent 푐† is also in 풜. The condition implies that any parental subcomputad 풜 ⊂ 풜푑푗 contains at least one fillable arrow. The last vertex of any fillable arrow has the form 푢푎 for some 0-arrow 푎, so it follows that the 0-arrow 푢 is contained in any parental subcomputad. Recall from Definition 6.1.8, that any collection of arrows 푆 in a computad generates a minimal subcomputad 푆. 8.2.5. Example (notable parental subcomputads). • The unique fillable 0-arrow 푢 generates the minimal parental subcomputad {푢} ⊂ 풜푑푗 containing only 푢 and its degenerate copies. • The unit 1-arrow 휂 is fillable and the subcomputad {휂} ⊂ 풜푑푗 it generates has 푢, 푓, and 휂 as its only non-degenerate atomic arrows. Of these, 푢 and 휂 are parental and 휂 is the fillable parent of 푓, so this subcomputad is parental. • The triangle identity witness 훽 of Example 8.1.11 is fillable and the subcomputad {훽} ⊂ 풜푑푗 it generates has 푢, 푓, 휂, 휖, and 훽 as its only non-degenerate atomic arrows. Since 훽 is the fillable parent of 휖, this subcomputad is parental. • The pair of fillable 3-arrows

휔 ≔ and 휏 ≔

generate a subcomputad {휔, 휏} ⊂ 풜푑푗 that has 푢, 푓, 휂, 휖, both triangle identity witnesses 훽 and 훼 of Example 8.1.11, and 휈 ≔ 휔 ⋅ 훿1 = 휏 ⋅ 훿1 as its only non-degenerate atomic arrows. Since 휔 is the fillable parent of 훼 and 휏 is the fillable parent of

휈 ≔

this subcomputad is parental. • 풜푑푗 is trivially a parental subcomputad of itself. 8.2.6. Non-Example. • The subcomputad {휖} has 푢, 푓, and 휖 as its only non-degenerate atomic arrows. Since both 푓 and 휖 are missing their fillable parents, this subcomputad is not parental.

211 • The subcomputad {휂, 휖} that has 푢, 푓, 휂, and 휖 as its only non-degenerate atomic arrows still fails to be parental since the fillable parent of 휖 is missing. • The subcomputad {훽, 훼} that has 푢, 푓, 휂, 휖, and both triangle identity witnesses 훽 and 훼 as its atomic non-degenerate arrows is not parental since the fillable parent 휔 of 훼 is missing. These examples establish a chain of parental subcomputad inclusions {푢} ⊂ {휂} ⊂ {훽} ⊂ {휔, 휏} ⊂ 풜푑푗. Our aim in the remainder of this section is to filter a general parental subcomputad inclusion 풜 ⊂ 풜′ as a countable tower of parental subcomputad inclusions, with each sequential inclusion pre- sented as the pushout of an explicit simplicial subcomputad inclusion. The subcomputad inclusions ퟚ[Λ푘[푛]] ↪ ퟚ[Δ[푛]] from Example 6.1.5 will feature, where Λ푘[푛] is an inner horn. A second family of inclusions will also be needed, which we now introduce. 8.2.7. Definition. For any simplicial set 푈, let ퟛ[푈] denote the simplicial category whose three non- trivial homs are displayed in the following cartoon: − 푈 ퟙ

⊤ + ퟙ⋆푈 That is ퟛ[푈] has objects “⊤”, “−”, and “+” and non-trivial hom-sets ퟛ[푈](⊤, −) ≔ 푈 , ퟛ[푈](−, +) ≔ ퟙ , ퟛ[푈](⊤, +) ≔ ퟙ ⋆ 푈, and whose only non-trivial composition operation is defined by the canonical inclusion ퟛ[푈](−, +) × ퟛ[푈](⊤, −) ퟛ[푈](⊤, +) ≅ ≅ 푈 ퟙ ⋆ 푈 Here we define the endo hom-spaces to contain only the respective identities and the remaining hom- spaces to be empty. 8.2.8. Lemma. A simplicial functor ퟛ[푈] → 풦 is uniquely determined by the data: • a pair of 0-arrows 푢∶ 퐴 → 퐵 and 푏∶ 푋 → 퐵 • a cone with summit 푈 over the cospan

푈 푏/Fun(푋, 퐵)

Fun(푋, 퐴) Fun(푋, 퐵) 푢∗ 푏/ or equivalently a map 푈 → 푢∗ whose codomain is its pullback. Proof. The objects 푋, 퐴, and 퐵 are the images of ⊤, −, and + respectively. The map 푢∶ 퐴 → 퐵 is the image of the unique 0-arrow from − to +. Simplicial functoriality then demands the specification

212 of the vertical maps below making the square commute 푈 ퟙ ⋆ 푈

푢 Fun(푋, 퐴) ∗ Fun(푋, 퐵) By the join ⊣ slice adjunction of Proposition 4.2.5, the simplicial map ퟙ ⋆ 푈 → Fun(푋, 퐵) may be defined by specifying a 0-arrow 푏∶ 푋 → 퐵, the image of the cone point of ퟙ⋆푈, together with a map 푈 → 푏/Fun(푋, 퐵). Now the above commutative square transposes to the one of the statement.  Similarly a simplicial functor ퟚ[푈] → 풦 is uniquely determined by the data 푈 → Fun(푋, 퐴) of a simplicial map valued in one of the functor spaces of 풦. In particular, simplicial functors ퟚ[Δ[푛]] → 풦 correspond to 푛-arrows in 풦.  8.2.9. Notation.

• For each fillable 푛-arrow 푏 of positive height, let 퐹푏 ∶ ퟚ[Δ[푛]] → 풜푑푗 be the simplicial functor classified by the 푛-arrow 푏 of 풜푑푗. • For each fillable 푛-arrow 푏 of height 0, let 퐹푏 ∶ ퟛ[Δ[푛 − 1]] → 풜푑푗 be the simplicial functor defined on objects by − ↦ −, + ↦ +, and ⊤ ↦ 푏푤(푏), the domain of 푏, and on the three non-trivial homs by

푏⋄ 푢 ퟛ[Δ[푛 − 1]](⊤, −) ≅ Δ[푛 − 1] 풜푑푗(푏푤(푏), −) ퟛ[Δ[푛 − 1]](−, +) ≅ Δ[0] 풜푑푗(−, +)

푏 ퟛ[Δ[푛 − 1]](⊤, +) ≅ Δ[푛] 풜푑푗(푏푤(푏), +)

8.2.10. Lemma (extending parental subcomputads). Suppose 풜 ⊂ 풜푑푗 is a parental subcomputad and 푏 is a fillable 푛-arrow of height 푘 that is not a member of 풜 but whose faces 푏 ⋅ 훿푖 are in 풜 for all 푖 ≠ 푘. Then the subcomputad 풜′ ≔ {풜, 푏} generated by 풜 and 푏 is defined by the pushout on the left below in the case 푘 > 0 and on the right below in the case 푘 = 0

퐹푏 퐹푏 ퟚ[Λ푘[푛]] 풜 ퟛ[휕Δ[푛 − 1]] 풜

⌜ ⌜ ퟚ[Δ[푛]] 풜′ ퟛ[Δ[푛 − 1]] 풜′ 퐹푏 퐹푏 and in both cases 풜′ is again a parental subcomputad. Proof. Because 푏 is the fillable parent of its distinguished face 푏⋄, this non-degenerate, atomic, non-fillable (푛 − 1)-arrow cannot be a member of the parental subcomputad 풜. Since the other faces of 푏 are assumed to belong to 풜, 푏 and 푏⋄ are the only two atomic arrows that are in 풜′ but not in 풜. Since the first is fillable and the second has the first as its fillable parent, it is clear that the subcomputad 풜′ is again parental. To verify the claimed pushouts, we consider what is required to extend a simplicial functor 퐹∶ 풜 → 풦 to a simplicial functor 퐹∶ 풜′ → 풦. In the positive height case, all that is needed for such an exten- sion is an 푛-arrow 푓 in 풦 with the property that 푓 ⋅ 훿푖 = 퐹(푏 ⋅ 훿푖) for all 푖 ≠ 푘, which may be specified

213 by a simplicial functor 푓∶ ퟚ[Δ[푛]] → 풦 that makes the following square commute:

퐹푏 ퟚ[Λ푘[푛]] 풜

퐹 ퟚ[Δ[푛]] 풦 푓 If the height of 푏 is zero, then both its 0th face 푏⋅훿0 = 푢 ⋅푎 and its atomic non-degenerate factor 푎 are missing from 풜. So to extend a simplicial functor 퐹∶ 풜 → 풦 to a simplicial functor 퐹∶ 풜′ → 풦 requires an (푛 − 1) arrow 푔 and an 푛-arrow 푓 in 풦 so that 푔 ⋅ 훿푖 = 퐹(푎 ⋅ 훿푖) for all 푖 ∈ [푛 − 1] and 푓 ⋅ 훿푖 = 퐹(푏 ⋅ 훿푖) for all 푖 ≠ 0 ∈ [푛], so that 푓 ⋅ 훿0 = 퐹푢 ⋅ 푔. By Lemma 8.2.8 this data may be specified by a simplicial functor 푓∶ ퟛ[Δ[푛 − 1]] → 풦 that makes the following square commute:

퐹푏 ퟛ[휕Δ[푛 − 1]] 풜

퐹  ퟛ[Δ[푛 − 1]] 풦 푓 8.2.11. Proposition. Any inclusion 풜 ↪ 풜′ of parental subcomputads of 풜푑푗 may be filtered as a count- able tower of parental subcomputad inclusions ′ 풜 = 풜0 ↪ 풜1 ↪ ⋯ ↪ フ 풜푖 = 풜 푖≥0 in such a way that for each 푖 ≥ 1 there is a finite non-empty set 푆푖 of fillable arrows that are not themselves contained in but which have all faces except the distinguished one contained in 풜푖−1 so that the parental ′ subcomputad 풜푖 is generated by 풜푖−1 ∪ 푆푖. Hence, the inclusion 풜 ↪ 풜 may be expressed as a countable composite of inclusions which are constructed by pushouts of the form ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⟨퐹푏⟩푏∈푆 ⎜ ∐ ퟚ[Λℎ(푏)[dim(푏)]]⎟ ⊔ ⎜ ∐ ퟛ[휕Δ[dim(푏)]]⎟ 푖 풜 ⎜ ⎟ ⎜ ⎟ 푖−1 ⎝⎜ 푏∈푆푖 ⎠⎟ ⎝⎜ 푏∈푆푖 ⎠⎟ ℎ(푏)>0 ℎ(푏)=0

⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⎜ ⎟ ⌜ ⎜ ∐ ퟚ[Δ[dim(푏)]]⎟ ⊔ ⎜ ∐ ퟛ[Δ[dim(푏)]]⎟ 풜푖 ⎜ ⎟ ⎜ ⎟ ⟨퐹푏⟩푏∈푆 ⎝⎜ 푏∈푆푖 ⎠⎟ ⎝⎜ 푏∈푆푖 ⎠⎟ 푖 ℎ(푏)>0 ℎ(푏)=0

′ Proof. Let 푆 denote the set of fillable arrows in 풜 which are not in 풜 and let 푆푤,푛,푘 denote the subset of arrows with width 푤, dimension 푛, and height 푘. Note that any non-degenerate arrow of 풜푑푗 must have dimension strictly less than its width, and there are only finitely many non-degenerate arrows of any given width. The height is strictly less than the dimension so each set 푆푤,푛,푘 is finite and if non-empty we must have 푘 < 푛 < 푤. Now we order the triples (푤, 푛, 푘) that index non-empty subsets of fillable arrows lexicographically by increasing width, increasing dimension, and decreasing height and let 푆푖 ≔ 푆푤푖,푛푖,푘푖 denote subset of fillable arrows in the 푖th triple in this ordering for 푖 ≥ 1. 214 ⋃푖 Let 풜푖 be the subcomputad of 풜푑푗 generated by 풜 ∪ ( 푗=1 푆푖). By construction this family filters ′ ⋃ the inclusion of 풜 into 풜 = 풜 ∪ ( 푖 푆푖). We complete the proof by induction on the index starting from the parental subcomputad 풜0 =

풜. For the inductive step, we must verify that all but the distinguished face of each 푏 ∈ 푆푖 ≔ 푆푤푖,푛푖,푘푖 lie in 풜푖−1. By iterating Lemma 8.2.10, it will follow that 풜푖 is again parental. By construction 풜푖−1 is the smallest subcomputad of 풜푑푗 which contains 풜 and all of the fillable arrows of 풜′ which have:

• width less that 푤푖 or • width 푤푖 and dimension less than 푛푖 or • width 푤푖, dimension 푛푖, and height greater than 푘푖. 푗 Each fillable arrow 푏 ∈ 푆푖 has width 푤푖, dimension 푛푖, and height 푘푖. We must show that its faces 푏 ⋅ 훿 lie in 풜푖−1 for each 푗 ≠ 푘푖, which we verify by a tedious but straightforward case analysis. case 푗 ≠ 푘푖 + 1: If 푗 ≠ 푘푖 + 1 then since 푗 ≠ 푘푖 the line numbered 푗 is not one of the ones separating the gap 푏1 from the other entries of 푏, which means that this entry will not be eliminated when computing the 푗th face. Consider the unique factorization 푗 1 푟 푏 ⋅ 훿 = (푏 ⋅ 훼1) ∘ ⋯ ∘ (푏 ⋅ 훼푟) of the face 푏⋅훿푗 into non-degenerate and atomic arrows of 풜′ acted upon by degeneracy operators. By 1 the analysis just given, 푏 is fillable with width at most 푤푖, height 푘푖 or 푘푖 − 1 depending on whether 1 푗 > 푘푖 + 1 or 푗 < 푘푖, and dimension less than 푛푖. Thus 푏 it is contained in 풜푖−1 by the hypothesis that this subcomputad contains all fillable arrows of width at most 푤푖 and dimension less than 푛푖. Since 푏1 has width at least 2, the other atomic factors have width less than or equal to 푤푖 − 2. Thus each of these is either a fillable arrow with width at most 푤푖 − 2, which means that it is in 풜푖−1, or its fillable ′ 푗 parent in 풜 has width at most 푤푖 − 1, which means that this fillable parent is also in 풜푖−1. As 푏 ⋅ 훿 is a composite of degenerate images of arrows in 풜푖−1 it too lies in 풜푖−1. case 푗 = 푘푖 + 1: Since 푏 ∉ 풜푖−1 and all parental subcomputads contain the unique fillable 0-arrow 푢, we know that 푏 ≠ 푢 and so has width at least 2 and dimension at least 1. The only fillable arrow 1 of width 2 is 휂 which has depth 0 and face 휂 ⋅ 훿 = id+, which certainly lies in 풜푖−1, so we can safely assume that the width of 푏 is at least 3 which forces the height 푘푖 to be at most 푛푖 − 2; otherwise 푏 푗 would not be atomic. Thus 푗 is at most 푛푖 − 1, which tells us that 푏 ⋅ 훿 is again atomic. Now we have two subcases:

• case 푏2 = 푏1 + 1: In this case, the line 푗 = 푘1 + 1 = 푏1 separates the gaps 푏1 and 푏2, so the face 푏 ⋅ 훿푗 will have width at least two less than the width of 푏. This face may also be degenerate but in any case the fillable parent of the non-degenerate arrow that it represents has width less than 푤푖 and so this face is present in 풜푖−1. • case 푏2 > 푏1 + 1: In this case, the line 푗 = 푘1 + 1 = 푏1 separates the gap 푏1 from the gap 푗 immediately below it, which contains neither 푏0 nor 푏2. So the face 푏 ⋅ 훿 has width 푤푖 and is 푗 non-degenerate. Because 푏 is non-degenerate, there is some 푠 > 2 so that 푏푠 = 푏1 + 1, so 푏 ⋅ 훿 is not fillable. Now Lemma 8.2.3 tells us that its fillable parent has width 푤푖, dimension 푛푖, and height 푘푖 + 1. Thus, this fillable parent lies in 풜푖−1 by our hypothesis that that 풜푖−1 contains all ′ 푗 fillable arrows of 풜 of width 푤푖, dimension 푛푖, and height greater than 푘푖, so 푏 ⋅ 훿 must also be in there, as desired.  215 8.2.12. Remark (a dual form). In the 2-category 풜푑푗co, the 0-arrow 푢 is left adjoint to the 0-arrow 푓, with unit 휖 and counit 휂. The 2-functor 풜푑푗 → 풜푑푗co that classifies this adjunction is an iso- morphism. Via this duality, we could have introduced a variant notion of “fillable 푛-arrow” (a subset of those 푛-arrows with codomain −) and “parental subcomputad” of 풜푑푗 so that every parental sub- computad contained the 0-arrow 푓. Dualizing the argument of Example 8.2.5, the subcomputads {푓} ⊂ {휖} ⊂ {훼} would all be parental, but the subcomputads of Example 8.2.5 would no longer be so. Exercises. 8.2.i. Exercise. Give a graphical description of the dual fillable 푛-arrows discussed in Remark 8.2.12. 8.3. Building homotopy coherent adjunctions We now employ Proposition 8.2.11 to prove that every adjunction in an ∞-cosmos 풦 extends to a homotopy coherent adjunction 풜푑푗 → 풦 which carries the canonical adjunction in 풜푑푗 to the chosen adjunction in 풦. The data used to present an adjunction in a quasi-categorically enriched category 풦 in the sense of Definition 2.1.1 — a pair of ∞-categories 퐴 and 퐵, a pair of 0-arrows 푢 ∈ Fun(퐴, 퐵) and 푓 ∈ Fun(퐵, 퐴), a pair of 1-arrows 휂∶ id퐵 → 푢푓 ∈ Fun(퐵, 퐵) and 휖∶ 푓푢 → id퐴 ∈ Fun(퐴, 퐴), and witnesses to the triangle equalities given by a pair of 2-arrows 푢푓푢 푓푢푓 휂푢 푢휖 푓휂 휖푓 훽 ∈ Fun(퐴, 퐵) 훼 ∈ Fun(퐵, 퐴) 푢 푢 푓 푓

— determines a simplicial functor 푇∶ {훽, 훼} → 풦 whose domain is the subcomputad of 풜푑푗 generated by the triangle identity 2-arrows. This functor then is defined by mapping − to 퐴 and + to 퐵 and acting on the non-degenerate and atomic arrows in the way suggested by their syntax: 푇(푢) ≔ 푢, 푇(푓) ≔ 푓, 푇(휂) ≔ 휂, 푇(휖) ≔ 휖, 푇(훽) ≔ 훽, and 푇(훼) ≔ 훼. In Theorem 8.3.4, we prove that it is always possible to extend the data (푓 ⊣ 푢, 휂, 휖) to a homotopy coherent adjunction 풜푑푗 → 풦, but unless 훽 and 훼 satisfy a coherence condition that will be described, doing so might require making a different choice for one of these triangle equality witnesses. By Proposition 8.2.11, extensions along parental subcomputad inclusions may be built inductively from two types of extension problem, one of which involves attaching fillable arrows with positive height and the other of which involves attaching fillable arrows of height zero. We prove that both simplicial subcomputad extension problems can be solved relatively against any simplicial functor 푃∶ 풦 → ℒ between quasi-categorically enriched categories that defines a “local isofibration,” mean- ing that the action of 푃 on functor spaces is by isofibrations. This relative lifting result will be used in the proof of the homotopical uniqueness of such extensions in §8.4. 8.3.1. Lemma. Let 푃∶ 풦 → ℒ be a simplicial functor that defines a local isofibration of quasi-categories. Then any lifting problem against the directed suspension of an inner horn inclusion

ퟚ[Λ푘[푛]] 풦

푃 ퟚ[Δ[푛]] ℒ has a solution. 216 Proof. The lifting problem of the statement is equivalent to asking for a lift of the inner horn inclusion Λ푘[푛] Fun(퐴, 퐵)

Δ[푛] Fun(푃퐴, 푃퐵) against the action of 푃 on some functor spaces of 풦 and ℒ. By hypothesis this action is an isofibration of quasi-categories and so the claimed lift exists.  8.3.2. Proposition (the relative universal property of the unit). If 풦 has an adjunction (푓 ⊣ 푢, 휂), 푃∶ 풦 → ℒ is a local isofibration of quasi-categorically enriched categories, and if 푇∶ ퟛ[휕Δ[푛]] → 풦 is defined to carry the unique 0-arrow − → + to 푢∶ 퐴 → 퐵, the cone point of ퟙ ⋆ 휕Δ[푛] ≅ Λ0[푛] to 푏∶ 푋 → 퐵 and the 1-arrow from 0 to 1 in Λ0[푛] to 휂푏∶ 푏 → 푢푓푏 for some 푛 ≥ 1, then any lifting problem ퟛ[휕Δ[푛]] 푇 풦

푃 ퟛ[Δ[푛]] ℒ has a solution. Proof. By Lemma 8.2.8, the lifting problem of the statement translates to a lifting problem of the following form 푡 푏/ 휕Δ[푛] 푢∗

푃푏/ Δ[푛] 푃푢∗ 푏/ where the upper horizontal map carries the initial vertex 0 ∈ 휕Δ[푛] to the object 휂푏 ∈ 푢∗, which is initial in there by Proposition 4.1.4 applied to the adjunction between functor spaces

푓∗

Fun(푋, 퐵) ⊥ Fun(푋, 퐴)

푢∗ and Appendix C, which proves that Joyal’s slices are fibered equivalent to comma quasi-categories. The right-hand vertical is an isofibration that preserves this initial element, since it carries it to a component of the unit for the adjunction (푃푓 ⊣ 푃푢, 푃휂) in ℒ. Lemma ?? proven in Appendix F now proves that the desired lift exists.  Our theorems about extensions to homotopy coherent adjunctions will follow as special cases of the following relative extension and lifting result for parental subcomputads containing the unit of an adjunction.

8.3.3. Theorem. Suppose {휂} ⊂ 풜 ⊂ 풜′ ⊂ 풜푑푗 are parental subcomputads. Then if 푃∶ 풦 → ℒ is a local isofibration between quasi-categorically enriched categories and if 풦 has an adjunction (푓 ⊣ 푢, 휂) then

217 we may solve any lifting problem 풜 푇 풦 푃 풜′ ℒ so long as 푇(푓) = 푓, 푇(푢) = 푢, and 푇(휂) = 휂.

Proof. By Proposition 8.2.11 the inclusion 풜 ↪ 풜′ can be fillered as a sequential composite of pushouts of coproducts of maps of two basic forms, so it suffices to demonstrate that we may solve lifting problems of the following two forms

퐹푏 퐹푏 ퟚ[Λ푘[푛]] 풜 푇 풦 ퟛ[휕Δ[푛 − 1]] 풜 푇 풦

푃 푃 ⌜ ⌜ ퟚ[Δ[푛]] 풜′ ℒ ퟛ[Δ[푛 − 1]] 풜′ ℒ 퐹푏 퐹푏 for some fillable 푛-arrow 푏 ∈ 풜푑푗, of positive height in the left-hand case and of height zero in the right-hand case. In the case of the left-hand lifting problem, such lifts exist immediately from Lemma 8.3.1. In the case of the right-hand lifting problem, we must verify that the hypotheses of Proposition 8.3.2 are satisfied, which amounts to verifying that for any fillable 푛-arrow 푏 of height zero, the functor 퐹푏 ∶ ퟛ[Δ[푛 − 1]] → 풜푑푗 defined in Notation 8.2.9 in relavant part by the map

푏 ퟛ[Δ[푛 − 1]](⊤, +) ≅ Δ[푛] 풜푑푗(푏푤(푏), +) carries the 1-arrow from 0 to 1 in Δ[푛] to a component of the unit in 풜 ⊂ 풜푑푗. This is easily verified using the graphical calculus. The image of the 1-arrow from 0 to 1 under the map 푏∶ Δ[푛] → 풜푑푗(푏푤(푏), +) is simply the initial edge of 푏, which may be computed by removing all of the other lines from the strictly undulating squiggle diagram. By the specifications of a fillable arrow with height 0, there are only two possibilities, depending on whether the domain of 푏 is + or −, as illustrated by the following diagrams:

0 1 0 0 푏 ≔ 2 ⇝ 푏훿{0,1} ≔ = 1 1 3 4

0 1 0 0 2 {0,1} 푏 ≔ ⇝ 푏훿 ≔ 1 = 1 3 4

Thus we see that 푏 ⋅ 훿{0,1} = 휂푢 or 푏 ⋅ 훿{0,1} = 휂, both of which satisfy the conditions required for Proposition 8.3.2 to provide the desired lift. 

218 8.3.4. Theorem (homotopy coherent adjunctions). If 풦 is a quasi-categorically enriched category con- taining an adjunction (푓 ⊣ 푢, 휂, 휖, 훽, 훼): (i) There exists a simplicial functor 픸∶ 풜푑푗 → 풦 for which 픸(푢) = 푢, 픸(푓) = 푓, and 픸(휂) = 휂. (ii) There exists a simplicial functor 픸∶ 풜푑푗 → 풦 for which 픸(푢) = 푢, 픸(푓) = 푓, 픸(휂) = 휂, 픸(휖) = 휖, and 픸(훽) = 훽. (iii) If there exist a pair of 3-arrows 휔 and 휏 in 풦 푢푓 푢푓 휂 휂

휔 ≔ 휂 휏 ≔ 휂 id퐵 푢푓 id퐵 푢푓 푢푓휂 휂푢푓 휂⋅휂 푢휖푓 휂⋅휂 푢휖푓 푢푓푢푓 푢푓푢푓 witnessing the coherence relations 휔훿0 = 푢훼, 휏훿0 = 훽푓, 휔훿1 = 휏훿1, 휔훿2 = 휏훿2 = 휂휎1, with the 3rd faces of these simplices defined by the pair of 2-arrows given by the horizontal composite

휂×휂 ∘ Δ[1] × Δ[1] Fun(퐵, 퐵) × Fun(퐵, 퐵) Fun(퐵, 퐵) then there exists a simplicial functor 픸∶ 풜푑푗 → 풦 for which 픸(푢) = 푢, 픸(푓) = 푓, 픸(휂) = 휂, 픸(휖) = 휖, 픸(훽) = 훽, 픸(훼) = 훼, 픸(휔) = 휔, and 픸(휏) = 휏.

Coherence conditions of the form stated in ((iii)) appear in the definition of a biadjoint pair in a strongly bicategorically enriched category in [62, 1.3.8]. Exercises. 8.3.i. Exercise. Unpack Proposition 8.3.2 in the case 푛 = 1 and 푛 = 2. 8.3.ii. Exercise. Use Remark 8.2.12 to formulate the dual of Theorem 8.3.4, describing homotopy coherent adjunctions generated by a given counit. 8.4. Homotopical uniqueness of homotopy coherent adjunctions The homotopy 2-category of an ∞-cosmos can be regarded as a simplicial category of the form described in Lemma 8.1.3, in which context it is equipped with a canonical quotient functor 푄∶ 풦 → 픥풦 of simplicial categories. Formally, 푄 is a component of the counit of the adjunction described in Digression 1.4.2. It follows easily from the characterization of 2-categories in Lemma 8.1.3 that 푄 is a local isofibration. By Proposition 8.1.13, any adjunction in the homotopy 2-category of an ∞-cosmos is represented by a unique simplicial functor 푇∶ 풜푑푗 → 픥풦. To say that a homotopy coherent adjunction 픸∶ 풜푑푗 → 풦 lifts the adjunction in the homotopy 2-category means that 픸 is a lift of 푇 along 푄. Theorem 8.3.4 proves that a lift of any adjunction in the homotopy 2-category 픥풦 can be constructed by specifying a lift 푇∶ {훽} → 풦 of 푇∶ 풜푑푗 → 픥풦 — this amounting to a choice of 1-arrows representing the unit

219 and counit and a 2-arrow witnessing one of the triangle equalities — and then extending along the parental subcomputad inclusion to define the homotopy coherent adjunction 픸.

{훽} 푇 풦 픸 푄

풜푑푗 픥풦 푇 Note that the commutativity of the top left triangle implies the commutativity of the bottom right one, so instead of thinking of 픸 as a lift of 푇∶ 풜푑푗 → 픥풦 to a homotopy coherent adjunction, we can equally think of 픸 as an extension of 푇∶ {훽} → 풦 to a homotopy coherent adjunction. In this section, we will define the space of extensions of given adjunction data to a homotopy coherent adjunction. Our main theorem in this section is that if the base diagram to be extended is indexed by a parental subcomputad, then the space of lifts is a contractible Kan complex. The first step is to construct a (possibly large) simplicial hom-space between two simplicial cate- gories. 8.4.1. Definition. Define the cotensor ℒ푈 of a simplicial category ℒ with a simplicial set 푈 to be the simplicial category with obj ℒ푈 ≔ obj ℒ and hom-spaces ℒ푈(푋, 푌) ≔ ℒ(푋, 푌)푈. Any simplicial set 푈 defines a comonoid (푈, !∶ 푈 → ퟙ, Δ∶ 푈 → 푈×푈) with respect to the cartesian product and diagonal maps, so the endofunctor (−)푈 ∶ 풮풮푒푡-풞푎푡 → 풮풮푒푡-풞푎푡 is a monad whose unit and multiplication are defined by restricting along these maps. For simplicial categories 풦 and ℒ, let Icon(풦, ℒ) denote the large simplicial sets defined by the natural isomorphism 푈 푈 Δ[푛] Icon(풦, ℒ) ≅ Icon(풦, ℒ ) i.e., Icon(풦, ℒ)푛 ≔ Icon(풦, ℒ ). The composition map Icon(ℒ, ℳ) × Icon(풦, ℒ) ∘ Icon(풦, ℳ) is given by defining the composite of a pair of 푛-arrows 퐹∶ 풦 → ℒΔ[푛] and 퐺∶ ℒ → ℳΔ[푛] to be the Kleisli composite 푛-arrow

Δ[푛] ∗ 풦 퐹 ℒΔ[푛] 퐺 (ℳΔ[푛])Δ[푛] ≅ ℳΔ[푛]×Δ[푛] Δ ℳΔ[푛]

8.4.2. Remark. The vertices of Icon(풦, ℒ) are simplicial functors 풦 → ℒ. The name “icon” is chosen because the 1-simplices are analogous to the “identity component oplax natural transformations” in 2-category theory as defined by Lack [34]. In particular, each 1-simplex 풦 → ℒΔ[1] or 푛-simplex 풦 → ℒΔ[푛] spans simplicial functors 풦 → ℒ that agree on objects. 8.4.3. Lemma. If 푃∶ 풦 ↠ ℒ is a local isofibration between quasi-categorically enriched categories and 퐼∶ 풜 ↪ ℬ is a simplicial subcomputad inclusion, then if either 푃 is bijective on objects or 퐼 is injective on objects then the Leibniz map Iconᄄ (퐼, 푃)∶ Icon(ℬ, 풦) ↠ Icon(풜, 풦) × Icon(ℬ, ℒ) Icon(풜,ℒ)

220 is an isofibration between quasi-categories. Proof. A lifting problem of simplicial sets as below-left transposes into a lifting problem of sim- plicial categories below-right:

푈 Icon(ℬ, 풦) 풜 풦푉

푖 Iconᄄ (퐼,푃) 퐼 {푖,푃}ᄄ 푉 Icon(풜, 풦) × Icon(ℬ, ℒ) ℬ 풦푈 × ℒ푉 Icon(풜,ℒ) ℒ푈

When 푃 is surjective on objects, so is the simplicial functor {푖,ᄄ 푃} and in general the action on homs is given by the Leibniz map {푖,ᄄ 푃}∶ Fun(푋, 푌)푉 ↠ Fun(푋, 푌)푈 × Fun(푃푋, 푃푌)푉, Fun(푃푋,푃푌)푈 which is a trivial fibration whenever 푈 ↪ 푉 is an inner horn inclusion or is the inclusion ퟙ ↪ 핀. By Definition 6.1.11 to solve the right-hand lifting problem, it suffices to solve the two lifting problems ∅ 풦푉 ퟚ[휕Δ[푛]] 풦푉

{푖,푃}ᄄ {푖,푃}ᄄ ퟙ 풦푈 × ℒ푉 ퟚ[Δ[푛]] 풦푈 × ℒ푉 ℒ푈 ℒ푈 where the left-hand lifting problem is not needed if 퐼 is bijective on objects. The right-hand lifting problem can be solved because {푖,ᄄ 푃} is a local trivial fibration and the left-hand lifting problem can be solved whenever 푃 is surjective on objects.  8.4.4. Corollary. If 풦 is a quasi-categorically enriched category, if 풜 is a simplicial computad, and if 퐼∶ 풜 ↪ ℬ is a simplicial subcomputad inclusion, then Icon(퐼, 풦)∶ Icon(ℬ, 풦) ↠ Icon(풜, 풦) is an isofibration between quasi-categories.  8.4.5. Lemma. Suppose 푃∶ 풦 → ℒ is a simplicial functor between quasi-categories that is locally conservative in the sense that each Fun(퐴, 퐵) → Fun(푃퐴, 푃퐵) reflects isomorphisms. Then if 풜 is a simplicial computad and 풜 ↪ ℬ is a bijective-on-objects simplicial subcomputad inclusion, then the Leibniz map Iconᄄ (퐼, 푃)∶ Icon(ℬ, 풦) ↠ Icon(풜, 풦) × Icon(ℬ, ℒ) Icon(풜,ℒ) is a conservative functor of quasi-categories. Proof. In the language of marked simplicial sets, we must show that any lifting problem below- left has a solution ♯ ퟚ Icon(ℬ, 풦) 풜 풦ퟚ

Iconᄄ (퐼,푃) ♯ ퟚ♯ Icon(풜, 풦) × Icon(ℬ, ℒ) ℬ 풦ퟚ × ℒퟚ Icon(풜,ℒ) ℒퟚ

221 where ퟚ♯ represents invertible 1-arrows. By adjunction, this transposes to the lifting problem above- right. As in the proof of Lemma 8.4.3, it suffices to consider the case where 풜 ↪ ℬ is ퟚ[휕[Δ[푛]]] ↪ ퟚ[Δ[푛]] for some 푛 ≥ 0, in which case the lifting problem of simplicial categories reduces to one of simplicial sets

♯ 휕Δ[푛] Fun(퐴, 퐵)ퟚ (휕Δ[푛] × ퟚ♯) ∪ (Δ[푛] × ퟚ) Fun(퐴, 퐵) ↭ ♯ Δ[푛] Fun(퐴, 퐵)ퟚ × Fun(푃퐴, 푃퐵)ퟚ Δ[푛] × ퟚ♯ Fun(푃퐴, 푃퐵) Fun(푃퐴,푃퐵)ퟚ The marked simplicial sets on the left have the same underlying sets, differing only in their markings, so by the hypothesis that Fun(퐴, 퐵) → Fun(푃퐴, 푃퐵) is conservative, the result follows.  8.4.6. Definition. The space of homotopy coherent adjunctions in a quasi-categorically enriched category 풦 is cohadj(풦) ≔ Icon(풜푑푗, 풦). 8.4.7. Proposition. The space of homotopy coherent adjunctions in 풦 is a Kan complex, possibly a large one. Proof. Since 풜푑푗 is a simplicial computad, Corollary 8.4.4 implies that cohadj(풦) is a quasi- category. By Corollary 1.1.15, we need only show that all of its arrows are isomorphism. Since a 1-arrow in a functor space of 풦 is an isomorphism if and only if it represents an invertible 2-cell in 픥풦, the quotient simplicial functor 푄∶ 풦 → 픥풦 is locally conservative, and by Lemma 8.4.5, it suffices to show that cohadj(픥풦) is a Kan complex. From Proposition 8.1.13 we can extract an explicit description of cohadj(픥풦) that reveals that it is actually isomorphic the nerve of a 1-category: its • objects are adjunctions (푓 ⊣ 푢, 휂, 휖) in 픥풦 • arrows (휙, 휓)∶ (푓 ⊣ 푢, 휂, 휖) → (푓′ ⊣ 푢′, 휂′, 휖′) consist of a pair of 2-cells 휙∶ 푓 ⇒ 푓′ and 휓∶ 푢 ⇒ 푢′ so that 휖′ ⋅ (휙휓) = 휖 and 휂′ = (휓휙) ⋅ 휂, and • identities and composition are given componentwise. The isomorphisms in cohadj(픥풦) are those pairs (휙, 휓) whose components 휙 and 휓 are both invertible. From the defining equations 휖′ ⋅ (휙휓) = 휖 and 휂′ = (휓휙) ⋅ 휂 it follows that the mate of 휓 is an inverse to 휙 and the mate of 휙 is an inverse to 휓, so every arrow is in fact an isomorphism.  8.4.8. Proposition (homotopical uniqueness of parental subcomputad extensions). Suppose {휂} ⊂ 풜 ⊂ 풜′ ⊂ 풜푑푗 are parental subcomputads. Suppose 푇∶ 풜 → 풦 is a simplicial functor so that 푇(푓) = 푓, 푇(푢) = 푢, and 푇(휂) = 휂 define an adjunction in 풦. Then the fiber of the isofibration Icon(풜′, 풦) ↠ Icon(풜, 풦) over 푇 is a contractible Kan complex. Proof. The fibers over 푇 are those simplicial functors 푇∶ 풜′ → 풦 extending 푇∶ 풜 → 풦. By Theorem 8.3.3, this fiber is non-empty. We must show for any inclusion 푈 ↪ 푉 of simplicial sets,

222 the lifting problem ′ 푈 퐸푇 ⌟ Icon(풜 , 풦) 푖 푉 ퟙ 푇 Icon(풜, 풦) has a solution. Transposing, we obtain a lifting problem of simplicial categories

! 풜 푇 풦 풦 풦푉

풜′ 풦푈 against the local isofibration 풦푉 ↠ 풦푈. The simplicial functor 풦! ∶ 풦 → 풦푉, like all simplicial functors, preserves the adjunction (푓 ⊣ 푢, 휂) in 풦, so Theorem 8.3.3 applies to provide a solution.  Taking 풜′ = 풜푑푗, Proposition 8.4.8 tells us that the space of homotopy coherent adjunctions extending a simplicial functor 풜 → 풦 indexed by a parental subcomputad whose image specifies the unit of an adjunction is a contractible Kan complex. This proves that such extensions are “homotopi- cally unique.” We conclude this section with more refined presentations of this kind of result for two instances of basic adjunction data of interest.

8.4.9. Definition (the space of units). Simplicial functors {휂} → 풦 correspond bijectively to the choice of a pair of 0-arrows 푓 ∈ Fun(퐵, 퐴), 푢 ∈ Fun(퐴, 퐵), together with a 1-arrow 휂∶ id퐵 → 푢푓 ∈ Fun(퐵, 퐵). We refer to the simplicial subset unit(풦) ⊂ Icon({휂}, 풦) of those triples (푓, 푢, 휂) that specify the unit of an adjunction and those 1-simplices that define isomorphisms between them as the space of units, and denote its objects by (푓 ⊣ 푢, 휂). Since Icon({휂}, 풦) is a quasi-category, unit(풦) is a Kan complex. 8.4.10. Lemma. There is an isomorphism of quasi-categories

HomFun(퐵,퐵)(id퐵, ∘)

푝1 푝0

휙 Icon({휂}, 풦) ≅ ᄁ HomFun(퐵,퐵)(id퐵, ∘) Fun(퐴, 퐵) × Fun(퐵, 퐴) ퟙ 퐴,퐵∈풦 ⇐ ∘ ∘ Fun(퐵, 퐵)

Proof. Exercise 8.4.ii.  8.4.11. Theorem (uniqueness of homotopy coherent extensions of a unit).

(i) The space 퐸휂 of homotopy coherent adjunctions extending the counit 휂 is a contractible Kan complex. (ii) The forgetful functor 푝푈 ∶ cohadj(풦) ⥲→ unit(풦) is a trivial fibration of Kan complexes. Proof. Both statements follow from specializing Proposition 8.4.8 to the parental subcomputad {휂} ⊂ 풜푑푗. If 픸∶ 풜푑푗 → 풦 is a homotopy coherent adjunction, its restriction to {휂} → 풦 defines

223 an object of unit(풦) ⊂ Icon({휂}, 풦). The fiber of the isofibration 푝푈 ∶ cohadj(풦) ⥲→ unit(풦) over (푓 ⊣ 푢, 휂) coincides with the fiber considered in Proposition 8.4.8 and is thus a contractible Kan complex. By Corollay 8.4.4, the map 푝푈 ∶ cohadj(풦) ⥲→ unit(풦) is an isofibration between Kan complexes, and is thus a Kan fibration. By Proposition ?? any Kan fibration between Kan complexes with con- tractible fibers is a trivial fibration, proving (ii).  8.4.12. Definition (the space of right adjoints). Simplicial functors {푢} → 풦 correspond bijectively to the choice of a 0-arrow 푢 in 풦. Indeed: Icon({푢}, 풦) ≅ ᄁ Fun(퐴, 퐵). 퐴,퐵∈풦 We refer to the simplicial subset rightadj(풦) ⊂ Icon({푢}, 풦) of those 0-arrows that possess a left adjoint and the isomorphisms between them as the space of right adjoints. As a quasi-category whose 1-arrows are all isomorphisms, rightadj(풦) is a Kan complex.

The isofibration Icon({휂}, 풦) ↠ Icon({푢}, 풦) restricts to define an isofibration 푞푅 ∶ unit(풦) ↠ rightadj(풦) of Kan complexes.

8.4.13. Proposition. The isofibration 푞푅 ∶ unit(풦) ↠ rightadj(풦) is a trivial fibration of Kan complexes.

Proof. Since both unit(풦) and rightadj(풦) are Kan complexes, automatically 푞푅 is a Kan fibra- tion. By Proposition ??, we need only show that its fibers are contractible. The fiber of 푞푅 over 푢∶ 퐴 → 퐵 is isomorphic to the sub-quasi-category of the fiber of the isofibration Icon({휂}, 풦) ↠ Icon({푢}, 풦) over 푢 whose objects are pairs (푓, 휂) which have the property that 푓 is a left adjoint to the fixed 0-arrow 푢 with unit represented by 휂 and whose 1-simplices are all invertible. By Lemma 8.4.10, this isofibration is isomorphic to the coproduct of the family of projections 푝1 휋 ᄁ HomFun(퐵,퐵)(id퐵, ∘) −−→→ Fun(퐴, 퐵) × Fun(퐵, 퐴) −→→ Fun(퐴, 퐵) 퐴,퐵∈풦 whose fiber over 푢 is isomorphic to HomFun(퐵,퐵)(id퐵, 푢∗). Applying Proposition 4.1.4 to the adjunction between functor spaces

푓∗

Fun(퐵, 퐵) ⊥ Fun(퐵, 퐴)

푢∗ and the element id퐵 ∈ Fun(퐵, 퐵) reveals that (푓, 휂) is a initial in HomFun(퐵,퐵)(id퐵, 푢∗). So the fiber of 푞푅 over 푢 is isomorphic to the sub-quasi-category of HomFun(퐵,퐵)(id퐵, 푢∗) spanned by its initial elements and as such is a contractible Kan complex.⁶  8.4.14. Theorem (uniqueness of homotopy coherent extensions of a right adjoint).

⁶In any quasi-category in which every element is initial, all 1-arrows are isomorphisms, since the initial elements are also initial in its homotopy category, which must then be a groupoid. This proves that the quasi-category spanned by initial elements is in fact a Kan complex. Any adjunction between Kan complexes is an adjoint equivalence, so in particular the right adjoint !∶ 퐴 ⥲→ퟙ defines an equivalence, and hence a trivial fibration .

224 (i) The space 퐸푢 of homotopy coherent adjunctions with right adjoint 푢 is a contractible Kan complex. (ii) The forgetful functor 푝푅 ∶ cohadj(풦) ⥲→ rightadj(풦) is a trivial fibration of Kan complexes.

Proof. The space 퐸푢 is defined as the fiber of the composite fibration

푝푈 푞푅

∼ 푝푅 ∶ cohadj(풦) ∼ unit(풦) rightadj(풦) By Theorem 8.4.11 and Proposition 8.4.13, both maps are trivial fibrations of Kan complexes, hence so is the composite and thus its fiber is a contractible Kan complex.  Exercises. 8.4.i. Exercise. State and prove a relative version of Proposition 8.4.8, establishing the homotopical uniqueness of solutions to lifting problems of parental subcomputad inclusions against local isofibra- tions of quasi-categorically enriched categories. 8.4.ii. Exercise. Prove Lemma 8.4.10.

225

CHAPTER 9

The formal theory of homotopy coherent monads

9.1. Homotopy coherent monads The free homotopy coherent monad is defined as a full subcategory ℳ푛푑 ↪ 풜푑푗 on the object +. Via this definition, it inherits a graphical calculus from the graphical calculus established for 풜푑푗 in §8.1. 9.1.1. Definition (the free homotopy coherent monad). The free homotopy coherent monad ℳ푛푑 is the full subcategory of the free homotopy coherent adjunction 풜푑푗 on the object +. Proposition 8.1.10 gives us two definitions of ℳ푛푑:

• It is the 2-category regarded as a simplicial category with one object, with the hom-category 횫+, and with horizontal composition given by ordinal sum ⊕∶ 횫+ × 횫+ → 횫+. • It is the simplicial category with one object whose 푛-arrows are strictly undulating squiggles on (푛 + 1)-lines that start and end in the gap labeled +. 9.1.2. Lemma. The simplicial category ℳ푛푑 is a simplicial computad, though ℳ푛푑 ↪ 풜푑푗 is not a simpli- cial subcomputad inclusion. Proof. Horizontal composition in ℳ푛푑 is given by horizontal juxtaposition of squiggle diagrams that start and end at +. Thus, an 푛-arrow is atomic if and only if it has no instances of + in its interior. This proves that ℳ푛푑 is a simplicial computad, but note that ℳ푛푑 includes atomic arrows such as − − 1 푡 ≔ 푢푓 ≔ + and 휇 ≔ 푢휖푓 ≔ (9.1.3) + that do have − in their interiors and thus fail to be atomic in 풜푑푗.  Employing the graphical calculus, we discover another characterization of the atomic 푛-arrows of ℳ푛푑 in reference to the atomic 0-arrow 푡 defined in (9.1.3): 9.1.4. Lemma. An 푛-arrow in ℳ푛푑 is atomic if and only if its final vertex is 푡. In particular, 푡 is the unique atomic 0-arrow. Proof. The 푛-arrows are strictly undulating squiggles on (푛 + 1)-lines that start and end at the space labeled +; these are atomic if and only if there are no instances of + in their interiors.

227 This condition implies that if all the lines are removed except the bottom one, a process that computes the final vertex of the 푛-simplex, the resulting squiggle looks like a single hump over one line, which is the graphical representation of the 0-arrow 푡.  9.1.5. Definition. A monad in a 2-category is given by: • an object 퐵, • an endofunctor 푡∶ 퐵 → 퐵, 2 • and a pair of 2-cells 휂∶ id퐵 ⇒ 푡 and 휇∶ 푡 ⇒ 푡 so that the “unit” and “associativity” pasting equalities hold: 퐵 퐵 퐵 퐵 푡 퐵 퐵 푡 퐵 푡 푡 푡 푡 푡 푡 ⇓휂 = 푡 = 푡 = ⇓휂 ⇓휇 = ⇓휇 푡 ⇓휇 ⇓휇 푡 ⇓휇 ⇓휇 푡 푡 퐵 푡 퐵 퐵 퐵 푡 퐵 퐵 푡 퐵 퐵 푡 퐵 When these conditions are satisfied, we say that (푡, 휂, 휇) defines a monad on 퐵. 9.1.6. Lemma. The atomic arrows

푡 ≔ , 휂 ≔ , and 휇 ≔ 푢휖푓 ≔ define a monad (푡, 휂, 휇) on + in the 2-category ℳ푛푑.

Proof. The unit pasting identities of Definition 9.1.5 are witnessed by the atomic 2-arrows

푢훼 ≔ and 훽푓 ≔ .

The pair of atomic 2-arrows

and demonstrate that the left hand side and right-hand side of the associativity pasting equality have a common composite, namely the common first face



As a 2-category ℳ푛푑 has a familiar universal property. Lawvere’s characterization of (횫+, ⊕, [−1]) as the free strict monoidal category containing a monoid ([0], !∶ [−1] → [0], 휎0 ∶ [1] → [0]) tells us that ℳ푛푑 is the free 2-category containing a monad [35]: 9.1.7. Proposition. For any 2-category 풞, 2-functors ℳ푛푑 → 풞 correspond to monads in 풞.  These considerations motivate the following definition: 9.1.8. Definition (homotopy coherent monad). A homotopy coherent monad in a quasi-categorically enriched category 풦 is a simplicial functor 핋∶ ℳ푛푑 → 풦. Explicitly, a homotopy coherent monad consists of 228 • an object 퐵 ∈ 풦 and • a homotopy coherent diagram 핋∶ 횫+ → Fun(퐵, 퐵) that we refer to as the monad resolution of 핋 so that the diagram 핋×핋 횫+ × 횫+ Fun(퐵, 퐵) × Fun(퐵, 퐵) ⊕ ∘ 횫 Fun(퐵, 퐵) + 핋 commutes. This simplicial functoriality condition implies that the generating 0- and 1-arrows of the monad resolution have the following form: 휂푡푡 휂푡 휇푡 휂 휇 푡휂푡 id퐵 푡 푡푡 푡푡푡 ⋯ ∈ Fun(퐵, 퐵) (9.1.9) 푡휇 푡휂 푡푡휂 where (푡, 휂, 휇) denotes the image of the monad (푡, 휂, 휇) of Lemma 9.1.6 under 핋∶ ℳ푛푑 → 풦. We refer to the 0-arrow 푡∶ 퐵 → 퐵 as the functor part of the homotopy coherent monad 핋 and refer to the 1-arrows 휂 and 휇 as the unit and associativity maps. Note that for any generalized element 푏∶ 푋 → 퐵, the monad resolution (9.1.9) restricts to define a monad resolution 휂푡푡푏 휂푡푏 휇푡푏 푏 휂푏 푡푏 휇푏 푡푡푏 푡휂푡푏 푡푡푡푏 ⋯ ∈ Fun(푋, 퐵) (9.1.10) 푡휇푏 푡휂푏 푡푡휂푏 9.1.11. Example (free monoid monad). Let ℳ be a Kan-complex (or topologically) enriched category equipped with an enriched monoidal structure − ⊗ −∶ ℳ × ℳ → ℳ that admits countable conical coproducts that are preserved by the monoidal product separately in each variable. Then there exists a simplicially enriched endofunctor 푇∶ ℳ → ℳ defined on objects by 푇(푋) ≔ ᄁ 푋⊗푛 푛≥0 2 equipped with simplicial natural transformations 휂∶ idℳ ⇒ 푇 and 휇∶ 푇 ⇒ 푇 defined by including at the degree-one component and “distributing” the coproduct ⊗푛 푇2(푋) ≅ ᄁ ￶ᄁ 푋⊗푚 . 푛≥0 푚≥0

The monad resolution of this simplicially enriched monad defines a simplicial functor 횫+ ×ℳ → ℳ, regarding 횫+ as a simplicial category whose hom-spaces are sets. Applying the homotopy coherent nerve, 픑∶ 풦푎푛-풮풮푒푡 → 풬풞푎푡, this simplicially enriched monad defines the left action 횫+ ×픑ℳ → 픑ℳ of a homotopy coherent monad in 풬풞푎푡 on 픑ℳ.

229 More generally, any topologically enriched monad on a topologically enriched category defines a homotopy coherent monad on its homotopy coherent nerve. Any homotopy coherent monad 핋∶ ℳ푛푑 → 풦 defines a monad in the homotopy 2-category, sim- ply by composing with the canonical quotient functor discussed at the beginning of §8.4 and applying Proposition 9.1.7: 푄 ℳ푛푑 핋 풦 픥풦 However “monads up to homotopy” — that is, monads in the homotopy 2-category of an ∞-cosmos — cannot necessarily be made homotopy coherent. 9.1.12. Non-Example (a monad in the homotopy 2-category that is not homotopy coherent). Stasheff identifies homotopy associative 퐻-spaces that do not extend to 퐴∞-spaces; that is, monoids up to homotopy cannot necessarily be rectified into homotopy coherent monoids. Let (푀, 휂∶ ∗ → 푀, 휂∶ 푀 × 푀 → 푀) denote such an up-to-homotopy monoid. This structure defines a monad up to homotopy on the (large) quasi-category of spaces by applying the homotopy coherent nerve to the endofunctor 푀 × −∶ 풦푎푛 → 풦푎푛 and natural transformations induced by 휂 and 휖. This monad in 픥풬풞푎푡 cannot be made homotopy coherent. Exercises. 9.1.i. Exercise. 푛 (i) Show that ℳ푛푑 contains a unique atomic 1-arrow 휇 ∶ 푡 → 푡 for each 푛 ≥ 0, 휇 = id푡 being 푛 1 degenerate, but each of the other 휇 being non-degenerate. 푛 (ii) Identify the images of these atomic 1-arrows in the monad resolution (9.1.9). (iii) Given an interpretation for the 1-arrow 휇 that acknowledges the role played by 휇 in the 푛 3 proof of Lemma 9.1.6. 9.2. Homotopy coherent algebras and the monadic adjunction Homotopy coherent monads can be defined in any quasi-categorically (or merely simplically) en- riched category but we are particularly interested in homotopy coherent monads valued in ∞-cosmoi because the flexible weighted limits guaranteed by Corollary 7.3.3 permit us to construct the monadic adjunction, which relates the ∞-category on which the monad acts to the ∞-category of algebras. The universal property of the monadic adjunction associated to a homotopy coherent monad 핋∶ ℳ푛푑 → 풦 is very easy to describe, though some more work will be required to demonstrate that any ∞-cosmos 풦 admits such a construction. The monadic adjunction is the terminal adjunc- tion extending the homotopy coherent monad, which means that it is given by the right Kan extension along the inclusion 풜푑푗 픸핋 ⇓≅ ℳ푛푑 풦 핋 Since ℳ푛푑 ↪ 풜푑푗 is fully faithful, the value of the right Kan extension at + ∈ ℳ푛푑 is isomorphic to 퐵 ≔ 핋(+). By Example 7.1.19, the value of the right Kan extension at − ∈ ℳ푛푑 is computed as the 230 limit of 핋∶ ℳ푛푑 → 풦 weighted by the restriction of the covariant representable of 풜푑푗 at − along ℳ푛푑 ↪ 풜푑푗, which is how we will now define the weight 푊− for the ∞-category of algebras. 9.2.1. Observation (weights on ℳ푛푑). A weight on ℳ푛푑 is a simplicial functor 푊∶ ℳ푛푑 → 풮풮푒푡. Explicitly, to specify a weight on ℳ푛푑 is equivalent to specifying • a simplicial set 푊 ≔ 푊(+) • equipped with a left action of the simplicial monoid¹ (횫+, ⊕, [−1]) id ×⋅ [−1]×id 횫+ × 횫+ × 푊 횫+ × 푊 푊 횫+ × 푊 ⋅ 횫+ × 푊 푊 so that ⊕×id ⋅ ⋅

횫+ × 푊 ⋅ 푊 푊 Frequently, the simplicial set 푊 happens to be a quasi-category, in which case the weight 푊 on ℳ푛푑 is precisely a homotopy coherent monad on the quasi-category 푊. Relative to the encoding of weights on ℳ푛푑 as simplicial sets with a left 횫+-action, a map 푓∶ 푉 → ℳ푛푑 푊 ∈ 풮풮푒푡 is given by a map 푓∶ 푉 → 푊 of simplicial sets that is 횫+-equivariant in the sense that the diagram 푓 푉 푊 [−1]×id [−1]×id id ×푓 횫+ × 푉 횫+ × 푊 ⋅ ⋅ 푉 푊 푓 commutes. 9.2.2. Lemma. Let 푊∶ ℳ푛푑 → 풮풮푒푡 be a weight on ℳ푛푑 and let 푇∶ ℳ푛푑 → 풦 be a homotopy coherent monad on 퐵 ∈ 풦. Then a 푊-shaped cone over 핋 with summit 푋 is specified by a simplicial map 훾∶ 푊 → Fun(푋, 퐵) which makes the square 핋×훾 횫+ × 푊 Fun(퐵, 퐵) × Fun(푋, 퐵) ⋅ ∘

푊 훾 Fun(푋, 퐵)

Proof. By Observation 9.2.1, a simplicial natural transformation 훾∶ 푊 → Fun(푋, 핋−) is given by its unique component 훾∶ 푊 → Fun(푋, 퐵) subject to the equivariance condition: id ×훾 횫+ × 푊 횫+ × Fun(푋, 퐵) ⋅ ⋅

푊 훾 Fun(푋, 퐵)

¹The strict monoidal category (횫+, ⊕, [−1]) is a monoid in (풮풮푒푡, ×, ퟙ). Applying the nerve functor, (횫+, ⊕, [−1]) also defines a monoid in (풮풮푒푡, ×, ퟙ).

231 The right-hand action map is the transpose of the action map of the composite simplicial functor Fun(푋, 핋−)∶ ℳ푛푑 → 풬풞푎푡, this being

핋 Fun(푋,−) 횫+ Fun(퐵, 퐵) Fun(Fun(푋, 퐵), Fun(푋, 퐵)) which transposes to 핋×id ∘ 횫+ × Fun(푋, 퐵) Fun(퐵, 퐵) × Fun(푋, 퐵) Fun(푋, 퐵). Now the equivariance square coincides with the commutative square of the statement.  9.2.3. Example (notable weights on ℳ푛푑). We fix notation for a few notable weights on ℳ푛푑.

(i) Write 푊+ ∶ ℳ푛푑 → 풮풮푒푡 for the unique represented functor on ℳ푛푑, which is given by the quasi-category 횫+ = ℳ푛푑(+, +) = 풜푑푗(+, +) acted upon the left by itself via the ordinal sum map ⊕ 횫+ × 횫+ 횫+

(ii) Write 푊− ∶ ℳ푛푑 → 풮풮푒푡 for the restriction of the covariant representable functor 풜푑푗 → 풮풮푒푡 on − along ℳ푛푑 ↪ 풜푑푗. This weight is presented by the quasi-category 횫⊤ = 풜푑푗(−, +) acted upon the left by 횫+ by the ordinal sum map ⊕ 횫+ × 횫⊤ 횫⊤ which defines the horizontal composition in 풜푑푗 in Definition 8.1.1. There is a natural inclusion −⊕[0] 횫+ 횫⊤ ≅ ≅

풜푑푗(+, +) −∘푢 풜푑푗(−, +) that “freely adjoins a top element in each ordinal” or, in the graphical calculus of Definition 8.1.9, “precomposes a strictly undulating squiggle with 푢 ≔ (+, −).” This commutes with the left 횫+-actions and so defines an inclusion of weights 푊+ ↪ 푊− by Observation 9.2.1.²

Since 푊+ is the representable weight it is automatically flexible. By the first axiom of Definition

7.1.3 the 푊+-weighted limit of a homotopy coherent monad 핋 recovers the ∞-category lim푊+ 핋 ≅ 퐵 on which 핋 acts. ℳ푛푑 9.2.4. Lemma. The inclusion 푊+ ↪ 푊− is a projective cell complex in 풮풮푒푡 built by attaching projective 푛-cells 휕Δ[푛] × 푊+ ↪ Δ[푛] × 푊+ in dimensions 푛 > 0. In particular, 푊− is a flexible weight.

Proof. We apply Theorem 7.2.12 and prove that 푊+ ↪ 푊− is a projective cell complex by verify- ing that coll(푊+) ↪ coll(푊−) is a relative simplicial computad. Since 푊+ is flexible, it follows then that 푊− is too. The collage coll(푊−) can be identified with the non-full simplicial subcategory of 풜푑푗 containing two objects − (aka ⊤) and + and the hom-spaces 풜푑푗(−, +) and 풜푑푗(+, +) but with the hom-space from − to − trivial and the hom-space from + to − empty. Via the graphical calculus of Definition 8.1.9, we see that coll(푊−) is a simplicial category whose 푛-arrows are strictly undulating squiggles from − to + or from + to + with composition defined by concatenation at +. Its atomic 푛-arrows are then those that have no instances of + in their interiors.

²A “right adjoint” to the inclusion 푊+ ↪ 푊− will be described in the proof of Proposition 9.2.11.

232 Similarly, coll(푊+) is the simplicial category with two objects ⊤ and + and with the hom-spaces from ⊤ to + and from + to + both defined to be 풜푑푗(+, +), with the hom space from ⊤ to ⊤ trivial and the hom-space from + to ⊤ empty. This is also a simplicial computad in which the only atomic arrow from ⊤ to + is the identity 0-arrow corresponding to [−1] ∈ 풜푑푗(+, +) = 횫+; as before, the atomic arrows from + to + are the strictly undulating squiggles which have no instances of + in their interiors. To provide intuition for this simplicial computad structure on coll(푊+), recall that since the representable 푊+ defines a projective cell complex ∅ ↪ 푊+ built by attaching a single projective 0-cell at +, the proof of Theorem 7.2.12 tells us that the simplicial subcomputad inclusion ퟙ + ℳ푛푑 ↪ coll(푊+) is defined by adjoining a single atomic 0-arrow from ⊤ to + to the simplicial computad ퟙ + ℳ푛푑. The inclusion coll(푊+) ↪ coll(푊−) is bijective on the common subcategory ퟙ+ℳ푛푑 and defined by sending each 푛-arrow from ⊤ to + in coll(푊+), represented as a squiggle from + to +, to the squiggle from − to + defined by precomposing with 푢. This function carries the unique atomic 0-arrow from ⊤ to + in coll(푊+) to 푢, which is the unique atomic 0-arrow in coll(푊−) from ⊤ to +. Now Theorem 7.2.12 proves that 푊+ ↪ 푊− is a projective cell complex. Furthermore, since coll(푊+) ↪ coll(푊−) is surjective on atomic 0-arrows, only projective cells of positive dimension are needed to present 푊+ ↪ 푊− as a sequential composite of pushouts of projective 푛-cells 휕Δ[푛]×푊+ ↪ Δ[푛]×푊+.  Now let 풦 be an ∞-cosmos. 9.2.5. Definition. The ∞-category of 핋-algebras for a homotopy coherent monad 핋∶ ℳ푛푑 → 풦 in an ∞-cosmos 풦 is the flexible weighted limit lim푊− 핋. When 핋 acts on the ∞-category 퐵 via the monad resolution (9.1.9) with functor part 푡∶ 퐵 → 퐵, we write Alg (퐵) ≔ lim 핋 핋 푊− for the ∞-category of algebras. By Proposition 7.3.1(ii), the projective cell complex 푊+ ↪ 푊− induces an isofibration

lim푊− 핋 ↠ lim푊+ 핋 upon taking weighted limits defining a map that we denote by 푢푡 ∶ Alg (퐵) ↠ 퐵 and refer to as the 핋 monadic forgetful functor. This map is the leg of the 푊−-shaped limit cone indexed by the unique object + ∈ ℳ푛푑. By Corollary 7.3.3 and Lemma 9.2.4: 9.2.6. Proposition. Any homotopy coherent monad in an ∞-cosmos admits an ∞-category of algebras.  We now introduce the generic bar resolution 횫 → Fun(Alg (퐵), 퐵) associated to the ∞-category ⊤ 핋 of 핋-algebras for a homotopy coherent monad acting on 퐵. 9.2.7. Definition (generic bar resolution). The limit cone 훽∶ 푊 ⇒ Fun(Alg (퐵), 핋(−)) defines the − 핋 generic bar resolution of a homotopy coherent monad 핋 acting on an ∞-category 퐵. By Lemma 9.2.2 and Example 9.2.3, a 푊 -cone with summit Alg (퐵) ≔ lim 핋 over a homotopy coherent monad − 핋 푊− acting on 핋 is given by a simplicial map 훽∶ 횫 → Fun(Alg (퐵), 퐵) so that the square ⊤ 핋 핋×훽 횫 × 횫 Fun(퐵, 퐵) × Fun(Alg (퐵), 퐵) + ⊤ 핋 ∘ ∘

횫 Fun(Alg (퐵), 퐵) ⊤ 훽 핋

233 푡 푡 푡 푡 commutes. Under the identification 횫⊤ ≅ 풜푑푗(−, +), we write 푢 and 훽 ∶ 푡푢 → 푢 for the 0- and 1-arrows of Fun(Alg (퐵), 퐵) defined to be the images of 푢 and 푢휖 under 훽∶ 횫 → Fun(Alg (퐵), 퐵) 핋 ⊤ 핋 respectively. This 0-arrow 푢푡 is the monadic forgetful functor of Definition 9.2.5. Then in the notation of (9.1.9), the generic bar resolution has the form of a homotopy coherent diagram

휂푡푢푡 휂푢푡 휇푢푡 푢푡 푡푢푡 푡푡푢푡 푡푡푡푢푡 ⋯ ∈ Fun(Alg (퐵), 퐵) 푡휂푢푡 훽푡 핋 푡훽푡 (9.2.8) that restricts along the embedding 횫+ ↪ 횫⊤ that freely adjoins the top element in each ordinal to the monad resolution (9.1.10) applied to 푢푡. For any generalized element 푋 → Alg (퐵) of the ∞-category of 핋-algebras associated to a homo- 핋 topy coherent monad acting on 퐵, an 푋-family of 핋-algebras in 퐵, the generic bar resolution (9.2.8) restricts to define a bar resolution 휂푡푏 휂푏 휇푏 푏 푡푏 푡푡푏 푡푡푡푏 ⋯ (9.2.9) 훽 푡휂푏 푡훽

9.2.10. Proposition. The monadic forgetful functor 푢푡 ∶ Alg (퐵) ↠ 퐵 is conservative: for any 2-cell 훾 핋 with codomain Alg (퐵) if 푢푡훾 is invertible, then so is 훾. 핋 Proof. Conservativity of the functor 푢푡 asserts that for all 푋 the isofibration of quasi-categories 푢푡 ∶ Fun(푋, Alg (퐵)) ↠ Fun(푋, 퐵) reflects invertible 1-cells. Working with marked simplicial sets, ∗ 핋 this is the case just when this map has the right lifting property with respect to the inclusion ퟚ ↪ ퟚ♯ of the walking arrow into the walking marked arrow. By Definition 9.2.5, the monadic forgetful functor is defined by applying lim− 핋 to the projective cell complex 푊 ↪ 푊 of Lemma 9.2.4. By Proposition 7.3.1, the isofibration 푢푡 ∶ Alg (퐵) ↠ 퐵 + − 핋 then factors as the inverse limit of a tower of isofibrations, each layer of which is constructed as the pullback of products of projective cells 퐵Δ[푛] ↠ 퐵휕Δ[푛] for 푛 ≥ 1. The cosmological functor Fun(푋, −)∶ 풦 → 풬풞푎푡 preserves this limit, so 푢푡 ∶ Fun(푋, Alg (퐵)) ↠ Fun(푋, 퐵) is similarly the ∗ 핋 inverse limit of pullbacks of products of maps Fun(푋, 퐵)Δ[푛] ↠ Fun(푋, 퐵)휕Δ[푛] for 푛 ≥ 1. Since conservativity of a functor between quasi-categories may be captured by a lifting property, it suffices to show that the maps Fun(푋, 퐵)Δ[푛] ↠ Fun(푋, 퐵)휕Δ[푛] reflective invertibility of 1-simplices. Since for 푛 ≥ 1, the inclusion 휕Δ[푛] ↪ Δ[푛] is bijective on vertices, this is immediate from Lemma ??, which says that invertibility in exponentiated quasi-categories is detected pointwise.  We now show that any homotopy coherent monad 핋∶ ℳ푛푑 → 풦 on an ∞-category 퐵 in an ∞-cosmos extends to a homotopy coherent adjunction 픸핋 ∶ 풜푑푗 → 풦 whose right adjoint is 푢푡. 9.2.11. Proposition (the monadic adjunction). For any homotopy coherent monad 핋∶ ℳ푛푑 → 풦 on 퐵, the monadic forgetful functor 푢푡 ∶ Alg (퐵) → 퐵 is the right adjoint of a homotopy coherent adjunction 핋

234 픸핋 ∶ 풜푑푗 → 풦

푓푡 푡 푡 푡 푡 푡 푡 퐵 ⊥ Alg (퐵) 휂 ∶ id퐵 ⇒ 푢 푓 휖 ∶ 푓 푢 ⇒ idAlg (퐵) . 핋 핋 푢푡 whose underlying homotopy coherent monad is 핋. This constructs the monadic adjunction of the homotopy coherent monad. In particular, the triple (푢푡푓푡, 휂푡, 푢푡휖푡푓푡) recovers the monad (푡, 휂, 휇) on 퐵 defined in 9.1.8.

Proof. Recall the weights 푊+ and 푊− are defined in Example 9.2.3 to be restrictions of the representable functors on 풜푑푗; in the case of 푊+ this restriction defines the representable functor for ℳ푛푑 since the inclusion ℳ푛푑 ↪ 풜푑푗 is full on +. The weight for the monadic homotopy coherent adjunction is defined to be the composite of the Yoneda embedding with the restriction functor

풜푑푗op 풴 풮풮푒푡풜푑푗 res 풮풮푒푡ℳ푛푑

+ 푊+ 푓 ⊣ 푢̄ ↦ −∘푓 ⊢ −∘푢 − 푊− which can be interpreted as defining an adjunction of weights whose left and right adjoints, in the encoding of Observation 9.2.1, are given by the maps −∘푢

횫+ ⊥ 횫⊤ −∘푓 that act on strictly undulating 푛-arrows by precomposing with 푢 = (+, −) or 푓 = (−, +) as appro- priate; these maps commute with the left 횫+-actions by postcomposition with a strictly undulating squiggle from + to +. Composing with the weighted limit functor lim− 핋 defines a simplicial functor 핋 픸 ≔ limres 풴(−) 핋∶ 풜푑푗 → 풦, i.e., a homotopy coherent adjunction between lim 핋 ≅ 퐵 and lim 핋 ≅ Alg (퐵) whose right 푊+ 푊− 핋 adjoint is given by the action of the 0-arrow 푢, which is the monadic forgetful functor 푢푡 ∶ Alg (퐵) → 핋 퐵 is defined in 9.2.5. Finally, the underlying homotopy coherent monad of the homotopy coherent adjunction just con- structed is defined to be the limit of 핋∶ ℳ푛푑 → 풦 weighted by

ℳ푛푑op 풜푑푗op 풴 풮풮푒푡풜푑푗 res 풮풮푒푡ℳ푛푑 which is just the Yoneda embedding for ℳ푛푑. By the first axiom of Definition 7.1.3, this functor is isomorphic to 핋.  In §9.4, we give a characterization of the monadic adjunction of a homotopy coherent monad. To build towards this result, we spend the next section establishing important special properties of the

235 monadic forgetful functor 푢푡 ∶ Alg (퐵) ↠ 퐵 and its left adjoint 푓푡 ∶ 퐵 → Alg (퐵), whose essential 핋 핋 image identifies the free 핋-algebras. Exercises. 9.2.i. Exercise. Prove that the ∞-category of algebras associated to the homotopy coherent monad 푊+ ∶ ℳ푛푑 → 풬풞푎푡 on 횫+ is 횫⊥. What is the monadic adjunction? 9.3. Limits and colimits in the ∞-category of algebras The key technical insight enabling Beck’s proof of the monadicity theorem [1] is the observation that any algebra is canonically a colimit of a particular diagram of free algebras. In the case of a monad (푡, 휂, 휇) acting on a 1-category 퐵, the data of a 푡-algebra in 퐵 is given by a 푢푡-split coequalizer diagram 휂푡푏 휂푏 휇푏 푡2푏 푡휂푏 푡푏 훽 푏 (9.3.1) 푡훽 Here the solid arrows are maps which respect the 푡-algebra structure where the dotted splittings do not. Split coequalizers are examples of absolute colimits, which are preserved by any functor, and in particular by 푡∶ 퐵 → 퐵, a fact we may exploit to show that the underlying fork of (9.3.1) defines a reflexive coequalizer diagram in the category of 푡-algebras. In the ∞-categorical context, we require a higher-dimensional version of the diagram (9.3.1), namely the bar resolution constructed in (9.2.9) for any generalized element 푋 → Alg (퐵) of the 핋 ∞-category of 핋-algebras for a homotopy coherent monad acting on 퐵. This replaces the 푢푡-split coequalizer by a canonically-defined 푢푡-split augmented simplicial object. Before defining this special class of colimits, we establish a more general result: 9.3.2. Proposition. Let 핋∶ ℳ푛푑 → 풦 be a homotopy coherent monad on an ∞-category 퐵 with functor part 푡∶ 퐵 → 퐵. Then if 퐵 admits and 푡 preserves colimits of shape 퐽, then the monadic forgetful functor 푢푡 ∶ Alg (퐵) → 퐵 creates colimits of shape 퐽. 핋 Proof. The 0-arrows in the image of a homotopy coherent monad 핋∶ ℳ푛푑 → 풦 are given by the identity functor at 퐵, the “functor part” 푡∶ 퐵 → 퐵 defined as the image of the unique atomic 0-arrow of ℳ푛푑, and finite composites 푡푛 ∶ 퐵 → 퐵 for each 푛 ≥ 1. If 푡 preserves colimits of shape 퐽 in 퐵, then so does 푡푛. Thus, in the case where 퐵 admits and 푡 preserves 퐽-shaped colimits, the homotopy coherent monad lifts to homotopy coherent monad 핋∶ ℳ푛푑 → 풦⊥,퐽 in the ∞-cosmos of Proposition 7.4.14. Since the inclusion 풦⊥,퐽 ↪ 풦 creates flexible weighted limits, such as those weighted by 푊−, it follows that the limit cone 푢푡 ∶ Alg (퐵) ↠ 퐵 lifts to 풦 . This monadic forgetful functor is the 핋 ⊥,퐵 unique 0-arrow component of the limit cone, so by Proposition 7.4.14 this tells us that Alg (퐵) admits 핋 and 푢푡 ∶ Alg (퐵) ↠ 퐵 creates 퐽-shaped colimits. 핋 

A dual argument, employing the ∞-cosmos 풦⊤,퐽 of ∞-categories that admit and functors that preserve 퐽-indexed limits, proves that if 퐵 admits and 푡 preserves limits of shape 퐽, then the monadic forgetful functor 푢푡 ∶ Alg (퐵) ↠ 퐵 creates limits of shape 퐽. We don’t explicitly consider this dual ver- 핋 sion here, however, because we will prove a stronger result in Theorem 9.3.9 that drops the hypotheses on 푡.

236 9.3.3. Definition (푢-split simplicial objects). The image of the embedding

op [0]⊕− 횫+ 횫⊤ ≅ ≅

풜푑푗(−, −) 푢∘− 풜푑푗(−, +) is the subcategory of 횫⊤ generated by all of its elementary operators except for the face operators 훿0 ∶ [푛 − 1] → [푛] for each 푛 ≥ 1. We refer to these extra face maps as splitting operators. By Defini- op tion 2.3.9, a simplicial object 푋 → 퐵횫 in 퐵 admits an augmentation if it lifts along the restriction op op op functor 퐵횫+ ↠ 퐵횫 , and an augmented simplicial object 푋 → 퐵횫+ in 퐵 admits a splitting if it op lifts along the restriction functor 퐵횫⊤ ↠ 퐵횫+ . Thus, given any functor 푢∶ 퐴 → 퐵 of ∞-categories, op op the ∞-categories 푆횫 (푢) and 푆횫+ (푢) of 푢-split simplicial objects and 푢-split augmented simplicial objects in 퐴 are defined by the pullbacks

op op 푆횫 (푢) 퐵횫⊤ 푆횫+ (푢) 퐵횫⊤ ⌟ ⌟ res res

op op op op 퐴횫 퐵횫 퐴횫+ 퐵횫+ 횫op op 푢 푢횫+ and there exists a forgetful functor

op op 퐴횫+ 푆횫+ (푢)

res 퐵횫⊤

op op 퐴횫 푆횫 (푢)

Our interest in these notions is explained by the following example: if 푢∶ 퐴 → 퐵 is a right adjoint functor between ∞-categories, any homotopy coherent adjunction extending 푢 defines a canonical 푢-split augmented simplicial object. 9.3.4. Lemma. Let 픸∶ 풜푑푗 → 풦 be a homotopy coherent adjunction with right adjoint 푢∶ 퐴 → 퐵. Then the comonad resolution and bar resolution bar 퐴 퐵횫⊤

푘• res op op 횫+ 횫+ 퐴 op 퐵 푢횫+ op jointly define a 푢-split augmented simplicial object 퐴 → 푆횫+ (푢). Proof. Functoriality of 픸 supplies a commutative diagram below-left op 픸 횫+ ≅ 풜푑푗(−, −) Fun(퐴, 퐴)

푢∘− 푢∘−

횫 ≅ 풜푑푗(−, +) Fun(퐴, 퐵) ⊤ 픸

237 which internalizes to the commutative diagram of the statement. By the definition of the ∞-category op of 푢-split augmented simplicial objects in 9.3.3, this induces the claimed functor 퐴 → 푆횫+ (푢). Thus op 횫+ the comonad resolution 푘• ∶ 퐴 → 퐴 defines an augmented simplicial object in 퐴 that is 푢-split by the bar resolution for 픸.  9.3.5. Proposition. The monadic forgetful functor 푢푡 ∶ Alg (퐵) → 퐵 creates colimits of 푢푡-split simplicial 핋 objects. Moreover, for any 푢푡-split augmented simplicial object, the augmentation defines the colimit cone for the underlying simplicial object in Alg (퐵). 핋 Proof. The ∞-category of 푢푡-split simplicial objects is defined by the pullback

op 푆횫 (푢푡) 퐵횫⊤ ⌟ res

횫op 횫op Alg (퐵) op 퐵 핋 (푢푡)횫

By Proposition 2.3.11, the canonical 2-cell (2.3.10) defined by the initial object in 횫+ defines an absolute left lifting diagram 퐵 ev−1 op Δ (9.3.6) ⇑퐵휈 op op op 횫 푡 횫⊤ 횫+ 횫 푆 (푢 ) 퐵 res 퐵 res 퐵 that is also an absolute colimit in 퐵, preserved by all functors and in particular by 푡∶ 퐵 → 퐵. Now Proposition 9.3.2 tells us that 푢푡 ∶ Alg (퐵) ↠ 퐵 creates this colimit, which means that there 핋 exists an absolute left lifting diagram as below-left

푢푡 Alg (퐵) Alg (퐵) 퐵 퐵 핋 핋 ev−1 colim colim Δ = Δ Δ Δ op ⇑휆 ⇑휆 ⇑퐵휈 op op op op op op op op 횫 푡 횫 횫 푡 횫 횫 횫 푡 횫+ 횫 푆 (푢 ) Alg (퐵) 푆 (푢 ) Alg (퐵) op 퐵 푆 (푢 ) 퐵 res 퐵 핋 핋 (푢푡)횫 op op op that when postcomposed with (푢푡)횫 ∶ Alg (퐵)횫 ↠ 퐵횫 recovers the absolute left lifting diagram 핋 (9.3.6), in the sense expressed by the pasting equality above-right. Thus, the monadic forgetful functor creates colimits of 푢푡-split simplicial objects in Alg (퐵). 핋 op op Upon precomposing with the 푆횫+ (푢푡) → 푆횫 (푢푡) the fact that Proposition 9.3.2 tells us that 푢푡 ∶ Alg (퐵) ↠ 퐵 creates the colimit (9.3.6) also means that whenever there exists a pasting equality 핋 푡 Alg (퐵) 푢 퐵 퐵 핋 ev ev−1 −1 Δ = Δ op Δ ⇑Alg (퐵)휈 휈op 핋 ⇑퐵 op op op op op op op 횫+ 푡 횫+ 횫 횫 횫+ 푡 횫⊤ 횫+ 횫 푆 (푢 ) Alg (퐵) res Alg (퐵) op 퐵 푆 (푢 ) 퐵 res 퐵 res 퐵 핋 핋 (푢푡)횫

238 such as arises here by 2-functoriality of the simplicial cotensor construction, the 2-cell Alg (퐵) 핋 ev−1 op Δ ⇑Alg (퐵)휈 핋 op op op 푆횫+ (푢푡) Alg (퐵)횫+ Alg (퐵)횫 핋 res 핋 is an absolute left lifting diagram. This proves that 푢푡 ∶ Alg (퐵) ↠ 퐵 creates colimits of 푢푡-split 핋 simplicial objects.  Now, as displayed by the bar resolution (9.2.8), any 핋-algebra in 퐵 canonically gives rise to a 푢푡-split simplicial object to which Proposition 9.3.5 applies; the bar resolution 횫 → Fun(Alg (퐵), 퐵) ⊤ 핋 op internalizes to a diagram bar∶ Alg (퐵) → 퐵횫⊤. The colimit cone in Alg (퐵) is given by the 횫 -shaped 핋 핋 + subdiagram of the bar resolution that omits the dashed maps

휂푡푢푡 푡 휂푢 푡 푢푡 푡푢푡 휇푢 푡푡푢푡 푡푡푡푢푡 ⋯ 푡휂푢푡 훽푡 푡훽푡 This subdiagram admits a concise description: it is the comonad resolution for the comonad induced 푡 푡 op by the monadic adjunction 푓 ⊣ 푢 on Alg (퐵), this being a functor 횫+ → Fun(Alg (퐵), Alg (퐵)) 핋 op 핋 핋 that internalizes to a functor 푘푡 ∶ Alg (퐵) → Alg (퐵)횫+ . • 핋 핋 9.3.7. Theorem (canonical colimit representation of algebras). For any homotopy coherent monad 핋 op on 퐵, the induced comonad resolution 푘푡 ∶ Alg (퐵) → Alg (퐵)횫+ on the ∞-category of 핋-algebras in 퐵 • 핋 핋 encodes an absolute left lifting diagram Alg (퐵) Alg (퐵) 핋 핋 ev−1 Δ ≔ op Δ (9.3.8) ⇑훽 ⇑Alg (퐵)휈 op op 핋 op 횫 횫+ 횫 Alg (퐵) 푡 Alg (퐵) Alg (퐵) 푡 Alg (퐵) res Alg (퐵) 핋 푘• 핋 핋 푘• 핋 핋 created from the 푢푡-split simplicial object in 퐵.

푡 Alg (퐵) 푢 퐵 퐵 핋 ev ev−1 −1 Δ Δ op Δ = ⇑Alg (퐵)휈 휈op 핋 ⇑퐵 op op op op op Alg (퐵) Alg (퐵)횫+ Alg (퐵)횫 퐵횫 Alg (퐵) 퐵횫⊤ 퐵횫+ 퐵횫 푡 res 푡 횫op res res 핋 푘• 핋 핋 (푢 ) 핋 bar Thus (9.3.8) exists the algebras for a homotopy coherent monad as colimits of canonical simplicial objects of free algebras. Proof. Applying Lemma 9.3.4 to the monadic adjunction of Proposition 9.2.11, we see that the op comonad resolution 푘푡 ∶ Alg (퐵) → Alg (퐵)횫+ on Alg (퐵) and the bar resolution bar∶ Alg (퐵) → • 핋 핋 핋 핋

239 퐵횫⊤ defined in (9.2.8) together define a canonical 푢푡-split augmented cosimplicial object:

bar Alg (퐵) 핋

op 푆횫+ (푢푡) 퐵횫⊤ 푡 ⌟ 푘• res

op op Alg (퐵)횫+ 퐵횫+ 핋 op (푢푡)횫+ Now the claimed result follows immediately from Proposition 9.3.5.  Our final task for this section is to generalize the dual of Proposition 9.3.2, proving that the monadic forgetful functor creates all limits that 퐵 admits, whether or not 푡 preserves them. 9.3.9. Theorem. Let 핋∶ ℳ푛푑 → 풦 be a homotopy coherent monad on an ∞-category 퐵. Then the monadic forgetful functor 푢푡 ∶ Alg (퐵) → 퐵 creates all limits that 퐵 admits. 핋 Proof. See [50, §5] for now.  Exercises. 9.4. The monadicity theorem Consider an adjunction 푓

퐴 ⊥ 퐵 휂∶ id퐵 ⇒ 푢푓, 휖∶ 푓푢 ⇒ id퐴 푢 between ∞-categories, that is in the homotopy 2-category of an ∞-cosmos. Theorem 8.3.4 proves that this data lifts to a homotopy coherent adjunction 픸∶ 풜푑푗 → 풦, which then restricts to define a homotopy coherent monad 핋∶ 풜푑푗 → 풦 on 퐵. Proposition 9.2.11 then constructs a new homo- topy coherent adjunction with 핋 as its underlying homotopy coherent monad: namely the monadic adjunction 푓푡 ⊣ 푢푡 between 퐵 and the ∞-category of 핋-algebras Alg (퐵). Immediately from its 핋 construction as a right Kan extension — there is a simplicial natural transformation from the first homotopy coherent adjunction to the second whose component at + is the identity and whose com- ponent at − defines a functor that we call 푟∶ 퐴 → Alg (퐵) commuting strictly with all of the data of 핋 each homotopy coherent adjunction 푟

퐴 Alg (퐵)

푓 푢푡 핋 ⊤ ⊤ 푢 퐵 푓푡 This monadicity theorem, originally proven for 1-categories by Beck [1] and first proven for quasi- categories by Lurie [37], supplies conditions under which this comparison functor 푟 is an equivalence, so that the ∞-category 퐴 can be identified with the ∞-category of 핋-algebras. 240 To construct this simplicial natural transformation, we re-express the ∞-category of algebras as a weighted limit of the full homotopy coherent adjunction diagram, not merely as a weighted limit of its underlying homotopy coherent monad. 9.4.1. Proposition. The ∞-category of algebras associated to the homotopy coherent monad underlying a homotopy coherent adjunction 픸∶ 풜푑푗 → 풦 is the limit weighted by the weight lan 푊− defined by the left Kan extension 풜푑푗 lan 푊− ⇑≅ ℳ푛푑 풮풮푒푡 푊−

Explicitly, lan 푊− ∶ 풜푑푗 → 풮풮푒푡 is the homotopy coherent adjunction displayed on the top below 푓∘−

op lan 푊− 횫 ⊥ 횫⊤ ↭ 풜푑푗 풮풮푒푡

푢∘− 푓∘−

풜푑푗 풜푑푗(−, −) ⊥ 풜푑푗(−, +) ↭ 풜푑푗 − 풮풮푒푡

푢∘− defined by restricting the domain of the right adjoint and codomain of the left adjoint of the representable op adjunction 풜푑푗 along the canonical inclusion 횫op ↪ 횫 − + Proof. Recall Lemma 7.1.20, which says that the weighted limit of a restricted diagram can be computed as the limit of the original diagram weighted by the left Kan extension of the weight. Thus 풜푑푗 lim 픸 ≅ limℳ푛푑 res 픸 lan 푊− 푊− recovers the ∞-category of algebras for the homotopy coherent monad underlying 픸. All that remains is to compute the functor lan 푊− ∶ 풜푑푗 → 풮풮푒푡 explicitly. Because the inclusion ℳ푛푑 ↪ 풜푑푗 is full on +, lan 푊−(+) ≅ 푊−(+) ≅ 풜푑푗(−, +), since 푊− was defined as the restriction of the covariant representable functor 풜푑푗 ∶ 풜푑푗 → 풮풮푒푡 along ℳ푛푑 ↪ 풜푑푗. By the standard − formula for left Kan extensions reviewed in Example 7.1.19 presented in the form of (7.1.6), the value of lan 푊− at the object − is computed by ℳ푛푑 lan 푊−(−) ≅ ル 풜푑푗(+, −) × 풜푑푗(−, +)

∘×id ≅ coeq ￶ 풜푑푗(+, −) × 풜푑푗(+, +) × 풜푑푗(−, +) 풜푑푗(+, −) × 풜푑푗(−, +)  . id ×∘ By associativity of composition in 풜푑푗, the composition map 풜푑푗(+, −) × 풜푑푗(−, +) ∘ 풜푑푗(−, −) defines a cone under the coequalizer diagram. By the graphical calculus and Proposition 8.1.10, the op image of this map in 풜푑푗(−, −) ≅ 횫+ is comprised of those strictly undulating squiggles from − to −

241 op op that pass through +. This is the subcategory 횫 ↪ 횫+ . In fact, we claim that ∘×id 풜푑푗(+, −) × 풜푑푗(+, +) × 풜푑푗(−, +) 풜푑푗(+, −) × 풜푑푗(−, +) ∘ 횫op (9.4.2) id ×∘ is a coequalizer diagram. The map from the coequalizer to 횫op is surjective for the reason just de- scribed: a strictly undulating squiggle from − to − that passes through + can be decomposed as a horizontal composite of a squiggle in 풜푑푗(−, +) followed by a squiggle in 풜푑푗(+, −). To see that the map from the coequalizer to 횫op is injective, consider two distinct subdivisions of a squiggle from − to − into a pair of squiggles from − to + and from + to −. The subsquiggle between the two chosen + symbols in this an element of 풜푑푗(+, +), and thus this pair of elements of 풜푑푗(+, −) × 풜푑푗(−, +) are identified in the coequalizer diagram.  9.4.3. Lemma. For any homotopy coherent adjunction 픸∶ 풜푑푗 → 풦, there exists a simplicial natural trans- 풜푑푗 formation from 픸 to the monadic adjunction lim 픸∶ 풜푑푗 → 풦 whose components at + and − defined lan 푊− on weights by the counit of the adjunction

lan 휖 lan 푊 = lan res 풜푑푗 − 풜푑푗 − − − 풮풮푒푡풜푑푗 ⊥ 풮풮푒푡ℳ푛푑 휖+ res 풜푑푗 ≅ lan res 풜푑푗 풜푑푗 + + ≅ +

Proof. Consider the diagram of weights in 풮풮푒푡풜푑푗. 휖

풜푑푗 −∘푓 lan res(−∘푢) lan res 풜푑푗 − −

⊥ ⊥ −∘푢 풜푑푗 ≅ lan res 풜푑푗 lan res(−∘푓) + + Applying these weights to a homotopy coherent adjunction 픸∶ 풜푑푗 → 풦 with underlying adjunction 푓 ⊣ 푢∶ 퐴 → 퐵 yields 푟

퐴 Alg (퐵)

푓 푢푡 핋 ⊤ ⊤ 푢 퐵 푓푡 with the component 휖− inducing the non-identity component of the canonical comparison functor with the monadic adjunction.  9.4.4. Example. Returning to Example 9.1.11, there is a Kan-complex enriched category ℳ표푛(ℳ) of monoids in ℳ equipped with a simplicially enriched adjunction 퐹 ℳ표푛(ℳ) ⊥ ℳ

242 Applying the homotopy coherent nerve, this defines a homotopy coherent adjunction between the quasi-categories 픑ℳ표푛(ℳ) and 픑ℳ. By Lemma 9.4.3, there is a canonical comparison map to the monadic homotopy coherent adjunction 푟

픑ℳ표푛(ℳ) Alg (픑ℳ) 푓 푢푡 핋

⊤ ⊤ 푢 픑ℳ 푓푡 that is not an equivalence. Elements of 픑ℳ표푛(ℳ) are strict monoids in ℳ, while elements of Alg (픑ℳ) are homotopy coherent monoids, objects 푋 ∈ ℳ equipped with 푛-ary multiplication 핋 ⊗푛 maps 휇푛 ∶ 푋 → 푋 for all 푛 that are coherently associative up to higher homotopy. 9.4.5. Lemma. Let 픸∶ 풜푑푗 → 풦 be a homotopy coherent adjunction with right adjoint 푢∶ 퐴 → 퐵 and let 픸핋 ∶ 풜푑푗 → 풦 be the associated monadic adjunction. Then there is a canonical functor 퐿∶ Alg (퐵) → op 핋 퐴횫 that op (i) is 푢-split by the bar resolution bar∶ Alg (퐵) → 퐵횫 , 핋op (ii) is so that the composite 퐿 ∘ 푟∶ 퐴 → 퐴횫 is the simplicial object underlying the comonad resolution op 푘 ∶ 퐴 → 퐴횫+ , and • op op (iii) is so that the composite 푟횫 ∘ 퐿∶ Alg (퐵) → Alg (퐵)횫 is the simplicial object underlying the 핋 op 핋 comonad resolution 푘푡 ∶ Alg (퐵) → Alg (퐵)횫+ . • 핋 핋 Proof. The first two statements ask for a functor 퐿 that fits into a commutative diagram below- left op 푘• ∘ op 퐴 퐴횫+ 풜푑푗 풜푑푗 × 횫 − − + res 푟 휖 op Alg (퐵) 퐿 퐴횫 ↭ lan res 풜푑푗 ∘ 풜푑푗 × 횫op 핋 − − 횫op bar 푢 ∘ (−∘푢)×id op 퐵횫⊤ 퐵횫 풜푑푗 × 횫 풜푑푗 × 횫op res + ⊤ id ×(푢∘−) + in which each of the objects and all but the map 퐿 have been described as maps induced by taking weighted limits of the homotopy coherent adjunction diagram, with the weights in 풮풮푒푡풜푑푗 displayed above-right. By the Yoneda lemma, each of the three maps of weights labeled “∘” are defined by a op single map of simplicial sets. In the case of ∘∶ 풜푑푗 × 횫 → 풜푑푗 the Yoneda lemma says it suffices − + − op op to define a map 횫 → 풜푑푗 (−) = 횫 ; we take this map to be the identity, which implies that + − + op ∘∶ 풜푑푗 ×횫 → 풜푑푗 acts in both components by composing over − in 풜푑푗. In light of the explicit − + − description of the adjunction lan res 풜푑푗 given in Proposition 9.4.1 the other two maps labelled “∘” − may be defined similarly by identity maps. Since the dashed map makes the right-hand diagram of weights commute, the induced functor on weighted limits has the desired properties (i) and (ii).

243 The final statements demands commutativity of the diagram below left, which again follows from the commutativity of the corresponding diagram of weights below-right Alg (퐵) lan res 풜푑푗 핋 − 푡 푘• ∘ 퐿 ↭ ∘

횫op 횫op op op 퐴 op Alg (퐵) 풜푑푗 × 횫 lan res 풜푑푗 × 횫 푟횫 핋 − 휖×id − this just amounting to the simple observation that the counit component 휖∶ lan res 풜푑푗 ↪ 풜푑푗 is − − op op just given by the natural inclusion 횫 ↪ 횫+ .  9.4.6. Lemma. Given any homotopy coherent adjunction with left adjoint 푓∶ 퐵 → 퐴, the diagram defined op 횫+ by restricting the canonical cone (2.3.10) built from the interalized comonad resolution 푘• ∶ 퐴 → 퐴 along 푓∶ 퐵 → 퐴 퐴 퐴 푓 ev−1 Δ ≔ op Δ ⇑휁 ⇑퐴휈 op op op 횫 횫+ 횫 퐵 퐴 퐵 퐴 퐴 res 퐴 푘•푓 푓 푘• 횫op displays 푓 as an absolute colimit of the family of diagrams 푘•푓∶ 퐵 → 퐴 . Proof. The homotopy coherent adjunction provides a commutative diagram below-left

op 픸 푓 횫+ Fun(퐴, 퐴) 퐵 퐴

푓∘− 푓∘− cobar 푘• op 픸 횫⊤ res 횫+ 횫⊥ Fun(퐵, 퐴) 퐴 퐴 which transposes to the commutative diagram above-right, which tells us that when the internalized op 횫+ comonad resolution 푘• ∶ 퐴 → 퐴 is restricted along 푓, it extends to a split augmented simplicial op object, with the splittings on the opposite side as usual; this is no matter since 횫+ , considered as a full sub 2-category of 풮풮푒푡 spanned by finite ordinals, is isomorphic to its co-dual via an isomorphism co that commutes with 횫⊤ ≅ 횫⊥ This tells us that the colimit cone of the statement is the one of Proposition 2.3.11.  There are many versions of the monadicity theorem. For expediency’s sake, we prove just one for now. We break its statement into two parts, first constructing a left adjoint to the canonical comparison functor, which under additional hypotheses we prove defines an adjoint equivalence. 9.4.7. Theorem. Let 픸∶ 풜푑푗 → 풦 be a homotopy coherent adjunction with right adjoint 푢∶ 퐴 → 퐵 with underlying homotopy coherent monad 핋∶ ℳ푛푑 → 풦. If 퐴 admits colimits of 푢-split simplicial objects then the canonical comparison functor admits a left adjoint: ℓ 퐴 ⊥ Alg (퐵) 핋 푟

244 Proof. If 퐴 admits colimits of 푢-split simplicial objects, then there exists an absolute left lifting op of the 푢-split simplicial object 퐿∶ Alg (퐵) → 퐴횫 defined in Lemma 9.4.5 핋 퐴 ℓ Δ (9.4.8) ⇑휆 op Alg (퐵) 퐴횫 핋 퐿 whose functor part we take to be the definition of the left adjoint ℓ∶ Alg (퐵) → 퐴. By Lemma 핋 9.4.5(ii), the diagram defined by restricting along 푟 agrees with the cosimplicial object underlying the comonad resolution, which has a canonical cone (2.3.10) as displayed below-left:

퐴 퐴 ev−1 ℓ op Δ = ∃!⇑휖 Δ (9.4.9) ⇑퐴휈 ⇑휆 op op op 횫+ 횫 횫 퐴 퐴 res 퐴 퐴 Alg (퐵) 퐴 푘• 푟 핋 퐿 By the universal property of the absolute left lifting diagram (ℓ푟, 휆푟), this induces a unique 2-cell 휖∶ ℓ푟 ⇒ id퐴. The unit is induced from the absolute left lifting diagram (9.3.8). By Lemma 9.4.5(iii), the comonad op op resolution 푘푡 ∶ Alg (퐵) → Alg (퐵)횫 factors as 푟횫 ⋅ 퐿, so the pasted composite below left factors • 핋 핋 through the absolute left lifting diagram as below right. 퐴 푟 Alg (퐵) 퐴 푟 Alg (퐵) 핋 핋 ℓ ∃!⇑휂 Δ Δ = ℓ Δ (9.4.10) ⇑휆 ⇑훽 op op op Alg (퐵) 퐴횫 Alg (퐵)횫 Alg (퐵) Alg (퐵)횫 횫op 푡 핋 퐿 푟 핋 핋 푘• 핋 To verify the triangle equalities, note that by construction

퐴 푟 Alg (퐵) 퐴 푟 Alg (퐵) 핋 핋 ⇑휂 ℓ ℓ Δ = ⇑휖 Δ Δ ⇑휖 ⇑훽 ⇑휆 op op op 퐴 Alg (퐵) Alg (퐵)횫 퐴 Alg (퐵) 퐴횫 Alg (퐵)횫 푟 푡 푟 횫op 핋 푘• 핋 핋 퐿 푟 핋 퐴 푟 Alg (퐵) Alg (퐵) 핋 핋 = Δ op Δ = Δ ⇑퐴휈 ⇑훽 op op op 퐴 퐴횫 Alg (퐵)횫 퐴 Alg (퐵) Alg (퐵)횫 횫op 푟 푡 푘• 푟 핋 핋 푘• 핋 op the last equality following from simplicial naturality of 푟 and the definition of 훽 as Alg (퐵)휈 in 핋 Theorem 9.3.7. Thus the triangle equality composite 푟휖 ⋅ 휂푟 = id푟. It follows that the other triangle equality composite 휙 ≔ 휖ℓ ⋅ ℓ휂 is an idempotent: 휙 ⋅ 휙 ≔ (휖ℓ ⋅ ℓ휂) ⋅ (휖ℓ ⋅ ℓ휂) = 휖ℓ ⋅ 휖ℓ푟ℓ ⋅ ℓ푟ℓ휂 ⋅ ℓ휂 = 휖ℓ ⋅ ℓ푟휖ℓ ⋅ ℓ휂푟ℓ ⋅ ℓ휂 = 휖ℓ ⋅ ℓ휂 ≕ 휙,

245 so to prove that 휖ℓ ⋅ ℓ휂 = idℓ it suffices to show that 휙 is an isomorphism. To demonstrate this, we will show: (i) that 휙푓푡 is invertible, i.e., that 휙 is an isomorphism when restricted to free 핋-algebras (ii) and that the putative left adjoint ℓ preserves the canonical colimit (9.3.8) that expresses every 핋-algebra as a colimit of free 핋-algebras. We then combine (i) and (ii) to argue that 휙 is invertible. To this end, we first observe by Lemma 9.4.6 and the definition of ℓ above that we have a pair of absolute left lifting diagrams: 퐴 퐴 푓 ℓ Δ ≅ Δ ⇑ ⇑휆 op op 퐵 퐴횫 퐵 Alg (퐵) 퐴횫 푘•푓 푓푡 핋 퐿 By simplicial naturality of the canonical comparison map 푟푓 = 푓푡, and by Lemma 9.4.5(ii) 퐿푓푡 = 퐿푟푓 = 푘•푓. Thus the absolute left lifting problems coincide and we obtain a canonical natural iso- morphism 훾∶ ℓ푓푡 ≅ 푓. Now to prove the claim of (i) that 휙푓푡 is an isomorphism it suffices to prove that 휂푓푡 is an iso- morphism and that 휖ℓ푓푡 is an isomorphism — and by naturality of whiskering and the isomorphism 훾∶ ℓ푓푡 ≅ 푓 just constructed, 휖ℓ푓푡 is an isomorphism if and only if 휖푓 is an isomorphism. 횫op 푡 By (9.4.10), the construction of 훾, and simplicial naturality of 푟, which implies that 푟 푘• = 푘•푟: 푓 퐴 푟 Alg (퐵) 퐴 푟 Alg (퐵) 핋 핋 푓 ⇑휂 ℓ ℓ Δ ≅⇑훾 Δ Δ ≅⇑훾 ⇑훽 = ⇑휆 op op op 퐵 Alg (퐵) Alg (퐵)횫 퐵 Alg (퐵) 퐴횫 Alg (퐵)횫 푡 푡 푡 횫op 푓 핋 푘• 핋 푓 핋 퐿 푟 핋 퐴 푟 Alg (퐵) Alg (퐵) 핋 핋 푓 = Δ Δ Δ ⇑ = ⇑훽 op op op 퐵 퐴횫 Alg (퐵)횫 퐵 Alg (퐵) Alg (퐵)횫 횫op 푡 푡 푘•푓 푟 핋 푓 핋 푘• 핋 So 휂푓푡 is the inverse of the isomorphism 푟훾, and is consequently invertible. Similarly, by (9.4.9), 푓 퐴 퐴 퐴 ℓ 푓 ℓ ⇑휖 Δ = Δ = ⇑≅훾 Δ ⇑휆 ⇑휁 ⇑휆 op op op 퐵 퐴 Alg (퐵) 퐴횫 퐵 퐴횫 퐵 Alg (퐵) 퐴횫 푓 푟 핋 퐿 푘•푓 푓푡 핋 퐿 so 휖푓 = 훾 is also an isomorphism. Thus, we conclude that 휙푓푡 is invertible as claimed in (i).

246 To prove (ii), we must show that Alg (퐵) ℓ 퐴 핋

Δ Δ (9.4.11) ⇑훽 op op Alg (퐵) Alg (퐵)횫 퐴횫 푡 횫op 핋 푘• 핋 ℓ is an absolute left lifting diagram. Of course, we expect this to be true because left adjoints preserve colimits by Theorem ??, but as we have not yet shown that ℓ is a left adjoint, this requires a direct argument. op By the equational characterization of Theorem ??, the cosmological functor (−)횫 ∶ 풦 → 풦 pre- serves the absolute left lifting diagram (9.4.8); thus

op 퐴횫 op ℓ횫 횫op op Δ ⇑휆횫 횫op 횫op 횫op Alg (퐵) op (퐴 ) 핋 퐿횫 op op is absolute left lifting. Since 휆횫 ⋅ Δ = Δ횫 ⋅ 휆, there are two equivalent ways to compute the horizontal composite of this 2-cell with 훽, displayed below-left and below-right 퐴 퐴 ℓ ℓ Δ Δ ⇑휆 op op Alg (퐵) 퐴횫 = Alg (퐵) 퐴횫 핋 핋 퐿 횫op ℓ op op Δ Δ횫 Δ Δ횫 ⇑훽 op ⇑훽 ⇑휆횫 op op op op op op Alg (퐵) Alg (퐵)횫 (퐴횫 )횫 Alg (퐵) Alg (퐵)횫 (퐴횫 )횫 푡 횫op 푡 횫op 핋 푘• 핋 퐿 핋 푘• 핋 퐿 By Lemma 2.4.1, to show that (9.4.11) is absolute left lifting, i.e., that ℓ preserves the absolute left lifting diagram 훽, it suffices to prove that 퐿 preserves the absolute left lifting diagram 훽. By Proposition 4.3.15, to show that this diagram is absolute left lifting it suffices to show that for each [푛] ∈ 횫, that the diagram op ev Alg (퐵) 퐿 퐴횫 푛 퐴 핋 op Δ Δ횫 Δ ⇑훽 op op op op Alg (퐵) Alg (퐵)횫 (퐴횫 )횫 퐴횫 푡 횫op ev푛 핋 푘• 핋 퐿 is absolute left lifting. By the construction of 퐿 in Lemma 9.4.5, ev 퐿∶ Alg (퐵) → 퐴 is the map induced by taking 푛 핋 the weighted limits of the homotopy coherent adjunction 픸∶ 풜푑푗 → 풦 by the map of weights − ∘ (푓푢)푛+1 ∶ 풜푑푗 → lan res 풜푑푗 . Thus we see that ev 퐿 is the map 푓푡푛푢푡 ∶ Alg (퐵) → 퐴, and in − − 푛 핋 particular factors through 푢푡 ∶ Alg (퐵) → 퐵. Since the canonical colimit of Theorem 9.3.7 is 푢푡-split, 핋 (푢푡, 푢푡훽) is an absolute left lifting diagram preserved under postcomposition by all functors, and in

247 particular by 푓(푢푓)푛. Thus, the above diagram is absolute left lifting as claimed, which tells us that 퐿 and thus ℓ preserves the colimit (9.3.8). It remains only to combine (i) and (ii) to argue that 휙 is invertible. For this, we consider the pasting equality ℓ ℓ Alg (퐵) 퐴 Alg (퐵) ⇑휙 퐴 핋 핋 op Δ ℓ횫 Δ = Δ ℓ Δ ⇑훽 ⇑훽 횫op op 횫op 횫op 횫op Alg (퐵) Alg (퐵) ⇑휙횫 퐴 Alg (퐵) Alg (퐵) 퐴 푡 푡 횫op 핋 푘• 핋 핋 푘• 핋 ℓ op ℓ횫 푡 횫op 푡 op By the definition of 푘•, the components of the whiskered natural transformation 휙 ⋅푘• at [푛] ∈ 횫 푡 푡 푛+1 횫op 푡 is 휙(푓 푢 ) , which is an isomorphism by (i). By Lemma ??, this proves that 휙 ⋅ 푘• is invertible. Thus, by (ii) the left hand diagram is isomorphic to an absolute left lifting diagram and thus is absolute left lifting. The pasting equality describes a factorization of the left hand absolute left lifting diagram through the absolute left lifting diagram of (ii) via 휙, so by the uniqueness in the universal property of absolute left lifting diagrams we conclude that 휙 is invertible as desired. This proves that (ℓ ⊣ 푟, 휂, 휖) defines an adjunction as claimed.  We now describe conditions under which the adjunction just constructed defines an adjoint equiv- alence. As the proof will reveal, condition (ii) implies that the unit is an isomorphism, while conditions (ii) and (iii) together imply that the counit is an isomorphism. 9.4.12. Theorem (monadicity). Let 픸∶ 풜푑푗 → 풦 be a homotopy coherent adjunction with right adjoint 푢∶ 퐴 → 퐵 with underlying homotopy coherent monad 핋∶ ℳ푛푑 → 풦. If (i) 퐴 admits colimits of 푢-split simplicial objects, (ii) 푢∶ 퐴 → 퐵 preserves them, and (iii) 푢∶ 퐴 → 퐵 is conservative then the canonical comparison functor 푟∶ 퐴 → Alg (퐵) admits a left adjoint ℓ∶ Alg (퐵) → 퐴 defining an 핋 핋 adjoint equivalence. Note that Theorem 9.3.7 and Proposition 9.2.10 establish these properties for the monadic adjunc- tion. Proof. Theorem 9.4.7 constructs an adjunction (ℓ ⊣ 푟, 휂, 휖) under the hypothesis (i), with the left op adjoint ℓ∶ Alg (퐵) → 퐴 defined as the colimit of the 푢-split family of diagrams 퐿∶ Alg (퐵) → 퐴횫 핋 핋 with colimit cone 휆∶ Δℓ ⇒ 퐿. It remains to show that this defines an adjoint equivalence. By hypothesis (ii), 푢 preserves the 푢-split colimit diagram that defines ℓ. By Lemma 9.4.5(i), op op 푢횫 퐿∶ Alg (퐵) → 퐵횫 is the monadic bar resolution, so the absolute left lifting diagrams below-left 핋 and below-center are isomorphic:

푢 푢푡 퐴 퐵 푢푡 퐵 Alg (퐵) 퐵 핋 ℓ ev0 Δ Δ Δ Δ ≅ op = Δ ⇑휆 ⇑퐵휈 ⇑훽 op op op op op Alg (퐵) 퐴횫 퐵횫 Alg (퐵) 퐵횫⊤ 퐵횫 Alg (퐵) Alg (퐵)횫 퐵횫 횫op res 푡 푡 횫op 핋 퐿 푢 핋 bar 핋 푘• 핋 (푢 )

248 By the construction of the bar resolution in Lemma 9.3.4, the absolute left lifting diagram above-left coincides with the one above-right. Now consulting (9.4.10), we see that the left-hand diagram above factors through the right-hand diagram above via 푢푡휂. Thus 푢푡휂 is invertible, and by Proposition 9.2.10, 휂∶ idAlg (퐵) ≅ 푟ℓ is also an isomorphism. 핋 횫op 횫op By the same line of reasoning, the diagrams 퐿푟∶ 퐴 → 퐴 and 푘• ∶ 퐴 → 퐴 are both 푢-split by the bar resolution by Lemmas 9.4.5 and 9.3.4 respectively. Again by the hypothesis that 푢∶ 퐴 → 퐵 preserves 푢-split colimits, the absolute left lifting diagram below-left must be isomorphic to the one below-center, which equals the absolute left lifting diagram below-right: 퐴 푢 퐵 푢 퐵 퐴 푢 퐵 ℓ푟 ev0 Δ Δ ≅ op Δ = op Δ Δ ⇑휆푟 ⇑퐵휈 ⇑퐴휈 op op op op op 횫 횫 횫⊤ 횫 횫 횫 퐴 퐴 op 퐵 퐴 퐵 res 퐵 퐴 퐴 op 퐵 퐿푟 푢횫 bar 푘• 푢횫 By the uniqueness of factorization through absolute lifting diagrams it follows that 푢휖 must be an isomorphism, and since 푢 is conservative, this means that 휖∶ ℓ푟 ≅ id퐴 is also invertible. This completes the proof, but in fact we can sidestep the most difficult part of the proof of Theo- rem 9.4.7 — the proof of the triangle equality 휖ℓ ⋅ ℓ휂 = idℓ — under the additional hypotheses (ii) and (iii) that imply invertibility of the unit and counit constructed there. Since 휂 and 휖 are both invertible, the triangle equality composite 휖ℓ ⋅ ℓ휂 is an isomorphism. Since the other triangle equality composite is an identity, as in the proof of Proposition 2.1.11 this composite is also an idempotent and hence, by cancelation, this idempotent isomorphism is also an identity.  Exercises. 9.4.i. Exercise. Dualize the work of this section to define and characterize the comonadic adjunction between 퐴 and the ∞-category of coalgebras for the homotopy coherent comonad acting on 퐴. 9.5. Monadic descent Consider once more the canonical comparison functor 푟

퐴 Alg (퐵)

푓 푢푡 핋 ⊤ ⊤ 푢 퐵 푓푡 defining the component at − ∈ 풜푑푗 of a simplicial natural transformation 픸 → 픸핋 from a homo- topy coherent adjunction to the monadic homotopy coherent adjunction built from its underlying homotopy coherent monad. The monadicity theorem of the previous section characterizes when the comparison functor 푟∶ 퐴 → Alg (퐵) is an equivalence. Our aim in this section is to present a theo- 핋 rem proven by Sulyma [60], which characterizes when the functor 푟∶ 퐴 → Alg (퐵) is fully faithful, 핋 which is the case just when the canonical map ퟚ ⌜id푟⌝∶ 퐴 → HomAlg (퐵)(푟, 푟) 핋 is an equivalence over 퐴 × 퐴.

249 To analyze this situation, we consider the homotopy coherent comonad 핂∶ 풞푚푑 → 풦 underlying the homotopy coherent adjunction 픸∶ 풜푑푗 → 풦. We write 푘 ≔ 푓푢 for the functor part of the homotopy coherent comonad, an endomorphism 푘∶ 퐴 → 퐴 defined as the image of the unique atomic 0-arrow in 풞푚푑. Our first partial result, true for formal reasons under no additional hypotheses, observes that the canonical comparison functor 푟 is always fully faithful on maps out of the comonad 푘 ≔ 푓푢∶ 퐴 → 퐴 of the homotopy coherent adjunction. 9.5.1. Lemma ([60, 3.5]). The canonical comparison map pulls back along the substitution of the comonad 푘∶ 퐴 → 퐴 into its domain variable to define a fibered equivalence:

ퟚ Hom퐴(푘, 퐴) 퐴 ⌜id ⌝ ⌟ ∼ 푟

HomAlg (퐵)(푟푘, 푟) HomAlg (퐵)(푟, 푟) 핋 ⌟ 핋

퐴 × 퐴 퐴 × 퐴 id ×푘 Proof. By Proposition 4.1.1 applied to the adjunctions 푓 ⊣ 푢 and 푓푡 ⊣ 푢푡 and the relations 푘 = 푓푢, 푢 = 푢푡푟, and 푟푓 = 푓푡: 푡 푡 푡 푡 Hom퐴(푘, 퐴) ≔ Hom퐴(푓푢, 퐴) ≃퐴×퐴 Hom퐴(푢, 푢) = Hom퐴(푢 푟, 푢 푟) ≃퐴×퐴 Hom퐴(푓 푢 푟, 푟)

= Hom퐴(푟푓푢, 푟) ≕ Hom퐴(푟푘, 푟), 푡 and this equivalence is the one induced by id푟: the first equivalence is induced by pasting with 휂 = 휂 , 푡 while the second equivalence is induced by pasting with 휖 푟 = 푟휖. By the triangle equality 휖푓⋅푓휖 = id푓, the composite map is the one induced by pasting with id푟.  The statement of the main theorem requires the following definition, recall that the homotopy op 횫+ coherent comonad 핂 internalizes to define a functor 푘• ∶ 퐴 → 퐴 that we call the comonad reso- lution, which restricts to a canonical cosimplicial object together with a cone under it. 9.5.2. Definition. A generalized element 푎∶ 푋 → 퐴 is 핂-cocomplete if the restriction of the canon- ical diagram 퐴 ev−1 op Δ ⇑퐴휈 op op 횫+ 횫 푋 퐴 퐴 res 퐴 푎 푘• is an absolute left lifting diagram. The terminology is adapted from Hess [22], who refers to such elements as “strongly 핂-cocomplete.” 9.5.3. Example (algebras are cocomplete). Theorem 9.3.7 proves that in a monadic homotopy coher- ent adjunction, the identity functor at the ∞-category of algebras is 핂핋-cocomplete. By restrict- ing the absolute left lifting diagram, all generalized elements in the ∞-category of 핋-algebras are 핂핋-cocomplete. We now argue that the canonical comparison functor associated to a homotopy coherent adjunc- tion is full and faithful if and only if all generalized elements of 퐴 are 핂-cocomplete. 250 9.5.4. Theorem ([60, 3.14]). The canonical comparison functor 푟∶ 퐴 → Alg (퐵) for a homotopy coherent 핋 adjunction 픸 with underlying homotopy coherent comonad 핂 is full and faithful if and only if the identity id퐴 ∶ 퐴 → 퐴 is 핂-cocomplete, i.e., 퐴 퐴 ev−1 (9.5.5) Δ ≔ op Δ ⇑훼 ⇑퐴휈 op op op Δ 횫+ 횫 퐴 퐴 퐴 퐴 res 퐴 푘• 푘• is an absolute left lifting diagram. In the special case where 퐴 admits colimits of 푢-split simplicial objects, the diagram (9.4.9) in the proof of Theorem 9.4.12 establishes the result: the composite ℓ푟∶ 퐴 → 퐴 defines the colimit 횫op of the comonad resolution 푘• ∶ 퐴 → 퐴 , and this functor is related to the identity via the counit 휖∶ ℓ푟 ⇒ id퐴. To say that id퐴 is 핂-cocomplete, is to say that id퐴 ∶ 퐴 → 퐴 is the colimit of this diagram, which is the case if and only if 휖 is fully faithful. Since a right adjoint 푟 is fully faithful just when the counit is an isomorphism (see Proposition 12.3.5 or Exercise 9.5.i), the result follows. In the absence of this hypothesis, we cannot construct the left adjoint ℓ∶ Alg (퐵) → 퐴. In its op 핋 place, we make use of the functor 퐿∶ Alg (퐵) → 퐴횫 of Lemma 9.4.5. In the terminology of §3.4, 핋 the following lemma proves that the ∞-category of cones under this diagram is right-represented by the canonical comparison functor 푟∶ 퐴 → Alg (퐵). 핋

9.5.6. Lemma. There is a fibered equivalence Hom 횫op (퐿, Δ) ≃ HomAlg (퐵)(Alg (퐵), 푟) over 퐴×Alg (퐵). 퐴 핋 핋 핋 Proof. The inverse equivalences are defined by 1-cell induction:

Hom op op 퐴횫 (퐿, Δ) Hom퐴횫 (퐿, Δ) 푝 푝1 0 푝1 푝0

휙 ∃!휁 퐴 Alg (퐵) 퐴 Alg (퐵) ⇐ 핋 ⇐ 핋 푟 = 푟 Δ 퐿 op Alg (퐵) 퐴횫 Alg (퐵) 훽 핋 핋 푡 ⇐ 푡 op 푘• 푘• 푟횫 Δ Δ op op Alg (퐵)횫 Alg (퐵)횫 핋 핋 and then

op Hom퐴횫 (퐿, Δ) op Hom퐴횫 (퐿, Δ) ⌜휁⌝ 푝 푝 푝1 푝0 1 0 휁 = Hom (Alg (퐵), 푟) Alg (퐵) 핋 ⇐ 핋 푝1 푝0 휙 ⇐ 퐴 푟 Alg (퐵) 핋 퐴 Alg (퐵) 푟 핋

251 And conversely,

HomAlg (퐵)(Alg (퐵), 푟) 핋 핋 HomAlg (퐵)(Alg (퐵), 푟) 핋 핋 푝1 푝0 푝1 푝0 휙 Hom 횫op (퐿, Δ) ⇐ 퐴 푝 퐴 Alg (퐵) = 푝1 0 푟 핋 푘 ⇙훼 • 퐴 휙 Alg (퐵) 퐿 ⇐ 핋 Δ 횫op 퐴 Δ 퐿 op 퐴횫 We leave the verification that these maps define inverse images to the reader.  Proof of Theorem 9.5.4. By Lemma 9.4.5(ii), the fibered equivalence of Lemma 9.5.6 pulls back along 퐴 × 푟∶ 퐴 × 퐴 → 퐴 × Alg (퐵) to a fibered equivalence 핋

Hom 횫op (푘•, Δ) ≃ HomAlg (퐵)(푟, 푟) 퐴 핋 over 퐴 × 퐴. Moreover this equivalence commutes with the canonical functors up to natural isomor- phism 퐴ퟚ ⌜훼⌝ ⌜id푟⌝ ≅

Hom 횫op (푘•, Δ) ≃ HomAlg (퐵)(푟, 푟) 퐴 핋

Under the universal property of Proposition 3.3.7, the functor ⌜id푟⌝ is classified by the 2-cell 푝1 푟 퐴ퟚ ⇑휅 퐴 Alg (퐵) 핋 푝0 defined as the whiskered composite of the generic arrow over 퐴. The equivalence converts this into a op 푘 2-cell under 퐴ퟚ and over the cospan 퐴 Δ 퐴횫 • 퐴 by forming the horizontal composite of 휅 with 훼: 퐴 Δ 푝1 ⇑훼 푟 퐿 op 퐴ퟚ ⇑휅 퐴 Alg (퐵) 퐴횫 핋 푝0 푘• and this is the 2-cell that classifies the map labelled ⌜훼⌝. By Theorem 3.4.3, the left-diagonal map is an equivalence if and only if (9.5.5) is an absolute left lifting diagram. By Corollary 3.4.6, the right-diagonal map is an equivalence if and only if 푟 is fully faithful. By the 2-of-3 property, either map is an equivalence if and only if both are, which is what we wished to show. 

252 9.5.7. Remark. Sulyma observes that the same argument shows that the canonical comparison functor 푟∶ 퐴 → Alg (퐵) is fully faithful on maps out of 푎∶ 푋 → 퐴 if and only if 푎∶ 푋 → 퐴 is 핂-cocomplete 핋 [60, 3.14]. The motivation for the result of Theorem 9.5.4 arises from the theory of monadic descent. To explain, we first require some definitions.

9.5.8. Definition. The ∞-category of descent data Dsc핋(퐵) of a homotopy coherent monad 핋 acting on an ∞-category 퐵 is the ∞-category of 핂핋-coalgebras in the ∞-category of 핋-algebras: Dsc (퐵) ≔ Coalg (Alg (퐵)). 핋 핂핋 핋 Elements are called descent data. Unpacking Definition 9.5.8, we can clarify the meaning of “descent data.” 9.5.9. Proposition. Let 핋 be a homotopy coherent monad acting on an ∞-category 퐵 ∈ 풦. The ∞-category of descent data is the limit of 핋∶ ℳ푛푑 → 풦 weighted by the weight 푊dsc ∶ ℳ푛푑 → 풮풮푒푡 given by the category 횫 with the left 횫+-action by ordinal sum. Proof. Recall from Proposition 9.2.11 that the monadic adjunction associated to a homotopy coherent monad is defined as the limit of the homotopy coherent monad diagram 핋 weighted by op the restriction of the Yoneda embedding 풴 ∈ 풮풮푒푡풜푑푗 ×풜푑푗 along the inclusion ℳ푛푑 ↪ 풜푑푗 ℳ푛푑 in the codomain variable, a weight we denote by res풜푑푗 풴. From the monadic homotopy coherent adjunction 핋 ℳ푛푑 픸 ≔ lim ℳ푛푑 핋∶ 풜푑푗 → 풦, res풜푑푗 풴 the induced homotopy coherent comonad on Alg (퐵) is defined by restricting along the inclusion 핋 풞푚푑 ↪ 풜푑푗, producing a diagram 핂 풞푚푑 ℳ푛푑 핋 ≔ res풜푑푗 (lim ℳ푛푑 핋)∶ 풞푚푑 → 풦. res풜푑푗 풴 Now dualizing Definition 9.2.5, the descent object is defined to be the ∞-category of coalgebras for this homotopy coherent comonad, which is define to be the lifted weighted by the restriction of the representable functor 풜푑푗 ∶ 풜푑푗 → 풮풮푒푡 along the inclusion 풞푚푑 ↪ 풜푑푗 in its codomain variable: + 풞푚푑 풞푚푑 ℳ푛푑 Dsc핋(퐵) ≔ limres풞푚푑 풜푑푗 res풜푑푗 (limresℳ푛푑 풴 핋). 풜푑푗 + 풜푑푗 Our aim is now to express this iterated weighted limit as a single weighted limit of the diagram 핋. 풞푚푑 ℳ푛푑 By Lemma 7.1.20, the weighted limit of the restricted diagram res풜푑푗 (lim ℳ푛푑 핋)∶ 풞푚푑 → 풦 is res풜푑푗 풴 ℳ푛푑 isomorphic to the limit of the diagram lim ℳ푛푑 핋)∶ 풜푑푗 → 풦 weighted by the left Kan extension res풜푑푗 풴 of the weight along 풞푚푑 ↪ 풜푑푗. Thus: 풞푚푑 풞푚푑 ℳ푛푑 Dsc핋(퐵) ≔ limres풞푚푑 풜푑푗 res풜푑푗 (limresℳ푛푑 풴 핋) 풜푑푗 + 풜푑푗 풜푑푗 ℳ푛푑 ≅ lim 풜푑푗 풞푚푑 (lim ℳ푛푑 핋). lan res 풜푑푗 res풜푑푗 풴 풞푚푑 풜푑푗 +

253 By Definition 7.1.3(ii), the weighted limit of a weighted limit of a diagram is the limit of that diagram weighted by the weighted colimit of the weights:

ℳ푛푑 ≅ lim 풜푑푗 핋. colim resℳ푛푑 풴 풜푑푗 풞푚푑 풜푑푗 lan풞푚푑 res풜푑푗 풜푑푗+ By the symmetry of Definition 7.1.4, this weighted colimit of the weights is isomorphic to the weighted colimit of weights with the weight and diagram swapped, yielding the first isomorphism below. Now by Definition 7.1.3(i), this reduces to the restricting of the diagram along ℳ푛푑 ↪ 풜푑푗, yielding the second isomorphism below: 풜푑푗 ℳ푛푑 풜푑푗 풜푑푗 풞푚푑 ℳ푛푑 풜푑푗 풞푚푑 colim 풜푑푗 res 풴 ≅ colim ℳ푛푑 lan res 풜푑푗 ≅ res lan res 풜푑푗 . lan res풞푚푑 풜푑푗 풜푑푗 res 풴 풞푚푑 풜푑푗 + 풜푑푗 풞푚푑 풜푑푗 + 풞푚푑 풜푑푗 + 풜푑푗

Upon substituting into our formula for Dsc핋(퐵) we conclude that ℳ푛푑 ≅ lim 풜푑푗 핋 resℳ푛푑 lan res풞푚푑 풜푑푗 풜푑푗 풞푚푑 풜푑푗 + as desired. It remains only to simplify the description of the weight 풜푑푗 푊 ≔ resℳ푛푑 lan res풞푚푑 풜푑푗 ∈ 풮풮푒푡ℳ푛푑. dsc 풜푑푗 풞푚푑 풜푑푗 + By Observation 9.2.1, this diagram defines a category 푊dsc(+) — which we will shortly identify, defined by evaluating at + ∈ ℳ푛푑 — and a homotopy coherent monad on it. This is the dual of the calculation 풜푑푗 of Proposition 9.4.1. By the formula for pointwise left Kan extensions, the value of lan res풞푚푑 풜푑푗 풞푚푑 풜푑푗 + at the object + is computed by 풜푑푗 푊 (+) ∶= (lan res풞푚푑 풜푑푗 )(+) dsc 풞푚푑 풜푑푗 + 풞푚푑 ≅ ル 풜푑푗(−, +) × 풜푑푗(+, −)

∘×id ≅ coeq ￶ 풜푑푗(−, +) × 풜푑푗(−, −) × 풜푑푗(+, −) 풜푑푗(−, +) × 풜푑푗(+, −)  id ×∘

op ∘×id ≅ coeq ￶ 횫⊤ × 횫+ × 횫⊥ 횫⊤ × 횫⊥  id ×∘ ≅ 횫.

The monad structure is given by a “left action of 횫+,” in this case by the functor

⊕∶ 횫+ × 횫 → 횫 obtained by restricting the ordinal sum composition in 풜푑푗. 

9.5.10. Remark. The 푊dsc-weighted limit cone on Dsc핋(퐵) takes the form of a 횫+-invariant diagram 횫 → Fun(Dsc핋(퐵), 퐵) that we refer to as the generic descent datum. Writing 푏∶ Dsc핋(퐵) → 퐵 for

254 the 0-arrow in the image of the terminal element of 횫, this diagram has the form 휂 휂 휇 푏 훽 푡푏 푡휂 푡2푏 ⋯ 휃 푡훽 푡휃 횫 The generic descent datum, internalizes to a functor Dsc핋(퐵) → 퐵 . ℳ푛푑 9.5.11. Observation. The weights 푊−, 푊dsc, 푊+ ∈ 풮풮푒푡 are given by the categories 횫, 횫⊤, and 횫+, respectively, with the left 횫+-action in each case given by ordinal sum. Thus the inclusions ℳ푛푑 횫 ↪ 횫⊤ ↪ 횫+ ↭ 푊− → 푊dsc → 푊+ ∈ 풮풮푒푡 are 횫+-equivariant, defining maps of weights. On weighted limits, we thus get canonical maps that fit into a commutative diagram

lim푊+ 핋 lim푊dsc 핋 lim푊− 핋 ≅ ≅ ≅ 퐵 푐 Dsc (퐵) Alg (퐵) 핋 핋 푓푡

The canonical functor 푐∶ 퐵 → Dsc핋(퐵) can also be described as the non-identity component of the simplicial natural transformation from the monadic homotopy coherent adjunction 픸핋 to the comonadic homotopy coherent adjunction associated to its homotopy coherent comonad 핂핋.

푡 퐵 푢푡 푢푘 Dsc핋(퐵)

⊥ ⊥ 푓푡 Alg (퐵) 푘푡 핋 푐

9.5.12. Definition. The homotopy coherent monad 핋 satisfies descent if 푐∶ 퐵 → Dsc핋(퐵) is fully faithful and satisfies effective descent if 푐∶ 퐵 → Dsc핋(퐵) is an equivalence. The homotopy coherent monad 핋 satisfies effective descent just when the monadic homotopy coherent adjunction is also comonadic. Specializing the dual of Theorem 9.5.4, we have:

9.5.13. Corollary. A homotopy coherent monad 핋 acting on 퐵 satisfies descent if and only if id퐵 ∶ 퐵 → 퐵 is 핋-complete. finish Dually, for a homotopy coherent comonad 핂 acting on an ∞-category 퐴, the ∞-category of code- scent data is Codesc (퐴) ≔ Alg (Coalg (퐴)). 핂 핋핂 핂 The homotopy coherent comonad 핂 satisfies codescent if the canonical comparison map 푐∶ 퐴 → Codesc핂(퐴) is fully faithful and satisfies effective codescent if 푐∶ 퐴 → Codesc핂(퐴) is an equivalence, which is the case just when the comonadic homotopy coherent adjunction is also monadic. The former holds just when id퐴 ∶ 퐴 → 퐴 is 핂-cocomplete. 255 Exercises. 9.5.i. Exercise. Use Corollary 3.4.10 and Proposition 4.1.1 to anticipate the proof of Proposition 12.3.5: show that a right adjoint is fully faithful if and only if the counit of the adjunction is an isomorphism. 9.5.ii. Exercise. Prove the claim made in Remark 9.5.7. 9.6. Homotopy coherent monad maps Two adjunctions are equivalent just when there exists a pair of equivalences as displayed horizon-

tally below that commute up to isomorphism with the right adjoints 푎 ∼ 퐴 퐴′ 푓′ 푓 ⊣ 푢 ′ ≅ 푢 ⊢ 퐵 ∼ 퐵′ 푏 and so that the mate of the isomorphism 푏푢 ≅ 푢′푎 defines an isomorphism 푓′푏 ≅ 푎푓 in the square formed with the left adjoints. The pair 푓 ⊣ 푢 extends to a homotopy coherent adjunction, which defines a homotopy coherent monad on 퐵, and similarly 푓′ ⊣ 푢′ defines a homotopy coherent monad on 퐵′. But are the monadic adjunctions induced by these homotopy coherent monads similarly equiv- alent? A simpler question also requires some argument. Consider just a single adjunction 푓 ⊣ 푢 in the homotopy 2-category 픥풦 of an ∞-cosmos and two extensions to homotopy coherent adjunctions 픸, 픸′ ∶ 풜푑푗 → 풦. By Proposition 8.4.8, 픸 and 픸′ are isomorphic as vertices of the Kan complex cohadj(풦). But what does this actually mean? Unpacking Definition 8.4.1, we are given a homotopy coherent adjunction 픸∶̂ 풜푑푗 → 풦핀 whose target is the quasi-categorically enriched category whose objects are the same as in 풦 and whose functor-spaces are defined as the cotensor of the functor spaces of 풦 with 핀 so that when 픸̂ is evalu- ated at the endpoints of 핀, this returns the homotopy coherent adjunctions 픸 and 픸′. Note this data does not define a simplicial natural transformation 픸 → 픸′, in particular, there would be no obvious choices for its components other than the identity functors at 퐴 and 퐵, so we cannot directly apply Proposition 7.3.1 to construct an equivalence between the ∞-categories of algebras. The following result explains how to construct an equivalence between two homotopy coherent adjunctions that are isomorphic as vertices of cohadj(풦) in slightly greater generality than described here. 9.6.1. Proposition. Suppose 푢, 푢′ ∶ 퐴 → 퐵 are naturally isomorphic right adjoints in the homotopy 2-category 픥풦 of an ∞-cosmos 풦. Then any homotopy coherent adjunctions 픸∶ 풜푑푗 → 풦 and 픸′ ∶ 풜푑푗 → 풦 ex- tending 푢 and 푢′ are connected by a zig zag of simplicial natural equivalences, and hence the monadic homotopy coherent adjunctions for 픸 and 픸′ are naturally equivalent.

Proof. By Theorem 8.4.14, the forgetful functor 푝푅 ∶ cohadj(풦) ⥲→ rightadj(풦) defines a trivial rightadj ∐ Fun fibration of Kan complexes, where (풦) is defined as a sub-quasi-category of 퐴,퐵∈풦 (퐴, 퐵)

256 containing the right adjoint functors and isomorphisms between them. The postulated natural iso- morphism 훼∶ 푢 ≅ 푢′ defines a lifting problem ′ 휕핀 픸+픸 cohadj(풦) 픸̂ 푝 ∼ 푅 훼 핀 rightadj(풦) whose solution defines a simplicial functor 픸∶̂ 풜푑푗 → 풦핀. Consulting the definition of the cotensor of a quasi-categorically enriched category with a sim- plicial set 푈 in Definition 8.4.1, we see that when 풦 is an ∞-cosmos (and in particular admits sim- plicial cotensors of objects inside 풦), 풦푈 is concisely defined as the Kleisli category for the monad (−)푈 ∶ 풦 → 풦, with the unit defined by the constant map Δ∶ 퐴 → 퐴푈 and the multiplication defined by the fold map ∇∶ (퐴푈)푈 ≅ 퐴푈×푈 → 퐴푈, both arising from the comonoid (푈, !∶ 푈 → ퟙ, Δ∶ 푈 → 푈 × 푈) in 풮풮푒푡. As such, the quasi-categorically enriched categories 풦 and 풦푈 are connected by the Kleisli adjunction Δ 풦 ⊥ 풦푈 퐾 whose left adjoint is identity on objects and acts on homs by post-composing with the constant map Δ Fun(푋, 퐴) ∗ Fun(푋, 퐴푈) ≅ Fun(푋, 퐴)푈, while the right adjoint sends 퐴 to 퐴푈 and acts on homs by

(−)푈 ∇ Fun(푋, 퐴)푈 ≅ Fun(푋, 퐴푈) Fun(푋푈, (퐴푈)푈)) ∗ Fun(푋푈, 퐴푈).

Now for each vertex 푢∶ ퟙ → 푈, there is a simplicial natural transformation 퐾 ⇒ ev푢 whose compo- 푈 nents are given by ev푢 ∶ 퐴 ↠ 퐴. Specializing to 푈 = 핀, we obtain a zig-zag of simplicial natural transformations

ev0 ⇑≀ 풦핀 퐾 풦 ⇓≀ ev1 핀 whose components are the trivial fibrations ev0, ev1 ∶ 퐴 ⥲→퐴, and in particular, define equivalences. Precomposing with 픸̂ ′, this defines a zig-zag of simplicial natural equivalences between the homotopy coherent adjunction 픸 and the homotopy coherent adjunction 픸′. The homotopy coherent monadic adjunction is computed as a flexible weighted limit of these diagrams, so Proposition 7.3.1 implies that the homotopy coherent monadic adjunctions are equivalent, as claimed.  Proposition 9.6.1 can be understood as presenting an affirmative answer to the question posed at the start of this section. The equivalence 푎 and 푏 can be promoted to adjoint equivalences by Proposition 2.1.11, then composed with the adjunctions 푓 ⊣ 푢 and 푓′ ⊣ 푢′ to produce a pair of naturally isomorphic adjunctions between the same ∞-categories, to which Proposition 9.6.1 applies. The details are left as Exercise 9.6.i. But even with this question resolved, such considerations inspire

257 a more general avenue of inquiry that is worth pursuing, which we do following Zaganidis work in his PhD thesis [65]. To state the question, we first review a bit of classical 2-category theory. 9.6.2. Definition (monad morphism in a 2-category). Let (푡, 휂, 휇) be a monad on 퐵 and let (푠, 휄, 휈) be a monad on 퐴 in a 2-category. A (lax) monad morphism (푓, 휒)∶ (푡, 휂, 휇) → (푠, 휄, 휈) is given by: • a functor 푓∶ 퐵 → 퐴 • a 2-cell 휒∶ 푠푓 ⇒ 푓푡 so that the following pasting equalities hold 퐴 퐴 ⇓휄 푠 푠 푠 푓 푠 ⇓휈 퐴 푠 퐴 퐴 퐴 퐴 푠 퐴 = 퐴 ⇓휒 퐵 ⇓휒 퐴 푓 ⇓휒 푓 = 푓 푓 푓 푓 푓 푡 푡 푓 퐵 퐵 퐵 퐵 ⇓휒 ⇓휇 푡 ⇓휂 푡 퐵 푡 퐵 퐵 푡 퐵 If (푔, 휓)∶ (푡, 휂, 휇) → (푠, 휄, 휈) is a second monad morphism, a monad transformation 훼∶ (푓, 휒) ⇒ (푔, 휓) is given by a 2-cell 훼∶ 푓 ⇒ 푔 so that 푓 푓 퐵 퐴 퐵 ⇓훼 퐴 ⇓휒 푔 푡 푠 = 푡 푠 푓 ⇓휓

⇓훼 퐵 퐴 퐵 푔 퐴 푔 This defines the 2-category of monads and monad morphisms in a fixed 2-category 풞 [56]. If 풞 admits Eilenberg-Moore objects, which are to represent the “category of algebras functor,”³ then this 2-category defines a reflective subcategory of a particular 2-category of adjunctions that we now in- troduce. 9.6.3. Definition. A right adjunction morphism is a commutative square between the right adjoints 퐴 푎 퐴′ 푓′ 푓 ⊣ 푢 ′ 푢 ⊢ 퐵 퐵′ 푏 and a right adjunction transformation is a pair of natural transformations 푎 퐴 ⇓훼 퐴′ ′ 푎′ 푓 푓 ⊣ 푢 푢′ 푏 ⊢ 퐵 ⇓훽 퐵′ 푏′

³A 2-category 풞 admits Eilenberg-Moore objects whenever it admits the PIE limits alluded to in Digression 7.2.6 [30]. 258 so that 푢′훼 = 훽푢. 9.6.4. Proposition. If 풞 is a 2-category admitting the construction of Eilenberg-Moore objects, the forgetful 2-functor from the 2-category of adjunctions, right adjunction morphisms, and right adjunction transformations to the 2-category of monads admits a fully faithful right 2-adjoint.

Proof. Exercise 9.6.ii or see [12].  9.6.5. Remark. A lax morphism of monads (푓∶ 퐵 → 퐴, 휒∶ 푠푓 ⇒ 푓푡) as in Definition 9.6.2 corre- sponds to a lift of 푓 along the right adjoints of the monadic adjunctions for 푡 and 푠, but this lifted functor does not commute with the left adjoints. In general, the mate of the identity functor is non- invertible. The question is what is a homotopy coherent monad morphism? 9.6.6. Digression. Consider homotopy coherent monads 핋∶ ℳ푛푑 → 풦 and 핊∶ ℳ푛푑 → 풦 on 퐵 and 퐴. A simplicial natural transformation 푓∶ 핋 ⇒ 핊 is given by its unique component 푓∶ 퐵 → 퐴 satisfying a strict naturality condition relative to the bar resolutions 핋 횫+ Fun(퐵, 퐵)

핊 푓∗ Fun(퐴, 퐴) Fun(퐵, 퐴) 푓∗ Such data defines a monad morphism in the homotopy 2-category whose component 휒∶ 푠푓 ⇒ 푓푡 is the identity 2-cell. So in general, this definition is too strict. By Remark 8.4.2, if the vertices 핋 and 핊 are in the same connected component of Icon(ℳ푛푑, 풦), then necessarily 퐵 = 퐴, which is also too rigid a notion of monad morphism to consider in general. We present the data of a homotopy coherent monad morphism by means of a simplicial computad ℳ푛푑ퟚ introduced by Zaganidis. Generalizing the relationship between the simplicial computad ℳ푛푑 and the simplicial computad 풜푑푗, ℳ푛푑ퟚ defines a simplicial subcategory of a simplicial category 풜푑푗 that we introduce first via a graphical calculus developed in Zaganidis [65, ?]. This graphical ퟚ calculus extends to a sequence of composable adjunction morphisms so we might as well introduce 풜푑푗 in its full generality. 핟 The simplicial category 풜푑푗 is a 2-category whose hom-wise nerve can be presented via a graphi- 핟 cal calculus, exactly as was the case for 풜푑푗. A 2-categorical description of 풜푑푗 is given in [65, §3.1.1]. 핟 The graphical calculus that presents 풜푑푗 as a simplicial category is described in more detail in [65, 핟 §3.1.2]. 9.6.7. Definition. The objects of 풜푑푗 are pairs whose first component is either + or − and whose 핟 second component 푖 ∈ {0, 1, … , 푛 − 1} is best thought of as a color drawn from a linearly ordered set where the color 0 is the “lightest” and the color 푛 − 1 is the “darkest.” Note the objects of 풜푑푗 are the 핟 objects of the product simplicial category 풜푑푗 × 핟; we write +푖 or −푖 for the two objects with color 푖 or either ±푖 or ∓푖 to denote a generic object of 풜푑푗 × 핟. The 푛-arrows in 풜푑푗 are strictly undulating colored squiggles on 푛-lines. In more detail, an 핟 푛-arrow ±푘 → ∓푗 is permitted only if 푘 ≥ 푗; that is the color of the domain, appearing on the right, must be “darker” than the color of the codomain, appearing on the left. The data of a morphism 259 ±푘 → ∓푗 is given by a strictly undulating squiggle of 풜푑푗 from ± to ∓ as appropriate, with all four choices of + or − possible, together with a coloring, with colors drawn from the interval [푗, 푘], of the connected components of each of the strips between the lines 푖 and 푖−1 for some 푖 ∈ [푛] of the shaded region under the squiggle diagram. This coloring must satisfy the axioms: • In the strip between the 푖th and 푖 − 1th lines for 푖 ∈ [푛], the coloring function is monotone, becoming darker as you move from left to right. • If a connected component of a strip above the line 푖 shares a boundary with a connected compo- nent of a strip below the line 푖, then color of the top strip is lighter than the color of the bottom strip, i.e., the coloring function is monotone, becoming darker as you move from top to bottom in a single vertical section of the squiggle diagram. • Finally, in the case of a morphism −푘 → ±푗, each of the strips that touches the right-hand bound- ary must be colored the maximal color 푘. For a fully formal definition together with a description of the composition, face, and degeneracy actions are described in [65, §3.1.2]. The monochromatic strictly undulating squiggles in 풜푑푗 define the data found in just one of its 핟 푛 homotopy coherent adjunctions. 9.6.8. Example. The atomic 0-arrows of 풜푑푗 define 푛 adjunctions that we denote by 푓 ⊣ 푢 and 핟 푖 푖 푛 − 1 adjunction morphisms as depicted below: 푎 푎 1 푛−1 −0 −1 ⋯ −푛−2 −푛−1

푓 푢 푓 푢 푓 푢 푓 푢 0 ⊣ 0 1 ⊣ 1 푛−2 ⊣ 푛−2 푛−1 ⊣ 푛−1 + + ⋯ + + 0 푏 1 푛−2 푏 푛−1 1 푛−1 We now state a few of the key results from Zaganidis’ thesis whose proofs are too long to reproduce here. Note that 풜푑푗 is not a simplicial computad, since the diagram of right adjoints and adjunction 핟 morphisms in Example 9.6.8 commutes strictly at the level of 0-arrows. However, this is the only obstruction, in a sense made precise by the following result 9.6.9. Proposition ([65, 3.2.5]). Consider the inclusion ퟚ × 핟 ↪ 풜푑푗 whose image is the subcategory 핟 comprised of the right adjoints 푢 and the 0-arrow components 푎 and 푏 of the adjunction morphisms. Then 푖 푖 푖 ퟚ × 핟 ↪ 풜푑푗 is a relative simplicial computad. 핟 9.6.10. Remark. Diagrams of morphisms between adjunctions of more general 2-categorical past- ing diagram shapes are also of interest. Zaganidis constructs a generalization 풜푑푗푆 of 풜푑푗 for any 핟 핟 “shape” 푆 ⊂ ℭΔ[푛 − 1] with the universal property that for a 2-category 풞, 2-functors 풜푑푗푆 → 풞 핟 correspond to 2-functors from 푆 into the 2-category of adjunctions, right adjunction morphisms, and right adjunction transformations of Definition 9.6.3. Zaganidis’ construction requires 푆 to be a sim- plicial computad, although 푆 ↪ ℭΔ[푛 − 1] need not be a simplicial subcomputad inclusion. Instead, any factorization in ℭΔ[푛−1] of an atomic arrow of 푆 must be through an object that is not contained in the subcategory 푆.

260 An argument along the lines of that given in §8.2 and §8.3 proves that homotopy coherent adjunc- tion morphisms are generated by what we term a diagram of 푛-right adjoints: this being given by a commutative diagram in 풦 푎 퐴 1 퐴 ⋯ 퐴 퐴 0 1 푛−2 푎푛−1 푛−1

푢0 푢1 푢푛−2 푢푛−1

퐵0 퐵1 ⋯ 퐵푛−2 퐵푛−1 푏1 푏푛−1 together with a choice of left adjoint and unit for each 푢푖. We state just one of the many extension theorems proven as Theorems A and 5.12-13 in [65]: 9.6.11. Theorem. Any diagram of 푛-right adjoints in a quasi-categorically enriched category extends to a simplicial functor 풜푑푗 → 풦. And, moreover the space of extensions over a given diagram of right adjoints 핟 is a trivial Kan complex. 9.6.12. Definition. Let ℳ푛푑 be the full subcategory of 풜푑푗 on the objects + , … , + . By [65, 핟 핟 0 푛−1 5.19] it is a simplicial computad.

9.6.13. Theorem ([65, 5.20,5.24-5]). For any homotopy coherent diagram of monads 핋∶ ℳ푛푑핟 → 풦, the simplicially enriched right Kan extension 픸핋 ∶ 풜푑푗 → 풦 exists. For each 푖 ∈ {0, … , 푛 − 1}, the object 핟 핋 픸 (−푖) is equivalent to the ∞-category of algebras for the 푖th underlying homotopy coherent monad. Note that its not the case that the value of the right Kan extension along ℳ푛푑 ↪ 풜푑푗 at − 핟 핟 푖 recovers the ∞-category of algebras for the 푖th homotopy coherent monad on the nose. However, by applying Theorem 9.4.12 this ∞-category can be shown to be equivalent to the ∞-category of algebras. See §5.3 of [65] for more details. Exercises. 9.6.i. Exercise. Use Proposition 9.6.1 to prove that the ∞-categories of algebras associated to any homotopy coherent adjunctions extending equivalent adjunctions, in the sense described at the start of this section, are equivalent. 9.6.ii. Exercise. Prove Proposition 9.6.4, perhaps just in the 2-category of categories.

261

Part III

The calculus of modules

CHAPTER 10

Two-sided fibrations

Recall from Proposition 7.4.15 that for any ∞-category 퐵 in an ∞-cosmos 풦, the quasi-categorically enriched categories 푐표풞푎푟푡(풦)/퐵 and 풞푎푟푡(풦)/퐵 define sub ∞-cosmoi of 풦/퐵. In this section, we in- troduce another sub ∞-cosmos 퐴\ℱ푖푏(풦)/퐵 ⊂ 풦/퐴×퐵 whose objects are two-sided fibrations from 퐴 to 퐵. Several equivalent definitions of this notion are given in §10.1. Iterating Proposion 7.4.15 reveals that 퐴\ℱ푖푏(풦)/퐵 is again an ∞-cosmos, which we study in §10.2. Importantly, two-sided fibration from 퐵 to 1 is simply a cocartesian fibration over 퐵, while a two-sided fibration from 1 to 퐵 is a carte- sian fibration over 퐵, so results about two-sided fibrations simultaneously generalize these one-sided notions. For instance, in §10.3, we introduce two-sided representables and prove the Yoneda lemma, generalizing Theorem 5.5.3 for representable (co)cartesian fibrations. Another reason for our interest in two-sided fibrations is the fact that the discrete objects in 퐴ℱ푖푏퐵 are precisely the modules from 퐴 to 퐵, which we define and study in §10.4. The calculus of modules, developed in Chapter 11, is the main site of the formal category theory of ∞-categories, which is the subject of Chapter 12. 10.1. Four equivalent definitions of two-sided fibrations By factoring, any span in 풦 from 퐴 to 퐵 may be replaced up to equivalence by a two-sided isofi- 푞 푝 bration, a span 퐴 ←−←퐸 −→→퐵 for which the functor (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 is an isofibration. Two-sided isofibrations from 퐴 to 퐵 are the objects of the ∞-cosmos 풦/퐴×퐵. In this section, we describe what it means for a two-sided isofibration to be cocartesian on the left or cartesian on the right, and then introduce two-sided fibrations, which integrate these notions. 푞 푝 10.1.1. Lemma (cocartesian on the left). For a two-sided isofibration 퐴 ←−←퐸 −→→퐵 in an ∞-cosmos 풦, the following are equivalent: (i) The functor (푞,푝) 퐸 퐴 × 퐵 푝 휋 퐵

is a cocartesian fibration in the slice ∞-cosmos 풦/퐵. (ii) The functor (푞,푝) 퐸 퐴 × 퐵 푞 휋 퐴

in 풦/퐴 lies in the sub ∞-cosmos 푐표풞푎푟푡(풦)/퐴.

265 (iii) The functor induced by id푞 ℓ ⊥ 퐸 Hom (푞, 퐴) 푖 퐴

(푞,푝) (푝1,푝푝0) 퐴 × 퐵

admits a left adjoint in 풦/퐴×퐵. (iv) The isofibration 푞∶ 퐸 ↠ 퐴 is a cocartesian fibration in 풦 and for every 푞-cocartesian transformation 푒 푒 푝 푋 ⇓휒 퐸 , the composite 푋 ⇓휒 퐸 퐵 is an isomorphism. 푒′ 푒′ 푞 푝 If any of these equivalent conditions are satisfied, we say that 퐴 ←−←퐸 −→→퐵 is cocartesian on the left. Proof. We first prove that the equivalence (i)⇔(iii) is exactly the interpretation of the equiva- lence Theorem 5.1.11(i)⇔(ii) applied to the isofibration (푞, 푝)∶ 퐸 ↠ 퐴×퐵 in the ∞-cosmos 풦/퐵. This latter result asserts that the isofibration (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 is a cocartesian fibration in 풦/퐵 if and only if a certain canonical functor from 퐸 to the left representation of the functor (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 admits a left adjoint over the codomain 휋∶ 퐴 × 퐵 ↠ 퐵; since (풦/퐵)/휋∶ 퐴×퐵↠퐵 ≅ 풦/퐴×퐵 this is the same as asserting this adjunction over 퐴 × 퐵. The only subtlety in interpreting Theorem 5.1.11 in 풦/퐵 has to do with the correct interpretation of the left representable comma ∞-category in 풦/퐵 for the functor (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵. This comma ∞-category is constructed as a subobject of the ퟚ-cotensor of the object 휋∶ 퐴 × 퐵 → 퐵 in 풦/퐵, which Proposition 1.2.17 tells us is formed as the left-hand vertical of the pullback diagram 퐴ퟚ × 퐵 (퐴 × 퐵)ퟚ ⌟ 휋 휋ퟚ 퐵 Δ 퐵ퟚ

By (3.3.2) the comma ∞-category is constructed by the pullback in 풦/퐵

ퟚ 푝1×id Hom퐴(푞, 퐴) 퐴 × 퐵 퐴 × 퐵 ⌟ 푝0 푝푝0 휋 푝0×id (푞,푝) (10.1.2) 퐸 퐴 × 퐵

푝 휋 휋 퐵 which is created by the forgetful functor 풦/퐵 → 풦, and its codomain-projection functor is the top composite (푝1, 푝푝0)∶ Hom퐴(푞, 퐴) ↠ 퐴 × 퐵. Now we see that the interpretation of Theorem 5.1.11(i)⇔(ii) is exactly the equivalence (i)⇔(iii). It remains to demonstrate the equivalence with (ii) and 10.4. Assuming (iii) and composing with 휋∶ 퐴×퐵 ↠ 퐴, we are left with a fibered adjunction that demonstrates that 푞 is a cocartesian fibration.

266 The unit of both fibered adjunctions is the same, and by Theorem 5.1.11(v) the composite

푝 Hom퐴(푞, 퐴) ⇓휂 Hom퐴(푞, 퐴) 0 퐸 ℓ 퐸 푖 is the generic 푞-cocartesian cell. Since 휂 is fibered over 퐴 × 퐵, when we postcompose with 푝 we get an identity, which tells us that 푝∶ 퐸 ↠ 퐵 carries 푞-cocartesian cells to isomorphisms. This proves 10.4. In fact, 10.4 can easily be seen to be equivalent to (ii). By Example 5.2.5, the cocartesian cells for the cocartesian fibration 휋∶ 퐴 × 퐵 ↠ 퐴 are precisely those 2-cells whose component with codomain 퐵 is an isomorphism, so 10.4 says exactly that (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 defines a cartesian functor from 푞 to 휋. Thus 10.4 implies (ii). For the converse, assume (ii) and consider a 2-cell in 풦/퐵 푋 푒 퐸 ⇓(훼,id) (푞,푝) (푎,푏) 퐴 × 퐵 Because 푞 is a cocartesian fibration, 훼∶ 푞푒 ⇒ 푎 has a 푞-cocartesian lift 휒∶ 푒 ⇒ 푒′ ∶ 푋 → 퐸, and since (푞, 푝) is a cartesian functor, the whiskered 2-cell 푝휒∶ 푏 ⇒ 푝푒′ is an isomorphism. Because (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 is an isofibration, we may lift the 2-cell (id, 푝휒−1)∶ 푒′ ⇒ (푎, 푏) to an invertible ′ ″ ″ 2-cell 훾∶ 푒 ⇒ 푒 with 푞훾 = id푎. The composite 훾 ⋅ 휒∶ 푒 ⇒ 푒 is a lift of (훼, id) along (푞, 푝) over 퐵, which is easily verified to define a (푞, 푝)-cocartesian lift of (훼, id) in 풦/퐵. 

If (푞, 푝)∶ 퐸 ↠ 퐴×퐵 is a discrete cocartesian fibration in 풦/퐵 then the converse to the last statement of 10.4 holds: any 2-cell 휒 for which 푝휒 is an isomorphism is 푞-cocartesian. See Exercise 10.1.i. By Lemma 10.1.1 and its dual: 푞 푝 10.1.3. Corollary. A two-sided isofibration 퐴 ←−←퐸 −→→퐵 is cocartesian on the left and cartesian on the right if the following equivalent conditions are satisfied: (i) The functor (푞,푝) 퐸 퐴 × 퐵 푞 휋 퐴

lies in 푐표풞푎푟푡(풦)/퐴 and defines a cartesian fibration in 풦/퐴. (ii) The functor (푞,푝) 퐸 퐴 × 퐵 푝 휋 퐵

lies in 풞푎푟푡(풦)/퐵 and defines a cocartesian fibration in 풦/퐵.  A two-sided fibration is a span that is cocartesian on the left, cartesian on the right, and satisfies a further compatibility condition that can be stated in a number of equivalent ways, which boil down to the assertion that the processes of taking 푞-cocartesian and 푝-cartesian lifts commute: 푞 푝 10.1.4. Theorem. For a two-sided isofibration 퐴 ←−←퐸 −→→퐵 in 풦, the following are equivalent:

267 (i) The functor (푞,푝) 퐸 퐴 × 퐵 푞 휋 퐴

defines a cartesian fibration in 푐표풞푎푟푡(풦)/퐴. (ii) The functor (푞,푝) 퐸 퐴 × 퐵 푝 휋 퐵

defines a cocartesian fibration in 풞푎푟푡(풦)/퐵. (iii) The canonical functors admit the displayed adjoints in 풦/퐴×퐵 푟 ⊤ 퐸 Hom (퐵, 푝) 푖 퐵 ℓ ⊣ 푖 (푖푝1,id) ⊢ ℓ (id,푖푝0) Hom퐴(푞, 퐴) Hom퐴(푞, 퐴) × Hom퐵(퐵, 푝) ⊥ 퐸 푟 and the mate of the identity 2-cell in this displayed commutative square defines an isomorphism ℓ푟 ≅ 푟ℓ. 푞 푝 (iv) 퐴 ←−←퐸 −→→퐵 is cocartesian on the left, cartesian on the right, and for any 푎∶ 푋 → 퐴, 푏∶ 푋 → 퐵, ∗ and 푒∶ 푋 → 퐸 and pair of 2-cells 훼∶ 푞푒 ⇒ 푎 and 훽∶ 푏 ⇒ 푝푒, the map 훽 훼∗(푒)∶ 푋 → 퐸, obtained as the domain of a 푝-cartesian lift of the composite of 훽 with a 푞-cocartesian lift 휒훼 ∶ 푒 ⇒ 훼∗(푒) of ∗ 훼 over 퐵, is isomorphic over 퐴 × 퐵 to the map 훼∗훽 (푒)∶ 푋 → 퐸 obtained as the codomain of a ∗ 푞-cocartesian lift of the composite of 훼 with a 푝-cartesian lift 휒훽 ∶ 훽 (푒) ⇒ 푒 of 훽 over 퐴. 푞 푝 A span 퐴 ←−←퐸 −→→퐵 defines a two-sided fibration from 퐴 to 퐵 if any of these equivalent condi- tions are satisfied: Proof. Our strategy will be to show that condition (i) is equivalent to (iii), an equationally wit- nessed condition in the slice ∞-cosmos 풦/퐴×퐵. A dual argument will show that condition (ii) is equivalent to (iii). We then unpack this condition to prove its equivalence with (iv). We use Theorem 5.1.11(ii), which provides a condition that characterizes the cartesian fibrations in any ∞-cosmos via the presence of a fibered adjunction, to re-express (i) in 풦/퐴×퐵. To apply this characterization to the map displayed in (i), we must first compute the right representable comma object in 푐표풞푎푟푡(풦)/퐴 ⊂ 풦/퐴 associated to the functor (푞, 푝)∶ 퐸 → 퐴 × 퐵 over 퐴. By Proposition 7.4.15, it suffices to compute this comma object in 풦/퐴. By the dual of the calculation (10.1.2) we gave in the proof of Lemma 10.1.1, the comma object covariantly representing the functor (푞, 푝)∶ 퐸 → 퐴 × 퐵 in 푐표풞푎푟푡(풦)/퐴 ⊂ 풦/퐴 is the cocartesian fibration 푞푝1 ∶ Hom퐵(퐵, 푝) ↠ 퐴.

268 Now Theorem 5.1.11(ii) applied in 푐표풞푎푟푡(풦)/퐴 tells us that condition (i) holds if and only if the canonical functor 푖 admits a right 푟 over 퐴 × 퐵 푖 퐸 ⊥ Hom퐵(퐵, 푝) (10.1.5) (푞,푝) 푟 (푞푝1,푝0) 퐴 × 퐵 where the three displayed objects are all cocartesian fibrations over 퐴 and each of the four displayed maps are cartesian functors between these cocartesian fibrations. By Lemma 10.1.1, to say that (푞, 푝) defines a cartesian functor between cocartesian fibrations is to 푞 푝 say that the span 퐴 ←−←퐸 −→→퐵 is cocartesian on the left, which is the case if and only if the canonical functor 푖 admits a left adjoint ℓ 퐸 ⊥ Hom (푞, 퐴) 푖 퐴 (푞,푝) (푝 ,푝푝 ) 퐴 × 퐵 1 0 in 풦/퐴×퐵. Similarly, to say that (푞푝1, 푝0) defines a cartesian functor between cocartesian fibrations 푞푝1 푝0 is to say that the span 퐴 ←−−−← Hom퐵(퐵, 푝) −−→→퐵 is cocartesian on the left. By Lemma 10.1.1 again, this is equivalent to the hypothesis that the canonical functor from Hom퐵(퐵, 푝) to the comma object contravariantly representing 푞푝1 admits a left adjoint ℓ ⊥ Hom퐵(퐵, 푝) Hom퐴(푞, 퐴) × Hom퐵(퐵, 푝) (푖푝1,id) 퐸

(푞푝1,푝0) (푝 ,푝 ) 퐴 × 퐵 1 0 in 풦/퐴×퐵. Finally, by Theorem 5.1.19, to say that the functor 푖 of (10.1.5) is cartesian is to say that in the commutative solid-arrow diagram in 풦/퐴×퐵, 푟 푖 퐸 Hom (퐵, 푝) 퐸 ⊤ Hom (퐵, 푝) 퐵 푖 퐵 ℓ ⊣ 푖 (푖푝1,id) ⊢ ℓ 푖 (푖푝1,id) (id,푖푝0) Hom퐴(푞, 퐴) Hom퐴(푞, 퐴) × Hom퐵(퐵, 푝) Hom퐴(푞, 퐴) Hom퐴(푞, 퐴) × Hom퐵(퐵, 푝) (id,푖푝0) 퐸 ⊥ 퐸 푟 (10.1.6) the mate of this identity 2-cell involving the left adjoints ℓ is an isomorphism. This “Beck-Chevalley” condition is equivalent to saying that the other mate, displayed above right, associated to the functor 푟 of (10.1.5) is an isomorphism. Finally, to say that 푟 is also a cartesian functor between cocartesian

269 fibrations is to say that the further mate 푟 퐸 Hom퐵(퐵, 푝)

ℓ ⇑≅ ℓ (10.1.7)

Hom퐴(푞, 퐴) 푟 Hom퐴(푞, 퐴) × Hom퐵(퐵, 푝) 퐸 is an isomorphism. Thus, we have shown that condition (i) is equivalent to (iii) positing the existence of adjunctions (10.1.6) in 풦/퐴×퐵 so that all of the mates of the solid-arrow diagram are isomorphisms. Dualizing and reversing this argument, we see that this is equivalent to condition (ii). Finally, (iii) and (iv) are equivalent since the existence of the left adjoints in (10.1.6) is equivalent to the span being cocartesian on the left, the existence of the right adjoints is equivalent to being cartesian on the right, and the compatibility condition for the cartesian and cocartesian lifts is the meaning of the isomorphism (10.1.7).  10.1.8. Corollary. Any two-sided isofibration (푎, 푏)∶ 푋 ↠ 퐴 × 퐵 that is equivalent over 퐴 × 퐵 to a two-sided fibration (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 is a two-sided fibration.

Proof. The assertion of Theorem 10.1.4(iii) is invariant under fibered equivalence.  Theorem 10.1.4 will help us establish an important family of examples.

푝푛−1 푝0 10.1.9. Proposition. For any ∞-category 퐴 and any 푛 ≥ 2, the two-sided isofibration 퐴 ←−−−−←퐴핟 −−→→퐴 defines a two-sided fibration. This result is a generalization of Proposition 5.1.23 and its dual and the proof uses similar ideas. Proof. We use Theorem 10.1.4(iii). The right representable comma ∞-category associated to 핟 푝0 ∶ 퐴 ↠ 퐴 is constructed by the pullback 퐴ퟚ∨핟 퐴ퟚ ⌟ 푝1 퐴핟 퐴 푝0 핟+ퟙ which is equivalent to (푝푛, 푝0)∶ 퐴 ↠ 퐴 × 퐴 over the endpoint evaluation maps. The canonical map 1 퐴훿 훿1 퐴핟 ⊤ 퐴핟+ퟙ 핟 ⊥ 핟 + ퟙ 0 휎0 퐴휎

(푝푛−1,푝0) (푝푛,푝0) (푛−1,0) (푛,0) 퐴 × 퐴 ퟙ + ퟙ 핟 that tests whether (푝푛−1, 푝0)∶ 퐴 ↠ 퐴 × 퐴 is cartesian on the right is given by restriction along the epimorphism 휎0 ∶ 핟 + ퟙ → 핟 that sends the objects 0, 1 ∈ 핟 + ퟙ to 0 ∈ 핟. This functor admits a left adjoint under the endpoint inclusions displayed above-right, which provides the desired fibered right adjoint displayed above left.

270 핟 A dual argument shows that (푝푛−1, 푝0)∶ 퐴 ↠ 퐴×퐴 is cocartesian on the left. The final condition asks that the mate of the commutative square defined by the degeneracy maps

훿1 핟 ⊥ 핟 + ퟙ 휎0 훿푛 ⊢ 휎푛 휎푛+1 ⊣ 훿푛+1

휎0 핟 + ퟙ ⊤ 핟 + ퟚ 훿1 is an isomorphism, as is easily verified. The square in Theorem 10.1.4(iii) is obtained by applying 퐴(−).  Theorem 10.1.4 has a relative analogue, whose proof is left to the reader, which characterizes what we call a cartesian functor between two-sided fibrations from 퐴 to 퐵. 10.1.10. Lemma. A map of spans between a pair of two-sided fibrations from 퐴 to 퐵 퐸 푞 푝 퐴 푔 퐵 (10.1.11) 푠 푟 퐹 defines a cartesian functor between the cartesian fibrations in 푐표풞푎푟푡(풦)/퐴 if and only if it defines a cartesian functor between the cocartesian fibrations in 풞푎푟푡(풦)/퐵. Proof. A similar argument to that given in Theorem 10.1.4 shows that the map 푔∶ 퐸 → 퐹 of (10.1.11) is a cartesian functor between cartesian fibrations in 푐표풞푎푟푡(풦)/퐴 if and only if in two com- mutative diagrams over 퐴×퐵, the mates are isomorphisms. This condition also characterizes cartesian functors between cocartesian fibrations in 풞푎푟푡(풦)/퐵. The details are left as Exercise 10.1.ii.  A cartesian functor is just a map of spans (10.1.11) that defines a cartesian functor between the cocartesian fibrations 푞 and 푠 and also a cartesian functor between the cartesian fibrations 푝 and 푟. It follows from the internal characterization (iii) of Theorem 10.1.4 and a similar internal characteriza- tion of cartesian functors derived from Theorem 5.1.19 that: 10.1.12. Corollary. Any cosmological functor preserves two-sided fibrations and cartesian functors between them.  Exercises.

10.1.i. Exercise. Suppose (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 is a discrete cocartesian fibration in 풦/퐵. Prove, for any 2-cell 휒 with codomain 퐸, that if 푝휒 is an isomorphism, then 휒 is 푞-cocartesian. 10.1.ii. Exercise. Prove Lemma 10.1.10. 10.1.iii. Exercise. Prove that ! 푝 (i) A two-sided isofibration 1 ←−←퐸 −→→퐵 defines a two-sided fibration from 1 to 퐵 if and only if 푝∶ 퐸 ↠ 퐵 is a cartesian fibration.

271 (ii) A map of spans 퐸 ! 푝 1 푔 퐵

! 푞 퐹 defines a cartesian functor of two-sided fibrations if and only if 푔∶ 퐸 → 퐹 defines a cartesian functor from 푝 to 푞. 10.2. The ∞-cosmos of two-sided fibrations The equivalent conditions (i) and (ii) of Theorem 10.1.4 provide two equivalent ways to define the ∞-cosmos of two-sided fibrations. 10.2.1. Definition (the ∞-cosmos of two-sided fibrations). By Theorem 10.1.4 and Lemma 10.1.10, the pair of quasi-categorically enriched subcategories

풞푎푟푡(푐표풞푎푟푡(풦)/퐴)/휋∶ 퐴×퐵↠퐴 and 푐표풞푎푟푡(풞푎푟푡(풦)/퐵)/휋∶ 퐴×퐵↠퐵 of 풦/퐴×퐵 coincide. By Proposition 7.4.15, applied twice, this subcategory is an ∞-cosmos, which we call the ∞-cosmos of two-sided fibrations from 퐴 to 퐵 and denote by

퐴\ℱ푖푏(풦)/퐵 ⊂ 풦/퐴×퐵. By definition Fun Func Fun 퐴\ℱ푖푏(풦)/퐵(퐸, 퐹) ≔ 퐴×퐵(퐸, 퐹) ⊂ 퐴×퐵(퐸, 퐹) is the quasi-category of maps of spans that define cartesian functors from 퐸 to 퐹 in the sense of Lemma 10.1.10.

10.2.2. Proposition. The simplicial subcategory 퐴\ℱ푖푏(풦)/퐵 ↪ 풦/퐴×퐵 creates an ∞-cosmos structure on the ∞-cosmos of two-sided fibrations from the ∞-cosmos of two-sided isofibrations. Proof. This inclusion factors as

퐴\ℱ푖푏(풦)/퐵 ≅ 푐표풞푎푟푡(풞푎푟푡(풦)/퐵)/퐴×퐵↠퐵 ↪ (풞푎푟푡(풦)/퐵)/퐴×퐵↠퐵 ↪ (풦/퐵)/퐴×퐵↠퐵 ≅ 풦/퐴×퐵 Applying Proposition 7.4.15, we see that both inclusions create ∞-cosmos structures.  10.2.3. Observation (two-sided fibrations generalize (co)cartesian fibrations). By Exercise 10.1.iii, a two-sided fibration from 퐵 to 1 is a cocartesian fibration over 퐵, while a two-sided fibration from 1 to 퐵 is a cartesian fibration over 퐵. Indeed,

푐표풞푎푟푡(풦)/퐵 ≅ 퐵\퐹푖푏(풦)/1 and 풞푎푟푡(풦)/퐵 ≅ 1\퐹푖푏(풦)/퐵. In this sense, statements about two-sided fibrations simultaneously generalize statements about carte- sian and cocartesian fibrations. 10.2.4. Proposition. For any pair of functors 푎∶ 퐴′ → 퐴 and 푏∶ 퐵′ → 퐵, the cosmological pullback functor ∗ (푎, 푏) ∶ 풦/퐴×퐵 ⟶ 풦/퐴′×퐵′ restricts to define a cosmological functor ∗ (푎, 푏) ∶ 퐴\ℱ푖푏(풦)/퐵 ⟶ 퐴′\ℱ푖푏(풦)/퐵′. In particular, the pullback of a two-sided fibration is again a two-sided fibration. 272 id ×푏 푎×id Proof. By factoring (푎, 푏) as 퐴′ × 퐵′ −−−−→퐴′ × 퐵 −−−→퐴 × 퐵 we see that it suffices to consider pullback along one side at a time. Proposition 5.1.20 proves that pullback along 푏∶ 퐵′ → 퐵 preserves cartesian fibrations and cartesian functors, defining a restricted functor

풞푎푟푡(풦)/퐵 풦/퐵

푏∗ 푏∗

풞푎푟푡(풦)/퐵′ 풦/퐵′

Since limits and isofibrations in 풞푎푟푡(풦)/퐵 are created in 풦/퐵, this restricted functor is a cosmological functor. Applying this result to the map

퐴 × 퐵′ id ×푏 퐴 × 퐵 휋 휋 퐴 in the ∞-cosmos 푐표풞푎푟푡(풦)/퐴, we conclude that pullback restricts to define a cosmological functor

퐴\ℱ푖푏(풦)/퐵 ≅ 풞푎푟푡(푐표풞푎푟푡(풦)/퐴)/휋∶ 퐴×퐵↠퐴 (푐표풞푎푟푡(풦)/퐴)/휋∶ 퐴×퐵↠퐴 풦/퐴×퐵

(id ×푏)∗ (id ×푏)∗ (id ×푏)∗

퐴\ℱ푖푏(풦)/퐵′ ≅ 풞푎푟푡(푐표풞푎푟푡(풦)/퐴)/휋∶ 퐴×퐵′↠퐴 (푐표풞푎푟푡(풦)/퐴)/휋∶ 퐴×퐵′↠퐴 풦/퐴×퐵′  푞 푝 10.2.5. Lemma. If 퐴 ←−←퐸 −→→퐵 is a two-sided fibration from 퐴 to 퐵, 푣∶ 퐴 ↠ 퐶 is a cocartesian fibration and 푢∶ 퐵 ↠ 퐷 is a cartesian fibration, then the composite span 푞 푝 퐶 푣 퐴 퐸 퐵 푢 퐷 defines a two-sided fibration from 퐶 to 퐷. Moreover, a cartesian functor between two-sided fibrations from 퐴 to 퐵 induces a cartesian functor 퐸 푞 푝 퐶 푣 퐴 푔 퐵 푢 퐷 푠 푟 퐹 between two-sided fibrations from 퐶 to 퐷. Note composition in the sense being described here does not define a cosmological functor from 퐴\ℱ푖푏(풦)/퐵 to 퐶\ℱ푖푏(풦)/퐷 because it does not preserve flexible limits. Proof. By Theorem 10.1.4, it suffices to consider composition on one side at a time, say with a cocartesian fibration 푣∶ 퐴 ↠ 퐶. Working in the ∞-cosmos 풞푎푟푡(풦)/퐵, we are given cocartesian fibrations (푞,푝) 퐸 퐴 × 퐵 퐴 × 퐵 푣×id 퐶 × 퐵 푝 휋 휋 휋 퐵 퐵

273 These compose vertically to define a cocartesian fibration (푣푞,푝) 퐸 퐶 × 퐵 푝 휋 퐵 and hence a two-sided fibration from 퐶 to 퐵, as desired. Now the 푣푞-cocartesian cells are the 푞-cocartesian lifts of the 푣-cocartesian cells. If 푔 is a cartesian functor from 푞 to 푠, then these are clearly preserved, proving that 푔 also defines a cartesian functor from 푣푞 to 푣푠.  Proposition 10.2.4 and Lemma 10.2.5 combine to prove that two-sided fibrations can be composed “horizontally.” 10.2.6. Proposition. The pullback of a two-sided fibration from 퐴 to 퐵 along a two-sided fibration from 퐵 to 퐶 퐸 × 퐹

퐵 휋1 ⌜ 휋0 퐸 퐹 푞 푝 푠 푟 퐴 퐵 퐶 defines a two-sided fibration from 퐴 to 퐶 as displayed. Proof. The composite two-sided fibration is constructed in two stages, first by pulling back 퐸 × 퐹 퐹 퐵 ⌟ (푠,푟) (휋1,푟휋0) 퐸 × 퐶 퐵 × 퐶 푝×퐶 and then by composing the left leg with the cocartesian fibration 푞∶ 퐸 ↠ 퐴. By Proposition 10.2.4 and Lemma 10.2.5, this results is a two-sided fibration from 퐴 to 퐶. Alternatively, the composite can be constructed by pulling back along 퐴 × 푠 and composing with the cartesian fibration 푟∶ 퐹 ↠ 퐶, resulting in another two-sided fibration from 퐴 to 퐶 that is canonically isomorphic to the first.  10.2.7. Example. If 푝∶ 퐸 ↠ 퐵 is a cartesian fibration and 푞∶ 퐹 ↠ 퐴 is a cocartesian fibration, then the span 푞 휋 휋 푝 퐴 ←−←퐹 ←−←퐹 × 퐸 −→→퐸 −→→퐵 defines a two-sided fibration from 퐴 to 퐵. 10.2.8. Example. By Proposition 10.1.9 and Proposition 10.2.4, a general comma span

푝1 푝0 퐶 Hom퐴(푓, 푔) 퐵

푝1 푝0 is a two-sided fibration, as a pullback of 퐴 ←−−←퐴ퟚ −−→→퐴. By Proposition 10.2.6, “horizontal com- posites” of comma spans are also two-sided fibrations. In certain cases, a horizontal composite again

274 defines a span that is equivalent to a comma span, as is the case for:

Hom퐴(퐴, 푔) × Hom퐴(푓, 퐴)

퐴 휋1 ⌜ 휋0

Hom퐴(퐴, 푔) Hom퐴(푓, 퐴) 푝1 푝0 푝1 푝0 퐶 퐴 퐵 which is equivalent to (푝1, 푝0)∶ Hom퐴(푓, 푔) ↠ 퐶×퐵 over 퐶×퐵. Certain other horizontal composites are not equivalent to comma spans but nonetheless define two-sided fibrations, as is the case for:

Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏)

푋 휋1 ⌜ 휋0

Hom퐴(푎, 퐴) Hom퐵(퐵, 푏) 푝1 푝0 푝1 푝0 퐴 푋 퐵 Exercises. 10.2.i. Exercise. Consider a diagram 퐸 퐹 푞 푝 푠 푟 퐴 푔 퐵 ℎ 퐶

푞′ 푝′ 푠′ 푟′ 퐸′ 퐵′ in which 푔 and ℎ define cartesian functors between two-sided fibrations, from 퐴 to 퐵 and from 퐵 to 퐶, respectively. Prove that 푔 and ℎ pullback to define a cartesian functor (푔, ℎ)∶ 퐸 × 퐹 → 퐸′ × 퐹′ 퐵 퐵 between two-sided fibrations from 퐴 to 퐶. 10.2.ii. Exercise. Prove the assertion made in Example 10.2.7. 10.3. Representable two-sided fibrations and the Yoneda lemma We now introduce representable two-sided fibrations and prove a two-sided version of the external Yoneda lemma. 10.3.1. Definition. Specializing Example 10.2.7, for any pair of elements 푎∶ 1 → 퐴 and 푏∶ 1 → 퐵, the span 푝1휋 푝0휋 퐴 ←−−−←Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) −−−→→퐵 defines a two-sided fibration from 퐴 to 퐵 that we refer to as the two-sided fibration represented by 푎 and 푏. Note there is a canonical element (id푎, id푏)∶ 1 → Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) in the fiber over (푎, 푏)∶ 1 → 퐴 × 퐵. The terminology of Definition 10.3.1 is justified by the Yoneda lemma for two-sided fibrations.

275 10.3.2. Theorem (Yoneda lemma). For any elements 푎∶ 1 → 퐴 and 푏∶ 1 → 퐵 and any two-sided fibration 푞 푝 퐴 ←−←퐸 −→→퐵, restriction along (⌜id푎⌝, ⌜id푏⌝)∶ 1 → Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) defines an equivalence of quasi-categories ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) 퐸 ⎟ ⎜ 1 퐸 ⎟ c ⎜ ⎟ ⎜ ⎟ Fun퐴×퐵 ⎜ , ⎟ ⥲ Fun퐴×퐵 ⎜ (푎,푏) , ⎟ . ⎜ ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ ⎝⎜ ⎠⎟ 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 Interpreting this result in a slice ∞-cosmos will enable us to replace the elements 푎 and 푏 with a pair of generalized elements 푎∶ 푋 → 퐴 and 푏∶ 푋 → 퐵; see Corollary 10.3.5. Proof. The two-sided fibration represented by 푎 and 푏 is defined by a pullback

id ×푝0 Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) Hom퐴(푎, 퐴) × 퐵 ⌟ 푝1×id 푝1×id

퐴 × Hom퐵(퐵, 푏) 퐴 × 퐵 id ×푝0 We will argue by applying the Yoneda lemma of Theorem 5.5.3 twice: first for cocartesian fibrations over the object 휋∶ 퐴 × Hom퐵(퐵, 푏) ↠ Hom퐵(퐵, 푏) the ∞-cosmos 풞푎푟푡(풦)/Hom퐵(퐵,푏), and then for cartesian fibrations over the object 퐵 in the 풦. To set up the first use of the Yoneda lemma, we begin by pulling back the two-sided fibration 푞 푝 퐴 ←−←퐸 −→→퐵 along 푝0 ∶ Hom퐵(퐵, 푏) → 퐵 to obtain a two-sided fibration

Hom퐵(푝, 푏) ′ ⌜ 푝 푝0 퐸 Hom (퐵, 푏) 푞 푝 퐵 푝 퐴 퐵 0 from 퐴 to Hom퐵(퐵, 푏). By the adjoint correspondence between cartesian functors established by Lemma 10.3.3(iii) below, there is an isomorphism ⎛ ⎞ ⎜ ⎟ ⎜ Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) 퐸 ⎟ c ⎜ ⎟ Fun퐴×퐵 ⎜ 푝 ×푝 , (푞,푝) ⎟ ⎜ 1 0 ⎟ ⎝⎜ ⎠⎟ 퐴 × 퐵 퐴 × 퐵 ⎛ ⎞ ⎜ ⎟ ⎜ Hom (푎, 퐴) × Hom (퐵, 푏) Hom (푝, 푏) ⎟ ⎜ 퐴 퐵 퐵 ⎟ c ⎜ ⎟ ≅ Fun ⎜ , ′ ⎟ . 퐴×Hom퐵(퐵,푏) ⎜ 푝1×id (푞푝0,푝 ) ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ 퐴 × Hom퐵(퐵, 푏) 퐴 × Hom퐵(퐵, 푏)

276 Consider the object 휋∶ 퐴 × Hom퐵(퐵, 푏) ↠ Hom퐵(퐵, 푏) in the ∞-cosmos 풞푎푟푡(풦)/Hom퐵(퐵,푏). The element (푎!,id) Hom퐵(퐵, 푏) 퐴 × Hom퐵(퐵, 푏) 휋 Hom퐵(퐵, 푏) has 푝1 × id∶ Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) → 퐴 × Hom퐵(퐵, 푏) as its representing cocartesian fibra- tion in 풞푎푟푡(풦)/Hom퐵(퐵,푏). Applying the Yoneda lemma to this representable cocartesian fibration in 풞푎푟푡(풦)/Hom퐵(퐵,푏), we see that restricting along this map defines an equivalence whose codomain Func (Hom (퐵, 푏) → 퐴 × Hom (퐵, 푏), Hom (푝, 푏) ↠ 퐴 × Hom (퐵, 푏)) 퐴×Hom퐵(퐵,푏) 퐵 퐵 퐵 퐵 is the mapping quasi-category defined by the pullback • Func (id , Hom (푝, 푏) ↠ Hom (퐵, 푏)) ⌟ Hom퐵(퐵,푏) Hom퐵(퐵,푏) 퐵 퐵 ′ (푞푝0,푝 )∘− (푎!,id) 휋 1 Func (id , 퐴 × Hom (퐵, 푏) −→→ Hom (퐵, 푏)) Hom퐵(퐵,푏) Hom퐵(퐵,푏) 퐵 퐵 ∗ By Lemma 10.3.3(iii) applied to the adjunction (푝0 ∘−) ⊣ 푝0 the right-hand vertical map is isomorphic to the left-hand vertical map displayed below

c 푝0 푝 ∼ 푏 푝 Fun퐵(Hom퐵(퐵, 푏) −−→→퐵, 퐸 −→→퐵) Fun퐵(1 −→퐵, 퐸 −→→퐵) (푞,푝)∘− (푞,푝)∘−

c 푝0 휋 ∼ 푏 휋 Fun퐵(Hom퐵(퐵, 푏) −−→→ Hom퐵(퐵, 푏), 퐴 × 퐵 −→→퐵) Fun퐵(1 −→퐵, 퐴 × 퐵 −→→퐵) which is equivalent to the vertical map on the right by the Yoneda lemma applied to the cartesian fibra- tion 푝0 ∶ Hom퐵(퐵, 푏) ↠ 퐵 corresponding to the element 푏∶ 1 → 퐵. Combining these observations, we obtain an equivalence to the pullback

(푎,푏) (푞,푝) 푏 푝 Fun (1 −−−→퐴 × 퐵, 퐸 −−−−→→퐴 × 퐵) Fun (1 −→퐵, 퐸 −→→퐵) 퐴×퐵 ⌟ 퐵 (푞,푝)∘−

(푎,푏) 푏 휋 1 Fun퐵(1 −→퐵, 퐴 × 퐵 −→→퐵) This composite equivalence is the map defined by precomposition with the canonical element

(⌜id푎⌝, ⌜id푏⌝)∶ 1 → Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏), completing the proof.  10.3.3. Lemma. (i) Suppose 푠∶ 퐵 → 퐴 is a discrete cartesian fibration and 푝∶ 퐸 → 퐵 is an isofibration. Then 푝∶ 퐸 → 퐵 is a cocartesian fibration if and only if 푠푝∶ 퐸 ↠ 퐴 is a cocartesian fibration.

277 (ii) Suppose that 푠 is a discrete cocartesian fibration and 푝 and 푞 are cocartesian fibrations. Then (푔, 푠) defines a cartesian functor from 푝 to 푞 if and only if 푔 defines a cartesian functor from 푠푝 to 푟. 푔 푔 퐸 퐹 퐸 퐹 푝 푞 (10.3.4) 푠푝 푞

퐵 푠 퐴 퐴 (iii) If 푠∶ 퐵 ↠ 퐴 is a discrete cocartesian fibration, then the adjunction 푠 ∘ − ⊣ 푠∗ 푝 푞 푝 푠∗푞 푠 ∗ Fun퐴(퐸 −→→퐵 −→→퐴, 퐹 −→→퐴) ≅ Fun퐵(퐸 −→→퐵, 푠 퐹 −−−→→퐵) between composition with and pullback along 푠 restricts to cartesian functors: 푝 푞 푝 푠∗푞 c 푠 c ∗ Fun퐴(퐸 −→→퐵 −→→퐴, 퐹 −→→퐴) ≅ Fun퐵(퐸 −→→퐵, 푠 퐹 −−−→→퐵). Proof. For (i) recall that Lemma 5.1.7 proves that cocartesian fibrations compose, with 푠푝-cocart- esian cells being the 푝-cocartesian lifts of 푠-cocartesian cells. This proves that 푠푝 is cocartesian if 푝 is, and the converse follows as well by the proof of that result: if 푠 is a discrete cocartesian fibration, then any 2-cell with codomain 퐵 is 푠-cocartesian, so we may take the 푝-cocartesian cells to be precisely the 푠푝-cocartesian cells. For (ii), note that in proving (i), we have just argued that 푠푝-cocartesian cells are precisely the same as 푝-cocartesian cells when 푝 is a cocartesian fibration and 푠 is a discrete cocartesian fibration. This proves that the two notions of cartesian functor coincide.¹ Finally (iii) follows immediately from (ii) and Proposition 5.1.20, which tells us that a map to the pullback of a cocartesian fibration along 푠∶ 퐵 → 퐴 defines a cartesian functor over 퐵 if and only if the square as displayed on the left of (10.3.4) defines a cartesian functor.  10.3.5. Corollary. The inclusion 퐴\ℱ푖푏/퐵 ↪ 풦/퐴×퐵 푎 푏 admits a left biadjoint defined by sending a two-sided isofibration 퐴 ←−푋 −→퐵 to the composite two-sided fibration

Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏)

푋 ⌜

Hom퐴(푎, 퐴) Hom퐵(퐵, 푏) 푝 1 푝0 푝1 푝0

퐴 푋 퐵 and equipped with a natural equivalence ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) ⎟ ⎜ ⎟ ⎜ 푋 퐸 ⎟ ⎜ 푋 퐸 ⎟ c ⎜ ⎟ ⎜ ⎟ Fun퐴×퐵 ⎜ , ⎟ ⥲ Fun퐴×퐵 ⎜ (푎,푏) , ⎟ . ⎜ ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ ⎝ ⎠ 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵

¹If 푠 is cocartesian but not discrete, then if the left-hand diagram defines a cartesian functor, then so does the right one, but the converse no longer holds. 278 of functor spaces.

Proof. Let (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 be a two-sided fibration in 풦. Then since − × 푋∶ 풦 → 풦/푋 is a cosmological functor, the span 푞×id 푝×id 퐴 × 푋 ←−−−−←퐸 × 푋 −−−−→→퐵 × 푋 is a two-sided fibration in 풦/푋. The maps 푎∶ 푋 → 퐴 and 푏∶ 푋 → 퐵 induce a pair of elements (푎, id)∶ 푋 → 퐴 × 푋 and (푏, id)∶ 푋 → 퐵 × 푋 in 풦/푋 which are respectively covariantly and con- travariantly represented by

(푝1, 푝0)∶ Hom퐴(푎, 퐴) ↠ 퐴 × 푋 and (푝1, 푝0)∶ Hom퐵(퐵, 푏) ↠ 퐵 × 푋.

Applying Theorem 10.3.2 in 풦/푋 to this two-sided isofibration and pair of elements, we find that restriction along the canonical map

푖∶ 푋 → Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) 푋 defines an equivalence of quasi-categories ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) ⎟ ⎜ ⎟ ⎜ 푋 퐸 × 푋 ⎟ ⎜ 푋 퐸 × 푋 ⎟ c ⎜ ⎟ ⎜ ⎟ Fun퐴×퐵×푋 ⎜ , ⎟ ⥲ Fun퐴×퐵×푋 ⎜ (푎,푏,id) , ⎟ . ⎜ ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ ⎝ ⎠ 퐴 × 퐵 × 푋 퐴 × 퐵 × 푋 퐴 × 퐵 × 푋 퐴 × 퐵 × 푋 Transposing the domain and codomain across the adjunction ∑ 푋

풦 ⊥ 풦/푋 −×푋 yields the equivalence of functor spaces ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) ⎟ ⎜ ⎟ ⎜ 푋 퐸 ⎟ ⎜ 푋 퐸 ⎟ c ⎜ ⎟ ⎜ ⎟ Fun퐴×퐵 ⎜ , ⎟ ⥲ Fun퐴×퐵 ⎜ (푎,푏) , ⎟ ⎜ ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ ⎝ ⎠ 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 of the statement.  The argument used to establish the equivalence of functor spaces in Corollary 10.3.5 works for any pair of generalized elements 푎∶ 푋 → 퐴 and 푏∶ 푋 → 퐵, whether or not this span defines a two-sided isofibration. In the case of spans represented by a single non-identity functor a “one-sided” version of Corollary 10.3.5, which is much more simply established, may be preferred:

279 푞 10.3.6. Proposition (one-sided Yoneda for two-sided fibrations). For any two-sided isofibration 퐴 ←−← 푝 퐸 −→→퐵 and functor 푓∶ 퐴 → 퐵, restriction along the canonical functor 퐴 푓

퐴 ⌜id푓⌝ 퐵

푝1 푝0 Hom퐵(퐵, 푓) induce equivalences of functor spaces ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ Hom퐵(퐵, 푓) 퐸 ⎟ ⎜ 퐴 퐸 ⎟ c ⎜ ⎟ ⎜ ⎟ Fun퐴×퐵 ⎜ , (푞,푝) ⎟ ⥲ Fun퐴×퐵 ⎜ (id ,푓) , (푞,푝) ⎟ . ⎜ (푝1,푝0) ⎟ ⎜ 퐴 ⎟ ⎝⎜ ⎠⎟ ⎝⎜ ⎠⎟ 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 Proof. This follows immediately from the external Yoneda lemma of Theorem 5.5.3 applied to the element (id퐴, 푓)∶ 퐴 → 퐴 × 퐵 and the cartesian fibration (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 in the ∞-cosmos 푐표풞푎푟푡(풦)/퐴.  Exercises. 10.3.i. Exercise. State and prove the other one-sided Yoneda lemma for two-sided fibrations, estab- lishing an equivalence of functor spaces below-left induced by restricting along the functor below- right ⎛ ⎞ ⎛ ⎞ 퐵 ⎜ ⎟ ⎜ ⎟ 푓 ⎜ Hom퐴(푓, 퐴) 퐸 ⎟ ⎜ 퐵 퐸 ⎟ c ⎜ ⎟ ⎜ ⎟ Fun ⎜ , ⎟ ⥲ Fun ⎜ , ⎟ 푖 퐴×퐵 ⎜ (푝1,푝0) (푞,푝) ⎟ 퐴×퐵 ⎜ (푓,id퐵) (푞,푝) ⎟ 퐴 퐵 ⎜ ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ ⎝ ⎠ 푝 푝 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 1 0 Hom퐴(푓, 퐴)

10.4. Modules as discrete two-sided fibrations We are not so much interested in two-sided fibrations but the special case of those two-sided fibrations that are discrete as objects in 풦/퐴×퐵. 푞 푝 10.4.1. Definition. A module from 퐴 to 퐵 is a two-sided fibration 퐴 ←−←퐸 −→→퐵 that is a discrete object in 퐴\ℱ푖푏(풦)/퐵.

Note that an object in the replete subcosmos 퐴\ℱ푖푏(풦)/퐵 ↪ 풦/퐴×퐵 is discrete in there if and only if it is discrete as an object of 풦/퐴×퐵; see Exercise 7.4.v. Our work in this chapter enables us to give a direct characterization of modules: 푞 푝 10.4.2. Lemma. A two-sided isofibration 퐴 ←−←퐸 −→→퐵 defines a module from 퐴 to 퐵 if and only if it is (i) cocartesian on the left, (ii) cartesian on the right, (iii) and discrete as an object of 풦/퐴×퐵.

280 Proof. This follows immediately from the characterization of two-sided fibrations given as The- orem 10.1.4(iv).  Unpacking the definition, we easily establish the following properties of modules. 푞 푝 10.4.3. Lemma. If 퐴 ←−←퐸 −→→퐵 defines a module from 퐴 to 퐵, then (i) The functors (푞,푝) (푞,푝) 퐸 퐴 × 퐵 퐸 퐴 × 퐵

푝 휋 푞 휋 퐵 퐴 define a discrete cocartesian fibration and a discrete cartesian fibration, respectively, in the slice ∞-cosmoi 풦/퐵 and 풦/퐴. (ii) The functors 푞∶ 퐸 ↠ 퐴 and 푝∶ 퐸 ↠ 퐵 respectively define a cocartesian fibration and a cartesian fibration in 풦. (iii) For any 2-cell 휒 with codomain 퐸, 휒 is 푝-cartesian if and only if 푞휒 is invertible, and 휒 is 푞-cocartesian if and only if 푝휒 is invertible. (iv) In particular, any 2-cell that is fibered over 퐴 × 퐵 is both 푝- and 푞-cocartesian and any map of spans from a two-sided fibration 퐹 푠 푟 퐴 푔 퐵 푞 푝 퐹 to a module defines a cartesian functor of two-sided fibrations in the sense of Lemma 10.1.10, and also a cartesian functor from 푠 to 푞 and from 푟 to 푝. Proof. By Lemma 10.1.1, conditions (i) and (iii) together assert exactly that (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 defines a discrete cocartesian fibration in 풦/퐵, proving (i). Statement (ii) holds for any two-sided fibration; the point of reasserting it here is that it is not necessarily the case that the legs of a module are themselves discrete fibrations (see Exercise 10.4.i). One direction of statement (iii) is proven as Lemma 10.1.1 while the converse is proven in Exercise 10.1.i. Statement (iv) follows.  An important property of modules is that they are stable under pullback: 10.4.4. Proposition. If 퐴 ↞ 퐸 ↠ 퐵 is a module from 퐴 to 퐵 and 푎∶ 퐴′ → 퐴 and 푏∶ 퐵′ → 퐵 are any pair of functors, then the pullback defines a module 퐴′ ↞ 퐸(푏, 푎) ↠ 퐵′ from 퐴′ to 퐵′. Proof. The cosmological functor ∗ (푎, 푏) ∶ 퐴\ℱ푖푏(풦)/퐵 ⟶ 퐴′\ℱ푖푏(풦)/퐵′ of Proposition 10.2.4 preserves discrete objects in these ∞-cosmoi.  Applying Proposition 10.4.4 to a pair of elements 푎∶ 1 → 퐴 and 푏∶ 1 → 퐵, we see that a module from 퐴 to 퐵 is a two-sided fibration whose fibers 퐸(푏, 푎) are discrete objects. The converse does not generally hold: being discrete as an object of the sliced ∞-cosmos 풦/퐴×퐵 is a stronger condition than merely having discrete fibers. However, in the ∞-cosmos 풬풞푎푡 the point 1 is a generator in a suitable sense and we have: 281 10.4.5. Lemma. If 퐸 ↠ 퐴 × 퐵 is a two-sided fibration of quasi-categories whose fibers are Kan complexes, then 퐸 is a module. 푋 Proof. By definition, 퐸 ↠ 퐴 × 퐵 defines a discrete object in 풬풞푎푡/퐴×퐵 if any 1-simplex in 퐸 that lies over a degenerate 1-simplex in (퐴 × 퐵)푋 is an isomorphism. As isomorphisms in functor quasi-categories are determined pointwise (see Lemma ??), it suffices to consider the case 푋 = 1 and now this reduces to the hypothesis that the fibers 퐸(푏, 푎) over any pair of points (푎, 푏) ∈ 퐴 × 퐵 are Kan complexes.  The prototypical example of a module is given by the arrow ∞-category construction. 10.4.6. Proposition. For any ∞-category 퐴, the arrow ∞-category 퐴ퟚ defines a module from 퐴 to 퐴. The fact that 퐴ퟚ ↠ 퐴 × 퐴 is discrete is related to but stronger than the fact that each fiber over a pair of elements in 퐴, the internal hom-space between those elements of 퐴, is a discrete ∞-category, proven in Proposition 3.3.10. ퟚ Proof. Proposition 10.1.9 proves that (푝1, 푝0)∶ 퐴 ↠ 퐴×퐴 is a two-sided fibration, so it remains ퟚ only to verify the discreteness condition, which we can do in 풦/퐴×퐴 Discreteness of 퐴 ↠ 퐴 × 퐴 as an object of 풦/퐴×퐴 is an immediate consequence of 2-cell conservativity of Proposition 3.2.5: if 훾 is ퟚ any 2-cell with codomain 퐴 so that 푝0훾 and 푝1훾 are invertible, then 훾 is itself invertible.  By the construction of (3.3.2) and Proposition 10.4.4:

10.4.7. Corollary. The comma ∞-category Hom퐴(푓, 푔) ↠ 퐶×퐵 associated to a pair of functors 푓∶ 퐵 → 퐴 and 푔∶ 퐶 → 퐴 defines a module from 퐶 to 퐵.  Two special cases of these comma modules, those studied in §3.4, deserve a special name: 10.4.8. Definition. To any functor 푓∶ 퐴 → 퐵 between ∞-categories

(i) the module Hom퐵(퐵, 푓) from 퐴 to 퐵 is right or covariantly represented by 푓, while (ii) the module Hom퐵(푓, 퐵) from 퐵 to 퐴 is left or contravariantly represented by 푓. As we saw in §5.5, the Yoneda lemma for two-sided fibrations simplifies when mapping into a module on account of the observation in Lemma 10.4.3(iv) that any map of spans from a two-sided fibration to a module defines a cartesian functor. 10.4.9. Theorem (Yoneda lemma for modules). For any elements 푎∶ 푋 → 퐴 and 푏∶ 푋 → 퐵 and any 푞 푝 module 퐴 ←−←퐸 −→→퐵, restriction along (⌜id푎⌝, ⌜id푏⌝)∶ 푋 → Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) defines an 푋 equivalence of Kan complexes ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ Hom퐴(푎, 퐴) × Hom퐵(퐵, 푏) ⎟ ⎜ ⎟ ⎜ 푋 퐸 ⎟ ⎜ 푋 퐸 ⎟ ⎜ ⎟ ⎜ ⎟ Fun퐴×퐵 ⎜ , ⎟ ⥲ Fun퐴×퐵 ⎜ (푎,푏) , ⎟ . ⎜ ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ ⎝ ⎠ 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵

282 Similarly for any functors 푓∶ 퐴 → 퐵 or 푔∶ 퐵 → 퐴, restriction along ⌜id푓⌝∶ 퐴 → Hom퐵(퐵, 푓) or ⌜id푔⌝∶ 퐵 → Hom퐴(푔, 퐴) define equivalences of Kan complexes ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ Hom퐵(퐵, 푓) 퐸 ⎟ ⎜ 퐴 퐸 ⎟ ⎜ ⎟ ⎜ ⎟ Fun퐴×퐵 ⎜ , ⎟ ⥲ Fun퐴×퐵 ⎜ (id,푓) , ⎟ ⎜ ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ ⎝⎜ ⎠⎟ 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 ⎛ ⎞ ⎛ ⎞ ⎜ ⎟ ⎜ ⎟ ⎜ Hom퐴(푔, 퐴) 퐸 ⎟ ⎜ 퐵 퐸 ⎟ ⎜ ⎟ ⎜ ⎟ Fun퐴×퐵 ⎜ , ⎟ ⥲ Fun퐴×퐵 ⎜ (푔,id) , ⎟ .  ⎜ ⎟ ⎜ ⎟ ⎝⎜ ⎠⎟ ⎝⎜ ⎠⎟ 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 퐴 × 퐵 Exercises. 푞 푝 10.4.i. Exercise. Demonstrate by means of an example that if 퐴 ←−←퐸 −→→퐵 defines a module from 퐴 to 퐵 then it is not necessarily the case that 푝∶ 퐸 ↠ 퐵 is a discrete cartesian fibration or 푞∶ 퐸 ↠ 퐴 is a discrete cocartesian fibration. 10.4.ii. Exercise. 핟 (i) Explain why the two-sided fibration (푝푛−1, 푝푛)∶ 퐴 ↠ 퐴 × 퐴 of Proposition 10.1.9 does not define a module for 푛 > 2. (ii) Conclude that the horizontal composite of modules, as defined in Proposition 10.2.6, is not necessarily a module.

283

CHAPTER 11

The calculus of modules

The calculus of modules between ∞-categories bears a strong resemblance to the calculus of (bi)modules between unital rings. Here ∞-categories take the place of rings, with functors between ∞-categories playing the role of ring homomorphisms, which we display vertically on the table below. A module 퐸 from 퐴 to 퐵, like the two-sided fibrations considered in Chapter 10, is an ∞-category on which 퐴 “acts on the left” and 퐵 “acts on the right” and these actions commute; this is analogous to the situation for bimodules in ring theory and explains our choice of terminology.¹ Modules will now 퐸 be depicted as 퐴⇸퐵 whenever explicit names for the legs of the constituent span are not needed. unital rings 퐴 ∞-categories 퐴′ ring homomorphisms 푎 ∞-functors 퐴 퐸 bimodules between rings 퐴⇸퐵 modules between ∞-categories 퐸′ 퐴′ 퐵′

module maps 푎 ⇓ 푏 module maps 퐴 퐵 퐸 Finally, there is a notion of module map, that we shall introduce below, whose boundary in the most general case is a square comprised of two modules and two functors as above. In ring theory, a module map with this boundary is given by an 퐴′–퐵′ module homomorphism 퐸′ → 퐸(푏, 푎), whose codomain is the 퐴′–퐵′ bimodule defined by restricting the scalar multiplication in the 퐴–퐵 module 퐸 along the ring homomorphisms 푎 and 푏. The analogy extends deeper than this: unital rings, ring homomorphisms, bimodules, and module maps define a proarrow equipment, in the sense of Wood [64].² Our main result in this chapter is The- orem 11.2.6, which asserts that ∞-categories, functors, modules, and module maps in any ∞-cosmos define a virtual equipment, in the sense of Cruttwell and Shulman [15]. As a first step, in §11.1 we introduce the double category of two-sided fibrations, which restricts to define a virtual double category of modules. A double category is a sort of 2-dimensional category with ob- jects; two varieties of 1-morphisms, the “horizontal” and the “vertical”; and 2-dimensional cells fitting

¹In the 1- and ∞-categorical literature, the names “profunctor,” “correspondence,” and “distributor” are all used as synonyms for “module.” ²This can be seen as a special case of the prototypical equipment comprised of 풱-categories, 풱-functors, 풱-modules, and 풱-natural transformations between then, for any closed symmetric monoidal category 풱. The equipment for rings is obtained from the case where 풱 is the category of abelian groups by restricting to abelian group enriched categories with a single object.

285 into “squares” whose boundaries consist of horizontal and vertical 1-morphisms with compatible do- mains and codomains. A motivating example from abstract algebra is the double category of modules: objects are rings, vertical morphisms are ring homomorphisms, horizontal morphisms are bimodules, and whose squares are bimodule homomorphisms. In the literature, this sort of structure is sometimes called a pseudo double category — morphisms and squares compose strictly in the “vertical” direction but only up to isomorphism in the “horizontal” direction — but we’ll refer to this simply as a “double category” as it is the only variety that we will consider. Our aim in §11.1 is to describe a similar structure whose objects and vertical morphisms are the ∞-categories and functors in any fixed ∞-cosmos, whose horizontal morphisms are modules, and whose squares are module maps, as will be defined in 11.1.6. If the horizontal morphisms are replaced by the larger class of two-sided fibrations, this does define a double category with the horizontal composition operation defined by Proposition 10.2.6. However, on account of Exercise 10.4.ii, the horizontal composition of two-sided fibrations does not preserve the class of modules: the arrow ∞-category 퐴ퟚ defines a module from 퐴 to 퐴 whose horizontal composite with itself is equivalent to ퟛ the two-sided fibration (푝2, 푝0)∶ 퐴 ↠ 퐴 × 퐴 of Proposition 10.1.9, which is not discrete in 풦/퐴×퐴. To define a genuine “tensor product for modules” operation would require a two-stage construction: first forming the pullback that defines a composite two-sided fibration as in Proposition 10.2.6, and then reflecting this into a two-sided discrete fibration by means of some sort of “homotopy coinverter” construction. As colimits that are not within the purview of the axioms of an ∞-cosmos, this presents somewhat of an obstacle. Rather than leave the comfort of our axiomatic framework in pursuit of a double category of mod- ules, we instead describe the structure that naturally arises within the axiomatization: it turns out to be familiar to category theorists and robust enough for our desired applications. We first demon- strate that ∞-categories, functors, modules, and module maps assemble into a virtual double category, a weaker structure than a double category in which cells are permitted to have a multi horizontal source, as a “virtual” replacement for horizontal composition of modules. Once the definition of a virtual equipment is given in §11.2, these axioms are very easily checked. The final two sections are devoted to exploring the consequences of this structure, which will be put to full use in Chapter 12, which develops the formal category theory of ∞-categories by introducing Kan extensions in the virtual equipment of modules. In §11.3, we explain how certain horizontal com- posites of modules can be recognized in the virtual equipment, even if the general construction of the tensor product of an arbitrary composable pair of modules is not known. The final §11.4 collects to- Hom퐵(퐵,푓) Hom퐵(푓,퐵) gether many special properties of the modules 퐴 ⇸ 퐵 and 퐵 ⇸ 퐴 represented by a functor 푓∶ 퐴 → 퐵 of ∞-categories, revisiting some of the properties first established in §3.4. 11.1. The double category of two-sided fibrations Our first task is to define the 2-dimensional morphisms in the double categories that we will introduce.

286 푞 푝 푠 푟 11.1.1. Definition. Let 퐴 ←−←퐸 −→→퐵 and 퐴 ←−←퐹 −→→퐵 be two-sided isofibrations. A map of spans 푞 푝 푠 푟 from 퐴 ←−←퐸 −→→퐵 to 퐴 ←−←퐹 −→→퐵 is a fibered isomorphism class of strictly commuting functors

푞 퐸 푝 퐴 푔 퐵 푠 푟 퐹 where two such functors 푔 and 푔′ are considered equivalent if there exists a natural isomorphism ′ 훼∶ 푔 ≅ 푔 so that 푟훼 = id푞 and 푠훼 = id푝. 푞 푝 푠 푟 11.1.2. Definition. Let 퐴 ←−←퐸 −→→퐵 and 퐴 ←−←퐹 −→→퐵 be two-sided fibrations. A map of two-sided 푞 푝 푠 푟 fibrations from 퐴 ←−←퐸 −→→퐵 to 퐴 ←−←퐹 −→→퐵 is a map of spans in which any and hence every representing map

푞 퐸 푝 퐴 푔 퐵 푠 푟 퐹 defines a cartesian functor of two-sided fibrations defined in Lemma 10.1.10. 푞 푝 푠 푟 11.1.3. Definition. Let 퐴 ←−←퐸 −→→퐵 and 퐴 ←−←퐹 −→→퐵 be modules. A map of modules from 퐸 to 푞 푝 푠 푟 퐹 is just a map of spans from 퐴 ←−←퐸 −→→퐵 to 퐴 ←−←퐹 −→→퐵, that is a fibered isomorphism class of strictly commuting functors

푞 퐸 푝 퐴 푔 퐵 푠 푟 퐹 11.1.4. Observation (the 1-categories of spans and maps). The 1-category of two-sided isofibrations from 퐴 to 퐵 and maps of spans may be obtained as a quotient of the quasi-categorically enriched category 풦/퐴×퐵, or of its homotopy 2-category 픥(풦/퐴×퐵), or of the slice homotopy 2-category 픥풦/퐴×퐵: it is the 1-category with the same set of objects and in which the morphisms are isomorphism classes of 0-arrows. Similarly, the 1-category of two-sided fibrations from 퐴 to 퐵 and maps of two-sided fibrations may be obtained as a quotient of the quasi-categorically enriched category 퐴\ℱ푖푏(풦)/퐵, or of its homotopy 2-category 픥(퐴\ℱ푖푏(풦)/퐵): it is the 1-category with the same set of objects and in which the morphisms are isomorphism classes of 0-arrows. By Lemma 10.4.3, the 1-category of modules from 퐴 to 퐵 and modules maps is a full subcategory of either of the two 1-categories just considered. The 1-categories of Observation 11.1.4 are of interest because they precisely capture the correct no- tion of equivalence between two-sided isofibrations, two-sided fibrations, or modules first introduced in Definition 3.2.7.

287 11.1.5. Lemma.

(i) A pair of two-sided isofibrations are equivalent in 풦/퐴×퐵 if and only if they are isomorphic in the 1-category of spans from 퐴 to 퐵. (ii) A pair of two-sided fibrations are equivalent in 퐴\ℱ푖푏(풦)/퐵 if and only if they are isomorphic in the 1-category of two-sided fibrations from 퐴 to 퐵. (iii) A pair of modules are equivalent over 퐴 times 퐵 if and only if they are isomorphic in the 1-category of modules from 퐴 to 퐵.  Each of the Definitions 11.1.3 admits a common generalization, which defines the 2-dimensional maps inhabiting squares. 11.1.6. Definition (maps in squares). A map of modules or map of two-sided fibrations or map of 푞′ 푝′ 푞 푝 two-sided isofibration from 퐴′ ←−−←퐸′ −−→→퐵′ to 퐴 ←−←퐸 −→→퐵 over 푎∶ 퐴′ → 퐴 and 푏∶ 퐵′ → 퐵 is 퐸′ 푔 퐴′ 퐵′ 퐸′ 퐸 ′ ′ 푎 ⇓ 푏 (푞 ,푝 ) (푞,푝) 퐴 퐵 퐴′ × 퐵′ 푎×푏 퐴 × 퐵 퐸 is a fibered isomorphism class of strictly commuting functors 푔 as displayed above-right, which in the case of two-sided fibrations must preserve the cartesian and cocartesian transformations, where two such functors 푔 and 푔′ are considered equivalent if there exists a natural isomorphism 훼∶ 푔 ≅ 푔′ so that 푞훼 = id푎푞′ and 푝훼 = id푏푝′. ′ In the case of modules or two-sided isofibrations, the functor-space Fun푎×푏(퐸 , 퐸) of maps from 퐸′ to 퐸 over 푎 × 푏 is defined by the pullback Fun (퐸′, 퐸) Fun(퐸′, 퐸) 푎×푏 ⌟ (푞,푝)

ퟙ Fun(퐸′, 퐴 × 퐵) (푎푞′,푏푝′) In the case of two-sided fibrations, the functor space is taken to be the full sub quasi-category c ′ ′ Fun푎×푏(퐸 , 퐸) ⊂ Fun푎×푏(퐸 , 퐸) of all 푛-simplices whose vertices define cartesian functors. id퐶 We occasionally extend the notion of map to allow the domain to be an identity span 퐶 ←−− id퐶 퐶 −−→퐶, but unless the domain is the identity span, we always require the codomain to be at least a two-sided isofibration. We now introduce the double categories of isofibrations and of two-sided fibrations. These struc- tures can be viewed either as a collection of data present in the homotopy 2-category 픥풦 of an ∞-cosmos or as a quotient of quasi-categorically enriched structures, presented by a non-unital in- ternal category defined up to natural isomorphism in the category of ∞-cosmoi and cosmological functors; see Exercise 11.1.i. For economy of language, we adopt the former approach.

288 11.1.7. Proposition (the double category of two-sided (iso)fibrations). The homotopy 2-category of an ∞-cosmos supports a double category³ of two-sided isofibrations whose: • objects are ∞-categories, • vertical arrows are functors, 퐸 푞 푝 • horizontal arrows 퐴⇸퐵 are two-sided isofibrations 퐴 ←−←퐸 −→→퐵, and • 2-cells with boundary 퐸′ 퐴′ 퐵′

푎 ⇓ 푏 퐴 퐵 퐸 are maps of two-sided isofibrations as defined in 11.1.6, or equivalently, are isomorphism classes of objects ′ in the quasi-category Fun푎×푏(퐸 , 퐸). Vertical composition of arrows and 2-cells is by composition in 풦, while horizontal composition of arrows and 2-cells is by pullback, which is well-defined and associative up to isomorphism. The double category of two-sided fibrations is the sub double category that has the same objects and vertical arrows but whose: 퐸 푞 푝 • horizontal arrows 퐴⇸퐵 are two-sided fibrations 퐴 ←−←퐸 −→→퐵 and • 2-cells with boundary 퐸′ 퐴′ 퐵′

푎 ⇓ 푏 퐴 퐵 퐸 are maps of two-sided fibrations as defined in 11.1.6, or equivalently, are isomorphism classes of objects in c ′ Fun푎×푏(퐸 , 퐸). Proof. The composition of horizontal arrows is defined in Proposition 10.2.6, while the hori- zontal composition of 2-cells is defined in Exercise 10.2.i. By simplicial functoriality of pullback and composition in 풦, both constructions are associative up to canonical natural isomorphism.  11.1.8. Remark (why we left out the horizontal unit). We could have formally added the identity span Δ∶ 퐴 → 퐴 × 퐴 to serve as a horizontal unit in the double categories of Proposition 11.1.7 but we find it less confusing to leave them out because when we restrict to the structure of greatest interest, the Hom퐴 virtual equipment category of modules, we will see that the arrow ∞-category 퐴 ⇸ 퐴 plays the role of the horizontal unit for composition in a sense to be described in Proposition 11.2.4. 11.1.9. Definition (virtual double category). A virtual double category consists of • a category of objects and vertical arrows • for any pair of objects 퐴, 퐵, a class of horizontal arrows 퐴 ⇸ 퐵

³As discussed previously, our double categories support vertical composition laws that are strictly unital and associa- tive but horizontal composition laws that are only associative and unital up to isomorphism. For reasons to be explained in Remarks 11.1.8 and 11.1.13, we choose not to require a horizontal unit arrow or 2-cell.

289 • cells, with boundary depicted as follows

퐸1 퐸2 퐸푛 퐴0 퐴1 ⋯ 퐴푛 푓 ⇓ 푔 (11.1.10)

퐵0 퐵푛 퐹

including those whose horizontal source has length zero, in the case 퐴0 = 퐴푛. • a composite cell as below-right, for any configuration as below-left 퐸 ,…,퐸 퐸 ,…,퐸 11 1푘1 21 2푘2 퐸푛1,…,퐸푛푘푛 퐴0 퐴1 ⋯ 퐴푛 퐸11 퐸12,…,퐸푛푘푛−1 퐸푛푘푛 푓0 ⇓ 푓1 ⇓ ⋯ ⇓ 푓푛 퐴0 ⋅ ⋅ 퐴푛 퐹 퐹 퐹 1 2 푛 ≕ 퐵0 퐵1 ⋯ 퐵푛 푔푓0 ⇓ ℎ푓푛 푔 ⇓ ℎ 퐶0 퐶푛 퐺 퐶0 퐶푛 퐺 • an identity cell for every horizontal arrow 퐸 퐴 퐵

⇓id퐸 퐴 퐵 퐸 so that composition of cells is associative and unital in the usual multi-categorical sense. 11.1.11. Lemma. The double category of two-sided isofibrations and the double category of two-sided fibrations extend to a virtual double category in which the • objects are ∞-categories, • vertical arrows are functors, • horizontal arrows are two-sided isofibrations or two-sided fibrations as appropriate, and • 푛-ary cells (11.1.10) are 2-cells

퐸1 × ⋯ × 퐸푛 퐴1 퐴푛−1 퐴0 퐴푛 푓 ⇓ 푔 (11.1.12)

퐵0 퐵푛 퐹 whose single vertical source is the (푛 − 1)-fold pullback of the sequence of spans comprising the vertical source in (11.1.10).

290 Proof. The only thing perhaps worth commenting on is the nullary cells which have an empty sequence as their vertical domain 퐴 퐴 푓 ⇓ 푔 퐵 퐶 퐹 which we interpret as a 0-fold pullback, this being the identity span from 퐴 to 퐴. So the nullary cells displayed above are fibered isomorphism classes of maps 퐴 푓 푔

퐵 ℎ 퐶 푠 푟 퐹 where ℎ and ℎ′ lie in the same equivalence class if there exists a natural isomorphism 훼∶ ℎ ≅ ℎ′ so that 푠훼 = id푓 and 푟훼 = id푔.  11.1.13. Remark. For instance, the map 퐴 퐴 퐴 퐴 Δ 퐴 ↭ ⇓

푞1 푞0 핀 퐴 퐴 퐴 퐴핀 퐴핀 defines a nullary morphism with codomain 퐴⇸퐴 in the virtual double category of two-sided isofi- brations. Note, however, that despite the fact that Δ∶ 퐴 ⥲ 퐴핀 defines an equivalence in 풦, this cell does not define an isomorphism in the virtual double category of any kind. It is for this sort of reason that we left out the identity horizontal arrows in Proposition 11.1.7. Our main example of interest is a full sub virtual double category defined by restricting the class of horizontal arrows and taking all cells between them. Since the only operations given in the structure of a virtual double category are vertical sources and targets, vertical identities, and vertical composition, it is clear that this substructure is closed under all of these operations, and thus inherits the structure of a virtual double category: 11.1.14. Proposition. For any ∞-cosmos 풦, there is a virtual double category of modules ℳ표푑(픥풦) defined as a full subcategory of either the virtual double categories of isofibrations or the virtual double category of two- sided fibrations whose • objects are ∞-categories, • vertical arrows are functors, 퐸 • horizontal arrows 퐴⇸퐵 are modules 퐸 from 퐴 to 퐵,

291 • 푛-ary cells are fibered isomorphism classes of maps of spans

퐸1 × ⋯ × 퐸푛 퐴1 퐴푛−1 퐸1 퐸2 퐸푛 퐴0 퐴1 ⋯ 퐴푛 퐴0 퐴푛 푓 ⇓ 푔 ↭ (11.1.15) 푓 푔

퐵0 퐵푛 퐵0 퐵푛 퐹 퐹 These maps, introduced in Definition 11.1.6, can be thought of as special cases of the 푛-ary cells of Lemma 11.1.11 where 퐸1, … , 퐸푛, 퐹 are all required to be modules: the single horizontal source in the diagram (11.1.12) is the two-sided fibration defined by the (푛−1)-fold pullback of the sequence of modules comprising the horizontal source in the left-hand diagram.  We refer to (11.1.15) as an 푛-ary module map. Note a 1-ary module map is just a module map as in Definition 11.1.6. We refer to the finite sequence of modules occurring as the horizontal domain of an 푛-ary module map as a composable sequence of modules, which just means that their horizontal sources and targets are compatible in the evident way. A hint at the relevance of this notion of 푛-ary module map is given by the following special case.

Hom퐷(ℎ,푘) 11.1.16. Lemma. There is a bijection between 푛-ary module maps whose codomain module 퐵 ⇸ 퐶 is a comma as displayed below-left and 2-cells in the homotopy 2-category whose boundary is displayed above-right.

퐸1 × ⋯ × 퐸푛 퐴1 퐴푛−1 퐸1 퐸2 퐸푛 퐴0 퐴1 ⋯ 퐴푛 퐴0 퐴푛 푓 ⇓ 푔 ↭ 푓 ⇐ 푔 퐵 퐶 퐵 퐶 Hom퐷(ℎ,푘) 푘 퐷 ℎ Proof. Combine Definition 11.1.6 with Proposition 3.3.7.  For any pair of objects 퐴 and 퐵 in the virtual double category of modules, there is a vertical 1-category of modules from 퐴 to 퐵 and module maps over a pair of identity functors, which coincides with the 1-category of modules from 퐴 to 퐵 introduced in Observation 11.1.4. 퐸 퐹 11.1.17. Lemma. A parallel pair of modules 퐴⇸퐵 and 퐴⇸퐵 are isomorphic as objects of vertical 1-category of modules in the virtual double category of modules if and only if the modules 퐸 and 퐹 are equivalent as spans from 퐴 to 퐵. Proof. This is a restatement of Lemma 11.1.5(iii). 

For consistency with the rest of the text, we write 퐸 ≃ 퐹 or 퐸 ≃퐴×퐵 퐹 whenever the modules 퐸 퐹 퐴⇸퐵 and 퐴⇸퐵 are isomorphic as objects of the vertical 1-category of modules from 퐴 to 퐵. For instance, Proposition 4.1.1 proves that a functor 푓∶ 퐵 → 퐴 is left adjoint to a functor 푢∶ 퐴 → 퐵 if Hom퐴(푓,퐴) and only if Hom퐴(푓, 퐴) ≃ Hom퐵(퐵, 푢) over 퐴 × 퐵, that is, if and only if the modules 퐵 ⇸ 퐴 Hom퐵(퐵,푢) and 퐴 ⇸ 퐵 are isomorphic as objects of the vertical 1-category of modules from 퐴 to 퐵. 292 Exercises. 11.1.i. Exercise. Generalize the proof of Proposition 7.4.1 to prove that for any ∞-cosmos 풦, there is an ∞-cosmos 풦⤩ whose objects are two-sided isofibrations between an arbitrary pair of ∞-categories. Prove that the domain and codomain define cosmological functors 풦⤩ ⇉ 풦. Use this to give a second description of the double category of two-sided isofibrations as as quotient of a structure defined at the level of quasi-categorically enriched categories. 11.1.ii. Exercise. Prove that any double category defines a virtual double category.⁴ 11.2. The virtual equipment of modules The virtual double category of modules ℳ표푑(픥풦) in an ∞-cosmos 풦 has two special properties that characterize what Cruttwell and Shulman term a virtual equipment. Before stating the definition, we explore each of these in turn. 11.2.1. Proposition (restriction). Any diagram in ℳ표푑(픥풦) as below-left can be completed to a cartesian cell as below-right 퐸(푏,푎) 퐴′ 퐵′ 퐴′ 퐵′ 푎 푏 ⇝ 푎 ⇓휌 푏 퐴 퐵 퐴 퐵 퐸 퐸 characterized by the universal property that any cell as displayed below-left factors uniquely through 휌 as below-right:

퐸1 퐸2 퐸푛 푋0 푋1 ⋯ 푋푛 퐸1 퐸2 퐸푛 푋0 푋1 ⋯ 푋푛 푓 ∃!⇓ 푔 퐸(푏,푎) 푎푓 ⇓ 푏푔 = 퐴′ 퐵′ 퐴 퐵 푎 ⇓휌 푏 퐸 퐴 퐵 퐸

퐸 Proof. The horizontal source of the cartesian cell is defined by restricting the module 퐴⇸퐵 along the functors 푎 and 푏: 휌 퐸(푏, 푎) 퐸 ⌟ (11.2.2)

퐴′ × 퐵′ 퐴 × 퐵 (푎,푏)

⁴If the double category lacks horizontal identity morphisms, the corresponding virtual double category may lack nullary morphisms — unless these can be defined in some other way as we did in the proof of Lemma 11.1.11. Note that if we added identity spans to our double category of two-sided isofibrations, then the corresponding virtual double category would be the correct one, which contains the virtual double category of modules. See Remark 11.1.13 however.

293 By Proposition 10.4.4, this left-hand isofibration defines a module from 퐴′ to 퐵′, while by Defini- tion 11.1.6 the top horizontal functor represents a module map inhabiting the desired square. As in Definition 11.1.6, the simplicial pullback in 풦 induces an equivalence⁵ of functor spaces: 휌∘−

Fun푓×푔(퐸1 × ⋯ × 퐸푛, 퐸(푏, 푎)) ∼ Fun푎푓×푏푔(퐸1 × ⋯ × 퐸푛, 퐸) 퐴1 퐴푛−1 퐴1 퐴푛−1 which descends to a bijection on isomorphism classes of objects. This defines the unique factorization of cells as displayed above left through the cartesian restriction cell 휌.  퐸(푏,푎) 퐸 We refer to the module 퐴′ ⇸ 퐵′ as the restriction of 퐴⇸퐵 along the functors 푎 and 푏, be- cause the pullback (11.2.2) is analogous to the restriction of scalars of a bimodule along a pair of ring homomorphisms. ퟚ Hom퐴(푓,푔) 퐴 11.2.3. Example. The module 퐶 ⇸ 퐵 is the restriction of the module 퐴⇸퐴 along 푔∶ 퐶 → 퐴 Hom퐴 and 푓∶ 퐵 → 퐴. To make this restriction relationship more transparent, we typically write 퐴 ⇸ 퐴 when regarding the arrow ∞-category as a module. Since the common notation for “homs” places the contravariant variable on the left and the covariant variable on the right, we’ve adopted a similar notation convention for restrictions in Proposition 11.2.1. 11.2.4. Proposition (units). Any object 퐴 in ℳ표푑(픥풦) is equipped with a canonical nullary cocartesian cell as displayed below 퐴 퐴 ⇓휄 퐴 퐴 Hom퐴 characterized by the universal property that any cell in ℳ표푑(픥풦) whose horizontal source includes the object 퐴 factors uniquely through 휄 as below-right:

퐸1 퐸푛 퐹1 퐹푚 푋 ⋯ 퐴 퐴 ⋯ 푌 퐸1 퐸푛 퐹1 퐹푚 ⇓id ⇓id ⇓휄 ⇓id ⇓id 푋 ⋯ 퐴 ⋯ 푌 퐸1 ⋯ 퐸푛 퐹1 ⋯ 퐹푚 퐸1 퐸푛 Hom퐴 퐹1 퐹푚 푓 푔 = ⇓ 푋 ⋯ 퐴 퐴 ⋯ 푌 푓 푔 퐵 퐶 ⇓∃! 퐺 퐵 퐶 퐺 Proof. The canonical nullary cell is represented by the map of spans 퐴

퐴 휄 퐴

푝1 푝0 Hom퐴

⁵If the pullbacks are defined strictly, then in fact pullback induces an isomorphism of functor spaces, but even if 퐸(푏, 푎) is replaced by an equivalent module, the functor spaces are still equivalent, which enough to induce a bijection on isomor- phism classes of objects. 294 induced by the generic arrow with codomain 퐴 (3.2.3); recall from Example 11.2.3 that we write Hom퐴 퐴 ⇸ 퐴 for the module encoded by the arrow ∞-category construction. In the case where both of the sequences 퐸푖 and 퐹푗 are empty, the one-sided version of the Yoneda lemma for modules given by Theorem 10.4.9 tells us that restriction along the this map induces an equivalence of functor spaces

Fun퐴×퐴(Hom퐴, 퐺(푔, 푓)) ⥲ Fun퐴×퐴(퐴, 퐺(푔, 푓)). Taking isomorphism classes of objects gives the bijection of the statement. In the case where one or both of the sequences are non-empty, we may form their horizontal composite two-sided fibrations and then form either the horizontal composite 퐸 × Hom퐴 or the 퐴 horizontal composite Hom퐴 × 퐹 of the composable triple below: 퐴

퐸 × Hom퐴 × 퐹

퐴 퐴 ⌜

Hom퐴(퐴, 푝) Hom퐴(푠, 퐴) ⌜ ⌜

퐸 Hom 퐹 푞 퐴 푝 푝1 푝0 푠 푟 푋 퐴 퐴 푌

In the former case, this constructs the two-sided fibration (푞푝1, 푝0)∶ Hom퐴(퐴, 푝) ↠ 푋 × 퐴, and in the latter case this constructs the two-sided fibration (푝1, 푟푝0)∶ Hom퐴(푠, 퐴) ↠ 퐴 × 푌. In both cases, by Lemma 10.1.1, the map 휄 pulls back to define a fibered adjoint functor ℓ 퐸×휄 퐸 퐴 Hom (퐴, 푝) 퐹 ⊥ Hom (푠, 퐴) ⊥ 퐴 휄×퐹 퐴 퐴 (푞,푝) 푟 (푠,푟) (푞푝1,푝0) (푝1,푟푝0) 푋 × 퐴 퐴 × 푌 We only require one of these adjunctions, so without loss of generality we use the former. This fibered adjunction pulls back along 푠 and pushes forward along 푟 to define a fibered adjunction 퐸×휄×퐹 퐴 퐴 퐸 × 퐹 퐸 × Hom퐴 × 퐹 퐴 ⊥ 퐴 퐴 푟 푋 × 푌 between two-sided fibrations. Upon mapping into the discrete object 퐺(푔, 푓) ↠ 푋 × 푌, this adjunc- tion becomes an adjoint equivalence. In particular, restriction along 휄 induces an equivalence of Kan complexes −∘(퐸×휄×퐹) 퐴 퐴

Fun푋×푌(퐸 × Hom퐴 × 퐹, 퐺(푔, 푓)) ∼ Fun푋×푌(퐸 × 퐹, 퐺(푔, 푓)), 퐴 퐴 퐴 and once again taking isomorphism classes of objects gives the bijection of the statement. 

295 Propositions 11.2.1 and 11.2.4 imply that the virtual double category of modules is a virtual equip- ment in the sense introduced by Cruttwell and Shulman [15, §7]. 11.2.5. Definition. A virtual equipment is a virtual double category so that 퐸 (i) For any horizontal arrow 퐴⇸퐵 and pair of vertical arrows 푎∶ 퐴′ → 퐴 and 푏∶ 퐵′ → 퐵, there 퐸(푏,푎) exists a horizontal arrow 퐵′ ⇸ 퐴′ and unary cartesian cell 휌 satisfying the universal property of Proposition 11.2.1. Hom퐴 (ii) Every object 퐴 admits a unit horizontal arrow 퐴 ⇸ 퐴 equipped with a nullary cocartesian cell 휄 satisfying the universal property of Proposition 11.2.4. Thus, Propositions 11.2.1 and 11.2.4 combine to prove: 11.2.6. Theorem. The virtual double category ℳ표푑(픥풦) of modules in an ∞-cosmos 풦 is a virtual equip- ment.  By abstract nonsense, the relatively simple axioms (i) and (ii) established in Theorem 11.2.6 es- tablish a robust “calculus of modules.” In an effort to familiarize the reader with this little-known categorical structure and expedite the proofs of the formal category theory of ∞-categories in Chap- ter 12, we devote the remainder of this chapter to proving a plethora of results that actually follow formally from this axiomatization: namely, Lemmas 11.3.5 and 11.3.11, Proposition 11.4.1, Theorem 11.4.4, Corollary 11.4.6, Proposition 11.4.7, Corollary 11.4.8, and the bijection of Proposition 11.4.10 between unary cells in the virtual equipment of modules. One additional result is left as Exercise 11.4.iii for the reader. 11.2.7. Notation. We adopt the following notational conventions to streamline certain virtual equip- ment diagrams. • We adopt the convention that an unlabeled unary cell whose vertical boundaries are identities and whose horizontal sources and targets is an identity cell. 퐸 퐸 퐴 퐵 퐴 퐵

≔ ⇓id퐸 퐴 퐵 퐴 퐵 퐸 퐸 • Cells whose vertical boundary functors are identities and therefore whose source and target spans lie between the same pair of ∞-categories

퐸1 퐸2 퐸푛

퐴0 퐴1 ⋯ 퐴푛 ⨰ ⨰ 휇∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸 ≔ ⇓휇

퐴0 퐴푛

⨰ ⨰ may be displayed in line using the notation 휇∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸, an expression which implicitly asserts that the modules appearing in the domain define a composable sequence, with the symbol

“⨰” meant to suggest the pullback appearing as the horizontal domain of (11.1.10) rather than a product.

296 Exercises. 11.2.i. Exercise. Prove that unital rings, ring homomorphisms, bimodules, and bimodule maps also define a virtual equipment. 11.3. Composition of modules 퐸 퐹 In a virtual equipment one cannot define the composite of a generic pair 퐴⇸퐵 and 퐵⇸퐶 of 퐺 horizontal morphisms but there is a mechanism by which a particular horizontal composite 퐴⇸퐶 that happens to exist can be recognized, in which case we write 퐸 ⊗ 퐹 ≃ 퐺 to reinforce the intuition provided by the analogy with bimodules. In the virtual equipment of modules, a composition relation 퐸 ⊗ 퐹 ≃ 퐺 does not mean that the module 퐺 is equivalent to the horizontal composite two-sided

isofibration 퐸 ⨰ 퐹. Rather, in the notation of 11.2.7 a composition relation is witnessed by a module

map 퐸 ⨰ 퐹 ⇒ 퐺 that defines a cocartesian cell in a sense analogous to the universal property stated in Proposition 11.2.4.⁶ 11.3.1. Definition. A composable sequence of modules

퐸1 퐸2 퐸푛 퐴0 ⇸퐴1, 퐴1 ⇸퐴2, … , 퐴푛−1 ⇸퐴푛 퐸

admits a composite if there exists a module 퐴0 ⇸퐴푛 and a cocartesian cell ⨰ ⨰ 휇∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸 characterized by the universal property that any cell of the form

퐹1 퐹푚 퐸1 퐸푛 퐺1 퐺푘 푋 ⋯ 퐴0 ⋯ 퐴푛 ⋯ 푌 푓 푔 ⇓ 퐵 퐶 퐻 factors uniquely through 휇 as follows:

퐹1 퐹푚 퐸1 퐸푛 퐺1 퐺푘 푋 ⋯ 퐴0 ⋯ 퐴푛 ⋯ 푌 ⋯ ⇓휇 ⋯ 퐹1 퐹푚 퐸 퐺1 퐺푘 푋 ⋯ 퐴0 퐴푛 ⋯ 푌 푓 푔 ⇓∃!

퐵 퐶

퐻 ⨰

A composite 휇∶ 퐸 ⨰ ⋯ 퐸 ⇒ 퐸 can be used to reduce the domain of a cell by replacing ⨰ 1 푛 ⨰ any occurrence of the composable sequence 퐸1 ⋯ 퐸푛 from 퐴0 to 퐴푛 by a single module 퐸. Particularly in the case of binary composites, we write 퐸1 ⊗퐸2 to denote the composite of the modules

⁶In nearly all cases where 퐸 ⊗ 퐹 ≃ 퐺, precomposition with the cocartesian map 휇∶ 퐸 ×퐵 퐹 ⇒ 퐺, which by Definition 11.1.1 corresponds to a fibered isomorphism class of maps of spans over 퐴 × 퐶, induces an equivalence of Kan complexes − ∘ 휇∶ Fun퐴×퐶(퐺, 퐻) ⥲ Fun퐴×퐶(퐸 ×퐵 퐹, 퐻) for all modules 퐻, so the module 퐺 may be understood as the “reflection” of the two-sided isofibration 퐸 ×퐵 퐹 into the subcategory of modules. Corollary 10.3.5, reappearing as Proposition 11.3.7 below, is one instance of this.

297 퐸1 and 퐸2, appearing as the codomain of the cocartesian cell 퐸1 ×퐸2 ⇒ 퐸1 ⊗퐸2. Lemma 11.1.17 easily implies that composites are unique up to vertical isomorphism, i.e., by Lemma 11.1.17 up to equivalence

of modules. Moreover:

⨰ ⨰

11.3.2. Lemma. Suppose the cells 휇푖 ∶ 퐸푖1 ⋯ 퐸푖푘 ⇒ 퐸푖 exhibit composites for 푖 = 1, … , 푛. ⨰ ⨰ 푖

(i) If 휇∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸 exhibits a composite then the composite cell

⨰ ⨰

⨰ ⨰ ⨰ ⨰ 휇1 ⋯ 휇푛 휇

퐸11 ⋯ 퐸푛푘푛 퐸1 ⋯ 퐸푛 퐸

⨰ ⨰

exhibits 퐸 as a composite of the sequence 퐸11 ⋯ 퐸푛푘푛.

(ii) If the composite cell

⨰ ⨰

⨰ ⨰ ⨰ ⨰ 휇1 ⋯ 휇푛 휇

퐸11 ⋯ 퐸푛푘푛 퐸1 ⋯ 퐸푛 퐸

⨰ ⨰ ⨰

exhibits 퐸 as a composite of the sequence 퐸 ⨰ ⋯ 퐸 , then 휇∶ 퐸 ⋯ 퐸 ⇒ 퐸 exhibits 퐸 ⨰ ⨰ 11 푛푘푛 1 푛 as a composite of the sequence 퐸1 ⋯ 퐸푛. Proof. For (i), the required bijection factors as a composite of 푛 + 1 bijections induced by the maps 휇1, … , 휇푛 and 휇. For (ii), the required bijection induced by 휇 composes with the bijections supplied by the maps 휇1, … , 휇푛 to a bijection and is thus itself a bijection.  The trivial instances of composites are easily verified: 11.3.3. Lemma.

(i) The units 휄∶ ∅ ⇒ Hom퐴 of Proposition 11.2.4 define nullary composites. (ii) A unary cell 휇∶ 퐸 ⇒ 퐹 is a composite if and only if it is an isomorphism in the vertical category of modules from 퐴 to 퐵 and module maps over identity functors, that is, if and only if the modules 퐸 and 퐹 are equivalent as spans. Proof. Exercise 11.3.ii. 

11.3.4. Remark. On account of the universal property of restrictions established in Proposition 11.2.1, ⨰ ⨰ to prove that a cell 휇∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸 exhibits a composite, it suffices to prove the factorization property of Definition 11.3.1 in the case where the vertical functors are identities.

Hom퐴 As one might hope, the unit modules 퐴 ⇸ 퐴 are units for the composition of Definition 11.3.1: 퐸 for any module 퐴⇸퐵, Hom퐴 ⊗ 퐸 ⊗ Hom퐵 ≃ 퐸. 퐸 11.3.5. Lemma (composites with units). For any module 퐴⇸퐵 the unique cell ∘∶ Hom퐴×퐸×Hom퐵 ⇒ 퐸 defined using the universal property of the unit cell 퐸 퐴 퐴 퐵 퐵 퐸 ⇓휄 ⇓휄 퐴 퐵 Hom퐴 퐸 Hom퐵 퐴 퐴 퐵 퐵 ≔

⇓∘ 퐴 퐵 퐸 퐴 퐵 퐸 displays 퐸 as the composite Hom퐴 ⊗ 퐸 ⊗ Hom퐵. 298 Proof. The result is immediate from Lemma 11.3.2(ii) and Lemma 11.3.3.  The argument used in the proof of Proposition 11.2.4 to demonstrate that units define nullary composites in the virtual equipment of modules applies also to more general composites.

11.3.6. Lemma. Consider an 푛-ary module morphism 휇∶ 퐸1 × ⋯ × 퐸푛 ⇒ 퐸 in the virtual equipment of 퐴1 퐴푛−1

modules whose codomain is a module from 퐴 to 퐵. If any representing map of spans

⨰ ⨰ ⌜휇⌝ 퐸1 ⋯ 퐸푛 퐸

퐴 × 퐵 admits a fibered adjoint over 퐴 × 퐵, then 휇 exihibits 퐸 as the composite 퐸1 ⊗ ⋯ ⊗ 퐸푛. Proof. To verify the universal property of Definition 11.3.1, consider a composable sequence of modules 퐹1, … , 퐹푚 from 푋 to 퐴 and a composable sequence of modules 퐺1, … , 퐺푘 from 퐵 to 푌 and form the horizontal composite two-sided fibrations 퐹 퐺 푞 푝 and 푠 푟 푋 퐴 퐵 푌 The fibered adjunction of the statement pulls back along 푝×푠∶퐹×퐺↠퐴×퐵 and pushes forward along 푞×푟∶퐹×퐺→푋×푌 to a fibered adjoint to 퐹×⌜휇⌝×퐺 퐴 퐵 퐹 × 퐸1 × ⋯ × 퐸푛 × 퐺 퐹 × 퐸 × 퐺 퐴 퐴1 퐴푛−1 퐵 퐴 퐵

푋 × 푌 퐻 Via Remark 11.3.4, it suffices to verify the universal property of the composite for modules 푋⇸푌. Since modules are discrete, applying Fun푋×푌(−, 퐻) transforms this fibered adjunction into an adjoint equivalence −∘(퐹×⌜휇⌝×퐺) 퐴 퐵

Fun푋×푌(퐹 × 퐸 × 퐺, 퐻) ∼ Fun푋×푌(퐹 × 퐸1 × ⋯ × 퐸푛 × 퐺, 퐻). 퐴 퐵 퐴 퐴1 퐴푛−1 퐵 Passing to isomorphism classes of objects this now gives the universal property of Definition 11.3.1.  For instance: 퐸 푞 푝 11.3.7. Proposition. Let 퐴⇸퐵 be a module encoded by the span 퐴 ←−←퐸 −→→퐵. Then the binary module map Hom퐴(푞,퐴) Hom퐵(퐵,푝) 퐴 퐸 퐵

⇓휇 퐴 퐵 퐸 represented by composite left and right adjoints of Theorem 10.1.4(iii) exhibits 퐸 ≃ Hom퐴(푞, 퐴)⊗Hom퐵(퐵, 푝) as the composite of the modules representing its legs.

299 Proof. Immediate from Theorem 10.1.4(iii) and Lemma 11.3.6 applied twice.⁷  푞 푝 11.3.8. Remark. Nothing in the proof of Proposition 11.3.7 requires that the span 퐴 ←−←퐸 −→→퐵 is actually a module except for the interpretation that 휇 is a binary cell in the virtual equipment of 푞 푝 modules. For any two-sided fibration 퐴 ←−←퐸 −→→퐵, it is still the case that restriction along 휇 defines a

bijection between 푛-ary maps whose source includes the span 퐸 and whose codomain is a module stand ⨰ in bijection with (푛 + 1)-ary maps whose source includes Hom퐴(푞, 퐴) Hom퐵(퐵, 푝). By Theorem

10.4.9, this result can be extended further to mere spans 퐸, not necessarily two-sided fibrations. ⨰ 11.3.9. Remark. We provide another description of composition map 휇∶ Hom퐴(푞, 퐴) Hom퐵(퐵, 푝) ⇒ 퐸. The comma cones

Hom퐴(푞, 퐴) × Hom퐵(퐵, 푝)

퐸 ⌜

Hom퐴(푞, 퐴) Hom퐵(퐵, 푝) 푝1 푝0 푝1 푝0 휙 휙 ⇐ ⇐ 퐴 푞 퐸 푝 퐵 Define a pair of 2-cells to which the premises of Theorem 10.1.4(iv) apply. The conclusion asserts that there is a well-defined fibered isomorphism class of functors ⌜휇⌝∶ Hom퐴(푞, 퐴) × Hom퐵(퐵, 푝) → 퐸 퐸 defined by taking the 푞-cocartesian lift of the left comma cone, composing with the right comma cone, and then taking the codomain of a 푝-cartesian lift of this composite cell — or by first taking the 푝-cartesian lift, composing, and then taking the domain of a 푞-cartesian lift of this composite — this 퐸 being the functor ℓ푟 ≃ 푟ℓ in the notation of Theorem 10.1.4(iii). In the case where 퐴⇸퐵 is itself a comma module, the resulting fibered isomorphism class of functors ⌜휇⌝ is the one that classifies the pasted composite above with the comma cone for 퐸. 퐸 Any virtual double category has an identity cell for each horizontal arrow 퐴⇸퐵 whose vertical boundary arrows are identities. In a virtual equipment, we also have a unit cell for each vertical Hom퐴 Hom퐵 arrow 푓∶ 퐴 → 퐵 whose horizontal boundary is given by the unit modules 퐴 ⇸ 퐴 and 퐵 ⇸ 퐵 of Proposition 11.2.4. 11.3.10. Definition. Using the unit modules in ℳ표푑(픥풦), for any functor 푓∶ 퐴 → 퐵 we may define a unary unit cell as displayed below-left by appealing to the universal property of the nullary unit cell 휄∶ ∅ ⇒ Hom퐴 for 퐴 in the equation below-right: 퐴 퐴 퐴 퐴 Hom퐴 퐴 퐴 ⇓휄 푓 푓 ⇜ Hom퐴 푓 ⇓Hom푓 푓 퐴 퐴 ≔ 퐵 퐵

퐵 퐵 푓 ⇓Hom푓 푓 ⇓휄 Hom퐵 퐵 퐵 퐵 퐵 Hom퐵 Hom퐵

⁷Of course the composite of a left and a right adjoint is not an adjoint but here we’re effectively composing adjoint equivalences in which case the direction does not matter. 300 In the characterization of Lemma 11.1.16, both sides of the pasting equality defining the unary unit 푓 cell correspond to the identity 2-cell 퐴 ⇓id푓 퐵 . 푓 As one might hope, the unit cells are units for the vertical composition of cells in the virtual equipment of modules. 11.3.11. Lemma (composition with unit cells). Any cell 훼 as below-right equals the pasted composite below- left:

퐸1 퐸2 퐸푛 퐴0 퐴0 퐴1 ⋯ 퐴푛 퐴푛

⇓휄 ⋯ ⇓휄 Hom 퐴0 퐸1 퐸2 퐸푛 Hom퐴푛 퐸1 퐸2 퐸푛 퐴0 퐴0 퐴1 ⋯ 퐴푛 퐴푛 퐴0 퐴1 ⋯ 퐴푛 = 푔 푓 ⇓Hom푓 푓 ⇓훼 푔 ⇓Hom푔 푔 푓 ⇓훼 퐵 퐵 퐶 퐶 퐵 퐶 Hom퐵 퐸 Hom퐶 퐸 ⇓∘ 퐵 퐶 퐸 Proof. By Definition 11.3.10 and the laws for composition with identity cells in a virtual double category stated in Definition 11.1.9, the left-hand composite of the statement equals the left-hand com- posite cell displayed below and the right-hand side of the statement equals the right-hand composite cell displayed below:

퐸1 퐸2 퐸푛 퐴0 퐴0 퐴1 ⋯ 퐴푛 퐴푛 퐸1 퐸2 퐸푛 푓 푓 ⇓훼 푔 푔 퐴0 퐴1 ⋯ 퐴푛 퐵 퐵 퐶 퐶 푓 ⇓훼 푔 퐸 = ⇓휄 ⇓휄 퐵 퐶 퐸 퐵 퐵 퐶 퐶 Hom퐵 퐸 Hom퐶 ⇓∘ 퐵 퐶 퐸 퐵 퐶 퐸 By Lemma 11.3.5, the left-hand side equals the right-hand side.  11.3.12. Definition (horizontal composition of cells). If given a horizontally composable sequence of unary cells 퐸1 퐸2 퐸푛 퐴0 퐴1 ⋯ 퐴푛 ⇓훼 푓0 ⇓훼1 푓1 ⇓훼2 ⋯ 푛 푓푛

퐵0 퐵1 ⋯ 퐵푛 퐹1 퐹2 퐹푛

301

⨰ ⨰ ⨰ ⨰ for which the composable sequences 퐸1 ⋯ 퐸푛 and 퐹1 ⋯ 퐹푛 both admit composites,

then there exists a horizontal composite unary cell 훼 ∗ ⋯ ∗ 훼 that is uniquely determined up to ⨰ ⨰ ⨰ ⨰ 1 푛 the specification of the composites ∘∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸 and 퐹1 ⋯ 퐹푛 ⇒ 퐹 by the pasting identity:

퐸1 퐸2 퐸푛 퐸1 퐸2 퐸푛 퐴0 퐴1 ⋯ 퐴푛 퐴0 퐴1 ⋯ 퐴푛 ⇓훼 ⇓∘ 푓0 ⇓훼1 푓1 ⇓훼2 ⋯ 푛 푓푛 퐸 퐴0 퐴푛 = 퐵0 퐵1 ⋯ 퐵푛 퐹1 퐹2 퐹푛 푓0 ⇓훼1∗⋯∗훼푛 푓푛 ⇓∘

퐵0 퐵푛 퐵0 퐵푛 퐹 퐹 By an argument very similar to the proof of Lemma 11.3.11 using the composites of Lemma 11.3.5, the horizontal composite Hom푓 ∗ 훼 ∗ Hom푔 of a unary cell 훼 with the unit cells Hom푓 and Hom푔 at its vertical boundary functors recovers 훼. The upshot of Definition 11.3.12 is that ℳ표푑(픥풦) can be understood to contain various “vertical” and “horizontal” bicategories. 11.3.13. Proposition (the vertical 2-category in the virtual equipment). Any virtual equipment contains a vertical 2-category whose objects are the objects of the virtual equipment, whose arrows are the vertical arrows, and whose 2-cells are those unary cells Hom퐴 퐴 퐴

푔 ⇓ 푓 퐵 퐵 Hom퐵 whose horizontal boundary arrows are given by the unit modules. Proof. To prove that these structures define a 2-category we must define “horizontal” composi- tion of 2-cells (composing along a boundary 0-cell) and “vertical” composition of 2-cells (composing along a boundary 1-cell). The “horizontal” composition in the 2-category is defined via the vertical composition in the virtual double category described in Definition 11.1.9. The “vertical” composition in the 2-category is defined by Definition 11.3.12. To see that this yields a 2-category and not a bicat- egory note that any bicategory in which the composition of 1-cells is strictly associative and unital is a 2-category; in this case, the 1-cells are the vertical arrows of the virtual double category, which do indeed compose strictly.  Proposition 11.4.10 will prove that the vertical 2-category in the virtual equipment ℳ표푑(픥풦) is isomorphic to the homotopy 2-category 픥풦. 11.3.14. Remark (horizontal bicategories in the virtual equipment). Via Definition 11.3.12, a virtual equipment can also be understood to contain various “horizontal” bicategories, defined by taking the 1-cells to be composable modules and the 2-cells to be unary module maps whose vertical boundary functors are identities. Particular horizontal bicategories of interest are described in Definition 11.4.11. Exercises.

302 11.3.i. Exercise. Extending Exercise 11.1.ii, prove that in a virtual double category arising from an actual double category that every composable sequence of horizontal morphisms admits a composite in the sense of Definition 11.3.1. 11.3.ii. Exercise. Prove Lemma 11.3.3. 11.4. Representable modules Any vertical arrow 푓∶ 퐴 → 퐵 in a virtual equipment has a pair of associated horizontal arrows Hom퐵(푓,퐵) Hom퐵(퐵,푓) 퐵 ⇸ 퐴 and 퐴 ⇸ 퐵 — defined as restrictions of the horizontal unit arrows — that have universal properties similar to companions and conjoints in an ordinary double category. In the virtual equipment of modules, these are sensible referred to as the left and right representations of a functor as a module and coincide exactly with the left and right representable first introduced in §3.4 and reappearing in Definition 10.4.8. 11.4.1. Proposition (companion and conjoint relations for representables). To any functor 푓∶ 퐴 → 퐵 in the virtual equipment of modules, there exist canonical restriction cells displayed below-left and application cells displayed below-right

Hom퐵(푓,퐵) Hom퐵(퐵,푓) Hom퐴 Hom퐴 퐵 퐴 퐴 퐵 퐴 퐴 퐴 퐴

⇓휌 푓 푓 ⇓휌 푓 ⇓휅 ⇓휅 푓 퐵 퐵 퐵 퐵 퐵 퐴 퐴 퐵 Hom퐵 Hom퐵 Hom퐵(푓,퐵) Hom퐵(퐵,푓)

Hom퐴 Hom퐵 defining unary module maps between the unit modules 퐴 ⇸ 퐴 and 퐵 ⇸ 퐵 and the left and right repre- Hom퐵(푓,퐵) Hom퐵(퐵,푓) sentable modules 퐵 ⇸ 퐴 and 퐴 ⇸ 퐵. These satisfy the identities:

Hom퐴 Hom퐴 퐴 퐴 퐴 퐴 Hom퐴 푓 ⇓휅 퐴 퐴 ⇓휅 푓 Hom퐵(푓,퐵) = = Hom퐵(퐵,푓) (11.4.2) 퐵 퐴 푓 ⇓Hom푓 푓 퐴 퐵 ⇓휌 푓 퐵 퐵 푓 ⇓휌 Hom퐵 퐵 퐵 퐵 퐵 Hom퐵 Hom퐵 and

Hom퐵(푓,퐵) Hom퐴 Hom퐴 Hom퐵(퐵,푓) 퐵 퐴 퐴 퐴 퐴 퐵 Hom퐵(푓,퐵) Hom퐴 Hom퐴 Hom퐵(퐵,푓) ⇓휌 푓 ⇓휅 퐵 퐴 퐴 퐴 퐴 퐵 ⇓휅 푓 ⇓휌 Hom퐵 Hom퐵(푓,퐵) = = Hom퐵(퐵,푓) Hom퐵 퐵 퐵 퐴 ⇓∘ ⇓∘ 퐴 퐵 퐴

⇓∘ 퐵 퐴 퐴 퐵 ⇓∘ Hom퐵(푓,퐵) Hom퐵(퐵,푓) 퐵 퐴 퐴 퐵 Hom퐵(푓,퐵) Hom퐵(퐵,푓) (11.4.3)

303 Proof. The unary module maps 휅 are defined by the equations (11.4.2) by appealing to the uni- versal property of the restriction cells in Proposition 11.2.1. The relations (11.4.3) could also be verified directly from the axioms of Theorem 11.2.6 via Propositions 11.2.4 and Lemmas 11.3.5 and 11.3.5. In- stead, we appeal to Lemma 11.1.16 to characterize each of the cells in the virtual equipment as 2-cells in the homotopy 2-category. We prove this for the right representables; the co-dual then proves this for the left representables. The binary module morphism on the left-hand side of the equality of (11.4.3) represents the 2-cell below-left, while the right-hand composite is below-right:

ퟚ 퐴 × Hom퐵(퐵, 푓)

퐴 ퟚ ⌜ 퐴 × Hom퐵(퐵, 푓) 퐴

⌜ ퟚ 퐴 Hom퐵(퐵, 푓) = 푝0 푝 ퟚ 푘 1 휌 퐴 Hom퐵(퐵, 푓) 푝 1 푝0 푝1 푝0 푝1 푝0 휅 휙 Hom (퐵, 푓) 퐴 퐵ퟚ ⇐ ⇐ 퐵 푝1 푝0 푝1 푝0 퐴 퐴 퐵 휙 푓 휅 푓 ⇐ ⇐ 퐴 퐵 퐵 푓 ퟚ By the definition of the induced functor 푘∶ 퐴 → Hom퐵(퐵, 푓), 휙푘 = 푓휅 and by the definition of the comma cone 휙 for Hom퐵(퐵, 푓), 휙 = 휅휌. Thus, the left-hand side equals the right-hand side.  11.4.4. Theorem. In the virtual equipment of modules there are bijections between cells of the following four forms Hom퐶(푓,퐶) 퐸 퐸 퐸 Hom퐷(퐷,푔) 퐶 퐴 퐵 퐴 퐵 퐴 퐵 퐷 푔 푓 푔 푓 ⇓ ↭ ⇓ ↭ ⇓ 퐶 퐷 퐶 퐷 퐶 퐷 퐹 퐹 퐹

↭ ↭ Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐶 퐴 퐵 퐷 ⇓ 퐶 퐷 퐹 implemented by composing with the canonical cells 휅 and 휌 of Proposition 11.4.1 and with the composition and nullary cells associated to the units.

304 Proof. The composite bijection carries cells 훼 and 훽 to the cells displayed below-left and below- right respectively: 퐸 퐴 퐴 퐵 퐵 Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐶 퐴 퐵 퐷 ⇓휄 ⇓휄 Hom퐴 퐸 Hom퐵 ⇓휌 푓 ⇓훼 푔 ⇓휌 퐴 퐴 퐵 퐵 Hom퐶 퐹 Hom퐷 ̌ 훼̂ ≔ 퐶 퐶 퐷 퐷 and 훽 ≔ 푓 ⇓휅 ⇓휅 푔 Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) ⇓∘ 퐶 퐴 퐵 퐷 퐶 퐷 ⇓훽 퐹 퐶 퐷 퐹 By Proposition 11.4.1 and Lemma 11.3.11 퐸 퐴 퐴 퐵 퐵 퐸 ⇓휄 ⇓휄 퐴 퐴 퐵 퐵 Hom퐴 퐸 Hom퐵 퐴 퐴 퐵 퐵 ⇓휄 ⇓휄 Hom퐴 퐸 Hom퐵 퐸 푓 ⇓휅 ⇓휅 푔 퐴 퐴 퐵 퐵 퐴 퐵 ̌ Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 훼̂ ≔ 퐶 퐴 퐵 퐷 = 푓 ⇓Hom푓 푓 ⇓훼 푔 ⇓Hom푔 푔 = 푓 ⇓훼 푔 Hom퐶 퐹 Hom퐷 ⇓휌 푓 ⇓훼 푔 ⇓휌 퐶 퐶 퐷 퐷 퐶 퐷 Hom퐶 퐹 Hom퐷 퐹 퐶 퐶 퐷 퐷 ⇓∘ ⇓∘ 퐶 퐷 퐹 퐶 퐷 퐹 The other composite is:

Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐶 퐴 퐴 퐵 퐵 퐷 ⇓휄 ⇓휄 Hom퐶(푓,퐶) Hom퐴 퐸 Hom퐵 Hom퐷(퐷,푔) 퐶 퐴 퐴 퐵 퐵 퐷 ⇓휌 푓 ⇓휅 ⇓휅 푔 ⇓휌 ̂̌ Hom퐶 Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) Hom퐷 훽 ≔ 퐶 퐶 퐴 퐵 퐷 퐷 (11.4.5) ⇓훽 Hom퐶 Hom퐷 퐶 퐶 퐷 퐷 퐹 ⇓∘ 퐶 퐷 퐹

305 By Lemma 11.3.5, we have

Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐶 퐶 퐴 퐵 퐷 퐷 퐶 퐶 퐴 퐵 퐷 퐷 ⇓휄 ⇓휄 ⇓휄 ⇓휄 Hom퐶 Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) Hom퐷 Hom퐶 Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) Hom퐷 퐶 퐶 퐴 퐵 퐷 퐷 퐶 퐶 퐴 퐵 퐷 퐷 = ⇓훽 ⇓∘ ⇓∘ Hom퐶 Hom퐷 Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐶 퐶 퐷 퐷 퐶 퐴 퐵 퐷 퐹 ⇓∘ ⇓훽 퐶 퐷 퐶 퐷 퐹 퐹 since both composites equal 훽. By the universal property of the unit cells in Proposition 11.2.4, the bottom two rows of these diagrams are equal, so we may substitute the bottom two rows of the right- hand diagram for the bottom two rows of (11.4.5) to obtain:

Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐶 퐴 퐴 퐵 퐵 퐷 ⇓휄 ⇓휄 Hom퐶(푓,퐶) Hom퐴 퐸 Hom퐵 Hom퐷(퐷,푔) 퐶 퐴 퐴 퐵 퐵 퐷 ⇓휌 푓 ⇓휅 ⇓휅 푔 ⇓휌 ̂̌ Hom퐶 Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) Hom퐷 훽 = 퐶 퐶 퐴 퐵 퐷 퐷

⇓∘ ⇓∘ 퐸 퐶 퐴 퐵 퐷 Hom퐶(푓,퐶) Hom퐷(퐷,푔) ⇓훽 퐶 퐷 퐹 By Proposition 11.4.1 and Lemma 11.3.5 this reduces to 훽.

Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐶 퐴 퐴 퐵 퐵 퐷 ⇓휄 ⇓휄 Hom퐶(푓,퐶) Hom퐴 퐸 Hom퐵 Hom퐷(퐷,푔) Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐶 퐴 퐴 퐵 퐵 퐷 퐶 퐴 퐵 퐷 = = ⇓∘ ⇓∘ ⇓훽 퐸 퐶 퐴 퐵 퐷 퐶 퐷 Hom퐶(푓,퐶) Hom퐷(퐷,푔) 퐹 ⇓훽 퐶 퐷 퐹 By vertically bisecting this construction, one obtains the one-sided bijections of the statement.  We frequently apply this result in the following form:

306 퐸 퐹

11.4.6. Corollary. Given modules 퐴⇸퐵 and 퐶⇸퐷 and functor 푓∶ 퐴 → 퐶 and 푔∶ 퐵 → 퐷, there is ⨰ ⨰ a bijection between ternary module maps Hom퐶(푓, 퐶) 퐸 Hom퐷(퐷, 푔) ⇒ 퐹 and unary module maps 퐸 ⇒ 퐹(푔, 푓), i.e., between cells

Hom퐶(푓,퐶) 퐸 Hom퐷(퐷,푔) 퐸 퐶 퐴 퐵 퐷 퐴 퐵 ⇓ ↭ ⇓ 퐶 퐷 퐴 퐵 퐹 퐹(푔,푓)

Proof. Combine Theorem 11.4.4 with Proposition 11.2.1.  퐸 11.4.7. Proposition. For any module 퐴⇸퐵 and pair of functors 푎∶ 푋 → 퐴 and 푏∶ 푌 → 퐵, the composite

Hom (퐴, 푎) ⊗ 퐸 ⊗ Hom (푏, 퐵) exists and is given by the restriction 퐸(푏, 푎), with the ternary composite map ⨰ 퐴 ⨰ 퐵 휇∶ Hom퐴(퐴, 푎) 퐸 Hom퐵(푏, 퐵) ⇒ 퐸(푏, 푎) defined by the universal property of the restriction by the pasting diagram:

Hom퐴(퐴,푎) 퐸 Hom퐵(푏,퐵) Hom퐴(퐴,푎) 퐸 Hom퐵(푏,퐵) 푋 퐴 퐵 푌 푋 퐴 퐵 푌 ⇓휇 푎 ⇓휌 ⇓휌 푏 퐸 푋 푌 ≔ 퐴 퐴 퐵 퐵 퐸(푏,푎) Hom퐴 Hom퐵 푎 ⇓휌 푏 ⇓∘ 퐴 퐵 퐴 퐵 퐸 퐸 Proof. The horizontal composite two-sided fibration of the composable sequence is

Hom퐴(퐴, 푎) × 퐸 × Hom퐵(푏, 퐵)

퐴 퐵 ⌜

Hom퐴(푞, 푎) Hom퐵(푏, 푝) ⌜ ⌜

Hom (퐴, 푎) 퐸 Hom (푏, 퐵) 퐴 푞 푝 퐵 푝1 푝0 푝1 푝0 푋 퐴 퐵 푌 from which we see that the binary composite cell

Hom퐴(푞, 퐴) × Hom퐵(퐵, 푝) 퐸 퐸

(푞,푝) 퐴 × 퐵

of Proposition 11.3.7 pulls back along 푎×푏∶푋×푌→퐴×퐵 to define the map 휇. By Lemma 11.3.6, ⨰ ⨰ we conclude that 휇∶ Hom퐴(퐴, 푎) 퐸 Hom퐵(푏, 퐵) ⇒ 퐸(푏, 푎) is a composite.  As a special case, right representable modules can always be composed with each other and dually left representable modules can always be composed with each other:

307 푓 푔 11.4.8. Corollary. Any composable pair of functors 퐴 −→퐵 −→퐶 defines a composable pair of right- represented modules and a composable pair of left-represented modules

Hom퐵(퐵,푓) Hom퐶(퐶,푔) Hom퐶(푔,퐶) Hom퐵(푓,퐵) 퐴 퐵 퐶 퐶 퐵 퐴 and moreover:

Hom퐵(퐵, 푓) ⊗ Hom퐶(퐶, 푔) ≃ Hom퐶(퐶, 푔푓) and Hom퐶(푔, 퐶) ⊗ Hom퐵(푓, 퐵) ≃ Hom퐶(푔푓, 퐶).  Combining this result with Proposition 11.3.7 provides a generalization of Theorem 3.4.11, which allows us to detect representable modules. 푞 푝 11.4.9. Proposition. Let 퐴 ←−←퐸 −→→퐵 encode a module. 퐸 (i) The module 퐴⇸퐵 is right representable if and only if its left leg 푞∶ 퐸 ↠ 퐴 has a right adjoint 푟∶ 퐴 → 퐸 in which case 퐸 ≃ Hom퐵(퐵, 푝푟). 퐸 (ii) The module 퐴⇸퐵 is left representable if and only if its right leg 푝∶ 퐸 ↠ 퐵 has a left adjoint ℓ∶ 퐵 → 퐸 in which case 퐸 ≃ Hom퐴(푞ℓ, 퐴).

Proof. Lemma 3.4.8 proves that the claimed adjoints to the legs 푝1 ∶ Hom퐵(퐵, 푓) ↠ 퐴 and 푝0 ∶ Hom퐵(푓, 퐵) ↠ 퐴 of left or right representable modules exist, so it remains only to prove the con- 퐸 verse. By Proposition 11.3.7, any module 퐴⇸퐵 can be expressed as a composite 퐸 ≃ Hom퐴(푞, 퐴) ⊗ Hom퐵(퐵, 푝) of the left representation of its left leg followed by the right right representation of its right leg. If 푞 ⊣ 푟, then by Proposition 4.1.1 Hom퐴(푞, 퐴) ≃ Hom퐸(퐸, 푟), so 퐸 ≃ Hom퐸(퐸, 푟) ⊗ Hom퐵(퐵, 푝). By Corollary 11.4.8, Hom퐸(퐸, 푟) ⊗ Hom퐵(퐵, 푝) ≃ Hom퐵(퐵, 푝푟) so it follows that 퐸 ≃ Hom퐵(퐵, 푝푟). The case of left representability is dual.  Finally, we revisit the “cheap” version of the Yoneda lemma presented in Corollary 3.4.10, which encodes natural transformations in the homotopy 2-category as maps of represented modules. 11.4.10. Proposition. For any parallel pair of functors there are natural bijections between 2-cells in the homotopy 2-category 푓 퐴 ⇓ 퐵 푔 and cells in the virtual equipment of modules:

Hom퐵(퐵,푓) Hom퐴 Hom퐵(푔,퐵) 퐴 퐵 퐴 퐴 퐵 퐴 ⇓ ↭ 푔 ⇓ 푓 ↭ ⇓ 퐴 퐵 퐵 퐵 퐵 퐴 Hom퐵(퐵,푔) Hom퐵 Hom퐵(푓,퐵) Proof. The bijection between 2-cells in the homotopy 2-category and unary module maps be- tween left or right representables is simply a restatement of Corollary 3.4.10. Alternatively, the bi- jection between 2-cells in the homotopy 2-category and the cells displayed in the center follows from Lemma 11.1.16 and Proposition 11.2.4. The bijections in ℳ표푑(픥풦) can then be derived from Theorem 11.4.4 and Corollary 11.4.6. 

308 11.4.11. Definition (the covariant and contravariant embeddings). Proposition 11.4.10 defines the action on 2-cells of two identity-on-objects locally fully faithful homomorphisms 픥풦 ℳ표푑(픥풦) 픥풦coop ℳ표푑(픥풦)

푓 Hom퐵(퐵,푓) 푓 Hom퐵(푓,퐵) 퐴 −→퐵 퐴 ⇸ 퐵 퐴 −→퐵 퐵 ⇸ 퐴 that embed the homotopy 2-category fully faithfully into the sub “bicategory” of ℳ표푑(픥풦) containing only those unary cells whose vertical boundaries are identities. This substructure of ℳ표푑(픥풦) isn’t quite a bicategory because not all horizontally composable modules can be composed, but if we restrict only to the right representable modules or only to the left representable modules, then by Corollary 11.4.8 the composites do exist and moreover the embeddings 푓 푔 are horizontally as well as vertically pseudofunctorial: given 퐴 −→퐵 −→퐶 we have Hom퐵(퐵, 푓) ⊗ Hom퐶(퐶, 푔) ≃ Hom퐶(퐶, 푔푓) and Hom퐶(푔, 퐶) ⊗ Hom퐵(푓, 퐵) ≃ Hom퐶(푔푓, 퐶). We refer to these as the covariant and contravariant embeddings respectively. As described in Remark 11.3.14, ℳ표푑(픥풦) can be understood to contain genuine bicategories whose 2-cells are unary cells between right-represented modules (or between left-represented mod- ules) whose vertical boundaries are identities. In this way, the covariant and contravariant embeddings can be understood to define genuine bicategorical homomorphisms. There is a third locally fully faithful embedding of the homotopy 2-category 픥풦 into ℳ표푑(픥풦) that is identity on objects, sends 푓∶ 퐴 → 퐵 to the corresponding vertical 1-cell, and uses the third bijection of Proposition 11.4.10 to define the action on 2-cells. Since Hom퐴 ⊗ Hom퐴 ≃ Hom퐴, the unary cells in this image of this embedding can be composed horizontally as well as vertically, and this embedding is functorial in both directions: vertical composites of natural transformations in 픥풦 co- incide with horizontal composites of unary cells and horizontal composites of natural transformations in 픥풦 coincide with vertical composites of unary cells. The image is precisely the vertical 2-category of Proposition 11.3.13. We will make much greater use of the covariant and contravariant embeddings of Definition 11.4.11 however. Exercises. 11.4.i. Exercise. Prove Proposition 11.4.1 in any virtual equipment, without appealing to Lemma 11.1.16. 11.4.ii. Exercise. Prove Proposition 11.4.7 in any virtual equipment, without appealing to Lemma 11.3.6.

11.4.iii. Exercise. For any functor 푓∶ 퐴 → 퐵, define a unary cell 휂∶ Hom ⇒ Hom (푓, 푓) ≅ ⨰ 퐴 퐵 Hom퐵(퐵, 푓) ⊗ Hom퐵(푓, 퐵) and a binary cell 휖∶ Hom퐵(푓, 퐵) Hom퐵(퐵, 푓) ⇒ Hom퐵. Use this data Hom퐵(퐵,푓) Hom퐵(푓,퐵) to demonstrate that the modules 퐴 ⇸ 퐵 and 퐵 ⇸ 퐴 are “adjoint” in a suitable sense.

309

CHAPTER 12

Formal category theory in a virtual equipment

Mac Lane famously asserted that “all concepts are Kan extensions” [38, §X.7] — at least in category theory. Kelly later amended this to assert that the pointwise Kan extensions, which he calls simply “Kan extensions” are the important ones, writing “Our present choice of nomenclature is based on our failure to find a single instance where a [non-pointwise] Kan extension plays any mathematical role whatsoever” [31, §4]. Using the calculus of modules we can now add the theory of pointwise Kan extensions of functors between ∞-categories to the basic ∞-category theory developed in Part I. Right and left extensions of a functor 푓∶ 퐴 → 퐶 along a functor 푘∶ 퐴 → 퐵 can be defined internally to any 2-category — at this level of generality the eponym “Kan” is typically dropped. We review this notion in Definition 12.2.1. However, in the homotopy 2-category of an ∞-cosmos, the universal property defining left and right extensions is not strong enough, and indeed the correct universal property is associated to the stronger notion of a pointwise extension, for which the values of a right or left extension at an element of 퐵 can be computed as limits or colimits indexed by the appropriate comma ∞-category; see Corollary 12.4.3 for a precise statement. Our aim in this chapter is to define and study pointwise extensions for functors between ∞-cate- gories. In fact, we give multiple definitions of pointwise extension. One is fundamentally 2-categorical: a pointwise extension is an ordinary 2-categorical extension in the homotopy 2-category that is stable under pasting with comma squares. Another definition is that a 2-cell defines a pointwise right ex- tension if and only if its image under the covariant embedding into the virtual equipment of modules defines a right extension there. Theorem 12.2.7 proves that these two notions coincide. Before turning our attention to pointwise extensions, we first introduce exact squares in §12.1, a class of squares in the homotopy 2-category that include comma squares and which will be used to characterize the pointwise extensions internally to the homotopy 2-category. Pointwise extensions are introduced in a variety of equivalent ways in §12.2 and applied in §12.3 to develop a few aspects of the formal theory of ∞-categories. In §12.4, we conclude with a discussion of pointwise extensions in a cartesian closed ∞-cosmos, in which context these relate to the absolute lifting diagrams and limits and colimits studied in §2.3-2.4. 12.1. Exact squares By Proposition 11.4.10, natural transformations in the homotopy 2-category of an ∞-cosmos cor- respond bijectively to unary squares in the virtual equipment of modules of various forms. By this result, Theorem 11.4.4, Proposition 11.2.4, and Proposition 11.2.1, we have bijections:

퐷 Hom퐷 Hom퐶(푘,퐶) Hom퐵(퐵,ℎ) 푘 ℎ 퐷 퐷 퐶 퐷 퐵 훼 ↭ 푔푘 푓ℎ 퐶 ⇐ 퐵 ⇓ ↭ ⇓훼̂ 푔 푓 퐴 퐴 퐶 퐵 퐴 Hom퐴 Hom퐴(푓,푔)

311 12.1.1. Definition (exact squares). A square in the homotopy 2-category of an ∞-cosmos 퐷 푘 ℎ 훼 퐶 ⇐ 퐵 푔 푓 퐴 is exact if and only if the corresponding cell below-left, which under the bijection of Lemma 11.1.16 encodes the below-right pasted composite

Hom퐶(푘, 퐶) × Hom퐵(퐵, ℎ)

퐷 ⌜

Hom퐶(푘,퐶) Hom퐵(퐵,ℎ) Hom퐶(푘, 퐶) Hom퐵(퐵, ℎ) 퐶 퐷 퐵 푝0 푝1 ↭ 휙 휙 (12.1.2) ⇓훼̂ 푝1 ⇐ 퐷 ⇐ 푝0 퐶 퐵 푘 ℎ Hom퐴(푓,푔) 훼 퐶 ⇐ 퐵 푔 푓 퐴 displays Hom퐴(푓, 푔) as the composite Hom퐶(푘, 퐶) ⊗ Hom퐵(퐵, ℎ) as defined in Definition 11.3.1. When the boundary square is clear from context, for economy of language we may write that “훼∶ 푓ℎ ⇒ 푔푘 is an exact square” but note that the definition of exactness requires the specification of the four boundary components of the square inhabited by the 2-cell 훼.¹ 12.1.3. Remark (exactness as a Beck-Chevalley condition). By Proposition 11.4.7, the canonical cell 휇Hom퐴(퐴, 푔)×Hom퐴(푓, 퐴) ⇒ Hom퐴(푓, 푔) encoded by the map of spans defined by 1-cell induction Hom (퐴, 푔) × Hom (푓, 퐴) Hom퐴(퐴, 푔) × Hom퐴(푓, 퐴) 퐴 퐴

퐴 퐴 ⌜ 휇

Hom퐴(푓, 푔) = 푝1 푝0 Hom퐴(퐴, 푔) Hom퐴(푓, 퐴) 휙 푝1 푝0 푝1 푝0 휙 휙 퐶 ⇐ 퐵 ⇐ ⇐ 푔 퐶 퐴 퐵 푓 푔 푓 퐴 is a composite. Exactness says that 훼 induces an isomorphism

훼∶̂ Hom퐶(푘, 퐶) ⊗ Hom퐵(퐵, ℎ) ≃ Hom퐴(퐴, 푔) ⊗ Hom퐴(푓, 퐴) of modules from 퐶 to 퐵. The remainder of this section is devoted to examples of exact squares.

¹For instance, compare the statements of Exercise 12.1.i and Lemma 12.3.3.

312 푔 푓 12.1.4. Lemma (comma squares are exact). For any cospan 퐶 −→퐴 ←−퐵, the comma cone defines an exact square:

Hom퐴(푓, 푔) 푝1 푝0 휙 퐶 ⇐ 퐵

푔 푓 퐴

Hom퐴(푓,푔) Proof. By Proposition 11.3.7, the module 퐶 ⇸ 퐵 is the composite of the left representation

of its left leg followed by the right representation of its right leg: Hom (푝 , 퐶) ⊗ Hom (퐵, 푝 ) ≃ ⨰ 퐶 1 퐵 0 Hom퐴(푓, 푔). By Remark 11.3.9, the composition map Hom퐶(푝1, 퐶) Hom퐵(퐵, 푝0) ⇒ Hom퐴(푓, 푔)

classifies the pasted composite ⨰

Hom퐶(푝1, 퐶) Hom퐵(퐵, 푝0) ⌜

Hom퐶(푝1, 퐶) Hom퐵(퐵, 푝0) 푝0 푝1 휙 휙 푝 ⇐ ⇐ 푝 1 Hom퐴(푓, 푔) 0 푝1 푝0 휙 퐶 ⇐ 퐵

푔 푓 퐴 ̂ which recovers the cell 휙 defined by (12.1.2) that tests the exactness of comma square 휙∶ 푓푝0 ⇒ 푔푝1.  12.1.5. Lemma. If 푔∶ 퐶 → 퐴 is a cartesian fibration or 푓∶ 퐵 → 퐴 is a cocartesian fibration, then the pullback square

푃 휋1 ⌜ 휋0 퐶 퐵

푔 푓 퐴 is exact. Proof. The two statements are dual though the positions of the cocartesian and cartesian fibra- tions cannot be interchanged, as the proof will reveal. If 푓∶ 퐵 ↠ 퐴 is a cocartesian fibration, observe that the functor 푖∶ 푃 → Hom퐴(푓, 푔) induced by the identity 2-cell 푓휋0 = 푔휋1 is a pullback of the

313 functor 푖∶ 퐵 → Hom퐴(푓, 퐴) induced by the identity 2-cell id푓.

휋0 푃 퐵 ℓ ℓ ⊥ ⊥ 푖 푖 Hom퐴(푓, 푔) Hom퐴(푓, 퐴) 휋1 ⌟ 푓 푝1 푝1

퐶 푔 퐴

Since 푓 is a cocartesian fibration, Theorem 5.1.11(ii) tells us that 푖∶ 퐵 → Hom퐴(푓, 퐴) has a fibered ∗ left adjoint over 퐴. This fibered adjunction pulls back via the cosmological functor 푔 ∶ 풦/퐴 → 풦/퐶 to define a fibered left adjoint to 푖∶ 푃 → Hom퐴(푓, 푔). Since 휋0 = 푝0푖, Corollary 11.4.8 implies that the canonical cell

Hom Hom ⨰ Hom Hom Hom퐴(푓,푔)( 퐴(푓, 푔), 푖) 퐵(퐵, 푝0) ⇒ 퐵(퐵, 휋0) Hom Hom Hom is a composite. Since ℓ ⊣ 푖, 푃(ℓ, 푃) ≃ Hom퐴(푓,푔)( 퐴(푓, 푔), 푖) by Proposition 4.1.1. And

since 푝1 = 휋1ℓ, Corollary 11.4.8 again implies that the canonical cell ⨰ Hom퐶(휋1, 퐶) Hom푃(ℓ, 푃) ⇒ Hom퐶(푝1, 퐶)

is a composite. Composing these bijections, we see that cells with domain Hom (휋 , 퐶) ⨰ Hom (퐵, 휋 ) ⨰ 퐶 1 퐵 0 correspond bijectively to cells with domain Hom퐶(푝1, 퐶) Hom퐵(퐵, 푝0). The equation id = 휙푖∶ 푓휋0 = 푓푝0푖 ⇒ 푔푝1푖 = 푔휋1 asserts that the identity is the transpose along

ℓ ⊣ 푖 of the cell 휙∶ 푓푝0 ⇒ 푔푝1 = 푔휋1ℓ, which tells us that the cells ̂ ⨰

id∶ Hom퐶(휋1, 퐶) Hom퐵(퐵, 휋0) ⇒ Hom퐴(푓, 푔) and ̂ ⨰ 휙∶ Hom퐶(푝1, 퐶) Hom퐵(퐵, 푝0) ⇒ Hom퐴(푓, 푔) correspond under the bijection just described. Since Lemma 12.1.4 proves that 휙̂ is a composite, by Lemma 11.3.2 so is id.̂  12.1.6. Lemma. For any pair of functors 푓∶ 퐴 → 퐵 and 푔∶ 퐶 → 퐷 the square 푓×퐶 퐴 × 퐶 퐵 × 퐶 퐴×푔 퐵×푔 퐴 × 퐷 퐵 × 퐷 푓×퐷 is exact.

Proof. Exercise 12.1.ii. 

314 12.1.7. Lemma. The product of a comma square 휙∶ 푓푝0 ⇒ 푔푝1 with any ∞-category 퐾 defines an exact square

Hom퐴(푓, 푔) × 퐾 푝1×퐾 푝0×퐾 휙×퐾 퐶 × 퐾 ⇐ 퐵 × 퐾

푔×퐾 푓×퐾 퐴 × 퐾 Proof. Exercise 12.1.iii.  Finally, the plethora of examples of exact squares just established can be composed to yield further comma squares: 12.1.8. Lemma (composites of exact squares). Given a diagram of squares in the homotopy 2-category 퐻 퐺 푠 푟 푞 푝 훾 훽 퐹 ⇐ 퐷 ⇐ 퐸 푐 푘 ℎ 훼 푏 퐶 ⇐ 퐵 푔 푓 퐴 if 훼∶ 푓ℎ ⇒ ℎ푘, 훽∶ 푏푝 ⇒ ℎ푞, and 훾∶ 푘푟 ⇒ 푐푠 are all exact squares then so are the composite rectangles 훼푞 ⋅ 푓훽 and 푔훾 ⋅ 훼푟. Consequently, arbitrary “double categorical” composites of exact squares define exact squares. Proof. The two cases are co-duals, so it suffices to prove that the rectangle 훼푞⋅푓훽∶ 푔(푘푞) ⇒ (푓푏)푝 is exact. The corresponding cell 훼푞ᄅ ⋅ 푓훽 displayed below-left factors as below-right:

Hom퐶(푘,퐶) Hom퐷(푞,퐷) Hom퐸(퐸,푝) 퐶 퐷 퐺 퐸 Hom퐶(푘,퐶) Hom퐷(푞,퐷) Hom퐸(퐸,푝) 퐶 퐷 퐺 퐸 ⇓훽̂

⇓훼푞⋅푓훽ᄅ = 퐶 퐷 퐸 Hom퐶(푘,퐶) Hom퐵(푏,ℎ) 퐶 퐸 ⇓훼̄ Hom퐴(푓푏,푔) 퐶 퐸 Hom퐴(푓푏,푔) through a cell 훼̄ defined by the universal property of the composite Hom퐵(퐵, ℎ) ⊗ Hom퐵(푏, 퐵) ≃ Hom퐵(푏, ℎ) of Proposition 11.4.7 by the pasting equality:

Hom퐶(푘,퐶) Hom퐵(퐵,ℎ) Hom퐵(푏,퐵) Hom퐶(푘,퐶) Hom퐵(퐵,ℎ) Hom퐵(푏,퐵) 퐶 퐷 퐵 퐸 퐶 퐷 퐵 퐸

⇓∘ ⇓훼̂ Hom퐵(푏,퐵) 퐶 퐷 퐸 ≔ 퐶 퐵 퐸 Hom퐶(푘,퐶) Hom퐵(푏,ℎ) Hom퐴(푓,푔) ⇓훼̄ ⇓∘ 퐶 퐸 퐶 퐸 Hom퐴(푓푏,푔) Hom퐴(푓푏,푔)

315 By exactness of 훼, 훼̂ and both cells named ∘ are composites, so by Lemma 11.3.2 훼̄ is a composite as well. By exactness of 훽 and Lemma 11.3.2 again it now follows that 훼푞ᄅ ⋅ 푓훽 is also a composite, proving exactness of the rectangle 훼푞 ⋅ 푓훽∶ 푔(푘푞) ⇒ (푓푏)푝.  Exercises. 12.1.i. Exercise. Prove that the identity cells 퐴 퐴 푘 푘 퐴 퐵 퐵 퐴

푘 푘 퐵 퐵 define exact squares. 12.1.ii. Exercise. Prove Lemma 12.1.6. 12.1.iii. Exercise. Prove Lemma 12.1.7. 12.2. Pointwise right and left extensions In this section we give four definitions of pointwise extension and prove they are equivalent. We begin with a general categorical notion that on its own is too weak. 12.2.1. Definition. A right extension of a 1-cell 푓∶ 퐴 → 퐶 along a 1-cell 푘∶ 퐴 → 퐵 is given by a pair (푟∶ 퐵 → 퐶, 휈∶ 푟푘 ⇒ 푓) as below-left 푓 푓 푓 퐴 퐶 퐴 퐶 퐴 퐶 ⇑휈 ⇑훾 ⇑휈 푘 푘 푘 푟 푟 푔 = ⇑∃! 퐵 퐵 퐵 푔 so that any similar pair as above-center factors uniquely through 휈 as above right. The co-dual defines a left extension of a 1-cell 푓∶ 퐴 → 퐶 along a 1-cell 푘∶ 퐴 → 퐵. The op-dual of Definition 12.2.1 defines a notion of right lifting in any 2-category. Analogous notions of right extension and right lifting can be defined for horizontal morphisms in a virtual double equipment, where in the presence of restrictions of modules it suffices to consider cells whose vertical functors are identities. We specialize our language to the virtual equipment of modules, as this will be the one case of interest: 퐹 퐾 12.2.2. Definition. A right extension of a module 퐴⇸퐶 along a module 퐴⇸퐵 consists of a pair 푅 given by a module 퐵⇸퐶 together with a binary cell 퐾 푅 퐴 퐵 퐶

⇓휈 퐴 퐶 퐹

316 with the property that every 푛 + 1-ary cell of the form displayed below-left factors uniquely through

휈∶ 퐾 ⨰ 푅 ⇒ 퐹 as below-right:

퐾 퐸1 퐸푛 퐴 퐵 ⋯ 퐶 퐾 퐸1 퐸푛 퐴 퐵 ⋯ 퐶 ⇓∃! 퐾 푅 ⇓ = 퐴 퐵 퐶 퐴 퐶 ⇓휈 퐹 퐴 퐶 퐹 퐹 퐻 퐿 Dually, a right lifting of 퐴⇸퐶 through 퐵⇸퐶 consists of a pair given by a module 퐴⇸퐵 together with a binary cell 퐿 퐻 퐴 퐵 퐶

⇓휆 퐴 퐶 퐹 with the property that every 푛 + 1-ary cell of the form displayed below-left factors uniquely through

휆∶ 퐿 ⨰ 퐻 ⇒ 퐹 as below-right:

퐸1 퐸푛 퐻 퐴 ⋯ 퐵 퐶 퐸1 퐸푛 퐻 퐴 ⋯ 퐵 퐶 ⇓∃! 퐿 퐻 ⇓ = 퐴 퐵 퐶 퐴 퐶 ⇓휆 퐹 퐴 퐶 퐹 Because of the asymmetry in Definition 11.1.9, there is no corresponding notion of left extension or left lifting. 12.2.3. Lemma. For any functor 푓∶ 퐴 → 퐵, the binary cell

Hom퐵(푓,퐵) Hom퐵(퐵,푓) 퐵 퐴 퐵

⇓휖 퐵 퐵 Hom퐵

Hom퐵 Hom퐵(푓,퐵) defined in Exercise 11.4.iii defines a right extension of 퐵 ⇸ 퐵 through 퐵 ⇸ 퐴 and a right lifting of Hom퐵 Hom퐵(퐵,푓) 퐵 ⇸ 퐵 through 퐴 ⇸ 퐵.

Proof. Exercise 12.2.i.  We now explain how Definition 12.2.2 relates to Definition 12.2.1 via the covariant and contravari- ant embeddings of Definition 11.4.11.

317 12.2.4. Lemma. If Hom퐵(퐵,푘) Hom퐶(퐶,푟) 퐴 퐵 퐶

⇓휈 퐴 퐶 Hom퐶(퐶,푓) defines a right extension in the virtual equipment of modules, then 휈∶ 푟푘 ⇒ 푓 defines a right extension in the homotopy 2-category. Dually if Hom퐴(ℓ,퐴) Hom퐵(ℎ,퐵) 퐴 퐵 퐶

⇓휆 퐴 퐶 Hom퐴(푔,퐴) defines a right lifting in the virtual equipment of modules, then 휆∶ 푔 ⇒ ℓℎ is a left extension in the homotopy

2-category. ⨰ Proof. By Corollary 11.4.8 binary cells 휈∶ Hom퐵(퐵, 푘) Hom퐶(퐶, 푟) ⇒ Hom퐶(퐶, 푓) corre- spond to unary cells 휈∶ Hom퐶(퐶, 푟푘) ⇒ Hom퐶(퐶, 푓), which by Proposition 11.4.10 correspond to natural transformations 휈∶ 푟푘 ⇒ 푓 in the homotopy 2-category. Via this correspondence the univer- sal property of Definition 12.2.2 clearly subsumes that of Definition 12.2.1. The left extension case is similar, via the contravariant embedding of Definition 11.4.11.  12.2.5. Definition (stability of extensions under pasting). A right extension diagram 휈∶ 푟푘 ⇒ 푓 in a 2-category is said to be stable under pasting with a square 훼

푓 퐷 퐴 퐶 푔 ℎ ⇑휈 훼 푘 푟 퐴 ⇐ 퐸 퐵 푘 푏 퐵 if the pasted composite 푔 푓 퐷 퐴 퐶 ⇑휈 ℎ ⇗훼 푘 (12.2.6) 푟 퐸 퐵 푏 defines a right extension 푟푏∶ 퐸 → 퐶 of 푓푔∶ 퐷 → 퐶 along ℎ∶ 퐷 → 퐸. The co-dual of this statement defines what it means for a left extension diagram to be stable under pasting with a square. 12.2.7. Theorem (pointwise right extensions). For a diagram 푓 퐴 퐶 ⇑휈 푘 푟 퐵 in the homotopy 2-category of an ∞-cosmos 풦 the following are equivalent:

318 (i) 휈∶ 푟푘 ⇒ 푓 defines a right extension in 픥풦 that is stable under pasting with exact squares. (ii) 휈∶ 푟푘 ⇒ 푓 defines a right extension in 픥풦 that is stable under pasting with comma squares.

(iii) 휈∶ Hom (퐵, 푘) ⨰ Hom (퐶, 푟) ⇒ Hom (퐶, 푓) defines a right extension in ℳ표푑(픥풦). 퐵 퐶 퐶 ⨰ (iv) For any exact square 훼∶ 푏ℎ ⇒ 푘푔, 휈푔⋅푟훼∶ Hom퐸(퐸, ℎ) Hom퐶(퐶, 푟푏) ⇒ Hom퐶(퐶, 푓푔) defines a right extension in ℳ표푑(픥풦). When these conditions hold, we say 푟∶ 퐵 → 퐶 defines a pointwise right extension of 푓∶ 퐴 → 퐶 along 푘∶ 퐴 → 퐵. Proof. Lemma 12.1.4 proves (i)⇒(ii). To show (ii)⇒(iii), suppose 휈∶ 푟푘 ⇒ 푓 defines a right extension in 픥풦 that is stable under pasting with comma squares and consider a cell in ℳ표푑(픥풦):

Hom퐵(퐵,푘) 퐸1 퐸푛 퐴 퐵 ⋯ 퐶 ⇓ 퐴 퐶

Hom퐶(퐶,푓)

⨰ 푞 푝 ⨰

Let 퐵 ←−←퐸 −→→퐶 denote the composite two-sided fibration 퐸1 ⋯ 퐸푛. By Remark 11.3.8 ⨰ ⨰ 푞 푝 ⨰

applied to 퐵 ←−←퐸 −→→퐶, module maps Hom (퐵, 푘) 퐸 ⋯ 퐸 ⇒ Hom (퐶, 푓) stand in ⨰ ⨰ 퐵 1 푛 퐶 bijection with module maps Hom퐵(퐵, 푘) Hom퐵(푞, 퐵) Hom퐶(퐶, 푝) ⇒ Hom퐶(퐶, 푓). By Corollary 11.4.6 and Proposition 11.4.7, such module maps stand in bijection with module maps Hom퐵(푞, 푘) ⇒ Hom퐶(푝, 푓). By Lemma 11.1.16, these module maps correspond bijectively to 2-cells

Hom퐵(푞, 푘) 푝1 푝0 훼 퐴 ⇐ 퐸

푓 푝 퐶 in the homotopy 2-category. By the hypothesis (ii),

푝1 푓 Hom퐵(푞, 푘) 퐴 퐶 ⇑휈 푝 푘 0 ⇗휙 푟

퐸 푞 퐵 defines a right extension in 픥풦, so 훼 factors uniquely through this pasted composite via a map 훾∶ 푝 ⇒

푟푞. By Proposition 11.4.10, this defines a cell 훾∶ Hom (퐶, 푝) ⇒ Hom (퐶, 푟푞), which by Corollary ⨰ 퐶 퐶 11.4.6 gives rise to a canonical cell 훾∶̂ Hom퐵(푞, 퐵) Hom퐶(퐶, 푝) ⇒ Hom퐶(퐶, 푟). By Remark 11.3.8

319 again, this produces the desired unique factorization

Hom퐵(퐵,푘) 퐸1 퐸푛 퐴 퐵 ⋯ 퐶 Hom퐵(퐵,푘) 퐸1 퐸푛 퐴 퐵 ⋯ 퐶 ⇓∃! Hom퐵(퐵,푘) Hom퐶(퐶,푟) ⇓ = 퐴 퐵 퐶 퐴 퐶 ⇓휈 Hom퐶(퐶,푓) 퐴 퐶

Hom퐶(퐶,푓) ⨰ To show (iii)⇒(iv), consider a diagram (12.2.6) in which 훼∶ 푏ℎ ⇒ 푘푔 is exact and 휈∶ Hom퐵(퐵, 푘) Hom퐶(퐶, 푟) ⇒ Hom퐶(퐶, 푓) defines a right extension diagram in ℳ표푑(픥풦). Now by Corollary 11.4.6,

a cell ⨰ ⨰ ⨰ Hom퐸(퐸, ℎ) 퐸1 ⋯ 퐸푛 ⇒ Hom퐶(퐶, 푓푔)

corresponds to a cell

⨰ ⨰ ⨰ ⨰ Hom퐴(푔, 퐴) Hom퐸(퐸, ℎ) 퐸1 ⋯ 퐸푛 ⇒ Hom퐶(퐶, 푓).

By exactness of 훼, this corresponds to a cell

⨰ ⨰ ⨰

Hom퐵(푏, 푘) 퐸1 ⋯ 퐸푛 ⇒ Hom퐶(퐶, 푓), ⨰ or equivalently, upon restricting along the composite map Hom퐵(퐵, 푘) Hom퐵(푏, 퐵) ⇒ Hom퐵(푏, 푘)

to a cell ⨰ ⨰ ⨰ ⨰ Hom퐵(퐵, 푘) Hom퐵(푏, 퐵) 퐸1 ⋯ 퐸푛 ⇒ Hom퐶(퐶, 푓). Hom퐶(퐶,푟) Hom퐶(퐶,푓) Hom퐵(퐵,푘)

Since 퐵 ⇸ 퐶 is the right extension of 퐴 ⇸ 퐶 along 퐴 ⇸ 퐵, this corresponds to a cell

⨰ ⨰ ⨰ Hom퐵(푏, 퐵) 퐸1 ⋯ 퐸푛 ⇒ Hom퐶(퐶, 푟),

which transposes via Corollary 11.4.6 to a cell

⨰ ⨰ 퐸1 ⋯ 퐸푛 ⇒ Hom퐶(퐶, 푟푏), Hom퐶(퐶,푟푏) Hom퐶(퐶,푓푔) which gives the factorization required to prove that 퐸 ⇸ 퐶 is the right extension of 퐷 ⇸ 퐶 Hom퐸(퐸,ℎ)

along 퐷 ⇸ 퐸. A slightly more delicate argument is required to see that this bijection is imple- ⨰ mented by composing with the map of modules Hom퐸(퐸, ℎ) Hom퐶(퐶, 푟푏) ⇒ Hom퐶(퐶, 푓푔) corre- sponding to the pasted composite (12.2.6), but for this it suffices by the Yoneda lemma to start with the identity cell idHom퐶(퐶,푟푏) and trace back up through the bijection just described. By Lemma 11.1.16 this is straightforward. Finally Lemma 12.2.4 and the trivial example of Exercise 12.1.i prove that (iv)⇒(i).  12.2.8. Corollary. The pasted composite (12.2.6) of a pointwise right extension with an exact square is a pointwise right extension. Proof. Lemma 12.1.8, the pasted composite of two exact squares remains an exact square, so by Theorem 12.2.7(i), the pasted composite of a pointwise right extension remains stable under pasting with exact squares. 

320 Exercises. 12.2.i. Exercise. Prove Lemma 12.2.3. 12.2.ii. Exercise. Using Lemma 12.2.4 as a hint, state and prove a dual version of Theorem 12.2.7 defining pointwise left extensions in the homotopy 2-category of an ∞-cosmos. 12.3. Formal category theory in a virtual equipment 12.3.1. Proposition. For any pair of functors 푢∶ 퐴 → 퐵 the following are equivalent:

(i) The natural transformation 휖∶ 푓푢 ⇒ id퐴 is the counit of an adjunction 푓 ⊣ 푢. (ii) There is a pointwise right extension diagram in 픥풦 퐴 퐴 ⇑휖 푢 (12.3.2) 푓 퐵 that is absolute, preserved by any functor ℎ∶ 퐴 → 퐶. (iii) The square 퐴 푢 휖 퐴 ⇐ 퐵 푓 퐴 is exact. Proof. Without the adjective “pointwise” the equivalence (i)⇔(ii) is the op-dual of Lemma 2.3.6, whose proof works in any 2-category and in particular in 픥풦op. It remains only to demonstrate that the right extension produced by (i)⇒(ii) is pointwise. To see this, recall that for any 푓∶ 퐵 → 퐴, Lemma 12.2.3 provides a right lifting in ℳ표푑(픥풦) as below left

Hom퐴(푓,퐴) Hom퐴(퐴,푓) Hom퐵(퐵,푢) Hom퐴(퐴,푓) 퐴 퐵 퐴 퐴 퐵 퐴 ≅ ⇓휖 ⇓휖 퐴 퐴 퐴 퐴 Hom퐴 Hom퐴

If 푓 ⊣ 푢, then by Proposition 4.1.1, the counit induces an equivalence Hom퐵(퐵, 푢) ≃ Hom퐴(푓, 퐴), so we have an isomorphic right lifting diagram above right. By Proposition 11.4.10 and Theorem 12.2.7 this supplies a natural transformation 휖∶ 푓푢 ⇒ id퐴 that defines a pointwise right extension (12.3.2). Proposition 4.1.1, which demonstrates that 휖∶ 푓푢 ⇒ id퐴 is a counit if and only if it induces an equivalence Hom퐵(퐵, 푢) ≃ Hom퐴(푓, 퐴) also proves (i)⇔(iii), via Lemma 11.3.5 which tells us that Hom퐴 ⊗ Hom퐵(퐵, 푢) ≃ Hom퐵(퐵, 푢).  12.3.3. Lemma. A functor 푘∶ 퐴 → 퐵 is fully faithful when any of the following equivalent conditions hold:

321 (i) The square 퐴 퐴 퐴 푘 퐵 푘 is exact. ̂ (ii) The unary cell id푘 ∶ Hom퐴 ⇒ Hom퐵(푘, 푘) is a composite. ̂ (iii) The module map id푘 defines an equivalence of modules Hom퐴 ≃ Hom퐵(푘, 푘) from 퐴 to 퐴. Proof. The equivalence follows from Definition 12.1.1 and Lemma 11.3.3.  12.3.4. Proposition (extensions along fully faithful functors). If 푓 퐴 퐶 ⇑휈 푘 푟 퐵 is a pointwise right extension and 푘 is fully faithful, then 휈 is an isomorphism. Proof. Pasting the pointwise right extension with the exact square of Lemma 12.3.3 yields a point- wise right extension diagram 푓 퐴 퐶 ⇑휈 푟푘 퐴 By Lemma 11.3.5 and Theorem 12.2.7(iii), 푓∶ 퐴 → 퐶 also defines a pointwise right extension of itself along the identity. The universal property of these extension diagrams in 픥풦 described in Definition 12.2.1 now suffices to construct an inverse isomorphism to 휈.  The dual result, that the 2-cell in a pointwise left extension along a fully faithful functor is invert- ible, is left to Exercise 12.3.i.

12.3.5. Proposition. A right adjoint 푢∶ 퐴 → 퐵 is fully faithful if and only if the counit 휖∶ 푓푢 ⇒ id퐴 is an isomorphism.

Proof. If 푓 ⊣ 푢 with counit 휖∶ 푓푢 ⇒ id퐴, then Proposition 4.1.1 reveals that pasting with 휖 induces an equivalence of modules Hom퐵(퐵, 푢) ≃ Hom퐴(푓, 퐴). Equivalently, by Proposition 12.3.1, the counit 휖∶ 푓푢 ⇒ id퐴 is exact. If 푢 is fully faithful, then by Lemma 12.1.8 the composite rectangle is also exact. 퐴

퐴 퐴 푢 푢 휖 퐴 ⇐ 퐵 푓 퐴

322 which by Lemma 11.3.3 is to say that 휖 induces an equivalence of modules Hom퐴(퐴, 퐴) ≃ Hom퐴(푓푢, 퐴) under the contravariant embedding of Definition 11.4.11. By Proposition 11.4.10, which says this em- bedding is fully faithful, it follows that 휖∶ 푓푢 ⇒ id퐴 is an isomorphism. Conversely, assume 푓 ⊣ 푢 with invertible counit 휖∶ 푓푢 ≅ id퐴. By Proposition 11.4.7 we have a composite Hom퐵(퐵, 푢) ⊗ Hom퐵(푢, 퐵) ≃ Hom퐵(푢, 푢). Substituting the equivalence Hom퐴(푓, 퐴) ≃ Hom퐵(퐵, 푢) gives another composite Hom퐴(푓, 퐴) ⊗ Hom퐵(푢, 퐵) ≃ Hom퐵(푢, 푢), but now Corollary 11.4.8 gives a third composite Hom퐴(푓, 퐴) ⊗ Hom퐵(푢, 퐵) ≃ Hom퐴(푓푢, 퐴). Factoring one compos- ite through the other we obtain an equivalence Hom퐴(푓푢, 퐴) ≃ Hom퐵(푢, 푢) which composes with the equivalence Hom퐴 ≃ Hom퐴(푓푢, 퐴) induced by the invertible counit cell to define a composite Hom퐴 ≃ Hom퐴(푓푢, 퐴) ≃ Hom퐵(푢, 푢), proving, by Lemma 12.3.3, that 푢∶ 퐴 → 퐵 is fully faith- ful.  Exercises. 12.3.i. Exercise. Prove that if 푓 퐴 퐶 ⇓휆 푘 ℓ 퐵 is a pointwise left extension and 푘 is fully faithful, then 휆 is an isomorphism. 12.4. Limits and colimits in cartesian closed ∞-cosmoi In this section we work in an ∞-cosmos 풦 that is cartesian closed, satisfying the extra assumption of Definition 1.2.18. In a cartesian closed ∞-cosmos a functor 푓∶ 퐴 → 퐶 transposes to define an element 푓∶ 1 → 퐶퐴 of the ∞-category of functors from 퐴 to 퐶 and a family of diagrams 푓∶ 퐴 × 퐷 → 퐶 of shape 퐴 parametrized by an ∞-category 퐷 transposes to a generalized element 푓∶ 퐷 → 퐴퐶. The aim is to reinterpret the limits and colimits of §2.3 as pointwise right and left extensions. 12.4.1. Proposition. Suppose the diagram below-left is a pointwise right extension diagram in a cartesian closed ∞-cosmos. 푓 퐴 × 퐷 퐶 퐶퐵 ⇑휈 푟 푘×퐷 ↭ 퐶푘 푟 ⇓휈 퐵 × 퐷 퐷 퐶퐴 푓 Then its transpose above-right defines an absolute right lifting diagram in the homotopy 2-category which more- over is stable under pasting with the square 퐶휙 induced from any exact square 휙. Proof. The universal property that characterizes the absolute right lifting diagram 푋 푒 퐶퐵 푋 푒 퐶퐵 ⇓∃!휁 푑 ⇓휒 퐶푘 = 푑 푟 퐶푘 ⇓휈 퐷 퐶퐴 퐷 퐶퐴 푓 푓

323 transposes to 푓 푓 퐴 × 푋 퐴×푑 퐴 × 퐷 퐶 퐴 × 푋 퐴×푑 퐴 × 퐷 퐶 ⇑휈 푟 푘×푋 ⇑휒 = 푘×푋 푘×퐷 퐵×푑 퐵 × 푋 퐵 × 푋 퐵 × 퐷 ⇑∃!휁 푒

Similarly, the pasted composite of the absolute right lifting diagram with an exponentiated exact square transposes below-left to the diagram below-right ℎ 푝×퐷 푓 퐶퐵 퐶 퐶퐸 퐹 × 퐷 퐴 × 퐷 퐶 푟 푞 ⇑휈 퐶푘 ⇓퐶휙 퐶 ↭ 푞×퐷 ⇓휙×퐷 푘×퐷 ⇓휈 푟 퐷 퐶퐴 퐶퐹 퐸 × 퐷 퐵 × 퐷 푓 퐶푝 ℎ×퐷 Lemma 12.1.6 and Lemma 12.1.7 prove that the square defining the product 푘×푑 and the square 휙×퐷 are exact. Now if 휈 is a pointwise right extension, then by Lemma 12.1.6 and Corollary 12.2.8 so is 휈⋅(퐴×푑). The transposed universal property of this right extension diagram proves that 휈 defines an absolute right lifting. Since by Corollary 12.2.8, the pasted composite of 휈 with the exact square 휙 × 퐷 gives another pointwise right extension, the same argument shows that the pasted composite of 휈 with 퐸휙 is again an absolute right lifting diagram.  12.4.2. Proposition. In a cartesian closed ∞-cosmos any limit as encoded by the absolute right lifting dia- gram below-right transposes to define a pointwise right extension diagram as below-left: 푓 퐴 퐶 퐶 ⇑휈 ℓ ! ↭ Δ ℓ ⇓휈 1 1 퐶퐴 푓 Conversely, any pointwise right extension diagram of this form transposes to define a limit in 퐶. Proof. The converse is a special case of Proposition 12.4.1, so it remains only to demonstrate that absolute right lifting diagrams of the form displayed above-right transpose to pointwise right

extension diagrams as above-left. Comma squares over !∶ 퐴 → 1 have the form 퐴 ×⌜ 푋 휋 휋 퐴 푋 ! 1 !

324 We can show that the pasted composite of 휈∶ ℓ! ⇒ 푓 with this square defines a right extension diagram in 픥풦 by proving that the transposed diagram 퐶 Δ 퐶푋 ℓ Δ 퐶휋 ⇓휈 1 퐶퐴 퐶퐴×푋 푓 퐶휋 defines a right lifting diagram. In fact, by transposing across the 2-adjunction (−) × 푋 ⊣ (−)푋 on 픥풦 of Proposition 1.4.5 this is easily seen to define an absolute right lifting diagram since 휈∶ Δℓ ⇒ 푓 is an absolute right lifting diagram.  12.4.3. Corollary. For any pointwise right extension in a cartesian closed ∞-cosmos 푓 퐴 퐶 ⇑휈 푘 푟 퐵 and any element 푏∶ 1 → 퐵, the element 푟푏∶ 1 → 퐶 is the limit of the diagram

푝1 푓 Hom퐵(푏, 푘) 퐴 퐶 Proof. By Theorem 12.2.7(ii), the composite

푝1 푓 Hom퐵(푏, 푘) 퐴 퐶 ⇑휈 푘 ! ⇗휙 푟 1 퐵 푏 is a pointwise right extension. By Proposition 12.4.2 this can be interpreted as saying that 푟푏∶ 1 → 퐵 defines the limit of the restriction of the diagram 푓∶ 퐴 → 퐶 along 푝1 ∶ Hom퐵(푏, 푘) ↠ 퐴.  Recall from Definition 2.4.6 that a functor 푘∶ 퐼 → 퐽 is final if and only if for any ∞-category 퐴, the square 퐴 퐴 Δ Δ 퐴퐽 퐴퐼 퐴푘 preserves and reflects all absolute left lifting diagrams. Dually a functor 푘∶ 퐼 → 퐽 is initial if this square preserves and reflects all absolute right lifting diagrams. We can now give a more concise formulation of these notions.

325 12.4.4. Definition. A functor 푘∶ 퐼 → 퐽 is final if and only if the square below-left is exact and initial if and only if the square below-right is exact.

! 퐼 푘 푘 퐼 ! 1 퐽 퐽 1 ! ! 1 1 퐽 Note that the functor !∶ 퐽 → 1 is represented on the right and on the left by the modules 퐽⇸1 and 퐽 1⇸퐽. So we see that 푘∶ 퐼 → 퐽 is final if and only if 푝0 ∶ Hom퐽(퐽, 푘) ⥲→퐽 is a trivial fibration, and 푘∶ 퐼 → 퐽 is initial if and only if 푝1 ∶ Hom퐽(푘, 퐽) ⥲→퐽 is a trivial fibration. To reconcile Definition 12.4.4 with Definition 2.4.6 we must prove: 12.4.5. Proposition. In a cartesian closed ∞-cosmos, if 푘∶ 퐼 → 퐽 is initial and 푓∶ 퐽 → 퐶 is any diagram, then a limit of 푓 also defines a limit of 푓푘∶ 퐼 → 퐶 and conversely if the limit of 푓푘∶ 퐼 → 퐶 exists, then it also defines a limit of 푓∶ 퐽 → 퐶. Proof. By Proposition 12.4.2, a limit of 푓 defines a pointwise right extension as below left, which by Corollary 12.2.8 and Definition 12.4.4 gives rise to another pointwise right extension below-right. 푓 푓 퐽 퐶 퐼 푘 퐽 퐶 ⇑휈 ⇑휈 ! ! ! ℓ ℓ 1 1 1 By Proposition 12.4.2 again, this tells us that ℓ is the limit of 푓푘. For the converse, suppose we are given a pointwise right extension diagram 푓푘 퐼 퐶 ⇑휇 ! ℓ 1

By Theorem 12.2.7(iii), this universal property tells us that for any composable sequence of modules ⨰ ⨰

퐸 ⨰ ⋯ 퐸 from 1 to 퐶, composing with 휇∶ Hom (1, !) Hom (퐶, ℓ) ⇒ Hom (퐶, 푓푘) defines a ⨰ 1 푛 ⨰ ! 퐶 퐶 bijection between cells 퐸1 ⋯ 퐸푛 ⇒ Hom퐶(퐶, ℓ) and the cells below-left:

Hom1(1,!) 퐸1 퐸푛 Hom퐽(푘,퐽) Hom1(1,!) 퐸1 퐸푛 퐼 1 ⋯ 퐶 퐽 퐼 1 ⋯ 퐶

⇓ ⇓ 퐼 퐶 퐶 Hom퐶(퐶,푓푘) Hom퐶(퐶,푓)

By Corollary 11.4.6, composing with 휇∶ Hom (1, !) ⨰ Hom (퐶, ℓ) ⇒ Hom (퐶, 푓푘) also defines a ⨰ ⨰ ! 퐶 퐶

bijection between cells 퐸 ⋯ 퐸 ⇒ Hom (퐶, ℓ) and the cells above-right. 1 푛 퐶 ⨰ To say that 푘∶ 퐼 → 퐽 is initial means, by Definition 12.4.4, that the map Hom퐽(푘, 퐽) Hom1(1, !) ⇒ Hom1(1, !) of modules from 퐽 to 1 induced by the identity is a composite. Thus composing with

326

⨰ ⨰ ⨰ 휇∶ Hom!(1, !) Hom퐶(퐶, ℓ) ⇒ Hom퐶(퐶, 푓푘) also defines a bijection between cells 퐸1 ⋯ 퐸푛 ⇒ Hom퐶(퐶, ℓ) and the cells

Hom1(1,!) 퐸1 퐸푛 퐽 1 ⋯ 퐶

⇓ 퐽 퐶

Hom퐶(퐶,푓) ⨰ But this says exactly that the cell 휈∶ Hom1(1, !) Hom퐶(퐶, ℓ) ⇒ Hom퐶(퐶, 푓) that corresponds Hom퐶(퐶,ℓ) Hom퐶(퐶,푓) to 휇 under this series of bijections displays 1 ⇸ 퐶 as the right extension of 퐽 ⇸ 퐶 along Hom1(1,!) 퐽 ⇸ 1; unpacking this definition, we see that 휈푘 = 휇. Thus 휈∶ ℓ! ⇒ 푓 is a pointwise right extension and by Proposition 12.4.2 we conclude that ℓ∶ 1 → 퐶 also defines a limit of 푓∶ 퐽 → 퐶 as claimed.  12.4.6. Definition. In a cartesian closed ∞-cosmos 풦, an ∞-category 퐸 admits functorial pointwise right extensions along 푘∶ 퐴 → 퐵 if there is a pointwise right extension 퐴 × 퐸퐴 ev 퐸 ⇑휖 퐴 푘×퐸 ran푘 퐵 × 퐸퐴 of the evaluation functor along 푘 × 퐸퐴. By Proposition 12.4.1 if 퐸 admits functorial pointwise right extensions along 푘∶ 퐴 → 퐵, there is an absolute right lifting diagram 퐸퐵 ran 푘 res ⇓휖 퐸퐴 퐸퐴 that is stable under pasting with 퐸휙 for any exact square 휙. 12.4.7. Proposition (Beck-Chevalley condition). For any exact square 퐷 푞 푝 휙 퐶 ⇐ 퐵 푔 푓 퐴 in a cartesian closed ∞-cosmos and any ∞-category 퐸, whenever 퐸 admits functorial pointwise left and right extensions, the Beck-Chevalley condition is satisfied for the induced 2-cell 휙∗ below-left: the mates of 휙∗ below

327 center and below right are both isomorphisms.

퐴 퐴 퐴 ∗ 퐸 퐸 ∗ 퐸 푔 푓∗ ran푔 푓∗ 푔 lan푓 ∗ 퐶 휙 퐵 퐶 ! 퐵 퐶 ⇑휙 퐵 퐸 ⇐ 퐸 퐸 ⇓휙 퐸 퐸 ! 퐸 ∗ ∗ ∗ ran ∗ 푞 푝 푞 푝 lan푞 푝 퐸퐷 퐸퐷 퐸퐷

Proof. By Proposition 12.4.1, the pointwise right extensions defining ran푔 and ran푝 transpose to define absolute right lifting diagrams 푓∗ 퐸퐴 퐸퐵 퐸퐵 ran푔 ran푝 푔∗ ⇓휙∗ 푝∗ 푝∗ ⇓휖 ⇓휖 퐸퐶 퐸퐶 퐸퐷 퐸퐶 퐸퐷 퐸퐷 푞∗ 푞∗ Moreover, the mate 휙! of 휙∗ defines a factorization of the left-hand diagram through the right-hand diagram: 푓∗ 푓∗ 퐸퐴 퐸퐵 퐸퐴 퐸퐵 ran ran 푔 ∗ ∗ 푔 ∗ 푔 ⇓휙∗ 푝 = ⇓휙! ran푝 푝 ⇓휖 ⇓휖 퐸퐶 퐸퐶 퐸퐷 퐸퐶 퐸퐷 퐸퐷 푞∗ 푞∗ Immediately from the universal property of the absolute right liftings of 푞∗ through 푝∗ we have that ! 휙 is an isomorphism. The proof for 휙! is similar using the absolute left lifting diagrams arising from the pointwise left extensions defining lan푓 and lan푞 

328 Part IV

Change of model and model independence

CHAPTER 13

Cosmological biequivalences

In this chapter we study a certain class of cosmological functors between ∞-cosmoi that do not merely preserve ∞-categorical structure but also reflect and create it. We refer to these functors as biequivalences because the 2-functors they induce between homotopy 2-categories are biequivalences: surjective on objects up to equivalence and defining a local equivalence of hom-categories. Infor- mally, we refer to cosmological biequivalences as “change-of-model functors.” For example, the four ∞-cosmoi introduced in Example 1.2.19 whose objects model (∞, 1)-categories are connected by the following biequivalences briefly described in Example 1.3.7:

풞풮풮 discretization 풮푒푔푎푙 row0 row0 cylinder prism 풬풞푎푡 (13.0.1) 푈 ♮ 1-풞표푚푝 In §13.1, we collect together a number of results about cosmological functors that are scattered throughout the text. In §13.2, we introduce the special class of biequivalences and discuss several examples. Then in §13.3 we establish the basic 2-categorical properties of biequivalences, which will provide the essential ingredient in the proof of the model-independence results. We preview this line of reasoning in §13.4 before developing a more systematic approach to model-invariance in Chapter 14. 13.1. Cosmological functors Recall from Definition 1.3.1 that a cosmological functor is a simplicial functor 퐹∶ 풦 → ℒ between ∞-cosmoi that preserves • the specified classes of isofibrations and • all of the simplicial limits enumerated in 1.2.1(i). By Lemma 1.3.2, it follows that cosmological functors also preserves the equivalences and the trivial fibrations. By Corollary 7.3.3, cosmological functors preserve all flexible weighted limits, since Propo- sition 7.3.1 reveals that these can be constructed out of simplicial limits of diagrams of isofibrations of the form listed in 1.2.1(i). Our aim in this section is to show that cosmological functors preserve all of the ∞-categorical structures we have introduced. In many cases this will not be evident from the original 2-categorical definitions (eg of cartesian fibrations in Definition 5.1.6) but can be deduced rather easier from the ac- companying “internal characterization” of each categorical notion (such as given in Theorem 5.1.11(iii)). First, we orient ourselves to the main examples. Recall Proposition 1.3.3:

331 13.1.1. Example (cosmological functors). (i) The nerve embedding defines a cosmological functor 풞푎푡 ↪ 풬풞푎푡. (ii) For any object 퐴 in an ∞-cosmos 풦, Fun(퐴, −)∶ 풦 → 풬풞푎푡 defines a cosmological functor. (iii) In particular, each ∞-cosmos has an underlying quasi-category functor

(−)0 ≔ Fun(1, −)∶ 풦 → 풬풞푎푡,

defined by mapping out of the terminal ∞-category. We use the notation “(−)0” for this functor because the underlying quasi-categories of a complete Segal space or Segal category displayed in (13.0.1) are defined by evaluating these simplicial objects at 0 and because this notation for an “underlying category” is commonly used in enriched category theory (see Definition A.1.5). (iv) For any ∞-cosmos 풦 and any simplicial set 푈, the simplicial cotensor defines a cosmological functor (−)푈 ∶ 풦 → 풦. (v) For any object 퐴 in a cartesian closed ∞-cosmos 풦, exponentiation defines a cosmological functor (−)퐴 ∶ 풦 → 풦. (vi) For any map 푓∶ 퐴 → 퐵 in an ∞-cosmos 풦, pullback defines a cosmological functor ∗ 푓 ∶ 풦/퐵 → 풦/퐴. In the special case of the map !∶ 퐴 → 1, the pullback cosmological functor has the form

− × 퐴∶ 풦 → 풦/퐴. (vii) For any cosmological functor 퐹∶ 풦 → ℒ and any 퐴 ∈ 풦, the induced map on slices

퐹∶ 풦/퐴 → ℒ/퐹퐴 defines a cosmological functor. 13.1.2. Example. The inclusion of a replete sub ∞-cosmos described in Proposition 7.4.6 is a cosmo- logical functor. Examples include: (i) The full subcategory of discrete objects 풟푖푠푐(풦) ↪ 풦 defines a replete sub ∞-cosmos; see Proposition 1.2.22. (ii) The inclusions 풦⊤ ↪ 풦 ↩ 풦⊥ of the ∞-cosmoi of ∞-categories possessing and functors preserving a terminal or initial ele- ment. More generally, the inclusions

풦⊤,퐽 ↪ 풦 ↩ 풦⊥,퐽 of the ∞-cosmoi of ∞-categories possessing and functors preserving limits or colimits of shape 퐽; see Propositions 7.4.7 and 7.4.14.

332 (iii) The inclusions ℛ 푎푟푖(풦)/퐵 ↪ 풦/퐵 ↩ ℒ푎푟푖(풦)/퐵 or ℛ 푎푟푖(풦) ↪ 풦ퟚ ↩ ℒ푎푟푖(풦) of ∞-cosmoi whose objects are isofibrations admitting a right or left adjoint right inverse; see Corollary 7.4.10 and Proposition 7.4.12. (iv) The inclusions 풞푎푟푡(풦)/퐵 ↪ 풦/퐵 ↩ 푐표풞푎푟푡(풦)/퐵 or 풞푎푟푡(풦) ↪ 풦ퟚ ↩ 푐표풞푎푟푡(풦) of the ∞-cosmoi of cartesian or cartesian fibrations and cartesian functors between them; see Proposition 7.4.15. 13.1.3. Observation. Inclusions 풦′ ↪ 풦 and ℒ′ ↪ ℒ of replete sub ∞-cosmoi create isofibrations and the simplicial limits of axiom 1.2.1(i). As these inclusions are full on positive-dimensional arrows, a simplicial functor 풦 퐹 ℒ

풦′ 퐹 ℒ′ restricts to a simplicial functor on the subcategories if and only if it carries the objects and 0-arrows of the subcategory 풦′ into the objects and 0-arrows of ℒ′, as will be the case whenever the replete sub ∞-cosmoi are “naturally defined” by the same ∞-categorical property. Whenever this is the case, the restricted functor is cosmological. ∗ For example, by Proposition 5.1.20 and Exercise 5.1.iv, pullback 푓 ∶ 풦/퐵 → 풦/퐴 preserves carte- sian fibrations and cartesian functors. Thus, pullback along any functor 푓∶ 퐴 → 퐵 in 풦 restricts to define a cosmological functor: 푓∗ 풦/퐵 풦/퐴

푓∗ 풞푎푟푡(풦)/퐵 풞푎푟푡(풦)/퐴

13.1.4. Example. There are also cosmological functors connecting the ∞-cosmoi of “Reedy fibrant diagrams.” (i) By Proposition 7.4.1, the domain, codomain, and identity functors dom 풦ퟚ id 풦 cod are all cosmological. (ii) By Exercise 11.1.i, the domain and codomain functors dom 풦⤩ 풦 cod from the ∞-cosmos of two-sided isofibrations are cosmological.

333 Cosmological functors may fail dramatically to be surjective on objects — id∶ 풦 → 풦ퟚ comes to mind. Thus a 2-categorical property involving a universal quantifier is not obviously preserved. For instance, by Definition 1.2.21 an object 퐸 ∈ 풦 is discrete just when for all 푋 ∈ 풦, Fun(푋, 퐸) is a Kan complex. However, by Exercise 1.2.iv, which we belatedly solve, discrete objects admit an internal characterization given in (iv) below: 13.1.5. Proposition. An object 퐸 in an ∞-cosmos 풦 is discrete if the following equivalent conditions are satisfied: (i) 퐸 is a discrete object in the homotopy 2-category 픥풦, that is, every 2-cell with codomain 퐸 is invertible. (ii) For each 푋 ∈ 풦, the hom-category hFun(푋, 퐸) is a groupoid. (iii) For each 푋 ∈ 풦, the mapping quasi-category Fun(푋, 퐸) is a Kan complex. (iv) The isofibration 퐸핀 ↠ 퐸ퟚ, induced by the inclusion of simplicial sets ퟚ ↪ 핀, is a trivial fibration. Proof. Here (ii) is an unpacking of (i). The equivalence of (ii) and (iii) is a well-known result of Joyal [24, 1.4] reproduced in Corollary 1.1.15. Condition (iv) is equivalent to the assertion that Fun(푋, 퐸)핀 ↠ Fun(푋, 퐸)ퟚ is a trivial fibration between quasi-categories for all 푋. If this is a trivial fibration, then surjectivity on vertices implies that every 1-simplex in Fun(푋, 퐸) is an isomorphism, proving (iii). By Exercise 1.1.iv, ퟚ ↪ 핀 is in the class of maps cellularly generated by the outer horn inclusions, so (iii) implies (iv).  Note that if 퐸 is discrete, then any equivalent object 퐸′ is also discrete. Now the result we want is easy to establish. 13.1.6. Corollary. Cosmological functors preserve discrete objects. Proof. If 퐸 ∈ 풦 is discrete and 퐹∶ 풦 → ℒ is cosmological, then 퐹(퐸핀 ⥲→퐸ퟚ) ≅ (퐹퐸)핀 ⥲→(퐹퐸)ퟚ is a trivial fibration in ℒ, proving that 퐹퐸 is discrete by Proposition 13.1.5(iv).  Importantly: 13.1.7. Proposition. Cosmological functors preserve comma ∞-categories: if 퐹∶ 풦 → ℒ is a cosmological functor and the diagram below-left 퐸 퐹퐸 푒1 푒0 퐹푒1 퐹푒0 휖 퐹 퐹휖 (13.1.8) 퐶 ⇐ 퐵 ⇝ 퐹퐶 ⇐ 퐹퐵

푔 푓 퐹푔 퐹푓 퐴 퐹퐴 is a comma cone in 풦, then the diagram above-right is a comma cone in ℒ. Proof. The simplicial pullback (3.3.2) that constructs the comma cone is preserved by any cosmo- logical functor. By Proposition 3.3.11, any comma cone as above left arises from a fibered equivalence 푒∶ 퐸 ⥲ Hom퐴(푓, 푔) where 휖 = 휙푒, and any fibered equivalence of this form defines a comma cone. Since 퐹푒∶ 퐹퐸 ⥲ 퐹(Hom퐴(푓, 푔)) ≅ Hom퐹퐴(퐹푓, 퐹푔), we conclude that the right-hand data again defines a comma cone. 

334 Using Proposition 13.1.7, we can quickly establish the following preservation properties of cosmo- logical functors by arguing along similar lines to Corollary 13.1.6. For ease of reference, we include on this list the preservation properties that have been previously established. 13.1.9. Proposition. Cosmological functors preserve: (i) Equivalences between ∞-categories. (ii) Adjunctions between ∞-categories, including right adjoint right inverse adjunctions and left adjoint right inverse adjunctions. (iii) Invertible 2-cells and mates. (iv) Homotopy coherent adjunctions and monads. (v) Trivial fibrations and discrete objects. (vi) Flexible weighted limits. (vii) Comma spans and comma cones. (viii) Absolute right and left lifting diagrams. (ix) Limits or colimits of diagrams indexed by a simplicial set 퐽 inside an ∞-category. (x) Cartesian and cocartesian fibrations and cartesian functors between them. (xi) Discrete cartesian fibrations and discrete cocartesian fibrations. (xii) Two-sided fibrations and cartesian functors between them and also modules. (xiii) Modules and represented modules. Proof. Lemma 1.3.2 proves that cosmological functors preserve equivalences between ∞-categories since these can be characterized as 2-categorical equivalences, which are preserved by any 2-functor. Similarly, as observed in Lemma 2.1.3, adjunctions are preserved by any 2-functor, as are invertible 2-cells and mates. In the same way, homotopy coherent adjunctions are preserved by any simplicial functor. So the preservation properties (ii), (iii) and (iv) hold under much weaker hypotheses. The preservation of trivial fibrations was also established in Lemma 1.3.2 and Corollary 13.1.6 uses this to prove that discrete objects are also preserved, proving (v). Corollary 7.3.3 proves that cosmological functors preserve all flexible weighted limits as stated in (vi). Proposition 13.1.7 proves that cosmological functors preserve comma spans in the ∞-cosmos and comma cones in the homotopy 2-category as stated in (vii). The preservation property (viii) follows from Theorem 3.4.3, which characterizes absolute lifting diagrams as fibered equivalences of comma ∞-categories, Proposition 13.1.7, which says that cosmo- logical functors preserve commas, and the fact that cosmological functors preserve equivalences. Now (ix) follows from this by Definition 2.3.7 and the fact that cosmological functors preserve simplicial tensors. The preservation properties (x) and (xi) also follow from Proposition 13.1.7 and the fact that cos- mological functors preserve right or left adjoint right inverse adjunctions, mates, and trivial fibrations via the characterizations of Theorem 5.1.11(iii), Theorem 5.1.19(iii), and Proposition 5.4.6. More details are given in the proof of Corollary 5.1.16, which also observes that cartesian natural transformations are preserved by cosmological functors. Directly from the internal characterization of Theorem 10.1.4 and the preservation of adjunc- tions and invertible 2-cells, cartesian functors preserve two-sided fibrations; preservation of cartesian functors between them is left to Exercise 13.1.i. This establishes (xii). By Proposition 1.3.3(vi), a cos- mological functor induces a direct image cosmological functor between sliced ∞-cosmoi, which then preserves discrete objects by Corollary 13.1.6. Thus, modules are also preserved. By specializing Propo- sition 13.1.7 to cospans involving identities, it becomes clear that left and right representable commas

335 are preserved. Since a module is representable if and only if it is fibered equivalent to one of these, representable modules are preserved as well, completing the proof of (xiii).  13.1.10. Non-Example. The composite of the underlying quasi-category functor with the homotopy category functor (−) 풦 0 풬풞푎푡 h 풞푎푡 defines a simplicial functor that carries an ∞-category 퐴 to its homotopy category h퐴 first introduced in Definition 1.4.12. This functor does preserve isofibrations but does not preserve simplicial cotensors and so is not cosmological. This is a good thing because if it were Proposition 13.1.9(ix) would imply that limits in an ∞-category would also define limits in its homotopy category, which is not generally true. Exercises. 13.1.i. Exercise. Prove that any cosmological functor preserves cartesian functors between two-sided fibrations. Conclude that any cosmological functor 퐹∶ 풦 → ℒ induces a cosmological functor 퐹∶ 퐴\ℱ푖푏(풦)/퐵 → 퐹퐴\ℱ푖푏(ℒ)/퐹퐵. 13.2. Biequivalences of ∞-cosmoi as change-of-model functors Special cosmological functors, called biequivalences, preserve and also reflect the category theory developed in this text. Recall Definition 1.3.5: 13.2.1. Definition (cosmological biequivalences). A cosmological functor 퐹∶ 풦 → ℒ is a biequiva- lence when it is: (i) surjective on objects up to equivalence: i.e., if for all 퐶 ∈ ℒ there exists 퐴 ∈ 풦 so that 퐹퐴 ≃ 퐶; and (ii) a local equivalence of quasi-categories: i.e., if for every pair 퐴, 퐵 ∈ 풦, the map Fun(퐴, 퐵) ∼ Fun(퐹퐴, 퐹퐵) is an equivalence of quasi-categories. More generally, two ∞-cosmoi are biequivalent if there exists a finite zig-zag of biequivalences con- necting them. 13.2.2. Example (biequivalences between ∞-cosmoi of (∞, 1)-categories). In Appendix E, we will show that the functors (13.0.1) are all biequivalences. Except for the functor ♮∶ 풬풞푎푡 → 1-풞표푚푝, each of the functors (13.0.1) arises from a simplicially enriched right Quillen equivalence between model categories enriched over the Joyal model structure with all objects cofibrant. Functors of this form are easily seen to encode cosmological biequivalences. Recall that any ∞-cosmos has an underlying quasi-category functor

(−) ≔Fun(1,−) 풦 0 풬풞푎푡 defined by mapping out of the terminal ∞-category. We now show that for every ∞-cosmos that is biequivalent to 풬풞푎푡, its underlying quasi-category functor is a biequivalence. 13.2.3. Proposition. If an ∞-cosmos 풦 is biequivalent to 풬풞푎푡, then the underlying quasi-category functor (−)0 ∶ 풦 → 풬풞푎푡 is a cosmological biequivalence. 336

Proof. We will show that in the presence of cosmological biequivalences

∼ 퐺∼ 퐹 풦 ℒ 풬풞푎푡 the underlying quasi-category functor (−)0 ∶ 풦 → 풬풞푎푡 is a cosmological biequivalence. By in- duction, perhaps taking one of these functors to be the identity, the same conclusion holds for any ∞-cosmos connected by a finite zig-zag of biequivalences to 풬풞푎푡. As 퐹 is a biequivalence, for each quasi-category 푄, there exists an ∞-category 퐵 ∈ ℒ so that 퐹퐵 ≃ 푄. Because 퐹 and 퐺 are both local equivalences preserving the terminal ∞-category 1 (for which we adopt the same notation in each of 풦, ℒ, and 풬풞푎푡), there is then a zig-zag of equivalences of quasi-categories ∼ ∼ (퐺퐵)0 = Fun(1, 퐺퐵) Fun(1, 퐵) Fun(1, 퐹퐵) ≅ 퐹퐵 ≃ 푄. This proves that there exists an ∞-category 퐺퐵 ∈ 풦 whose underlying quasi-category is equivalent to 푄. To show that the underlying quasi-category functor (−)0 ∶ 풦 → 풬풞푎푡 is a local equivalence, con- sider a pair of ∞-categories 퐴, 퐵 ∈ 풦. By essential surjectivity of 퐺, there exist ∞-categories 푋, 푌 ∈ ℒ so that 퐺푋 ≃ 퐴 and 퐵 ≃ 퐺푌. By pre- and post-composing with these equivalences, Corollary 1.4.9 implies that Fun(퐴, 퐵) → Fun(퐴0, 퐵0) is equivalent to Fun(퐺푋, 퐺푌) → Fun((퐺푋)0, (퐺푌)0), so it suffices to prove that the latter map is an equivalence of quasi-categories. By simplicial functoriality of the local equivalences 퐹 and 퐺, there is a commutative diagram whose vertical maps are equivalences Fun(퐺푋, 퐺푌) Fun(Fun(1, 퐺푋), Fun(1, 퐺푌)) ∼

∼ Fun(Fun(1, 푋), Fun(1, 퐺푌)) ∼

Fun(푋, 푌) Fun(Fun(1, 푋), Fun(1, 푌)) ∼

∼ Fun(Fun(1, 푋), Fun(1, 퐹푌)) ∼

Fun(퐹푋, 퐹푌) ≅ Fun(Fun(1, 퐹푋), Fun(1, 퐹푌)) Any quasi-category is isomorphic to its underlying quasi-category, so the bottom horizontal map is an isomorphism. By the 2-of-3 property, it follows that the top horizontal map is an equivalence, which is what we wanted to show.  Recall from Proposition 1.3.3(vi) that a cosmological functor 퐹∶ 풦 → ℒ induces a cosmological functor 퐹∶ 풦/퐵 → ℒ/퐹퐵 for any 퐵 ∈ 풦. 13.2.4. Proposition. If 퐹∶ 풦 → ℒ is a cosmological biequivalence, then for any 퐵 ∈ 풦 the induced functor 퐹∶ 풦/퐵 → ℒ/퐹퐵 is also a cosmological biequivalence. Proof. We first argue that the 퐹 defines a local equivalence of sliced mapping quasi-categories, as defined in Proposition 1.2.17(ii). Given a pair of isofibration 푝∶ 퐸 ↠ 퐵 and 푝′ ∶ 퐸′ ↠ 퐵 in 풦, the

337 induced functor on mapping quasi-categories is defined by ′ ′ Fun퐵(푝, 푝 ) Fun(퐸, 퐸 ) ⌟ ∼ ∼ ′ ′ Fun퐹퐵(퐹푝, 퐹푝 ) Fun(퐹퐸, 퐹퐸 ) ⌟ 1 Fun(퐸, 퐵) ∼ 1 Fun(퐹퐸, 퐹퐵) As the maps between the cospans in 풬풞푎푡 are equivalences, so is the induced map between the pull- backs. For surjectivity up to equivalence, consider an isofibration 푞∶ 퐿 ↠ 퐹퐵 in ℒ. As 퐹 is surjective on objects up to equivalence, there exists some 퐴 ∈ 풦 together with an equivalence 푖∶ 퐹퐴 ⥲ 퐿 ∈ ℒ. As 퐹 defines a local equivalence of mapping quasi-categories, there is moreover a functor 푓∶ 퐴 → 퐵 in ℒ so that 퐹푓∶ 퐹퐴 → 퐹퐵 is isomorphic to 푞푖 in 픥ℒ. The map 푓 need not be an isofibration, but 푝 Lemma 1.2.12 allows us to factor 푓 as 퐴 ⥲ 퐾 −→→퐵. Choosing an equivalence inverse 푗∶ 퐾 ⥲ 퐴, this data defines a diagram in 픥ℒ that commutes up to isomorphism:

퐹푗 ∼ ∼ 푖 퐹퐾 퐹퐴 퐿 ≅ 퐹푓 ≅ 퐹푝 푞 퐹퐵 Proposition 1.4.10 tells us that isofibrations in ∞-cosmoi define isofibrations in the homotopy 2-category. In particular, we may lift the displayed isomorphism along the isofibration 푞∶ 퐿 ↠ 퐹퐵 to define a commutative triangle:

푖⋅퐹푗

퐹푗 ∼ ∼ ∼ 푖 퐹퐾 퐹퐴 퐿 퐹퐾 ≅ 퐿 ≅ ≅ ∼ 퐹푓 푒 퐹푝 푞 = 퐹푝 푞 퐹퐵 퐹퐵 As noted in the proof of Theorem 1.4.7, since 푒 is isomorphic to an equivalence 푖⋅퐹푗, it must also define an equivalence. Thus, by Proposition 1.2.17(vii), we have shown that the isofibration 푝∶ 퐾 ↠ 퐵 maps under 퐹 to an isofibration that is equivalent to our chosen 푞∶ 퐿 ↠ 퐹퐵.  A similar argument proves that a cosmological biequivalence induces a biequivalence between the corresponding ∞-cosmoi of isofibrations of Proposition 7.4.1. 13.2.5. Proposition. If 퐹∶ 풦 → ℒ is a cosmological biequivalence then the induced functor 퐹∶ 풦ퟚ → ℒퟚ is a biequivalence.

Proof. Exercise 13.2.i.  To establish another family of biequivalences of sliced ∞-cosmoi, we require a general lemma:

338 13.2.6. Lemma. In any ∞-cosmos, the pullback of an equivalence along an isofibration is an equivalence. 푔 푃 퐸 ⌟ 푞 푝 퐴 ∼ 퐵 푓

Proof. The map 푔∶ 푃 → 퐸 is an equivalence if and only if 푔∗ ∶ Fun(푋, 푃) → Fun(푋, 퐸) is an equivalence of quasi-categories for all 푋. By the simplicial universal property of the pullback 푃, this map 푔∗ is the pullback of the equivalence 푓∗ ∶ Fun(푋, 퐴) ⥲ Fun(푋, 퐵) along the isofibration 푝∗ ∶ Fun(푋, 퐸) ↠ Fun(푋, 퐵). Thus, it suffices to prove this result for quasi-categories, where a number of proofs are available. One invokes a standard bit of model category theory: in any model category, the pullback of any weak equivalence between fibrant objects along a fibration is a weak equivalence (see for instance [41, 15.4.2]). An alternate approach, left to the reader is to use Lemma 3.1.5 and the isomorphism lifting property to directly lift the data of an equivalence from 푓 to 푔.  ∗ 13.2.7. Proposition. If 푓∶ 퐴 ⥲ 퐵 is an equivalence in 풦, then the pullback functor 푓 ∶ 풦/퐵 → 풦/퐴 is a cosmological biequivalence. ∗ Proof. To see that 푓 ∶ 풦/퐵 → 풦/퐴 is essentially surjective, consider an object 푟∶ 퐷 ↠ 퐴, factor the composite map 푓푟∶ 퐷 → 퐵 as an equivalence followed by an isofibration, and pull the result back along 푓. 퐷 ∼

푃 ∼ 퐸 푟 ⌟ 푞 푝 퐴 ∼ 퐵 푓 By Lemma 13.2.6, the pullback of 푓 is an equivalence, so by the 2-of-3 property, 푟 is equivalent to the ∗ isofibration 푞∶ 푃 ↠ 퐴, which is in the image of 푓 ∶ 풦/퐵 → 풦/퐴. To show that this simplicial functor is a local equivalence, consider a pair of isofibrations 푝∶ 퐸 ↠ 퐵 and 푞∶ 퐹 ↠ 퐵. We will show that the quasi-category of functors over 퐵 is equivalent to the quasi-

category of functors over 퐴 between their pullbacks ℎ ∼ 푓∗퐸 퐸 ⌟ 푝 푓∗퐹 푘 퐹 푟 ⌟ ∼ 푠

푞 퐴 ∼ 퐵 푓

339 ∗ ∗ To define the comparison map Fun퐵(퐸, 퐹) → Fun퐴(푓 퐸, 푓 퐹) consider the following commuta- tive prism

Fun퐵(퐸, 퐹) ∗ Fun(퐸, 퐹) ℎ ∼ ∼ ⌟

푘 ∗ ∗ ∗ ∗ ∗∼ ∗ Fun (푓 퐸, 푓 퐹) Fun(푓 퐸, 푓 퐹) Fun(푓 퐸, 퐹) 푞∗ 퐴 ⌟ ⌟ 푠∗ 푝 푞∗ ퟙ Fun(퐸, 퐵) ∼ ∗ ∗ ∼ ∗ ℎ ퟙ 푟 Fun(푓 퐸, 퐴) Fun(푓 퐸, 퐵) 푓∗ The front-right square is a pullback by the simplicial universal property of 푓∗퐹, while the front-left ∗ ∗ square and back face are the pullbacks that define Fun퐴(푓 퐸, 푓 퐹) and Fun퐵(퐸, 퐹). The universal ∗ ∗ property of the composite front pullback rectangle induces the map Fun퐵(퐸, 퐹) → Fun퐴(푓 퐸, 푓 퐹). As this functor is the pullback of the equivalences ℎ∗ of Corollary 1.4.9, the induced map defines an equivalence of quasi-categories.  Exercises. 13.2.i. Exercise. Prove Proposition 13.2.5. 13.2.ii. Exercise. Give a second proof of Lemma 13.2.6 that directly constructs an inverse equivalence to the pullback of an equivalence in any ∞-cosmos. 13.2.iii. Exercise. If 퐹∶ 풦 ⥲ ℒ is a biequivalence and 퐴 ∈ 풦 and 퐵 ∈ ℒ are so that 퐹퐴 ≃ 퐵 prove that the slice ∞-cosmoi 풦/퐴 and ℒ/퐵 are biequivalent. 13.3. Properties of change-of-model functors We refer to biequivalence between ∞-cosmoi as change-of-model functors. In this section, we enu- merate their basic properties. First, we observe that cosmological biequivalences descend to biequiv- alences between homotopy 2-categories, hence the name: 13.3.1. Proposition. A cosmological biequivalence 퐹∶ 풦 → ℒ induces a biequivalence 퐹∶ 픥풦 → 픥ℒ of homotopy 2-categories: i.e., the 2-functor 퐹 is (i) surjective on objects up to equivalence and (ii) defines a local equivalence of categories hFun(퐴, 퐵) ⥲ hFun(퐹퐴, 퐹퐵) for all 퐴, 퐵 ∈ 풦. Proof. This is immediate from the definition: Theorem 1.4.7 observed that ∞-cosmos-level equiv- alences coincide with 2-categorical equivalences, and by Lemma 1.2.15 the homotopy category functor h∶ 풬풞푎푡 → 풞푎푡 carries equivalences of quasi-categories to equivalences of categories.  Any biequivalence between 2-categories induces a variety of local and global bijections, as enu- merated below, which can be put to use to solve Exercise 13.3.i. 13.3.2. Corollary. Consider any cosmological biequivalence 퐹∶ 풦 → ℒ. (i) The biequivalence 퐹 preserves, reflects, and creates equivalences between ∞-categories, and induces a bijection between equivalence classes of objects.

340 (ii) The biequivalence 퐹 induces local bijections between isomorphism classes of functors extending the bijection of (i): choosing any pairs of objects 퐴, 퐵 ∈ 풦 and 퐴′, 퐵′ ∈ ℒ and equivalences 퐹퐴 ≃ 퐴′ and 퐹퐵 ≃ 퐵′, the map hFun(퐴, 퐵) ⥲ hFun(퐹퐴, 퐹퐵) ⥲ hFun(퐴′, 퐵′) (13.3.3) defines a bijection between isomorphism classes of functors 퐴 → 퐵 in 풦 and isomorphism classes of functors 퐴′ → 퐵′ in ℒ. (iii) The biequivalence 퐹 induces local bijections between 2-cells with specified boundary extending the bijec- tions of (i) and (ii): choosing any pairs of objects 퐴, 퐵 ∈ 풦 and 퐴′, 퐵′ ∈ ℒ, equivalences 퐹퐴 ≃ 퐴′ and 퐹퐵 ≃ 퐵′, functors 푓, 푔∶ 퐴 ⇉ 퐵 and 푓′, 푔′ ∶ 퐴′ ⇉ 퐵′, and natural isomorphisms 퐹푓 퐹푔 퐹퐴 퐹퐵 퐹퐴 퐹퐵 ∼ ∼

∼ ≅훼 ∼ ≅훽 퐴′ 퐵′ 퐴′ 퐵′ 푓′ 푔′ the map (13.3.3) induces a bijection between 2-cells 푓 ⇒ 푔 in 풦 and 2-cells 푓′ ⇒ 푔′ in ℒ. Proof. For (i), any 2-functor preserves equivalences, so our first take is to show that equivalences are also reflected. If 푓∶ 퐴 → 퐵 is a morphism so that 퐹푓∶ 퐹퐴 ⥲ 퐹퐵 is an equivalence then by the 2-of-3 property and the commutative diagram

푓∗ Fun(푋, 퐴) Fun(푋, 퐵) ∼ ∼

퐹푓∗ Fun(퐹푋, 퐹퐴) ∼ Fun(퐹푋, 퐹퐵)

푓∗ is an equivalence for all 푋, proving that 푓∶ 퐴 → 퐵 is an equivalence. To prove that equivalences are also created — meaning that if 퐹퐴 ≃ 퐹퐵 then 퐴 ≃ 퐵 — note that the equivalence Fun(퐴, 퐵) ⥲ Fun(퐹퐴, 퐹퐵) implies that any morphism 퐹퐴 → 퐹퐵 has a lift 퐴 → 퐵 up to isomorphism. In this way, the morphisms of an equivalence 푓∶ 퐹퐴 ⥲ 퐹퐵 and 푔∶ 퐹퐵 ⥲ 퐹퐴 ̃ ̃ can be lifted to morphisms 푓 ∶ 퐴 → 퐵 and 푔∶̃ 퐵 → 퐴 so that 푔̃푓 and id퐴 have isomorphic images under the equivalence Fun(퐴, 퐴) ⥲ Fun(퐹퐴, 퐹퐴). Since an equivalence of quasi-categories induces ̃ ̃ a bijection on isomorphism classes of vertices, we conclude that 푔̃푓 ≅ id퐴 ∈ Fun(퐴, 퐴). Similarly, 푓푔̃ ̃ and id퐵 have isomorphic images under Fun(퐵, 퐵) ⥲ Fun(퐹퐵, 퐹퐵) and thus 푓푔̃ ≅ id퐵, proving that 퐴 ≃ 퐵. Finally, the preservation, reflection, and creation of equivalences together with essential surjec- tivity of a cosmological biequivalence implies that such functors induces a bijection on equivalence classes of objects. For (ii), by Corollary 1.4.9, the chosen equivalences 퐹퐴 ≃ 퐴′ and 퐹퐵 ≃ 퐵′ induce an equivalence of quasi-categories Fun(퐴, 퐵) ∼ Fun(퐹퐴, 퐹퐵) ∼ Fun(퐴′, 퐵′) which descends to the equivalence of homotopy categories (13.3.3). Since equivalences of quasi-categories induce bijections between isomorphism classes of vertices, this yields in particular a bijection between isomorphism classes of functors.

341 For (iii), the equivalence (13.3.3) is full and faithful, inducing a bijection between cells 푓 ⇒ 푔 and 퐹푓 ⇒ 퐹푔. This bijection can be transported along any chosen isomorphisms 훼 and 훽 to yield a bijection between natural transformations 푓 ⇒ 푔 in hFun(퐴, 퐵) in 풦 and natural transformations 푓′ ⇒ 푔′ in hFun(퐴′, 퐵′) in ℒ.  As an application of Corollary 13.3.2, we now show that the internal hom 퐵퐴 between ∞-categories 퐴 and 퐵 in a cartesian closed ∞-cosmos 풦 that is biequivalent to 풬풞푎푡 is equivalent to the simpli- cial cotensor 퐵퐴0 of 퐵 with the underlying quasi-category of 퐴. Even if 풦 is not cartesian closed as an ∞-cosmos, on account of the biequivalence (−)0 ∶ 풦 → 풬풞푎푡 of Proposition 13.2.3, its homo- topy 2-category 픥풦 is cartesian closed in the bicategorical sense, replacing the natural isomorphisms of Proposition 1.4.5(ii) with natural equivalences: we define 퐵퐴 ∈ 풦 to be any ∞-category whose 퐴0 underlying quasi-category is 퐵0 . By the 2-of-3 property for equivalences

퐴 ∼ 퐴0 Fun(푋, 퐵 ) Fun(푋0, 퐵0 ) ≅ ∼ ∼ Fun(푋 × 퐴, 퐵) Fun(푋0 × 퐴0, 퐵0) we see that Fun(푋, 퐵퐴) ≃ Fun(푋 × 퐴, 퐵) for any 푋. For this reason, the statement of Proposition 13.3.4 does not require that 풦 is cartesian closed as an ∞-cosmos; the exponentials can be inferred to exist a posteriori. 13.3.4. Proposition. Suppose 풦 is an ∞-cosmos that is biequivalent to 풬풞푎푡. Then for any ∞-categories 퐴, 퐵 ∈ 풦, the exponential 퐵퐴 ≃ 퐵퐴0 is equivalent to the cotensor of 퐵 with the underlying quasi-category of 퐴. Proof. By Corollary 13.3.2(i), cosmological biequivalences reflect equivalences of ∞-categories. Thus, to prove 퐵퐴 ≃ 퐵퐴0, it suffices by Proposition 13.2.3 and Corollary 13.3.2 to prove that 퐵퐴 and 퐵퐴0 have equivalent underlying quasi-categories. The defining universal properties of the exponential and cotensor provide equivalences

퐴 ∼ 퐴0 Fun(1, 퐵 ) ≃ Fun(퐴, 퐵) Fun(퐴0, 퐵0) ≅ Fun(1, 퐵 ) which compose with the local equivalence of the underlying quasi-category functor to provide the desired equivalence.  We now prove that biequivalences reflect and create, as well as preserve, the ∞-categorical struc- tures considered in Section 13.1. 13.3.5. Proposition. A biequivalence 퐹∶ 풦 → ℒ between ∞-cosmoi: (i) Preserves and reflects invertibility of 2-cells. (ii) Preserves, reflects, and creates adjunctions between ∞-categories, including right adjoint right inverse adjunctions and left adjoint right inverse adjunctions. (iii) Preserves and reflects discreteness. (iv) Preserves, reflects, and creates fibered equivalences. (v) Preserves and reflects comma and arrow ∞-categories: a cell as on the left of (13.1.8) is a comma cone in 풦 if and only if its image is a comma cone in ℒ. (vi) Preserves and reflects cartesian and cocartesian fibrations and cartesian functors between them.

342 (vii) Preserves and reflects discrete cartesian fibrations and discrete cocartesian fibrations. (viii) Preserves and reflects two-sided fibrations and cartesian functors between them. (ix) Preserves and reflects modules and represented modules and induces a bijection on equivalence classes of modules between a fixed pair of ∞-categories. (x) Preserves, reflects, and creates absolute right and left lifting diagrams over a given cospan. (xi) Preserves and reflects limits or colimits of diagrams indexed by a simplicial set 퐽 inside an ∞-category and creates the property of an ∞-category in 풦 admitting a limit or colimit of a given diagram. Proof. Properties (i) and (ii) hold for any biequivalence between 2-categories, such as 퐹∶ 픥풦 → 픥ℒ and are left to Exercise 13.3.i as a useful exercise to familiarize oneself with the 2-categorical notion of biequivalence. Property (iii) follows from (i) and Proposition 13.1.5(i): if 퐹퐸 is discrete, then the image under 퐹 of any 2-cell in 풦 with codomain 퐸 is invertible, which implies that that 2-cell is invertible in 퐸. Property (iv) is a special case of Corollary 13.3.2(i) applied to the induced biequivalence of Proposi- tion 13.2.4. Since both 풦 and ℒ admit comma ∞-categories and Proposition 3.3.11 shows that comma spans are characterized by a fibered equivalence class of two-sided isofibrations, (v) follows from (iv). Proposition (vi) follows from (ii) and (i) and (vii) follows from Corollary 13.3.2(ii) which shows that invertibility of the morphism considered in Proposition 5.4.6 is reflected. Property (viii) follows similarly from Theorem 10.1.4(iii) and (ii) and (i). Preservation and reflection of modules now follows from (iii) and the bijection between equivalence classes follows from (iv); we defer full details until Proposition 14.1.1. The final statement of (ix), on representability, combines (iv) with (v), as will be elaborated upon in Proposition 14.1.2. The reflection properties of (x) and (xi) follow from Theorem 3.4.3 and the creation properties follow from Theorem 3.4.11 and (ix). The precise steps are spelled out further in Theorem 13.4.1.  13.3.6. Corollary. If 퐹∶ 풦 → ℒ is a cosmological biequivalence then the following induced cosmological functors are all biequivalences: (i) 퐹∶ 풟푖푠푐(풦) → 풟푖푠푐(ℒ) (ii) 퐹∶ 풦⊤,퐽 → ℒ⊤,퐽 and 퐹∶ 풦⊥,퐽 → ℒ⊥,퐽 (iii) 퐹∶ ℛ 푎푟푖(풦)/퐵 → ℛ 푎푟푖(ℒ)/퐹퐵 and 퐹∶ ℒ푎푟푖(풦)/퐵 → ℒ푎푟푖(ℒ)/퐹퐵 (iv) 퐹∶ ℛ 푎푟푖(풦) → ℛ 푎푟푖(ℒ) and 퐹∶ ℒ푎푟푖(풦) → ℒ푎푟푖(ℒ) (v) 퐹∶ 풞푎푟푡(풦)/퐵 → 풞푎푟푡(ℒ)/퐹퐵 and 퐹∶ 푐표풞푎푟푡(풦)/퐵 → 푐표풞푎푟푡(ℒ)/퐹퐵 (vi) 퐹∶ 풞푎푟푡(풦) → 풞푎푟푡(ℒ) and 퐹∶ 푐표풞푎푟푡(풦) → 푐표풞푎푟푡(ℒ) (vii) 퐹∶ 퐴\ℱ푖푏(풦)/퐵 → 퐹퐴\ℱ푖푏(ℒ)/퐹퐵 (viii) 퐹∶ 퐴\ℳ표푑(풦)/퐵 → 퐹퐴\ℳ표푑(ℒ)/퐹퐵

Proof. In each case we start with a cosmological biequivalence — perhaps 풦/퐵 → ℒ/퐹퐵 or 풦ퟚ → ℒퟚ — and must show that the restricted cosmological functor of Observation 13.1.3 is again a biequivalence between the replete sub ∞-cosmoi. Each of the arguments is similar: we know that 퐹∶ 풦 → ℒ induces a bijection between equivalence classes of objects. Since the sub ∞-cosmoi are replete, the equivalence classes of objects of the replete sub ∞-cosmos are given by a subset of the equivalence classes of objects of 풦. Since, moreover, Proposition 13.3.5 proves that the property that characterizes the objects of the sub ∞-cosmos is preserved, reflected, and created by any biequivalence, it is clear that the bijection between equivalence classes of objects in 풦 and ℒ restricts to define a bijection between equivalence classes of objects in the sub ∞-cosmoi.

343 Now suppose 퐴, 퐵 ∈ 풦 are objects of its replete sub ∞-cosmos. We must show the local equiva- lence Fun(퐴, 퐵) ∼ Fun(퐹퐴, 퐹퐵) restricts to a local equivalence of the functor spaces of the sub ∞-cosmoi. Since we know that the biequivalence defines a bijection between isomorphism classes of 0-arrows in the sub ∞-cosmoi, the proof is completed by the following lemma.  13.3.7. Lemma. Let 푓∶ 퐾 ⥲ 퐿 be an equivalence of quasi-categories. Let 퐾′ ⊂ 퐾 and 퐿′ ⊂ 퐿 be replete sub quasi-categories — that is, full and replete up to isomorphism on some collection of vertices — and suppose further that 푓 restricts to define a simplicial functor

푓 퐾 ∼ 퐿

푓 퐾′ 퐿′ that is bijective on isomorphism classes of vertices. Then 푓∶ 퐾′ ⥲ 퐿′ is an equivalence of quasi-categories. Proof. Choose any inverse equivalence 푔∶ 퐿 ⥲ 퐾. Since 퐾′ ⊂ 퐾 is replete and full on some subset of vertices and 푓∶ 퐾 → 퐿 is bijective on isomorphism classes of vertices, 푔 restricts to define a functor 푔∶ 퐿′ → 퐾′: for each 푦 ∈ 퐿′, 푓푔(푦′) ≅ 푦′ ∈ 퐿 so 푔(푦′) must lie in 퐾′. By repleteness and 핀 핀 fullness again, the simplicial natural isomorphisms 퐾 → 퐾 and 퐿 → 퐿 that witness 푔푓 ≅ id퐾 and ′ ′ 푓푔 ≅ id퐿 restrict to 퐿 and 퐾 to define the desired equivalence.  Exercise. 13.3.i. Exercise. Consider a 2-functor 퐹∶ 풞 → 풟 that defines a biequivalence in the sense of Propo- sition 13.3.1. Prove that: 푓 (i) A 2-cell 퐴 ⇓훼 퐵 in 풞 is invertible if and only if 퐹훼 is invertible in 풟. 푔 (ii) 푢∶ 퐴 → 퐵 admits a left adjoint in 풞 if and only if 퐹푢∶ 퐹퐴 → 퐹퐵 admits a left adjoint in 풟 in which case 퐹 preserve the adjunction. 13.3.ii. Exercise. Prove that cosmological biequivalences between cartesian closed ∞-cosmoi preserve exponential objects up to equivalence. 13.4. Ad hoc model invariance An ad hoc approach to proving the model-independence of the basic category theory of ∞-categories is given by elaborations of Proposition 13.3.5, as described for instance in the following theorem: 13.4.1. Theorem (model independence of basic category theory I). The following notions are preserved, reflected, and created by any cosmological biequivalence: (i) A left or right adjoint to a functor 푢∶ 퐴 → 퐵. (ii) A limit or a colimit for a 퐽-indexed diagram 푑∶ 1 → 퐴퐽 in an ∞-category 퐴. Proof. For (i), if 푢∶ 퐴 → 퐵 admits a left adjoint 푓∶ 퐵 → 퐴, then this adjunction is preserved by any 2-functor, and hence by any cosmological functor 퐹∶ 풦 → ℒ. If there merely exists 푓∶ 퐵 → 퐴 in 풦 so that 퐹푓 ⊣ 퐹푢 in ℒ, then in the case where 퐹 is a biequivalence, Corollary 13.3.2(iii) can be

344 used to lift the unit and counit from ℒ to define 2-cells 휂∶ id퐵 ⇒ 푢푓 and 휖∶ 푓푢 ⇒ id퐴 in 풦.A priori the composites 휖푓 ⋅ 푓휂 and 푢휖 ⋅ 휂푢 need not be identities, but they will be invertible and the standard 2-categorical argument appearing in the proof of Proposition 2.1.11 can be used to modify one of these 2-cells to produce a genuine adjunction 푓 ⊣ 푢. A similar line of reasoning can be used in the absence of a candidate left adjoint using Corollary 13.3.2(ii) to lift the left adjoint from ℒ to a functor 푓∶ 퐵 → 퐴 in 풦 whose image is isomorphic to the left adjoint to 퐹푢. The rest of the argument proceeds as before. For (ii), given an absolute lifting diagram in 픥ℒ as displayed on the right 퐹퐴 퐴 ̄ ℓ Δ ℓ Δ ⇓휆̄ ⇓휆 1 퐹퐴퐽 1 퐴퐽 퐹푑 푑 Corollary 13.3.2(ii) and (iii) yield a 1-cell ℓ∶ 1 → 퐴 with 퐹ℓ ≅ ℓ̄ and a 2-cell 휆∶ Δℓ ⇒ 푑, as displayed on the right, so that 퐹휆 composes with the isomorphism 퐹ℓ ≅ ℓ̄ to 휆̄. Our task is to show that that this data defines an absolute right lifting diagram in 풦, which amounts to showing for all objects 푋 and for all maps 푎∶ 푋 → 퐴 that the composition operation with 휆 induces a bijection 휆∘− hFun(푋, 퐴)(푎, ℓ) hFun(푋, 퐴퐽)(Δ푎, 푑!) ≅ ≅ 퐹휆∘− hFun(퐹푋, 퐹퐴)(퐹푎, 퐹ℓ) hFun(퐹푋, 퐹퐴퐽)(Δ퐹푎, 퐹푑!) ≅ ≅ 휆∘−̄ hFun(퐹푋, 퐹퐴)(퐹푎, ℓ)̄ hFun(퐹푋, 퐹퐴퐽)(Δ퐹푎, 퐹푑!) On account of the isomorphisms of Corollary 13.3.2(ii) and (iii), this follows from the corresponding encoding of the universal property of 휆̄ in ℒ. This argument also shows that the universal property of absolute lifting diagrams is reflected. To see that absolute lifting diagrams are also preserved, Corollary 13.3.2(i) must be invoked to lift any cone in ℒ with summit 푌 over the 2-cell 퐹휆 to an equivalent one in 풦 with summit 푋 chosen so that 퐹푋 ≃ 푌. As the local bijections Corollary 13.3.2(ii) and (iii) can also be defined relative to specified equivalences of objects, the same style of argument goes through.  In the next chapter, we approach this model-independence question more systematically by prov- ing that a cosmological biequivalence induces a biequivalence of virtual equipments.

345

CHAPTER 14

Proof of model independence

Recall from Chapter 11, that the virtual double category of modules ℳ표푑(픥풦) in an ∞-cosmos 풦 consists of • a category of objects and vertical arrows, here the ∞-categories and ∞-functors 퐸 • for any pair of objects 퐴, 퐵, a class of horizontal arrows 퐴⇸퐵, here the modules (푞, 푝)∶ 퐸 ↠ 퐴 × 퐵 from 퐴 to 퐵 • cells, with boundary depicted as follows

퐸1 퐸2 퐸푛 퐴0 퐴1 ⋯ 퐴푛 푓 ⇓ 푔

퐵0 퐵푛 퐹

including those whose horizontal source has length zero, in the case 퐴0 = 퐴푛. Here, a cell with the displayed boundary is an isomorphism class of objects in the functor space

Fun푓,푔(퐸1 × ⋯ × 퐸푛, 퐹) Fun(퐸1 × ⋯ × 퐸푛, 퐹) 퐴 퐴 퐴 퐴 1 푛−1 ⌟ 1 푛−1

ퟙ Fun(퐸1 × ⋯ × 퐸푛, 퐵0 × 퐵푛) 퐴1 퐴푛−1 i.e., a fibered isomorphism class of maps of spans over 푓 × 푔 • a composite cell, for any configuration 퐸 ,…,퐸 퐸 ,…,퐸 11 1푘1 21 2푘2 퐸푛1,…,퐸푛푘푛 퐴0 퐴1 ⋯ 퐴푛

푓0 ⇓ 푓1 ⇓ ⋯ ⇓ 푓푛 퐹1 퐹2 퐹푛 퐵0 퐵1 ⋯ 퐵푛 푔 ⇓ ℎ

퐶0 퐶푛 퐺 • an identity cell for every horizontal arrow 퐸 퐴 퐵

⇓id퐸 퐴 퐵 퐸

347 so that composition of cells is strictly associative and unital in the usual multi-categorical sense. The virtual double category of modules is a virtual equipment in the sense introduced by Cruttwell and Shulman [15, §7], which means that it satisfies the two further properties: (i) For any module and pair of functors as displayed on the left, there exists a module and cartesian cell as displayed on the right 퐸(푏,푎) 퐴′ 퐵′ 퐴′ 퐵′ 푎 푏 ⇝ 푎 ⇓휌 푏 퐴 퐵 퐴 퐵 퐸 퐸 characterized by the universal property that any cell as displayed below-left factors uniquely through 휌 as below-right:

퐸1 퐸2 퐸푛 푋0 푋1 ⋯ 푋푛 퐸1 퐸2 퐸푛 푋0 푋1 ⋯ 푋푛 푓 ∃!⇓ 푔 퐸(푏,푎) 푎푓 ⇓ 푏푔 = 퐴′ 퐵′ 퐴 퐵 푎 ⇓휌 푏 퐸 퐴 퐵 퐸 (ii) Every object 퐴 admits a unit module equipped with a nullary cocartesian cell 퐴 퐴 ⇓휄 퐴 퐴 Hom퐴 satisfying the universal property that any cell in the virtual double category of modules whose horizontal source includes the object 퐴, as displayed on the left

퐸1 퐸푛 퐹1 퐹푚 푋 ⋯ 퐴 퐴 ⋯ 푌 퐸1 퐸푛 퐹1 퐹푚 ⇓id ⇓id ⇓휄 ⇓id ⇓id 푋 ⋯ 퐴 ⋯ 푌 퐸1 ⋯ 퐸푛 퐹1 ⋯ 퐹푚 퐸1 퐸푛 Hom퐴 퐹1 퐹푚 푓 푔 = ⇓ 푋 ⋯ 퐴 퐴 ⋯ 푌 푓 푔 퐵 퐶 ⇓∃! 퐺 퐵 퐶 퐺 factors uniquely through 휄 as displayed on the right. 퐸 The module in (i) is defined by pulling back a module 퐴⇸퐵 along functors 푎∶ 퐴′ → 퐴 and 푏∶ 퐵′ → 퐵. The simplicial pullback defining 퐸(푏, 푎) induces an equivalence of functor spaces

Fun푎푓,푏푔(퐸1 × ⋯ × 퐸푛, 퐸) ≃ Fun푓,푔(퐸1 × ⋯ × 퐸푛, 퐸(푏, 푎)), which gives rise to the universal property. See Proposition 11.2.1.

348 Hom퐴 The unit module is the arrow ∞-category, given the notation 퐴 ⇸ 퐴 when considered as a module from 퐴 to 퐴. The universal property of (ii) follows from the Yoneda lemma; see Proposition 11.2.4. The virtual equipment of modules in 풦 has a lot of pleasant properties, which follow formally from the axiomatization of a virtual equipment. For instance, certain sequences of composable modules can be said to have composites, witnessed by cocartesian cells as in (ii) (see 11.3.5, 11.3.11, 11.4.7, and 11.4.8 and Hom퐵(퐵,푓) the non-formal composite given in 11.3.7). Also, for any functor 푓∶ 퐴 → 퐵, the modules 퐴 ⇸ 퐵 Hom퐵(푓,퐵) and 퐵 ⇸ 퐴 behave like adjoints is a sense suitable to a virtual double category; more precisely, the Hom퐵(퐵,푓) Hom퐵(푓,퐵) module 퐴 ⇸ 퐵 defines a companion and the module 퐵 ⇸ 퐴 defines a conjoint to 푓∶ 퐴 → 퐵 (see 11.4.1, 11.4.4, and 11.4.6). Another consequence of Theorem 11.2.6 is the following: for any parallel pair of functors there are natural bijections between 2-cells in the homotopy 2-category 푓 퐴 ⇓ 퐵 푔 and cells in the virtual equipment of modules:

Hom퐵(퐵,푓) Hom퐴 Hom퐵(푔,퐵) 퐴 퐵 퐴 퐴 퐵 퐴 ⇓ ↭ 푔 ⇓ 푓 ↭ ⇓ 퐴 퐵 퐵 퐵 퐵 퐴 Hom퐵(퐵,푔) Hom퐵 Hom퐵(푓,퐵) See Proposition 11.4.10. As remarked upon in Definition 11.4.11, as a consequence of these results, there are two locally- fully-faithful homomorphisms 픥풦 ↪ ℳ표푑(픥풦) and 픥풦coop ↪ ℳ표푑(픥풦) — referred to as the covariant and contravariant embeddings, respectively — embedding the homotopy 2-category into the substructure¹ of ℳ표푑(픥풦) comprised only of unary cells whose vertical boundaries are identities. The modules in the image of the covariant embedding are the right representables and the modules in the image of the contravariant embedding are the left representables. The theme of Chapter 12 could be summarized by saying that the virtual equipment of modules in an ∞-cosmos is a robust setting to develop the category theory of ∞-categories. On the one hand, it contains the homotopy 2-category of the ∞-cosmos, which was the setting for the results of Part I. It is also a very natural home to study ∞-categorical properties that are somewhat awkward to express in the homotopy 2-category. For instance, the weak 2-universal property of comma ∞-categories is now encoded by a bijection in Lemma 11.1.16: cells in the virtual equipment whose codomain is a comma module correspond bijectively to natural transformations of a particular form in the homotopy 2-category. Fibered equivalences of modules, as used to express the universal properties of adjunctions, limits, and colimits in Chapter 4, are now vertical isomorphisms in the virtual equipment between parallel modules. The virtual equipment also cleanly encodes the universal property of pointwise left and right Kan extensions. In this chapter, we show that a cosmological biequivalence 퐹∶ 풦 ⥲ ℒ induces a biequivalence of virtual equipments 퐹∶ ℳ표푑(픥풦) ⥲ ℳ표푑(픥ℒ) in a suitable sense that we introduce to describe what

¹This substructure is very nearly a bicategory, with horizontal composites of unary cells constructed as in Definition 11.3.12, except that compatible sequences of modules do not always admit a horizontal composite. 349 is true in our setting. We then explain the interpretation of this result: that the category theory of ∞-categories is preserved, reflected, and created by any “change-of-model” functor of this form. 14.1. A biequivalence of virtual equipments We first elaborate on Proposition 13.3.1(ix). 14.1.1. Proposition. A cosmological biequivalence 퐹∶ 풦 ⥲ ℒ preserves, reflects, and creates modules: (i) An isofibration 퐸 ↠ 퐴 × 퐵 is a module in 풦 if and only if 퐹퐸 ↠ 퐹퐴 × 퐹퐵 is a module in ℒ. (ii) For every module 퐺 ↠ 퐴′ × 퐵′ in ℒ and every pair of ∞-categories 퐴, 퐵 in 풦 with specified equivalences 퐹퐴 ≃ 퐴′ and 퐹퐵 ≃ 퐵′ there is a module 퐸 ↠ 퐴 × 퐵 in 풦 so that 퐹퐸 is equivalent to 퐺 over the pair of equivalences.

Proof. For (i) consider an isofibration 퐸 ↠ 퐴 × 퐵 in 풦/퐴×퐵 and the induced biequivalence 퐹∶ 풦/퐴×퐵 ⥲ ℒ/퐹퐴×퐹퐵 of Proposition 13.2.4. By Proposition 13.3.5(iii), 퐸 defines a discrete object in 풦/퐴×퐵 if and only if 퐹퐸 defines a discrete object in ℒ/퐹퐴×퐹퐵. By Theorem 13.4.1(i), 퐸 → Hom퐵(퐵, 푝) admits a right adjoint and 퐸 → Hom퐴(푞, 퐴) admits a left adjoint in 풦/퐴×퐵 if and only if 퐹퐸 → 퐹Hom퐵(퐵, 푝) ≅ Hom퐹퐵(퐹퐵, 퐹푝) admits a right adjoint and 퐹퐸 → 퐹Hom퐴(푞, 퐴) ≅ Hom퐹퐴(퐹푞, 퐹퐴) admits a left adjoint in ℒ/퐹퐴×퐹퐵. By Lemma 10.4.2 these properties characterize modules. For (ii), fix a pair of equivalences 퐹퐴 ≃ 퐴′ and 퐹퐵 ≃ 퐵′, defining an equivalence 푒∶ 퐴′ × 퐵′ ⥲ 퐹퐴 × 퐹퐵, and consider the composite biequivalence

∗ ∼ 퐹 ∼ 푒 풦/퐴×퐵 ℒ/퐹퐴×퐹퐵 ℒ/퐴′×퐵′ given by Propositions 13.2.4 and 13.2.7. Consider a module 퐺 ↠ 퐴′ × 퐵′. By essential surjectivity, there is an isofibration 퐸 ↠ 퐴 × 퐵 whose image under this cosmological functor—the pullback of 퐹퐸 ↠ 퐹퐴 × 퐹퐵 along 푒∶ 퐴′ × 퐵′ ⥲ 퐹퐴 × 퐹퐵—defines an isofibration (푞, 푝)∶ 퐸′ ↠ 퐴′ × 퐵′ that is equivalent to 퐺 in ℒ/퐴′×퐵′. It remains only to argue that 퐸 defines a module from 퐴 to 퐵, which will follow, essentially as in the proof of (i), from the fact that 퐸′ ≃ 퐺 defines a module from 퐴′ to 퐵′. As the image 퐸′ of 퐸 is equivalent to a discrete object, Proposition 13.3.5(iii) tells us 퐸 is discrete in 풦/퐴×퐵. The final step is to argue that the desired right adjoint to 퐸 → Hom퐵(퐵, 푝) is present in the image of the biequivalence 풦/퐴×퐵 ⥲ ℒ/퐴′×퐵′, and apply Theorem 13.4.1(i) to deduce its presence in 풦/퐴×퐵; a similar argument of course applies to the functor 퐸 → Hom퐴(푞, 퐴). To see this note that 퐹∶ 풦/퐴×퐵 ⥲ ℒ/퐹퐴×퐹퐵 carries Hom퐵(퐵, 푝) ↠ 퐴 × 퐵 to Hom퐹퐵(퐹퐵, 퐹푝) ↠ 퐹퐴 × 퐹퐵. By (i), it suffices to argue that this functor has a right adjoint over 퐹퐴 × 퐹퐵. Applying Theorem 13.4.1(i) to the ∗ ′ ′ ′ biequivalence 푒 ∶ ℒ/퐹퐴×퐹퐵 ⥲ ℒ/퐴′×퐵′, this follows from the the fact that 퐸 → Hom퐵′(퐵 , 푝 ) has a right adjoint over 퐴′ × 퐵′.  퐸 14.1.2. Proposition. Let 퐹∶ 풦 ⥲ ℒ be a cosmological biequivalence. Then a module 퐴⇸퐵 in 풦 is right 퐹퐸 representable if and only if the module 퐹퐴⇸퐹퐵 is right representable in ℒ, in which case, 퐹 carries the representing functor 푓∶ 퐴 → 퐵 in 풦 to a representing functor 퐹푓∶ 퐹퐴 → 퐹퐵 in ℒ.

퐸 Proof. To say that 퐴⇸퐵 is right representable in 풦 is to say that there exists a functor 푓∶ 퐴 → 퐵 together with an equivalence 퐸 ≃퐴×퐵 Hom퐵(퐵, 푓) of modules over 퐵. If this is the case then any cosmological functor 퐹∶ 풦 → ℒ carries this to a fibered equivalence 퐹퐸 ≃퐹퐴×퐹퐵 Hom퐹퐵(퐹퐵, 퐹푓), 퐹퐸 and hence the module 퐹퐴⇸퐹퐵 is right-represented by 퐹푓∶ 퐹퐴 → 퐹퐵 in ℒ.

350 퐹퐸 Conversely, if 퐹퐴⇸퐹퐵 is right-represented by some functor 푔∶ 퐹퐴 → 퐹퐵, then by Corollary 13.3.2(ii), there exists a functor 푓∶ 퐴 → 퐵 in 풦 so that 퐹푓 ≅ 푔 in ℒ. By Proposition 11.4.10, naturally isomorphic functors represent equivalent modules; that is, Hom퐹퐵(퐹퐵, 푔) ≃퐹퐴×퐹퐵 Hom퐹퐵(퐹퐵, 퐹푓). Thus 퐹퐸 ≃퐹퐴×퐹퐵 Hom퐹퐵(퐹퐵, 퐹푓). By Corollary 13.3.2(i), this fibered equivalence lifts along the cosmological functor 퐹∶ 풦/퐴×퐵 → ℒ/퐹퐴×퐹퐵 to a fibered equivalence 퐸 ≃퐴×퐵 Hom퐵(퐵, 푓), which proves that 퐸 is right represented by 푓∶ 퐴 → 퐵 in 풦.  Because cosmological functors preserve modules, simplicial pullbacks, and the arrow construction, we see that a functor 퐹∶ 풦 → ℒ induces a functor of virtual equipments 퐹∶ ℳ표푑(픥풦) → ℳ표푑(픥ℒ) preserving all of the structures described in Theorem 11.2.6. 14.1.3. Theorem (model independence of ∞-category theory). If 퐹∶ 풦 → ℒ is a cosmological biequiv- alence, then the induced functor of virtual equipments 퐹∶ ℳ표푑(픥풦) → ℳ표푑(픥ℒ) defines a biequivalence of virtual equipments: i.e., it is (i) bijective on equivalence classes of objects; (ii) locally bijective on isomorphism classes of parallel vertical functors extending the bijection of (i); (iii) locally bijective on equivalence classes of parallel modules extending the bijection of (ii); (iv) locally bijective on cells extending the bijections of (i), (ii), and (iii). Consequently, any ∞-categorical notion that can be encoded as an equivalence-invariant proposition in the vir- tual equipment of modules is model invariant: preserved, reflected, and created by cosmological biequivalences. Note further that if two ∞-cosmoi are connected by a finite zig-zag of biequivalences, then the bijections described in Theorem 14.1.3 compose. Proof. Properties (i) and (ii) are restatements of Corollary 13.3.2(i) and (ii). The local bijection (iii) follows immediately from Proposition 14.1.1 and the fact that for any pair of equivalences 푒∶ 퐴′ × 퐵′ ⥲ 퐹퐴 × 퐹퐵, the composite biequivalence

∗ ∼ 퐹 ∼ 푒 풦/퐴×퐵 ℒ/퐹퐴×퐹퐵 ℒ/퐴′×퐵′ preserves, reflects, and creates equivalences between objects (Corollary 13.3.2(i)). Finally (iv) is an application of Corollary 13.3.2(ii) to this cosmological biequivalence.  For instance, the presence of an adjunctions between ∞-categories and the existence of limits and colimits inside an ∞-category can both be encoded as an equivalence-invariant proposition in the virtual equipment of modules. Using Theorem 14.1.3, we can reprove Theorem 13.4.1. Module-theoretic proof of Theorem 13.4.1. By Proposition 4.1.1, 푢∶ 퐴 → 퐵 admits a left Hom퐵(퐵,푢) adjoint if and only if the module 퐴 ⇸ 퐵 is contravariantly represented. Any representing functor in ℒ lifts up to isomorphism to define a functor 푓∶ 퐵 → 퐴 in 풦 and now by Theorem 14.1.3(iii) there is an equivalence Hom퐴(푓, 퐴) ≃ Hom퐵(퐵, 푢) of modules from 퐴 to 퐵 in 풦 if and only if there is an equivalence Hom퐹퐴(퐹푓, 퐹퐴) ≃ Hom퐹퐵(퐹퐵, 푓푢) of modules from 퐹퐴 to 퐹퐵 in ℒ. Hom (Δ,푑) 퐴퐽 Similarly, a diagram 푑∶ 1 → 퐴퐽 admits a limit if and only if the module 1 ⇸ 퐴 is covariantly represented, and Proposition 14.1.2 or the argument just given completes the proof in this case as well. 

351 A biequivalence of virtual equipments preserves, reflects, and creates composites of modules. 14.1.4. Lemma. Let 퐹∶ 풦 ⥲ ℒ be a cosmological biequivalence. (i) Then a composable sequence of modules in 풦 admits a composite in ℳ표푑(픥풦) if and only if the image of this sequence admits a composite in ℳ표푑(픥ℒ). (ii) Hence, cosmological biequivalences preserve and reflect exact squares. Proof. Via Definition 12.1.1, (ii) follows immediately from (i), so it remains only to show that

a biequivalence of virtual equipments 퐹∶ ℳ표푑(픥풦) ⥲ ℳ표푑(픥ℒ) preserves, reflects, and creates ⨰ ⨰ composites of modules. To see that an 푛-ary composite cell 휇∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸 in 픥풦 is preserved, note that by Theorem 14.1.3(iv), any cell in ℳ표푑(픥ℒ) is isomorphic to a cell in the image of 퐹: first replace the objects by equivalent ones in the image, then replace the vertical functors by naturally isomorphic ones in the image, then replace the modules by equivalent ones in the image over the specified equivalences between their ∞-categorical sources and targets, and then finally apply the local bijection (iv) to replace the cell in ℳ표푑(픥ℒ) by a unique cell in the image of ℳ표푑(픥풦) by composing

with this data. Now, by local full and faithfulness and essential surjectivity, the universal property ⨰ ⨰ ⨰ ⨰ of the cocartesian cell 휇∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸 implies that its image 퐹휇∶ 퐹퐸1 ⋯ 퐹퐸푛 ⇒ 퐹퐸 is again a cocartesian cell. Thus composites 퐸1 ⊗ ⋯ ⊗ 퐸푛 ≃ 퐸 are preserved by cosmological

biequivalences. ⨰

Now if 퐹휇∶ 퐹퐸 ⨰ ⋯ 퐹퐸 ⇒ 퐹퐸 is a composite, the fact that 퐹∶ ℳ표푑(픥풦) → ℳ표푑(픥ℒ) is ⨰ 1 푛 ⨰ locally fully faithful implies immediately that 휇∶ 퐸1 ⋯ 퐸푛 ⇒ 퐸 is a composite; thus composites

퐹퐸 ⊗ ⋯ ⊗ 퐹퐸 ≃ 퐹퐸 are reflected by cosmological biequivalences. ⨰ 1 푛 ⨰ Finally, suppose the sequence 퐹퐸1 ⋯ 퐹퐸푛 of modules in ℳ표푑(픥ℒ) admits a composite 퐺 퐹퐴0 ⇸퐹퐴푛; since the composable sequence of modules is in the image of 퐹 the source and target

∞-categories of the composite module 퐺 are as well. By Theorem 14.1.3(iii) there exists a module

⨰ 퐸 ⨰

퐴 ⇸퐴 in 픥풦 so that 퐹퐸 ≃ 퐺 as modules from 퐹퐴 to 퐹퐴 . The cocartesian cell 퐹퐸 ⋯ ⨰ 0 푛 0 푛 1 ⨰

퐹퐸 ⇒ 퐺 composes with the unary cell of this equivalence to define a cocartesian cell 퐹퐸 ⋯ ⨰ 푛 ⨰ 1 퐹퐸푛 ⇒ 퐹퐸. By Theorem 14.1.3(iv), this lifts to an 푛-ary cell 퐸1 ⋯ 퐸푛 ⇒ 퐸 in ℳ표푑(픥풦). As we’ve just seen that cocartesianness of cells is reflected by biequivalences 퐹∶ ℳ표푑(픥풦) → ℳ표푑(픥ℒ), this completes the proof that composites are created by cosmological biequivalences.  Exercises. 14.1.i. Exercise. Prove that cosmological biequivalences between cartesian closed ∞-cosmoi preserve and reflect initial and final functors.

352 Appendix of Abstract Nonsense

APPENDIX A

Basic concepts of enriched category theory

Enriched category theory exists because enriched categories exist in nature. To explain, consider the data of a (small) 1-category 풞, given by: • a set of objects • for each pair of objects 푥, 푦 ∈ 풞, a set 풞(푥, 푦) of arrows in 풞 from 푥 to 푦 • for each 푥 ∈ 풞, a specified identity element id푥 ∶ 1 → 풞(푥, 푥), and for each 푥, 푦, 푧 ∈ 풞, a specified composition map ∘∶ 풞(푦, 푧) × 풞(푥, 푦) → 풞(푥, 푧) satisfying the associativity and unit conditions: id × id 풞(푦, 푧) × 풞(푥, 푦) × 풞(푤, 푥) ∘×id 풞(푥, 푧) × 풞(푤, 푥) 풞(푥, 푦) 푥 풞(푥, 푦) × 풞(푥, 푥)

id ×∘ ∘ id푦 × id ∘

풞(푦, 푧) × 풞(푤, 푦) ∘ 풞(푤, 푧) 풞(푦, 푦) × 풞(푥, 푦) ∘ 풞(푥, 푦) (A.0.1) In many mathematical examples of interest, the set 풞(푥, 푦) can be given additional structure, in which case it would be strange not to take it account when performing further categorical constructions. Perhaps there exists a specified zero arrow 0푥,푦 ∈ 풞(푥, 푦), the set of which defines a two-sided ideal for composition: 푔 ∘ 0 ∘ 푓 = 0. Or extending this, perhaps 풞(푥, 푦) admits an abelian group structure, for which composition is ℤ-bilinear. Or in another direction, perhaps the set of arrows from 푥 to 푦 in 풞 form the objects of a 1-category. In this setting, we regard the objects of 풞(푥, 푦) as “1-dimensional” morphisms from 푥 to 푦 and the arrows of 풞(푥, 푦) as “2-dimensional” morphisms from 푥 to 푦 in 풞; now, it’s natural natural to require the composition map to define a functor. Or perhaps the set of arrows from 푥 to 푦 in 풞 form the vertices of a simplicial set, whose higher simplices now provides arrows in each positive dimension; in this setting, it is natural to ask composition to define a simplicial map. In such settings, one says that the 1-category 풞 can be enriched over the category 풱 in which the objects 풞(푥, 푦) and diagrams (A.0.1) live¹ — with 풱 equal to the category of pointed sets, abelian groups, categories, or simplicial sets in the examples just described. An alternate point of view of enriched category theory is often emphasized — adopted for instance in the classic textbook [31] from which we stole the title of this chapter. To borrow a distinction used by Peter May, the term “enriched” can be used as a compound noun — enriched categories — or as an adjective — enriched categories. In the noun form, an enriched category 풞 has no pre-existing underlying ordinary category, although we shall see below that the underlying unenriched 1-category can always be identified a posteriori. When used as an adjective, an enriched category 풞 is perhaps

¹To interpret the diagrams (A.0.1) in 풱 one needs to specify an interpretation for the monoidal product “×” and its unit object 1 (which is not displayed in the diagram). In the examples we will consider, this product is the cartesian product and this unit is the terminal object.

355 most naturally an ordinary category, whose hom-sets can be given additional structure.² While the noun perspective is arguably more elegant when discussing the general theory of enriched categories, the adjective perspective dominates when discussing examples, so we choose to emphasize the adjective form and focus on enriching unenriched categories here. Before giving a precise definition of enriched category and the enriched functors between them in §A.2, in §A.1 we study that category 풱 that defines the base for enrichment in which the hom-objects will ultimately live. Here we are interested primarily in two examples 풱 = 풞푎푡 and 풱 = 풮풮푒푡, as well as the unenriched case 풱 = 풮푒푡, each of which has the special property of being cartesian closed categories. Since there are some simplifications in enriching over a cartesian closed category, we grant ourselves the luxury of working explicitly with this notion; see [31] or [47, Chapter 3] for an introduction to categories enriched over a more general symmetric monoidal category. We continue in §A.3 with an introduction to enriched natural transformations and the enriched Yoneda lemma. These notions allow us to correctly state the universal properties that characterize tensors and cotensors in §A.4 and conical limits and colimits in §A.5, both of which are characterized by universal properties involving an enriched natural isomorphism. We conclude in §A.6 with a general theory of change of base — the one part of the theory of enriched categories that is not covered in encyclopedic detail in [31], the original reference instead being [20] — which allows us to be more precise about the procedure by which a 2-category may be regarded as a simplicial category (as used to great effect in Chapters 8 and 9) or by which a simplicial category may be quotiented to define a 2-category (see e.g., Definition 1.4.1) as alluded to in Digression 1.4.2. A.1. Cartesian closed categories Throughout this text, the base category for enrichment will always be taken to be a cartesian closed category: A.1.1. Definition. A category 풱 is cartesian closed when it • admits finite products, or equivalently, a terminal object 1 ∈ 풱 and binary products and • for each 퐴 ∈ 풱, the functor 퐴 × −∶ 풱 → 풱 admits a right adjoint (−)퐴 ∶ 풱 → 풱. A.1.2. Lemma. In a cartesian closed category 풱, the product bifunctor is the left adjoint of a two-variable adjunction, this being captured by a commutative triangle of natural isomorphisms 풱(퐴 × 퐵, 퐶) ≅ ≅ (A.1.3) 풱(퐴, 퐶퐵) ≅ 풱(퐵, 퐶퐴)

Proof. The family of functors (−)퐴 ∶ 풱 → 풱 extend to bifunctors (−)− ∶ 풱op × 풱 → 풱 in a unique way so that the isomorphism defining each adjunction 퐴 × − ⊣ (−)퐴 풱(퐴 × 퐵, 퐶) ≅ 풱(퐵, 퐶퐴) becomes natural in 퐴 (as well as 퐵 and 퐶). The details are left as Exercise A.1.i or to [48, 4.3.6]. This defines the natural isomorphism on the right-hand side of (A.1.3). The natural isomorphism on the

²To quote [41] “Thinking from the two points of view simultaneously, it is essential that the constructed ordinary cat- egory be isomorphic to the ordinary category that one started out with. Either way, there is a conflict of notation between that preferred by category theorists and that in common use by ‘working mathematicians’ (to whom [39] is addressed). 356 left-hand is defined by composing with the symmetry isomorphism 퐴 × 퐵 ≅ 퐵 × 퐴. The third natural isomorphism is taken to be the composite of these two.  A.1.4. Example (cartesian closed categories). (i) The category of sets is cartesian closed, with 퐵퐴 defined to be the set of functions from 퐴 to 퐵. Transposition across the natural isomorphism (A.1.3) is referred to as “currying.” (ii) The category 풞푎푡 of small categories is cartesian closed, with 퐵퐴 defined to be the category of functors and natural transformations from 퐴 to 퐵.³ The natural isomorphism 풞푎푡(퐴, 퐶퐵) ≅ 풞푎푡(퐴 × 퐵, 퐶) ≅ 풞푎푡(퐵, 퐶퐴) identifies natural transformations, which are arrows ퟚ → 퐶퐴 in the category of functors, with “homotopies” 퐴 × ퟚ → 퐶. op (iii) For any small category 풞, the category 풮푒푡풞 is cartesian closed. By the Yoneda lemma for op 퐹, 퐺 ∈ 풮푒푡풞 , the value of 퐺퐹 at 푐 ∈ 풞 must be defined by op op 퐺퐹(푐) ≅ 풮푒푡풞 (풞(−, 푐), 퐺퐹) ≅ 풮푒푡풞 (퐹 × 풞(−, 푐), 퐺). By the proof of Lemma A.1.2, the action of 퐺퐹 on a morphism 푓∶ 푐 → 푐′ ∈ 풞 is defined ′ by precomposition with the corresponding natural transformation 푓∗ ∶ 풞(−, 푐) → 풞(−, 푐 ). op This defines the functor 퐺퐹. Since any functor 퐻 ∈ 풮푒푡풞 is canonically a colimit of rep- op resentables, this definition extends to the required natural isomorphism 풮푒푡풞 (퐻, 퐺퐹) ≅ op 풮푒푡풞 (퐹 × 퐻, 퐺). op (iv) In particular taking 풞 = 횫op, the category of simplicial sets 풮풮푒푡 ≔ 풮푒푡횫 is cartesian closed. The exponential 퐵퐴 is frequently referred to as an internal hom. As this name suggests, the internal hom 퐵퐴 ca be viewed as a lifting of the hom-set 풱(퐴, 퐵) along a functor that we now introduce. A.1.5. Definition. For any cartesian closed category 풱 the underlying set functor is the functor (−) ≔풱(1,−) 풱 0 풮푒푡 represented by the terminal object 1 ∈ 풱. A.1.6. Lemma. For any pair of objects 퐴, 퐵 ∈ 풱 in a cartesian closed category, the underlying set of the internal hom 퐵퐴 is 풱(퐴, 퐵), i.e.: 퐴 (퐵 )0 ≅ 풱(퐴, 퐵). Proof. Combining Definition A.1.5 with (A.1.3): 퐴 퐴 (퐵 )0 ≔ 풱(1, 퐵 ) ≅ 풱(1 × 퐴, 퐵) ≅ 풱(퐴, 퐵) since there is a natural isomorphism 1 × 퐴 ≅ 퐴.  It makes sense to ask whether an isomorphism of underlying sets can be “enriched” to lie in 풱, that is, lifted along the underlying set functor (−)0 ∶ 풱 → 풮푒푡. ³Size matters here: the category of large but locally small categories is not cartesian closed, though it is still possible to define 퐵퐴 in the case where 퐴 is a small category.

357 A.1.7. Lemma. The natural isomorphisms (A.1.3) characterizing the defining two-variable adjunction of a cartesian closed category lift to 풱: for any 퐴, 퐵, 퐶 ∈ 풱 퐶퐴×퐵 ≅ ≅ (A.1.8) (퐶퐵)퐴 ≅ (퐶퐴)퐵 Proof. This follows from the associativity of finite products and the Yoneda lemma. To prove (A.1.8), it suffices to show that 퐶퐴×퐵, (퐶퐵)퐴, and (퐶퐴)퐵 represent the same functor. We have a se- quence of natural isomorphisms: 풱(푋, (퐶퐵)퐴) ≅ 풱(푋 × 퐴, 퐶퐵) ≅ 풱((푋 × 퐴) × 퐵, 퐶) ≅ 풱(푋 × (퐴 × 퐵), 퐶) ≅ 풱(푋, 퐶퐴×퐵) ≅ 풱((퐴 × 퐵) × 푋, 퐶) ≅ 풱(퐴 × (퐵 × 푋), 퐶) ≅ 풱(퐵 × 푋, 퐶퐴) ≅ 풱(푋, (퐶퐴)퐵), and hence 풱(푋, (퐶퐵)퐴) ≅ 풱(푋, 퐶퐴×퐵) ≅ 풱(푋, (퐶퐴)퐵).  A.1.9. Remark. Note (−)1 ∶ 풱 → 풱 is naturally isomorphic to the identity functor — i.e., 퐵1 ≅ 퐵, — since it is right adjoint to a functor − × 1∶ 풱 → 풱 that is naturally isomorphic to the identity. A bicomplete cartesian closed category is a special case of a complete and cocomplete closed sym- metric monoidal category, this being deemed a cosmos by Bénabou, to signify that such bases are an ideal setting for enriched category theory. For obvious reasons, we won’t use this term here. There is a competing 2-categorical notion of (fibrational) “cosmos” due to Street [57] that is more similar to the notion we consider here, which was the direct inspiration for the terminology we introduce in Definition 1.2.1. Exercises. A.1.i. Exercise. Prove that in a cartesian closed category 풱, the family of functors (−)퐴 ∶ 풱 → 풱 extend to bifunctors (−)− ∶ 풱op × 풱 → 풱 in a unique way so that the isomorphism defining each adjunction 퐴 × − ⊣ (−)퐴 풱(퐴 × 퐵, 퐶) ≅ 풱(퐵, 퐶퐴) becomes natural in 퐴 (as well as 퐵 and 퐶). A.1.ii. Exercise. The data of a closed symmetric monoidal category generalizes Definition A.1.1 by replacing finite products by an arbitrary bifunctor −⊗−∶ 풱×풱 → 풱, replacing the terminal object by an object 퐼 ∈ 풱, and requiring the additional specification of natural isomorphisms 퐴 ⊗ (퐵 ⊗ 퐶) ≅ (퐴 ⊗ 퐵) ⊗ 퐶 퐼 ⊗ 퐴 ≅ 퐴 ≅ 퐴 ⊗ 퐼 퐴 ⊗ 퐵 ≅ 퐵 ⊗ 퐴 satisfying various coherence axioms [20, 27]; see also [28]. Explain why these isomorphisms do not need to specified in the special case of a cartesian closed category and why the coherence conditions are automatic. 358 A.2. Enriched categories We now briefly switch perspectives and explain the meaning of the noun phrase “enriched cate- gory” because discussion what is required to “enriched” an ordinary 1-category. Throughout we fix a cartesian closed category (풱, ×, 1) to serve as the base for enrichment. A.2.1. Definition. A 풱-enriched category 풞 is given by: • a set of objects • for each pair of objects 푥, 푦 ∈ 풞, an object of arrows 풞(푥, 푦) ∈ 풱 • for each 푥 ∈ 풞, a specified identity element encoded by a map id푥 ∶ 1 → 풞(푥, 푥) ∈ 풱, and for each 푥, 푦, 푧 ∈ 풞, a specified composition map ∘∶ 풞(푦, 푧) × 풞(푥, 푦) → 풞(푥, 푧) ∈ 풱 satisfying the associativity and unit conditions, both commutative diagrams lying in 풱:⁴ id × id 풞(푦, 푧) × 풞(푥, 푦) × 풞(푤, 푥) ∘×id 풞(푥, 푧) × 풞(푤, 푥) 풞(푥, 푦) 푥 풞(푥, 푦) × 풞(푥, 푥)

id ×∘ ∘ id푦 × id ∘

풞(푦, 푧) × 풞(푤, 푦) ∘ 풞(푤, 푧) 풞(푦, 푦) × 풞(푥, 푦) ∘ 풞(푥, 푦) Evidently from the diagrams of (A.0.1), a locally-small 1-category defines a category enriched in 풮푒푡. The underlying set functor of Definition A.1.5 can be used to define the “underlying category” of an enriched category. A.2.2. Definition. If 풞 is a 풱-category, its underlying category is the 1-category with the same set of objects and with hom-sets 풞(푥, 푦)0 defined by applying the underlying set functor (−)0 ∶ 풱 → 풮푒푡 to the hom-objects 풞(푥, 푦) ∈ 풱. Note the identity arrow id푥 ∶ 1 → 풞(푥, 푥) of the 풱-category is by definition an element of the hom-set 풞(푥, 푥)0 ≔ 풱(1, 풞(푥, 푥)). The composite of two arrows 푓∶ 1 → 풞(푥, 푦) and 푔∶ 1 → 풞(푦, 푧) in the underlying category is defined to be the arrow constructed as the composite 푔×푓 1 풞(푦, 푧) × 풞(푥, 푦) ∘ 풞(푥, 푧)

In analogy with the discussion around Definition A.1.5, when one speaks of “enriching” an a priori unenriched category 풞 over 풱, the task is to define a 풱-enriched category as in Definition A.2.1 whose underlying category recovers 풞. When 풱 = 풞푎푡, the task is to define a 2-category whose underlying 1-category is the one given. When 풱 = 풮풮푒푡, the task is define simplicial hom-sets of 푛-arrows so that the 0-arrows are the ones given. When a simplicially enriched category 풞 is encoded as a simplicial object 풞• in 풞푎푡 as explained in Digression 1.2.2, its underlying category is the category 풞0, further justifying the notion introduced in Definition A.2.2. For example, a cartesian closed category 풱 as in Definition A.1.1 can be enriched to define a 풱-category. A.2.3. Lemma. A cartesian closed category 풱 defines a 풱-category whose: • objects are the objects of 풱, • hom-object in 풱 from 퐴 to 퐵 is given by the internal hom 퐵퐴, and

⁴These diagrams suppose the associativity and unit natural isomorphisms involving the product bifunctors × and its unit object 1. In a cartesian closed category these are canonical — rather than given by extra data, as is the case in the more general closed symmetric monoidal category; see Exercise A.1.ii.

359 퐴 퐵 퐴 퐴 • the identity map id퐴 ∶ 1 → 퐴 and composition map ∘∶ 퐶 ×퐵 → 퐶 are defined to be the transposes of ≅ id ×휖 휖 1 × 퐴 −→퐴 and 퐶퐵 × 퐵퐴 × 퐴 −−−−→퐶퐵 × 퐵 −→퐶 the latter defined using the counit of the cartesian closure adjunction. Proof. The task is to verify the commutative diagrams of (A.2.1) in 풱 and then observe that Lemma A.1.6 reveals that the underlying category of the 풱-category defined by the statement is the 1-category 풱. We leave the identity conditions to the reader and verify associativity. The definition of the composition map as an adjoint transpose implies that its adjoint transpose, the top-right composite below, is given by the left-bottom composite: 퐶퐵 × 퐵퐴 × 퐴 ∘×id 퐶퐴 × 퐴

id ×휖 휖 퐵 퐶 × 퐵 휖 퐶 The associativity diagram below-left commutes if and only if the transposed diagram appearing as the outer boundary composite below-right commutes: 퐷퐶 × 퐶퐵 × 퐵퐴 × 퐴 ∘×id × id 퐷퐵 × 퐵퐴 × 퐴 퐷퐶 × 퐶퐵 × 퐵퐴 ∘×id 퐷퐵 × 퐵퐴 id × id ×휖 id ×휖 id ×∘ ∘ ↭ id ×∘× id 퐷퐶 × 퐶퐵 × 퐵 ∘×id 퐷퐵 × 퐵

퐶 퐴 퐴 id ×휖 휖 퐷 × 퐶 ∘ 퐷 퐷퐶 × 퐶퐴 × 퐴 퐷퐶 × 퐶 퐷 id ×휖 휖 which follows from bifunctoriality of × and two instances of the commutative square above.  A.2.4. Definition. The free 풱-category on a 1-category 풞 has • the same objects as 풞 ∐ • the hom-objects defined to be coproducts 풞(푥,푦) 1 of the terminal object 1 indexed by the hom- set 풞(푥, 푦) ∐ • the identity map id푥 ∶ 1 → 풞(푥,푥) 1 given by the inclusion of the component indexed by the identity arrow • the composition map given by acting by the composition function on the indexing sets: ∐ 1 ∐ ∐ ∐ ∘ ∐ 풞(푦,푧) 1 × 풞(푥,푦) 1 ≅ 풞(푦,푧)×풞(푥,푦) 1 풞(푥,푧) 1

For example, free 풞푎푡-enriched categories are those with no non-identity 2-cells and free 풮풮푒푡-enriched categories are those with no non-degenerate arrows in positive dimensions. When context allows, we use the same name for the 1-category 풞 and the free 풱-category it generates, using language to dis- ambiguate. A.2.5. Definition. A 풱-enriched functor 퐹∶ 풞 → 풟 is given by • a mapping on objects that carries each 푥 ∈ 풞 to some 퐹푥 ∈ 풟

360 • for each pair of objects 푥, 푦 ∈ 풞, an internal action on the 풱-objects of arrows given by a mor- phism 퐹푥,푦 ∶ 풞(푥, 푦) → 풟(퐹푥, 퐹푦) ∈ 풱 so that the 풱-functoriality diagrams commute: id 풞(푦, 푧) × 풞(푥, 푦) ∘ 풞(푥, 푧) 1 푥 풞(푥, 푥)

퐹푦,푧×퐹푥,푦 퐹푥,푧 퐹푥,푥 id퐹푥 풟(퐹푦, 퐹푧) × 풟(퐹푥, 퐹푦) ∘ 풟(퐹푥, 퐹푧) 풟(퐹푥, 퐹푥) A prototypical example is given by the representable functors: A.2.6. Example. For any 풱-category 풞 and object 푐 ∈ 풞, the enriched representable 풱-functor 풞(푐, −)∶ 풞 → 풱 is defined on objects by the assignment 푥 ∈ 풞 ↦ 풞(푐, 푥) ∈ 풱 and whose internal action on arrows

풞(푐,−)푥,푦 풞(푥, 푦) 풞(푐, 푦)풞(푐,푥) ↭ 풞(푥, 푦) × 풞(푐, 푥) ∘ 풞(푐, 푦) is given by the adjoint transpose of the internal composition map for 풞. The 풱-functoriality diagrams are transposes of associativity and identity diagrams in 풞. The contravariant enriched representable functors are defined similarly; see Exercise A.2.ii. As the next result explains, an enriched representable functor can be thought of as a “two-step” en- richment of the corresponding unenriched representable functor: the first step enriches the hom-sets to hom-objects in 풱 and the second step enriches the composition function to an internal composi- tion map in 풱. A.2.7. Proposition. To enrich a 1-category 풞 over 풱 one must: (i) First lift each of the unenriched representable functors through the underlying set functor to define an unenriched functor that encodes the data of the objects of arrows in 풱: 풞(푐,−) 풞 풱 풞(푐,−) 풞 풱 풞(푐,−) (−)0 푥 풞(푐, 푥) 풮푒푡 (ii) Then enriched each of the unenriched 풱-valued representable functors defined in (i) to a 풱-functor 풞(푐, −)∶ 풞 → 풱 whose internal action on arrows encodes the data of the internal composition map for 풞. Proof. The correspondence between the data in (i) and (ii) and the data of a 풱-enriched category whose underlying category is 풞 is clear. As discussed in Definition A.2.2, there is no additional data required by the identity arrows in an enriched category. Now the 풱-functoriality of the enriched representable functor 풞(푐, −)∶ 풞 → 풱 is expressed by commutative diagrams id 풞(푦, 푧) × 풞(푥, 푦) ∘ 풞(푥, 푧) 1 푥 풞(푥, 푥)

풞(푐,−)푦,푧×풞(푐,−)푥,푦 풞(푐,−)푥,푧 풞(푐,−)푥,푥 id풞(푐,푥) 풞(푐, 푧)풞(푐,푦) × 풞(푐, 푦)풞(푐,푥) ∘ 풞(푐, 푧)풞(푐,푥) 풞(푐, 푥)풞(푐,푥) — where the composition map in 풞 is the one that has just been defined — and these transpose to the required associativity and identity axioms for the 풱-category 풞.  361 Both of the constructions of underlying unenriched categories and free categories extend functo- rially to functors; see Exercise A.2.iii. The relationship between these constructions is summarized by the following proposition, which we also decline to prove, because it will be generalized by a result that we do provide a proof for in §A.6. A.2.8. Proposition. The free 풱-category functor defines a fully faithful left adjoint to the underlying cate- gory functor. Consequently, a 풱-category is free just when it is isomorphic to the free category on its underlying category via the counit of this adjunction.

Proof. Exercise A.2.iv or see §A.6.  Exercises. A.2.i. Exercise. Verify the unit condition left to the reader in the proof of Lemma A.2.3. A.2.ii. Exercise. Define the opposite of a 풱-category and dualize Example A.2.6 to define contravari- ant enriched representable functors. A.2.iii. Exercise. (i) Define the underlying functor of an enriched functor. (ii) Prove that the passage from enriched functors to underlying unenriched functors is functorial. (iii) Define the free enriched functor on an unenriched functor. (iv) Prove the passage from unenriched functors to free enriched functors is functorial. A.2.iv. Exercise. Prove A.2.8. A.3. Enriched natural transformations and the enriched Yoneda lemma Recall an (unenriched) natural transformation 훼∶ 퐹 ⇒ 퐺 between parallel functors 퐹, 퐺∶ 풞 ⇉ 풟 is given by:

• the data of an arrow 훼푥 ∈ 풟(퐹푥, 퐺푥) for each 푥 ∈ 풞 • subject to the condition that for each morphism 푓 ∈ 풞(푥, 푦), the diagram 훼 퐹푥 푥 퐺푥 퐹푓 퐺푓 (A.3.1) 퐹푦 퐺푦 훼푦 commutes in 풟. This enriches to the notion of a 풱-natural transformation whose data is exactly the same — a family of arrows in the underlying category of 풟 indexed by the objects of 풞 — but with a stronger 풱-naturality condition expressed by internalizing the naturality condition (A.3.1) given above. A.3.2. Definition. A 풱-enriched natural transformation 훼∶ 퐹 ⇒ 퐺 between 풱-enriched functors 퐹, 퐺∶ 풞 ⇉ 풟 is given by:

• an arrow 훼푥 ∶ 1 → 풟(퐹푥, 퐺푥) for each 푥 ∈ 풞

362 • so that for each pair of objects 푥, 푦 ∈ 풞, the follow 풱-naturality square commutes in 풱:

훼푦×퐹푥,푦 풞(푥, 푦) 풟(퐹푦, 퐺푦) × 풟(퐹푥, 퐹푦)

퐺푥,푦×훼푥 ∘ (A.3.3)

풟(퐺푥, 퐺푦) × 풟(퐹푥, 퐺푥) ∘ 풟(퐹푥, 퐺푦) A.3.4. Example. An arrow 푓∶ 1 → 풞(푥, 푦) in the underlying category of a 풱-category 풞 defines a 풱-natural transformation 푓∗ ∶ 풞(푦, −) ⇒ 풞(푥, −) between the enriched representable functors whose component at 푧 ∈ 풞 is defined by evaluating the adjoint transpose of the composition map at 푓:

푓 풞(−,푧)푥,푦 1 풞(푥, 푦) 풞(푦, 푧)풞(푥,푦) Evaluating one component of the associative diagram for 풞 at 푓 provides the required 풱-naturality square. A.3.5. Lemma. (i) The vertical composite of 풱-enriched natural transformations 훼∶ 퐹 ⇒ 퐺 and 훽∶ 퐺 ⇒ 퐻, both from 풞 to 풟 has component (훽 ⋅ 훼)푥 at 푥 ∈ 풞 defined by the composite 훽 ×훼 1 푥 푥 풟(퐺푥, 퐻푥) × 풟(퐹푥, 퐺푥) ∘ 풟(퐹푥, 퐻푥) (ii) The horizontal composite of 훼∶ 퐹 ⇒ 퐺 from 풞 to 풟 and 훾∶ 퐻 ⇒ 퐾 from 풟 to ℰ has component (훾 ∗ 훼)푥 at 푥 ∈ 풞 defined by the composite

훼 훾퐺푥×퐻퐹푥,퐺푥 1 푥 풟(퐹푥, 퐺푥) ℰ(퐾퐺푥, 퐻퐺푥) × ℰ(퐻퐹푥, 퐻퐺푥)

퐾퐹푥,퐺푥×훾퐹푥 ∘

ℰ(퐾퐹푥, 퐾퐺푥) × ℰ(퐻퐹푥, 퐾퐹푥) ∘ 풟(퐻퐹푥, 퐾퐺푥) which is well-defined by 풱-naturality of 훾.

Proof. Exercise A.3.i.  The data of the underlying natural transformation of a 풱-naturality transformation is given by the same family of arrows. The unenriched naturality condition (A.3.1) is proven by evaluating the enriched naturality condition (A.3.3) at an underlying arrow 푓∶ 1 → 풞(푥, 푦). In particular, the middle four interchange rule for horizontal and vertical composition of 풱-natural transformations follows from the middle four interchange rule for horizontal and vertical composition of unenriched natural transformations for the data of the latter determines the data of the former. Consequently, Lemma A.3.5 implies that: A.3.6. Corollary. For any cartesian closed category 풱, there is a 2-category 풱-풞푎푡 of 풱-enriched cat- egories, 풱-enriched functors, and 풱-enriched natural transformations. Moreoever, the underlying category functor 풱-풞푎푡 → 풞푎푡 and the free 풱-category functor 풞푎푡 → 풱-풞푎푡 are both 2-functors.  We now turn our attention to the 풱-enriched Yoneda lemma, which we present in several forms. One role of the Yoneda lemma is to give a representable characterization of isomorphic objects in 풞. When 풞 is a 풱-category, this has several forms involving each of the three notions of “representable”

363 functor appearing in Proposition A.2.7. The notion of 풱-natural isomorphism referred to in the following result is defined to be a 풱-natural transformation with an inverse for vertical composition. A.3.7. Lemma. For objects 푥, 푦 in a 풱-category 풞 the following are equivalent: (i) 푥 and 푦 are isomorphic as objects of the underlying category of 풞. (ii) The 풮푒푡-valued unenriched representable functors 풞(푥, −)0, 풞(푦, −)0 ∶ 풞 ⇉ 풮푒푡 are naturally iso- morphic. (iii) The 풱-valued unenriched representable functors 풞(푥, −), 풞(푦, −)∶ 풞 ⇉ 풱 are naturally isomorphic. (iv) The 풱-valued 풱-functors 풞(푥, −), 풞(푦, −)∶ 풞 ⇉ 풱 are naturally 풱-isomorphic.

Proof. Applying the underlying category functor (−)0 ∶ 풱-풞푎푡 → 풞푎푡, the fourth statement implies the third. The third statement implies the second by composing the underlying set functor (−)0 ∶ 풱 → 풮푒푡. The second statement implies the first by the unenriched Yoneda lemma; this is still the main point. Finally, the first statement implies the last by a direct construction: if 푓∶ 1 → 풞(푥, 푦) and 푔∶ 1 → 풞(푦, 푥) define an isomorphism in the underlying category of 풞, the corresponding representable 풱-natural transformations of Example A.3.4 define a 풱-natural isomorphism.  Lemma A.3.7 defines a common notion of isomorphism between two objects of an enriched cat- egory, which turns out to be no different the usual unenriched notion of isomorphism. This can be thought of as defining a “cheap” form of the enriched Yoneda lemma. The full form of the 풱-Yoneda lemma enriches the usual statement — a natural isomorphism between the set of natural transforma- tions whose domain is a representable functor to the set defined by evaluating the codomain at the representing object — to an isomorphism in 풱. The first step to make this precise is to enrich the set of 풱-enriched natural transformations between a parallel pair of 풱-functors can to define an object of 풱. A.3.8. Definition. Let 풱 be a complete cartesian closed category and consider a parallel pair of 풱-functors 퐹, 퐺∶ 풞 ⇉ 풟, with 풞 a small 풱-category. Then the 풱-object of 풱-natural transforma- tions is defined by the equalizer diagram 풱풞(퐹, 퐺) ∏ 풟(퐹푧, 퐺푧) ∏ 풟(퐹푥, 퐺푦)풞(푥,푦) 푧∈풞 푥,푦∈풞 where one map in the equalizer diagram is defined by projecting to 풟(퐹푥, 퐺푥), applying the internal action of 퐺 on arrows, and then composing, while the other is defined by projection to 풟(퐹푦, 퐺푦), applying the internal action of 퐹 on arrows, and then composing. A.3.9. Lemma. The underlying set of the 풱-object of 풱-natural transformations 풱풞(퐹, 퐺) is the set of 풱-natural transformations from 퐹 to 퐺. Proof. By its defining universal property, elements of the underlying set of 풱풞(퐹, 퐺) correspond ∏ to maps 훼∶ 1 → 푧∈풞 풟(퐹푧, 퐺푧) that equalize the parallel pair of maps described in Definition A.3.8. The map 훼 defines the components of a 풱-natural transformation 훼∶ 퐹 ⇒ 퐺 and the commutativity condition transposes to (A.3.3).  The Yoneda lemma is usually expressed by the slogan “evaluation at the identity is an isomorphism,” but since in the enriched context the enriched object of natural transformations is defined via a limit, it is easier to define the map that induces a natural transformation instead. Given an object 푎 ∈ 풜

364 in a small 풱-category and a 풱-functor 퐹∶ 풜 → 풱, the internal action of 퐹 on arrows transposes to define a map that equalizes the parallel pair

퐹푎,− 퐹푎 ∏ 퐹푧풜(푎,푧) ∏ 퐹푦퐹푥×풜(푥,푦) (A.3.10) 푧∈풜 푥,푦∈풜 and thus induces a map 퐹푎 → 풱풜(풜(푎, −), 퐹) in 풱. A.3.11. Theorem (enriched Yoneda lemma). For any small 풱-category 풜, object 푎 ∈ 풜, and 풱-functor 퐹∶ 풜 → 풱, the canonical map defines an isomorphism in 풱 퐹푎 ≅ 풱풜(풜(푎, −), 퐹), that is 풱-natural in both 푎 and 퐹. Proof. To prove the isomorphism, it suffices to verify that (A.3.10) is a limit cone. To that end consider another cone over the parallel pair

푉 휆 ∏ 퐹푧풜(푎,푧) ∏ 퐹푦퐹푥×풜(푥,푦) 푧∈풜 푥,푦∈풜 and define a candidate factorization by evaluating the component 휆푎 at id푎:

id푎 × id 휆푎 휆푎(id푎) ≔ 푉 풜(푎, 푎) × 푉 퐹푎

To see that 휆푎(id푎)∶ 푉 → 퐹푎 indeed defines a factorization of 휆 through the limit cone, it suffices to show commutativity at each component 퐹푧풜(푎, 푧) of the product, which we verify in transposed form: 풜(푎, 푧) × 푉

id × id푎 × id 풜(푎, 푧) × 풜(푎, 푎) × 푉 ∘×id 풜(푎, 푧) × 푉

id ×휆푎 휆푧 퐹푎,푧 풜(푎, 푧) × 퐹푎 퐹푧 The upper triangle commutes by the identity law for 풜 while the bottom square commutes because 휆 defines a cone over the parallel pair. Uniqueness of the factorization 휆푎(id푎) follows from the same diagram by taking 푧 = 푎 and evaluating at id푎. We leave the verification of 풱-naturality to the reader or to [31, §2.4].  Passing to underlying sets: A.3.12. Corollary. For any small 풱-category 풜, object 푎 ∈ 풜, and 풱-functor 퐹∶ 풜 → 풱, there is a bijection between 풱-natural transformations 훼∶ 풜(푎, −) ⇒ 퐹 and elements 1 → 퐹푎 in the underlying set of 퐹푎 implemented by evaluating the component at 푎 ∈ 풜 at the identity id푎.  Since we have assumed our bases for enrichment to be cartesian closed, the 2-category 풱-풞푎푡 admits finite products, allowing us to define multivariable 풱-functors. The following result will imply that the structures characterized by 풱-natural isomorphisms in §A.4 and §A.5 assemble into 풱-functors.

365 A.3.13. Proposition. Let 푀∶ ℬop × 풜 → 풱 be a 풱-functor so that for each 푎 ∈ 풜, the 풱-functor 푀(−, 푎)∶ ℬop → 풱 is represented by some 퐹푎 ∈ ℬ, meaning there exists a 풱-natural isomorphism ℬ(푏, 퐹푎) ≅ 푀(푏, 푎). Then there is a unique way of extending the mapping 푎 ∈ 풜 ↦ 퐹푎 ∈ ℬ to a 풱-functor 퐹∶ 풜 → ℬ so that the isomorphisms are 풱-natural in 푎 ∈ 풜 as well as 푏 ∈ ℬ. Proof. By the Yoneda lemma in the form of Corollary A.3.12, to define a family of isomorphisms 훼푏,푎 ∶ ℬ(푏, 퐹푎) ≅ 푀(푏, 푎) for each 푎 ∈ 풜 that are 풱-natural in 푏 ∈ ℬ is to define a family of elements 휂푎 ∶ 1 → 푀(퐹푎, 푎) for each 푎 ∈ 풜. By the 풱-naturality statement in the Yoneda lemma, for the former isomorphism to be 풱-natural in 푎 is equivalent to the family of elements 휂푎 ∶ 1 → 푀(퐹푎, 푎) being “extraordinarily” 풱-natural in 푎. What this means is that for any pair of objects 푎, 푎′ ∈ 풜, the outer square commutes:

푀(퐹−,푎)푎,푎′ 풜(푎′, 푎) 푀(퐹푎′, 푎)푀(퐹푎,푎) 퐹 푀(−,푎)

′ ′ 휂 푀(퐹푎 ,−)푎′,푎 ℬ(퐹푎 , 퐹푎) 푀(퐹푎′,푎) 푎 훼퐹푎′,푎 ≅ ′ ′ ′ 푀(퐹푎 ,푎 ) ′ 푀(퐹푎 , 푎) 휂 푀(퐹푎 , 푎) 푀(퐹푎′,푎) 푎′

The definition of the top-horizontal map 푀(퐹−, 푎)푎′,푎 depends on the internal action of 퐹 on arrows, which we seek to define, but note that the composite of the other factor with the right vertical map is the natural isomorphism 훼퐹푎′,푎. Thus, there is a unique way to define 퐹푎′,푎 making the extraordinary 풱-naturality square commute, which is exactly the claim. 풱-functoriality of these internal action maps for 퐹 follows from 풱-functoriality of 푀 in the 풜 variable.  We close this section with some applications. The correct notions of 풱-enriched equivalence or 풱-enriched adjunction are given by interpreting the standard 2-categorical notions of equivalence and adjunction in the 2-category 풱. For sake of contrast, we present both notions in an alternate form here and leave it to the reader to apply Theorem A.3.11 to relate these to the 2-categorical notions. A.3.14. Definition. A pair of 풱-categories 풞 and 풟 are 풱-equivalent if there exists a 풱-functor 퐹∶ 풞 → 풟 that is

• 풱-fully faithful: i.e., each 퐹푥,푦 ∶ 풞(푥, 푦) → 풟(퐹푥, 퐹푦) is an isomorphism in 풱 and • essentially surjective on objects: i.e., each 푑 ∈ 풟 is isomorphic to 퐹푐 for some 푐 ∈ 풞. A.3.15. Definition. A 풱-enriched adjunction is given by a pair of 풱-functors 퐹∶ ℬ → 풜 and 푈∶ 풜 → ℬ together with isomorphisms 풜(퐹푏, 푎) ≅ ℬ(푏, 푈푎) that are 풱-natural in both 푎 ∈ 풜 and 푏 ∈ ℬ. A.3.16. Remark. By Proposition A.3.13, a 풱-functor 푈∶ 풜 → ℬ admits a 풱-left adjoint if and only if each ℬ(푏, 푈−)∶ 풜 → 풱 is represented by some object 퐹푏 ∈ 풜, in which case the data of the 풱-natural isomorphism 풜(퐹푏, −) ≅ ℬ(푏, 푈−) equips 푏 ∈ ℬ ↦ 퐹푏 ∈ 풜 with the structure of a 풱-functor. Dual remarks construct enriched right adjoints.

366 Exercises. A.3.i. Exercise. Prove Lemma A.3.5. A.3.ii. Exercise. Use Corollary A.3.12 to show that the notions of 풱-equivalence and 풱-adjunction given in Definitions A.3.14 and A.3.15 are equivalent to the 2-categorical notions in 풱-풞푎푡. A.4. Tensors and cotensors A 풱-category 풞 admits tensors just when for all 퐶 ∈ 풞, the covariant representable functor 풞(퐶, −)∶ 풞 → 풱 admits a left 풱-adjoint − ⊗ 퐶∶ 풱 → 풞. Dually, a 풱-category 풞 admits cotensors just when the contravariant representable functor 풞(−, 퐶)∶ 풞op → 풱 admits a mutual right adjoint 퐶− ∶ 풱op → 풞. The aim in this section is to introduce both constructions formally. In the next section, we establish some useful formal properties of enriched categories that are either tensored or cotensored. A.4.1. Definition. A 풱-category 풞 is cotensored, if for all 푉 ∈ 풱 and 퐶 ∈ 풞, the 풱-functor 풞(−, 퐶)푉 ∶ 풞op → 풱 is represented by an object 퐶푉 ∈ 풞, i.e., there exists an isomorphism 풞(푋, 퐶푉) ≅ 풞(푋, 퐶)푉 in 풱 that is 풱-natural in 푋. By Proposition A.3.13, the cotensor product defines a unique 풱-functor (−)− 풞 × 풱op −−−→풞 making the defining isomorphism 풱-natural in all three variables. A.4.2. Definition. Dually, a 풱-category 풞 is cotensored if for all 푉 ∈ 풱 and 풞 the 풱-functor 풞(퐶, −)푉 ∶ 풞 → 풱 is represented by an object 푉 ⊗ 퐶 ∈ 풞, i.e., there exists an isomorphism 풞(푉 ⊗ 퐶, 푋) ≅ 풞(퐶, 푋)푉 in 풱 that is 풱-natural in 푋. By Proposition A.3.13, the tensor product defines a unique 풱-functor −⊗− 풱 × 풞 −−−→풞 making the defining isomorphism 풱-natural in all three variables. Immediately from these definitions A.4.3. Lemma. A 풱-category 풞 is tensored and cotensored if and only if the 풱-functor 풞(−, −)∶ 풞op ×풞 → 풱 is part of a two-variable 풱-adjunction 풞(푉 × 퐴, 퐵) ≅ ≅ 풞(퐴, 퐵푉) ≅ 풞(퐴, 퐵)푉 as expressed by the commutative triangle of 풱-natural isomorphisms.  A.4.4. Lemma. In any category 풞 that is enriched and cotensored over 풱, there are 풱-natural isomorphisms 퐶푈×푉 1 ≅ 퐶 ≅ 퐶 and ≅ (퐶푉)푈 ≅ (퐶푈)푉 for 푈, 푉 ∈ 풱 and 퐶 ∈ 풞. 367 Proof. By Lemma A.3.7, to define the displayed 풱-natural isomorphisms, it suffices to prove that these objects represent the same 풱-functors 풞op → 풱. By the defining universal property of the cotensor, for any 푋 ∈ 풞, 풞(푋, 퐶1) ≅ 풞(푋, 퐶)1 ≅ 풞(푋, 퐶) by Remark A.1.9. Similarly, by the defining universal property of the cotensor, we have 풱-natural isomorphisms in each of the three vertices of the triangle below 풞(푋, 퐶푈×푉) ≅ 풞(푋, 퐶)푈×푉 ≅ ≅ 풞(푋, (퐶푉)푈) ≅ (풞(푋, 퐶)푉)푈 ≅ 풞(푋, (퐶푈)푉) ≅ (풞(푋, 퐶)푈)푉 whence the connecting 풱-natural isomorphisms are given by Lemma A.1.7.  Extending Lemma A.2.3: A.4.5. Lemma. A cartesian closed category (풱, ×, 1) is enriched, tensored, and cotensored over itself, with tensors defined by the cartesian product and cotensors defined by the internal hom⁵: 푉 ⊗ 푊 ≔ 푉 × 푊 and 푊 푉 ≔ 푊 푉. Proof. Lemma A.1.7 establishes the required isomorphisms (A.1.8) in 풱. The proof of their 풱-naturality is left to the reader or [31, §1.8].  The presence of tensors and cotensors provides a convenient mechanism for testing whether an a priori unenriched adjunction may be enriched to a 풱-adjunction. A.4.6. Proposition. Let 푈∶ 풜 → ℬ and 퐹∶ ℬ → 풜 be unenriched adjoint functors between categories 풜 and ℬ that are both enriched over 풱. (i) If 풜 and ℬ are cotensored over 풱 and 푈∶ 풜 → ℬ is a cotensor-preserving 풱-functor, then 퐹 ⊣ 푈 may be enriched to a 풱-adjunction. (ii) If 풜 and ℬ are tensored over 풱 and 퐹∶ ℬ → 풜 is a tensor-preserving 풱-functor, then 퐹 ⊣ 푈 may be enriched to a 풱-adjunction. Proof. Exercise A.4.i.  There is a convenient device for turning an a priori unenriched category 풞 into a category that is both enriched and cotensored over simplicial sets that is of utility in constructing ∞-cosmoi. This is a specialization of the notion of closed 풱-module of [54, 14.3] to the case 풱 = 풮풮푒푡, in which case less data is required to prove Proposition A.4.8. A.4.7. Definition. An unenriched category 풞 is a right 풮풮푒푡-module if there exists a bifunctor (−)− 풞 × 풮풮푒푡op 풞 equipped with natural isomorphisms

(−)−×id (−,1) 풞 × 풮풮푒푡op × 풮풮푒푡op 풞 × 풮풮푒푡op 풞 풞 × 풮풮푒푡op id ×(−×−) (−)− ≅ (−)− ≅ id 풞 × 풮풮푒푡op 풞 풞 (−)−

⁵This justifies the abuse of exponential notation for both internal homs and cotensors. 368 asserting that for 푈, 푉 ∈ 풮풮푒푡 and 퐴 ∈ 풞 퐴푈×푉 ≅ (퐴푈)푉 and 퐴 ≅ 퐴1 with these natural isomorphisms satisfying the manifest pseudo-algebra laws. A right 풮풮푒푡-module is continuous if the bifunctor 풞 × 풮풮푒푡op → 풞 carries limits in its first variable to limits in 풞 and carries colimits in its second variable to limits in 풞. A.4.8. Proposition. A continuous right 풮풮푒푡-module 풞 can be enriched to a 풮풮푒푡-category in a unique way so that there exist isomorphisms in 풮풮푒푡 풞(퐴, 퐵푉) ≅ 풞(퐴, 퐵)푉 for all 퐴, 퐵 ∈ 풞 and 푉 ∈ 풮풮푒푡 natural⁶ in all three variables. Proof. We must construct an enrichment from the supplied right pseudo-action. This is done straightforwardly by defining the 푛-arrow in 풞(퐴, 퐵) to be arrows 퐴 → 퐵횫[푛] in 풞 and using the pseudo-action laws and the canonical diagonal co-algebra structure on 횫[푛] to define an associative and unital composition of such. Note that the identity axiom of the right pseudo-action ensures that arrows 퐴 → 퐵횫[0] are in bijective correspondence with arrows 퐴 → 퐵 and thus that this construction really does give an enrichment of 풞. Furthermore, we must show that the pseudo-action supplies cotensors for this derived enrichment: that is that 풞(퐴, 퐵푉) ≅ 풞(퐴, 퐵)푉 for all 퐴, 퐵 ∈ 풞 and 푉 ∈ 풮풮푒푡 natural in all three-variables, which fact follows from one of the assumed continuity properties of (−)− ∶ 풞 × 풮풮푒푡op → 풞 using the fact that every simplicial set can be expressed as a colimit of representables.  We have not yet made use of continuity in of the right action bifunctor in its first variable. The reason for this hypothesis will explained in §A.5. Exercises. A.4.i. Exercise. Prove Proposition A.4.6. A.4.ii. Exercise. Let 풥 be a small unenriched category and let 풞 be a 풱-category. Prove that if 풞 is tensored or cotensored then so is 풞풥. A.5. Conical limits Let 풱 be a cartesian closed category. The conical limit of a 풱-enriched functor is the limit weighted by the terminal weight, the 풱-functor that is constant at 1 ∈ 풱. In what follows, we focus on the slightly less general case of conical limits of unenriched diagrams — those indexed by 1-categories instead of 풱-categories — as they will be of greatest interest here. Conical limits nec- essarily define 1-categorical limits, so we pay particular attention to what is required to enriched a 1-categorical limit to a conical limit.

⁶In fact these isomorphisms are 풮풮푒푡-natural.

369 To motivate the universal property that characterizes conical limits, consider a diagram 퐹∶ 풥 → 풱 indexed by a 1-category 풥 and valued in 풱 itself. A cone 휆 over the diagram 퐹 with summit suggestively denoted lim 퐹 ∈ 풱 is a limit cone if it satisfies the universal property 풱(퐴, lim 퐹) ≅ lim 풱(퐴, 퐹푗), 푗∈풥 an isomorphism of hom-sets. The next lemma reveals that this isomorphism can always be enriched to lie in 풱, i.e., lifted along the underlying set functor of Definition A.1.5. A.5.1. Lemma. If 풱 is a cartesian closed category, then any 1-categorical limit cone 휆∶ Δ lim 퐹 ⇒ 퐹 over a diagram 퐹∶ 풥 → 풱 gives rise to an isomorphism in 풱 (lim 퐹)퐴 ≅ lim(퐹푗퐴) 푗∈풥 that is 풱-natural in 퐴 ∈ 풱. Proof. For any 퐴 ∈ 풱, the exponential (−)퐴 ∶ 풱 → 풱 is right adjoint to the product functor − × 퐴∶ 풱 → 풱; as such it preserves limits, giving rise to the isomorphism of the statement.  In terminology we now introduce, Lemma A.5.1 asserts that all 1-categorical limits in a cartesian closed category 풱 automatically enriched to define conical limits. A.5.2. Definition. Let 풞 be a 풱-category and let 풥 be a 1-category. The conical limit of an unen- riched diagram 퐹∶ 풥 → 풞 is given by an object 퐿 ∈ 풞 and a cone 휆∶ Δ퐿 ⇒ 퐹 inducing a 풱-natural isomorphism of hom-objects in 풱

휆∗ 풞(푋, 퐿) ≅ lim푗∈풥 풞(푋, 퐹푗) ∈ 풱 (A.5.3) for all 푋 ∈ 풞. The isomorphism (A.5.3) looks identical to the usual isomorphism that characterizes 1-categorical limits except for one very important difference: it postulates an isomorphism in 풱 rather than an isomorphism in 풮푒푡. In the case where 풱 = 풮풮푒푡, the isomorphism of vertices that underlies this isomorphism of simplicial sets describes the usual 1-categorical universal property. To say that the limit is conical and not merely 1-categorical is to assert that this universal property extends to all positive dimensions. Inspecting Definition A.5.2, we see immediately that: A.5.4. Proposition. A 1-categorical limit cone is conical just when it is preserved by all 풱-valued repre- sentable functors 풞(푋, −)∶ 풞 → 풱.  The proof of Lemma A.5.1 generalizes to show: A.5.5. Proposition. If 풞 has tensors, then all 1-categorical limits in 풞 are conical. Proof. By Proposition A.5.4, to show that a 1-categorical limit is conical, it suffices to show that it is preserved by the 풱-valued representable functors 풞(푋, −)∶ 풞 → 풱 for all 푋 ∈ 풱. If 풞 admits tensors, then each of these functors admits a left adjoint; as right adjoints, they necessarily preserve the 1-categorical limits of the statement.  A.5.6. Proposition. Let 풞 be enriched and cotensored over 풱. A limit of an unenriched diagram 퐹∶ 풥 → 풞 is a conical limit if and only if it is preserved by cotensors with all objects 푉 ∈ 풱. 370 Proof. Cotensors are 풱-enriched right adjoints, which preserve conical limits. The content is that preservation by cotensors suffices to enriched a 1-categorical limit to a 풱-categorical one. Recall that a 1-categorical limit cone (휆푗 ∶ 퐿 → 퐹푗)푗∈풥 is conical just when it is preserved by all 풱-valued representable functors 풞(푋, −)∶ 풞 → 풱. To see that the natural map 풞(푋, 퐿) → lim 풞(푋, 퐹푗) 푗∈풥 is an isomorphism in 풱 we appeal to the (unenriched) Yoneda lemma and prove that for all 푉 ∈ 풱, the map of hom-sets 풱(푉, 풞(푋, 퐿))0 → 풱(푉, lim 풞(푋, 퐹푗))0 (A.5.7) 푗∈풥 is an isomorphism. Since unenriched representables preserve 1-categorical limits,

풱(푉, lim 풞(푋, 퐹푗))0 ≅ lim 풱(푉, 풞(푋, 퐹푗))0. 푗∈풥 푗∈풥 By the unenriched universal property of cotensors, maps 푉 → 풞(푋, 퐿) in 풱 correspond bijectively to maps 푋 → 퐿푉 in 풞. So the map (A.5.7) is isomorphic to the map of hom-sets 푉 푉 푉 풞(푋, 퐿 )0 → lim 풞(푋, 퐹푗 )0 ≅ 풞(푋, lim(퐹푗 ))0, 푗∈풥 푗∈풥 where again the unenriched representable commutes with the 1-categorical limit. To say that cotensors 푉 푉 푉 preserve the limit 퐿 ≅ lim푗∈풥 퐹푗 means that lim푗∈풥(퐹푗 ) ≅ (lim푗∈풥 퐹푗) ≅ 퐿 , so by the Yoneda lemma, the map of hom-sets 푉 푉 풞(푋, 퐿 )0 → 풞(푋, lim(퐹푗 ))0, 푗∈풥 is an isomorphism, and thus (A.5.7) and hence 풞(푋, 퐿) ≅ lim푗∈풥 풞(푋, 퐹푗) is an isomorphism as de- sired.  A.5.8. Proposition. Suppose 풞 is a 풱-category that admits conical limits indexed by a small category 풥. Then the limit functor lim∶ 풞풥 → 풞 is a 풱-functor. Proof. We first prove that the conical limit functor lim∶ 풱풥 → 풱 is a 풱-functor. The result for a general 풱-category 풞 then follows from the defining 풱-natural isomorphism (A.5.3) via Proposition A.3.13. The advantage of this reduction is that we can make use of the fact that 풱 and 풱풥 are tensored, the latter following from the former by Exercise A.4.ii. Now by Proposition A.4.6, to show that the conical limit is a 풱-functor it suffices to show that it’s unenriched left adjoint Δ∶ 풱 → 풱풥 is a 풱-functor that preserves tensors, and this is straightforward.  Exercises. A.5.i. Exercise. Specialize the result of Proposition A.5.5 to prove the following: in any 2-category 풞 that admits tensors with the walking-arrow category ퟚ, any 1-categorical limits that 풞 admits are automatically conical.⁷ ⁷The statement asserts that the presence of tensors with ퟚ implies that the universal property of 1-dimensional limits automatically has an additional 2-dimensional aspect. See the discussion around Proposition 1.4.5 for an illustration of this and see [30, pp. 306] for a proof.

371 A.6. Change of base Change of base for enriched categories was first considered in [20]. Their main result, appearing as Proposition A.6.4 below, is that a lax monoidal functor 푇∶ 풱 → 풲 induces a change-of-base 2-functor 푇∗ ∶ 풱-풞푎푡 → 풲-풞푎푡. A.6.1. Definition. A (lax) monoidal functor between cartesian closed categories 풱 and 풲 is a func- tor 푇∶ 풱 → 풲 equipped with natural transformations 풱 × 풱 푇×푇 풲 × 풲 ퟙ 1 풱 ⇑휙0 × ⇓휙 × 푇 1 풱 풲 풲 푇 so that the evident associativity and unit diagrams commute. A.6.2. Definition. A (lax) monoidal natural transformation between monoidal functors between cartesian closed categories 푇, 푈∶ 풱 ⇉ 풲 is given by a natural transformation 휃∶ 푇 ⇒ 푈 so that the pasting diagrams commute 푇×푇 푇×푇 1 1 풱 × 풱 ⇓휃×휃 풲 × 풲 풱 × 풱 풲 × 풲 ퟙ 풱 ퟙ 풱 ⇑휙0 ⇓휙 ⇑휙0 × 푈×푈 × = × × 푇 휃 푈 푈 ⇓휙 푇 ⇒ = 1 1 풱 풲 풱 ⇓휃 풲 풲 풲 푈 푈 A.6.3. Example. A functor 푇∶ 풱 → 풲 between cartesian closed categories preserves finite products just when the natural maps defined for any 퐴, 퐵 ∈ 풱 ≅ ≅ 푇(퐴 × 퐵) −→푇퐴 × 푇퐵 and 푇1 −→1 are isomorphisms. The inverse isomorphisms then make 푇 into a strong monoidal functor between the cartesian closed categories 풱 and 풲, with the structure maps of Definition A.6.1 given by nat- ural isomorphisms. Moreover, any natural transformation between product-preserving functors is automatically a monoidal natural transformation. The following result was first stated as [20, II.6.3], with the proof left to the reader. We adopt the same tactic and leave the diagram chases to the reader or to [14, 4.2.4] and instead just give the definition. A.6.4. Proposition. A monoidal functor 푇∶ 풱 → 풲 induces a change-of-base 2-functor

푇∗ ∶ 풱-풞푎푡 → 풲-풞푎푡. Proof. The construction of the change-of-base 2-functor is the important thing. Let 풞 be a 풱-category and define a 풲-category 푇∗풞 to have the same objects and to have mapping objects 푇∗풞(푥, 푦) ≔ 푇풞(푥, 푦). The composition and identity maps are given by the composites 휙 휙 푇 id 푇풞(푦, 푧) × 푇풞(푥, 푦) 푇(풞(푦, 푧) × 풞(푥, 푦)) 푇∘ 푇풞(푥, 푧) 1 0 푇1 푥 푇풞(푥, 푥)

372 which make use of the structure maps of the monoidal functor. A straightforward diagram chases verifies that 푇∗풞 is a 풲-category. If 퐹∶ 풞 → 풟 is a 풱-functor, then we define a 풲-functor 푇∗퐹∶ 푇∗풞 → 푇∗풟 to act on objects by 푐 ∈ 풞 ↦ 퐹푐 ∈ 풟 and with internal action on arrows defined by 푇풞(푥, 푦) 푇퐹 풟(푇푥, 푇푦)

Again, a straightforward diagram chase verifies that 푇∗퐹 is 풱-functorial. It is evident from this defi- nition that 푇∗(퐺퐹) = 푇∗퐺 ⋅ 푇∗퐹. Finally, let 훼∶ 퐹 ⇒ 퐺 be a 풱-natural transformation between 풱-functors 퐹, 퐺∶ 풞 ⇉ 풟 and define a 풲-natural transformation 푇∗훼∶ 푇∗퐹 ⇒ 푇∗퐺 to have components 휙 푇훼 1 0 푇1 푐 푇풟(퐹푐, 퐺푐)

Another straightforward diagram chase verifies that 푇∗훼 is 풲-natural. It remains to verify this assignment is functorial for both horizontal and vertical composition of enriched natural transformations. Consulting Lemma A.3.5, we see that the component of 푇∗(훽 ⋅ 훼) is defined by the top-horizontal composite while the component of the vertical composite of 푇∗훼 with 푇∗훽∶ 푇∗퐺 ⇒ 푇∗퐻 is defined by the bottom composite: 휙 푇(훽 ×훼 ) 1 0 푇1 푐 푐 푇(풟(퐺푐, 퐻푐) × 풟(퐹푐, 퐺푐)) 푇∘ 푇풟(퐹푐, 퐻푐)

휙 휙 휙0×휙0 푇1 × 푇1 푇풟(퐺푐, 퐻푐) × 푇풟(퐹푐, 퐺푐) 푇훽푐×푇훼푐 By the unit axiom for the monoidal functor and naturality of 휙, these composites agree. The argument for functoriality of horizontal composites is similar. 

For any cartesian closed category 풱, the underlying set functor (−)0 ∶ 풱 → 풮푒푡 is monoidal (Exercise A.6.i). Consequently: A.6.5. Corollary. For any cartesian closed category 풱, the the underlying category construction defines a 2-functor (−)0 ∶ 풱-풞푎푡 → 풞푎푡.  A.6.6. Remark. In fact, the change of base procedure is itself a 2-functor from the 2-category of monoidal categories, monoidal functors, and monoidal natural transformations to the 2-category of 2-categories, 2-functors, and 2-natural transformations. See [14, §4.3] for a discussion and proof. If the lax monoidal functor 푇∶ 풱 → 풲 does not commute with the underlying set functors for 풱 and 풲 up to natural isomorphism, the change-of-base 2-functor 푇∗ ∶ 풱-풞푎푡 → 풲-풞푎푡 will not preserve underlying categories, even up to natural isomorphism. Consulting Definition A.2.2, the following condition on 푇 is required to ensure that underlying categories are preserved.

A.6.7. Lemma. The change-of-base 2-functor induced by a monoidal functor (푇, 휙, 휙0)∶ 풱 → 풲 preserves underlying categories, if and only if, for each 푉 ∈ 풱 the composite function on hom-sets

푇 −∘휙0 풱(1, 푉)0 풲(푇1, 푇푉)0 풲(1, 푇푉)0 is a bijection.

373 Proof. The displayed function defines the component at 푉 ∈ 풱 of the unique monoidal natural transformation from the underlying set-functor for 풱 with the composite of 푇 with the underlying set functor for 풲. By Remark A.6.6, if it defines a monoidal natural isomorphism, then it induces a 2-natural isomorphism between the underlying category 2-functor (−)0 ∶ 풱-풞푎푡 → 풞푎푡 and the com- posite of the change of base 2-functor 푇∗ ∶ 풱-풞푎푡 → 풲-풞푎푡 with the underlying category 2-functor (−)0 ∶ 풲-풞푎푡 → 풞푎푡. Conversely, this condition is necessary for the underlying category of the 풲-category 푇∗풱 to coincide with the underlying category of the cartesian closed category 풱.  One situation in which the condition of Lemma A.6.7 is automatic is when the lax monoidal functor is the right adjoint of a monoidal adjunction, which in this context might be thought of as a change-of-base adjunction. The proof, originally given in [29], is by a short diagram chase left to Exercise A.6.ii. Another immediate consequence of Remark A.6.6 is that the monoidal adjunctions of Exercise ?? induce an adjunction between the corresponding change-of-base 2-functors. Between cartesian closed categories 풱 and 풲, the statement of this more general result simplifies by applying the ideas of Example A.6.3. The right adjoint functor preserves finite products and so is automatically strong monoidal, and by Exercise ??(i) the left adjoint is as well. Any natural transformation between product- preserving functors automatically defines a monoidal natural transformation. Consequently: A.6.8. Proposition. Any adjunction comprised of finite-product preserving functors between cartesian closed categories induces a change-of-base 2-adjunction 퐹 퐹 ∗ 풱 ⊥ 풲 ⇝ 풱-풞푎푡 ⊥ 풲-풞푎푡  푈 푈∗ A.6.9. Example. Both adjoints of the adjunction

h 풞푎푡 ⊥ 풮풮푒푡 of Proposition 1.1.11 preserve finite products. Hence, by Proposition A.6.8 induces a change-of-base adjunction defined by the 2-functors

h∗ 2-풞푎푡 ⊥ 풮풮푒푡-풞푎푡 that act identically on objects and act by applying the homotopy category functor or nerve functor, respectively, on homs. Note h also satisfies the condition of Lemma A.6.7 so both adjoints preserve underlying categories, as is evident from direct computation. Exercises.

A.6.i. Exercise. For any cartesian closed category 풱, prove that the underlying set functor (−)0 ∶ 풱 → 풮푒푡 is lax monoidal A.6.ii. Exercise. Consider an adjunction in the 2-category of monoidal categories, monoidal functors, and monoidal natural transformations. 374 (i) Prove that the left adjoint is strong monoidal.⁸ (ii) Prove that the right adjoint is “pro-normal,” satisfying the condition of Lemma A.6.7.

⁸Hint: take the mates of the structure maps of the monoidal right adjoint. 375

APPENDIX B

Introduction to 2-category theory

2-categories and double categories were first introduced by Charles Ehresmann. A notable early expository account appeared in [32]. B.1. 2-categories and the calculus of pasting diagrams The category 풞푎푡 of small categories is cartesian closed with exponentials 퐵퐴 defined to be the category of functors and natural transformations from 퐴 to 퐵 and terminal object ퟙ. Exploiting the work in Appendix A, we can concisely define a 2-category to be a category enriched over this cartesian closed category. Unpacking this definition, we see it contains a considerable amount of structure: B.1.1. Definition (2-category). A 2-category 풞 is a category enriched in 풞푎푡. Explicitly it has: • a collection of objects 퐴, 퐵; • a collection of arrows 푓∶ 퐴 → 퐵, frequently called 1-cells, these being the objects of the hom- categories 풞(퐴, 퐵); and 푓 • a collection of arrows between arrows 퐴 ⇓훼 퐵 , called 2-cells,¹ these being the morphisms 푔 of the hom-categories 풞(퐴, 퐵) from 푓 to 푔 so that: (i) For each fixed pair of objects 퐴, 퐵 ∈ 풞, the 1-cells and 2-cells form a category. In particular: • A pair of 2-cells as below-left admits a vertical composite as below-right:

푓 푓 ⇓훼 퐴 푔 퐵 ≕ 퐴 ⇓훽⋅훼 퐵 ⇓훽 ℎ ℎ 푓

• Each 1-cell 푓∶ 퐴 → 퐵 has an identity 2-cell 퐴 ⇓id푓 퐵 . 푓 (ii) The objects and 1-cells define a category in the ordinary sense; in particular, each object has an identity arrow id퐴 ∶ 퐴 → 퐴. (iii) The objects and 2-cells form a category. In particular:

¹Implicitly in this graphical representation, is the requirement that a 2-cell 훼 has a domain 1-cell 푓 and a codomain 1-cell 푔, and these 1-cells have a common domain object 퐴 and codomain object 퐵. The objects 퐴 and 퐵 may be referred to as the 0-cell source and 0-cell target of 훼.

377 • A pair of 2-cells as below-left admits a horizontal composite as below-right: 푓 푗 푗푓 퐴 ⇓훼 퐵 ⇓훾 퐶 ≕ 퐴 ⇓훾∗훼 퐶 푔 푘 푘푔 • The identity 2-cells on identity 1-cells

id퐴 ⇓id 퐴 id퐴 퐴

id퐴 define identities for horizontal composition. (iv) Finally, the horizontal composition is functorial with respect to the vertical composition: • The horizontal composite of the identity 2-cells is an identity 2-cell:

푔 푘 푘푔

퐴 ⇓id푔 퐵 ⇓id푘 퐶 = 퐴 ⇓id푘푔 퐶 푔 푘 푘푔 • In the situation below, the horizontal composite of the vertical composites coincides with the vertical composite of the horizontal composites, a property referred to as middle-four interchange 푓 푗 ⇓훼 ⇓훾 퐴 푔 퐵 푘 퐶 ⇓훽 ⇓훿 ℎ ℓ A degenerate special case of horizontal composition, in which all but one of the 2-cells is an identity id푓 on its boundary 1-cell 푓, is called “whiskering.”

푓 B.1.2. Definition (whiskering). The whiskered composite of a 2-cell 퐴 ⇓훼 퐵 with a pair of 푔 1-cells 푎∶ 푋 → 퐴 and 푏∶ 퐵 → 푌 is defined by the horizontal composite: 푏푓푎 푓 푎 푓 푏 푎 푏 푋 ⇓푏⋅훼⋅푎 푌 ≔ 푋 퐴 ⇓훼 퐵 푌 ≔ 푋 ⇓id푎 퐴 ⇓훼 퐵 ⇓id푏 푌 푏푔푎 푔 푎 푔 푏 As the following lemma reveals, horizontal composition can be recovered from vertical composi- tion and whiskering. Our primary interest in this result, however, has to with a rather prosaic conse- quence appearing as the final part of the statement, which will be applied shockingly often. B.1.3. Lemma (naturality of whiskering). Any horizontally-composable pair of 2-cells in a 2-category gives rise to a commutative square in the hom-category from the domain object to the codomain object whose diagonal

378 defines the horizontal composite: 훽푓 푓 ℎ ℎ푓 푘푓 ⇓훽 풞 ∋ 퐴 ⇓훼 퐵 퐶 ⇝ ℎ훼 훽∗훼 푘훼 ∈ 풞(퐴, 퐶) 푔 푘 ℎ푔 푘푔 훽푔 In particular, if any three of the four whiskered 2-cells ℎ훼, 푘훼, 훽푓, and 훽푔 are invertible, so is the fourth. Proof. By middle-four interchange:

훽푔⋅ℎ훼 = (훽∗id푔)⋅(idℎ ∗훼) = (훽⋅idℎ)∗(id푔 ⋅훼) = 훽∗훼 = (id푘 ⋅훽)∗(훼⋅id푓) = (id푘 ∗훼)⋅(훽∗id푓) = 푘훼⋅훽푓.  The operations of horizontal and vertical composition are special cases of composition by pasting, an operation first introduced by Bénabou [2]. The main result, proven in the 2-categorical context by Power [44] is that a well-formed pasting diagram such as 퐵 푏 퐹 푐 푎 푔 ⇓훾 푑 ⇓훼 푓 ⇓훽 퐴 푖 퐶 푒 퐸 ⇓휖 퐻 ℎ 푍 (B.1.4)

⇓훿 푘 푚 ⇓휁 푗 퐷 퐺 푛 ℓ has a unique 2-cell composite.² We leave the formal statement and proof of this result to the literature and instead describe informally how such pasting composites should be interpreted. B.1.5. Digression (how to read a pasting diagram). A pasting diagram in a 2-category 풞 represents a unique composite 2-cell, defining a morphism in one of the hom-categories between a pair of objects. To identify these objects, look at the underlying directed graph of objects and 1-cells in the pasting diagram. If the pasting diagram is well-formed, that graph should have a unique source object 퐴 and a unique target object 푍. This indicates that the pasting diagram defines a 2-cell in the hom-category 풞(퐴, 푍). The object 퐴 is its source 0-cell and the object 푍 is its target 0-cell. The next step is to identify the source 1-cell and the target 1-cell of the pasting diagram. These should both be objects of 풞(퐴, 푍), i.e., 1-cells in the 2-category from 퐴 to 푍. Again if the pasting diagram is well-formed, the source 1-cell should be the unique composable path of 1-cells none of which occur as codomains of any 2-cells in the pasting diagram. In the diagram (B.1.4), these are the 1-cells whose labels appear above the arrow, and their composite is 푐푏푎. Dually, the target 1-cell should be the unique composable path of 1-cells, none of which occur as domains of any 2-cells in the pasting diagram. In (B.1.4), these are the 1-cells whose labels appear below the diagram, and their composite is 푛ℓ푗. The final step is to represent the pasting diagram as a vertical composite of 2-cells, each of which is a map between a pair of composite 1-cells from 퐴 to 푍 that trace a composable path through the directed graph of the pasting diagram. Each 2-cell in the pasting diagram will label precisely one of

²This result was generalized to the bicategorical context by Verity [62], in which case the composite 2-cell is well- defined once its source and target 1-cells are specified.

379 the 2-cells of this composite. The expressions of these vertical 2-cell composites are not necessarily unique and may not necessarily pass through every possible composable path of 1-cells (though there will be some vertical composite of 2-cells that does pass through each path of 1-cells). To start, pick any 2-cell in the pasting diagram whose 1-cell source can be found as a subsequence of the source 1-cell; in the (B.1.4), either 훼 or 훽 can be chosen first. Whisker it so that it defines a 2-cell from the source 1-cell 푐푏푎 to another path of composable 1-cells from 퐴 to 푍 through the pasting diagram. Then this whiskered composite forms the first step in the sequence of composable 2-cells. Remove this part of the pasting diagram and repeat until you arrive at the target 1-cell. In the example above, there are three possible ways to express the composite pasted cell (B.1.4) as vertical composites of whiskered 2-cell, represented by the three paths through the following commutative diagram in the category 풞(퐴, 푍): 푐푓푒훾 푐푏푎 푐훼푎 푐푓푒푑푎 푐푓푒푖

훽푏푎 훽푓푒푑푎 훽푓푒푖 ∈ 풞(퐴, 푍) ℎ푔푓훿 ℎ휖푗 휁ℓ푗 ℎ푔푏푎 ℎ푔푓푒푑푎 ℎ푔푓푒푖 ℎ푔푓푘푗 ℎ푚ℓ푗 ℎℓ푗 ℎ푔훼푎 ℎ푔푓푒훾 B.1.6. Digression (notions of sameness inside a 2-category). From the point of view of 2-category theory, the most natural notion of “sameness” for two objects of a 2-category is equivalence: 퐴 and 퐵 are to be regarded as the same, if there exist 1-cells 푓∶ 퐴 → 퐵 and 푔∶ 퐵 → 퐴 together with invertible 2-cells 훼∶ id퐴 ≅ 푔푓 and 훽∶ 푓푔 ≅ id퐵. From the point of view of 2-category theory, the most natural notion of “sameness” for a parallel pair of morphisms in a 2-category is isomorphism: ℎ, 푘∶ 퐴 ⇉ 퐵 are to be regarded as the same if there exists an invertible 2-cell 훾∶ ℎ ≅ 푘. From the point of view of 2-category theory, the most natural notion of “sameness” for a pair of 2-cells with common boundary is equality. Because a 2-category lacks any higher dimensional mor- phisms to mediate between 2-cells, there is no weaker notion of sameness available. A 2-category has four duals, including itself, each of which have the same objects, 1-cells, and 2-cells, but with some domains and codomains swapped. B.1.7. Definition (op and co duals). Let 풞 be a 2-category. • Its op-dual 풞op is the 2-category with 풞op(퐴, 퐵) ≔ 풞(퐵, 퐴). This reverses the direction of the 1-cells but not the 2-cells. • Its co-dual 풞co is the 2-category with 풞co(퐴, 퐵) ≔ 풞(퐴, 퐵)op. This reverses the direction of the 2-cells but not the 1-cells. • Its coop-dual 풞coop is the 2-category with 풞coop(퐴, 퐵) ≔ 풞(퐵, 퐴)op. This reverses the direction of both the 2-cells and the 1-cells. Further details about the specification of 풞op 풞co, and 풞coop as 풞푎푡-enriched categories are left to Exercise B.1.iii. The data of an equivalence in 풞 also defines an equivalence in each of its duals. In Digression 1.2.2, we saw that the data of a simplicial category could be expressed as a diagram of a particular type valued in 풞푎푡. A small 2-category can be similarly encoded, in fact in two different ways, as a category defined internally to the category of categories.

380 B.1.8. Definition (internal category). Let ℰ be any category with pullbacks. An internal category in ℰ is given by the data

퐶1 × 퐶1

퐶0 휋ℓ ⌜ 휋푟 푑 퐶1 × 퐶1 ∘ 퐶1 푖 퐶0 퐶 퐶 퐶 1 1 0 푐 푑 푐 퐶0 subject to commutative diagrams that define the domains and codomains of composites and identities and encode the fact that composition is associative and unital. The details are left to Exercise B.1.i or the literature. For example, a double category is a category internal to 풞푎푡. A 2-category can be realized as a special case of this construction in the following two ways. B.1.9. Digression (2-categories as category objects). A 2-category may be defined to be an internal category in 풞푎푡 푑

퐶1,2 × 퐶1,2 ∘ 퐶1,2 푖 퐶0 퐶 0 푐 in which the category 퐶0 is a set, namely the set of objects of the 2-category. The 1- and 2-cells occur as the objects and arrows of the category 퐶1,2. The functors 푑, 푐∶ 퐶1,2 → 퐶0 send 1- and 2-cells to their domain and codomain 0-cells. The functor 푖∶ 퐶0 → 퐶1,2 sends each object to its identity 1-cell.

The action of the functor ∘∶ 퐶1,2 ×퐶0 퐶1,2 → 퐶1,2 on objects defines composition of 1-cells and the action on morphisms defines the horizontal composition on 2-cells. Vertical composition on 2-cells is the composition inside the category 퐶1,2. Functoriality of this map encodes middle-four interchange. This definition motivates the Segal category model of (∞, 1)-categories described in Appendix E. Dually, a 2-category may be defined to be an internal category in 풞푎푡 푑

퐶0,2 × 퐶0,2 ∘ 퐶0,2 푖 퐶0,1 퐶 0,1 푐 in which the categories 퐶0,1 and 퐶0,2 have the same set of objects and all four functors are identity- on-objects. Here the common set of objects defines the objects of the 2-category and the arrows of 퐶0,1 and 퐶0,2 define the 1- and 2-cells, respectively. The functors 푑, 푐∶ 퐶1,2 ⇉ 퐶0,2 define the domain and codomain 1-cells for a 2-cell, which the functor ∘∶ 퐶0,2 ×퐶0,1 퐶0,2 → 퐶0,2 encodes vertical composition of 2-cells. The composition inside the category 퐶0,2 defines horizontal composition of 2-cells. Functoriality of this map encodes middle-four interchange. Exercises. B.1.i. Exercise. Complete the definition of an internal category sketched in Definition B.1.8. B.1.ii. Exercise. Define a duality involution on double categories that exchanges the two expressions of a 2-category as an internal category appearing in Digression B.1.9. B.1.iii. Exercise. For any 2-category 풞, define 풞푎푡-enriched categories 풞op, 풞co, and 풞coop along the lines specified by Definition B.1.7. 381 B.2. The 3-category of 2-categories Ordinary 1-categories form the objects of a 2-category of categories, functors, and natural transfor- mations. Similarly, 2-categories form the objects of a 3-category of 2-categories, 2-functors, 2-natural transformations, and modifications. In this section, we briefly introduce all of these notions. Recall from Definition B.1.1, that a 2-category is a category enriched in 풞푎푡. Similarly, 2-functors and 2-natural transformations are precisely the 풞푎푡-enriched functors and 풞푎푡-enriched natural trans- formations of Appendix A. By Corollary A.3.6, 2-categories, 2-functors, and 2-natural transformations assemble into a 2-category. The 3-dimensional cells between 2-categories — the modifications — are defined using the 2-cells of a 2-category, like the 2-dimensional cells between 1-categories — the nat- ural transformations — are defined using the 1-cells in a 1-category. B.2.1. Definition. A 2-functor 퐹∶ 풞 → 풟 between 2-categories is given by: • a mapping on objects 풞 ∋ 푥 ↦ 퐹푥 ∈ 풟; • a functorial mapping on 1-cells 풞∋푓∶푥→푦↦퐹푓∶퐹푥→퐹푦∈풟 respecting domains and codomains; and • a mapping on 2-cells

푓 퐹푓 풞 ∋ 푥 ⇓훼 푦 ↦ 퐹푥 ⇓퐹훼 퐹푦 ∈ 풟 푔 퐹푔 that respects 0- and 1-cell sources and targets that is functorial for both horizontal and vertical composition and horizontal and vertical identities.

퐹 B.2.2. Definition. A 2-natural transformation 풞 ⇓휙 풟 between a parallel pair of 2-functors 퐺 퐹 and 퐺 is given by a family of 1-cells (휙푐 ∶ 퐹푐 → 퐺푐)푐∈풞 in 풟 indexed by the objects of 풞 that are natural with respect to the 1-cells 푓∶ 푥 → 푦 in 풞, in the sense that the square 퐹푓 퐹푥 퐹푦

휙푥 휙푦 퐺푥 퐺푦 퐺푓

푓 commutes in 풟, and also natural with respect to the 2-cells 푥 ⇓훼 푦 in 풞, in the sense that the 푔 top-right and bottom-left whiskered composites 퐹푓 퐹푥 ⇓퐹훼 퐹푦 퐹푔 휙푥 휙푦 퐺푓 퐺푥 ⇓퐺훼 퐺푦 퐺푔

382 are equal: i.e., 휙푦 ⋅ 퐹훼 = 퐺훼 ⋅ 휙푥. B.2.3. Definition. A modification Ξ∶ 휙 ⇛ 휓 퐹

Ξ 풞 휙 ⇛ 휓 풟

퐺 between parallel 2-natural transformations is given by a family of 2-cells in 풟

휙푐

퐹푐 ⇓Ξ푐 퐺푐

휓푐 indexed by the objects 푐 ∈ 풞 with the property that for any 1-cell 푓∶ 푥 → 푦 in 풞, the whiskered composites Ξ푦 ⋅ 퐹푓 = 퐺푓 ⋅ Ξ푥 are equal in 풟 and for any 2-cell 훼∶ 푓 ⇒ 푔 in 풟, the horizontal composites in 풟

퐹푓 휙푦 휙푥 퐺푓

퐹푥 ⇓퐹훼 퐹푦 ⇓Ξ푦 퐺푦 = 퐹푥 ⇓Ξ푥 퐺푥 ⇓퐺훼 퐺푦

퐹푔 휓푦 휓푥 퐺푔 are equal. Finally, the category of 2-categories is cartesian closed, with internal hom ℬ풜 defined to be the 2-category of 2-functors, 2-natural transformations, and modifications. So now we can define a 3-category to be a category enriched in 2-categories. Exercises. B.2.i. Exercise. For the reader who has a lot of blank paper, unpack the definition of a 3-category just given. B.3. Adjunctions and mates B.3.1. Proposition (equivalence invariance of adjointness). Suppose given an essentially commutative square 퐵 푏 퐵′ 퐵 푏 퐵′ 푢 푢′ 푢 푢′ 푓 ≅⇙훼 푓′ ≅⇘푢′푎휖⋅푢′훼푢⋅휂′ ⊢ ⊣ ⇝ ′ ′ 퐴 푎 퐴 퐴 푎 퐴 Then 푓 admits a right adjoint 푢 if and only 푓′ admits a right adjoint 푢′, in which case the mate of the isomorphism 훼 is an isomorphism. Proof. An exercise, for now.  B.3.2. Lemma. Suppose given a triple of adjoint functors ℓ ⊣ 푖 ⊣ 푟. Then the counit of ℓ ⊣ 푖 is invertible if and only if the unit of 푖 ⊣ 푟 is invertible. Proof. An exercise, for now.  383 B.4. Right adjoint right inverse adjunctions B.4.1. Lemma. Suppose we are given a pair of 1-cells 푢∶ 퐴 → 퐵 and 푓∶ 퐵 → 퐴 and a 2-isomorphism ′ ′ ′ 푓푢 ≅ id퐴 in a 2-category. If there exists a 2-cell 휂 ∶ id퐵 ⇒ 푢푓 with the property that 푓휂 and 휂 푢 are 2-isomorphisms, then 푓 is left adjoint to 푢. Furthermore, in the special case where 푢 is a section of 푓, then 푓 is left adjoint to 푢 with the counit of the adjunction an identity.

Proof. For now see [49, 4.1.2].  B.5. A bestiary of 2-categorical lemmas B.5.1. Lemma. Suppose 푓 ⊣ 푢 is an adjunction under 퐵 in the sense that • the triangles involving both adjoints commute 퐵 푐 푎 푢 퐶 ⊤ 퐴 푓

• and 휂푎 = id푎 and 휖푐 = id푐. Then if 푐 admits a right adjoint 푟 with counit 휈∶ 푐푟 ⇒ id퐶, then 푢휈 exhibits 푟 as an absolute right lifting of 푢 through 푎.

푟 퐵 푎 ⇓푢휈

퐶 푢 퐴 Proof. For now see [49, 5.3.2].  B.5.2. Example. For example, consider the diagram of adjoint functors

⊤ 횫 횫+ 횫⊥ [−1] ! ⊥ ! ퟙ For now, see the proof of [49, 5.3.1].

384 APPENDIX C

Abstract homotopy theory

C.1. Lifting properties, weak factorization systems, and Leibniz closure C.1.1. Lemma. Any class of maps characterized by a right lifting property is closed under composition, product, pullback, retract, and limits of towers; see Lemma C.1.1.

Proof. For now see [47, 11.1.4] and dualize.  On account of the dual of Lemma C.1.1, any set of maps in a cocomplete category “cellularly gen- erates” a larger class of maps with the same left lifting property. C.1.2. Definition. The class of maps cellularly generated by a set of maps is comprised of those maps obtained as sequential composites of pushouts of coproducts of those maps.

385

Appendix of Semantic Considerations

APPENDIX D

The combinatorics of simplicial sets

D.1. Simplicial sets and markings

D.1.1. Definition. Write 횫≤푛 ⊂ 횫 for the full subcategory of the simplex category of 1.1.1 spanned by the ordinals [0], … , [푛]. Restriction and left and right Kan extension define adjunctions

lan푛 ⊥ op 횫op 횫 풮푒푡 res푛 풮푒푡 ≤푛 ⊥ ran푛 inducing an idempotent comonad sk푛 ≔ lan푛 ∘ res푛 and an idempotent monad cosk푛 ≔ ran푛 ∘ res푛 on 풮풮푒푡 that are adjoint sk푛 ⊣ cosk푛. The counit and unit of this comonad and monad define canonical maps 휖 휂 sk푛 푋 푋 cosk푛 푋 relating a simplicial set 푋 with its 푛-skeleton and 푛-coskeleton. We say 푋 is 푛-skeletal or 푛-coskeletal if the former or latter of these maps, respectively, is an isomorphism. The next lemma proves that the monomorphisms are cellularly generated by the simplex boundary inclusions 휕Δ[푛] ↪ Δ[푛] for 푛 ≥ 0. D.1.2. Lemma. Any monomorphism of simplicial sets decomposes canonically as a sequential composite of pushouts of coproducts of the maps 휕Δ[푛] ↪ Δ[푛] for 푛 ≥ 0.

Proof. An exercise, for now.  D.1.3. Definition ((left-/right-/inner-)anodyne extensions). • The set of horn inclusions Λ푘[푛] ↪ Δ[푛] for 푛 ≥ 1 and 0 ≤ 푘 ≤ 푛 cellularly generates the anodyne extensions. • The set of left horn inclusions Λ푘[푛] ↪ Δ[푛] for 푛 ≥ 1 and 0 ≤ 푘 < 푛 cellularly generates the left anodyne extensions. • The set of right horn inclusions Λ푘[푛] ↪ Δ[푛] for 푛 ≥ 1 and 0 < 푘 ≤ 푛 cellularly generates the right anodyne extensions. • The set of inner horn inclusions Λ푘[푛] ↪ Δ[푛] for 푛 ≥ 2 and 0 < 푘 < 푛 cellularly generates the inner anodyne extensions.

389

APPENDIX E

Examples of ∞-cosmoi

For now see §IV.2 of [51].

391

APPENDIX F

Compatibility with the analytic theory of quasi-categories

The aim in this section is to prove that the synthetic theory of quasi-categories is compatible with the analytic theory pioneered by André Joyal, Jacob Lurie, and many others. We also discuss some special features of the ∞-cosmos of quasi-categories, proving in particular that universal properties in this ∞-cosmos are determined pointwise. For now, see • for limits: Proposition 4.3.2, I.5.2.6-8 of [49] • for adjunctions: Proposition 5.2.6, IV.4.1.20-22 of [51], VIII.3.3.6 of [52] • for cartesian fibrations: IV.4.1.24 of [51] For one instantiation of the pointwise-detection of universal properties in 풬풞푎푡, see §6.1 of [49].

393

Bibliography

[1] J. M. Beck. Triples, Algebras and Cohomology. PhD thesis, Columbia University, 1967. [2] J. Bénabou. Introduction to bicategories. In Reports of the Midwest Category Seminar, number 47 in Lecture Notes in Math., pages 1–77. Springer-Verlag, Berlin, 1967. [3] J. E. Bergner. A characterization of fibrant Segal categories. Proceedings of the AMS, 2007. [4] J. E. Bergner. A model category structure on the category of simplicial categories. Transactions of the American Mathe- matical Society, 359:2043–2058, 2007. [5] J. E. Bergner. Three models for the homotopy theory of homotopy theories. Topology, 46(4):397–436, September 2007. [6] G. J. Bird, G. M. Kelly, A. J. Power, and R. H. Street. Flexible limits for 2–categories. J. Pure Appl. Algebra, 61, November 1989. [7] A. Blumberg and M. Mandell. Algebraic K-theory and abstract homotopy theory. Advances in Mathematics, 226:3760– 3812, 2011. [8] J. Boardman and R. Vogt. Homotopy Invariant Algebraic Structures on Topological Spaces, volume 347 of Lecture Notes in Mathematics. Springer-Verlag, 1973. [9] F. Borceux. Handbook of Categorical Algebra 1: Basic Category Theory. Encyclopedia of Mathematics and its Applications. Cambridge University Press, 1994. [10] F. Borceux. Handbook of Categorical Algebra 2: Categories and Structures. Encyclopedia of Mathematics and its Applica- tions. Cambridge University Press, 1994. [11] A. K. Bousfield and D. M. Kan. Homotopy limits, completions and localizations. Lecture Notes in Mathematics, Vol. 304. Springer-Verlag, Berlin, 1972. [12] J. Climent Vidal and J. Soliveres Tur. Kleisli and eilenberg-moore constructions as parts of biadjoint situations. Ex- tracta mathematicae, 25(1):1–61, 2010. [13] J.-M. Cordier and T. Porter. Vogt’s theorem on categories of homotopy coherent diagrams. Mathematical Proceedings of the Cambridge Philosophical Society, 100:65–90, 1986. [14] G. S. H. Cruttwell. Normed Spaces and the Change of Base for Enriched Categories. PhD thesis, Dalhousie University, December 2008. [15] G. S. H. Cruttwell and M. A. Shulman. A unified framework for generalized multicategories. Theory Appl. Categ., 24(21):580–655, 2010. [16] D. Dugger and D. I. Spivak. Rigidification of quasi-categories. Algebr. Geom. Topol., 11(1):225–261, 2011. [17] W. Dwyer and D. Kan. Calculating simplicial localizations. J. Pure Appl. Algebra, 18:17–35, 1980. [18] W. Dwyer, D. Kan, and J. Smith. Homotopy commutative diagrams and their realizations. J. Pure Appl. Algebra, 57:5–24, 1989. [19] W. G. Dwyer and D. M. Kan. Simplicial localizations of categories. J. Pure Appl. Algebra, 17(267–284), 1980. [20] S. Eilenberg and G. Kelly. Closed categories. In Proceedings of the Conference on Categorical Algebra (La Jolla 1965), pages 421–562. Springer-Verlag, 1966. [21] P. Gabriel and M. Zisman. Calculus of Fractions and Homotopy Theory. Number 35 in Ergebnisse der Math. Springer- Verlag, 1967. [22] K. Hess. A general framework for homotopic descent and codescent. arXiv:1001.1556, 2010. [23] A. Hirschowitz and C. Simpson. Descente pour les n-champs. arXiv:math/9807049, 2011. [24] A. Joyal. Quasi-categories and Kan complexes. Journal of Pure and Applied Algebra, 175:207–222, 2002. [25] A. Joyal. The theory of quasi-categories and its applications. Quadern 45 vol II. Centre de Recerca Matemàtica Barcelona, http://mat.uab.cat/~kock/crm/hocat/advanced-course/Quadern45-2.pdf, 2008.

395 [26] A. Joyal and M. Tierney. Quasi-categories vs Segal spaces. In A. D. et al, editor, Categories in Algebra, Geometry and Mathematical Physics (StreetFest), volume 431 of Contemporary Mathematics, pages 277–325. American Mathematical Society, 2007. [27] G. Kelly. On Mac Lane’s conditions for coherence of natural associativities, commutativities, etc. J. Algebra, 1:397–402, 1964. [28] G. Kelly and S. Mac Lane. Coherence in Closed Categories. J. Pure Appl. Algebra, 1(1):97–140, 1971. [29] G. M. Kelly. Doctrinal adjunction. In Category Seminar (Proc. Sem., Sydney, 1972/1973), volume Vol. 420 of Lecture Notes in Mathematics, pages 257–280. Springer, Berlin, 1974. [30] G. M. Kelly. Elementary observations on 2-categorical limits. Bulletin of the Australian Mathematical Society, 49:301–317, 1989. [31] G. M. Kelly. Basic concepts of enriched category theory. Reprints in Theory and Applications of Categories, 10, 2005. [32] G. M. Kelly and R. H. Street. Review of the Elements of 2-Categories, volume 420 of Lecture Notes in Mathematics, pages 75–103. Springer-Verlag, 1974. [33] S. Lack. Homotopy-theoretic aspects of 2-monads. Journal of Homotopy and Related Structures, 2(2):229–260, 2007. [34] S. Lack. Icons. Applied Categorical Structures, 18(3):289–307, 2010. [35] F. W. Lawvere. Ordinal sums and equational doctrines. In Sem. on Triples and Categorical Theory (ETH, Zürich, 1966/67), pages 141–155. Springer, Berlin, 1969. [36] J. Lurie. Higher Topos Theory, volume 170 of Annals of Mathematical Studies. Princeton University Press, Princeton, New Jersey, 2009. [37] J. Lurie. Higher Algebra. http://www.math.harvard.edu/~lurie/papers/HA.pdf, September 2014. [38] S. Mac Lane. Categories for the Working Mathematician, volume 5 of Graduate Texts in Mathematics. Springer-Verlag, 1971. [39] S. Mac Lane. Categories for the Working Mathematician. Graduate Texts in Mathematics. Springer-Verlag, second edition edition, 1998. [40] M. Makkai and R. Paré. Accessible Categories: The Foundations of Categorical Model Theory, volume 104 of Contemporary Mathematics. American Mathematical Society, 1989. [41] J. P. May and K. Ponto. More concise : Localization, completion, and model categories. Chicago Lectures in Mathematics. Press, Chicago, IL, 2012. [42] J.-P. Meyer. Bar and cobar constructions. I. J. Pure Appl. Algebra, 33(2):163–207, 1984. [43] R. Pellissier. Catégories enrichies faibles. PhD thesis, Université de Nice-Sophia Antipolis, 2002. [44] A. J. Power. A 2-categorical pasting theorem. Journal of Algebra, 129:439–445, 1990. [45] C. Rezk. A model for the homotopy theory of homotopy theory. Transactions of the American Mathematical Society, 353(3):973–1007, 2001. [46] E. Riehl. On the structure of simplicial categories associated to quasi-categories. Math. Proc. Cambridge Philos. Soc., 150(3):489–504, 2011. [47] E. Riehl. Categorical Homotopy Theory, volume 24 of New Mathematical Monographs. Cambridge University Press, 2014. [48] E. Riehl. Category Theory in Context. Aurora Modern Math Originals. Dover Publications, 2016. [49] E. Riehl and D. Verity. The 2-category theory of quasi-categories. Adv. Math., 280:549–642, 2015. [50] E. Riehl and D. Verity. Completeness results for quasi-categories of algebras, homotopy limits, and related general constructions. Homol. Homotopy Appl., 17(1):1–33, 2015. [51] E. Riehl and D. Verity. Fibrations and Yoneda’s lemma in an ∞-cosmos. J. Pure Appl. Algebra, 221(3):499–564, 2017. [52] E. Riehl and D. Verity. Cartesian exponentiation and monadicity. In preparation, 2018. [53] S. Schanuel and R. H. Street. The free adjunction. Cahiers de Topologie et Géométrie Différentielle Catégoriques, 27:81–83, 1986. [54] M. Shulman. Homotopy limits and colimits and enriched category theory. Arxiv preprint arXiv:math/0610194 [math.AT], 2009. [55] R. Street. Fibrations and Yoneda’s lemma in a 2-category. In Category Seminar (Proc. Sem., Sydney, 1972/1973), volume Vol. 420 of Lecture Notes in Math., pages 104–133. Springer, Berlin, 1974. [56] R. H. Street. The formal theory of monads. Journal of Pure and Applied Algebra, 2:149–168, 1972. [57] R. H. Street. Elementary cosmoi I. In Category Seminar (Proc. Sem., Sydney, 1972/1973), volume Vol. 420 of Lecture Notes in Math., pages 134–180. Springer, Berlin, 1974. [58] R. H. Street. Fibrations in bicategories. Cahiers de Topologie et Géométrie Différentielle Catégoriques, XXI-2:111–159, 1980.

396 [59] R. H. Street. Correction to “fibrations in bicategories”. Cahiers topologie et géométrie différentielle catégoriques, 28(1):53– 56, 1987. [60] Y. J. Sulyma. ∞-categorical monadicity and descent. New York Journal of Mathematics, 23:749–777, 2017. [61] D. Verity. Weak complicial sets I, basic homotopy theory. Advances in Mathematics, 219:1081–1149, September 2008. [62] D. Verity. Enriched categories, internal categories and change of base. Reprints in Theory and Application of Categories, 20:1–266, June 2011. [63] M. Weber. Yoneda Structures from 2-toposes. Applied Categorical Structures, 15(3):259–323, 2007. [64] R. J. Wood. Abstract proarrows I. Cahiers topologie et géométrie différentielle catégoriques, XXIII-3:279–290, 1982. [65] D. Zaganidis. Towards an (∞, 2)-category of homotopy coherent monads in an ∞-cosmos. PhD thesis, École Polytechnique Fédérale de Lausanne, 2017.

397