Alphabeta Math
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.

✓ 14 results · all verified · 2 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 12 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Regular Continued Fractions and Diophantine Approximation

1 · Prerequisites

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

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-27Open item page →

Finite and infinite regular continued fractions

Definition

A finite regular continued fraction is an expression [a0;a1,…,an] with a0∈Z and ai∈Z>0 for i≥1. Its value is defined recursively in Q (The rationals as equivalence classes of pairs of integers, Arithmetic on the rationals) by [an]:=an,[a0;a1,…,an]:=a0+1[a1;…,an](n≥1).

This recursion is well defined. Indeed, starting from the last digit and working backwards, every tail [ai;…,an] with i≥1 is a positive rational: the last tail is an>0, and ai+1/t>0 whenever ai>0 and t>0. In particular every denominator occurring in the recursion is nonzero.

An infinite regular continued fraction is a digit sequence (an)n≥0 with a0∈Z and an∈Z>0 for n≥1, written [a0;a1,a2,…]. 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.

DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-08-27Open item page →

Convergents of a regular continued fraction

Definition

Let a0,a1,… be the digit sequence of a regular continued fraction (Finite and infinite regular continued fractions), terminating at aN in the finite case. Define integers pn,qn by p−2=0,p−1=1,q−2=1,q−1=0, and, for every index n≥0 for which the digit an exists, pn=anpn−1+pn−2,qn=anqn−1+qn−2.

The denominators are positive at every digit index: q0=1, and if the digit a1 exists then q1=a1>0; thereafter qn=anqn−1+qn−2>0 by induction because an>0 and the preceding denominators are nonnegative. Thus the quotient below is defined in Q.

The rational number pn/qn is the n-th convergent. The initial labels −2 and −1 belong only to this recurrence convention; they do not extend the digit sequence itself to negative indices.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

Convergents are given by the standard recurrences and tail formula

Statement

Let [a0;a1,…,an] be a finite regular continued fraction, and let pk,qk be its convergent numerators and denominators as in Convergents of a regular continued fraction. Then [a0;a1,…,an]=pnqn.

More generally, for every real t>0 one has [a0;a1,…,an,t]=tpn+pn−1tqn+qn−1, where [a0;a1,…,an,t] means the finite continued fraction obtained by appending the last tail t.

Facts & Assumptions

Given: A finite regular continued fraction [a0;a1,…,an], the convergent recurrences for pk,qk, and a real parameter t>0.

[F1]

A finite regular continued fraction is evaluated recursively by [an]=an and [a0;a1,…,an]=a0+1/[a1;…,an], while the convergents satisfy p−2=0, p−1=1, q−2=1, q−1=0, and pk=akpk−1+pk−2, qk=akqk−1+qk−2 for k≥0. (Finite and infinite regular continued fractions, Convergents of a regular continued fraction).

[F2]

If a subset of N contains 0 and is closed under successor, then it is all of N (The principle of mathematical induction).

Proof

technique · direct
1.1givenF1basealgebra

For n=0 one has. [given, F1, base, algebra] [a0,t]=a0+1t=ta0+1t=tp0+p−1tq0+q−1, because p0=a0, q0=1, p−1=1, and q−1=0 by [F1].

2.1step 1.1F1inductionalgebra

Assume the tail formula holds for a fixed length n. [step 1.1, F1, induction, algebra] Put u:=an+1+1/t>0. Then [a0;a1,…,an+1,t]=[a0;a1,…,an,u]=upn+pn−1uqn+qn−1 by the induction hypothesis, and multiplying numerator and denominator by t gives (an+1t+1)pn+tpn−1(an+1t+1)qn+tqn−1=tpn+1+pntqn+1+qn by the recurrences of [F1].

3.1F2step 1.1step 2.1discharge-induction

Steps 1.1 and 2.1 show, by induction on the length, that. [F2, step 1.1, step 2.1, discharge-induction] [a0;a1,…,an,t]=tpn+pn−1tqn+qn−1 for every n≥0 and every t>0.

4.1step 3.1F1algebra∎

Setting t=an+1 in step 3.1 yields. [step 3.1, F1, algebra] [a0;a1,…,an+1]=an+1pn+pn−1an+1qn+qn−1=pn+1qn+1, and renaming the index proves the finite-convergent formula.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

Determinant identity for consecutive convergents

Statement

