We prove the intermediate
claim HexUA:
∃UA ∈ Tx, A = X ∖ UA.
Set UA to be the term
Eps_i (λU : set ⇒ U ∈ Tx ∧ A = X ∖ U).
We prove the intermediate
claim HUA:
UA ∈ Tx ∧ A = X ∖ UA.
An
exact proof term for the current goal is
(Eps_i_ex (λU : set ⇒ U ∈ Tx ∧ A = X ∖ U) HexUA).
We prove the intermediate
claim HUATx:
UA ∈ Tx.
An
exact proof term for the current goal is
(andEL (UA ∈ Tx) (A = X ∖ UA) HUA).
We prove the intermediate
claim HAdef:
A = X ∖ UA.
An
exact proof term for the current goal is
(andER (UA ∈ Tx) (A = X ∖ UA) HUA).
We prove the intermediate
claim HexVB:
∃VB ∈ Tx, B1 = X ∖ VB.
Set VB to be the term
Eps_i (λU : set ⇒ U ∈ Tx ∧ B1 = X ∖ U).
We prove the intermediate
claim HVB:
VB ∈ Tx ∧ B1 = X ∖ VB.
An
exact proof term for the current goal is
(Eps_i_ex (λU : set ⇒ U ∈ Tx ∧ B1 = X ∖ U) HexVB).
We prove the intermediate
claim HVBTx:
VB ∈ Tx.
An
exact proof term for the current goal is
(andEL (VB ∈ Tx) (B1 = X ∖ VB) HVB).
We prove the intermediate
claim HB1def:
B1 = X ∖ VB.
An
exact proof term for the current goal is
(andER (VB ∈ Tx) (B1 = X ∖ VB) HVB).
We prove the intermediate
claim HAB1disj:
A ∩ B1 = Empty.
Let x be given.
Apply FalseE to the current goal.
We prove the intermediate
claim HxA:
x ∈ A.
An
exact proof term for the current goal is
(binintersectE1 A B1 x Hx).
We prove the intermediate
claim HxB1:
x ∈ B1.
An
exact proof term for the current goal is
(binintersectE2 A B1 x Hx).
We prove the intermediate
claim HxB:
x ∈ B.
We prove the intermediate
claim HxAB:
x ∈ A ∩ B.
An
exact proof term for the current goal is
(binintersectI A B x HxA HxB).
We prove the intermediate
claim HxE:
x ∈ Empty.
An
exact proof term for the current goal is
(HABdisj (λU V : set ⇒ x ∈ U) HxAB).
An
exact proof term for the current goal is
(EmptyE x HxE).
Let x be given.
We will
prove x ∈ A ∩ B1.
Apply FalseE to the current goal.
An
exact proof term for the current goal is
(EmptyE x HxE).
We prove the intermediate
claim H0notB1:
¬ (0 ∈ B1).
We prove the intermediate
claim H0X0:
0 ∈ X ∖ {0}.
We prove the intermediate
claim H00:
0 ∈ {0}.
An
exact proof term for the current goal is
(SingI 0).
An
exact proof term for the current goal is
((setminusE2 X {0} 0 H0X0) H00).
We prove the intermediate
claim H0notA2:
¬ (0 ∈ A).
An exact proof term for the current goal is H0notA.
We prove the intermediate
claim HexUV:
∃U1 V1 : set, U1 ∈ Tx ∧ V1 ∈ Tx ∧ A ⊆ U1 ∧ B1 ⊆ V1 ∧ U1 ∩ V1 = Empty.
Apply HexUV to the current goal.
Let U1 be given.
Assume HU1core.
Apply HU1core to the current goal.
Let V1 be given.
Assume HV1core.
Apply HV1core to the current goal.
Assume Hcore Hdisj.
Apply Hcore to the current goal.
Assume Hcore2 HB1sub.
Apply Hcore2 to the current goal.
Assume HUV HAsub.
Apply HUV to the current goal.
Assume HU1 HV1'.
Set U to be the term
U1 ∩ (X ∖ {0}).
We prove the intermediate
claim HU:
U ∈ Tx.
Set V to be the term
{0} ∪ V1.
We prove the intermediate
claim HV:
V ∈ Tx.
We use U to witness the existential quantifier.
We use V to witness the existential quantifier.
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 HU.
An exact proof term for the current goal is HV.
Let a be given.
We prove the intermediate
claim HaU1:
a ∈ U1.
An exact proof term for the current goal is (HAsub a HaA).
We prove the intermediate
claim HaX0:
a ∈ X ∖ {0}.
We prove the intermediate
claim HaX:
a ∈ X.
An exact proof term for the current goal is (HAsubX a HaA).
We prove the intermediate
claim Hanot0:
¬ (a ∈ {0}).
We prove the intermediate
claim Haeq:
a = 0.
An
exact proof term for the current goal is
(SingE 0 a Ha0).
We prove the intermediate
claim H0A':
0 ∈ A.
rewrite the current goal using Haeq (from right to left).
An exact proof term for the current goal is HaA.
An exact proof term for the current goal is (H0notA H0A').
An
exact proof term for the current goal is
(setminusI X {0} a HaX Hanot0).
An
exact proof term for the current goal is
(binintersectI U1 (X ∖ {0}) a HaU1 HaX0).
Let b be given.
Apply (xm (b = 0)) to the current goal.
rewrite the current goal using Hb0 (from left to right).
We prove the intermediate
claim HbX:
b ∈ X.
An exact proof term for the current goal is (HBsubX b HbB).
We prove the intermediate
claim Hbnot0:
¬ (b ∈ {0}).
We prove the intermediate
claim Hbeq:
b = 0.
An
exact proof term for the current goal is
(SingE 0 b Hb0).
An exact proof term for the current goal is (Hbn0 Hbeq).
We prove the intermediate
claim HbX0:
b ∈ X ∖ {0}.
An
exact proof term for the current goal is
(setminusI X {0} b HbX Hbnot0).
We prove the intermediate
claim HbB1:
b ∈ B1.
We prove the intermediate
claim HbV1:
b ∈ V1.
An exact proof term for the current goal is (HB1sub b HbB1).
An
exact proof term for the current goal is
(binunionI2 {0} V1 b HbV1).
Let x be given.
Apply FalseE to the current goal.
We prove the intermediate
claim HxU:
x ∈ U.
An
exact proof term for the current goal is
(binintersectE1 U V x Hx).
We prove the intermediate
claim HxV:
x ∈ V.
An
exact proof term for the current goal is
(binintersectE2 U V x Hx).
We prove the intermediate
claim HxX0:
x ∈ X ∖ {0}.
An
exact proof term for the current goal is
((setminusE2 X {0} x HxX0) Hx0).
We prove the intermediate
claim HxU1:
x ∈ U1.
We prove the intermediate
claim HxUV:
x ∈ U1 ∩ V1.
An
exact proof term for the current goal is
(binintersectI U1 V1 x HxU1 HxV1).
We prove the intermediate
claim HxE:
x ∈ Empty.
rewrite the current goal using Hdisj (from right to left).
An exact proof term for the current goal is HxUV.
An
exact proof term for the current goal is
(EmptyE x HxE).
We prove the intermediate
claim HVdef:
V = {0} ∪ V1.
rewrite the current goal using HVdef (from right to left).
An exact proof term for the current goal is HxV.
Let x be given.
Apply FalseE to the current goal.
An
exact proof term for the current goal is
(EmptyE x HxE).
∎