Shift lemma for the standard Euclidean continued fraction
Provedburau_cf_std_add_divisorcontinued-fractionseuclidean-algorithmtermination
Shift lemma for the standard Euclidean continued fraction. For ,
i.e. adding the divisor to the dividend increases the first quotient by one and leaves the remainder, hence the whole tail, unchanged. This is exactly the step at which the two Euclidean descents appearing in the continued-fraction analysis merge, and it is what makes the assembled two-branch formula for the negative reciprocal of a rational a theorem rather than a numerical observation.
Preamble
import Definitions.Def_burau_std_cf set_option autoImplicit false
Formal statement
theorem burau_cf_std_add_divisor (r a : ℤ) (hr : r ≠ 0) :
cfStd r (r + a) = (a / r + 1) :: cfStd (a % r) r := by sorry
Source
Euclidean continued fractions; cf. A. Ya. Khinchin, *Continued Fractions* (1964), Ch. II.