Let pn/qn be the convergents of a regular continued fraction. Then for every n≥0, pnqn−1−pn−1qn=(−1)n−1. Consequently, for every n≥1, pnqn−pn−1qn−1=(−1)n−1qnqn−1.

Facts & Assumptions

Given: A regular continued fraction with convergent sequences pn,qn.

[F1]

The convergents satisfy p−2=0, p−1=1, q−2=1, q−1=0, and pn=anpn−1+pn−2, qn=anqn−1+qn−2 for n≥0. (Convergents of a regular continued fraction).

[F2]

If a subset of N contains 0 and is closed under successor, then it is all of N (The principle of mathematical induction).

Proof

technique · direct
1.1givenF1basealgebra

At n=0 one has. [given, F1, base, algebra] p0q−1−p−1q0=a0⋅0−1⋅1=−1=(−1)−1.

1.2F1inductionalgebra

If Dn:=pnqn−1−pn−1qn, then the recurrences of [F1] give. [F1, induction, algebra] Dn+1=(an+1pn+pn−1)qn−pn(an+1qn+qn−1)=−Dn. So the sign flips at each successor step.

2.1F2step 1.1step 1.2discharge-induction

Steps 1.1 and 1.2 imply by induction that. [F2, step 1.1, step 1.2, discharge-induction] Dn=(−1)n−1 for every n≥0.

3.1step 2.1algebra∎

For n≥1. [step 2.1, algebra] pnqn−pn−1qn−1=pnqn−1−pn−1qnqnqn−1=(−1)n−1qnqn−1 by step 2.1.

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-27Open item page →

Convergents are reduced fractions

Statement

Every convergent pn/qn of a regular continued fraction is in lowest terms. Moreover, for each n≥0 the two vectors (qn,pn),(qn+1,pn+1) form a Z-basis of Z2.

Facts & Assumptions

Given: A regular continued fraction and its convergents pn/qn.

[F1]

Consecutive convergents satisfy pnqn−1−pn−1qn=(−1)n−1 for n≥0. (Determinant identity for consecutive convergents).

Proof

technique · direct
1.1F1F2given

Let d be a common divisor of pn and qn. [F1, F2, given] Then d divides every integer linear combination of pn and qn, in particular pnqn−1−pn−1qn=(−1)n−1 by [F1]. Hence d divides 1, so d=1 and pn/qn is reduced.

1.2F1algebra

The determinant of the matrix with columns (qn,pn) and (qn+1,pn+1) is. [F1, algebra] qnpn+1−pnqn+1=(−1)n by [F1]. Therefore (uv)=(−1)n(upn+1−vqn+1)(qnpn)+(−1)n(vqn−upn)(qn+1pn+1) for every (u,v)∈Z2, so the two columns span Z2 over Z.

2.1step 1.1step 1.2∎

Steps 1.1 and 1.2 are exactly the two assertions.

DefinitionDefinition: Literature-sourcedProof: Not applicableaudited 2026-08-27Open item page →

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 α0:=α. Given αn, the Archimedean property (Every complete ordered field is Archimedean) and the well-ordering principle (The well-ordering principle) produce a unique integer an with an≤αn<an+1.

For completeness, here is that construction. Choose positive integers r,s with −r<αn<s by Archimedeanness, and let T:={k∈N:αn<−r+k}. The set T is nonempty because r+s∈T, so it has a least element k0. Since −r<αn, one has k0>0; write k0=j+1. Minimality gives −r+j≤αn<−r+j+1, so an:=−r+j works. If two integers satisfied the displayed inequalities, discreteness of the integer order would put one at least 1 above the other and contradict the upper inequality, proving uniqueness. If αn≠an, define the next complete quotient αn+1:=1αn−an.

Thus the continued-fraction algorithm associates to α its integer parts an and its successive complete quotients αn. Whenever αn+1 is defined, one has 0<αn−an<1 and therefore αn+1>1, so every later digit an+1,an+2,… is positive.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passjudge pass (gpt-5.6-terra)audited 2026-08-27Open item page →

Complete-quotient tail formula

Statement

Let α be a real number, let an and αn be its continued-fraction digits and complete quotients, and let pn/qn be the convergents attached to a0,a1,…. Whenever αn+1 is defined, α=αn+1pn+pn−1αn+1qn+qn−1.

Facts & Assumptions

Given: A real number α, its complete quotients αn, and its continued-fraction digits an.

[F1]

The complete quotients satisfy αn=an+1/αn+1 whenever αn+1 is defined. (Complete quotients in the continued-fraction algorithm).

