Corollary 13.3.2 (Colimits indexed by colimits). Let \(I\) be a small category and let \(F\colon I \to \Cat\) be a functor. Write \[ L:=\colim_I F \] and let \(\lambda_i\colon F(i) \to L\) denote the components of the colimit cone.
(1) Let \(C\) be a category that admits \(I\)-indexed colimits, and let \(\psi\colon L \to C\) be a functor. Assume that \(\psi\circ\lambda_i\colon F(i) \to C\) admits a colimit for every object \(i\) of \(I\). Then these colimits assemble into a functor \(\psi_!\colon I \to C\), the functor \(\psi\) admits a colimit, and there is a canonical isomorphism \[ \colim_L \psi \simeq \colim_{i : I} \colim_{F(i)} \psi\circ\lambda_i. \]
(2) Let \(C\) be a category that admits \(I\catop\)-indexed limits, and let \(\psi\colon L \to C\) be a functor. Assume that \(\psi\circ\lambda_i\colon F(i) \to C\) admits a limit for every object \(i\) of \(I\). Then these limits assemble into a functor \(\psi_*\colon I\catop \to C\), the functor \(\psi\) admits a limit, and there is a canonical isomorphism \[ \lim_L \psi \simeq \lim_{i : I\catop} \lim_{F(i)} \psi\circ\lambda_i. \]
Proof
Let \(p_F\colon E := \int_{i : I}F(i) \to I\) be the cocartesian fibration classified by \(F\). By Theorem 13.2.1, the category \(L\) is the localization of \(E\) at the \(p_F\)-cocartesian morphisms. Write \[ \gamma\colon E \longrightarrow L \] for the localization functor. Its restriction to the fiber \(E_i\simeq F(i)\) identifies with \(\lambda_i\).
For part (1), apply Lemma 13.3.1 to \(\psi\circ\gamma\colon E \to C\). It supplies a left Kan extension \[ (p_F)_!(\psi\circ\gamma)\colon I \longrightarrow C, \] which is the asserted functor \(\psi_!\), and identifies its value at \(i\) with \(\colim_{F(i)}\psi\circ\lambda_i\). Since \(C\) admits \(I\)-indexed colimits, the functor \(\psi_!\) admits a colimit. The same lemma therefore gives \[ \colim_E \psi\circ\gamma \simeq \colim_{i : I}\colim_{F(i)}\psi\circ\lambda_i. \] The localization \(\gamma\) is terminal by Proposition 9.1.9. Hence Corollary 13.1.6 identifies the left-hand side with \(\colim_L\psi\), proving part (1).
For part (2), apply part (1) to the functor \(F\catop\colon I \to \Cat\) and the functor \(\psi\catop\colon L\catop \to C\catop\). The opposite-category functor is an equivalence \(\Cat \to \Cat\) and therefore preserves colimits, so that \[ L\catop \simeq \colim_{i : I} F(i)\catop. \] Translating the resulting statement in \(C\catop\) back to \(C\) gives the asserted functor \(\psi_*\colon I\catop \to C\) and the formula for its limit.