Let X be given.
Let p be given.
Set Y to be the term
X ∖ {p}.
Let F be given.
We prove the intermediate
claim HFpowY:
F ∈ 𝒫 Y.
An
exact proof term for the current goal is
(SepE1 (𝒫 Y) (λF0 : set ⇒ finite F0) F HF).
We prove the intermediate
claim HFsubY:
F ⊆ Y.
An
exact proof term for the current goal is
(PowerE Y F HFpowY).
We prove the intermediate
claim HYsubX:
Y ⊆ X.
Let x be given.
An
exact proof term for the current goal is
(setminusE1 X {p} x HxY).
We prove the intermediate
claim HFsubX:
F ⊆ X.
An
exact proof term for the current goal is
(Subq_tra F Y X HFsubY HYsubX).
We prove the intermediate
claim HFpowX:
F ∈ 𝒫 X.
An
exact proof term for the current goal is
(PowerI X F HFsubX).
We prove the intermediate
claim HfinF:
finite F.
An
exact proof term for the current goal is
(SepE2 (𝒫 Y) (λF0 : set ⇒ finite F0) F HF).
We prove the intermediate
claim HinfComp:
infinite (X ∖ F).
Apply orIL to the current goal.
Apply orIL to the current goal.
An exact proof term for the current goal is HinfComp.
An
exact proof term for the current goal is
(SepI (𝒫 X) (λU0 : set ⇒ infinite (X ∖ U0) ∨ U0 = Empty ∨ U0 = X) F HFpowX Hpred).
Apply PowerI to the current goal.
An exact proof term for the current goal is HFamSub.
We prove the intermediate
claim HUnionEq:
⋃ Fam = Y.
Let x be given.
Let F be given.
We prove the intermediate
claim HFpowY:
F ∈ 𝒫 Y.
An
exact proof term for the current goal is
(SepE1 (𝒫 Y) (λF0 : set ⇒ finite F0) F HF).
We prove the intermediate
claim HFsubY:
F ⊆ Y.
An
exact proof term for the current goal is
(PowerE Y F HFpowY).
An exact proof term for the current goal is (HFsubY x HxF).
Let x be given.
We prove the intermediate
claim HxYsub:
{x} ⊆ Y.
Let z be given.
We prove the intermediate
claim Hzeq:
z = x.
An
exact proof term for the current goal is
(SingE x z Hz).
rewrite the current goal using Hzeq (from left to right).
An exact proof term for the current goal is HxY.
We prove the intermediate
claim HxPowY:
{x} ∈ 𝒫 Y.
An
exact proof term for the current goal is
(PowerI Y {x} HxYsub).
We prove the intermediate
claim HxFin:
finite {x}.
An
exact proof term for the current goal is
(Sing_finite x).
We prove the intermediate
claim HsingFam:
{x} ∈ Fam.
An
exact proof term for the current goal is
(SepI (𝒫 Y) (λF0 : set ⇒ finite F0) {x} HxPowY HxFin).
An
exact proof term for the current goal is
(UnionI Fam x {x} (SingI x) HsingFam).
We prove the intermediate
claim HYneX:
¬ (Y = X).
We prove the intermediate
claim HpY:
p ∈ Y.
rewrite the current goal using Heq (from left to right).
An exact proof term for the current goal is HpX.
We prove the intermediate
claim Hpnot:
p ∉ {p}.
An
exact proof term for the current goal is
(setminusE2 X {p} p HpY).
An
exact proof term for the current goal is
(Hpnot (SingI p)).
We prove the intermediate
claim HYneEmpty:
¬ (Y = Empty).
We prove the intermediate
claim HyEx:
∃x : set, x ∈ Y.
Apply HyEx to the current goal.
Let x be given.
Assume HxY.
We prove the intermediate
claim HxE:
x ∈ Empty.
rewrite the current goal using Heq (from right to left).
An exact proof term for the current goal is HxY.
An
exact proof term for the current goal is
(EmptyE x HxE).
An
exact proof term for the current goal is
(SepE2 (𝒫 X) (λU0 : set ⇒ infinite (X ∖ U0) ∨ U0 = Empty ∨ U0 = X) Y HYopen).
Apply HYdisj to the current goal.
Apply Hleft to the current goal.
We prove the intermediate
claim HcompEq:
X ∖ Y = {p}.
We prove the intermediate
claim HYdef:
Y = X ∖ {p}.
rewrite the current goal using HYdef (from left to right).
Let x be given.
We prove the intermediate
claim HxX:
x ∈ X.
An
exact proof term for the current goal is
(setminusE1 X (X ∖ {p}) x Hx).
We prove the intermediate
claim HxnotY:
x ∉ X ∖ {p}.
An
exact proof term for the current goal is
(setminusE2 X (X ∖ {p}) x Hx).
Apply (xm (x ∈ {p})) to the current goal.
Assume HxS.
An exact proof term for the current goal is HxS.
Apply FalseE to the current goal.
Apply HxnotY to the current goal.
An
exact proof term for the current goal is
(setminusI X {p} x HxX HxnotS).
Let x be given.
We will
prove x ∈ X ∖ (X ∖ {p}).
We prove the intermediate
claim Hxeq:
x = p.
An
exact proof term for the current goal is
(SingE p x Hx).
rewrite the current goal using Hxeq (from left to right).
An exact proof term for the current goal is HpX.
We prove the intermediate
claim HpnotS:
p ∉ {p}.
An
exact proof term for the current goal is
(setminusE2 X {p} p HpY).
An
exact proof term for the current goal is
(HpnotS (SingI p)).
We prove the intermediate
claim HinfSing:
infinite {p}.
rewrite the current goal using HcompEq (from right to left).
An exact proof term for the current goal is HinfComp.
An
exact proof term for the current goal is
(HinfSing (Sing_finite p)).
Assume HYemp.
An exact proof term for the current goal is (HYneEmpty HYemp).
Assume HYX.
An exact proof term for the current goal is (HYneX HYX).
An exact proof term for the current goal is (HUnionClosure Fam HFamPow).
rewrite the current goal using HUnionEq (from right to left).
An exact proof term for the current goal is HUnionIn.
An exact proof term for the current goal is (HnotOpenY HYopen).
∎