[F2]

For every t>0, [a0;a1,…,an,t]=tpn+pn−1tqn+qn−1. (Convergents are given by the standard recurrences and tail formula).

Proof

technique · direct
1.1givenF1algebra

Repeatedly substituting the identities of [F1] yields. [given, F1, algebra] α=[a0;a1,…,an,αn+1] whenever αn+1 is defined.

2.1step 1.1F1F2∎

Since every complete quotient after the first is >1, in particular αn+1>0. [step 1.1, F1, F2] So step 1.1 and [F2] give α=αn+1pn+pn−1αn+1qn+qn−1.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

Every infinite regular continued fraction converges to a unique real number

Statement

Let [a0;a1,a2,…] be an infinite regular continued fraction, and let cn:=pn/qn be its convergents. Then:

  1. c0<c2<c4<⋯ and c1>c3>c5>⋯;
  2. every even convergent is below every odd convergent; and
  3. there is a unique real number x such that both subsequences (c2m)m≥0 and (c2m+1)m≥0 converge to x.

This real number is the value of the infinite regular continued fraction.

Facts & Assumptions

Given: An infinite regular continued fraction and its convergents cn=pn/qn.

[F1]

Consecutive convergents satisfy cn−cn−1=(−1)n−1qnqn−1 for n≥1 (Determinant identity for consecutive convergents).

[F2]

Every complete ordered field is Archimedean (Every complete ordered field is Archimedean).

Proof

technique · direct
1.1givenF1inductionalgebra

Since every partial quotient after the first is at least 1. [given, F1, induction, algebra] The denominators satisfy qn+1=an+1qn+qn−1≥qn+qn−1>qn>0 for n≥1, with q0=1 and q1=a1≥1. Thus (qn) is nondecreasing from q0 onward and strictly increasing from q1 onward, and induction on n gives qn≥n for n≥1.

2.1F1step 1.1algebra

By [F1], the signs of cn−cn−1 alternate, and by step 1.1 their absolute values strictly decrease. [F1, step 1.1, algebra] Hence c2m<c2m+1,c2m+2=c2m+1−(c2m+1−c2m+2)>c2m, and similarly c2m+3=c2m+2−(c2m+2−c2m+3)<c2m+1. So the even convergents increase, the odd convergents decrease, and every even convergent is below every odd convergent.

2.2F2step 1.1algebra

Put dn:=1/(qnqn+1). [F2, step 1.1, algebra] Step 1.1 gives dn≤1/(n(n+1)) for n≥1, and the Archimedean property [F2] therefore implies dn→0. For ε>0 choose N≥1 with 1/N<ε, then for n≥N, 0<dn≤1n(n+1)≤1n≤1N<ε.

3.1step 2.1given

Let E:={c2m:m≥0}. [step 2.1, given] By step 2.1 the set E is nonempty and bounded above by c1, so [F3] gives a real number x:=sup⁡E.

3.2step 2.1step 2.2F1

If n=2m+1 is odd, then cn−1∈E and step 2.1 gives. [step 2.1, step 2.2, F1] cn−1≤x≤cn, so 0≤cn−x≤cn−cn−1=dn−1. If n=2m is even, then cn∈E and step 2.1 gives cn≤x≤cn+1, so 0≤x−cn≤cn+1−cn=dn. Since the right-hand sides tend to 0 by step 2.2, both subsequences converge to x.

4.1step 3.2algebra∎

If y were another real with both subsequences converging to y, then for every m. [step 3.2, algebra] ∣x−y∣≤∣x−c2m∣+∣c2m−y∣, and the right-hand side tends to 0 as m→∞ by step 3.2. Hence x=y, so the value is unique.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

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 αn, its digits an, and its convergents pn/qn.

[F1]

Whenever αn+1 is defined, α=αn+1pn+pn−1αn+1qn+qn−1. (Complete-quotient tail formula).

[F2]

Consecutive convergents satisfy pnqn−1−pn−1qn=(−1)n−1. (Determinant identity for consecutive convergents).

[F3]

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

technique · direct
1.1givenalgebra

If αN=aN for some N, then repeated substitution of the identities αn=an+1/αn+1 for n<N yields. [given, algebra] α=[a0;a1,…,aN]. For N≥1 the last digit aN=αN is positive because every complete quotient after the first is greater than 1, so the output is a finite regular continued fraction.

