Alphabeta Math
TheoremStatement: 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.

Bézout's identity: for integers a,b not both zero, gcd⁡(a,b) is the least positive element of { ax+by:x,y∈Z }; in particular ax+by=gcd⁡(a,b) has an integer solution

Statement

Let a,b∈Z, not both 0, and put

I  :=  { ax+by  :  x,y∈Z }.

Then I contains a positive element, and its least positive element is gcd⁡(a,b) (Common divisor, and the greatest common divisor gcd⁡(a,b), with the convention gcd⁡(0,0):=0). In particular there are integers x0,y0 with

ax0+by0  =  gcd⁡(a,b),

so the equation ax+by=gcd⁡(a,b) is solvable in Z.

Facts & Assumptions

Given: Integers a and b, not both 0; the set I={ ax+by:x,y∈Z }; and the embedding ι:N→Z, ι(k)=[(k,0)], of The naturals embed in the integers.

[L1]

Z is a commutative ring: addition and multiplication are associative and commutative, x+0=x, x⋅1=x, x⋅0=0, multiplication distributes over addition, and every x has an additive inverse −x, with −(−x)=x and (−x)(−y)=xy; we write u−v for u+(−v) (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).

[L2]

The order on Z is total, antisymmetric and transitive, is compatible with addition, and positives are closed under multiplication; x<y means x≤y together with x≠y (The integers form a totally ordered ring, Order on the integers).

[L3]

ι is injective, preserves addition, multiplication and order, and its image is exactly the nonnegative integers (The naturals embed in the integers, The natural numbers N (von Neumann)).

[L4]

Every nonempty subset of N has a least element (The well-ordering principle, Order on the natural numbers).

[L5]

For a∈Z and b′>0 there are integers q,r with a=qb′+r and 0≤r<b′ (Division with remainder in Z: for a∈Z and b>0 there are unique q,r∈Z with a=qb+r and 0≤r<b).

[L6]

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

[L10]

d∣a means a=dq for some q∈Z (Divisibility in Z: d∣a when a=dq for some integer q).

Proof

technique · direct
1.1

If 0≤u and 0≤v then 0≤uv, and if moreover u≠0 and v≠0 then 0<uv: for u=0 or v=0 the product is 0, and otherwise 0<u and 0<v, so 0<uv because positives are closed under multiplication.

L1L2
1.2

If 0<u and 0≤v then 0<u+v: adding u to 0≤v gives u≤u+v, so 0≤u+v by transitivity, and u+v=0 would give u≤0 and hence u=0 by antisymmetry, contrary to 0<u.

L1L2
2.1

x⋅x≥0 for every x, with x⋅x>0 when x≠0. By totality either 0≤x, and step 1.1 applies directly, or x≤0, in which case 0≤−x by compatibility with addition and x⋅x=(−x)(−x)≥0 by step 1.1; the strict form follows since x≠0 gives −x≠0.

step 1.1L1L2
3.1

I contains a positive element: a⋅a+b⋅b∈I, and one of a,b is nonzero, so one of a⋅a, b⋅b is positive and the other is nonnegative, whence the sum is positive by step 1.2.

step 2.1step 1.2given
4.1

Let P be the set of positive elements of I and put T:={ k∈N:ι(k)∈P }. Every p∈P satisfies p≥0, hence p=ι(k) for some k∈N with k∈T; so T is nonempty by step 3.1.

step 3.1L3
5.1

By well-ordering let k0 be the least element of T and put d:=ι(k0), so d∈P and d>0; fix x0,y0∈Z with d=ax0+by0.

step 4.1L4choose
6.1

d is the least element of P: given p∈P, write p=ι(k) with k∈T as in step 4.1; then k0≤k, and applying ι, which preserves the order, gives d=ι(k0)≤ι(k)=p.

step 4.1step 5.1L3L4
7.1

d∣a. By [L5] with divisor d>0 write a=qd+r with 0≤r<d. Then r=a−qd=a−q(ax0+by0)=a(1−qx0)+b(−qy0), so r∈I. If r were positive it would lie in P, so d≤r by step 6.1, which with r<d contradicts antisymmetry. Hence r is not positive; with 0≤r this forces r=0, so a=qd and d∣a.

step 5.1step 6.1L1L2L5L10
7.2

d∣b, by the same argument with b in place of a: dividing b by d gives b=q′d+r′ with 0≤r′<d, and r′=b(1−q′y0)+a(−q′x0)∈I, so r′=0 as before.

step 5.1step 6.1L1L2L5L10
8.1

So d is a common divisor of a and b. Moreover every common divisor c of a and b divides ax0+by0=d by [L7].

step 5.1step 7.1step 7.2L7
9.1

Since d>0 we have d≠0 and ∣d∣=d, so every common divisor c satisfies c≤∣d∣=d by [L8].

step 5.1step 8.1L8L9
10.1

Therefore d is the greatest element of D(a,b), and greatest elements are unique, so d=gcd⁡(a,b) by [L6]; the hypothesis that a and b are not both 0 is what makes that clause of the definition apply.

step 8.1step 9.1L6given
11.1

Hence gcd⁡(a,b)=d is the least positive element of I by step 6.1, and gcd⁡(a,b)=ax0+by0 by step 5.1: the equation ax+by=gcd⁡(a,b) is solvable.

step 5.1step 6.1step 10.1∎

Remarks

Depends on

Used by

Dependency tree · two levels

42 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