1.4 $\infty $Categories
In §1.1 and §1.3, we considered two closely related conditions on a simplicial set $S$:
 $(\ast )$
For $n > 0$ and $0 \leq i \leq n$, every morphism of simplicial sets $\sigma _0: \Lambda ^{n}_{i} \rightarrow S$ can be extended to an $n$simplex $\sigma : \Delta ^{n} \rightarrow S$.
 $(\ast ')$
For $0 < i < n$, every morphism of simplicial sets $\sigma _0: \Lambda ^{n}_{i} \rightarrow S_{\bullet }$ can be extended uniquely to an $n$simplex $\sigma : \Delta ^{n} \rightarrow S_{\bullet }$.
Simplicial sets satisfying $(\ast )$ are called Kan complexes and form the basis for a combinatorial approach to homotopy theory, while simplicial sets satisfying $(\ast ')$ can be identified with categories (Propositions 1.3.3.1 and 1.3.4.1). These notions admit a common generalization:
Definition 1.4.0.1. An $\infty $category is a simplicial set $S$ which satisfies the following condition:
 $(\ast '')$
For $0 < i < n$, every morphism of simplicial sets $\sigma _0: \Lambda ^{n}_{i} \rightarrow S$ can be extended to an $n$simplex $\sigma : \Delta ^{n} \rightarrow S_{\bullet }$.
Example 1.4.0.3. Every Kan complex is an $\infty $category. In particular, if $X$ is a topological space, then the singular simplicial set $\operatorname{Sing}_{\bullet }(X)$ is an $\infty $category.
Example 1.4.0.4. For every category $\operatorname{\mathcal{C}}$, the nerve $\operatorname{N}_{\bullet }(\operatorname{\mathcal{C}})$ is an $\infty $category.
Example 1.4.0.6 (Products of $\infty $Categories). Let $\{ S_{\alpha } \} _{\alpha \in A}$ be a collection of simplicial sets parametrized by a set $A$, and let $S= \prod _{\alpha \in A} S_{\alpha }$ denote their product. If each $S_{\alpha }$ is an $\infty $category, then $S$ is an $\infty $category. The converse holds provided that each factor $S_{\alpha }$ is nonempty.
Example 1.4.0.7 (Coproducts of $\infty $Categories). Let $\{ S_{\alpha } \} _{\alpha \in A}$ be a collection of simplicial sets parametrized by a set $A$, and let $S = \coprod _{\alpha \in A} S_{\alpha }$ denote their coproduct. For each $0 < i < n$, the restriction map
\[ \theta : \operatorname{Hom}_{\operatorname{Set_{\Delta }}}( \Delta ^ n, S ) \rightarrow \operatorname{Hom}_{\operatorname{Set_{\Delta }}}( \Lambda ^ n_ i, S ) \]
can be identified with the coproduct (formed in the arrow category $\operatorname{Fun}( [1], \operatorname{Set})$) of restriction maps $\theta _{\alpha }: \operatorname{Hom}_{\operatorname{Set_{\Delta }}}( \Delta ^ n, S_{\alpha }) \rightarrow \operatorname{Hom}_{\operatorname{Set_{\Delta }}}( \Lambda ^ n_ i, S_{\alpha } )$; this follows from the connectedness of the simplicial sets $\Delta ^{n}$ and $\Lambda ^{n}_{i}$ (see Example 1.2.1.7 and Remark 1.2.4.5). It follows that $\theta $ is a surjection if and only if each $\theta _{\alpha }$ is a surjection. Allowing $n$ and $i$ to vary, we conclude that $S$ is an $\infty $category if and only if each summand $S_{\alpha }$ is an $\infty $category.
Throughout this book, we will generally use calligraphic letters (like $\operatorname{\mathcal{C}}$, $\operatorname{\mathcal{D}}$, and $\operatorname{\mathcal{E}}$) to denote $\infty $categories, and we will generally describe them using terminology borrowed from category theory. For example, if $\operatorname{\mathcal{C}}= S$ is an $\infty $category, then we will refer to vertices of the simplicial set $S$ as objects of the $\infty $category $\operatorname{\mathcal{C}}$, and to edges of the simplicial set $S$ as morphisms of the $\infty $category $\operatorname{\mathcal{C}}$ (see §1.4.1). One of the central themes of this book is that $\infty $categories behave much like ordinary categories. In particular, for any $\infty $category $\operatorname{\mathcal{C}}$, there is a notion of composition for morphisms of $\operatorname{\mathcal{C}}$, which we study in §1.4.4. Given a pair of morphisms $f: X \rightarrow Y$ and $g: Y \rightarrow Z$ in $\operatorname{\mathcal{C}}$ (corresponding to edges $f,g \in S_{1}$ satisfying $d^{1}_0(f) = d^{1}_1(g)$), the pair $(f,g)$ defines a map of simplicial sets $\sigma _0: \Lambda ^{2}_{1} \rightarrow \operatorname{\mathcal{C}}$. Applying condition $(\ast '')$, we can extend $\sigma _0$ to a $2$simplex $\sigma $ of $\operatorname{\mathcal{C}}$, which we can think of heuristically as a commutative diagram
\[ \xymatrix@R =50pt@C=50pt{ & Y \ar [dr]^{g} & \\ X \ar [ur]^{f} \ar@ {>}[rr]^{h} & & Z. } \]
In this case, we will refer to the morphism $h = d^{2}_1(\sigma )$ as a composition of $f$ and $g$. However, this comes with a caveat: the extension $\sigma $ is usually not unique, so the morphism $h$ is not completely determined by $f$ and $g$. However, we will show that it is unique up to a certain notion of homotopy which we study in §1.4.3. We apply this observation in §1.4.5 to give a concrete description of the homotopy category $\mathrm{h} \mathit{\operatorname{\mathcal{C}}}$ (in the sense of Definition 1.3.6.1) when $\operatorname{\mathcal{C}}$ is an $\infty $category (see Definition 1.4.5.3 and Proposition 1.4.5.7).
Structure

Subsection 1.4.1: Objects and Morphisms

Subsection 1.4.2: The Opposite of an $\infty $Category

Subsection 1.4.3: Homotopies of Morphisms

Subsection 1.4.4: Composition of Morphisms

Subsection 1.4.5: The Homotopy Category of an $\infty $Category

Subsection 1.4.6: Isomorphisms