Equality Reflection

In type theory, the equality reflection rule states that if we can derive a term Ξ“ ⊒ p : x = A y proves Ξ“ 𝑝 : subscript 𝐴 π‘₯ 𝑦 \Gamma\vdash p:x=_{A}y of the Identity Type of A 𝐴 A , then the two terms x π‘₯ x and y 𝑦 y are Definitionally Equal. Explicitly, we have the rule

Ξ“βŠ’p:x=AyΞ“βŠ’x≑yprovesΓ𝑝:subscript𝐴π‘₯𝑦provesΞ“π‘₯𝑦\par\frac{\Gamma\vdash p:x=_{A}y}{\Gamma\vdash x\equiv y}

This has some immediate consequences:

Examples