1.2F1F2algebra

Suppose the algorithm never terminates. Then every αn+1 is defined and satisfies αn+1>an+1≥1, so [F1] and [F2] give. [F1, F2, algebra] α−pnqn=pn−1qn−pnqn−1qn(αn+1qn+qn−1)=(−1)nqn(αn+1qn+qn−1). Hence ∣α−pnqn∣<1qn(an+1qn+qn−1)=1qnqn+1.

2.1F3step 1.2algebra

The infinite digit sequence a0,a1,… is therefore a regular continued fraction, so by [F3] its convergents pn/qn converge to some real number x. [F3, step 1.2, algebra] Step 1.2 shows α−pn/qn→0, and therefore ∣α−x∣≤∣α−pnqn∣+∣pnqn−x∣→0. Thus α=x.

3.1step 1.1step 2.1∎

Step 1.1 handles the terminating case and step 2.1 the nonterminating case, so the algorithm always reconstructs the original real number.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

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.

[F1]

If u,v∈Z with v>0, then there are unique integers a,r with u=av+r,0≤r<v. (Division with remainder in Z: for a∈Z and b>0 there are unique q,r∈Z with a=qb+r and 0≤r<b).

[F2]

A terminating continued-fraction expansion is a finite regular continued fraction, and every finite regular continued fraction equals its last convergent pn/qn∈Q (The continued-fraction algorithm for real numbers, Convergents are given by the standard recurrences and tail formula).

[F3]

Every complete quotient after the first is greater than 1 (Complete quotients in the continued-fraction algorithm).

Proof

technique · direct
1.1givenF1algebra

If α is an integer, the algorithm stops immediately. Otherwise write α=u0/v0 with integers v0>0 and gcd⁡(u0,v0)=1. Applying [F1] to. [given, F1, algebra] u0 and v0 gives u0=a0v0+r0,0<r0<v0, so α=a0+r0v0,α1=1α−a0=v0r0. Thus the next numerator is the previous denominator.

1.2F2

Conversely, if the algorithm terminates, then by [F2] the original number is a finite regular continued fraction and hence rational.

1.3F1F3inductionalgebra

Let n≥1, and suppose. [F1, F3, induction, algebra] αn=unvn(vn>0, gcd⁡(un,vn)=1) is not an integer. Since n≥1, fact [F3] gives αn>1, so un>vn>0. Applying [F1] gives un=anvn+rn,0<rn<vn,αn+1=vnrn. Any common divisor of vn and rn=un−anvn also divides un, so gcd⁡(vn,rn)=1. Hence this is already the reduced form αn+1=un+1vn+1=vnrn, and therefore un+1=vn<un.

2.1step 1.1step 1.3induction

When α is a nonintegral rational, step 1.1 gives α1=v0r0>1. So step 1.3 applies successively to α1,α2,… as long as they remain nonintegral. Their positive integer numerators u1,u2,u3,… then form a strictly decreasing sequence, which cannot continue forever. Therefore some complete quotient is an integer, and the algorithm terminates.

3.1step 1.1step 1.3F1∎

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.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

Normalized finite regular continued fractions are unique

Statement

Every rational number has a unique normalized finite regular continued fraction: either the expansion has length 0, or its last digit is at least 2. If the rational is not an integer, then it has exactly one other finite regular continued-fraction expansion, obtained by replacing the last digit an≥2 by the pair an−1,1. An integer m has exactly the two expansions [m] and [m−1;1].

Facts & Assumptions

Given: A rational number and its finite regular continued-fraction expansions.

[F1]

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).

[F2]

For every finite regular continued fraction, [a0;a1,…,an,t]=tpn+pn−1tqn+qn−1, so in particular [a0;a1,…,an,1]=[a0;a1,…,an+1]. (Convergents are given by the standard recurrences and tail formula).

Proof

technique · direct
1.1F1given

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 1. [F1, given] Because every complete quotient after the first is greater than 1, the algorithm already produces a normalized finite expansion.

1.2F2algebra

If an≥2, then [F2] gives. [F2, algebra] [a0;a1,…,an]=[a0;a1,…,an−1,1]. For an integer m, the same identity reads [m]=[m−1,1]=[m−1;1]. So every normalized finite expansion produces a second finite expansion.

1.3F2induction

Conversely, any finite expansion with last digit 1 and length at least 1 can be shortened by the identity. [F2, induction] [a0;a1,…,an−1,1]=[a0;a1,…,an−1+1]. Repeating this collapse removes every terminal 1 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.

