Let z be given.
We prove the intermediate
claim HzSub:
{z} ⊆ R.
Let y be given.
We prove the intermediate
claim Heq:
y = z.
An
exact proof term for the current goal is
(SingE z y Hy).
rewrite the current goal using Heq (from left to right).
An exact proof term for the current goal is HzR.
rewrite the current goal using
(Sing_eq_UPair z) (from left to right).
We prove the intermediate
claim Heq:
R ∖ (R ∖ {z}) = {z}.
rewrite the current goal using Heq (from right to left).
An exact proof term for the current goal is Hclosed.
∎