A natural transformation \(F\to G\) between functors \(C\to D\) heuristically consists of component morphisms coherently compatible with the morphisms of \(C\). To make this heuristic precise, we will express the anima of natural transformations as a limit of hom animae in \(D\), called an end.

Definition 24.6.1 (Twisted arrow category). Let \(C\) be an \(\infty \)-category. We define its twisted arrow category \(\Tw (C)\) as the source of the left fibration whose cocartesian straightening is the Hom-functor \(\Hom _C\colon C\catop \times C \to \An \): \[ \Tw (C) := \Un ^{\cc }(\Hom _C\colon C\catop \times C \to \An ). \] In particular, it comes equipped with a left fibration \((s,t)\colon \Tw (C) \to C\catop \times C\) whose fibers are the hom animae of \(C\):

Commutative square with maps \Hom C(x,y) to Tw(C), * to Cop times C labeled (x,y), \Hom C(x,y) to *, Tw(C) to Cop times C labeled (s,t).

Remark 24.6.2. Under the complete Segal presentation of \(\infty \)-categories from Chapter 25, the twisted arrow category has the edgewise-subdivision model \[ [n]\longmapsto \Hom _{\Cat _{\infty }}([n]\catop \star [n],C). \] The inclusions of the two copies of \([n]\) induce the source and target functors, and the fiber over \((x,y)\) is \(\Hom _C(x,y)\). This gives a model-specific description of the left fibration in the preceding definition.

Unwinding the description of the unstraightening construction, we see that \(\Tw (C)\) may be described as follows:

  • The objects of \(\Tw (C)\) are morphisms in \(C\), which we will display as \(\smash {\puto {X}{Y}{\phi }}\). We have \(\smash {s\puto {X}{Y}{\phi }} = X\) and \(\rbox {1.3}{1.5}{\smash {t\puto {X}{Y}{\phi }}} = Y\).
  • A morphism \(\smash {\pwto {f}{g}}\colon \smash {\puto {X}{Y}{\phi }} \to \smash {\puto {X'}{Y'}{\phi '}}\) in \(\Tw (C)\) is a triple \((f,g,\alpha )\) consisting of a morphism \(\rbox {1.3}{1.5}{f\colon X \to X'}\) in \(C\catop \) (i.e., \(f\colon X' \to X\) in \(C\)), a morphism \(g\colon Y \to Y'\) in \(C\), and a morphism \(\alpha \colon (f,g)_!\smash {\puto {X}{Y}{\phi }} = \rbox {1.3}{1.5}{\smash {\puto {X'}{Y'}{g\phi f}}}\to \smash {\puto {X'}{Y'}{\phi '}}\) in the fiber \(\Tw (C)_{(X',Y')} = \Hom _C(X',Y')\). We will display this data by means of diagrams of the form
    Commutative square with maps X to X', Y to Y' labeled g, X to Y labeled phi, X' to Y' labeled phi'.
    Note that this is not a morphism in the usual arrow category \(\Ar (C)\), since \(f\) points in the opposite direction.

Definition 24.6.3 (End). Let \(C\) be an \(\infty \)-category and consider a functor \(F\colon C\catop \times C \to D\). The end of \(F\), denoted by \(\int _{c \in C} F(c,c)\) if it exists, is the limit of the composite functor \[ \Tw (C) \xrightarrow {(s,t)} C\catop \times C \xrightarrow {F} D. \]

Remark 24.6.4. If \(C\) is small and \(D\) admits small limits, the end of \(F\) always exists. Furthermore, if \(D \to D'\) is a functor preserving small limits, then it also preserves ends.

Lemma 24.6.5 (Fubini rule for ends). Let \(C\) and \(C'\) be \(\infty \)-categories and let \(F\colon C\catop \times C \times {C'}\catop \times C' \to D\) be a functor. Then there is an equivalence \[ \int _{c \in C} \int _{c' \in C'} F(c,c,c',c') \simeq \int _{(c,c') \in C \times C'} F(c,c,c',c'). \]

Proof. Since a limit over a product category may be computed as an iterated limit, it will suffice to produce an equivalence \[ \Tw (C \times C') \simeq \Tw (C) \times \Tw (C') \] of left fibrations over \(C\catop \times C \times {C'}\catop \times C'\). By straightening-unstraightening, it will suffice to produce a natural isomorphism between their unstraightenings: \[ (x,y,x',y') \quad \mapsto \quad \Hom _{C \times C'}((x,x'), (y,y')) \simeq \Hom _C(x,y) \times \Hom _{C'}(x',y'). \] Unwinding the definition of the hom functors, this boils down to the canonical equivalence \[ \Ar (C \times C') \iso \Ar (C) \times \Ar (C') \] over \(C \times C \times C' \times C'\), coming from the fact that \(\Ar (-) = \Fun ([1],-)\) preserves products. โ–ก

Proposition 24.6.6 (Hom animae in functor categories). Let \(F,G \colon C \to D\) be functors. Then we have the following end-formula for the anima of natural transformations from \(F\) to \(G\): \[ \Nat (F,G) \quad \simeq \quad \int _{x \in C} \Hom _D(F(x), G(x)). \] Here the right-hand side is the end of the composite functor \(C\catop \times C \xrightarrow {F\catop \times G} D\catop \times D \xrightarrow {\Hom _D} \An \).

Proof. The end imposes precisely the naturality conditions on a pointwise family of morphisms \(F(x)\to G(x)\). The rigorous identification, including all higher coherence data, is proved in Theorem 12.5.5 of [Cisinski et al. (2026)]. โ–ก

Proposition 24.6.7. Let \(F\colon I \to C\) be a functor of \(\infty \)-categories. A natural transformation \(\eta \colon F \to \const _x\) exhibits \(x \in C\) as the colimit of \(F\) if and only if the natural map \[ \eta ^*\colon \Hom _C(x,y) \iso \lim _{i \in I\catop } \Hom _C(F(i),y) \] obtained by applying \(\Hom _C(-,y)\) to \(\eta \) is an isomorphism for all \(y \in C\). A similar assertion holds for limits.

Proof. Consider the following commutative diagram:

Commutative diagram involving \Hom C(x,y), Nat(\const x,\const y), Nat(F,\const y), \lim i in Iop \Hom C(F(i),y), with arrows labeled const, - circ eta, eta^*.

here the right vertical map is induced by the evaluation functors \(\ev _i\colon \Fun (I,C) \to C\). By definition, \(x\) is a colimit of \(F\) if and only if the top map is an isomorphism for all \(y\), hence it will suffice to show that the right vertical map is an isomorphism. By Proposition 24.6.6, the top right is isomorphic to \(\lim _{(i \to i') \in \Tw (I)} \Hom _C(F(i), y)\). The source projection \(s\colon \Tw (I) \to I\catop \) is initial by Lemma 12.2.7 of [Cisinski et al. (2026)], applied to the unique functor \(I\to *\). Hence restriction along \(s\) induces an isomorphism \[ \lim _{i\in I\catop }\Hom _C(F(i),y) \iso \lim _{(i\to i')\in \Tw (I)}\Hom _C(F(i),y). \] Under the end formula, this is the inverse of the right vertical map, completing the proof. โ–ก

Corollary 24.6.8. The functors \(Y_C\colon C \hookrightarrow \Fun (C\catop ,\An )\) and \(Y_{C\catop }\colon C\catop \hookrightarrow \Fun (C,\An )\) preserve limits.

Proof. The statement for \(Y_{C\catop }\) is immediate from Proposition 24.6.7. The other one is proved dually, or may be recovered by replacing \(C\) by \(C\catop \). โ–ก