We prove the intermediate
claim HAsubX:
A ⊆ X.
An
exact proof term for the current goal is
(open_in_subset X Tx A HAopen).
We prove the intermediate
claim HApower:
A ∈ 𝒫 X.
An
exact proof term for the current goal is
(PowerI X A HAsubX).
We prove the intermediate
claim HcompSubX:
X ∖ A ⊆ X.
We prove the intermediate
claim HcompPower:
(X ∖ A) ∈ 𝒫 X.
An
exact proof term for the current goal is
(PowerI X (X ∖ A) HcompSubX).
We prove the intermediate
claim Hdisjoint:
A ∩ (X ∖ A) = Empty.
Let x be given.
Apply (setminusE X A x HxComp) to the current goal.
Assume _.
An exact proof term for the current goal is (HxNotA HxA).
We prove the intermediate
claim HcompNe:
(X ∖ A) ≠ Empty.
We prove the intermediate
claim HAeqX:
A = X.
An exact proof term for the current goal is HAsubX.
Let x be given.
Apply (xm (x ∈ A)) to the current goal.
Assume HxA.
An exact proof term for the current goal is HxA.
Assume HxNotA.
We prove the intermediate
claim Hxcomp:
x ∈ X ∖ A.
An
exact proof term for the current goal is
(setminusI X A x HxX HxNotA).
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 ∈ A)).
An exact proof term for the current goal is (HAneX HAeqX).
We prove the intermediate
claim Hunion:
A ∪ (X ∖ A) = X.
Let x be given.
Apply (binunionE A (X ∖ A) x Hx) to the current goal.
Assume HxA.
An exact proof term for the current goal is (HAsubX x HxA).
Assume HxComp.
An
exact proof term for the current goal is
(setminusE1 X A x HxComp).
Let x be given.
Apply (xm (x ∈ A)) to the current goal.
Assume HxA.
An
exact proof term for the current goal is
(binunionI1 A (X ∖ A) x HxA).
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 HApower.
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 HAne.
An exact proof term for the current goal is HcompNe.
An exact proof term for the current goal is Hunion.
∎