Alphabeta Math
TheoremStatement: Literature-sourcedProof: AI-generatedSession-authored (Fable 5 assisted)precheck passaudited 2026-08-27
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.

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

Depends on

Used by

Dependency tree · two levels

26 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources