Let x0 be given.
We will
prove ∃b ∈ B0, x0 ∈ b ∧ b ⊆ V.
We prove the intermediate
claim Hx0X:
x0 ∈ X.
We prove the intermediate
claim HdistA0R:
distA0 ∈ R.
We prove the intermediate
claim HdistB0R:
distB0 ∈ R.
We prove the intermediate
claim HgapPos:
Rlt 0 gap.
An
exact proof term for the current goal is
(Rlt_0_diff_of_lt distB0 distA0 Hx0lt).
We prove the intermediate
claim HgapR:
gap ∈ R.
An
exact proof term for the current goal is
(RltE_right 0 gap HgapPos).
We prove the intermediate
claim HexN0:
∃N0 ∈ ω, eps_ N0 < gap.
Apply HexN0 to the current goal.
Let N0 be given.
Assume HN0pair.
We prove the intermediate
claim HN0omega:
N0 ∈ ω.
An
exact proof term for the current goal is
(andEL (N0 ∈ ω) (eps_ N0 < gap) HN0pair).
We prove the intermediate
claim HepsN0lt:
eps_ N0 < gap.
An
exact proof term for the current goal is
(andER (N0 ∈ ω) (eps_ N0 < gap) HN0pair).
We prove the intermediate
claim HepsN0R:
eps_ N0 ∈ R.
We prove the intermediate
claim HepsN0Rlt:
Rlt (eps_ N0) gap.
An
exact proof term for the current goal is
(RltI (eps_ N0) gap HepsN0R HgapR HepsN0lt).
We prove the intermediate
claim HN0nat:
nat_p N0.
An
exact proof term for the current goal is
(omega_nat_p N0 HN0omega).
We prove the intermediate
claim Hsucc0:
ordsucc N0 ∈ ω.
An
exact proof term for the current goal is
(omega_ordsucc N0 HN0omega).
We prove the intermediate
claim HrR:
r ∈ R.
We prove the intermediate
claim HrposS:
0 < r.
We prove the intermediate
claim Hrpos:
Rlt 0 r.
An
exact proof term for the current goal is
(RltI 0 r real_0 HrR HrposS).
We prove the intermediate
claim HrrEq:
add_SNo r r = eps_ N0.
We prove the intermediate
claim HrrR:
add_SNo r r ∈ R.
An
exact proof term for the current goal is
(real_add_SNo r HrR r HrR).
We prove the intermediate
claim HrrLtGap:
Rlt (add_SNo r r) gap.
rewrite the current goal using HrrEq (from left to right).
An exact proof term for the current goal is HepsN0Rlt.
We prove the intermediate
claim HdistA0S:
SNo distA0.
An
exact proof term for the current goal is
(real_SNo distA0 HdistA0R).
We prove the intermediate
claim HdistB0S:
SNo distB0.
An
exact proof term for the current goal is
(real_SNo distB0 HdistB0R).
We prove the intermediate
claim HrS:
SNo r.
An
exact proof term for the current goal is
(real_SNo r HrR).
We prove the intermediate
claim HgapS:
SNo gap.
An
exact proof term for the current goal is
(real_SNo gap HgapR).
We prove the intermediate
claim HrrS:
SNo (add_SNo r r).
We prove the intermediate
claim HrrLtGapS:
add_SNo r r < gap.
An
exact proof term for the current goal is
(RltE_lt (add_SNo r r) gap HrrLtGap).
An
exact proof term for the current goal is
(add_SNo_Lt2 distB0 (add_SNo r r) gap HdistB0S HrrS HgapS HrrLtGapS).
We prove the intermediate
claim HgapEq:
add_SNo distB0 gap = distA0.
We prove the intermediate
claim HdistA0S2:
SNo distA0.
An
exact proof term for the current goal is
(real_SNo distA0 HdistA0R).
We prove the intermediate
claim HdistB0S2:
SNo distB0.
An
exact proof term for the current goal is
(real_SNo distB0 HdistB0R).
We prove the intermediate
claim HmB:
SNo (minus_SNo distB0).
rewrite the current goal using
(add_SNo_assoc distB0 distA0 (minus_SNo distB0) HdistB0S2 HdistA0S2 HmB) (from left to right).
rewrite the current goal using
(add_SNo_com distB0 distA0 HdistB0S2 HdistA0S2) (from left to right).
rewrite the current goal using
(add_SNo_assoc distA0 distB0 (minus_SNo distB0) HdistA0S2 HdistB0S2 HmB) (from right to left).
rewrite the current goal using
(add_SNo_0R distA0 HdistA0S2) (from left to right).
Use reflexivity.
rewrite the current goal using HgapEq (from right to left).
An exact proof term for the current goal is HtmpRlt.
We prove the intermediate
claim HminusR:
minus_SNo r ∈ R.
rewrite the current goal using HlhsEq (from right to left).
An exact proof term for the current goal is HaddLe.
An exact proof term for the current goal is HaddLe2.
We use
(open_ball X d x0 r) to
witness the existential quantifier.
Apply andI to the current goal.
An
exact proof term for the current goal is
(ReplSepI R (λr0 : set ⇒ Rlt 0 r0) (λr0 : set ⇒ open_ball X d x0 r0) r HrR Hrpos).
Apply andI to the current goal.
Let y0 be given.
We prove the intermediate
claim Hy0X:
y0 ∈ X.
An
exact proof term for the current goal is
(SepE1 X (λz0 : set ⇒ Rlt (apply_fun d (x0,z0)) r) y0 Hy0Ball).
We prove the intermediate
claim Hdxy0:
Rlt (apply_fun d (x0,y0)) r.
An
exact proof term for the current goal is
(SepE2 X (λz0 : set ⇒ Rlt (apply_fun d (x0,z0)) r) y0 Hy0Ball).
We prove the intermediate
claim Hdxy0R:
apply_fun d (x0,y0) ∈ R.
We prove the intermediate
claim HdistB0S:
SNo distB0.
An
exact proof term for the current goal is
(real_SNo distB0 HdistB0R).
We prove the intermediate
claim Hdxy0S:
SNo (apply_fun d (x0,y0)).
We prove the intermediate
claim HrS:
SNo r.
An
exact proof term for the current goal is
(real_SNo r HrR).
rewrite the current goal using Hsymd (from right to left).
An exact proof term for the current goal is HleAswap.
We prove the intermediate
claim HdxyS:
SNo (apply_fun d (x0,y0)).
Use reflexivity.
rewrite the current goal using HlhsEq (from right to left).
rewrite the current goal using HrhsEq (from right to left).
An exact proof term for the current goal is Hshift.
An exact proof term for the current goal is Hshift2.
We prove the intermediate
claim HrS:
SNo r.
An
exact proof term for the current goal is
(real_SNo r HrR).
We prove the intermediate
claim HdxyS:
SNo (apply_fun d (x0,y0)).
We prove the intermediate
claim HdxyLtS:
apply_fun d (x0,y0) < r.
An
exact proof term for the current goal is
(RltE_lt (apply_fun d (x0,y0)) r Hdxy0).