2.1F1step 1.2step 1.3∎

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.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

Convergent error bound

Statement

Let α be an irrational real number, and let pn/qn be its continued- fraction convergents. Then, for every n≥0, ∣α−pnqn∣<1qnqn+1≤1qn2. Moreover, α−pnqn has sign (−1)n, so the convergents alternate around α.

Facts & Assumptions

Given: An irrational real number α, its continued-fraction digits an, its complete quotients αn, and its convergents pn/qn.

[F1]

An irrational real does not terminate under the continued-fraction algorithm, so every complete quotient αn+1 is defined and α=αn+1pn+pn−1αn+1qn+qn−1. (The continued-fraction algorithm terminates exactly on rational numbers, Complete-quotient tail formula).

[F2]

Consecutive convergents satisfy pnqn−1−pn−1qn=(−1)n−1. (Determinant identity for consecutive convergents).

[F3]

The convergent denominators satisfy q−1=0, are positive for every index n≥0, and obey qn+1=an+1qn+qn−1 (Convergents of a regular continued fraction).

[F4]

For irrational α, the algorithm does not terminate, so αn+1≠an+1; the defining floor inequality therefore gives 1≤an+1<αn+1 (The continued-fraction algorithm terminates exactly on rational numbers, Complete quotients in the continued-fraction algorithm).

Proof

technique · direct
1.1F1F2F3F4algebra

By [F1] and [F2]. [F1, F2, F3, F4, algebra] α−pnqn=qn(αn+1pn+pn−1)−pn(αn+1qn+qn−1)qn(αn+1qn+qn−1)=(−1)nqn(αn+1qn+qn−1). The denominator is positive by [F3] and [F4], so the sign is (−1)n.

2.1step 1.1F3F4algebra

Fact [F4] gives αn+1>an+1, and [F3] gives. [step 1.1, F3, F4, algebra] αn+1qn+qn−1>an+1qn+qn−1=qn+1. Taking absolute values in step 1.1 yields ∣α−pnqn∣<1qnqn+1.

3.1F3F4step 2.1algebra∎

Facts [F3] and [F4] give qn+1≥qn>0, so the second inequality is immediate. [F3, F4, step 2.1, algebra] 1qnqn+1≤1qn2

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

Convergents are best rational approximations of the first kind

Statement

Let α be an irrational real number with convergents pn/qn, and let n≥1. If r,s∈Z with s>0 and ∣sα−r∣<∣qnα−pn∣, then s≥qn+1. Consequently, no rational number with denominator at most qn approximates α more closely than pn/qn.

Facts & Assumptions

Given: An irrational real number α, an index n≥1, its convergents pn/qn, and integers r,s with s>0.

[F1]

Since n≥1, the corollary Convergents are reduced fractions applied at the index n−1 shows that the vectors (qn,pn),(qn−1,pn−1) form a Z-basis of Z2.

[F2]

The complete-quotient algorithm produces a unique integer an+1 with an+1≤αn+1<an+1+1, and every later complete quotient satisfies αn+1>1 (Complete quotients in the continued-fraction algorithm).

[F3]

If αn+1 is the next complete quotient, then α=αn+1pn+pn−1αn+1qn+qn−1. (Complete-quotient tail formula).

[F4]

The convergent denominators satisfy q−1=0,q0=1,qn+1=an+1qn+qn−1. (Convergents of a regular continued fraction)

[F5]

The convergent errors satisfy α−pnqn=(−1)nqn(αn+1qn+qn−1),∣α−pnqn∣<1qnqn+1. (Convergent error bound).

Proof

technique · direct
1.1F3F5algebra

From [F3] and [F5] one obtains. [F3, F5, algebra] qnα−pn=(−1)nαn+1qn+qn−1,qn−1α−pn−1=−αn+1(qnα−pn). So the consecutive errors have opposite signs and satisfy ∣qn−1α−pn−1∣=αn+1∣qnα−pn∣.

2.1F1step 1.1algebra

By the basis statement in [F1], there are unique integers u,v with. [F1, step 1.1, algebra] (sr)=u(qnpn)+v(qn−1pn−1). Subtracting r from sα gives sα−r=u(qnα−pn)+v(qn−1α−pn−1)=(u−vαn+1)(qnα−pn) by step 1.1.

3.1step 2.1F2algebra

