Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-generatedSession-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.

For a prime pp and any integer aa, gcd(p,a)\gcd(p,a) is pp when pap \mid a and 11 otherwise; so pap \nmid a makes pp and aa coprime

Statement

Let pp be a prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp) and let aZa \in \mathbb{Z}. Then

gcd(p,a)  =  {pif pa,1if pa,\gcd(p,a) \;=\; \begin{cases} p & \text{if } p \mid a, \\ 1 & \text{if } p \nmid a, \end{cases}

with gcd\gcd as in Common divisor, and the greatest common divisor gcd(a,b)\gcd(a,b), with the convention gcd(0,0):=0\gcd(0,0) := 0 and divisibility as in Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq. In particular, if pap \nmid a then pp and aa are coprime (Coprime integers: gcd(a,b)=1\gcd(a,b) = 1).

Facts & Assumptions

[L1]

p>1p > 1, and every positive divisor dd of pp satisfies d=1d = 1 or d=pd = p (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp).

[L6]

uu and vv are coprime exactly when gcd(u,v)=1\gcd(u,v) = 1 (Coprime integers: gcd(a,b)=1\gcd(a,b) = 1).

[L7]

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

[L8]

The embedding ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, preserves the order, and has as image exactly the nonnegative integers, with ι(0)=0\iota(0) = 0 and ι(1)=1\iota(1) = 1; and 010 \ne 1 in N\mathbb{N} (The naturals embed in the integers, The natural numbers N\mathbb{N} (von Neumann), The integers as equivalence classes of pairs of naturals).

[L9]

Z\mathbb{Z} is a commutative ring: addition is associative and commutative, x+0=xx + 0 = x, and every xx has an additive inverse x-x, with (x)=x-(-x) = x; we write uvu - v for u+(v)u + (-v) (The integers form a commutative ring, Arithmetic on the integers).

Proof

technique · cases
1.1

0<10 < 1 in Z\mathbb{Z}: 1=ι(1)1 = \iota(1) lies in the image of ι\iota, hence 101 \ge 0, and 101 \ne 0 because ι\iota is injective and 010 \ne 1 in N\mathbb{N}.

L8
1.2

Suppose pap \mid a. Then pp is a common divisor of pp and aa, since ppp \mid p, so pgp \mid g.

assume-case divL2L4
2.1

1<0-1 < 0: adding 1-1 to both sides of 0<10 < 1 preserves the order, giving 1<0-1 < 0.

step 1.1L7L9
2.2

p>0p > 0 and p0p \ne 0, so (p,a)(0,0)(p,a) \ne (0,0); consequently g1g \ge 1, and in particular g>0g > 0.

step 1.1L1L3L7
3.1

p1p \ne 1 and p1p \ne -1: the first because p>1p > 1, the second because 1<0<1<p-1 < 0 < 1 < p and the order is transitive.

step 1.1step 2.1L1L7
3.2

gg is a positive divisor of pp, so g=1g = 1 or g=pg = p.

step 2.2L1L2
4.1

In that case g1g \ne 1: otherwise p1p \mid 1, forcing p=1p = 1 or p=1p = -1 and contradicting step 3.1. So g=pg = p by step 3.2.

assume-case divstep 3.1step 3.2L5
4.2

Suppose instead pap \nmid a. Then gpg \ne p, since gag \mid a and g=pg = p would give pap \mid a. So g=1g = 1 by step 3.2, that is, pp and aa are coprime.

assume-case nodivstep 3.2L2L6
5.1

Either pap \mid a or pap \nmid a, and no third possibility exists, so the two cases above are exhaustive and give the stated value of gg in each.

step 4.1step 4.2cases-exhaustive

Remarks

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 73 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