Let c be given.
Let z be given.
rewrite the current goal using HcEq (from left to right).
Set c0 to be the term
z 0.
Set n0 to be the term
z 1.
We prove the intermediate
claim Hc0D:
c0 ∈ D.
An
exact proof term for the current goal is
(ap0_Sigma D Y z HzPair).
We prove the intermediate
claim Hc0X:
c0 ∈ X.
An exact proof term for the current goal is (HDsubX c0 Hc0D).
We prove the intermediate
claim Hn0Omega:
n0 ∈ ω.
An
exact proof term for the current goal is
(ap1_Sigma D Y z HzPair).
We prove the intermediate
claim HsuccOmega:
ordsucc n0 ∈ ω.
An
exact proof term for the current goal is
(omega_ordsucc n0 Hn0Omega).
rewrite the current goal using HTdef (from right to left).
An exact proof term for the current goal is HballIn.
Let U be given.
Let x be given.
We will
prove ∃Cx ∈ B, x ∈ Cx ∧ Cx ⊆ U.
We prove the intermediate
claim HTsub:
Tx ⊆ 𝒫 X.
We prove the intermediate
claim HUpow:
U ∈ 𝒫 X.
An exact proof term for the current goal is (HTsub U HU).
We prove the intermediate
claim HxX:
x ∈ X.
An
exact proof term for the current goal is
(PowerE X U HUpow x HxU).
rewrite the current goal using Hdef (from right to left).
rewrite the current goal using HTdef (from left to right).
An exact proof term for the current goal is HU.
We prove the intermediate
claim HUcond:
∀y ∈ U, ∃b0 ∈ B0, y ∈ b0 ∧ b0 ⊆ U.
An
exact proof term for the current goal is
(SepE2 (𝒫 X) (λU0 : set ⇒ ∀y : set, y ∈ U0 → ∃b0 ∈ B0, y ∈ b0 ∧ b0 ⊆ U0) U HUgen).
We prove the intermediate
claim Hexb0:
∃b0 ∈ B0, x ∈ b0 ∧ b0 ⊆ U.
An exact proof term for the current goal is (HUcond x HxU).
Apply Hexb0 to the current goal.
Let b0 be given.
Assume Hb0pair.
We prove the intermediate
claim Hb0B0:
b0 ∈ B0.
An
exact proof term for the current goal is
(andEL (b0 ∈ B0) (x ∈ b0 ∧ b0 ⊆ U) Hb0pair).
We prove the intermediate
claim Hxinb0:
x ∈ b0.
An
exact proof term for the current goal is
(andEL (x ∈ b0) (b0 ⊆ U) (andER (b0 ∈ B0) (x ∈ b0 ∧ b0 ⊆ U) Hb0pair)).
We prove the intermediate
claim Hb0sub:
b0 ⊆ U.
An
exact proof term for the current goal is
(andER (x ∈ b0) (b0 ⊆ U) (andER (b0 ∈ B0) (x ∈ b0 ∧ b0 ⊆ U) Hb0pair)).
Let c be given.
Let r0 be given.
We prove the intermediate
claim HxinBall:
x ∈ open_ball X d c r0.
rewrite the current goal using Hb0eq (from right to left).
An exact proof term for the current goal is Hxinb0.
We prove the intermediate
claim HballsubU:
open_ball X d c r0 ⊆ U.
rewrite the current goal using Hb0eq (from right to left).
An exact proof term for the current goal is Hb0sub.
Apply Hexs to the current goal.
Let s be given.
Assume Hs.
We prove the intermediate
claim HsRpos:
s ∈ R ∧ Rlt 0 s.
We prove the intermediate
claim HsR:
s ∈ R.
An
exact proof term for the current goal is
(andEL (s ∈ R) (Rlt 0 s) HsRpos).
We prove the intermediate
claim Hspos:
Rlt 0 s.
An
exact proof term for the current goal is
(andER (s ∈ R) (Rlt 0 s) HsRpos).
We prove the intermediate
claim HsubU:
open_ball X d x s ⊆ U.
We use s to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HsR.
Apply andI to the current goal.
An exact proof term for the current goal is Hspos.
An exact proof term for the current goal is HsubU.
Apply HexBall to the current goal.
Let r be given.
Assume Hrpack.
We prove the intermediate
claim HrR:
r ∈ R.
We prove the intermediate
claim Hrpos:
Rlt 0 r.
We prove the intermediate
claim Hballsub:
open_ball X d x r ⊆ U.
We prove the intermediate
claim HexN:
∃N ∈ ω, eps_ N < r.
Apply HexN to the current goal.
Let N be given.
Assume HNpair.
We prove the intermediate
claim HNomega:
N ∈ ω.
An
exact proof term for the current goal is
(andEL (N ∈ ω) (eps_ N < r) HNpair).
We prove the intermediate
claim HepsLt:
eps_ N < r.
An
exact proof term for the current goal is
(andER (N ∈ ω) (eps_ N < r) HNpair).
We prove the intermediate
claim HsDef:
s = eps_ (ordsucc N).
We prove the intermediate
claim HsuccOmega:
ordsucc N ∈ ω.
An
exact proof term for the current goal is
(omega_ordsucc N HNomega).
We prove the intermediate
claim HsR:
s ∈ R.
rewrite the current goal using HsDef (from left to right).
We prove the intermediate
claim HsposS:
0 < s.
rewrite the current goal using HsDef (from left to right).
We prove the intermediate
claim Hspos:
Rlt 0 s.
An
exact proof term for the current goal is
(RltI 0 s real_0 HsR HsposS).
We prove the intermediate
claim HepsR:
eps_ N ∈ R.
We prove the intermediate
claim HepsRlt:
Rlt (eps_ N) r.
An
exact proof term for the current goal is
(RltI (eps_ N) r HepsR HrR HepsLt).
We prove the intermediate
claim HsSumLt:
Rlt (add_SNo s s) r.
We prove the intermediate
claim HNnat:
nat_p N.
An
exact proof term for the current goal is
(omega_nat_p N HNomega).
We prove the intermediate
claim HsumEq:
add_SNo s s = eps_ N.
rewrite the current goal using HsDef (from left to right).
rewrite the current goal using HsDef (from left to right) at position 2.
rewrite the current goal using HsumEq (from left to right).
An exact proof term for the current goal is HepsRlt.
We prove the intermediate
claim HUxInTx:
Ux ∈ Tx.
rewrite the current goal using HTdef (from right to left).
We prove the intermediate
claim HUxNe:
Ux ≠ Empty.
We prove the intermediate
claim HmeetNe:
Ux ∩ D ≠ Empty.
We prove the intermediate
claim Hexd0:
∃d0 : set, d0 ∈ Ux ∩ D.
Apply Hexd0 to the current goal.
Let d0 be given.
We prove the intermediate
claim Hd0Ux:
d0 ∈ Ux.
An
exact proof term for the current goal is
(binintersectE1 Ux D d0 Hd0cap).
We prove the intermediate
claim Hd0D:
d0 ∈ D.
An
exact proof term for the current goal is
(binintersectE2 Ux D d0 Hd0cap).
We prove the intermediate
claim Hd0X:
d0 ∈ X.
An exact proof term for the current goal is (HDsubX d0 Hd0D).
We use Cx to witness the existential quantifier.
We will
prove Cx ∈ B ∧ (x ∈ Cx ∧ Cx ⊆ U).
Apply andI to the current goal.
We prove the intermediate
claim HNinY:
N ∈ Y d0.
An exact proof term for the current goal is HNomega.
We prove the intermediate
claim HpSig:
(d0,N) ∈ Pair.
An
exact proof term for the current goal is
(tuple_2_Sigma D Y d0 Hd0D N HNinY).
We prove the intermediate
claim HF:
F (d0,N) = Cx.
We will
prove F (d0,N) = Cx.
We prove the intermediate
claim HCxDef:
Cx = open_ball X d d0 s.
rewrite the current goal using HCxDef (from left to right).
rewrite the current goal using HsDef (from left to right).
rewrite the current goal using HFdef (from left to right).
rewrite the current goal using
(tuple_2_0_eq d0 N) (from left to right).
rewrite the current goal using
(tuple_2_1_eq d0 N) (from left to right).
Use reflexivity.
rewrite the current goal using HF (from right to left).
An
exact proof term for the current goal is
(ReplI Pair F (d0,N) HpSig).
Apply andI to the current goal.
We prove the intermediate
claim Hd0inBall:
d0 ∈ open_ball X d x s.
rewrite the current goal using HsDef (from right to left).
An exact proof term for the current goal is Hd0Ux.
We prove the intermediate
claim Hdxd0:
Rlt (apply_fun d (x,d0)) s.
An
exact proof term for the current goal is
(open_ballE2 X d x s d0 Hd0inBall).
We prove the intermediate
claim Hdx0:
Rlt (apply_fun d (d0,x)) s.
rewrite the current goal using Hsym (from left to right).
An exact proof term for the current goal is Hdxd0.
An
exact proof term for the current goal is
(open_ballI X d d0 s x HxX Hdx0).
We prove the intermediate
claim HsubBall:
Cx ⊆ open_ball X d x r.
Let y be given.
We prove the intermediate
claim HyX:
y ∈ X.
An
exact proof term for the current goal is
(open_ballE1 X d d0 s y Hy).
We prove the intermediate
claim Hdy:
Rlt (apply_fun d (d0,y)) s.
An
exact proof term for the current goal is
(open_ballE2 X d d0 s y Hy).
We prove the intermediate
claim Hd0inBall:
d0 ∈ open_ball X d x s.
rewrite the current goal using HsDef (from right to left).
An exact proof term for the current goal is Hd0Ux.
We prove the intermediate
claim Hdx:
Rlt (apply_fun d (x,d0)) s.
An
exact proof term for the current goal is
(open_ballE2 X d x s d0 Hd0inBall).
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 HsS:
SNo s.
An
exact proof term for the current goal is
(real_SNo s HsR).
We prove the intermediate
claim HdxLtS:
dx < s.
An
exact proof term for the current goal is
(RltE_lt dx s Hdx).
We prove the intermediate
claim HdyLtS:
dy < s.
An
exact proof term for the current goal is
(RltE_lt dy s Hdy).
An
exact proof term for the current goal is
(add_SNo_Lt3 dx dy s s HdxS HdyS HsS HsS HdxLtS HdyLtS).
We prove the intermediate
claim HsumR:
add_SNo dx dy ∈ R.
An
exact proof term for the current goal is
(real_add_SNo dx HdxR dy HdyR).
We prove the intermediate
claim HsumRltR:
Rlt (add_SNo dx dy) r.
We prove the intermediate
claim HssumR:
add_SNo s s ∈ R.
An
exact proof term for the current goal is
(real_add_SNo s HsR s HsR).
An
exact proof term for the current goal is
(RltI (add_SNo dx dy) (add_SNo s s) HsumR HssumR HsumLt).
An
exact proof term for the current goal is
(Rlt_tra (add_SNo dx dy) (add_SNo s s) r HsumRlt_ss HsSumLt).
We prove the intermediate
claim Htmp2Def:
tmp2 = add_SNo dx dy.
rewrite the current goal using Htmp2Def (from left to right).
An exact proof term for the current goal is Htri0.
We prove the intermediate
claim HdistRlt:
Rlt (apply_fun d (x,y)) r.
An
exact proof term for the current goal is
(open_ballI X d x r y HyX HdistRlt).
An
exact proof term for the current goal is
(Subq_tra Cx (open_ball X d x r) U HsubBall Hballsub).