Assume ∣sα−r∣<∣qnα−pn∣. Step 2.1 gives. [step 2.1, F2, algebra] ∣u−vαn+1∣<1. If v<0, then u<0 as well, because otherwise u−vαn+1≥1+αn+1>1; but then s=uqn+vqn−1<0, impossible. If v=0, then ∣u∣<1, so u=0 and again s=0, impossible. Therefore v>0. Since u is an integer and [F2] gives αn+1>an+1, the inequality above implies u>vαn+1−1>van+1−1, hence u≥van+1.

4.1step 3.1F2F4algebra∎

Now. [step 3.1, F4, algebra] s=uqn+vqn−1≥v(an+1qn+qn−1)=vqn+1≥qn+1, which is the first claim. Because n≥1, fact [F2] gives an+1≥1, and [F4] then gives qn+1=an+1qn+qn−1>qn. For the consequence, suppose s≤qn and ∣α−rs∣<∣α−pnqn∣. Then ∣sα−r∣=s∣α−rs∣<s∣α−pnqn∣≤qn∣α−pnqn∣=∣qnα−pn∣, contradicting the first claim because s<qn+1. Thus no denominator at most qn gives a closer rational approximation.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

Legendre's criterion for convergents

Statement

Let α be an irrational real number. If r,s∈Z satisfy s>0, gcd⁡(r,s)=1, and ∣α−rs∣<12s2, then r/s is a convergent of α.

Facts & Assumptions

Given: An irrational real number α with convergents pn/qn, and a reduced rational number r/s with s>0.

[F1]

The convergent denominators satisfy q0=1, q1=a1≥1, and qn+1=an+1qn+qn−1 with an+1≥1. Hence they are strictly increasing from q1 onward. Moreover qn+2≥qn+1+qn≥qn+1, so they are unbounded (Convergents of a regular continued fraction).

[F2]

For n≥1, the contrapositive of the best-approximation theorem says that if s<qn+1, then ∣sα−r∣≥∣qnα−pn∣. (Convergents are best rational approximations of the first kind).

[F3]

For an irrational α, the first complete quotient is defined and α=a0+1α1,α1>a1=q1. (Complete quotients in the continued-fraction algorithm).

Proof

technique · direct
1.1F3givenalgebra

First suppose s<q1. By [F3]. [F3, given, algebra] 0<α−a0=1α1<1q1≤12. If r/s≠a0, then ∣r−sa0∣≥1. Since the integers satisfy q1≥s+1, the reverse triangle inequality gives ∣α−rs∣≥∣rs−a0∣−∣α−a0∣>1s−1q1≥1s−1s+1=1s(s+1)≥12s2, contrary to the hypothesis. Hence r/s=a0=p0/q0 is the zeroth convergent.

1.2F1given

It remains to suppose q1≤s. Since the denominators are unbounded. [F1, given] and strictly increase from q1 onward, [F1] gives an index n≥1 with qn≤s<qn+1.

2.1step 1.2F2givenalgebra

Assume r/s≠pn/qn. Since s<qn+1, [F2] and the hypothesis give. [step 1.2, F2, given, algebra] ∣qnα−pn∣≤∣sα−r∣<12s.

3.1step 2.1givenalgebra∎

Since rqn−spn is a nonzero integer when r/s≠pn/qn, one has. [step 2.1, given, algebra] 1≤∣rqn−spn∣=sqn∣rs−pnqn∣. Using the triangle inequality and step 2.1, ∣rqn−spn∣≤qn∣r−sα∣+s∣qnα−pn∣≤(qn+s)∣sα−r∣<qn+s2s≤1, a contradiction. Therefore r/s=pn/qn, so r/s is a convergent.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-27Open item page →

Quadratic irrationals

Definition

A real number α (The real numbers) is a quadratic irrational if it is irrational and satisfies a quadratic equation Aα2+Bα+C=0 with A,B,C∈Q (The rationals as equivalence classes of pairs of integers) and A≠0.

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-5.6-terra)audited 2026-08-27Open item page →

Eventually periodic regular continued fractions

Definition

An infinite regular continued fraction [a0;a1,a2,…] (Finite and infinite regular continued fractions) is eventually periodic if there are integers N≥0 and h≥1 such that an+h=anfor every n≥N. The smallest such h is the period of the eventual tail. It exists because the admissible positive integers h form a nonempty subset of N, to which The well-ordering principle applies.

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

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 α=[a0;a1,a2,…].

