Lemma. Characterization of cartesian maps [frct-0020]
A morphism {\bar {x}}\xrightarrow [f]{\bar {f}}{\bar {y}}\in E^{\mathsf {op}} is cartesian over {x}\xrightarrow {{f}}{y} if and only if the vertical leg of f is an isomorphism.
Proof.
Suppose that {\bar {x}}\xrightarrow [f]{\bar {f}}{\bar {y}} is represented by a span {\mathopen {}\left \{\bar {x}\leftarrow \bar {y}_{x}\to \bar {y}\right \}\mathclose {}} in E in which the vertical leg \bar {x}\leftarrow \bar {y}_{x} is an isomorphism. We must show that {\bar {x}}\xrightarrow [f]{\bar {f}}{\bar {y}} is cartesian in E^{\mathsf {op}}. We fix a morphism {\bar {w}}\xrightarrow [m;f]{\bar {h}}{\bar {y}}\in E^{\mathsf {op}} where {w}\xrightarrow {{m}}{x}, depicted below in terms of E^{\mathsf {op}}:
We must define the unique intervening map {\bar {w}}\xrightarrow [m]{}{\bar {x}} in E^{\mathsf {op}}. We first translate the above into the language of E by unfolding definitions:
The desired intervening map \bar {w}\xrightarrow [m]{} \bar {x}\in E^{\mathsf {op}} shakes out in the language of E to be a span {\mathopen {}\left \{\bar {w}\xleftarrow [1_{w}]{} \bar {y}_{w}\xrightarrow [m]{} \bar {x}\right \}\mathclose {}} in which the left-hand leg is vertical and the right-hand leg is cartesian over {w}\xrightarrow {{m}}{x}. But the left-hand span {\mathopen {}\left \{\bar {w}\xleftarrow [1_{w}]{}\bar {y}_{w}\to \bar {y}_{x}\cong \bar {x}\right \}\mathclose {}} in the diagram above is exactly what we need.