Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-adaptedSession-authored (Fable 5 assisted)precheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28
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.

If a=qb+ra = qb + r then a,ba, b and b,rb, r have exactly the same common divisors, so gcd(a,b)=gcd(b,r)\gcd(a,b) = \gcd(b,r)

Statement

Let a,b,q,rZa, b, q, r \in \mathbb{Z} satisfy

a  =  qb+r.a \;=\; qb + r .

Then an integer dd is a common divisor of aa and bb if and only if it is a common divisor of bb and rr (Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq); the two sets of common divisors are equal. Consequently

gcd(a,b)  =  gcd(b,r)\gcd(a,b) \;=\; \gcd(b,r)

(Common divisor, and the greatest common divisor gcd(a,b)\gcd(a,b), with the convention gcd(0,0):=0\gcd(0,0) := 0).

No inequality on rr is assumed: the identity a=qb+ra = qb + r alone is what is used, so the lemma applies to any decomposition of aa, not only to the one produced by division with remainder.

Facts & Assumptions

Given: Integers a,b,q,ra, b, q, r with a=qb+ra = qb + r, and the sets D(a,b)D(a,b) and D(b,r)D(b,r) of common divisors (Common divisor, and the greatest common divisor gcd(a,b)\gcd(a,b), with the convention gcd(0,0):=0\gcd(0,0) := 0).

[L1]

Z\mathbb{Z} is a commutative ring: x0=0x \cdot 0 = 0, x+0=xx + 0 = x, and every xx has an additive inverse; we write uvu - v for u+(v)u + (-v), and a=qb+ra = qb + r gives r=aqbr = a - qb (The integers form a commutative ring, Arithmetic on the integers).

[L3]

For (u,v)(0,0)(u,v) \ne (0,0), gcd(u,v)\gcd(u,v) is the greatest element of D(u,v)D(u,v), and gcd(0,0)=0\gcd(0,0) = 0 by convention (Common divisor, and the greatest common divisor gcd(a,b)\gcd(a,b), with the convention gcd(0,0):=0\gcd(0,0) := 0).

Proof

technique · direct
1.1

Suppose dbd \mid b and drd \mid r. Then dbq+r1=ad \mid bq + r \cdot 1 = a by [L2], so dd is a common divisor of aa and bb: D(b,r)D(a,b)D(b,r) \subseteq D(a,b).

givenL1L2
1.2

Suppose dad \mid a and dbd \mid b. Then da1+b(q)=aqb=rd \mid a \cdot 1 + b(-q) = a - qb = r by [L2], so dd is a common divisor of bb and rr: D(a,b)D(b,r)D(a,b) \subseteq D(b,r).

givenL1L2
1.3

The pairs vanish together: if b=0b = 0 and r=0r = 0 then a=q0+0=0a = q \cdot 0 + 0 = 0, and if a=0a = 0 and b=0b = 0 then r=aqb=00=0r = a - qb = 0 - 0 = 0. So (a,b)=(0,0)(a,b) = (0,0) exactly when (b,r)=(0,0)(b,r) = (0,0).

givenL1
2.1

By steps 1.1 and 1.2 the two sets of common divisors are equal, D(a,b)=D(b,r)D(a,b) = D(b,r).

step 1.1step 1.2
3.1

If (a,b)(0,0)(a,b) \ne (0,0) then also (b,r)(0,0)(b,r) \ne (0,0) by step 1.3, and both greatest common divisors are the greatest element of the one set D(a,b)=D(b,r)D(a,b) = D(b,r), hence equal. If (a,b)=(0,0)(a,b) = (0,0) then (b,r)=(0,0)(b,r) = (0,0) and both values are 00. In either case gcd(a,b)=gcd(b,r)\gcd(a,b) = \gcd(b,r).

step 1.3step 2.1L3

Remarks

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 39 results over 16 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources