Exercise. Dependent types I › Identification types › Unbiased elimination rule (extremely hard!) [01EE]

Prove that the elimination and computation rules for the identification type are equivalent to the following “unbiased” ones that do not fix u outside of the family C:

\frac { w:u=_A v\quad x:A,y:A,z:x=_Ay\vdash C[x,y,z]~\mathit {type}\quad x:A\vdash c[x]:C[x,x,\mathsf {refl}_u] \quad }{ \mathsf {J}'_{x,y,z\mathpunct {.}C[x,y,z]}(w; x\mathpunct {.} c[x]) : C[u,v,w] } \frac { u:A\quad x:A,y:A,z:x=_Ay\vdash C[x,y,z]~\mathit {type}\quad x:A\vdash c[x]:C[x,x,\mathsf {refl}_x] \quad }{ \mathsf {J}'_{x,y,z\mathpunct {.}C[x,y,z]}(\mathsf {refl}_u; x\mathpunct {.}{c[x]}) \equiv c[u] :C[u,u,\mathsf {refl}_u] }

Explicitly, you are being asked to use \mathsf {J} to define \mathsf {J}' and vice versa. This exercise is extremely difficult, so don’t waste too much time on it.