Let X be given.
We prove the intermediate
claim Hdiff_empty:
X ∖ X = Empty.
Let x be given.
Assume Hx.
We prove the intermediate
claim Hxin:
x ∈ X.
An
exact proof term for the current goal is
(setminusE1 X X x Hx).
We prove the intermediate
claim Hxnot:
x ∉ X.
An
exact proof term for the current goal is
(setminusE2 X X x Hx).
Apply FalseE to the current goal.
An exact proof term for the current goal is (Hxnot Hxin).
We prove the intermediate
claim HfinDiff:
finite (X ∖ X).
rewrite the current goal using Hdiff_empty (from left to right).
∎