Let a and b be given.
Assume HaR HbR Hab.
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 Hablt:
a < b.
An
exact proof term for the current goal is
(RltE_lt a b Hab).
We prove the intermediate
claim HdR:
d ∈ R.
rewrite the current goal using HdDef (from left to right).
We prove the intermediate
claim HdS:
SNo d.
An
exact proof term for the current goal is
(real_SNo d HdR).
We prove the intermediate
claim H0ltd:
0 < d.
rewrite the current goal using HdDef (from left to right).
rewrite the current goal using H0eq (from right to left).
An exact proof term for the current goal is Hlt.
We prove the intermediate
claim HinvdR:
invd ∈ R.
rewrite the current goal using HinvdDef (from left to right).
We prove the intermediate
claim HinvdS:
SNo invd.
An
exact proof term for the current goal is
(real_SNo invd HinvdR).
We prove the intermediate
claim Hinvdpos:
0 < invd.
We prove the intermediate
claim HexN:
∃N ∈ ω, eps_ N < d.
Apply (real_E invd HinvdR (∃N ∈ ω, eps_ N < d)) to the current goal.
Assume Hlev.
Assume HinS.
Assume Hlow.
Assume Hup.
Assume Huniq.
Assume Happrox.
Apply HexNlt to the current goal.
Let N be given.
Assume HNpair.
We prove the intermediate
claim HNomega:
N ∈ ω.
We prove the intermediate
claim HmulLt:
mul_SNo (eps_ N) invd < 1.
We use N to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HNomega.
We prove the intermediate
claim HepsS:
SNo (eps_ N).
An
exact proof term for the current goal is
(SNo_eps_ N HNomega).
We prove the intermediate
claim HepsLtDiv:
eps_ N < div_SNo 1 invd.
We prove the intermediate
claim HdivEq:
div_SNo 1 invd = d.
rewrite the current goal using HinvdDef (from left to right).
rewrite the current goal using HdivDef (from left to right).
rewrite the current goal using Hposcase (from left to right).
rewrite the current goal using HrecipInv (from left to right).
An
exact proof term for the current goal is
(mul_SNo_oneL d HdS).
rewrite the current goal using HdivEq (from right to left).
An exact proof term for the current goal is HepsLtDiv.
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 < d) HNpair).
We prove the intermediate
claim HepsNlt:
eps_ N < d.
An
exact proof term for the current goal is
(andER (N ∈ ω) (eps_ N < d) HNpair).
Assume Hlev.
Assume HbInS.
Assume Hlow.
Assume Hup.
Assume Huniq.
Assume Happrox.
An exact proof term for the current goal is (Happrox N HNomega).
Apply Hexq to the current goal.
Let q be given.
Assume Hqpair.
Apply Hqpair to the current goal.
We prove the intermediate
claim Hqltb:
q < b.
An
exact proof term for the current goal is
(andEL (q < b) (b < add_SNo q (eps_ N)) Hqprop).
We prove the intermediate
claim Hbltqeps:
b < add_SNo q (eps_ N).
An
exact proof term for the current goal is
(andER (q < b) (b < add_SNo q (eps_ N)) Hqprop).
We prove the intermediate
claim HqR:
q ∈ R.
We prove the intermediate
claim HqS:
SNo q.
An
exact proof term for the current goal is
(real_SNo q HqR).
We prove the intermediate
claim HepsR:
eps_ N ∈ R.
We prove the intermediate
claim HepsS:
SNo (eps_ N).
An
exact proof term for the current goal is
(real_SNo (eps_ N) HepsR).
We prove the intermediate
claim Haepsltb:
add_SNo a (eps_ N) < b.
An
exact proof term for the current goal is
(add_SNo_Lt1 (eps_ N) a d HepsS HaS HdS HepsNlt).
We prove the intermediate
claim Hdplus:
add_SNo d a = b.
rewrite the current goal using HdDef (from left to right).
An
exact proof term for the current goal is
(add_SNo_com (eps_ N) a HepsS HaS).
rewrite the current goal using Hcom (from right to left).
rewrite the current goal using Hdplus (from right to left).
An exact proof term for the current goal is Hlt1.
We prove the intermediate
claim Hqlt:
a < q.
We prove the intermediate
claim Haq:
Rlt a q.
An
exact proof term for the current goal is
(RltI a q HaR HqR Hqlt).
We prove the intermediate
claim Hqb:
Rlt q b.
An
exact proof term for the current goal is
(RltI q b HqR HbR Hqltb).
We use q to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HqRat.
Apply andI to the current goal.
An exact proof term for the current goal is Haq.
An exact proof term for the current goal is Hqb.
∎