How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Regular Continued Fractions and Diophantine Approximation
1 · Prerequisites
- Binary Operations, Monoids, Groups and Subgroups
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Foundations of the Real Numbers for Analysis
- Relations, Functions, and Quotients
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
Regular continued fractions turn Euclidean division into an approximation machine. This page fixes the low-anchor route from the design block: it proves the integer-part step directly from Archimedeanness and well-ordering, derives convergence from completeness rather than from later sequence pages, and then uses the determinant identity and complete-quotient formula to reach best approximation and Legendre's criterion.
The last third of the page turns to quadratic irrationals. It isolates the two load-bearing ideas separately: an eventually periodic tail satisfies a quadratic equation, while the continued-fraction algorithm on a quadratic irrational runs inside a finite integral state space. Lagrange's theorem is then exactly the equivalence between those two descriptions.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Finite and infinite regular continued fractions
Definition
A finite regular continued fraction is an expression with and for . Its value is defined recursively in (The rationals as equivalence classes of pairs of integers, Arithmetic on the rationals) by
This recursion is well defined. Indeed, starting from the last digit and working backwards, every tail with is a positive rational: the last tail is , and whenever and . In particular every denominator occurring in the recursion is nonzero.
An infinite regular continued fraction is a digit sequence with and for , written Its value is not assumed by the notation; existence and uniqueness of the value are proved in Every infinite regular continued fraction converges to a unique real number.
Convergents of a regular continued fraction
Definition
Let be the digit sequence of a regular continued fraction (Finite and infinite regular continued fractions), terminating at in the finite case. Define integers by and, for every index for which the digit exists,
The denominators are positive at every digit index: , and if the digit exists then ; thereafter by induction because and the preceding denominators are nonnegative. Thus the quotient below is defined in .
The rational number is the -th convergent. The initial labels and belong only to this recurrence convention; they do not extend the digit sequence itself to negative indices.
Convergents are given by the standard recurrences and tail formula
Statement
Let be a finite regular continued fraction, and let be its convergent numerators and denominators as in Convergents of a regular continued fraction. Then
More generally, for every real one has where means the finite continued fraction obtained by appending the last tail .
Facts & Assumptions
Given: A finite regular continued fraction , the convergent recurrences for , and a real parameter .
A finite regular continued fraction is evaluated recursively by and , while the convergents satisfy , , , , and , for . (Finite and infinite regular continued fractions, Convergents of a regular continued fraction).
If a subset of contains and is closed under successor, then it is all of (The principle of mathematical induction).
Proof
For one has. [given, F1, base, algebra] because , , , and by [F1].
Assume the tail formula holds for a fixed length . [step 1.1, F1, induction, algebra] Put . Then by the induction hypothesis, and multiplying numerator and denominator by gives by the recurrences of [F1].
Steps 1.1 and 2.1 show, by induction on the length, that. [F2, step 1.1, step 2.1, discharge-induction] for every and every .
Setting in step 3.1 yields. [step 3.1, F1, algebra] and renaming the index proves the finite-convergent formula.
Determinant identity for consecutive convergents
Statement
Let be the convergents of a regular continued fraction. Then for every , Consequently, for every ,
Facts & Assumptions
Given: A regular continued fraction with convergent sequences .
The convergents satisfy , , , , and , for . (Convergents of a regular continued fraction).
If a subset of contains and is closed under successor, then it is all of (The principle of mathematical induction).
Proof
At one has. [given, F1, base, algebra]
If , then the recurrences of [F1] give. [F1, induction, algebra] So the sign flips at each successor step.
Steps 1.1 and 1.2 imply by induction that. [F2, step 1.1, step 1.2, discharge-induction] for every .
For . [step 2.1, algebra] by step 2.1.
Convergents are reduced fractions
Statement
Every convergent of a regular continued fraction is in lowest terms. Moreover, for each the two vectors form a -basis of .
Facts & Assumptions
Given: A regular continued fraction and its convergents .
Consecutive convergents satisfy for . (Determinant identity for consecutive convergents).
If integers are not both , then is an integer linear combination of and (Bézout's identity: for integers not both zero, is the least positive element of ; in particular has an integer solution).
Proof
Let be a common divisor of and . [F1, F2, given] Then divides every integer linear combination of and , in particular by [F1]. Hence divides , so and is reduced.
The determinant of the matrix with columns and is. [F1, algebra] by [F1]. Therefore for every , so the two columns span over .
Steps 1.1 and 1.2 are exactly the two assertions.
Complete quotients in the continued-fraction algorithm
Definition
Work in the complete ordered field of real numbers (Complete ordered field (least-upper-bound property)). For a real number , set Given , the Archimedean property (Every complete ordered field is Archimedean) and the well-ordering principle (The well-ordering principle) produce a unique integer with
For completeness, here is that construction. Choose positive integers with by Archimedeanness, and let The set is nonempty because , so it has a least element . Since , one has ; write . Minimality gives , so works. If two integers satisfied the displayed inequalities, discreteness of the integer order would put one at least above the other and contradict the upper inequality, proving uniqueness. If , define the next complete quotient
Thus the continued-fraction algorithm associates to its integer parts and its successive complete quotients . Whenever is defined, one has and therefore , so every later digit is positive.
Complete-quotient tail formula
Statement
Let be a real number, let and be its continued-fraction digits and complete quotients, and let be the convergents attached to . Whenever is defined,
Facts & Assumptions
Given: A real number , its complete quotients , and its continued-fraction digits .
The complete quotients satisfy whenever is defined. (Complete quotients in the continued-fraction algorithm).
Proof
Repeatedly substituting the identities of [F1] yields. [given, F1, algebra] whenever is defined.
Since every complete quotient after the first is , in particular . [step 1.1, F1, F2] So step 1.1 and [F2] give
Every infinite regular continued fraction converges to a unique real number
Statement
Let be an infinite regular continued fraction, and let be its convergents. Then:
- and ;
- every even convergent is below every odd convergent; and
- there is a unique real number such that both subsequences and converge to .
This real number is the value of the infinite regular continued fraction.
Facts & Assumptions
Given: An infinite regular continued fraction and its convergents .
Consecutive convergents satisfy for (Determinant identity for consecutive convergents).
Every complete ordered field is Archimedean (Every complete ordered field is Archimedean).
The constructed real field has the least-upper-bound property (The Cauchy-sequence reals have the least-upper-bound property, Complete ordered field (least-upper-bound property)).
Proof
Since every partial quotient after the first is at least . [given, F1, induction, algebra] The denominators satisfy for , with and . Thus is nondecreasing from onward and strictly increasing from onward, and induction on gives for .
By [F1], the signs of alternate, and by step 1.1 their absolute values strictly decrease. [F1, step 1.1, algebra] Hence and similarly So the even convergents increase, the odd convergents decrease, and every even convergent is below every odd convergent.
Put . [F2, step 1.1, algebra] Step 1.1 gives for , and the Archimedean property [F2] therefore implies . For choose with , then for ,
Let . [step 2.1, given] By step 2.1 the set is nonempty and bounded above by , so [F3] gives a real number .
If is odd, then and step 2.1 gives. [step 2.1, step 2.2, F1] , so If is even, then and step 2.1 gives , so Since the right-hand sides tend to by step 2.2, both subsequences converge to .
If were another real with both subsequences converging to , then for every . [step 3.2, algebra] and the right-hand side tends to as by step 3.2. Hence , so the value is unique.
The continued-fraction algorithm for real numbers
Statement
Let be a real number. The complete-quotient algorithm of Complete quotients in the continued-fraction algorithm either terminates with a finite regular continued fraction equal to , or produces an infinite regular continued fraction whose convergents converge to .
Facts & Assumptions
Given: A real number , its complete quotients , its digits , and its convergents .
Whenever is defined, (Complete-quotient tail formula).
Consecutive convergents satisfy . (Determinant identity for consecutive convergents).
Every infinite regular continued fraction has a unique value, namely the common limit of its even and odd convergent subsequences. (Every infinite regular continued fraction converges to a unique real number).
Proof
If for some , then repeated substitution of the identities for yields. [given, algebra] For the last digit is positive because every complete quotient after the first is greater than , so the output is a finite regular continued fraction.
Suppose the algorithm never terminates. Then every is defined and satisfies , so [F1] and [F2] give. [F1, F2, algebra] Hence
The infinite digit sequence is therefore a regular continued fraction, so by [F3] its convergents converge to some real number . [F3, step 1.2, algebra] Step 1.2 shows , and therefore Thus .
Step 1.1 handles the terminating case and step 2.1 the nonterminating case, so the algorithm always reconstructs the original real number.
The continued-fraction algorithm terminates exactly on rational numbers
Statement
For a real number , the continued-fraction algorithm terminates if and only if is rational. When is rational, the continued-fraction digits are exactly the successive quotient digits of the Euclidean algorithm.
Facts & Assumptions
Given: A real number and its continued-fraction algorithm.
If with , then there are unique integers with (Division with remainder in : for and there are unique with and ).
A terminating continued-fraction expansion is a finite regular continued fraction, and every finite regular continued fraction equals its last convergent (The continued-fraction algorithm for real numbers, Convergents are given by the standard recurrences and tail formula).
Every complete quotient after the first is greater than (Complete quotients in the continued-fraction algorithm).
Proof
If is an integer, the algorithm stops immediately. Otherwise write with integers and . Applying [F1] to. [given, F1, algebra] and gives so Thus the next numerator is the previous denominator.
Conversely, if the algorithm terminates, then by [F2] the original number is a finite regular continued fraction and hence rational.
Let , and suppose. [F1, F3, induction, algebra] is not an integer. Since , fact [F3] gives , so . Applying [F1] gives Any common divisor of and also divides , so . Hence this is already the reduced form and therefore .
When is a nonintegral rational, step 1.1 gives So step 1.3 applies successively to as long as they remain nonintegral. Their positive integer numerators then form a strictly decreasing sequence, which cannot continue forever. Therefore some complete quotient is an integer, and the algorithm terminates.
The equations in steps 1.1 and 1.3 are exactly the Euclidean divisions of the successive numerator-denominator pairs, so the continued-fraction digits are. [step 1.1, step 1.3, F1] the Euclidean quotient digits.
Normalized finite regular continued fractions are unique
Statement
Every rational number has a unique normalized finite regular continued fraction: either the expansion has length , or its last digit is at least . If the rational is not an integer, then it has exactly one other finite regular continued-fraction expansion, obtained by replacing the last digit by the pair . An integer has exactly the two expansions and .
Facts & Assumptions
Given: A rational number and its finite regular continued-fraction expansions.
The continued-fraction algorithm terminates exactly on rational numbers, and its digit list is the Euclidean-algorithm digit list. (The continued-fraction algorithm terminates exactly on rational numbers).
For every finite regular continued fraction, so in particular (Convergents are given by the standard recurrences and tail formula).
Proof
By [F1], every rational number has a terminating continued-fraction expansion. If the rational is not an integer, the last complete quotient is a positive integer greater than . [F1, given] Because every complete quotient after the first is greater than , the algorithm already produces a normalized finite expansion.
If , then [F2] gives. [F2, algebra] For an integer , the same identity reads So every normalized finite expansion produces a second finite expansion.
Conversely, any finite expansion with last digit and length at least can be shortened by the identity. [F2, induction] Repeating this collapse removes every terminal and ends at a normalized expansion. Thus every finite expansion is obtained from a normalized one by at most one final split of the last digit.
The normalized expansion is unique because the continued-fraction algorithm on a rational has unique digits at each step. [F1, step 1.2, step 1.3] Each digit is the unique integer part of the current complete quotient, and [F1] says the process terminates. Therefore nonintegers have exactly two finite expansions, while integers have exactly the two listed in step 1.2.
Convergent error bound
Statement
Let be an irrational real number, and let be its continued- fraction convergents. Then, for every , Moreover, has sign , so the convergents alternate around .
Facts & Assumptions
Given: An irrational real number , its continued-fraction digits , its complete quotients , and its convergents .
An irrational real does not terminate under the continued-fraction algorithm, so every complete quotient is defined and (The continued-fraction algorithm terminates exactly on rational numbers, Complete-quotient tail formula).
Consecutive convergents satisfy . (Determinant identity for consecutive convergents).
The convergent denominators satisfy , are positive for every index , and obey (Convergents of a regular continued fraction).
For irrational , the algorithm does not terminate, so ; the defining floor inequality therefore gives (The continued-fraction algorithm terminates exactly on rational numbers, Complete quotients in the continued-fraction algorithm).
Proof
By [F1] and [F2]. [F1, F2, F3, F4, algebra] The denominator is positive by [F3] and [F4], so the sign is .
Fact [F4] gives , and [F3] gives. [step 1.1, F3, F4, algebra] Taking absolute values in step 1.1 yields
Facts [F3] and [F4] give , so the second inequality is immediate. [F3, F4, step 2.1, algebra]
Convergents are best rational approximations of the first kind
Statement
Let be an irrational real number with convergents , and let . If with and then Consequently, no rational number with denominator at most approximates more closely than .
Facts & Assumptions
Given: An irrational real number , an index , its convergents , and integers with .
Since , the corollary Convergents are reduced fractions applied at the index shows that the vectors form a -basis of .
The complete-quotient algorithm produces a unique integer with and every later complete quotient satisfies (Complete quotients in the continued-fraction algorithm).
If is the next complete quotient, then (Complete-quotient tail formula).
The convergent denominators satisfy (Convergents of a regular continued fraction)
The convergent errors satisfy (Convergent error bound).
Proof
From [F3] and [F5] one obtains. [F3, F5, algebra] So the consecutive errors have opposite signs and satisfy
By the basis statement in [F1], there are unique integers with. [F1, step 1.1, algebra] Subtracting from gives by step 1.1.
Assume . Step 2.1 gives. [step 2.1, F2, algebra] If , then as well, because otherwise ; but then , impossible. If , then , so and again , impossible. Therefore . Since is an integer and [F2] gives , the inequality above implies hence .
Now. [step 3.1, F4, algebra] which is the first claim. Because , fact [F2] gives , and [F4] then gives For the consequence, suppose and Then contradicting the first claim because . Thus no denominator at most gives a closer rational approximation.
Legendre's criterion for convergents
Statement
Let be an irrational real number. If satisfy , , and then is a convergent of .
Facts & Assumptions
Given: An irrational real number with convergents , and a reduced rational number with .
The convergent denominators satisfy , , and with . Hence they are strictly increasing from onward. Moreover , so they are unbounded (Convergents of a regular continued fraction).
For , the contrapositive of the best-approximation theorem says that if , then (Convergents are best rational approximations of the first kind).
For an irrational , the first complete quotient is defined and (Complete quotients in the continued-fraction algorithm).
Proof
First suppose . By [F3]. [F3, given, algebra] If , then . Since the integers satisfy , the reverse triangle inequality gives contrary to the hypothesis. Hence is the zeroth convergent.
It remains to suppose . Since the denominators are unbounded. [F1, given] and strictly increase from onward, [F1] gives an index with
Assume . Since , [F2] and the hypothesis give. [step 1.2, F2, given, algebra]
Since is a nonzero integer when , one has. [step 2.1, given, algebra] Using the triangle inequality and step 2.1, a contradiction. Therefore , so is a convergent.
Quadratic irrationals
Definition
A real number (The real numbers) is a quadratic irrational if it is irrational and satisfies a quadratic equation with (The rationals as equivalence classes of pairs of integers) and .
Eventually periodic regular continued fractions
Definition
An infinite regular continued fraction (Finite and infinite regular continued fractions) is eventually periodic if there are integers and such that The smallest such is the period of the eventual tail. It exists because the admissible positive integers form a nonempty subset of , to which The well-ordering principle applies.
Eventually periodic regular continued fractions are quadratic irrationals
Statement
The value of every eventually periodic regular continued fraction is a quadratic irrational.
Facts & Assumptions
Given: An eventually periodic regular continued fraction
There are integers and such that for every (Eventually periodic regular continued fractions).
If are the convergents of a finite prefix, then for every , (Convergents are given by the standard recurrences and tail formula).
For a finite regular continued fraction whose digits are all positive, the convergents satisfy , , and, when , (Convergents of a regular continued fraction).
Consecutive convergents satisfy (Determinant identity for consecutive convergents).
The finite convergents of an infinite regular continued fraction converge to its value (Every infinite regular continued fraction converges to a unique real number).
Proof
By increasing if necessary, we may still assume. [F1, F2, F3, F5, algebra] with . Let be the purely periodic tail. For , let be the finite continued fraction formed from copies of this period. By [F5], , and [F2] gives where the convergents are taken for the digit block . The denominators are positive by [F3], so a direct difference calculation shows that the displayed fractional-linear expression preserves the limit . Hence Clearing denominators yields the quadratic equation
The discriminant of the quadratic in step 1.1 is. [step 1.1, F3, F4, algebra] Putting , fact [F4] gives If is odd, then , which cannot be a square because has no solution in integers with . If is even, then , fact [F3] gives and , so ; then , which cannot be a square because has no solution with . Therefore is not a square, so the root from step 1.1 is irrational.
Append the finite tails of step 1.1 after the prefix. [F1, F2, F5, step 1.1, algebra] . These are a subsequence of the convergents of , so [F5] makes their values tend to . By [F2] their values are The same positive-denominator difference calculation used in step 1.1 lets and gives Clearing denominators and substituting the quadratic equation from step 1.1 shows that also satisfies a quadratic equation over .
Suppose that were rational. Step 2.2 gives. [step 2.1, step 2.2, F4, algebra] If , then also , and eliminating yields contrary to [F4]. Therefore is rational, contradicting step 2.1. Hence is irrational.
Steps 2.2 and 3.1 show that is an irrational real root of a quadratic equation over , which is exactly the definition of a quadratic irrational (Quadratic irrationals).
Complete quotients of a quadratic irrational lie in a finite state space
Statement
Let be a quadratic irrational, and let be the complete quotients produced by the continued-fraction algorithm. Then only finitely many distinct complete quotients occur.
More precisely, if with and discriminant , then for every the complete quotient is a root of an integer quadratic equation whose discriminant is also .
Facts & Assumptions
Given: A quadratic irrational and its complete quotients .
A quadratic irrational is an irrational real root of some quadratic equation with and . (Quadratic irrationals).
An irrational real number never terminates under the continued-fraction algorithm, so every complete quotient is defined (The continued-fraction algorithm terminates exactly on rational numbers).
For every one has (Complete-quotient tail formula).
Consecutive convergents satisfy (Determinant identity for consecutive convergents).
The convergent errors satisfy (Convergent error bound).
The convergent denominators satisfy , , and with , so for every (Convergents of a regular continued fraction).
Proof
By [F1], after multiplying by a common denominator we may choose integers. [F1, given, algebra] with and Its discriminant is positive because is real and nonsquare because is irrational.
Because is irrational, [F2] says the continued-fraction algorithm. [F2, F3, algebra] never terminates, so every is defined. For each , substituting the expression from [F3] into the quadratic equation from step 1.1 and clearing denominators yields where These coefficients are integers.
The discriminant of that quadratic is. [step 2.1, F4, algebra] because [F4] gives
Put. [F5, F6, step 1.1, algebra] Facts [F5] and [F6] give Since , the coefficient from step 2.1 becomes because . Therefore so only finitely many integers can occur as .
For , the formulas in step 2.1 give , so the integers. [step 2.1, step 3.2, step 3.1, algebra] also range over a finite set. Then step 3.1 yields so only finitely many integers can occur as well. Thus only finitely many triples arise, and each with is one of the at most two roots of one of those finitely many quadratics. Together with the single value , this proves that only finitely many complete quotients occur.
Lagrange's theorem for regular continued fractions
Statement
A real number has an eventually periodic regular continued fraction if and only if it is a quadratic irrational.
Facts & Assumptions
Given: A real number and its continued-fraction algorithm.
Every eventually periodic regular continued fraction has quadratic- irrational value (Eventually periodic regular continued fractions are quadratic irrationals).
If is quadratic irrational, then only finitely many complete quotients occur in its continued-fraction algorithm (Complete quotients of a quadratic irrational lie in a finite state space).
The continued-fraction algorithm is deterministic: each digit is the unique integer with , and whenever the next complete quotient is (Complete quotients in the continued-fraction algorithm).
Proof
If the continued fraction of is eventually periodic, then [F1] shows that is a quadratic irrational.
Suppose now that is a quadratic irrational. By [F2], only finitely. [F2, given] many complete quotients occur, so there exist indices with
From and the determinism in [F3], the next digits agree: , and then the next complete quotients agree: . Repeating this argument inductively gives so the continued-fraction digits repeat with period from the index onward. Thus the continued fraction is eventually periodic.
Steps 1.1 and 2.1 prove both directions of the equivalence.
5 · Examples, counterexamples and false statements
None yet.