Only one direction is non-trivial. We must prove the following:
\lVert X \rVert _{-1}
\times
\bigl ({\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod }
}_{(x,y:X)}}\lVert x=_Xy\rVert _{-1}\bigr )
\to
\mathsf {isContr} \lVert X\rVert _0
Noting that being contractible is a proposition, it suffices to prove the following, fixing x_0:X and assuming {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod }
}_{(x,y:X)}} \lVert x=_X y\rVert _{-1}:
{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod }
}_{(u:\lVert X \rVert _0)}} \lvert x_0\rvert _0 =_{\lVert X \rVert _0} u
Becuase \lVert X\rVert _0 is a set, the identification type \lvert x_0\rvert _0=_{\lVert X \rVert _0}u is a proposition. Therefore, it suffices to fix y:X and prove:
\lvert x_0\rvert _0 =_{\lVert X \rVert _0} \lvert y\rvert _0
By our assumption, we have \lVert x_0=_Xy\rVert _{-1}, but we are trying to prove a proposition, so we may assume x_0=_X y. Then we are done.