The areas / V06. Rings, fields and ordered algebra
Mathlib.Algebra.ContinuedFractions.Computation.ApproximationCorollaries
4 declarations. Mathlib docs · Source
Corollaries From Approximation Lemmas (Algebra.ContinuedFractions.Computation.Approximations)
Summary
Using the equivalence of the convergents computations
(GenContFract.convs and GenContFract.convs') for
continued fractions (see Algebra.ContinuedFractions.ConvergentsEquiv), it follows that the
convergents computations for GenContFract.of are equivalent.
Moreover, we show the convergence of the continued fractions computations, that is
(GenContFract.of v).convs indeed computes v in the limit.
Main Definitions
ContFract.ofreturns the (regular) continued fraction of a value.
Main Theorems
GenContFract.of_convs_eq_convs'shows that the convergents computations forGenContFract.ofare equivalent.GenContFract.of_convergenceshows that(GenContFract.of v).convsconverges tov.
Tags
convergence, fractions
Convergence
We next show that (GenContFract.of v).convs n converges to v.
theorem GenContFract.of_convs_eq_convs' E3 #
∀ {K : Type u_1} (v : K) [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] [inst_3 : FloorRing K],
(GenContFract.of v).convs = (GenContFract.of v).convs'
theorem GenContFract.convs_succ E1 #
∀ {K : Type u_1} (v : K) [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] [inst_3 : FloorRing K]
(n : ℕ), (GenContFract.of v).convs (n + 1) = ↑⌊v⌋ + 1 / (GenContFract.of (Int.fract v)⁻¹).convs n
The recurrence relation for the convergents of the continued fraction expansion
of an element v of K in terms of the convergents of the inverse of its fractional part.
theorem GenContFract.of_convergence_epsilon E1 #
∀ {K : Type u_1} (v : K) [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] [inst_3 : FloorRing K],
∀ ε > 0, ∃ N, ∀ n ≥ N, |v - (GenContFract.of v).convs n| < ε
theorem GenContFract.of_convergence E3 #
∀ {K : Type u_1} (v : K) [inst : Field K] [inst_1 : LinearOrder K] [IsStrictOrderedRing K] [inst_3 : FloorRing K]
[inst_4 : TopologicalSpace K] [OrderTopology K], Filter.Tendsto (GenContFract.of v).convs Filter.atTop (nhds v)