Proposition 8.7.13 (Functor categories in cocartesian unstraightenings). Let \(p\colon E\to C\) be a small cocartesian fibration classified by a functor
\(F\colon C\to\Cat\), let \(I\) be a small category, and let \(i\) be its associated object of
\(\Cat\). Define \(q\colon Q\to C\) by the pullback square
Then \(q\) is a small cocartesian fibration classified by the composite
\[
C\xrightarrow{F}\Cat\xrightarrow{(-)^i}\Cat,
\]
where \((-)^i\) is the internal functor-category functor of
Construction 8.5.10.
Proof
Apply \(\Fun(I,-)\) to the pullback square classifying \(p\). Since functor categories preserve pullbacks, both squares in the following diagram are pullbacks:
The bottom composite is \(F_*p_I^*=p_I^*F\). Thus the outer rectangle identifies \(q\) with the pullback along \(F\) of the small cocartesian fibration used to define \((-)^i\) in Construction 8.5.10. Its classifying functor is therefore \((-)^i\circ F\).