Determinant Formula for Simple Continued Fraction #
Summary #
We derive the so-called determinant formula for SimpContFract:
Aₙ * Bₙ₊₁ - Bₙ * Aₙ₊₁ = (-1)^(n + 1).
TODO #
Generalize this for GenContFract version:
Aₙ * Bₙ₊₁ - Bₙ * Aₙ₊₁ = (-a₀) * (-a₁) * .. * (-aₙ₊₁).
References #
theorem
SimpContFract.determinant_aux
{K : Type u_1}
[Field K]
{s : SimpContFract K}
{n : ℕ}
(hyp : n = 0 ∨ ¬(↑s).TerminatedAt (n - 1))
:
theorem
SimpContFract.determinant
{K : Type u_1}
[Field K]
{s : SimpContFract K}
{n : ℕ}
(not_terminatedAt_n : ¬(↑s).TerminatedAt n)
:
The determinant formula Aₙ * Bₙ₊₁ - Bₙ * Aₙ₊₁ = (-1)^(n + 1).