Let X and U be given.
We prove the intermediate
claim HUpow:
U ∈ 𝒫 X.
An
exact proof term for the current goal is
(PowerI X U HUsub).
We prove the intermediate
claim HcompSubX:
X ∖ U ⊆ X.
We prove the intermediate
claim HcompPower:
(X ∖ U) ∈ 𝒫 X.
An
exact proof term for the current goal is
(PowerI X (X ∖ U) HcompSubX).
We prove the intermediate
claim Hdisjoint:
U ∩ (X ∖ U) = Empty.
Let x be given.
Apply (setminusE X U x HxComp) to the current goal.
Assume _.
An exact proof term for the current goal is (HxNotU HxU).
We prove the intermediate
claim HcompNe:
(X ∖ U) ≠ Empty.
We prove the intermediate
claim HUeqX:
U = X.
An exact proof term for the current goal is HUsub.
Let x be given.
Apply (xm (x ∈ U)) to the current goal.
Assume HxU.
An exact proof term for the current goal is HxU.
Assume HxNotU.
We prove the intermediate
claim Hxcomp:
x ∈ X ∖ U.
An
exact proof term for the current goal is
(setminusI X U x HxX HxNotU).
We prove the intermediate
claim HxEmpty:
x ∈ Empty.
rewrite the current goal using Heq (from right to left).
An exact proof term for the current goal is Hxcomp.
An
exact proof term for the current goal is
(FalseE (EmptyE x HxEmpty) (x ∈ U)).
An exact proof term for the current goal is (HUnX HUeqX).
We prove the intermediate
claim Hunion:
U ∪ (X ∖ U) = X.
Let x be given.
Apply (binunionE U (X ∖ U) x Hx) to the current goal.
Assume HxU.
An exact proof term for the current goal is (HUsub x HxU).
Assume HxComp.
An
exact proof term for the current goal is
(setminusE1 X U x HxComp).
Let x be given.
Apply (xm (x ∈ U)) to the current goal.
Assume HxU.
An
exact proof term for the current goal is
(binunionI1 U (X ∖ U) x HxU).
Apply andI to the current goal.
Apply andI to the current goal.
Apply andI to the current goal.
Apply andI to the current goal.
Apply andI to the current goal.
An exact proof term for the current goal is HUpow.
An exact proof term for the current goal is HcompPower.
An exact proof term for the current goal is Hdisjoint.
An exact proof term for the current goal is HUne.
An exact proof term for the current goal is HcompNe.
An exact proof term for the current goal is Hunion.
∎