Let x be given.
We prove the intermediate
claim HxR:
x ∈ R.
An
exact proof term for the current goal is
(SepE1 R (λx0 : set ⇒ Rlt a x0 ∧ Rlt x0 b) x Hx).
We prove the intermediate
claim Hxab:
Rlt a x ∧ Rlt x b.
An
exact proof term for the current goal is
(SepE2 R (λx0 : set ⇒ Rlt a x0 ∧ Rlt x0 b) x Hx).
We prove the intermediate
claim Hax:
Rlt a x.
An
exact proof term for the current goal is
(andEL (Rlt a x) (Rlt x b) Hxab).
We prove the intermediate
claim Hxb:
Rlt x b.
An
exact proof term for the current goal is
(andER (Rlt a x) (Rlt x b) Hxab).
We prove the intermediate
claim HaS:
SNo a.
An
exact proof term for the current goal is
(real_SNo a HaR).
We prove the intermediate
claim HbS:
SNo b.
An
exact proof term for the current goal is
(real_SNo b HbR).
We prove the intermediate
claim HxS:
SNo x.
An
exact proof term for the current goal is
(real_SNo x HxR).
We prove the intermediate
claim HaxS:
a < x.
An
exact proof term for the current goal is
(RltE_lt a x Hax).
We prove the intermediate
claim HxbS:
x < b.
An
exact proof term for the current goal is
(RltE_lt x b Hxb).
We prove the intermediate
claim HdxR:
dx ∈ R.
We prove the intermediate
claim HdyR:
dy ∈ R.
We prove the intermediate
claim HdxS:
SNo dx.
An
exact proof term for the current goal is
(real_SNo dx HdxR).
We prove the intermediate
claim HdyS:
SNo dy.
An
exact proof term for the current goal is
(real_SNo dy HdyR).
We prove the intermediate
claim H0ltdxS:
0 < dx.
We prove the intermediate
claim H0aLt:
add_SNo 0 a < x.
rewrite the current goal using
(add_SNo_0L a HaS) (from left to right).
An exact proof term for the current goal is HaxS.
We prove the intermediate
claim H0ltdyS:
0 < dy.
We prove the intermediate
claim H0xLt:
add_SNo 0 x < b.
rewrite the current goal using
(add_SNo_0L x HxS) (from left to right).
An exact proof term for the current goal is HxbS.
We prove the intermediate
claim H0ltdx:
Rlt 0 dx.
An
exact proof term for the current goal is
(RltI 0 dx real_0 HdxR H0ltdxS).
We prove the intermediate
claim H0ltdy:
Rlt 0 dy.
An
exact proof term for the current goal is
(RltI 0 dy real_0 HdyR H0ltdyS).
Apply Hexr to the current goal.
Let r3 be given.
We prove the intermediate
claim Hr3_ABCDE:
((((r3 ∈ R ∧ Rlt 0 r3) ∧ Rlt r3 dx) ∧ Rlt r3 dy) ∧ Rlt r3 1).
We prove the intermediate
claim Hr3_F:
Rlt r3 1.
We prove the intermediate
claim Hr3_ABCD:
(((r3 ∈ R ∧ Rlt 0 r3) ∧ Rlt r3 dx) ∧ Rlt r3 dy).
An
exact proof term for the current goal is
(andEL (((r3 ∈ R ∧ Rlt 0 r3) ∧ Rlt r3 dx) ∧ Rlt r3 dy) (Rlt r3 1) Hr3_ABCDE).
We prove the intermediate
claim Hr3_E:
Rlt r3 1.
An
exact proof term for the current goal is
(andER (((r3 ∈ R ∧ Rlt 0 r3) ∧ Rlt r3 dx) ∧ Rlt r3 dy) (Rlt r3 1) Hr3_ABCDE).
We prove the intermediate
claim Hr3_ABC:
((r3 ∈ R ∧ Rlt 0 r3) ∧ Rlt r3 dx).
An
exact proof term for the current goal is
(andEL ((r3 ∈ R ∧ Rlt 0 r3) ∧ Rlt r3 dx) (Rlt r3 dy) Hr3_ABCD).
We prove the intermediate
claim Hr3_D:
Rlt r3 dy.
An
exact proof term for the current goal is
(andER ((r3 ∈ R ∧ Rlt 0 r3) ∧ Rlt r3 dx) (Rlt r3 dy) Hr3_ABCD).
We prove the intermediate
claim Hr3_AB:
r3 ∈ R ∧ Rlt 0 r3.
An
exact proof term for the current goal is
(andEL (r3 ∈ R ∧ Rlt 0 r3) (Rlt r3 dx) Hr3_ABC).
We prove the intermediate
claim Hr3_C:
Rlt r3 dx.
An
exact proof term for the current goal is
(andER (r3 ∈ R ∧ Rlt 0 r3) (Rlt r3 dx) Hr3_ABC).
We prove the intermediate
claim Hr3R:
r3 ∈ R.
An
exact proof term for the current goal is
(andEL (r3 ∈ R) (Rlt 0 r3) Hr3_AB).
We prove the intermediate
claim Hr3pos:
Rlt 0 r3.
An
exact proof term for the current goal is
(andER (r3 ∈ R) (Rlt 0 r3) Hr3_AB).
We prove the intermediate
claim Hr3ltDx:
Rlt r3 dx.
An exact proof term for the current goal is Hr3_C.
We prove the intermediate
claim Hr3ltDy:
Rlt r3 dy.
An exact proof term for the current goal is Hr3_D.
We prove the intermediate
claim Hr3lt1:
Rlt r3 1.
An exact proof term for the current goal is Hr3_E.
We use ball to witness the existential quantifier.
Apply andI to the current goal.
Apply andI to the current goal.
Let y be given.
We prove the intermediate
claim HyR:
y ∈ R.
We prove the intermediate
claim HyRight:
Rlt y (add_SNo x r3).
We prove the intermediate
claim Hr3S:
SNo r3.
An
exact proof term for the current goal is
(real_SNo r3 Hr3R).
An
exact proof term for the current goal is
(SNo_minus_SNo r3 Hr3S).
We prove the intermediate
claim Hxpr3R:
add_SNo x r3 ∈ R.
An
exact proof term for the current goal is
(real_add_SNo x HxR r3 Hr3R).
We prove the intermediate
claim Hr3dxS:
r3 < dx.
An
exact proof term for the current goal is
(RltE_lt r3 dx Hr3ltDx).
We prove the intermediate
claim Hr3plusA_lt_x:
add_SNo r3 a < x.
We prove the intermediate
claim Ha_plus_r3_lt_x:
add_SNo a r3 < x.
An exact proof term for the current goal is Hr3plusA_lt_x.
We prove the intermediate
claim Hxpr3ltbS:
add_SNo x r3 < b.
We prove the intermediate
claim Hr3dyS:
r3 < dy.
An
exact proof term for the current goal is
(RltE_lt r3 dy Hr3ltDy).
We prove the intermediate
claim Hr3plusX_lt_b:
add_SNo r3 x < b.
rewrite the current goal using
(add_SNo_com r3 x (real_SNo r3 Hr3R) HxS) (from right to left) at position 1.
An exact proof term for the current goal is Hr3plusX_lt_b.
We prove the intermediate
claim Hxpr3ltb:
Rlt (add_SNo x r3) b.
An
exact proof term for the current goal is
(RltI (add_SNo x r3) b Hxpr3R HbR Hxpr3ltbS).
We prove the intermediate
claim Hay:
Rlt a y.
We prove the intermediate
claim Hyb:
Rlt y b.
An
exact proof term for the current goal is
(Rlt_tra y (add_SNo x r3) b HyRight Hxpr3ltb).
An
exact proof term for the current goal is
(SepI R (λy0 : set ⇒ Rlt a y0 ∧ Rlt y0 b) y HyR (andI (Rlt a y) (Rlt y b) Hay Hyb)).
∎