Documentation

Mathlib.Algebra.ContinuedFractions.Computation.ApproximationCorollaries

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 #

Main Theorems #

Tags #

convergence, fractions

theorem GenContFract.convs_succ {K : Type u_1} (v : K) [LinearOrderedField K] [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.

Convergence #

We next show that (GenContFract.of v).convs v converges to v.

theorem GenContFract.of_convergence_epsilon {K : Type u_1} (v : K) [LinearOrderedField K] [FloorRing K] [Archimedean K] (ε : K) :
ε > 0∃ (N : ), nN, |v - (GenContFract.of v).convs n| < ε