Lemma 17.1.2. Assume that \(F\) is a family of morphisms in \(C\) that
is closed under pullbacks.
For any map \(v\colon y'\to y\) in \(F\), and any object \(x\) of \(C\), the
induced functor
\[
v_!\times_C \id_{C_{/x}}\colon C_{/y'}\times_C C_{/x}\to C_{/y}\times_C C_{/x}
\]
has a right adjoint, which we can describe as follows.
It sends an object \((z,s,f)\) of \(C_{/y}\times_C C_{/x}\),
seen as a diagram
to the object \((z',s',f')\) obtained by forming the cartesian square
and by choosing a composition \(s'\) of \(s\) and \(w\).
Proof
Since the Yoneda embedding is fully faithful, continuous, and compatible with slices, we see that proving the lemma for \(\PSh(C)\) implies that it holds for \(C\) itself. In other words, we may assume, without loss of generality, that \(C\) has finite products and pullbacks. But then we have \[ C_{/y}\times_C C_{/x}=C_{/y\times x} \] and we observe that pulling back along \(v\times \id_x\) in \(C\) produces the expected right adjoint.