[F1]

There are integers N≥0 and h≥1 such that an+h=an for every n≥N (Eventually periodic regular continued fractions).

[F2]

If pn/qn are the convergents of a finite prefix, then for every t>0, [a0;a1,…,an,t]=tpn+pn−1tqn+qn−1. (Convergents are given by the standard recurrences and tail formula).

[F3]

For a finite regular continued fraction whose digits are all positive, the convergents satisfy q0=1, p0=a0>0, and, when n≥1, pn,qn>0 (Convergents of a regular continued fraction).

[F4]

Consecutive convergents satisfy pnqn−1−pn−1qn=(−1)n−1. (Determinant identity for consecutive convergents).

[F5]

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

technique · direct
1.1F1F2F3F5algebra

By increasing N if necessary, we may still assume. [F1, F2, F3, F5, algebra] an+h=an(n≥N) with N≥1. Let x=[aN;aN+1,…,aN+h−1,aN,aN+1,…] be the purely periodic tail. For r≥1, let xr be the finite continued fraction formed from r copies of this period. By [F5], xr→x, and [F2] gives xr+1=xrph−1+ph−2xrqh−1+qh−2, where the convergents are taken for the digit block aN,…,aN+h−1. The denominators are positive by [F3], so a direct difference calculation shows that the displayed fractional-linear expression preserves the limit xr→x. Hence x=xph−1+ph−2xqh−1+qh−2. Clearing denominators yields the quadratic equation qh−1x2+(qh−2−ph−1)x−ph−2=0.

2.1step 1.1F3F4algebra

The discriminant of the quadratic in step 1.1 is. [step 1.1, F3, F4, algebra] Δ=(qh−2−ph−1)2+4qh−1ph−2=(ph−1+qh−2)2−4(ph−1qh−2−ph−2qh−1). Putting m:=ph−1+qh−2>0, fact [F4] gives Δ=m2−4(−1)h−2. If h is odd, then Δ=m2+4, which cannot be a square because (n−m)(n+m)=4 has no solution in integers with m>0. If h is even, then h≥2, fact [F3] gives ph−1≥p1≥2 and qh−2≥q0=1, so m≥3; then Δ=m2−4, which cannot be a square because (m−n)(m+n)=4 has no solution with m≥3. Therefore Δ is not a square, so the root x from step 1.1 is irrational.

2.2F1F2F5step 1.1algebra

Append the finite tails xr of step 1.1 after the prefix. [F1, F2, F5, step 1.1, algebra] a0,…,aN−1. These are a subsequence of the convergents of α, so [F5] makes their values tend to α. By [F2] their values are xrpN−1+pN−2xrqN−1+qN−2. The same positive-denominator difference calculation used in step 1.1 lets r→∞ and gives α=xpN−1+pN−2xqN−1+qN−2. Clearing denominators and substituting the quadratic equation from step 1.1 shows that α also satisfies a quadratic equation over Q.

3.1step 2.1step 2.2F4algebra

Suppose that α were rational. Step 2.2 gives. [step 2.1, step 2.2, F4, algebra] x(αqN−1−pN−1)=pN−2−αqN−2. If αqN−1−pN−1=0, then also pN−2−αqN−2=0, and eliminating α yields pN−1qN−2−pN−2qN−1=0, contrary to [F4]. Therefore x=pN−2−αqN−2αqN−1−pN−1 is rational, contradicting step 2.1. Hence α is irrational.

4.1step 2.2step 3.1∎

Steps 2.2 and 3.1 show that α is an irrational real root of a quadratic equation over Q, which is exactly the definition of a quadratic irrational (Quadratic irrationals).

LemmaStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

Complete quotients of a quadratic irrational lie in a finite state space

Statement

Let α be a quadratic irrational, and let αn be the complete quotients produced by the continued-fraction algorithm. Then only finitely many distinct complete quotients occur.

More precisely, if aα2+bα+c=0 with a,b,c∈Z and discriminant D:=b2−4ac>0, then for every n≥1 the complete quotient αn is a root of an integer quadratic equation Anx2+Bnx+Cn=0 whose discriminant is also D.

Facts & Assumptions

Given: A quadratic irrational α and its complete quotients αn.

[F1]

A quadratic irrational is an irrational real root of some quadratic equation Aα2+Bα+C=0 with A,B,C∈Q and A≠0. (Quadratic irrationals).

[F2]

