Alphabeta Math
Session-authored (Fable 5 assisted)
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 a0Z and aiZ>0 for i1. 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](n1).

This recursion is well defined. Indeed, starting from the last digit and working backwards, every tail [ai;,an] with i1 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)n0 with a0Z and anZ>0 for n1, 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 p2=0,p1=1,q2=1,q1=0, and, for every index n0 for which the digit an exists, pn=anpn1+pn2,qn=anqn1+qn2.

The denominators are positive at every digit index: q0=1, and if the digit a1 exists then q1=a1>0; thereafter qn=anqn1+qn2>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+pn1tqn+qn1, 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 p2=0, p1=1, q2=1, q1=0, and pk=akpk1+pk2, qk=akqk1+qk2 for k0. (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.1

For n=0 one has. [given, F1, base, algebra] [a0,t]=a0+1t=ta0+1t=tp0+p1tq0+q1, because p0=a0, q0=1, p1=1, and q1=0 by [F1].

givenF1basealgebra
2.1

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+pn1uqn+qn1 by the induction hypothesis, and multiplying numerator and denominator by t gives (an+1t+1)pn+tpn1(an+1t+1)qn+tqn1=tpn+1+pntqn+1+qn by the recurrences of [F1].

step 1.1F1inductionalgebra
3.1

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+pn1tqn+qn1 for every n0 and every t>0.

F2step 1.1step 2.1discharge-induction
4.1

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

step 3.1F1algebra
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 n0, pnqn1pn1qn=(1)n1. Consequently, for every n1, pnqnpn1qn1=(1)n1qnqn1.

Facts & Assumptions

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

[F1]

The convergents satisfy p2=0, p1=1, q2=1, q1=0, and pn=anpn1+pn2, qn=anqn1+qn2 for n0. (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.1

At n=0 one has. [given, F1, base, algebra] p0q1p1q0=a0011=1=(1)1.

givenF1basealgebra
1.2

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

F1inductionalgebra
2.1

Steps 1.1 and 1.2 imply by induction that. [F2, step 1.1, step 1.2, discharge-induction] Dn=(1)n1 for every n0.

F2step 1.1step 1.2discharge-induction
3.1

For n1. [step 2.1, algebra] pnqnpn1qn1=pnqn1pn1qnqnqn1=(1)n1qnqn1 by step 2.1.

step 2.1algebra
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 n0 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 pnqn1pn1qn=(1)n1 for n0. (Determinant identity for consecutive convergents).

Proof

technique · direct
1.1

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 pnqn1pn1qn=(1)n1 by [F1]. Hence d divides 1, so d=1 and pn/qn is reduced.

F1F2given
1.2

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

F1algebra
2.1

Steps 1.1 and 1.2 are exactly the two assertions.

step 1.1step 1.2
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:={kN:αn<r+k}. The set T is nonempty because r+sT, 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 αnan, define the next complete quotient αn+1:=1αnan.

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<αnan<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+pn1αn+1qn+qn1.

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+pn1tqn+qn1. (Convergents are given by the standard recurrences and tail formula).

Proof

technique · direct
1.1

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

givenF1algebra
2.1

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+pn1αn+1qn+qn1.

step 1.1F1F2
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)m0 and (c2m+1)m0 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 cncn1=(1)n1qnqn1 for n1 (Determinant identity for consecutive convergents).

[F2]

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

Proof

technique · direct
1.1

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

givenF1inductionalgebra
2.1

By [F1], the signs of cncn1 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+1c2m+2)>c2m, and similarly c2m+3=c2m+2(c2m+2c2m+3)<c2m+1. So the even convergents increase, the odd convergents decrease, and every even convergent is below every odd convergent.

F1step 1.1algebra
2.2

Put dn:=1/(qnqn+1). [F2, step 1.1, algebra] Step 1.1 gives dn1/(n(n+1)) for n1, and the Archimedean property [F2] therefore implies dn0. For ε>0 choose N1 with 1/N<ε, then for nN, 0<dn1n(n+1)1n1N<ε.

F2step 1.1algebra
3.1

