Lemma. Unstraightening followed by straightening [01JC]

Let B:\mathcal {U} for some universe (\mathcal {U}, \mathcal {T}), and let E:B\to \mathcal {U} be an arbitrary family. We can construct an edge \mathsf {str}_B(\mathsf {unstr}_B E) \approx _{(\mathcal {U} / \mathcal {T})^B} E as follows.

First of all, such an edge is given by a family of equivalences {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(b:B)}} \mathsf {Equiv}\left ( \mathsf {fib}_{\pi _E}(b),E(b) \right ) where \pi _E\colon \left ({\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(b:B)}}E(b)\right )\to B is the evident projection. For each b:B we consider the following sequence of equivalences:

\begin {aligned} &\mathsf {fib}_{\pi _E}(b) \\ &\quad \xrightarrow {\equiv } {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(u:{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:B)}}E(x))}}u.1=_Bb \\ &\quad \xrightarrow {(1)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:B)}}{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(e:E(x))}}x=_Bb \\ &\quad \xrightarrow {(2)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(u:\left \{b\right \}^-_{\Delta B})}} E(u.1) \\ &\quad \xrightarrow {(3)} E(b) \end {aligned}

If (\mathcal {U}, \mathcal {T}) is univalent, then so is (\mathcal {U} / \mathcal {T})^B and thus we have exhibited \mathsf {str}_B as a retraction of \mathsf {unstr}_B.