An irrational real number never terminates under the continued-fraction algorithm, so every complete quotient αn is defined (The continued-fraction algorithm terminates exactly on rational numbers).

[F3]

For every n≥1 one has α=αnpn−1+pn−2αnqn−1+qn−2. (Complete-quotient tail formula).

[F4]

Consecutive convergents satisfy pnqn−1−pn−1qn=(−1)n−1. (Determinant identity for consecutive convergents).

[F5]

The convergent errors satisfy ∣α−pnqn∣<1qnqn+1. (Convergent error bound).

[F6]

The convergent denominators satisfy q0=1, q1=a1≥1, and qn+1=an+1qn+qn−1 with an+1≥1, so qn≤qn+1 for every n≥0 (Convergents of a regular continued fraction).

Proof

technique · direct
1.1F1givenalgebra

By [F1], after multiplying by a common denominator we may choose integers. [F1, given, algebra] a,b,c with a≠0 and aα2+bα+c=0. Its discriminant D:=b2−4ac is positive because α is real and nonsquare because α is irrational.

2.1F2F3algebra

Because α is irrational, [F2] says the continued-fraction algorithm. [F2, F3, algebra] never terminates, so every αn is defined. For each n≥1, substituting the expression from [F3] into the quadratic equation from step 1.1 and clearing denominators yields Anαn2+Bnαn+Cn=0, where An:=apn−12+bpn−1qn−1+cqn−12, Bn:=2apn−1pn−2+b(pn−1qn−2+pn−2qn−1)+2cqn−1qn−2, Cn:=apn−22+bpn−2qn−2+cqn−22. These coefficients are integers.

3.1step 2.1F4algebra

The discriminant of that quadratic is. [step 2.1, F4, algebra] Bn2−4AnCn=(b2−4ac)(pn−1qn−2−pn−2qn−1)2=D, because [F4] gives (pn−1qn−2−pn−2qn−1)2=1.

3.2F5F6step 1.1algebra

Put. [F5, F6, step 1.1, algebra] δn:=αqn−1−pn−1=qn−1(α−pn−1qn−1). Facts [F5] and [F6] give ∣δn∣<1qn≤1,∣qn−1δn∣<qn−1qn≤1. Since pn−1=αqn−1−δn, the coefficient An from step 2.1 becomes An=a(αqn−1−δn)2+b(αqn−1−δn)qn−1+cqn−12=−(2aα+b)qn−1δn+aδn2, because aα2+bα+c=0. Therefore ∣An∣≤∣2aα+b∣+∣a∣, so only finitely many integers can occur as An.

4.1step 2.1step 3.2step 3.1algebra∎

For n≥2, the formulas in step 2.1 give Cn=An−1, so the integers. [step 2.1, step 3.2, step 3.1, algebra] Cn also range over a finite set. Then step 3.1 yields Bn2=D+4AnCn, so only finitely many integers Bn can occur as well. Thus only finitely many triples (An,Bn,Cn) arise, and each αn with n≥1 is one of the at most two roots of one of those finitely many quadratics. Together with the single value α0=α, this proves that only finitely many complete quotients occur.

TheoremStatement: Literature-sourcedProof: AI-generatedprecheck passaudited 2026-08-27Open item page →

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.

[F1]

Every eventually periodic regular continued fraction has quadratic- irrational value (Eventually periodic regular continued fractions are quadratic irrationals).

[F2]

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).

[F3]

The continued-fraction algorithm is deterministic: each digit an is the unique integer with an≤αn<an+1, and whenever αn≠an the next complete quotient is αn+1=1/(αn−an) (Complete quotients in the continued-fraction algorithm).

Proof

technique · direct
1.1F1given

If the continued fraction of α is eventually periodic, then [F1] shows that α is a quadratic irrational.

1.2F2given

Suppose now that α is a quadratic irrational. By [F2], only finitely. [F2, given] many complete quotients αn occur, so there exist indices m<n with αm=αn.

2.1step 1.2F3induction

From αm=αn and the determinism in [F3], the next digits agree: am=an, and then the next complete quotients agree: αm+1=αn+1. Repeating this argument inductively gives am+j=an+jfor every j≥0, so the continued-fraction digits repeat with period n−m from the index m onward. Thus the continued fraction is eventually periodic.

3.1step 1.1step 2.1∎

Steps 1.1 and 2.1 prove both directions of the equivalence.

5 · Examples, counterexamples and false statements

None yet.

Sources