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: is prime when and its only positive divisors are and
Definition
Let (The integers as equivalence classes of pairs of naturals), ordered as in Order on the integers, with divisibility as in Divisibility in : when for some integer . Then is prime when
In words: exceeds , and its only positive divisors are and . An integer with that is not prime is composite; unfolding the definition, is composite exactly when and has a positive divisor with and .
Numerals. For the symbol inside means , the embedding of The naturals embed in the integers; in particular and are the ring constants of Arithmetic on the integers.
Boundary values, stated rather than assumed. contains (The natural numbers (von Neumann)) and contains , and the negatives, so the small cases are recorded explicitly. The clause decides all of them at once:
- is not prime, since is false, and not composite either, since composite also requires .
- is not prime, since is false. This is decided by the size clause alone and not by counting divisors: every integer divides (Divisibility in : when for some integer ), so the divisor condition is not what rules out.
- Every negative integer is neither prime nor composite, again because fails. So a prime is in particular positive, and , , are not primes in this library, though each is times one.
Thus "prime" and "composite" between them classify exactly the integers greater than , and nothing else.
The same condition read over all divisors. For the following are equivalent:
- the only positive divisors of are and ;
- the only divisors of are , , and .
That 2 implies 1 is immediate, since of those four only and are positive (, so and ). For the converse let . Since we have , so by If and then and ; hence the set of divisors of a nonzero integer is bounded above by ; and , because is or (The absolute value of an integer) and those two divide together (Divisibility is reflexive and transitive on , and is linear: if and then for all integers ; also implies , and ). Also and (Absolute value in : ; exactly when ; ; ; ; and exactly when ), so and clause 1 gives or . If then or , by the case split defining ; and if then for a unit (For integers and the following are equivalent: and ; for a unit ; . Being associates is an equivalence relation whose class of is , is a commutative monoid whose group of units is ; equivalently holds exactly for and ), that is or . Both readings are used below without further comment.
Why 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 is a product of primes, and the factorisation is unique up to order — if with every and prime, then and for some , proved on this page: if counted as a prime, a factorisation could be padded with any number of factors , 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
-
The witness for the exclusion of . The companion page carries it explicitly: If were admitted as a prime, uniqueness would fail: , lists of different lengths that no permutation matches ↗ displays , three lists of lengths , and that no permutation can match.
-
No ring vocabulary is used here, deliberately. In a general commutative ring one distinguishes a prime element from an irreducible element, and in the two notions coincide; that dictionary needs the definition of a ring, which this library develops far above this page, so it is not stated here and nothing below depends on it. What is proved here is the arithmetic content of the coincidence: For an integer : is prime if and only if, for all integers and , implies or shows that for the definition above is equivalent to the property that forces or .
-
Primality is about ; coprimality is about a pair. Coprime integers: is the condition on two integers and needs no primality at all — and are coprime and neither is prime. The bridge in the other direction is For a prime and any integer , is when and otherwise; so makes and coprime, the next item, and it is the only place on this page where primality is converted into coprimality.
Depends on
- Divisibility in $\mathbb{Z}$: $d \mid a$ when $a = dq$ for some integer $q$
- Divisibility is reflexive and transitive on $\mathbb{Z}$, and is linear: if $d \mid a$ and $d \mid b$ then $d \mid ax + by$ for all integers $x, y$; also $d \mid a$ implies $d \mid ac$, $-d \mid a$ and $d \mid -a$
- If $d \mid a$ and $a \ne 0$ then $d \ne 0$ and $|d| \le |a|$; hence the set of divisors of a nonzero integer is bounded above by $|a|$
- The absolute value $|a|$ of an integer
- Absolute value in $\mathbb{Z}$: $|a| \ge 0$; $|a| = 0$ exactly when $a = 0$; $|-a| = |a|$; $|ab| = |a|\,|b|$; $-|a| \le a \le |a|$; and $|a| \le c$ exactly when $-c \le a \le c$
- For integers $a$ and $b$ the following are equivalent: $a \mid b$ and $b \mid a$; $b = ua$ for a unit $u$; $|a| = |b|$. Being associates is an equivalence relation whose class of $a$ is $\{a, -a\}$
- $(\mathbb{Z}, \cdot, 1)$ is a commutative monoid whose group of units is $\{1, -1\}$; equivalently $u \mid 1$ holds exactly for $u = 1$ and $u = -1$
- The integers as equivalence classes of pairs of naturals
- Arithmetic on the integers
- Order on the integers
- The integers form a commutative ring
- The integers form a totally ordered ring
- The natural numbers $\mathbb{N}$ (von Neumann)
- The naturals embed in the integers
Used by
- A finite group of prime order is cyclic and every nonidentity element generates it Corollary
- A finite p-group action on X has a global fixed point whenever p∤|X| Corollary
- A rational root of xᵏ = m is an integer: if k ≥ 1, m ∈ ℤ, x ∈ ℚ and xᵏ is the image of m, then x is the image of an integer Corollary
- Every nonzero integer n is u ∏_i<r pᵢ with u ∈ {1,-1} and every pᵢ prime; u and r are determined by n, and the list is determined up to a permutation Corollary
- Every subgroup of index p in a finite p-group is normal Corollary
- 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 Corollary
- For every prime p and positive n, xⁿ-p is irreducible over ℚ Corollary
- If a prime p divides a finite product ∏_i<n aᵢ of integers then p ∣ aᵢ for some i < n; at n = 0 the product is 1 and the hypothesis cannot hold Corollary
- φ(1)=1, and φ(p)=p-1 for every prime p Corollary
- If 1 were admitted as a prime, uniqueness would fail: 6 = 2 · 3 = 1 · 2 · 3 = 1 · 1 · 2 · 3, lists of different lengths that no permutation matches Counterexample
- In the multiplicative monoid H = {1, 4, 7, 10, …} of positive integers one more than a multiple of 3, the element 100 has two genuinely different factorisations into irreducibles, 4 · 25 and 10 · 10 Counterexample
- Over Fₚ, xᵖ-x and the zero polynomial induce the same function but are distinct polynomials Counterexample
- A finite p-group has order pⁿ for a prime p and some n∈ℕ Definition
- The p-adic valuation vₚ(a) of a nonzero integer: the greatest k ∈ ℕ with pᵏ ∣ a Definition
- 2 is prime, and it is the only even prime: every even integer n > 2 is composite Example
- 360 = 2³ · 3² · 5 and 84 = 2² · 3 · 7, with gcd(360,84) = 12 and lcm(360,84) = 2520 read off the exponents Example
- A modulus n>1 is composite exactly when two nonzero classes in ℤ/n have product [0]ₙ Example
- Eisenstein proves xⁿ-2 irreducible over ℚ for every positive n Example
- For every n ∈ ℕ there are n consecutive composite integers: with N := ∏_j<n(j+2), each of N+2, …, N+n+1 is composite Example
- In characteristic 2, x²+1=(x+1)² has zero derivative and a repeated root Example
- Reduction modulo 2 proves x³+17x+391 irreducible over ℚ Example
- The polynomial x²-2 is irreducible over ℚ Example
- Translation turns x⁴+1 into an Eisenstein polynomial Example
- FALSE: every Fermat number 2^2ⁿ + 1 is prime False statement
- FALSE: for every finite list p₀, …, pₙ₋₁ of distinct primes, p₀ ⋯ pₙ₋₁ + 1 is prime False statement
- FALSE: n² + n + 41 is prime for every natural number n False statement
- Every integer n > 1 has a prime divisor; indeed the least divisor of n that exceeds 1 is prime Lemma
- For a prime p and a nonzero integer a: p^vₚ(a) ∣ a and p^vₚ(a)+1 ∤ a; pᵏ ∣ a holds exactly for k ≤ vₚ(a); vₚ(a) ≥ 1 exactly when p ∣ a; vₚ(1) = vₚ(-1) = 0; and vₚ(p) = 1 Lemma
- 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 Lemma
- For a prime p and k≥1, multiplication by p bijects the standard representatives modulo pᵏ⁻¹ with the representatives modulo pᵏ divisible by p Lemma
- For positive integers a and b: a ∣ b if and only if vₚ(a) ≤ vₚ(b) for every prime p Lemma
- The p-adic valuation extends to the nonzero rationals by vₚ(a/b) := vₚ(a) - vₚ(b) ∈ ℤ, independently of the representation; it satisfies vₚ(xy) = vₚ(x) + vₚ(y), and vₚ(x+y) ≥ min{vₚ(x), vₚ(y)} whenever x, y and x+y are nonzero Lemma
- vₚ(ab) = vₚ(a) + vₚ(b) for nonzero integers a, b, and vₚ(a+b) ≥ min{vₚ(a), vₚ(b)} whenever a, b and a+b are all nonzero Lemma
- Cauchy's theorem: if a prime p divides |G|, then G has an element of order p Theorem
- Eisenstein criterion over the integers Theorem
- Euclid's lemma: if p is prime and p ∣ ab then p ∣ a or p ∣ b Theorem
- Euclid's theorem: for every n ∈ ℕ and every list p : n → ℤ of primes there is a prime not among p₀, …, pₙ₋₁; consequently the set of primes is not finite Theorem
- Euler's product formula φ(n)=n∏_p∣ n(1-1/p)=∏_pᵏ∥ n(pᵏ-pᵏ⁻¹) for n≥1, stated through a finite injective list of its prime divisors Theorem
- Every integer n ≥ 1 is a finite product of primes: there are r ∈ ℕ and a list p : r → ℤ of primes with n = ∏_i<r pᵢ, the case n = 1 being the empty product Theorem
- Fermat's little theorem: for prime p, p∤ a implies aᵖ⁻¹≡1pmod p, and always aᵖ≡ apmod p Theorem
…and 6 more results.
Dependency tree · next 3 levels
Direct dependencies and their dependencies through the next three levels: 73 results over 25 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
- Prime number (Wikipedia) (standard reference, not scraped)
- Composite number (Wikipedia) (standard reference, not scraped)
- Inquiry into Advanced Algebra: Division, primes, and factorisation (standard reference, not scraped)