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

The extended Euclidean algorithm: the same descent produces integers x,y with ax+by=gcd⁡(a,b), so Bézout coefficients are computed and not merely shown to exist

Statement

Let a∈Z and b>0, and let R(k)=(ak,bk) and N be the remainder descent and its terminating index from The Euclidean algorithm: for a∈Z and b>0 the remainder descent from (a,b) terminates, and the last nonzero remainder is gcd⁡(a,b). Define Ψ:Z6→Z6 by

Ψ(A,B,x,y,u,v)  =  {(B,  A−qB,  u,  v,  x−qu,  y−qv)if B>0,(A,B,x,y,u,v)if B≤0,

where in the first clause q is the unique quotient of A by B given by 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. Let

S:N→Z6,S(0)=(a, b, 1, 0, 0, 1),S(σ(k))=Ψ(S(k))

be the function supplied by the recursion theorem (The recursion theorem), and write S(k)=(Ak,Bk,xk,yk,uk,vk). Then for every k∈N

(Ak,Bk)=(ak,bk),Ak=axk+byk,Bk=auk+bvk.

In particular, at the terminating index N,

axN+byN  =  AN  =  aN  =  gcd⁡(a,b),

so the descent that computes gcd⁡(a,b) computes a pair of Bézout coefficients alongside it.

Facts & Assumptions

Given: a∈Z, b>0, the descent R(k)=(ak,bk) and terminating index N of The Euclidean algorithm: for a∈Z and b>0 the remainder descent from (a,b) terminates, and the last nonzero remainder is gcd⁡(a,b), and the map Ψ and sequence S(k)=(Ak,Bk,xk,yk,uk,vk) described above.

[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; 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]

For A′∈Z and B′>0 there is exactly one pair (q,r) of integers 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).

[L3]

For a set X, an α∈X and f:X→X there is exactly one g:N→X with g(0)=α and g(σ(k))=f(g(k)) (The recursion theorem, The natural numbers N (von Neumann)).

[L5]

The descent satisfies R(0)=(a,b); bk≥0 for every k; R(σ(k))=(bk, ak−qbk) with q the quotient of ak by bk when bk>0, and R(σ(k))=R(k) when bk=0; N is the least index with bN=0; and aN=gcd⁡(a,b) (The Euclidean algorithm: for a∈Z and b>0 the remainder descent from (a,b) terminates, and the last nonzero remainder is gcd⁡(a,b), Common divisor, and the greatest common divisor gcd⁡(a,b), with the convention gcd⁡(0,0):=0).

[L6]

The order on Z is total and antisymmetric; x<y means x≤y together with x≠y (The integers form a totally ordered ring, Order on the integers).

Proof

technique · induction
1.1

Ψ is a well-defined function: for B>0 the quotient q of A by B is unique by [L2], so the first clause depends only on the argument; the second clause is the identity; and the two conditions B>0 and B≤0 are exhaustive and exclusive by totality. So [L3] applies with X=Z6 and produces S.

L1L2L3L6construct
1.2

Base case, k=0: (A0,B0)=(a,b)=(a0,b0); and A0=a=a⋅1+b⋅0=ax0+by0, B0=b=a⋅0+b⋅1=au0+bv0.

basegivenL1L5
1.3

Induction hypothesis: fix k and assume (Ak,Bk)=(ak,bk), Ak=axk+byk and Bk=auk+bvk.

ih
2.1

Inductive step, case bk>0. Then Bk=bk>0, so both recursions take their first clause with the same divisor and the same dividend, hence with the same quotient q by [L2]. Therefore (Aσ(k),Bσ(k))=(Bk, Ak−qBk)=(bk, ak−qbk)=(aσ(k),bσ(k)).

step 1.3L2L5
2.2

Inductive step, case bk=0. Then Bk=bk=0, so Bk≤0 and S(σ(k))=S(k), while R(σ(k))=R(k); all three equalities are inherited unchanged. Since bk≥0, the two cases are exhaustive.

step 1.3L5L6
3.1

Back in the case bk>0 of step 2.1, the coefficients transport: Aσ(k)=Bk=auk+bvk=axσ(k)+byσ(k), since (xσ(k),yσ(k))=(uk,vk); and Bσ(k)=Ak−qBk=(axk+byk)−q(auk+bvk)=a(xk−quk)+b(yk−qvk)=auσ(k)+bvσ(k) by distributivity.

step 1.3step 2.1L1
4.1

By induction the three equalities hold for every k∈N.

step 1.2step 2.1step 3.1step 2.2L4
5.1

At the terminating index N this reads axN+byN=AN=aN=gcd⁡(a,b), so (xN,yN) is a pair of Bézout coefficients for a and b, obtained from the descent itself.

step 4.1L5discharge-induction∎

Remarks

Depends on

Used by

Dependency tree · two levels

43 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