Lemma. Flipping is involutive [01EK]

Given p:u=_Av, we may identify p with \overline {\overline {p}}. In particular, we may construct the following witness of involution:

\begin {aligned} & \mathsf {flipInv} : {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(u,v:A)}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(p:u=_Av)}} \overline {\overline {p}}=_{u=_Av} p \\ & \mathsf {flipInv}~u~u~\mathsf {refl}_u :\equiv \mathsf {refl}_{\mathsf {refl}_u} \end {aligned}

The implicit definition above is justified by the following closed form:

\mathsf {flipInv} :\equiv \lambda u,v,p\mathpunct {.} \mathsf {J}_{y,q\mathpunct {.} \overline {\overline {q}} =_{u=_Ay} q}(p; \mathsf {refl}_{\mathsf {refl}_u})