Let z be given.
We prove the intermediate
claim Hz1:
z ∈ {x1}.
We prove the intermediate
claim Hz2:
z ∈ {x2}.
We prove the intermediate
claim Hzx1:
z = x1.
An
exact proof term for the current goal is
(SingE x1 z Hz1).
We prove the intermediate
claim Hzx2:
z = x2.
An
exact proof term for the current goal is
(SingE x2 z Hz2).
We prove the intermediate
claim Hx1x2:
x1 = x2.
rewrite the current goal using Hzx1 (from right to left).
rewrite the current goal using Hzx2 (from right to left).
Use reflexivity.
Apply FalseE to the current goal.
An exact proof term for the current goal is (Hneq Hx1x2).