Let b be given.
Assume Hb.
Let x be given.
Assume Hxb.
Set A to be the term {I𝒫 R|∃a1R, ∃b1R, I = {yR|order_rel R a1 y order_rel R y b1}}.
Set B to be the term {I𝒫 R|∃b1R, I = {yR|order_rel R y b1}}.
Set C to be the term {I𝒫 R|∃a1R, I = {yR|order_rel R a1 y}}.
Set Bold to be the term (A B C).
Apply (binunionE' Bold {R} b (∃IR_standard_basis, x I I b)) to the current goal.
Assume HbU: b Bold.
Apply (binunionE' (A B) C b (∃IR_standard_basis, x I I b)) to the current goal.
Assume HbAB: b (A B).
Apply (binunionE' A B b (∃IR_standard_basis, x I I b)) to the current goal.
Assume HbA: b A.
We prove the intermediate claim Hex: ∃a0R, ∃b0R, b = {yR|order_rel R a0 y order_rel R y b0}.
An exact proof term for the current goal is (SepE2 (𝒫 R) (λI0 : set∃a0R, ∃b0R, I0 = {yR|order_rel R a0 y order_rel R y b0}) b HbA).
Apply Hex to the current goal.
Let a0 be given.
Assume Ha0core.
Apply Ha0core to the current goal.
Assume Ha0R: a0 R.
Assume Hexb0: ∃b0R, b = {yR|order_rel R a0 y order_rel R y b0}.
Apply Hexb0 to the current goal.
Let b0 be given.
Assume Hb0core.
Apply Hb0core to the current goal.
Assume Hb0R: b0 R.
Assume Hbeq: b = {yR|order_rel R a0 y order_rel R y b0}.
Set I to be the term open_interval a0 b0.
We prove the intermediate claim HIinStdBasis: I R_standard_basis.
We prove the intermediate claim HIa: I {open_interval a0 bb|bbR}.
An exact proof term for the current goal is (ReplI R (λbb : setopen_interval a0 bb) b0 Hb0R).
An exact proof term for the current goal is (famunionI R (λaa : set{open_interval aa bb|bbR}) a0 I Ha0R HIa).
We prove the intermediate claim HxInSet: x {yR|order_rel R a0 y order_rel R y b0}.
rewrite the current goal using Hbeq (from right to left).
An exact proof term for the current goal is Hxb.
We prove the intermediate claim HxR: x R.
An exact proof term for the current goal is (SepE1 R (λy : setorder_rel R a0 y order_rel R y b0) x HxInSet).
We prove the intermediate claim Hxconj: order_rel R a0 x order_rel R x b0.
An exact proof term for the current goal is (SepE2 R (λy : setorder_rel R a0 y order_rel R y b0) x HxInSet).
We prove the intermediate claim Hax: order_rel R a0 x.
An exact proof term for the current goal is (andEL (order_rel R a0 x) (order_rel R x b0) Hxconj).
We prove the intermediate claim Hxb0: order_rel R x b0.
An exact proof term for the current goal is (andER (order_rel R a0 x) (order_rel R x b0) Hxconj).
We prove the intermediate claim Haxlt: Rlt a0 x.
An exact proof term for the current goal is (order_rel_R_implies_Rlt a0 x Hax).
We prove the intermediate claim Hxblt: Rlt x b0.
An exact proof term for the current goal is (order_rel_R_implies_Rlt x b0 Hxb0).
We prove the intermediate claim HxI: x I.
An exact proof term for the current goal is (SepI R (λy : setRlt a0 y Rlt y b0) x HxR (andI (Rlt a0 x) (Rlt x b0) Haxlt Hxblt)).
We prove the intermediate claim HIsubB: I b.
Let y be given.
Assume HyI: y I.
We will prove y b.
We prove the intermediate claim HyR: y R.
An exact proof term for the current goal is (SepE1 R (λy0 : setRlt a0 y0 Rlt y0 b0) y HyI).
We prove the intermediate claim Hyconj: Rlt a0 y Rlt y b0.
An exact proof term for the current goal is (SepE2 R (λy0 : setRlt a0 y0 Rlt y0 b0) y HyI).
We prove the intermediate claim Hay: Rlt a0 y.
An exact proof term for the current goal is (andEL (Rlt a0 y) (Rlt y b0) Hyconj).
We prove the intermediate claim Hyb: Rlt y b0.
An exact proof term for the current goal is (andER (Rlt a0 y) (Rlt y b0) Hyconj).
We prove the intermediate claim Hayrel: order_rel R a0 y.
An exact proof term for the current goal is (Rlt_implies_order_rel_R a0 y Hay).
We prove the intermediate claim Hybrel: order_rel R y b0.
An exact proof term for the current goal is (Rlt_implies_order_rel_R y b0 Hyb).
We prove the intermediate claim HySet: y {zR|order_rel R a0 z order_rel R z b0}.
An exact proof term for the current goal is (SepI R (λz : setorder_rel R a0 z order_rel R z b0) y HyR (andI (order_rel R a0 y) (order_rel R y b0) Hayrel Hybrel)).
rewrite the current goal using Hbeq (from left to right).
An exact proof term for the current goal is HySet.
We use I to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HIinStdBasis.
Apply andI to the current goal.
An exact proof term for the current goal is HxI.
An exact proof term for the current goal is HIsubB.
Assume HbB: b B.
We prove the intermediate claim Hex: ∃b0R, b = {yR|order_rel R y b0}.
An exact proof term for the current goal is (SepE2 (𝒫 R) (λI0 : set∃b0R, I0 = {yR|order_rel R y b0}) b HbB).
Apply Hex to the current goal.
Let b0 be given.
Assume Hb0core.
Apply Hb0core to the current goal.
Assume Hb0R: b0 R.
Assume Hbeq: b = {yR|order_rel R y b0}.
We prove the intermediate claim HxInSet: x {yR|order_rel R y b0}.
rewrite the current goal using Hbeq (from right to left).
An exact proof term for the current goal is Hxb.
We prove the intermediate claim HxR: x R.
An exact proof term for the current goal is (SepE1 R (λy : setorder_rel R y b0) x HxInSet).
We prove the intermediate claim Hrel: order_rel R x b0.
An exact proof term for the current goal is (SepE2 R (λy : setorder_rel R y b0) x HxInSet).
We prove the intermediate claim Hxltb0: Rlt x b0.
An exact proof term for the current goal is (order_rel_R_implies_Rlt x b0 Hrel).
We prove the intermediate claim Hxpm: x open_interval (add_SNo x (minus_SNo 1)) (add_SNo x 1).
An exact proof term for the current goal is (real_in_open_interval_minus1_plus1 x HxR).
Set a1 to be the term add_SNo x (minus_SNo 1).
Set c1 to be the term add_SNo x 1.
We prove the intermediate claim Ha1R: a1 R.
An exact proof term for the current goal is (open_interval_left_in_R a1 c1 x Hxpm).
We prove the intermediate claim Hleft: Rlt a1 x.
We prove the intermediate claim Hconj: Rlt a1 x Rlt x c1.
An exact proof term for the current goal is (SepE2 R (λy : setRlt a1 y Rlt y c1) x Hxpm).
An exact proof term for the current goal is (andEL (Rlt a1 x) (Rlt x c1) Hconj).
Set I to be the term open_interval a1 b0.
We prove the intermediate claim HIinStdBasis: I R_standard_basis.
We prove the intermediate claim HIa: I {open_interval a1 bb|bbR}.
An exact proof term for the current goal is (ReplI R (λbb : setopen_interval a1 bb) b0 Hb0R).
An exact proof term for the current goal is (famunionI R (λaa : set{open_interval aa bb|bbR}) a1 I Ha1R HIa).
We prove the intermediate claim HxI: x I.
An exact proof term for the current goal is (SepI R (λy : setRlt a1 y Rlt y b0) x HxR (andI (Rlt a1 x) (Rlt x b0) Hleft Hxltb0)).
We prove the intermediate claim HIsubB: I b.
Let y be given.
Assume HyI: y I.
We will prove y b.
We prove the intermediate claim HyR: y R.
An exact proof term for the current goal is (SepE1 R (λy0 : setRlt a1 y0 Rlt y0 b0) y HyI).
We prove the intermediate claim Hyconj: Rlt a1 y Rlt y b0.
An exact proof term for the current goal is (SepE2 R (λy0 : setRlt a1 y0 Rlt y0 b0) y HyI).
We prove the intermediate claim Hyb: Rlt y b0.
An exact proof term for the current goal is (andER (Rlt a1 y) (Rlt y b0) Hyconj).
We prove the intermediate claim Hyrel: order_rel R y b0.
An exact proof term for the current goal is (Rlt_implies_order_rel_R y b0 Hyb).
We prove the intermediate claim HySet: y {zR|order_rel R z b0}.
An exact proof term for the current goal is (SepI R (λz : setorder_rel R z b0) y HyR Hyrel).
rewrite the current goal using Hbeq (from left to right).
An exact proof term for the current goal is HySet.
We use I to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HIinStdBasis.
Apply andI to the current goal.
An exact proof term for the current goal is HxI.
An exact proof term for the current goal is HIsubB.
An exact proof term for the current goal is HbAB.
Assume HbC: b C.
We prove the intermediate claim Hex: ∃a0R, b = {yR|order_rel R a0 y}.
An exact proof term for the current goal is (SepE2 (𝒫 R) (λI0 : set∃a0R, I0 = {yR|order_rel R a0 y}) b HbC).
Apply Hex to the current goal.
Let a0 be given.
Assume Ha0core.
Apply Ha0core to the current goal.
Assume Ha0R: a0 R.
Assume Hbeq: b = {yR|order_rel R a0 y}.
We prove the intermediate claim HxInSet: x {yR|order_rel R a0 y}.
rewrite the current goal using Hbeq (from right to left).
An exact proof term for the current goal is Hxb.
We prove the intermediate claim HxR: x R.
An exact proof term for the current goal is (SepE1 R (λy : setorder_rel R a0 y) x HxInSet).
We prove the intermediate claim Hrel: order_rel R a0 x.
An exact proof term for the current goal is (SepE2 R (λy : setorder_rel R a0 y) x HxInSet).
We prove the intermediate claim Ha0ltx: Rlt a0 x.
An exact proof term for the current goal is (order_rel_R_implies_Rlt a0 x Hrel).
We prove the intermediate claim Hxpm: x open_interval (add_SNo x (minus_SNo 1)) (add_SNo x 1).
An exact proof term for the current goal is (real_in_open_interval_minus1_plus1 x HxR).
Set a1 to be the term add_SNo x (minus_SNo 1).
Set c1 to be the term add_SNo x 1.
We prove the intermediate claim Hright: Rlt x c1.
We prove the intermediate claim Hconj: Rlt a1 x Rlt x c1.
An exact proof term for the current goal is (SepE2 R (λy : setRlt a1 y Rlt y c1) x Hxpm).
An exact proof term for the current goal is (andER (Rlt a1 x) (Rlt x c1) Hconj).
We prove the intermediate claim Hc1R: c1 R.
An exact proof term for the current goal is (open_interval_right_in_R a1 c1 x Hxpm).
Set I to be the term open_interval a0 c1.
We prove the intermediate claim HIinStdBasis: I R_standard_basis.
We prove the intermediate claim HIa: I {open_interval a0 bb|bbR}.
An exact proof term for the current goal is (ReplI R (λbb : setopen_interval a0 bb) c1 Hc1R).
An exact proof term for the current goal is (famunionI R (λaa : set{open_interval aa bb|bbR}) a0 I Ha0R HIa).
We prove the intermediate claim HxI: x I.
An exact proof term for the current goal is (SepI R (λy : setRlt a0 y Rlt y c1) x HxR (andI (Rlt a0 x) (Rlt x c1) Ha0ltx Hright)).
We prove the intermediate claim HIsubB: I b.
Let y be given.
Assume HyI: y I.
We will prove y b.
We prove the intermediate claim HyR: y R.
An exact proof term for the current goal is (SepE1 R (λy0 : setRlt a0 y0 Rlt y0 c1) y HyI).
We prove the intermediate claim Hyconj: Rlt a0 y Rlt y c1.
An exact proof term for the current goal is (SepE2 R (λy0 : setRlt a0 y0 Rlt y0 c1) y HyI).
We prove the intermediate claim Hay: Rlt a0 y.
An exact proof term for the current goal is (andEL (Rlt a0 y) (Rlt y c1) Hyconj).
We prove the intermediate claim Hayrel: order_rel R a0 y.
An exact proof term for the current goal is (Rlt_implies_order_rel_R a0 y Hay).
We prove the intermediate claim HySet: y {zR|order_rel R a0 z}.
An exact proof term for the current goal is (SepI R (λz : setorder_rel R a0 z) y HyR Hayrel).
rewrite the current goal using Hbeq (from left to right).
An exact proof term for the current goal is HySet.
We use I to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HIinStdBasis.
Apply andI to the current goal.
An exact proof term for the current goal is HxI.
An exact proof term for the current goal is HIsubB.
An exact proof term for the current goal is HbU.
Assume HbR: b {R}.
We prove the intermediate claim HbEq: b = R.
An exact proof term for the current goal is (SingE R b HbR).
We prove the intermediate claim HxR: x R.
rewrite the current goal using HbEq (from right to left).
An exact proof term for the current goal is Hxb.
We prove the intermediate claim HexI: ∃IR_standard_basis, x I.
An exact proof term for the current goal is (basis_on_cover R R_standard_basis (R_standard_basis_is_basis) x HxR).
Apply HexI to the current goal.
Let I be given.
Assume Hcore: I R_standard_basis x I.
Apply Hcore to the current goal.
Assume HIbasis: I R_standard_basis.
Assume HxI: x I.
We use I to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HIbasis.
Apply andI to the current goal.
An exact proof term for the current goal is HxI.
We will prove I b.
rewrite the current goal using HbEq (from left to right).
We prove the intermediate claim HIPow: I 𝒫 R.
An exact proof term for the current goal is ((basis_on_sub_Power R R_standard_basis (R_standard_basis_is_basis)) I HIbasis).
An exact proof term for the current goal is (PowerE R I HIPow).
An exact proof term for the current goal is Hb.