Lemma 7.3.2 (Fubini for indexed limits). Let \(I\), \(J\), and \(C\) be categories. If \(C\) admits \(I\)-indexed and \(J\)-indexed limits, then it admits \((I\times J)\)-indexed limits. For every functor \(F\colon I\times J\to C\), there are canonical isomorphisms \[ \lim_{(i,j):I\times J}F(i,j) \simeq \lim_{i:I}\lim_{j:J}F(i,j) \simeq \lim_{j:J}\lim_{i:I}F(i,j), \] natural in \(F\). The analogous statement holds for colimits.
Proof
Under the exponential-law equivalence \[ \Fun(I\times J,C)\simeq\Fun(I,\Fun(J,C)), \] the constant-diagram functor \(C\to\Fun(I\times J,C)\) is the composite \[ C\xrightarrow{\const_J}\Fun(J,C) \xrightarrow{\const_I}\Fun(I,\Fun(J,C)). \] By the dual statement in Lemma 7.3.1, the second functor admits the pointwise \(I\)-indexed limit functor as a right adjoint, while the first admits \(\lim_J\) as a right adjoint. Their composite is therefore right adjoint to the constant \((I\times J)\)-diagram functor and computes \(\lim_J\lim_I\). Reversing \(I\) and \(J\) gives the other iterated limit. The displayed isomorphisms, including their naturality in \(F\), follow from uniqueness of right adjoints. The colimit statement is dual.
From Section 7.3, Limits and colimits in functor categories.