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

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

Statement

Let a,bZa, b \in \mathbb{Z}, not both 00, and put

I  :=  {ax+by  :  x,yZ}.I \;:=\; \{\, ax + by \;:\; x, y \in \mathbb{Z} \,\} .

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

ax0+by0  =  gcd(a,b),a x_0 + b y_0 \;=\; \gcd(a,b),

so the equation ax+by=gcd(a,b)ax + by = \gcd(a,b) is solvable in Z\mathbb{Z}.

Facts & Assumptions

Given: Integers aa and bb, not both 00; the set I={ax+by:x,yZ}I = \{\, ax + by : x, y \in \mathbb{Z} \,\}; and the embedding ι:NZ\iota : \mathbb{N} \to \mathbb{Z}, ι(k)=[(k,0)]\iota(k) = [(k,0)], of The naturals embed in the integers.

[L1]

Z\mathbb{Z} is a commutative ring: addition and multiplication are associative and commutative, x+0=xx + 0 = x, x1=xx \cdot 1 = x, x0=0x \cdot 0 = 0, multiplication distributes over addition, and every xx has an additive inverse x-x, with (x)=x-(-x) = x and (x)(y)=xy(-x)(-y) = xy; we write uvu - v for u+(v)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\mathbb{Z} is total, antisymmetric and transitive, is compatible with addition, and positives are closed under multiplication; x<yx < y means xyx \le y together with xyx \ne y (The integers form a totally ordered ring, Order on the integers).

[L3]

ι\iota 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\mathbb{N} (von Neumann)).

[L4]

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

[L5]

For aZa \in \mathbb{Z} and b>0b' > 0 there are integers q,rq, r with a=qb+ra = q b' + r and 0r<b0 \le r < b' (Division with remainder in Z\mathbb{Z}: for aZa \in \mathbb{Z} and b>0b > 0 there are unique q,rZq, r \in \mathbb{Z} with a=qb+ra = qb + r and 0r<b0 \le r < b).

[L6]

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

[L10]

dad \mid a means a=dqa = dq for some qZq \in \mathbb{Z} (Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq).

Proof

technique · direct
1.1

If 0u0 \le u and 0v0 \le v then 0uv0 \le uv, and if moreover u0u \ne 0 and v0v \ne 0 then 0<uv0 < uv: for u=0u = 0 or v=0v = 0 the product is 00, and otherwise 0<u0 < u and 0<v0 < v, so 0<uv0 < uv because positives are closed under multiplication.

L1L2
1.2

If 0<u0 < u and 0v0 \le v then 0<u+v0 < u + v: adding uu to 0v0 \le v gives uu+vu \le u + v, so 0u+v0 \le u + v by transitivity, and u+v=0u + v = 0 would give u0u \le 0 and hence u=0u = 0 by antisymmetry, contrary to 0<u0 < u.

L1L2
2.1

xx0x \cdot x \ge 0 for every xx, with xx>0x \cdot x > 0 when x0x \ne 0. By totality either 0x0 \le x, and step 1.1 applies directly, or x0x \le 0, in which case 0x0 \le -x by compatibility with addition and xx=(x)(x)0x \cdot x = (-x)(-x) \ge 0 by step 1.1; the strict form follows since x0x \ne 0 gives x0-x \ne 0.

step 1.1L1L2
3.1

II contains a positive element: aa+bbIa \cdot a + b \cdot b \in I, and one of a,ba, b is nonzero, so one of aaa \cdot a, bbb \cdot 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 PP be the set of positive elements of II and put T:={kN:ι(k)P}T := \{\, k \in \mathbb{N} : \iota(k) \in P \,\}. Every pPp \in P satisfies p0p \ge 0, hence p=ι(k)p = \iota(k) for some kNk \in \mathbb{N} with kTk \in T; so TT is nonempty by step 3.1.

step 3.1L3
5.1

By well-ordering let k0k_0 be the least element of TT and put d:=ι(k0)d := \iota(k_0), so dPd \in P and d>0d > 0; fix x0,y0Zx_0, y_0 \in \mathbb{Z} with d=ax0+by0d = a x_0 + b y_0.

step 4.1L4choose
6.1

dd is the least element of PP: given pPp \in P, write p=ι(k)p = \iota(k) with kTk \in T as in step 4.1; then k0kk_0 \le k, and applying ι\iota, which preserves the order, gives d=ι(k0)ι(k)=pd = \iota(k_0) \le \iota(k) = p.

step 4.1step 5.1L3L4
7.1

dad \mid a. By [L5] with divisor d>0d > 0 write a=qd+ra = qd + r with 0r<d0 \le r < d. Then r=aqd=aq(ax0+by0)=a(1qx0)+b(qy0)r = a - qd = a - q(a x_0 + b y_0) = a(1 - q x_0) + b(-q y_0), so rIr \in I. If rr were positive it would lie in PP, so drd \le r by step 6.1, which with r<dr < d contradicts antisymmetry. Hence rr is not positive; with 0r0 \le r this forces r=0r = 0, so a=qda = qd and dad \mid a.

step 5.1step 6.1L1L2L5L10
7.2

dbd \mid b, by the same argument with bb in place of aa: dividing bb by dd gives b=qd+rb = q'd + r' with 0r<d0 \le r' < d, and r=b(1qy0)+a(qx0)Ir' = b(1 - q' y_0) + a(-q' x_0) \in I, so r=0r' = 0 as before.

step 5.1step 6.1L1L2L5L10
8.1

So dd is a common divisor of aa and bb. Moreover every common divisor cc of aa and bb divides ax0+by0=da x_0 + b y_0 = d by [L7].

step 5.1step 7.1step 7.2L7
9.1

Since d>0d > 0 we have d0d \ne 0 and d=d|d| = d, so every common divisor cc satisfies cd=dc \le |d| = d by [L8].

step 5.1step 8.1L8L9
10.1

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

step 8.1step 9.1L6given
11.1

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

step 5.1step 6.1step 10.1

Remarks

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 55 results over 22 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