Alphabeta Math
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.

✓ 16 results · all verified · 9 also independently AI-judged
Every result on this page is machine-checked by a proof checker and read in full and owner-audited; the judge is an additional, independent cross-model AI review of the proofs. The 7 not AI-judged were verified by owner audit (typically over a confirmed judge false positive), not failures.

Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic

1 · Prerequisites

2 · Summary

Divisibility in Z, Bézout’s identity, the gcd characterisation, and the coprime-divides-product lemma provide the arithmetic background. In particular, If gcd⁡(a,b)=1 and a∣bc then a∣c; and if a∣c, b∣c and gcd⁡(a,b)=1 then ab∣c converts coprimality into divisibility of a factor without assuming primality, while The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity supplies the finite-product convention used throughout. Integer order, absolute value, and the natural-number embedding control positivity, signs, induction, and the empty product.

Prime integers and p-adic valuations are defined. Euclid’s lemma and its finite-product form lead to existence and uniqueness of prime factorisation and to infinitude of the primes. Canonical factorisation then expresses divisibility, gcd, and lcm through valuations. Finally vp extends from nonzero integers to nonzero rationals, and the valuation formulas show that a rational kth root of an integer is itself an integer.

3 · Logical flowchart

4 · Definitions, theorems and proofs

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

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

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

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

TheoremStatement: Literature-sourcedProof: Literature-sourcedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

Euclid's lemma: if p is prime and p∣ab then p∣a or p∣b

Facts & Assumptions

Proof

technique · cases
1.1

Suppose p∣a. Then the disjunction p∣a or p∣b holds on its first alternative, and there is nothing further to prove.

assume-case div
1.2

Suppose instead p∤a. Then gcd⁡(p,a)=1, so p and a are coprime.

assume-case nodivL1L3L6
2.1

Apply [L2] with u:=p, v:=a and w:=b. Its two hypotheses are exactly gcd⁡(p,a)=1, which is step 1.2, and p∣ab, which is given; its conclusion is p∣b.

assume-case nodivstep 1.2L2L4L5
3.1

Either p∣a or p∤a, so the two cases are exhaustive; in the first p∣a and in the second p∣b, which is the assertion.

step 1.1step 2.1cases-exhaustive∎

Remarks

CorollaryStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

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

CorollaryStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

If a prime p divides a finite product ∏i<nai of integers then p∣ai for some i<n; at n=0 the product is 1 and the hypothesis cannot hold

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), let n∈N, and let a:N→Z, with the finite product ∏i<nai taken in the commutative monoid (Z,⋅,1) of (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1 as in The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity. If

p  ∣  ∏i<nai,

then p∣ai for some i<n.

At n=0 the product is the empty product 1, and p∣1 is impossible for a prime, so the hypothesis is never satisfied there and the assertion is true rather than excluded. Since ∏i<nai depends only on a0,…,an−1 (The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity), the statement applies verbatim to a finite list a:n→Z.

Facts & Assumptions

Given: A prime p; the property P(n): "for every family a:N→Z, if p∣∏i<nai then p∣ai for some i<n".

[L2]

In a monoid, ∏i<0gi=e and ∏i<σ(n)gi=(∏i<ngi)⋅gn; the value depends only on g0,…,gn−1 (The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity).

[L3]

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]

Induction: a property holding at 0 and inherited by successors holds at every natural number (The principle of mathematical induction).

[L6]

On N: n<σ(n), and m<σ(n) exactly when m≤n (On N the order is membership: m<n  ⟺  m∈n, The natural numbers N (von Neumann)).

[L7]

The order on Z is total, antisymmetric and transitive and is compatible with addition (The integers form a totally ordered ring, Order on the integers); Z is a commutative ring (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).

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

Proof

technique · induction
1.1

0<1, since 1=ι(1) is nonnegative and 1≠0 by injectivity of ι; adding −1 gives −1<0. Hence −1<0<1<p, so p≠1 and p≠−1.

L4L7L8
1.2

Let n∈N and assume P(n).

ih
1.3

Let a:N→Z and suppose p∣∏i<σ(n)ai. By the recursion clause this product equals (∏i<nai)⋅an, so [L3] gives p∣∏i<nai or p∣an.

L1L2L3L9
2.1

P(0) holds: ∏i<0ai=1 for every family a, and p∣1 would force p=1 or p=−1, which step 1.1 excludes. So the hypothesis of P(0) is never satisfied and P(0) is true vacuously.

basestep 1.1L1L2
2.2

In the first case step 1.2 supplies i<n with p∣ai, and i<n<σ(n) gives i<σ(n); in the second case i:=n works, since n<σ(n). Either way some i<σ(n) has p∣ai, so P(σ(n)) holds.

step 1.2step 1.3L6
3.1

P(0) holds and P(n) implies P(σ(n)) for every n, so P(n) holds for every n∈N.

step 2.1step 2.2L5discharge-induction∎

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

Every integer n>1 has a prime divisor; indeed the least divisor of n that exceeds 1 is prime

Statement

Let n∈Z with n>1, and put

S  :=  { d∈Z  :  d∣n  and  d>1 }

(Divisibility in Z: d∣a when a=dq for some integer q). Then S is nonempty and has a least element q, and q is prime (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p). In particular every integer greater than 1 has a prime divisor.

Facts & Assumptions

Given: An integer n with n>1, and the set S above.

[L5]

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

[L6]

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 addition and order, and has as image exactly the nonnegative integers, with ι(0)=0 and ι(1)=1 (The naturals embed in the integers).

[L9]

On N: 0≤k for every k, since 0+k=k (Order on the natural numbers); m<k exactly when σ(m)≤k (Discreteness: σ(n) is the immediate successor); and 1=σ(0) (The natural numbers N (von Neumann)).

Proof

technique · direct
1.1

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

L8
1.2

Discreteness: if x∈Z and 0<x then 1≤x. Indeed x≥0, so x=ι(k) for some k∈N; k≠0 since ι(0)=0≠x; hence 0<k in N, so 1=σ(0)≤k, and applying the order-preserving ι gives 1=ι(1)≤ι(k)=x.

L8L9
1.3

n∈S, since n∣n and n>1; so S is nonempty.

L2
1.4

1 is a lower bound for S: every d∈S satisfies d>1, hence 1≤d.

L6
2.1

By [L3] the set S has a unique least element q: that is, q∣n, q>1, and q≤d for every d∈S.

step 1.3step 1.4L3
3.1

n>1>0 and q>1>0, so n≠0 and q≠0, and ∣q∣=q.

step 1.1step 2.1L6L10
3.2

Let e be a positive divisor of q with e≠1. Then 1≤e by step 1.2, and e≠1, so e>1.

step 1.2step 2.1L6
4.1

Also e∣q and q∣n, so e∣n by transitivity; with e>1 this gives e∈S, hence q≤e.

step 2.1step 3.2L2
5.1

On the other hand e∣q with q≠0 gives ∣e∣≤∣q∣=q, and ∣e∣=e because e>0; so e≤q. With step 4.1 and antisymmetry, e=q.

step 3.1step 3.2step 4.1L4L6L10
6.1

So every positive divisor of q is 1 or q, and q>1: q is prime. Since q∣n, the integer n has a prime divisor.

step 2.1step 3.2step 5.1L5∎

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

Every integer n≥1 is a finite product of primes: there are r∈N and a list p:r→Z of primes with n=∏i<rpi, the case n=1 being the empty product

Statement

