Corollary 5.1.5.10. Let $q: X \rightarrow S$ be a locally cartesian fibration of simplicial sets. The following conditions are equivalent:
The morphism $q$ is a cartesian fibration.
Every locally $q$-cartesian edge of $X$ is $q$-cartesian.
For every $2$-simplex $\sigma $:
\[ \xymatrix@R =50pt@C=50pt{ & y \ar [dr]_{g} & \\ x \ar [ur]^{f} \ar [rr]^{h} & & z } \]of the simplicial set $X$, if $f$ and $g$ are locally $q$-cartesian, then $h$ is locally $q$-cartesian.