Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-adaptedprecheck 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+r then a,b and b,r have exactly the same common divisors, so gcd⁡(a,b)=gcd⁡(b,r)

Statement

Let a,b,q,r∈Z satisfy

a  =  qb+r.

Then an integer d is a common divisor of a and b if and only if it is a common divisor of b and r (Divisibility in Z: d∣a when a=dq for some integer q); the two sets of common divisors are equal. Consequently

gcd⁡(a,b)  =  gcd⁡(b,r)

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

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

Facts & Assumptions

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

[L1]

Z is a commutative ring: x⋅0=0, x+0=x, and every x has an additive inverse; we write u−v for u+(−v), and a=qb+r gives r=a−qb (The integers form a commutative ring, Arithmetic on the integers).

[L3]

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

Proof

technique · direct
1.1

Suppose d∣b and d∣r. Then d∣bq+r⋅1=a by [L2], so d is a common divisor of a and b: D(b,r)⊆D(a,b).

givenL1L2
1.2

Suppose d∣a and d∣b. Then d∣a⋅1+b(−q)=a−qb=r by [L2], so d is a common divisor of b and r: D(a,b)⊆D(b,r).

givenL1L2
1.3

The pairs vanish together: if b=0 and r=0 then a=q⋅0+0=0, and if a=0 and b=0 then r=a−qb=0−0=0. So (a,b)=(0,0) exactly when (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).

step 1.1step 1.2
3.1

If (a,b)≠(0,0) then also (b,r)≠(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), hence equal. If (a,b)=(0,0) then (b,r)=(0,0) and both values are 0. In either case gcd⁡(a,b)=gcd⁡(b,r).

step 1.3step 2.1L3∎

Remarks

Depends on

Used by

Dependency tree · two levels

23 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