Write finite products in the commutative monoid (Z,⋅,1) of (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1, as in The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity; a list of primes of length r means a function p:r→Z on the von Neumann natural r={0,…,r−1} with every pi prime (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p).

  1. Existence. For every n∈Z with n≥1 there are r∈N and a list p:r→Z of primes with

    n  =  ∏i<rpi.

    At n=1 this holds with r=0: the empty product is 1, so 1 is a product of primes, of no primes at all, and needs no separate clause.

  2. Every such product is at least 1. Conversely, for every r∈N and every list p:r→Z of primes, ∏i<rpi≥1. So the integers of clause 1 are exactly the values of finite products of primes.

Facts & Assumptions

Given: The commutative monoid (Z,⋅,1) ((Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1, Semigroup and monoid); the embedding ι:N→Z of The naturals embed in the integers; and the property P(k): "if ι(k)≥1 then ι(k)=∏i<rpi for some r∈N and some list p:r→Z of primes".

[L1]

∏i<0gi=e and ∏i<σ(r)gi=(∏i<rgi)⋅gr; the value depends only on g0,…,gr−1, so a list u:r→M determines ∏i<rui (The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity).

[L3]

Strong induction: if for every k the truth of P below k implies P(k), then P holds everywhere on N (Strong (complete) induction).

[L4]

Induction: a subset of N containing 0 and closed under σ is N (The principle of mathematical induction).

[L5]

ι is injective, preserves addition, multiplication and order, and its image is exactly the nonnegative integers, with ι(0)=0 and ι(1)=1 (The naturals embed in the integers, The integers as equivalence classes of pairs of naturals).

[L7]

The order on Z is total, antisymmetric and transitive, is compatible with addition, and positives are closed under multiplication (The integers form a totally ordered ring, Order on the integers).

[L8]

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

[L9]

On N: 0≤k for every k (Order on the natural numbers); m<k exactly when σ(m)≤k (Discreteness: σ(n) is the immediate successor); 1=σ(0) (The natural numbers N (von Neumann)); and r<σ(r), with i<σ(r) exactly when i≤r (On N the order is membership: m<n  ⟺  m∈n).

Proof

technique · induction
1.1

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

L5
1.2

Discreteness: if x∈Z and 0<x then 1≤x. Indeed x≥0, so x=ι(k) for some k; k≠0 since ι(0)=0≠x; so 0<k in N, hence 1=σ(0)≤k, and applying the order-preserving ι gives 1≤x.

L5L9
1.3

Let k∈N and assume P(j) for every j<k.

ih
2.1

Clause 2. Let T be the set of r∈N such that ∏i<rpi≥1 for every list p:r→Z of primes. Then 0∈T, the empty product being 1. If r∈T and p:σ(r)→Z is a list of primes, then ∏i<σ(r)pi=(∏i<rpi)pr, where the restriction of p to r is again a list of primes, so the first factor is ≥1>0; and pr>1>0; positives being closed under multiplication the product is >0, hence ≥1 by step 1.2. So σ(r)∈T, and T=N.

step 1.1step 1.2L1L4L6L7
2.2

P(0) holds vacuously: ι(0)=0 and 0≥1 is false, since 0<1.

basestep 1.1L5
2.3

Suppose ι(k)≥1 and write n:=ι(k); by totality either n=1 or n>1. If n=1, take r:=0: the empty list is a list of primes and ∏i<0pi=1=n, so P(k) holds.

step 1.1L1L7
3.1

Suppose instead n>1. Fix a prime q with q∣n and an integer m with n=qm.

step 2.3L2L10choose
4.1

m>0: m=0 would give n=q⋅0=0<1, and m<0 would give −m>0, hence q(−m)>0, that is −n>0 and n<0<1; both contradict n≥1. So m>0 and therefore m≥1 by step 1.2.

step 1.1step 1.2step 3.1L7L8
5.1

m<n: since q>1 we have q−1>0, and m>0, so (q−1)m>0; and (q−1)m=qm−m=n−m, whence n−m>0 and m<n.

step 3.1step 4.1L6L7L8
6.1

As m≥1>0, write m=ι(j) with j∈N. Then j<k: otherwise k≤j, and ι preserving the order would give n=ι(k)≤ι(j)=m, contradicting step 5.1.

step 4.1step 5.1L5L7
7.1

By step 1.3 applied to j there are s∈N and a list p:s→Z of primes with m=∏i<spi.

step 1.3step 4.1step 6.1
8.1

Define p′:σ(s)→Z by pi′:=pi for i<s and ps′:=q; every value is prime, and ∏i<σ(s)pi′=(∏i<spi′)⋅ps′=mq=qm=n, the middle equality because the product over i<s depends only on p0′,…,ps−1′, which agree with p. So P(k) holds with r:=σ(s).

step 3.1step 7.1L1L8L9
9.1

Steps 2.3 and 8.1 cover the two possibilities for n, so P(k) follows from the truth of P below k; with step 2.2 as the case k=0, strong induction gives P(k) for every k∈N.

step 2.2step 2.3step 8.1L3
10.1

Finally, any n≥1 satisfies n>0, so n=ι(k) for some k∈N, and P(k) is clause 1 for that n; clause 2 is step 2.1.

step 1.1step 2.1step 9.1L5L7discharge-induction∎

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

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)

Statement

Finite products are taken in the commutative monoid (Z,⋅,1) of (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1 as in The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity, and a list of primes of length r is a function p:r→Z on the von Neumann natural r={0,…,r−1} with every pi prime (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p).

  1. Existence. Every n∈Z with n≥1 is ∏i<rpi for some r∈N and some list p of primes of length r (Every integer n≥1 is a finite product of primes: there are r∈N and a list p:r→Z of primes with n=∏i<rpi, the case n=1 being the empty product).

  2. Uniqueness up to order. Let p and q be lists of primes, of lengths r and s. If

    ∏i<rpi  =  ∏j<sqj,

    then r=s, and there is a permutation π∈Sym⁡(r) (The symmetric group Sym⁡(X): the bijections of a set X under composition) with

    qi  =  pπ(i)for every i<r.

At r=0 clause 2 says that the only list of primes whose product is 1 is the empty list, and the permutation condition is vacuous.

Facts & Assumptions

Given: The commutative monoid (Z,⋅,1) ((Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1, Semigroup and monoid); and the property U(r): "for every s∈N and all lists p, q of primes of lengths r and s with ∏i<rpi=∏j<sqj, one has r=s and qi=pπ(i) for all i<r, for some π∈Sym⁡(r)".

[L1]

∏i<0gi=e and ∏i<σ(r)gi=(∏i<rgi)⋅gr; the value depends only on g0,…,gr−1 (The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity).

[L2]

Commutative case of generalised associativity: for a commutative monoid, n∈N, π∈Sym⁡(n) and h with hi=gπ(i) for i<n, one has ∏i<nhi=∏i<ngi (Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either).

[L4]

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

[L6]

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

[L7]

Sym⁡(X) is the set of bijections X→X under composition, with identity idX; it is closed under composition, and for a≠b in X the transposition (a b) is a permutation of X with (a b)∘(a b)=idX (The symmetric group Sym⁡(X): the bijections of a set X under composition, Sym⁡(X) is a group under composition, and it is non-abelian whenever X has at least three distinct elements, Injection, surjection, bijection).

[L9]

On N: n={ m:m<n }, σ(n)=n∪{n}, n<σ(n), m<σ(n) exactly when m≤n, and n∉n (On N the order is membership: m<n  ⟺  m∈n, The natural numbers N (von Neumann)).

[L10]

Every natural number other than 0 is a successor (Every nonzero natural number is a successor).

[L11]

The order on Z is total, antisymmetric and transitive and is compatible with addition; Z is a commutative ring (The integers form a totally ordered ring, Order on the integers, The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).

[L12]

ι:N→Z is injective, preserves the order, and has as image the nonnegative integers, with ι(0)=0, ι(1)=1 (The naturals embed in the integers).

Proof

technique · induction
1.1

0<1: 1=ι(1) is nonnegative and differs from 0=ι(0) by injectivity of ι. Hence every prime u satisfies u>1>0, so u≠0, u≠1 and, adding −1 to 0<1, also u≠−1.

L4L11L12
1.2

If q is a list of primes of length s≠0 then qt∣∏j<sqj, where s=σ(t): indeed the product equals (∏j<tqj)qt.

L1L5L10
1.3

Let r∈N and assume U(r).

ih
1.4

Let p be a list of primes of length σ(r) and q one of length s, with N:=∏i<σ(r)pi=∏j<sqj. Then N=(∏i<rpi)pr, so pr∣N.

L1L5
2.1

A prime never divides 1: u∣1 would force u=1 or u=−1, both excluded by step 1.1.

step 1.1L5
2.2

By [L3] there is k<s with pr∣qk. Since pr>1>0, pr is a positive divisor of the prime qk other than 1, so pr=qk.

step 1.1step 1.4L3L4
3.1

U(0) holds. Let q be a list of primes of length s with ∏i<0pi=∏j<sqj, so ∏j<sqj=1. If s≠0, then s=σ(t) and step 1.2 gives qt∣1, contradicting step 2.1; so s=0. Then r=s=0, id∅∈Sym⁡(0) since 0=∅, and the condition "qi=pπ(i) for all i<0" is vacuous.

basestep 2.1step 1.2L1L7L9
3.2

s≠0: otherwise N=1 and pr∣1, contradicting step 2.1. Write s=σ(t).

step 2.1step 1.4L1L10
4.1

Define τ∈Sym⁡(s) by τ:=ids if k=t and τ:=(k t) otherwise; in both cases τ is a permutation of s with τ∘τ=ids and τ(t)=k. Note t<s and k<s, so both lie in s.

step 3.2step 2.2L7L9construct
5.1

Put qj′:=qτ(j) for j<s; every qj′ is prime, and ∏j<sqj′=∏j<sqj=N by the commutative clause [L2], the monoid (Z,⋅,1) being commutative.

step 4.1L2
6.1

Also qt′=qτ(t)=qk=pr, so N=∏j<σ(t)qj′=(∏j<tqj′)qt′=(∏j<tqj′)pr.

step 2.2step 4.1step 5.1L1
7.1

Comparing with step 1.4, (∏i<rpi)pr=(∏j<tqj′)pr, and pr≠0 by step 1.1, so cancellation gives ∏i<rpi=∏j<tqj′.

step 1.1step 1.4step 6.1L6
8.1

The restrictions of p to r and of q′ to t are lists of primes of lengths r and t, and their products are the two sides of step 7.1, since a finite product depends only on the entries it names. So U(r) applies: r=t, hence s=σ(t)=σ(r), and there is ρ∈Sym⁡(r) with qi′=pρ(i) for every i<r.

step 1.3step 7.1L1
9.1

Define ρ^:σ(r)→σ(r) by ρ^(i):=ρ(i) for i<r and ρ^(r):=r. Since σ(r)=r∪{r} with r∉r, and ρ is a bijection of r, the map ρ^ is a bijection of σ(r), that is ρ^∈Sym⁡(σ(r)).

step 8.1L7L9construct
10.1

Put π:=ρ^∘τ, a permutation of s=σ(r) because Sym⁡(σ(r)) is closed under composition.

step 4.1step 8.1step 9.1L7
11.1

For i<σ(r) we get qi=qτ(τ(i))=qτ(i)′. If τ(i)<r then qτ(i)′=pρ(τ(i))=pρ^(τ(i))=pπ(i); and if τ(i)=r=t then qτ(i)′=qt′=pr=pρ^(r)=pπ(i). Since τ(i)<σ(r) these two possibilities are exhaustive, so qi=pπ(i) throughout.

step 4.1step 6.1step 8.1step 9.1step 10.1L9
12.1

Steps 8.1 and 11.1 give s=σ(r) and a permutation π∈Sym⁡(σ(r)) with qi=pπ(i) for all i<σ(r), so U(σ(r)) holds; with step 3.1 as base, induction gives U(r) for every r∈N, which is clause 2. Clause 1 is Every integer n≥1 is a finite product of primes: there are r∈N and a list p:r→Z of primes with n=∏i<rpi, the case n=1 being the empty product.

step 3.1step 8.1step 11.1L8discharge-induction∎

Remarks

CorollaryStatement: Literature-sourcedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

Every nonzero integer n is u∏i<rpi with u∈{1,−1} and every pi prime; u and r are determined by n, and the list is determined up to a permutation

Statement

Let n∈Z with n≠0, and take finite products in the commutative monoid (Z,⋅,1) of (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1, as in The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity.

  1. Existence. There are u∈{1,−1}, r∈N and a list p:r→Z of primes (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p) with

    n  =  u∏i<rpi.

  2. Uniqueness. If also n=u′∏j<sqj with u′∈{1,−1} and q:s→Z a list of primes, then u=u′, r=s, and qi=pπ(i) for every i<r, for some π∈Sym⁡(r) (The symmetric group Sym⁡(X): the bijections of a set X under composition).

Facts & Assumptions

Given: A nonzero integer n.

[L4]

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

[L5]

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

[L6]

The order on Z is total, antisymmetric and transitive and is compatible with addition (The integers form a totally ordered ring, Order on the integers).

[L7]

ι:N→Z is injective, preserves the order, and has as image exactly the nonnegative integers, with ι(0)=0 and ι(1)=1 (The naturals embed in the integers).

[L8]

On N: 0≤k for every k (Order on the natural numbers); m<k exactly when σ(m)≤k (Discreteness: σ(n) is the immediate successor); 1=σ(0) (The natural numbers N (von Neumann)).

Proof

technique · direct
1.1

0<1, since 1=ι(1) is nonnegative and differs from 0=ι(0) by injectivity; and if 0<x then 1≤x, because x=ι(k) with k≠0, so 1=σ(0)≤k and ι preserves the order.

L7L8
2.1

∣n∣≥0 and ∣n∣≠0, so ∣n∣>0 and hence ∣n∣≥1.

step 1.1L3L6
2.2

For uniqueness, suppose n=uP=u′P′ where P:=∏i<rpi and P′:=∏j<sqj and u,u′∈{1,−1}. By [L1] both P≥1 and P′≥1, so both are positive and ∣P∣=P, ∣P′∣=P′.

step 1.1L1L3L6
3.1

By [L1] there are r∈N and a list p of primes of length r with ∣n∣=∏i<rpi.

step 2.1L1choose
3.2

Taking absolute values, ∣n∣=∣u∣ ∣P∣=P and likewise ∣n∣=∣u′∣ ∣P′∣=P′, since ∣1∣=1 and ∣−1∣=1. Hence P=P′.

step 2.2L3L5
4.1

The order is total and n≠0, so n>0 or n<0. If n>0 then ∣n∣=n and n=1⋅∏i<rpi; if n<0 then ∣n∣=−n, so n=−(−n)=−∣n∣=(−1)∏i<rpi. In both cases clause 1 holds, with u=1 and u=−1 respectively.

step 3.1L3L5L6
4.2

By [L2] applied to P=P′ we get r=s and a permutation π∈Sym⁡(r) with qi=pπ(i) for every i<r.

step 3.2L2
4.3

And uP=u′P with P≠0, since P≥1>0; cancellation gives u=u′.

step 2.2step 3.2L4L6
5.1

Clause 1 is step 4.1 and clause 2 is steps 4.2 and 4.3.

step 4.1step 4.2step 4.3∎

Remarks

TheoremStatement: AI-adaptedProof: AI-adaptedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

Euclid's theorem: for every n∈N and every list p:n→Z of primes there is a prime not among p0,…,pn−1; consequently the set of primes is not finite

Statement

Write P:={ x∈Z:x is prime } (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p), and take finite products in the commutative monoid (Z,⋅,1) of (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1 as in The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity.

  1. For every n∈N and every list p:n→Z of primes there is a prime q with q≠pi for every i<n.
  2. Consequently P is not finite: there is no m∈N with P≈m (Finite, countably infinite, countable, uncountable, Equinumerous sets, A≈B and A⪯B).

Clause 1 holds at n=0 as well, where the empty product is 1 and the witness produced by the proof is a prime divisor of 2.

Facts & Assumptions

Given: The set P of primes.

[L2]

Splitting law: ∏i<m+kgi=(∏i<mgi)⋅(∏l<kgm+l) for all m,k∈N (Generalised associativity: in a monoid the product of a finite list does not depend on the bracketing, and in a commutative monoid it does not depend on the order of the factors either).

[L8]

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

[L9]

The order on Z is total, antisymmetric and transitive and is compatible with addition (The integers form a totally ordered ring, Order on the integers); ι:N→Z is injective, preserves the order, and has as image the nonnegative integers, with ι(0)=0, ι(1)=1 (The naturals embed in the integers, The natural numbers N (von Neumann)).

[L10]

On N: j<n exactly when σ(j)≤n (Discreteness: σ(n) is the immediate successor); a≤b means a+c=b for some c∈N (Order on the natural numbers, Addition of natural numbers); and n={ m:m<n } with j<σ(j) (On N the order is membership: m<n  ⟺  m∈n).

[L11]

A function is injective when it identifies no two points, surjective when its image is the whole codomain, and bijective when it is both (Injection, surjection, bijection); A≈B means a bijection A→B exists, and A is finite when A≈m for some m∈N (Equinumerous sets, A≈B and A⪯B, Finite, countably infinite, countable, uncountable).

Proof

technique · contradiction
1.1

0<1 in Z, since 1=ι(1) is nonnegative and differs from 0=ι(0) by injectivity of ι; adding 1 gives 1<1+1.

L9
1.2

Fix n∈N and a list p:n→Z of primes, and put Π:=∏i<npi and N:=Π+1.

L1choose
1.3

Suppose, for contradiction, that P is finite: fix m∈N and a bijection g:P→m.

assume-contraL11choose
2.1

Π≥1 by [L3], so N=Π+1≥1+1>1 by compatibility of the order with addition.

step 1.1step 1.2L3L9
2.2

Suppose, for contradiction, that q=pj for some j<n. Since j<n we have σ(j)≤n, so n=σ(j)+c for some c∈N.

assume-contrastep 1.2L10
2.3

Define f:m→Z by letting f(i) be the unique x∈P with g(x)=i; such an x exists because g is surjective and is unique because g is injective. Then f is a list of primes of length m, and f(g(x))=x for every x∈P.

step 1.3L11construct
3.1

By [L4] there is a prime q with q∣N.

step 2.1L4choose
3.2

The splitting law then gives Π=(∏i<σ(j)pi)⋅(∏l<cpσ(j)+l), and ∏i<σ(j)pi=(∏i<jpi)pj; by associativity and commutativity Π=pj⋅B where B:=(∏i<jpi)(∏l<cpσ(j)+l). Hence pj∣Π, that is q∣Π.

step 2.2L1L2L7L8
4.1

So q∣N and q∣Π, whence q∣N−Π=1 by linearity, forcing q=1 or q=−1 and contradicting q>1>0>−1. Therefore q≠pi for every i<n, which is clause 1.

step 1.1step 1.2step 3.1step 3.2L5L6L7L8L9
5.1

Clause 1 applied to f supplies a prime q0 with q0≠f(i) for every i<m. But q0∈P, so g(q0)<m and f(g(q0))=q0, a contradiction. Hence no such m and g exist and P is not finite, which is clause 2.

step 4.1step 1.3step 2.3L10L11discharge-contradiction∎

Remarks

DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a

Definition

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 with a≠0. Powers pk for k∈N are the natural powers of Powers gn: natural exponents in a monoid and integer exponents in a group, with g0=e taken in the commutative monoid (Z,⋅,1) of (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1 and Semigroup and monoid, so that

p0=1,pσ(k)=pk⋅p(k∈N).

Put

E(p,a)  :=  { k∈N  :  pk∣a }

(Divisibility in Z: d∣a when a=dq for some integer q). Then E(p,a) has a greatest element, and the p-adic valuation of a is

vp(a)  :=  max⁡E(p,a)  ∈  N,

the greatest k∈N with pk∣a.

Why a greatest element exists. Three facts are needed, and each is proved here rather than assumed.

The set is nonempty. p0=1 and 1∣a for every a (Divisibility in Z: d∣a when a=dq for some integer q), so 0∈E(p,a).

Every power of p exceeds its own exponent. We claim pk≥1 and ι(k)<pk for every k∈N, where ι:N→Z is the embedding of The naturals embed in the integers. Both are proved by induction (The principle of mathematical induction). At k=0 we have p0=1≥1 and ι(0)=0<1=p0, using 0<1, which holds because 1=ι(1) is nonnegative and differs from 0=ι(0) by injectivity of ι. Assume both at k. Since p>1 we have p−1>0, hence p−1≥1 by discreteness of the order on Z (Discreteness: σ(n) is the immediate successor, The naturals embed in the integers: an integer x>0 is ι(j) with j≠0, so 1=σ(0)≤j and 1≤x). Therefore pσ(k)−pk=pk(p−1)≥pk≥1, because pk≥1>0 and positives are closed under multiplication (The integers form a totally ordered ring); so pσ(k)≥pk+1≥1+1>1. The same discreteness applied to pk−ι(k)>0 gives ι(k)+1≤pk, and ι(σ(k))=ι(k)+1 because σ(k)=k+1 in N (Addition of natural numbers) and ι preserves addition; so ι(σ(k))≤pk<pk+1≤pσ(k). The induction is complete.

The set is bounded. Let k∈E(p,a). Then pk∣a with a≠0, so ∣pk∣≤∣a∣ (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 pk≥1>0 gives ∣pk∣=pk (The absolute value ∣a∣ of an integer, 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). Combining with the previous paragraph, ι(k)<pk≤∣a∣. So the set of integers ι[E(p,a)]={ ι(k):k∈E(p,a) } is nonempty and bounded above by ∣a∣, hence has a unique greatest element (A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element). That greatest element lies in the set, so it is ι(k0) for some k0∈E(p,a); and since ι is injective and preserves the order in both directions, k0 is the greatest element of E(p,a) and is unique. We set vp(a):=k0.

vp(0) is left undefined. Every power of p divides 0 (Divisibility in Z: d∣a when a=dq for some integer q), so E(p,0)=N has no greatest element and the clause above defines nothing. Every statement about vp in this library therefore carries the hypothesis a≠0 explicitly. The convention vp(0):=∞ is not adopted: it would need a value set enlarging N by a greatest element in which to place ∞, and no such set is available at this point in the reading order. The library does build a totally ordered set with a greatest element — the extended real line, whose greatest element is +∞ — but it is constructed far above this page, and taking the values of vp there would make a definition about Z rest on the construction of R.

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

For a prime p and a nonzero integer a: pvp(a)∣a and pvp(a)+1∤a; pk∣a holds exactly for k≤vp(a); vp(a)≥1 exactly when p∣a; vp(1)=vp(−1)=0; and vp(p)=1

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), let a∈Z with a≠0, and write v:=vp(a) (The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a). Powers are the natural powers of Powers gn: natural exponents in a monoid and integer exponents in a group, with g0=e in the commutative monoid (Z,⋅,1) ((Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1), and k+1 means σ(k). Then:

  1. pk≥1 for every k∈N; in particular pk>0 and pk≠0;
  2. pv∣a and pv+1∤a;
  3. for k∈N: pk∣a if and only if k≤v;
  4. a=pva′ for some a′∈Z with a′≠0 and p∤a′;
  5. v≥1 if and only if p∣a;
  6. vp(1)=vp(−1)=0 and vp(p)=1.

Facts & Assumptions

Given: A prime p, a nonzero integer a, and v:=vp(a).

[L1]

vp(a) is the greatest k∈N with pk∣a; in particular pv∣a, and pk∣a fails for every k>v (The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a).

[L4]

Divisibility is reflexive and transitive; d∣u implies d∣uc; and d∣u, d∣−u, −d∣u are equivalent (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).

[L5]

d∣u means u=dc for some c∈Z (Divisibility in Z: d∣a when a=dq for some integer q).

[L8]

If xz=yz and z≠0 then x=y; and a product of two nonzero integers is nonzero (The integers have no zero divisors; multiplicative cancellation).

[L9]

On N: m≤n means m+c=n for some c (Order on the natural numbers); σ(k)=k+1 (Addition of natural numbers, The natural numbers N (von Neumann)); k<σ(k) and m<σ(n) exactly when m≤n (On N the order is membership: m<n  ⟺  m∈n); m<n exactly when σ(m)≤n (Discreteness: σ(n) is the immediate successor); and ≤ is a linear order, so it is antisymmetric and total (≤ is a linear order on N).

[L10]

Z is a commutative ring, its order is total, antisymmetric and transitive and compatible with addition, and ι:N→Z is injective, order preserving, with image the nonnegative integers and ι(0)=0, ι(1)=1 (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals, The integers form a totally ordered ring, Order on the integers, The naturals embed in the integers).

[L11]

Induction on N: a subset containing 0 and closed under σ is all of N (The principle of mathematical induction).

Proof

technique · direct
1.1

p1=pσ(0)=p0⋅p=1⋅p=p.

L2L10
1.2

0<1<p in Z, since 1=ι(1) is nonnegative and differs from 0; hence p≠0, p≠1 and p≠−1.

L7L10
1.3

Clause 1. pv∣a by [L1], and v<σ(v)=v+1, so pv+1∣a would contradict the maximality of v; hence pv+1∤a.

L1L9
1.4

Clause 2, the other direction. If pk∣a then k belongs to the set of which v is the greatest element, so k≤v.

L1L9
2.1

Clause 0: pk≥1 for every k∈N. The set of such k contains 0, since p0=1; and if pk≥1 then pσ(k)=pkp has both factors ≥1>0, so the product is positive, hence ≥1 by discreteness of the order on Z (a positive integer is ι(j) with j≠0, so 1=σ(0)≤j and 1≤ι(j)). By induction the set is all of N, and in particular pk>0 and pk≠0.

step 1.1step 1.2L2L9L10L11
2.2

Clause 2, one direction. Let k≤v and write v=k+c with c∈N. Then pv=pk+c=pkpc, so pk∣pv; with pv∣a and transitivity, pk∣a.

step 1.3L1L3L4L5L9
2.3

Clause 3. By [L1] fix a′ with a=pva′. Then a′≠0, since a≠0. If p∣a′, say a′=pb, then a=pv(pb)=(pvp)b=pv+1b, so pv+1∣a, contradicting step 1.3. Hence p∤a′.

step 1.3L1L2L5L9L10choose
2.4

If k≥1 then p∣pk: write k=1+c, so pk=p1pc=p⋅pc.

step 1.1L3L5L9
3.1

Clause 4. If v≥1 then p=p1∣a by step 2.2. Conversely if p∣a then p1∣a, so 1≤v by step 1.4.

step 1.1step 2.2step 1.4
3.2

vp(1)=0. If pk∣1 with k≥1, then p∣pk∣1 by step 2.4 and transitivity, so p=1 or p=−1, contradicting step 1.2. So no k≥1 satisfies pk∣1, while p0=1∣1; the greatest such k is 0.

step 1.2step 2.4L1L2L4L6L9
3.3

vp(p)=1. First p1=p∣p, so 1≤vp(p) by step 1.4 applied to a:=p. Next p2∤p, where 2=σ(1): otherwise p=p2c=p(pc) for some c, and cancelling p≠0 gives 1=pc, so p∣1, contradicting step 1.2. Hence vp(p)<2 by step 2.2, that is vp(p)≤1, and antisymmetry gives vp(p)=1.

step 1.1step 1.2step 2.2step 1.4L2L5L8L9
4.1

vp(−1)=0, because pk∣−1 holds exactly when pk∣1, so the two sets of exponents coincide.

step 3.2L1L4
5.1

Clauses 0 to 5 are established.

step 1.3step 2.1step 2.2step 1.4step 2.3step 3.1step 3.2step 4.1step 3.3∎

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

vp(ab)=vp(a)+vp(b) for nonzero integers a,b, and vp(a+b)≥min⁡{vp(a),vp(b)} whenever a, b and a+b are all nonzero

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,b∈Z be nonzero, with vp as in The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a. Then ab≠0 and

vp(ab)  =  vp(a)+vp(b),

the sum taken in N (Addition of natural numbers). If moreover a+b≠0, then

vp(a+b)  ≥  min⁡{ vp(a), vp(b) },

the minimum of two natural numbers, which exists because the order on N is total (≤ is a linear order on N).

Facts & Assumptions

Given: A prime p and nonzero integers a,b; α:=vp(a) and β:=vp(b).

[L3]

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

[L5]

A product of two nonzero integers is nonzero, and xz=yz with z≠0 gives x=y (The integers have no zero divisors; multiplicative cancellation).

[L6]

Z is a commutative ring: multiplication is associative and commutative and x⋅1=x (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals); its order is total, antisymmetric and transitive (The integers form a totally ordered ring, Order on the integers, The naturals embed in the integers).

[L7]

On N: ≤ is a linear order, so any two naturals are comparable and have a minimum (≤ is a linear order on N); m≤n means m+c=n for some c (Order on the natural numbers); σ(k)=k+1 (Addition of natural numbers, The natural numbers N (von Neumann)); m<n exactly when σ(m)≤n (Discreteness: σ(n) is the immediate successor), and m<σ(n) exactly when m≤n (On N the order is membership: m<n  ⟺  m∈n).

Proof

technique · direct
1.1

ab≠0, so vp(ab) is defined.

L5
1.2

Fix a′ and b′ with a=pαa′, b=pβb′, both nonzero, and p∤a′, p∤b′.

L1choose
1.3

Now assume also a+b≠0, and put m:=min⁡{α,β}, which exists because ≤ is total on N; then m≤α and m≤β.

L7
2.1

ab=(pαa′)(pβb′)=(pαpβ)(a′b′)=pα+β(a′b′), using commutativity, associativity and the exponent law.

step 1.2L2L6
2.2

p∤a′b′: otherwise [L3] would give p∣a′ or p∣b′, both excluded by step 1.2.

step 1.2L3
2.3

By [L1], pm∣a and pm∣b, so pm∣a+b by linearity; since a+b≠0, [L1] applied to a+b gives m≤vp(a+b), which is the second assertion.

step 1.3L1L4
3.1

pα+β≠0, since ab≠0 and ab=pα+β(a′b′) would otherwise be 0.

step 1.1step 2.1L6
3.2

pα+β∣ab by step 2.1, so α+β≤vp(ab).

step 1.1step 2.1L1L4
4.1

Suppose α+β<vp(ab). Then α+β+1≤vp(ab), so pα+β+1∣ab; fix c with ab=pα+β+1c=pα+β(pc), using the exponent law. Cancelling pα+β≠0 against step 2.1 gives a′b′=pc, that is p∣a′b′, contradicting step 2.2.

step 2.1step 2.2step 3.1L1L2L4L5L7
5.1

Hence vp(ab)=α+β by totality and antisymmetry of the order on N, which is the first assertion.

step 3.2step 4.1L7
6.1

Both assertions are established.

step 5.1step 2.3∎

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

For n≥1 and any injective list p:r→Z of primes containing every prime divisor of n, one has n=∏i<rpi vpi(n); the exponents are determined by n, and vq(n)=0 for every prime q outside the list

Statement

Powers are the natural powers of Powers gn: natural exponents in a monoid and integer exponents in a group, with g0=e and finite products those of The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity, both taken in the commutative monoid (Z,⋅,1) of (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1. Call p:r→Z an injective list of primes when every pi is prime (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p) and pi=pj forces i=j (Injection, surjection, bijection).

Let n∈Z with n≥1 and let p:r→Z be an injective list of primes such that every prime divisor of n equals pi for some i<r. Then, with vq as in The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a:

  1. n  =  ∏i<rpi vpi(n);
  2. vq(n)=0 for every prime q that is not among p0,…,pr−1;
  3. the exponents are determined by n: if e:r→N and n=∏i<rpi ei, then ej=vpj(n) for every j<r.

Clause 3 needs only injectivity of the list, not the covering hypothesis.

Facts & Assumptions

Given: The commutative monoid (Z,⋅,1) ((Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1, Semigroup and monoid); and the property Q(r): "for every n≥1 and every injective list p:r→Z of primes containing every prime divisor of n, one has n=∏i<rpi vpi(n)".

[L1]

∏i<0gi=e and ∏i<σ(t)gi=(∏i<tgi)gt; the value depends only on the entries named (The product g0g1⋯gn−1 of a finite list in a monoid, by recursion, with the empty product (n=0) equal to the identity).

[L3]

For a prime p and nonzero a: pk≥1 for every k, so pk>0 and pk≠0; a=pvp(a)a′ with a′≠0 and p∤a′; pk∣a exactly for k≤vp(a); vp(a)≥1 exactly when p∣a; vp(1)=0; and vp(p)=1 (For a prime p and a nonzero integer a: pvp(a)∣a and pvp(a)+1∤a; pk∣a holds exactly for k≤vp(a); vp(a)≥1 exactly when p∣a; vp(1)=vp(−1)=0; and vp(p)=1, The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a).

[L5]

Every integer >1 has a prime divisor (Every integer n>1 has a prime divisor; indeed the least divisor of n that exceeds 1 is prime); every prime u satisfies u>1, and every positive divisor of a prime w is 1 or w (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p).

[L8]

On N: m≤n means m+c=n for some c (Order on the natural numbers); σ(k)=k+1 and addition is commutative (Addition of natural numbers, Addition is commutative, The natural numbers N (von Neumann)); t<σ(t) and i<σ(t) exactly when i≤t (On N the order is membership: m<n  ⟺  m∈n); m<n exactly when σ(m)≤n (Discreteness: σ(n) is the immediate successor).

[L9]

Z is a commutative ring; its order is total, antisymmetric and transitive, is compatible with addition, and positives are closed under multiplication; ι:N→Z is injective and order preserving with image the nonnegative integers, ι(0)=0, ι(1)=1 (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals, The integers form a totally ordered ring, Order on the integers, The naturals embed in the integers).

Proof

technique · induction
1.1

Distinct primes do not divide one another: if q and w are primes with q∣w, then q is a positive divisor of w (as q>1>0) other than 1, so q=w. Consequently vq(w)=0 whenever q≠w are primes.

L3L5L9
1.2

Q(0) holds: an empty list contains no prime, so n has no prime divisor at all; if n>1 it would have one, so n=1, and ∏i<0pi vpi(n)=1=n.

baseL1L5L9
1.3

Let t∈N and assume Q(t).

ih
1.4

Let n≥1 and let p:σ(t)→Z be an injective list of primes containing every prime divisor of n. Write π:=pt, v:=vπ(n), and fix n′ with n=πvn′, n′≠0 and π∤n′.

L3choose
2.1

For a prime w and k∈N: vw(wk)=k, and vq(wk)=0 for every prime q≠w. Both sets of k for which these hold contain 0, since w0=1 and vu(1)=0 for every prime u; and if they hold at k then, wk and w being nonzero, additivity gives vw(wσ(k))=vw(wkw)=vw(wk)+vw(w)=k+1=σ(k) and vq(wσ(k))=vq(wk)+vq(w)=0+0=0. Induction finishes both.

step 1.1L2L3L4L7L8
2.2

n′≥1: πv≥1>0 and n>0, so n′≤0 would make πvn′≤0<n; hence n′>0, and a positive integer is ≥1 because n′=ι(j) with j≠0, so 1=σ(0)≤j.

step 1.4L3L8L9
3.1

Clause 3. Let p:r→Z be an injective list of primes, e:r→N, and M:=∏i<rpi ei; we claim M≥1, that vpj(M)=ej for every j<r, and that vq(M)=0 for every prime q off the list. Let T be the set of r∈N for which this holds for all such p and e. Then 0∈T: the empty product is 1, which is ≥1, has vq(1)=0 for every prime q, and imposes no condition on indices. Suppose r∈T and let p:σ(r)→Z be injective with primes and e:σ(r)→N. Writing M′:=∏i<rpi ei we have M=M′⋅pr er, with M′≥1>0 and pr er≥1>0, so M≥1>0 and both factors are nonzero; additivity then gives vu(M)=vu(M′)+vu(pr er) for every prime u. Taking u=pj with j<r gives ej+0=ej, since pj≠pr by injectivity; taking u=pr gives 0+er=er, since pr is off the list p0,…,pr−1; and taking a prime u off the whole list gives 0+0=0. So σ(r)∈T, and T=N by induction.

step 2.1L1L3L4L7L8L9
3.2

The restriction p↾t is an injective list of primes containing every prime divisor of n′. Indeed if q is prime with q∣n′ then q∣n, since n=πvn′; so q=pi for some i<σ(t); and q≠π=pt, because π∤n′; hence i≠t, and i<σ(t) gives i≤t, so i<t.

step 1.4step 2.2L5L6L8
3.3

For i<t we have vpi(n)=vpi(πv)+vpi(n′)=0+vpi(n′)=vpi(n′), using additivity on the nonzero factors πv and n′, and step 2.1 with pi≠π, which holds by injectivity since i<t.

step 2.1step 1.4step 2.2L3L4L8
4.1

By step 1.3 applied to n′ and p↾t: n′=∏i<tpi vpi(n′).

step 1.3step 2.2step 3.2
5.1

Therefore ∏i<σ(t)pi vpi(n)=(∏i<tpi vpi(n))⋅π vπ(n)=(∏i<tpi vpi(n′))⋅πv=n′πv=n, so Q(σ(t)) holds.

step 1.4step 4.1step 3.3L1L9
6.1

With step 1.2 as base, induction gives Q(r) for every r∈N, which is clause 1. Clause 2 follows because a prime q off the list does not divide n — otherwise it would be a prime divisor of n and hence on the list — so vq(n)=0; and clause 3 is step 3.1.

step 3.1step 1.2step 5.1L3L7discharge-induction∎

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

For positive integers a and b: a∣b if and only if vp(a)≤vp(b) for every prime p

Statement

Let a,b∈Z with a≥1 and b≥1, and let vp be the p-adic valuation of The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a. Then

a∣b⟺vp(a)≤vp(b)  for every prime p.

Both valuations are defined, since a and b are nonzero.

Facts & Assumptions

Given: The property R(k): "for every b≥1, if ι(k)≥1 and vp(ι(k))≤vp(b) for every prime p, then ι(k)∣b", where ι:N→Z is the embedding of The naturals embed in the integers.

[L4]

Strong induction on N (Strong (complete) induction).

[L6]

A product of two nonzero integers is nonzero (The integers have no zero divisors; multiplicative cancellation).

[L7]

On N: m≤n means m+c=n for some c, so m≤m+n always (Order on the natural numbers, Addition of natural numbers); m+x≤m+y holds exactly when x≤y (Order is compatible with addition); m<n exactly when σ(m)≤n, and 1=σ(0) (Discreteness: σ(n) is the immediate successor, The natural numbers N (von Neumann)).

[L8]

Z is a commutative ring; its order is total, antisymmetric and transitive, is compatible with addition, and positives are closed under multiplication (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals, The integers form a totally ordered ring, Order on the integers).

[L9]

ι is injective, preserves addition, multiplication and order, and has as image exactly the nonnegative integers, with ι(0)=0 and ι(1)=1 (The naturals embed in the integers).

Proof

technique · induction
1.1

0<1, since 1=ι(1) is nonnegative and differs from 0=ι(0); and every integer x>0 satisfies x≥1, because x=ι(j) with j≠0, so 1=σ(0)≤j and ι preserves the order.

L7L9
1.2

The forward implication. Suppose a∣b and fix c with b=ac. Then c≠0, since b≠0, so [L1] gives vp(b)=vp(a)+vp(c)≥vp(a) for every prime p.

L1L5L7L8
1.3

Let k∈N and assume R(j) for every j<k.

ih
2.1

R(0) holds vacuously: ι(0)=0 and 0≥1 is false.

basestep 1.1L9
2.2

Put a:=ι(k) and suppose a≥1, and let b≥1 satisfy vp(a)≤vp(b) for every prime p. If a=1 then a∣b, so assume a>1.

step 1.1L5L8
3.1

Fix a prime q with q∣a, and fix a1 with a=qa1. Then vq(a)≥1, hence vq(b)≥1 by hypothesis, so q∣b; fix b1 with b=qb1.

step 2.2L2L3L5choose
4.1

a1≥1 and b1≥1: they are nonzero because a and b are, and if a1<0 then qa1<0 contradicting a>0, so a1>0 and hence a1≥1; the same argument applies to b1.

step 1.1step 3.1L6L8
5.1

a1<a: since q>1 we have q−1>0, and a1>0, so a−a1=(q−1)a1>0.

step 3.1step 4.1L3L8
5.2

For every prime p: vp(q)+vp(a1)=vp(a)≤vp(b)=vp(q)+vp(b1), so vp(a1)≤vp(b1) by cancellation of vp(q) in the order of N.

step 2.2step 3.1step 4.1L1L7
6.1

Write a1=ι(j); then j<k, since otherwise k≤j and the order-preserving ι would give a≤a1, contradicting step 5.1. By step 1.3 applied to j, together with steps 4.1 and 5.2, a1∣b1.

step 1.3step 4.1step 5.1step 5.2L9
7.1

Hence b=qb1=q(a1c)=(qa1)c=ac for the c with b1=a1c, so a∣b and R(k) holds.

step 3.1step 6.1L5L8
8.1

Steps 2.2 and 7.1 cover both possibilities for a, so R at k follows from R below k; with step 2.1, strong induction gives R(k) for every k. Since a positive integer a is ι(k) for a unique k, that is the reverse implication, and step 1.2 is the forward one.

step 1.2step 2.1step 2.2step 7.1L4L9discharge-induction∎

Remarks

TheoremStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

For positive integers a and b and every prime p: vp(gcd⁡(a,b))=min⁡{vp(a),vp(b)} and vp(lcm⁡(a,b))=max⁡{vp(a),vp(b)}; so the exponent-wise greatest common divisor is the gcd⁡ of the divisibility page and not a second notion

Statement

Let a,b∈Z with a≥1 and b≥1, write g:=gcd⁡(a,b) (Common divisor, and the greatest common divisor gcd⁡(a,b), with the convention gcd⁡(0,0):=0) and ℓ:=lcm⁡(a,b) (Common multiple, and the least common multiple lcm⁡(a,b), taken to be 0 when a=0 or b=0), and let p be any prime (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p). Then g≥1 and ℓ≥1, so all four valuations below are defined (The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a), and

  1. vp(g)=min⁡{ vp(a), vp(b) };
  2. vp(ℓ)=max⁡{ vp(a), vp(b) },

the minimum and maximum being taken in N, whose order is total (≤ is a linear order on N).

  1. The exponent recipe does not define a second notion. If d≥1 satisfies vp(d)=min⁡{vp(a),vp(b)} for every prime p, then d=gcd⁡(a,b); and if d≥1 satisfies vp(d)=max⁡{vp(a),vp(b)} for every prime p, then d=lcm⁡(a,b).

Facts & Assumptions

Given: Integers a,b≥1; g:=gcd⁡(a,b), ℓ:=lcm⁡(a,b); and, for a prime p, mp:=min⁡{vp(a),vp(b)} and Mp:=max⁡{vp(a),vp(b)}.

[L2]

For u,v both nonzero, lcm⁡(u,v) is the least positive common multiple of u and v; in particular u∣lcm⁡(u,v) and v∣lcm⁡(u,v) (Common multiple, and the least common multiple lcm⁡(a,b), taken to be 0 when a=0 or b=0).

[L3]

gcd⁡(u,v)⋅lcm⁡(u,v)=∣uv∣, and every common multiple of u and v is a multiple of lcm⁡(u,v) (Every common multiple of a and b is a multiple of lcm⁡(a,b), and gcd⁡(a,b)⋅lcm⁡(a,b)=∣ab∣).

[L4]

For positive u,w: u∣w exactly when vq(u)≤vq(w) for every prime q (For positive integers a and b: a∣b if and only if vp(a)≤vp(b) for every prime p).

[L9]

On N: the order is total, so any two naturals have a minimum and a maximum (≤ is a linear order on N); addition is commutative (Addition is commutative) and cancellative (Addition is cancellative); m≤n means m+c=n for some c (Order on the natural numbers, Addition of natural numbers); m<n exactly when σ(m)≤n, and 1=σ(0) (Discreteness: σ(n) is the immediate successor, The natural numbers N (von Neumann)).

[L10]

Z is a commutative ring; its order is total, antisymmetric and transitive, is compatible with addition, and positives are closed under multiplication; a product of two nonzero integers is nonzero and cancellation holds (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals, The integers form a totally ordered ring, Order on the integers, The integers have no zero divisors; multiplicative cancellation).

[L11]

ι:N→Z is injective and order preserving with image the nonnegative integers, ι(0)=0, ι(1)=1 (The naturals embed in the integers).

Proof

technique · direct
1.1

0<1, and every integer x>0 satisfies x≥1: x=ι(j) with j≠0, so 1=σ(0)≤j and ι preserves the order.

L9L11
1.2

For naturals x,y the minimum and maximum exist by totality, and min⁡{x,y}+max⁡{x,y}=x+y: if x≤y the left side is x+y, and if y≤x it is y+x=x+y.

L9
2.1

a>0 and b>0, so a≠0, b≠0 and (a,b)≠(0,0); hence g≥1, and ℓ is the least positive common multiple of a and b, so ℓ≥1. All of a,b,g,ℓ are nonzero and their valuations are defined.

step 1.1L1L2L10
3.1

g∣a and g∣b, so vp(g)≤vp(a) and vp(g)≤vp(b) by [L4]; hence vp(g)≤mp.

step 2.1step 1.2L1L4
3.2

Conversely mp≤vp(a) and mp≤vp(b), so pmp∣a and pmp∣b by [L6]; thus pmp is a common divisor of a and b and therefore divides g. Since g≠0, [L6] applied to g gives mp≤vp(g).

step 2.1step 1.2L1L6
3.3

ab>0, so ∣ab∣=ab, and [L3] gives gℓ=ab. Applying [L5] to the nonzero pairs (g,ℓ) and (a,b) gives vp(g)+vp(ℓ)=vp(ab)=vp(a)+vp(b).

step 2.1L3L5L7L10
4.1

Clause 1: vp(g)=mp, by antisymmetry of the order on N.

step 3.1step 3.2L9
5.1

Clause 2: substituting step 4.1 and step 1.2, mp+vp(ℓ)=vp(a)+vp(b)=mp+Mp, so vp(ℓ)=Mp by cancellation of addition on N.

step 1.2step 4.1step 3.3L9
5.2

Clause 3, first half. Let d≥1 satisfy vp(d)=mp for every prime p. Then vp(d)=vp(g) for every p by step 4.1, so d∣g and g∣d by [L4], hence ∣d∣=∣g∣; both are positive, so d=g.

step 2.1step 4.1L4L7
6.1

Clause 3, second half, by the same argument with step 5.1 in place of step 4.1: vp(d)=Mp=vp(ℓ) for every p forces d∣ℓ and ℓ∣d, hence d=ℓ.

step 2.1step 5.1L4L7
7.1

Clauses 1, 2 and 3 are established.

step 4.1step 5.1step 5.2step 6.1∎

Remarks

LemmaStatement: AI-adaptedProof: AI-generatedprecheck passverified 2026-08-03 (gpt-5.6-sol-codex-subscription)Open item page →

The p-adic valuation extends to the nonzero rationals by vp(a/b):=vp(a)−vp(b)∈Z, independently of the representation; it satisfies vp(xy)=vp(x)+vp(y), and vp(x+y)≥min⁡{vp(x),vp(y)} whenever x, y and x+y are nonzero

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). A rational is a class [(a,b)] of pairs of integers with b≠0, written a/b (The rationals as equivalence classes of pairs of integers), and [(a,b)]≠0 holds exactly when a≠0 (Arithmetic on the rationals). Write ι:N→Z for the embedding of The naturals embed in the integers and j:Z→Q, j(k)=[(k,1)], for that of The integers embed in the rationals.

For a nonzero rational x=[(a,b)] set

vp(x)  :=  ι(vp(a))−ι(vp(b))  ∈  Z,

with vp on nonzero integers as in The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a. Then:

  1. The value does not depend on the representative, so vp is a well defined function from the nonzero rationals to Z.
  2. It extends the integer valuation: vp(j(a))=ι(vp(a)) for every nonzero integer a.
  3. vp(xy)=vp(x)+vp(y) for all nonzero rationals x,y.
  4. vp(x+y)≥min⁡{ vp(x), vp(y) } whenever x, y and x+y are all nonzero, the minimum being taken in the totally ordered Z.

Unlike its restriction to Z, this valuation takes integer values, which is why the difference is formed after transporting the two natural numbers into Z along ι.

Facts & Assumptions

Given: A prime p; nonzero rationals with representatives x=[(a,b)], y=[(c,d)], where a,b,c,d∈Z are all nonzero.

[L1]

[(a,b)]=[(c,d)] exactly when ad=cb; Q consists of such classes with b≠0 (The rationals as equivalence classes of pairs of integers).

[L2]

[(a,b)]+[(c,d)]=[(ad+cb, bd)], [(a,b)]⋅[(c,d)]=[(ac, bd)], 0=[(0,1)] and 1=[(1,1)] (Arithmetic on the rationals); Q is a field (The rationals form a field, Field).

[L3]

j(k)=[(k,1)] is injective and preserves addition, multiplication and order (The integers embed in the rationals).

[L4]

For a prime p and nonzero integers u,w: uw≠0 and vp(uw)=vp(u)+vp(w); and vp(u+w)≥min⁡{vp(u),vp(w)} when u, w and u+w are nonzero (vp(ab)=vp(a)+vp(b) for nonzero integers a,b, and vp(a+b)≥min⁡{vp(a),vp(b)} whenever a, b and a+b are all nonzero).

[L6]

ι is injective and preserves addition, multiplication and order, with image the nonnegative integers and ι(0)=0, ι(1)=1 (The naturals embed in the integers).

[L7]

A product of two nonzero integers is nonzero (The integers have no zero divisors; multiplicative cancellation).

[L8]

Z is a commutative ring: addition and multiplication are associative and commutative, x+0=x, and every x has an additive inverse −x, with −(−x)=x and −(u+w)=(−u)+(−w); we write u−w for u+(−w) (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).

[L9]

The order on Z is total, antisymmetric and transitive and is compatible with addition, so u≤w implies u+z≤w+z (The integers form a totally ordered ring, Order on the integers).

[L10]

The order on N is total, so any two naturals have a minimum; addition on N is commutative (≤ is a linear order on N, Addition is commutative, Order on the natural numbers, Addition of natural numbers, The natural numbers N (von Neumann)).

Proof

technique · direct
1.1

If x=[(a,b)] is a nonzero rational then a≠0 and b≠0, so vp(a) and vp(b) are both defined.

L1L2
2.1

Clause 1. Suppose [(a,b)]=[(c,d)] with all four entries nonzero. Then ad=cb, and both sides are nonzero, so [L4] gives vp(a)+vp(d)=vp(c)+vp(b) in N. Applying the addition-preserving ι and rearranging in Z gives ι(vp(a))−ι(vp(b))=ι(vp(c))−ι(vp(d)).

step 1.1L1L4L6L7L8
2.2

Clause 4. Assume x, y and x+y are nonzero. Then x+y=[(ad+cb, bd)] with bd≠0, and ad+cb≠0 because x+y≠0; also ad≠0 and cb≠0.

step 1.1L1L2L7
3.1

Clause 2. For a nonzero integer a, j(a)=[(a,1)], so vp(j(a))=ι(vp(a))−ι(vp(1))=ι(vp(a))−0=ι(vp(a)).

step 2.1L3L5L6L8
3.2

Clause 3. xy=[(ac,bd)], with ac≠0 and bd≠0, so vp(xy)=ι(vp(ac))−ι(vp(bd))=ι(vp(a)+vp(c))−ι(vp(b)+vp(d)).

step 1.1step 2.1L2L4L7
3.3

By [L4], vp(ad+cb)≥min⁡{vp(ad), vp(cb)}=min⁡{vp(a)+vp(d), vp(c)+vp(b)}; applying the order-preserving injection ι turns this into the same inequality between the corresponding integers.

step 2.2L4L6L10
4.1

Since ι preserves addition, that value is (ι(vp(a))+ι(vp(c)))−(ι(vp(b))+ι(vp(d))), which rearranges in the commutative ring Z to (ι(vp(a))−ι(vp(b)))+(ι(vp(c))−ι(vp(d)))=vp(x)+vp(y).

step 3.2L6L8
4.2

Subtracting the integer ι(vp(b))+ι(vp(d))=ι(vp(bd)) from both sides, which preserves the order, and using that subtraction of a fixed element commutes with taking the smaller of two integers, gives vp(x+y)≥min⁡{ι(vp(a))−ι(vp(b)), ι(vp(c))−ι(vp(d))}=min⁡{vp(x),vp(y)}.

step 2.2step 3.3L4L6L8L9
5.1

Clauses 1 to 4 are established.

step 2.1step 3.1step 4.1step 4.2∎

Remarks

  • Relation to the published 2-adic example. The published The 2-adic absolute value gives an ultrametric on Q, in which every triangle is isosceles and every point of a ball is a centre ↗ records that the general p-adic machinery is available, but nevertheless develops p=2 from parity alone. The present lemma supplies the general algebraic extension: representation-independence is exactly the assertion that ad=cb forces the two candidate values to agree.

  • Nothing metric is stated here, deliberately. The p-adic absolute value ∣x∣p=p−vp(x) and the ultrametric it induces need real powers with integer exponents and the definition of a metric space, all of which live far above this page in the library's order; they are not defined here and nothing on this page depends on them. What is proved is the algebra: a homomorphism from the nonzero rationals under multiplication to Z under addition, satisfying the ultrametric inequality on valuations.

  • The values are integers, not naturals. vp(1/p)=−1, so the extension genuinely leaves N; that is why the two integer valuations are transported along ι before being subtracted. As on Z, the value at 0 is left undefined (The p-adic valuation vp(a) of a nonzero integer: the greatest k∈N with pk∣a).

CorollaryStatement: AI-adaptedProof: AI-generatedprecheck passjudge pass (z-ai/glm-5.2)audited 2026-07-28Open item page →

A rational root of xk=m is an integer: if k≥1, m∈Z, x∈Q and xk is the image of m, then x is the image of an integer

Statement

Q is a field (The rationals form a field, Field), so (Q,⋅,1) is a commutative monoid and natural powers xk are defined in it by Powers gn: natural exponents in a monoid and integer exponents in a group, with g0=e. Write j:Z→Q, j(u)=[(u,1)], for the embedding of The integers embed in the rationals.

Let k∈N with k≥1, let m∈Z, and let x∈Q satisfy

xk  =  j(m).

Then x=j(z) for some z∈Z.

Facts & Assumptions

Given: k∈N with k≥1, m∈Z, and x∈Q with xk=j(m).

[L1]

A rational is a class [(u,w)] with u,w∈Z, w≠0, and [(u,w)]=[(u′,w′)] exactly when uw′=u′w (The rationals as equivalence classes of pairs of integers).

[L2]

[(u,w)]⋅[(u′,w′)]=[(uu′,ww′)], 0=[(0,1)], 1=[(1,1)], and [(u,w)]≠0 exactly when u≠0 (Arithmetic on the rationals).

[L3]

Q is a field: multiplication is associative and commutative on all of Q with y⋅1=y and y⋅0=0 (The rationals form a field, Field), so (Q,⋅,1) is a commutative monoid (Semigroup and monoid).

[L5]

j(u)=[(u,1)] is injective and preserves addition and multiplication (The integers embed in the rationals).

[L6]

For d:=gcd⁡(u,w)≠0 there are unique u/d and w/d with u=d(u/d), w=d(w/d), and gcd⁡(u/d,w/d)=1 (If d=gcd⁡(a,b) is nonzero then a/d and b/d are coprime, Common divisor, and the greatest common divisor gcd⁡(a,b), with the convention gcd⁡(0,0):=0, Coprime integers: gcd⁡(a,b)=1).

[L9]

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

[L12]
[L13]

A product of two nonzero integers is nonzero (The integers have no zero divisors; multiplicative cancellation); Z is a commutative ring whose order is total, antisymmetric and transitive (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals, The integers form a totally ordered ring, Order on the integers); ι:N→Z is injective and order preserving with image the nonnegative integers (The naturals embed in the integers).

Proof

technique · direct
1.1

0<1 in Z, and every integer y>0 satisfies y≥1: y=ι(t) with t≠0, so 1=σ(0)≤t and ι preserves the order.

L12L13
1.2

For integers u,w with w≠0 and every t∈N: wt≠0 and [(u,w)]t=[(ut,wt)], powers on the left in Q and on the right in Z. The set of t for which this holds contains 0, since w0=1≠0 and [(u,w)]0=1=[(1,1)]=[(u0,w0)]; and if it holds at t then wσ(t)=wtw≠0 and [(u,w)]σ(t)=[(ut,wt)]⋅[(u,w)]=[(utu, wtw)]=[(uσ(t),wσ(t))]. Induction finishes it.

L1L2L4L12L13
1.3

Suppose first x=0. Since k≥1, write k=σ(t); then xk=xt⋅0=0=j(0), so j(m)=j(0) and m=0 by injectivity of j; and x=0=j(0) is the image of an integer.

L3L4L5L12
1.4

Suppose instead x≠0, and write x=[(a,b)] with b≠0; then a≠0. If b<0, replace (a,b) by (−a,−b), which represents the same rational because a(−b)=(−a)b; so we may assume b>0.

L1L2L13choose
2.1

For a prime q, an integer u and t≥1: if q∣ut then q∣u. Let S be the set of t for which this implication holds; 0∈S vacuously, since t≥1 fails there. Suppose t∈S and q∣uσ(t)=utu. By [L9] either q∣ut or q∣u; in the second case we are done, and in the first, if t≥1 then t∈S gives q∣u, while if t=0 then ut=1 and q∣1 is impossible for a prime, since q>1>0>−1 would then be contradicted. So σ(t)∈S and S=N.

step 1.1L4L9L10L12L13L14
2.2

Put d:=gcd⁡(a,b); since a≠0 we have d≥1>0, so d≠0. Put a1:=a/d and b1:=b/d, so that a=da1, b=db1 and gcd⁡(a1,b1)=1.

step 1.1step 1.4L6L7L13
3.1

a1≠0 and b1>0: if a1=0 then a=0, and if b1≤0 then b=db1≤0, both contrary to step 1.4. Moreover [(a,b)]=[(a1,b1)], because ab1=(da1)b1=a1(db1)=a1b.

step 1.4step 2.2L1L13
4.1

By step 1.2, xk=[(a1,b1)]k=[(a1k,b1k)], and this equals j(m)=[(m,1)], so a1k⋅1=m b1k, that is a1k=m b1k.

step 1.2step 3.1L1L5L13
5.1

Suppose b1>1 and fix a prime q with q∣b1. Since k≥1, write k=σ(t); then b1k=b1tb1, so b1∣b1k and hence q∣b1k by transitivity. Then q∣m b1k=a1k, so q∣a1 by step 2.1.

step 2.1step 4.1L4L10L11L12
6.1

So q is a common divisor of a1 and b1, which are coprime, hence q=1 or q=−1 by [L8] and [L14]; but q>1>0>−1, a contradiction. Therefore b1≤1, and b1>0 gives b1≥1, so b1=1.

step 1.1step 2.2step 3.1step 5.1L8L10L13L14
7.1

Hence x=[(a1,1)]=j(a1) is the image of an integer; together with step 1.3 this covers both cases.

step 1.3step 3.1step 6.1L5∎

Remarks

5 · Examples, counterexamples and false statements

None yet.

Sources