Let y be given.
We will
prove y ∈ X ∖ {x}.
We prove the intermediate
claim HyUex:
∃W : set, y ∈ W ∧ W ∈ UFam.
An
exact proof term for the current goal is
(UnionE UFam y HyU).
Set U to be the term
Eps_i (λU0 : set ⇒ y ∈ U0 ∧ U0 ∈ UFam).
We prove the intermediate
claim HUprop:
y ∈ U ∧ U ∈ UFam.
An
exact proof term for the current goal is
(Eps_i_ex (λU0 : set ⇒ y ∈ U0 ∧ U0 ∈ UFam) HyUex).
We prove the intermediate
claim HyU0:
y ∈ U.
An
exact proof term for the current goal is
(andEL (y ∈ U) (U ∈ UFam) HUprop).
We prove the intermediate
claim HUin:
U ∈ UFam.
An
exact proof term for the current goal is
(andER (y ∈ U) (U ∈ UFam) HUprop).
We prove the intermediate
claim HUinTx:
U ∈ Tx.
An
exact proof term for the current goal is
(SepE1 Tx (λU0 : set ⇒ x ∉ U0) U HUin).
We prove the intermediate
claim HUSubX:
U ⊆ X.
We prove the intermediate
claim HyX:
y ∈ X.
An exact proof term for the current goal is (HUSubX y HyU0).
We prove the intermediate
claim Hynotx:
y ∉ {x}.
We prove the intermediate
claim Hyxeq:
y = x.
An
exact proof term for the current goal is
(SingE x y Hyx).
We prove the intermediate
claim HxnotU:
x ∉ U.
An
exact proof term for the current goal is
(SepE2 Tx (λU0 : set ⇒ x ∉ U0) U HUin).
We prove the intermediate
claim HynotU:
y ∉ U.
We prove the intermediate
claim Hxy:
x = y.
Use symmetry.
An exact proof term for the current goal is Hyxeq.
We prove the intermediate
claim HxU1:
x ∈ U.
rewrite the current goal using Hxy (from left to right) at position 1.
An exact proof term for the current goal is HyU1.
An exact proof term for the current goal is (HxnotU HxU1).
An exact proof term for the current goal is (HynotU HyU0).
An
exact proof term for the current goal is
(setminusI X {x} y HyX Hynotx).
Let y be given.
We will
prove y ∈ ⋃ UFam.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(setminusE1 X {x} y HyXx).
We prove the intermediate
claim Hynot:
y ∉ {x}.
An
exact proof term for the current goal is
(setminusE2 X {x} y HyXx).
We prove the intermediate
claim Hyne:
y ≠ x.
Assume Heq.
We prove the intermediate
claim Hyx:
y ∈ {x}.
rewrite the current goal using Heq (from left to right).
An
exact proof term for the current goal is
(SingI x).
An exact proof term for the current goal is (Hynot Hyx).
We prove the intermediate
claim Hsep_yx:
∃V : set, V ∈ Tx ∧ y ∈ V ∧ x ∉ V.
An
exact proof term for the current goal is
(andEL (∃V : set, V ∈ Tx ∧ y ∈ V ∧ x ∉ V) (∃U : set, U ∈ Tx ∧ x ∈ U ∧ y ∉ U) (Hsep y x HyX HxX Hyne)).
Set V to be the term
Eps_i (λV0 : set ⇒ V0 ∈ Tx ∧ y ∈ V0 ∧ x ∉ V0).
We prove the intermediate
claim HVprop:
V ∈ Tx ∧ y ∈ V ∧ x ∉ V.
An
exact proof term for the current goal is
(Eps_i_ex (λV0 : set ⇒ V0 ∈ Tx ∧ y ∈ V0 ∧ x ∉ V0) Hsep_yx).
We prove the intermediate
claim HVleft:
V ∈ Tx ∧ y ∈ V.
An
exact proof term for the current goal is
(andEL (V ∈ Tx ∧ y ∈ V) (x ∉ V) HVprop).
We prove the intermediate
claim HVinTx:
V ∈ Tx.
An
exact proof term for the current goal is
(andEL (V ∈ Tx) (y ∈ V) HVleft).
We prove the intermediate
claim HyV:
y ∈ V.
An
exact proof term for the current goal is
(andER (V ∈ Tx) (y ∈ V) HVleft).
We prove the intermediate
claim HxnotV:
x ∉ V.
An
exact proof term for the current goal is
(andER (V ∈ Tx ∧ y ∈ V) (x ∉ V) HVprop).
We prove the intermediate
claim HVinFam:
V ∈ UFam.
An
exact proof term for the current goal is
(SepI Tx (λU0 : set ⇒ x ∉ U0) V HVinTx HxnotV).
An
exact proof term for the current goal is
(UnionI UFam y V HyV HVinFam).