The slice categories \(C_{/x}\) and \(C_{x/}\) consist of objects of \(C\) equipped with a morphism to or from \(x\). Their relative versions will index the pointwise formulas for Kan extensions.

Definition 22.3.1 (Slice category). Let \(C\) be an \(\infty \)-category and let \(x\) be an object in \(C\). We define the slice categories \(C_{/x}\) and \(C_{x/}\), also known as the over category and the under category, respectively, via the following two pullback squares:

Commutative square with maps C /x to Ar(C), * to C labeled x, C /x to *, Ar(C) to C labeled t.
Commutative square with maps C x/ to Ar(C), * to C labeled x, C x/ to *, Ar(C) to C labeled s.

Note that an object of \(C_{/x}\) is a pair \((y,f\colon y \to x)\) of an object \(y\) equipped with a morphism to \(x\), and dually objects of \(C_{x/}\) are pairs \((y,f\colon x \to y)\). As a result of Proposition 1.4.4 morphisms \((y,f) \to (y',f')\) in \(C_{/x}\) may equivalently be encoded by commutative triangles of the form

Commutative triangle with vertices y, y', x and arrows labeled f, f', g.

and dually for morphisms in \(C_{x/}\).

We denote by \[ s\colon C_{/x} \to C \qquadtext { and } t\colon C_{x/} \to C \] the assignments \(s(y,f\colon y \to x) = y\) and \(t(y,f\colon x \to y) = y\), i.e. we first include the slice into the arrow category \(\Ar (C)\) and then apply the source/target functor.

Lemma 22.3.2. Consider an object \(x\) of \(C\) and consider two objects \((y,f)\) and \((y',f')\) of the slice category \(C_{/x}\). Then the hom anima in \(C_{/x}\) sits in a pullback square of the form

Commutative square with maps \Hom_C /x((y,f),(y',f')) to \Hom C(y,y'), * to \Hom C(y,x) labeled f, \Hom_C /x((y,f),(y',f')) to *, \Hom C(y,y') to \Hom C(y,x) labeled f' circ -.

A dual formula holds for the hom animae of \(C_{x/}\).

Proof. By Chapterexercise 1.4, the hom anima in \(C_{/x}\) may be computed as the following pullback:

Commutative square with maps \Hom_C /x((y,f),(y',f')) to Nat(fcolon y to x, f'colon y' to x), * to \Hom C(x,x) labeled \id x, \Hom_C /x((y,f),(y',f')) to *, Nat(fcolon y to x, f'colon y' to x) to \Hom C(x,x).

Using the equivalence \(\Fun ([1] \times [1],C) \simeq \Fun ([2],C) \times _{\Ar (C)} \Fun ([2],C)\) from Axiom D, the top right hom anima in \(\Ar (C)\) sits in a pullback square as follows:

Commutative square with maps Nat(fcolon y to x, f'colon y' to x) to \Hom C(y,y'), \Hom C(x,x) to \Hom C(y,x) labeled - circ f, Nat(fcolon y to x, f'colon y' to x) to \Hom C(x,x), \Hom C(y,y') to \Hom C(y,x) labeled f' circ -.

The claim thus follows by pasting pullback squares. □

Corollary 22.3.3. Let \(x\) be an object of \(C\). Then the slice category \(C_{/x}\) admits a terminal object \((x,\id _x)\), while \(C_{x/}\) admits an initial object \((x,\id _x)\).

Proof. The claim for \(C_{/x}\) is immediate from Lemma 22.3.2, since for every \((y, f) \in C_{/x}\) the induced map \(\id _x \circ -\colon \Hom _C(y,x) \to \Hom _C(y,x)\) is an equivalence, hence its fiber over \(f\) is contractible. The claim for \(C_{x/}\) is dual. □

Lemma 22.3.4. Let \(x\) be an object in an \(\infty \)-category \(C\).

(1)

The object \(x\) is terminal in \(C\) if and only if the forgetful functor \(s\colon C_{/x} \to C\) is an equivalence;

(2)

The object \(x\) is initial in \(C\) if and only if the forgetful functor \(t\colon C_{x/} \to C\) is an equivalence.

Proof. We prove (1); the proof of (2) is dual. If \(s\colon C_{/x}\to C\) is an equivalence, then \(x\) is terminal in \(C\) by Corollary 22.3.3, since equivalences preserve terminal objects. Conversely, suppose that \(x\) is terminal. Every object \(y\) of \(C\) admits a morphism \(y\to x\), so \(s\) is essentially surjective. By Lemma 22.3.2, the map \[ \Hom _{C_{/x}}((y,f),(y',f'))\longrightarrow \Hom _C(y,y') \] is a pullback of \(\{f\}\to \Hom _C(y,x)\). Since \(x\) is terminal, this last map is an isomorphism, and so \(s\) is fully faithful. We deduce \(s\) is an equivalence by Axiom J. □

Definition 22.3.5 (Relative slice category). For a functor \(F\colon C \to D\) and an object \(d\) of \(D\), we define the relative slice categories \(C_{/d}\) and \(C_{d/}\) via the following two pullback squares:

Commutative square with maps C /d to D /d, C to D labeled F, C /d to C labeled s, D /d to D labeled s.
Commutative square with maps C d/ to D d/, C to D labeled F, C d/ to C labeled t, D d/ to D labeled t.

Objects of \(C_{/d}\) consist of pairs \((y,f\colon F(y) \to d)\), and objects of \(C_{d/}\) consist of pairs \((y,f\colon d\to F(y))\).

Remark 22.3.6. These relative slice categories are sometimes also denoted by \(F/d\) and \(d/F\), which makes their dependencies on \(F\) more transparent.