Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-generatedprecheck 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 p and any integer a, gcd⁡(p,a) is p when p∣a and 1 otherwise; so p∤a makes p and a coprime

Statement

Let p be a prime (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p) and let a∈Z. Then

gcd⁡(p,a)  =  {pif p∣a,1if p∤a,

with gcd⁡ as in Common divisor, and the greatest common divisor gcd⁡(a,b), with the convention gcd⁡(0,0):=0 and divisibility as in Divisibility in Z: d∣a when a=dq for some integer q. In particular, if p∤a then p and a are coprime (Coprime integers: gcd⁡(a,b)=1).

Facts & Assumptions

[L1]

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

[L6]

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

[L7]

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

[L8]

The embedding ι:N→Z is injective, preserves the order, and has as image exactly the nonnegative integers, with ι(0)=0 and ι(1)=1; and 0≠1 in N (The naturals embed in the integers, The natural numbers N (von Neumann), The integers as equivalence classes of pairs of naturals).

[L9]

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

Proof

technique · cases
1.1

0<1 in Z: 1=ι(1) lies in the image of ι, hence 1≥0, and 1≠0 because ι is injective and 0≠1 in N.

L8
1.2

Suppose p∣a. Then p is a common divisor of p and a, since p∣p, so p∣g.

assume-case divL2L4
2.1

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

step 1.1L7L9
2.2

p>0 and p≠0, so (p,a)≠(0,0); consequently g≥1, and in particular g>0.

step 1.1L1L3L7
3.1

p≠1 and p≠−1: the first because p>1, the second because −1<0<1<p and the order is transitive.

step 1.1step 2.1L1L7
3.2

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

step 2.2L1L2
4.1

In that case g≠1: otherwise p∣1, forcing p=1 or p=−1 and contradicting step 3.1. So g=p by step 3.2.

assume-case divstep 3.1step 3.2L5
4.2

Suppose instead p∤a. Then g≠p, since g∣a and g=p would give p∣a. So g=1 by step 3.2, that is, p and a are coprime.

assume-case nodivstep 3.2L2L6
5.1

Either p∣a or p∤a, and no third possibility exists, so the two cases above are exhaustive and give the stated value of g in each.

step 4.1step 4.2cases-exhaustive∎

Remarks

Depends on

Used by

Dependency tree · two levels

49 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