Alphabeta Math
DefinitionDefinition: AI-adaptedProof: Not applicablejudge 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.

Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p

Definition

Let p∈Z (The integers as equivalence classes of pairs of naturals), ordered as in Order on the integers, with divisibility as in Divisibility in Z: d∣a when a=dq for some integer q. Then p is prime when

p>1andd∣p  with  d>0  force  d=1  or  d=p.

In words: p exceeds 1, and its only positive divisors are 1 and p. An integer n with n>1 that is not prime is composite; unfolding the definition, n is composite exactly when n>1 and n has a positive divisor d with d≠1 and d≠n.

Numerals. For k∈N the symbol k inside Z means ι(k), the embedding of The naturals embed in the integers; in particular 0 and 1 are the ring constants of Arithmetic on the integers.

Boundary values, stated rather than assumed. N contains 0 (The natural numbers N (von Neumann)) and Z contains 0, 1 and the negatives, so the small cases are recorded explicitly. The clause p>1 decides all of them at once:

  • 1 is not prime, since 1>1 is false, and not composite either, since composite also requires n>1.
  • 0 is not prime, since 0>1 is false. This is decided by the size clause alone and not by counting divisors: every integer divides 0 (Divisibility in Z: d∣a when a=dq for some integer q), so the divisor condition is not what rules 0 out.
  • Every negative integer is neither prime nor composite, again because p>1 fails. So a prime is in particular positive, and −2, −3, −5 are not primes in this library, though each is −1 times one.

Thus "prime" and "composite" between them classify exactly the integers greater than 1, and nothing else.

The same condition read over all divisors. For p>1 the following are equivalent:

  1. the only positive divisors of p are 1 and p;
  2. the only divisors of p are 1, −1, p and −p.

That 2 implies 1 is immediate, since of those four only 1 and p are positive (p>1>0, so −1<0 and −p<0). For the converse let d∣p. Since p>1 we have p≠0, so d≠0 by If d∣a and a≠0 then d≠0 and ∣d∣≤∣a∣; hence the set of divisors of a nonzero integer is bounded above by ∣a∣; and ∣d∣∣p, because ∣d∣ is d or −d (The absolute value ∣a∣ of an integer) and those two divide p together (Divisibility is reflexive and transitive on Z, and is linear: if d∣a and d∣b then d∣ax+by for all integers x,y; also d∣a implies d∣ac, −d∣a and d∣−a). Also ∣d∣≥0 and ∣d∣≠0 (Absolute value in Z: ∣a∣≥0; ∣a∣=0 exactly when a=0; ∣−a∣=∣a∣; ∣ab∣=∣a∣ ∣b∣; −∣a∣≤a≤∣a∣; and ∣a∣≤c exactly when −c≤a≤c), so ∣d∣>0 and clause 1 gives ∣d∣=1 or ∣d∣=p. If ∣d∣=1 then d=1 or d=−1, by the case split defining ∣d∣; and if ∣d∣=p=∣p∣ then d=up for a unit u∈{1,−1} (For integers a and b the following are equivalent: a∣b and b∣a; b=ua for a unit u; ∣a∣=∣b∣. Being associates is an equivalence relation whose class of a is {a,−a}, (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1), that is d=p or d=−p. Both readings are used below without further comment.

Why 1 is excluded, and it is not a matter of taste. The exclusion is forced by the uniqueness half of The fundamental theorem of arithmetic: every integer n≥1 is a product of primes, and the factorisation is unique up to order — if ∏i<rpi=∏j<sqj with every pi and qj prime, then r=s and qi=pπ(i) for some π∈Sym⁡(r), proved on this page: if 1 counted as a prime, a factorisation could be padded with any number of factors 1, so lists of different lengths would represent the same integer and no permutation could match them. Existence of a factorisation would survive the change; it is uniqueness alone that fixes the convention, and the explicit witness is recorded on the companion page.

Remarks

Depends on

Used by

…and 38 more results.

Dependency tree · two levels

45 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