Alphabeta Math
LemmaStatement: Literature-sourcedProof: AI-adaptedPipeline-generatedjudge pass (gpt-6-luna)
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.

Finite-rational Legendre criterion before the terminal convergent

Statement

Let A,p∈Z and D,q∈Z>0, with A/D and p/q reduced and D>2q. If ∣A/D−p/q∣<1/(2q2), then p/q is a convergent of the normalized finite regular continued fraction of A/D. This is a finite-rational statement; it does not invoke the irrational-input Legendre theorem.

Facts & Assumptions

Given: Reduced A/D with D>2q, and reduced p/q with q>0 and ∣A/D−p/q∣<1/(2q2).

[F1]

A rational continued fraction terminates at its Euclidean quotient list, and normalized finite expansion chooses the representation whose last digit is at least 2 unless the expansion is an integer (The continued-fraction algorithm terminates exactly on rational numbers, Normalized finite regular continued fractions are unique).

[F2]

For convergents, pn=anpn−1+pn−2 and qn=anqn−1+qn−2, and the finite-prefix formula is (Tpj+pj−1)/(Tqj+qj−1) for the positive remaining tail T (Convergents of a regular continued fraction, Convergents are given by the standard recurrences and tail formula, Complete-quotient tail formula).

[F3]

Adjacent convergents satisfy pjqj−1−pj−1qj=(−1)j−1 (Determinant identity for consecutive convergents).

[F4]

The complete quotient is T=aj+1 at the last digit and otherwise T>aj+1; the denominator recurrence is increasing after the possible initial equality q0=q1=1 (Complete quotients in the continued-fraction algorithm, Convergents of a regular continued fraction).

[F5]

Reduced means coprime numerator and positive denominator, with gcd 1. If d is coprime to u and d∣uv, then d∣v (Coprime integers: gcd⁡(a,b)=1, If gcd⁡(a,b)=1 and a∣bc then a∣c; and if a∣c, b∣c and gcd⁡(a,b)=1 then ab∣c). Rational absolute value is multiplicative and satisfies the triangle inequality (Absolute value and the triangle inequality).

Proof

1.1givenF1F2F3F5algebra

By [F1], write A/D=[a0;…,as] in normalized finite form. Since D>2q≥2, A/D is not an integer, so s≥1. Its terminal convergent equals A/D by [F1] and [F2]. By [F3], any common divisor of ps,qs divides 1, so this pair is coprime. Cross multiplication gives Aqs=psD. Since gcd⁡(A,D)=1, [F5] gives D∣qs; since gcd⁡(ps,qs)=1, it also gives qs∣D. Both denominators are positive, so they are equal: qs=D.

2.1givenF2step 1.1algebra

If q=1, then p is an integer and ∣A/D−p∣<1/2. Put a0=⌊A/D⌋ and e:=A/D−a0∈(0,1). The only possible such integers are a0 and a0+1. The first is the zeroth convergent. If p=a0+1, then e>1/2, hence a1=⌊1/e⌋=1; the recurrence in [F2] gives p1/q1=(a0+1)/1. Thus p/q is a convergent.

2.2givenF2F4step 1.1choose

Suppose q≥2. Since q<D=qs, choose the largest j with qj≤q. Then 0≤j<s; the only repeated initial denominator can be q0=q1=1, so qj>0 and s0:=qj−1/qj lies in [0,1] (with q−1=0 when j=0). Put T=aj+1 if j+1=s, and otherwise let T be the complete quotient after the prefix. By [F4], T≥aj+1, and x:=q/qj satisfies 1≤x<aj+1+s0≤T+s0=:L.

3.1F2F3F5step 2.2algebra

Put ε=pjqj−1−pj−1qj=±1 by [F3]. The integers u=ε(qj−1p−pj−1q) and v=ε(pjq−qjp) satisfy (p,q)=u(pj,qj)+v(pj−1,qj−1) by expansion and ε2=1; hence x=u+vs0. Cross multiplication using the tail formula [F2] gives pq−AD=(upj+vpj−1)(Tqj+qj−1)−(Tpj+pj−1)(uqj+vqj−1)q(Tqj+qj−1)=ε(u−vT)qj2xL. Since q=xqj, it follows that q2∣A/D−p/q∣=x∣u−vT∣/L. Finally L=T+s0 and x=u+vs0, so u−vT=x−vL and q2∣A/D−p/q∣=x∣x−vL∣/L.

4.1givenstep 3.1algebra

The hypothesis makes the expression in step 3.1 less than 1/2. If v≤−1, then ∣x−vL∣≥x+L, so x∣x−vL∣/L>x≥1. If v≥2, then ∣x−vL∣≥2L−x>L because x<L, so again x∣x−vL∣/L>x≥1. Both alternatives are impossible.

4.2givenF4step 2.2step 3.1algebra

If v=1, then u=x−s0 is an integer. If s0<1, x≥1 implies u>0; if s0=1, then j≥1 and qj=qj−1=1, while q≥2 forces x≥2. Thus u≥1. Also q<qj+1 implies u<aj+1, so L−x=T−u≥1. Hence x(L−x)/L≥x/(x+1)≥1/2, contradicting the strict hypothesis. Thus v≠1.

5.1F1step 4.1step 4.2algebra∎

The alternatives v≤−1, v≥2, and v=1 were excluded in steps 4.1–4.2, so v=0. Then (p,q)=u(pj,qj), hence p/q=pj/qj and p/q is the jth convergent. The proof includes the terminal case j+1=s because only T≥aj+1 was used, allowing equality at the terminal tail.

Depends on

Used by

Dependency tree · two levels

33 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