Let U be given.
Let p be given.
rewrite the current goal using Hdef (from left to right).
rewrite the current goal using HeqPlane (from right to left).
An exact proof term for the current goal is HU.
rewrite the current goal using HeqPlane (from left to right).
An exact proof term for the current goal is HUgenRR.
An exact proof term for the current goal is (HUsub p HpU).
We prove the intermediate
claim HUprop:
∀x ∈ U, ∃b ∈ B, x ∈ b ∧ b ⊆ U.
An
exact proof term for the current goal is
(SepE2 (𝒫 EuclidPlane) (λU0 : set ⇒ ∀x0 ∈ U0, ∃b0 ∈ B, x0 ∈ b0 ∧ b0 ⊆ U0) U HUgen).
We prove the intermediate
claim Hexb:
∃b ∈ B, p ∈ b ∧ b ⊆ U.
An exact proof term for the current goal is (HUprop p HpU).
Apply Hexb to the current goal.
Let b be given.
We prove the intermediate
claim HbB:
b ∈ B.
An
exact proof term for the current goal is
(andEL (b ∈ B) (p ∈ b ∧ b ⊆ U) Hbpair).
We prove the intermediate
claim Hbprop:
p ∈ b ∧ b ⊆ U.
An
exact proof term for the current goal is
(andER (b ∈ B) (p ∈ b ∧ b ⊆ U) Hbpair).
We prove the intermediate
claim Hpb:
p ∈ b.
An
exact proof term for the current goal is
(andEL (p ∈ b) (b ⊆ U) Hbprop).
We prove the intermediate
claim HbsubU:
b ⊆ U.
An
exact proof term for the current goal is
(andER (p ∈ b) (b ⊆ U) Hbprop).
Let U0 be given.
Let V0 be given.
rewrite the current goal using Hbeq (from right to left).
An exact proof term for the current goal is Hpb.
We prove the intermediate
claim HpUV:
p ∈ setprod U0 V0.
An exact proof term for the current goal is HpbUV.
We prove the intermediate
claim Hp0U0:
p 0 ∈ U0.
An
exact proof term for the current goal is
(ap0_Sigma U0 (λ_ : set ⇒ V0) p HpUV).
We prove the intermediate
claim Hp1V0:
p 1 ∈ V0.
An
exact proof term for the current goal is
(ap1_Sigma U0 (λ_ : set ⇒ V0) p HpUV).
We prove the intermediate
claim HpEta:
p = (p 0,p 1).
An
exact proof term for the current goal is
(setprod_eta U0 V0 p HpUV).
An exact proof term for the current goal is HU0.
An
exact proof term for the current goal is
(HU0prop (p 0) Hp0U0).
Apply HexI1 to the current goal.
Let I1 be given.
We prove the intermediate
claim HI1prop:
(p 0) ∈ I1 ∧ I1 ⊆ U0.
We prove the intermediate
claim Hp0I1:
(p 0) ∈ I1.
An
exact proof term for the current goal is
(andEL ((p 0) ∈ I1) (I1 ⊆ U0) HI1prop).
We prove the intermediate
claim HI1sub:
I1 ⊆ U0.
An
exact proof term for the current goal is
(andER ((p 0) ∈ I1) (I1 ⊆ U0) HI1prop).
Apply Hexa to the current goal.
Let a be given.
We prove the intermediate
claim HaR:
a ∈ R.
An
exact proof term for the current goal is
(ReplE R (λb0 : set ⇒ open_interval a b0) I1 HI1fam).
Apply Hexb1 to the current goal.
Let b1 be given.
We prove the intermediate
claim Hb1R:
b1 ∈ R.
rewrite the current goal using HI1eq (from right to left).
An exact proof term for the current goal is Hp0I1.
We prove the intermediate
claim Hp0ineq:
Rlt a (p 0) ∧ Rlt (p 0) b1.
An
exact proof term for the current goal is
(SepE2 R (λz : set ⇒ Rlt a z ∧ Rlt z b1) (p 0) Hp0InInt).
We prove the intermediate
claim Hap0:
Rlt a (p 0).
An
exact proof term for the current goal is
(andEL (Rlt a (p 0)) (Rlt (p 0) b1) Hp0ineq).
We prove the intermediate
claim Hp0b1:
Rlt (p 0) b1.
An
exact proof term for the current goal is
(andER (Rlt a (p 0)) (Rlt (p 0) b1) Hp0ineq).
We prove the intermediate
claim Hab:
Rlt a b1.
An
exact proof term for the current goal is
(Rlt_tra a (p 0) b1 Hap0 Hp0b1).
An exact proof term for the current goal is HV0.
An
exact proof term for the current goal is
(HV0prop (p 1) Hp1V0).
Apply HexI2 to the current goal.
Let I2 be given.
We prove the intermediate
claim HI2prop:
(p 1) ∈ I2 ∧ I2 ⊆ V0.
We prove the intermediate
claim Hp1I2:
(p 1) ∈ I2.
An
exact proof term for the current goal is
(andEL ((p 1) ∈ I2) (I2 ⊆ V0) HI2prop).
We prove the intermediate
claim HI2sub:
I2 ⊆ V0.
An
exact proof term for the current goal is
(andER ((p 1) ∈ I2) (I2 ⊆ V0) HI2prop).
Apply Hexc to the current goal.
Let c be given.
We prove the intermediate
claim HcR:
c ∈ R.
An
exact proof term for the current goal is
(ReplE R (λd0 : set ⇒ open_interval c d0) I2 HI2fam).
Apply Hexd1 to the current goal.
Let d1 be given.
We prove the intermediate
claim Hd1R:
d1 ∈ R.
rewrite the current goal using HI2eq (from right to left).
An exact proof term for the current goal is Hp1I2.
We prove the intermediate
claim Hp1ineq:
Rlt c (p 1) ∧ Rlt (p 1) d1.
An
exact proof term for the current goal is
(SepE2 R (λz : set ⇒ Rlt c z ∧ Rlt z d1) (p 1) Hp1InInt).
We prove the intermediate
claim Hcp1:
Rlt c (p 1).
An
exact proof term for the current goal is
(andEL (Rlt c (p 1)) (Rlt (p 1) d1) Hp1ineq).
We prove the intermediate
claim Hp1d1:
Rlt (p 1) d1.
An
exact proof term for the current goal is
(andER (Rlt c (p 1)) (Rlt (p 1) d1) Hp1ineq).
We prove the intermediate
claim Hcd:
Rlt c d1.
An
exact proof term for the current goal is
(Rlt_tra c (p 1) d1 Hcp1 Hp1d1).
An
exact proof term for the current goal is
(rectangular_regionI a b1 c d1 HaR Hb1R HcR Hd1R Hab Hcd).
We prove the intermediate
claim HpRg:
p ∈ Rg.
rewrite the current goal using HpEta (from left to right).
We prove the intermediate
claim Hp0R:
(p 0) ∈ R.
An
exact proof term for the current goal is
(SepE1 R (λz : set ⇒ Rlt a z ∧ Rlt z b1) (p 0) Hp0InInt).
We prove the intermediate
claim Hp1R:
(p 1) ∈ R.
An
exact proof term for the current goal is
(SepE1 R (λz : set ⇒ Rlt c z ∧ Rlt z d1) (p 1) Hp1InInt).
rewrite the current goal using HeqPlane2 (from left to right).
We prove the intermediate
claim Hpred:
∃x y : set, (p 0,p 1) = (x,y) ∧ Rlt a x ∧ Rlt x b1 ∧ Rlt c y ∧ Rlt y d1.
We use
(p 0) to
witness the existential quantifier.
We use
(p 1) to
witness the existential quantifier.
Apply and5I to the current goal.
An exact proof term for the current goal is Hap0.
An exact proof term for the current goal is Hp0b1.
An exact proof term for the current goal is Hcp1.
An exact proof term for the current goal is Hp1d1.
We prove the intermediate
claim HRgSubb:
Rg ⊆ b.
rewrite the current goal using HI1eq (from right to left).
An exact proof term for the current goal is HI1sub.
rewrite the current goal using HI2eq (from right to left).
An exact proof term for the current goal is HI2sub.
An exact proof term for the current goal is HsetprodSub.
Let q be given.
An exact proof term for the current goal is HqRg.
An exact proof term for the current goal is (HrectSub q HqRect).
rewrite the current goal using Hbeq (from left to right).
An exact proof term for the current goal is HqInUV.
We prove the intermediate
claim HRgSubU:
Rg ⊆ U.
An
exact proof term for the current goal is
(Subq_tra Rg b U HRgSubb HbsubU).
We use Rg to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HRgRect.
Apply andI to the current goal.
An exact proof term for the current goal is HpRg.
An exact proof term for the current goal is HRgSubU.