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

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

Statement

Let aZa \in \mathbb{Z} and b>0b > 0, and let R(k)=(ak,bk)R(k) = (a_k,b_k) and NN be the remainder descent and its terminating index from The Euclidean algorithm: for aZa \in \mathbb{Z} and b>0b > 0 the remainder descent from (a,b)(a,b) terminates, and the last nonzero remainder is gcd(a,b)\gcd(a,b). Define Ψ:Z6Z6\Psi : \mathbb{Z}^{6} \to \mathbb{Z}^{6} by

Ψ(A,B,x,y,u,v)  =  {(B,  AqB,  u,  v,  xqu,  yqv)if B>0,(A,B,x,y,u,v)if B0,\Psi(A,B,x,y,u,v) \;=\; \begin{cases} (B,\; A - qB,\; u,\; v,\; x - qu,\; y - qv) & \text{if } B > 0, \\ (A,B,x,y,u,v) & \text{if } B \le 0, \end{cases}

where in the first clause qq is the unique quotient of AA by BB given by 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. Let

S:NZ6,S(0)=(a,b,1,0,0,1),S(σ(k))=Ψ(S(k))S : \mathbb{N} \to \mathbb{Z}^{6}, \qquad S(0) = (a,\, b,\, 1,\, 0,\, 0,\, 1), \qquad S(\sigma(k)) = \Psi(S(k))

be the function supplied by the recursion theorem (The recursion theorem), and write S(k)=(Ak,Bk,xk,yk,uk,vk)S(k) = (A_k, B_k, x_k, y_k, u_k, v_k). Then for every kNk \in \mathbb{N}

(Ak,Bk)=(ak,bk),Ak=axk+byk,Bk=auk+bvk.(A_k, B_k) = (a_k, b_k), \qquad A_k = a x_k + b y_k, \qquad B_k = a u_k + b v_k .

In particular, at the terminating index NN,

axN+byN  =  AN  =  aN  =  gcd(a,b),a x_N + b y_N \;=\; A_N \;=\; a_N \;=\; \gcd(a,b) ,

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

Facts & Assumptions

Given: aZa \in \mathbb{Z}, b>0b > 0, the descent R(k)=(ak,bk)R(k) = (a_k,b_k) and terminating index NN of The Euclidean algorithm: for aZa \in \mathbb{Z} and b>0b > 0 the remainder descent from (a,b)(a,b) terminates, and the last nonzero remainder is gcd(a,b)\gcd(a,b), and the map Ψ\Psi and sequence S(k)=(Ak,Bk,xk,yk,uk,vk)S(k) = (A_k,B_k,x_k,y_k,u_k,v_k) described above.

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

For AZA' \in \mathbb{Z} and B>0B' > 0 there is exactly one pair (q,r)(q,r) of integers with A=qB+rA' = qB' + 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).

[L3]

For a set XX, an αX\alpha \in X and f:XXf : X \to X there is exactly one g:NXg : \mathbb{N} \to X with g(0)=αg(0) = \alpha and g(σ(k))=f(g(k))g(\sigma(k)) = f(g(k)) (The recursion theorem, The natural numbers N\mathbb{N} (von Neumann)).

[L4]

Induction on N\mathbb{N} (The principle of mathematical induction).

[L5]

The descent satisfies R(0)=(a,b)R(0) = (a,b); bk0b_k \ge 0 for every kk; R(σ(k))=(bk,akqbk)R(\sigma(k)) = (b_k,\, a_k - q b_k) with qq the quotient of aka_k by bkb_k when bk>0b_k > 0, and R(σ(k))=R(k)R(\sigma(k)) = R(k) when bk=0b_k = 0; NN is the least index with bN=0b_N = 0; and aN=gcd(a,b)a_N = \gcd(a,b) (The Euclidean algorithm: for aZa \in \mathbb{Z} and b>0b > 0 the remainder descent from (a,b)(a,b) terminates, and the last nonzero remainder 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).

[L6]

The order on Z\mathbb{Z} is total and antisymmetric; x<yx < y means xyx \le y together with xyx \ne y (The integers form a totally ordered ring, Order on the integers).

Proof

technique · induction
1.1

Ψ\Psi is a well-defined function: for B>0B > 0 the quotient qq of AA by BB is unique by [L2], so the first clause depends only on the argument; the second clause is the identity; and the two conditions B>0B > 0 and B0B \le 0 are exhaustive and exclusive by totality. So [L3] applies with X=Z6X = \mathbb{Z}^{6} and produces SS.

L1L2L3L6construct
1.2

Base case, k=0k = 0: (A0,B0)=(a,b)=(a0,b0)(A_0,B_0) = (a,b) = (a_0,b_0); and A0=a=a1+b0=ax0+by0A_0 = a = a \cdot 1 + b \cdot 0 = a x_0 + b y_0, B0=b=a0+b1=au0+bv0B_0 = b = a \cdot 0 + b \cdot 1 = a u_0 + b v_0.

basegivenL1L5
1.3

Induction hypothesis: fix kk and assume (Ak,Bk)=(ak,bk)(A_k,B_k) = (a_k,b_k), Ak=axk+bykA_k = a x_k + b y_k and Bk=auk+bvkB_k = a u_k + b v_k.

ih
2.1

Inductive step, case bk>0b_k > 0. Then Bk=bk>0B_k = b_k > 0, so both recursions take their first clause with the same divisor and the same dividend, hence with the same quotient qq by [L2]. Therefore (Aσ(k),Bσ(k))=(Bk,AkqBk)=(bk,akqbk)=(aσ(k),bσ(k))(A_{\sigma(k)}, B_{\sigma(k)}) = (B_k,\, A_k - qB_k) = (b_k,\, a_k - q b_k) = (a_{\sigma(k)}, b_{\sigma(k)}).

step 1.3L2L5
2.2

Inductive step, case bk=0b_k = 0. Then Bk=bk=0B_k = b_k = 0, so Bk0B_k \le 0 and S(σ(k))=S(k)S(\sigma(k)) = S(k), while R(σ(k))=R(k)R(\sigma(k)) = R(k); all three equalities are inherited unchanged. Since bk0b_k \ge 0, the two cases are exhaustive.

step 1.3L5L6
3.1

Back in the case bk>0b_k > 0 of step 2.1, the coefficients transport: Aσ(k)=Bk=auk+bvk=axσ(k)+byσ(k)A_{\sigma(k)} = B_k = a u_k + b v_k = a x_{\sigma(k)} + b y_{\sigma(k)}, since (xσ(k),yσ(k))=(uk,vk)(x_{\sigma(k)}, y_{\sigma(k)}) = (u_k,v_k); and Bσ(k)=AkqBk=(axk+byk)q(auk+bvk)=a(xkquk)+b(ykqvk)=auσ(k)+bvσ(k)B_{\sigma(k)} = A_k - q B_k = (a x_k + b y_k) - q(a u_k + b v_k) = a(x_k - q u_k) + b(y_k - q v_k) = a u_{\sigma(k)} + b v_{\sigma(k)} by distributivity.

step 1.3step 2.1L1
4.1

By induction the three equalities hold for every kNk \in \mathbb{N}.

step 1.2step 2.1step 3.1step 2.2L4
5.1

At the terminating index NN this reads axN+byN=AN=aN=gcd(a,b)a x_N + b y_N = A_N = a_N = \gcd(a,b), so (xN,yN)(x_N, y_N) is a pair of Bézout coefficients for aa and bb, obtained from the descent itself.

step 4.1L5discharge-induction

Remarks

Depends on

Used by

Dependency tree · next 3 levels

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