Proposition 9.1.4. Let \(f\colon C \to D\) be a functor. Then the following conditions are equivalent:
(1) The functor \(f\) is initial (resp. terminal).
(2) For every left (resp. right) fibration \(X \to D\) the induced map \[ - \circ f\colon \Map_D(D,X) \to \Map_D(C,X) \] is an equivalence.
(3) For every left (resp. right) fibration \(p\colon X \to S\) the commutative square
is a pullback square.
Proof
The equivalence between (1) and (2) is immediate from Lemma 9.1.3. For the equivalence between (1) and (3), note that the two vertical maps labeled \(p_*\) are still left (resp. right) fibrations by Lemma 4.2.18. Thus the square is a pullback square if and only if it induces equivalences on fibers, by Corollary 6.1.13. By Lemma 6.4.19, the map on fibers is precisely the map \[ - \circ f\colon \Map_S(D,X) \to \Map_S(C,X) \] appearing in the definition of initial (resp. terminal) functors.