Let E:={c2m:m0}. [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:=supE.

step 2.1given
3.2

If n=2m+1 is odd, then cn1E and step 2.1 gives. [step 2.1, step 2.2, F1] cn1xcn, so 0cnxcncn1=dn1. If n=2m is even, then cnE and step 2.1 gives cnxcn+1, so 0xcncn+1cn=dn. Since the right-hand sides tend to 0 by step 2.2, both subsequences converge to x.

step 2.1step 2.2F1
4.1

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

step 3.2algebra
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+pn1αn+1qn+qn1. (Complete-quotient tail formula).

[F2]

Consecutive convergents satisfy pnqn1pn1qn=(1)n1. (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.1

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

givenalgebra
1.2

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

F1F2algebra
2.1

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/qn0, and therefore αxαpnqn+pnqnx0. Thus α=x.

F3step 1.2algebra
3.1

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

step 1.1step 2.1
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,vZ with v>0, then there are unique integers a,r with u=av+r,0r<v. (Division with remainder in Z: for aZ and b>0 there are unique q,rZ with a=qb+r and 0r<b).

[F2]

A terminating continued-fraction expansion is a finite regular continued fraction, and every finite regular continued fraction equals its last convergent pn/qnQ (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.1

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.

givenF1algebra
1.2

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

F2
1.3

Let n1, and suppose. [F1, F3, induction, algebra] αn=unvn(vn>0, gcd(un,vn)=1) is not an integer. Since n1, 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=unanvn 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.

F1F3inductionalgebra
2.1

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.

step 1.1step 1.3induction
3.1

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.

step 1.1step 1.3F1
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 an2 by the pair an1,1. An integer m has exactly the two expansions [m] and [m1;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+pn1tqn+qn1, 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.1

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.

F1given
1.2

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

F2algebra
1.3

Conversely, any finite expansion with last digit 1 and length at least 1 can be shortened by the identity. [F2, induction] [a0;a1,,an1,1]=[a0;a1,,an1+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.

F2induction
2.1

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.

F1step 1.2step 1.3
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 n0, αpnqn<1qnqn+11qn2. 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+pn1αn+1qn+qn1. (The continued-fraction algorithm terminates exactly on rational numbers, Complete-quotient tail formula).

[F2]

Consecutive convergents satisfy pnqn1pn1qn=(1)n1. (Determinant identity for consecutive convergents).

[F3]

The convergent denominators satisfy q1=0, are positive for every index n0, and obey qn+1=an+1qn+qn1 (Convergents of a regular continued fraction).

[F4]

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

Proof

technique · direct
1.1

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

F1F2F3F4algebra
2.1

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

step 1.1F3F4algebra
3.1

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

F3F4step 2.1algebra
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 n1. If r,sZ with s>0 and sαr<qnαpn, then sqn+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 n1, its convergents pn/qn, and integers r,s with s>0.

[F1]

Since n1, the corollary Convergents are reduced fractions applied at the index n1 shows that the vectors (qn,pn),(qn1,pn1) 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+pn1αn+1qn+qn1. (Complete-quotient tail formula).

[F4]

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

[F5]

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

Proof

technique · direct
1.1

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

F3F5algebra
2.1

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

F1step 1.1algebra
3.1

Assume sαr<qnαpn. Step 2.1 gives. [step 2.1, F2, algebra] uvαn+1<1. If v<0, then u<0 as well, because otherwise uvαn+11+αn+1>1; but then s=uqn+vqn1<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+11>van+11, hence uvan+1.

step 2.1F2algebra
4.1

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

step 3.1F2F4algebra
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,sZ 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=a11, and qn+1=an+1qn+qn1 with an+11. Hence they are strictly increasing from q1 onward. Moreover qn+2qn+1+qnqn+1, so they are unbounded (Convergents of a regular continued fraction).

[F2]

For n1, the contrapositive of the best-approximation theorem says that if s<qn+1, then sαrqnα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.1

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

F3givenalgebra
1.2

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

F1given
2.1

Assume r/spn/qn. Since s<qn+1, [F2] and the hypothesis give. [step 1.2, F2, given, algebra] qnαpnsαr<12s.

step 1.2F2givenalgebra
3.1

Since rqnspn is a nonzero integer when r/spn/qn, one has. [step 2.1, given, algebra] 1rqnspn=sqnrspnqn. Using the triangle inequality and step 2.1, rqnspnqnrsα+sqnαpn(qn+s)sαr<qn+s2s1, a contradiction. Therefore r/s=pn/qn, so r/s is a convergent.

step 2.1givenalgebra
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,CQ (The rationals as equivalence classes of pairs of integers) and A0.

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 N0 and h1 such that an+h=anfor every nN. 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 N0 and h1 such that an+h=an for every nN (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+pn1tqn+qn1. (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 n1, pn,qn>0 (Convergents of a regular continued fraction).

[F4]

Consecutive convergents satisfy pnqn1pn1qn=(1)n1. (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.1

By increasing N if necessary, we may still assume. [F1, F2, F3, F5, algebra] an+h=an(nN) with N1. Let x=[aN;aN+1,,aN+h1,aN,aN+1,] be the purely periodic tail. For r1, let xr be the finite continued fraction formed from r copies of this period. By [F5], xrx, and [F2] gives xr+1=xrph1+ph2xrqh1+qh2, where the convergents are taken for the digit block aN,,aN+h1. The denominators are positive by [F3], so a direct difference calculation shows that the displayed fractional-linear expression preserves the limit xrx. Hence x=xph1+ph2xqh1+qh2. Clearing denominators yields the quadratic equation qh1x2+(qh2ph1)xph2=0.

F1F2F3F5algebra
2.1

The discriminant of the quadratic in step 1.1 is. [step 1.1, F3, F4, algebra] Δ=(qh2ph1)2+4qh1ph2=(ph1+qh2)24(ph1qh2ph2qh1). Putting m:=ph1+qh2>0, fact [F4] gives Δ=m24(1)h2. If h is odd, then Δ=m2+4, which cannot be a square because (nm)(n+m)=4 has no solution in integers with m>0. If h is even, then h2, fact [F3] gives ph1p12 and qh2q0=1, so m3; then Δ=m24, which cannot be a square because (mn)(m+n)=4 has no solution with m3. Therefore Δ is not a square, so the root x from step 1.1 is irrational.

step 1.1F3F4algebra
2.2

Append the finite tails xr of step 1.1 after the prefix. [F1, F2, F5, step 1.1, algebra] a0,,aN1. These are a subsequence of the convergents of α, so [F5] makes their values tend to α. By [F2] their values are xrpN1+pN2xrqN1+qN2. The same positive-denominator difference calculation used in step 1.1 lets r and gives α=xpN1+pN2xqN1+qN2. Clearing denominators and substituting the quadratic equation from step 1.1 shows that α also satisfies a quadratic equation over Q.

F1F2F5step 1.1algebra
3.1

Suppose that α were rational. Step 2.2 gives. [step 2.1, step 2.2, F4, algebra] x(αqN1pN1)=pN2αqN2. If αqN1pN1=0, then also pN2αqN2=0, and eliminating α yields pN1qN2pN2qN1=0, contrary to [F4]. Therefore x=pN2αqN2αqN1pN1 is rational, contradicting step 2.1. Hence α is irrational.

step 2.1step 2.2F4algebra
4.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).

step 2.2step 3.1
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,cZ and discriminant D:=b24ac>0, then for every n1 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,CQ and A0. (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 n1 one has α=αnpn1+pn2αnqn1+qn2. (Complete-quotient tail formula).

[F4]

Consecutive convergents satisfy pnqn1pn1qn=(1)n1. (Determinant identity for consecutive convergents).

[F5]

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

[F6]

The convergent denominators satisfy q0=1, q1=a11, and qn+1=an+1qn+qn1 with an+11, so qnqn+1 for every n0 (Convergents of a regular continued fraction).

Proof

technique · direct
1.1

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

F1givenalgebra
2.1

Because α is irrational, [F2] says the continued-fraction algorithm. [F2, F3, algebra] never terminates, so every αn is defined. For each n1, 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:=apn12+bpn1qn1+cqn12, Bn:=2apn1pn2+b(pn1qn2+pn2qn1)+2cqn1qn2, Cn:=apn22+bpn2qn2+cqn22. These coefficients are integers.

F2F3algebra
3.1

The discriminant of that quadratic is. [step 2.1, F4, algebra] Bn24AnCn=(b24ac)(pn1qn2pn2qn1)2=D, because [F4] gives (pn1qn2pn2qn1)2=1.

step 2.1F4algebra
3.2

Put. [F5, F6, step 1.1, algebra] δn:=αqn1pn1=qn1(αpn1qn1). Facts [F5] and [F6] give δn<1qn1,qn1δn<qn1qn1. Since pn1=αqn1δn, the coefficient An from step 2.1 becomes An=a(αqn1δn)2+b(αqn1δn)qn1+cqn12=(2aα+b)qn1δn+aδn2, because aα2+bα+c=0. Therefore An2aα+b+a, so only finitely many integers can occur as An.

F5F6step 1.1algebra
4.1

For n2, the formulas in step 2.1 give Cn=An1, 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 n1 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.

step 2.1step 3.2step 3.1algebra
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 αnan the next complete quotient is αn+1=1/(αnan) (Complete quotients in the continued-fraction algorithm).

Proof

technique · direct
1.1

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

F1given
1.2

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.

F2given
2.1

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 j0, so the continued-fraction digits repeat with period nm from the index m onward. Thus the continued fraction is eventually periodic.

step 1.2F3induction
3.1

Steps 1.1 and 2.1 prove both directions of the equivalence.

step 1.1step 2.1

5 · Examples, counterexamples and false statements

None yet.

Sources