Lemma 4.5.12. Let \(f\colon A\to B \) be a cocartesian fibration.
(1) Every isomorphism of \(A\) is \(f\)-cocartesian.
(2) Let \(a\xrightarrow{\alpha}a'\xrightarrow{\alpha'}a''\) be composable arrows of \(A\) over \(b\xrightarrow{\beta}b'\xrightarrow{\beta'}b''\). Assume that \(\alpha\) is \(f\)-cocartesian. Then \(\alpha'\) is \(f\)-cocartesian if and only if \(\alpha'\alpha\) is \(f\)-cocartesian.
Proof
We use Lemma 4.5.8 to test cocartesian morphisms.
(1) Without loss of generality we may treat the case of an identity \(\id_a\colon a \to a\). In this case, we can choose \(\lift_0^f(a,\id_{f(a)})\) to be the identity, so that \(\epsilon_\alpha\) must be the identity too.
(2) Consider the following diagram
where the rightmost semicircle commutes by the uniqueness statement of Lemma 4.5.7. Since \(\alpha\) is cocartesian by assumption, \(\epsilon_\alpha\) is an isomorphism, hence also its cocartesian transport along \(\beta'\). We conclude that \(\epsilon_{\alpha'\alpha}\) is an isomorphism if and only if \(\epsilon_{\alpha'}\) is an isomorphism, which is what we wanted to show.