Corollaries From Approximation Lemmas (Algebra.ContinuedFractions.Computation.Approximations
) #
Summary #
We show that the generalized_continued_fraction given by GeneralizedContinuedFraction.of
in fact
is a (regular) continued fraction. Using the equivalence of the convergents computations
(GeneralizedContinuedFraction.convergents
and GeneralizedContinuedFraction.convergents'
) for
continued fractions (see Algebra.ContinuedFractions.ConvergentsEquiv
), it follows that the
convergents computations for GeneralizedContinuedFraction.of
are equivalent.
Moreover, we show the convergence of the continued fractions computations, that is
(GeneralizedContinuedFraction.of v).convergents
indeed computes v
in the limit.
Main Definitions #
ContinuedFraction.of
returns the (regular) continued fraction of a value.
Main Theorems #
GeneralizedContinuedFraction.of_convergents_eq_convergents'
shows that the convergents computations forGeneralizedContinuedFraction.of
are equivalent.GeneralizedContinuedFraction.of_convergence
shows that(GeneralizedContinuedFraction.of v).convergents
converges tov
.
Tags #
convergence, fractions
Creates the simple continued fraction of a value.
Equations
- SimpleContinuedFraction.of v = { val := GeneralizedContinuedFraction.of v, property := (_ : GeneralizedContinuedFraction.IsSimpleContinuedFraction (GeneralizedContinuedFraction.of v)) }
Instances For
Creates the continued fraction of a value.
Equations
- ContinuedFraction.of v = { val := SimpleContinuedFraction.of v, property := (_ : SimpleContinuedFraction.IsContinuedFraction (SimpleContinuedFraction.of v)) }
Instances For
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.