Alphabeta Math
CorollaryStatement: 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 an integer p>1: p is prime if and only if, for all integers a and b, p∣ab implies p∣a or p∣b

Statement

Let p∈Z with p>1. The following are equivalent:

  1. p is prime (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p);
  2. for all a,b∈Z, p∣ab implies p∣a or p∣b (Divisibility in Z: d∣a when a=dq for some integer q).

Facts & Assumptions

Given: An integer p with p>1.

[L1]

p is prime exactly when 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).

[L2]

If q is prime and q∣uv then q∣u or q∣v (Euclid's lemma: if p is prime and p∣ab then p∣a or p∣b).

[L5]

If xz=yz and z≠0 then x=y (The integers have no zero divisors; multiplicative cancellation).

[L7]

Z is a commutative ring: multiplication is associative and commutative, x⋅1=x, and every x has an additive inverse −x (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).

[L8]

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).

[L9]

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)).

Proof

technique · direct
1.1

0<1: 1=ι(1) lies in the image of ι, so 1≥0, and 1≠0 because ι is injective and 0≠1 in N. Adding −1 throughout gives −1<0.

L7L8L9
1.2

Claim 1 implies claim 2: if p is prime this is exactly [L2].

L2
1.3

Assume claim 2, and let d be a positive divisor of p; fix c∈Z with p=dc.

L6choose
2.1

p>1>0, so p>0 and p≠0.

step 1.1L8
2.2

Then p∣dc, since p∣p and p=dc; so claim 2 applied with a:=d and b:=c gives p∣d or p∣c.

step 1.3L6
3.1

Suppose p∣d. Since also d∣p, [L3] gives ∣d∣=∣p∣, hence d=wp for a unit w∈{1,−1}. If w=−1 then d=−p<0, contradicting d>0; so w=1 and d=p.

step 2.1step 1.3step 2.2L3L7L8L10
3.2

Suppose instead p∣c, and fix e with c=pe. Then 1⋅p=p=dc=d(pe)=(de)⋅p, and p≠0, so cancellation gives de=1. Hence d∣1, so d=1 or d=−1, and d>0>−1 leaves d=1.

step 1.1step 2.1step 1.3step 2.2L4L5L6L7L8
4.1

By step 2.2 one of the two cases occurs, so every positive divisor d of p satisfies d=1 or d=p; together with the standing hypothesis p>1 this says p is prime, so claim 2 implies claim 1.

step 2.2step 3.1step 3.2L1
5.1

The two implications of steps 1.2 and 4.1 give the equivalence.

step 1.2step 4.1∎

Remarks

Depends on

Used by

Dependency tree · two levels

52 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