Let X, Tx, x and U be given.
Set F to be the term
X ∖ U.
We prove the intermediate
claim HFcl:
closed_in X Tx F.
We prove the intermediate
claim HxnotF:
x ∉ F.
We prove the intermediate
claim HxU':
x ∉ U.
An
exact proof term for the current goal is
(andER (x ∈ X) (x ∉ U) (setminusE X U x HxF)).
An exact proof term for the current goal is (HxU' HxU).
Apply (Hsep x HxX F HFcl HxnotF) to the current goal.
Let f be given.
We prove the intermediate
claim Hfx0:
apply_fun f x = 0.
We prove the intermediate
claim HfF1:
∀y : set, y ∈ F → apply_fun f y = 1.
Apply andI to the current goal.
Apply andI to the current goal.
rewrite the current goal using Hgx (from left to right).
rewrite the current goal using Hfx0 (from left to right).
Let y be given.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(andEL (y ∈ X) (y ∉ U) (setminusE X U y HyF)).
rewrite the current goal using Hgy (from left to right).
rewrite the current goal using (HfF1 y HyF) (from left to right).
∎