Corollary 6.1.13. Consider a commutative square
and assume that \(p\) and \(q\) are left (resp. right) fibrations. Then the square is a pullback square if and only if for every object \(x\) of \(C\) the induced map \(f_x\colon A_x \to B_{g(x)}\) on fibers is an equivalence.
Proof
Since left (resp. right) fibrations are closed under base change by Proposition 4.2.15, the functor \(B \times_D C \to C\) is a left (resp. right) fibration. The square is a pullback square if and only if the map \((f,p)\colon A \to B \times_D C\) is an equivalence over \(C\). By Lemma 6.1.12, we may check this condition fiberwise, where it precisely becomes the claim that the induced map \(A(x) \to B(g(x))\) is an equivalence.