Alphabeta Math
Session-authored (Fable 5 assisted)
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\mathbb{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\gcd(a,b) = 1 and abca \mid bc then aca \mid c; and if aca \mid c, bcb \mid c and gcd(a,b)=1\gcd(a,b) = 1 then abcab \mid c converts coprimality into divisibility of a factor without assuming primality, while The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 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 pp-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 vpv_p extends from nonzero integers to nonzero rationals, and the valuation formulas show that a rational kkth 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: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp

Definition

Let pZp \in \mathbb{Z} (The integers as equivalence classes of pairs of naturals), ordered as in Order on the integers, with divisibility as in Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq. Then pp is prime when

p>1anddp  with  d>0  force  d=1  or  d=p.p > 1 \qquad \text{and} \qquad d \mid p \ \text{ with } \ d > 0 \ \text{ force } \ d = 1 \ \text{ or } \ d = p .

In words: pp exceeds 11, and its only positive divisors are 11 and pp. An integer nn with n>1n > 1 that is not prime is composite; unfolding the definition, nn is composite exactly when n>1n > 1 and nn has a positive divisor dd with d1d \ne 1 and dnd \ne n.

Numerals. For kNk \in \mathbb{N} the symbol kk inside Z\mathbb{Z} means ι(k)\iota(k), the embedding of The naturals embed in the integers; in particular 00 and 11 are the ring constants of Arithmetic on the integers.

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

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

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

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

  1. the only positive divisors of pp are 11 and pp;
  2. the only divisors of pp are 11, 1-1, pp and p-p.

That 2 implies 1 is immediate, since of those four only 11 and pp are positive (p>1>0p > 1 > 0, so 1<0-1 < 0 and p<0-p < 0). For the converse let dpd \mid p. Since p>1p > 1 we have p0p \ne 0, so d0d \ne 0 by If dad \mid a and a0a \ne 0 then d0d \ne 0 and da|d| \le |a|; hence the set of divisors of a nonzero integer is bounded above by a|a|; and dp|d| \mid p, because d|d| is dd or d-d (The absolute value a|a| of an integer) and those two divide pp together (Divisibility is reflexive and transitive on Z\mathbb{Z}, and is linear: if dad \mid a and dbd \mid b then dax+byd \mid ax + by for all integers x,yx, y; also dad \mid a implies dacd \mid ac, da-d \mid a and dad \mid -a). Also d0|d| \ge 0 and d0|d| \ne 0 (Absolute value in Z\mathbb{Z}: a0|a| \ge 0; a=0|a| = 0 exactly when a=0a = 0; a=a|-a| = |a|; ab=ab|ab| = |a|\,|b|; aaa-|a| \le a \le |a|; and ac|a| \le c exactly when cac-c \le a \le c), so d>0|d| > 0 and clause 1 gives d=1|d| = 1 or d=p|d| = p. If d=1|d| = 1 then d=1d = 1 or d=1d = -1, by the case split defining d|d|; and if d=p=p|d| = p = |p| then d=upd = up for a unit u{1,1}u \in \{1,-1\} (For integers aa and bb the following are equivalent: aba \mid b and bab \mid a; b=uab = ua for a unit uu; a=b|a| = |b|. Being associates is an equivalence relation whose class of aa is {a,a}\{a, -a\}, (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1), that is d=pd = p or d=pd = -p. Both readings are used below without further comment.

Why 11 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 n1n \ge 1 is a product of primes, and the factorisation is unique up to order — if i<rpi=j<sqj\prod_{i<r} p_i = \prod_{j<s} q_j with every pip_i and qjq_j prime, then r=sr = s and qi=pπ(i)q_i = p_{\pi(i)} for some πSym(r)\pi \in \operatorname{Sym}(r), proved on this page: if 11 counted as a prime, a factorisation could be padded with any number of factors 11, 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 pp and any integer aa, gcd(p,a)\gcd(p,a) is pp when pap \mid a and 11 otherwise; so pap \nmid a makes pp and aa coprime

Statement

Let pp be a prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp) and let aZa \in \mathbb{Z}. Then

gcd(p,a)  =  {pif pa,1if pa,\gcd(p,a) \;=\; \begin{cases} p & \text{if } p \mid a, \\ 1 & \text{if } p \nmid a, \end{cases}

with gcd\gcd as in Common divisor, and the greatest common divisor gcd(a,b)\gcd(a,b), with the convention gcd(0,0):=0\gcd(0,0) := 0 and divisibility as in Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq. In particular, if pap \nmid a then pp and aa are coprime (Coprime integers: gcd(a,b)=1\gcd(a,b) = 1).

Facts & Assumptions

[L1]

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

[L6]

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

[L7]

The order on Z\mathbb{Z} is total, antisymmetric and transitive and is compatible with addition; x<yx < y means xyx \le y together with xyx \ne y (The integers form a totally ordered ring, Order on the integers).

[L8]

The embedding ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, preserves the order, and has as image exactly the nonnegative integers, with ι(0)=0\iota(0) = 0 and ι(1)=1\iota(1) = 1; and 010 \ne 1 in N\mathbb{N} (The naturals embed in the integers, The natural numbers N\mathbb{N} (von Neumann), The integers as equivalence classes of pairs of naturals).

[L9]

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

Proof

technique · cases
1.1

0<10 < 1 in Z\mathbb{Z}: 1=ι(1)1 = \iota(1) lies in the image of ι\iota, hence 101 \ge 0, and 101 \ne 0 because ι\iota is injective and 010 \ne 1 in N\mathbb{N}.

L8
1.2

Suppose pap \mid a. Then pp is a common divisor of pp and aa, since ppp \mid p, so pgp \mid g.

assume-case divL2L4
2.1

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

step 1.1L7L9
2.2

p>0p > 0 and p0p \ne 0, so (p,a)(0,0)(p,a) \ne (0,0); consequently g1g \ge 1, and in particular g>0g > 0.

step 1.1L1L3L7
3.1

p1p \ne 1 and p1p \ne -1: the first because p>1p > 1, the second because 1<0<1<p-1 < 0 < 1 < p and the order is transitive.

step 1.1step 2.1L1L7
3.2

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

step 2.2L1L2
4.1

In that case g1g \ne 1: otherwise p1p \mid 1, forcing p=1p = 1 or p=1p = -1 and contradicting step 3.1. So g=pg = p by step 3.2.

assume-case divstep 3.1step 3.2L5
4.2

Suppose instead pap \nmid a. Then gpg \ne p, since gag \mid a and g=pg = p would give pap \mid a. So g=1g = 1 by step 3.2, that is, pp and aa are coprime.

assume-case nodivstep 3.2L2L6
5.1

Either pap \mid a or pap \nmid a, and no third possibility exists, so the two cases above are exhaustive and give the stated value of gg 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 pp is prime and pabp \mid ab then pap \mid a or pbp \mid b

Statement

Let pp be a prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp) and let a,bZa, b \in \mathbb{Z}. If pabp \mid ab (Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq) then

paorpb.p \mid a \qquad \text{or} \qquad p \mid b .

Facts & Assumptions

Given: A prime pp and integers a,ba, b with pabp \mid ab.

[L3]

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

[L5]

Z\mathbb{Z} is a commutative ring; in particular multiplication is commutative and associative (The integers form a commutative ring, Arithmetic on the integers, The integers as equivalence classes of pairs of naturals).

Proof

technique · cases
1.1

Suppose pap \mid a. Then the disjunction pap \mid a or pbp \mid b holds on its first alternative, and there is nothing further to prove.

assume-case div
1.2

Suppose instead pap \nmid a. Then gcd(p,a)=1\gcd(p,a) = 1, so pp and aa are coprime.

assume-case nodivL1L3L6
2.1

Apply [L2] with u:=pu := p, v:=av := a and w:=bw := b. Its two hypotheses are exactly gcd(p,a)=1\gcd(p,a) = 1, which is step 1.2, and pabp \mid ab, which is given; its conclusion is pbp \mid b.

assume-case nodivstep 1.2L2L4L5
3.1

Either pap \mid a or pap \nmid a, so the two cases are exhaustive; in the first pap \mid a and in the second pbp \mid 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>1p > 1: pp is prime if and only if, for all integers aa and bb, pabp \mid ab implies pap \mid a or pbp \mid b

Statement

Let pZp \in \mathbb{Z} with p>1p > 1. The following are equivalent:

  1. pp is prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp);
  2. for all a,bZa, b \in \mathbb{Z}, pabp \mid ab implies pap \mid a or pbp \mid b (Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq).

Facts & Assumptions

Given: An integer pp with p>1p > 1.

[L1]

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

[L2]

If qq is prime and quvq \mid uv then quq \mid u or qvq \mid v (Euclid's lemma: if pp is prime and pabp \mid ab then pap \mid a or pbp \mid b).

[L5]

If xz=yzxz = yz and z0z \ne 0 then x=yx = y (The integers have no zero divisors; multiplicative cancellation).

[L7]

Z\mathbb{Z} is a commutative ring: multiplication is associative and commutative, x1=xx \cdot 1 = x, and every xx has an additive inverse x-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\mathbb{Z} is total, antisymmetric and transitive and is compatible with addition; x<yx < y means xyx \le y together with xyx \ne y (The integers form a totally ordered ring, Order on the integers).

[L9]

The embedding ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, preserves the order, and has as image exactly the nonnegative integers, with ι(0)=0\iota(0) = 0 and ι(1)=1\iota(1) = 1; and 010 \ne 1 in N\mathbb{N} (The naturals embed in the integers, The natural numbers N\mathbb{N} (von Neumann)).

Proof

technique · direct
1.1

0<10 < 1: 1=ι(1)1 = \iota(1) lies in the image of ι\iota, so 101 \ge 0, and 101 \ne 0 because ι\iota is injective and 010 \ne 1 in N\mathbb{N}. Adding 1-1 throughout gives 1<0-1 < 0.

L7L8L9
1.2

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

L2
1.3

Assume claim 2, and let dd be a positive divisor of pp; fix cZc \in \mathbb{Z} with p=dcp = dc.

L6choose
2.1

p>1>0p > 1 > 0, so p>0p > 0 and p0p \ne 0.

step 1.1L8
2.2

Then pdcp \mid dc, since ppp \mid p and p=dcp = dc; so claim 2 applied with a:=da := d and b:=cb := c gives pdp \mid d or pcp \mid c.

step 1.3L6
3.1

Suppose pdp \mid d. Since also dpd \mid p, [L3] gives d=p|d| = |p|, hence d=wpd = wp for a unit w{1,1}w \in \{1,-1\}. If w=1w = -1 then d=p<0d = -p < 0, contradicting d>0d > 0; so w=1w = 1 and d=pd = p.

step 2.1step 1.3step 2.2L3L7L8L10
3.2

Suppose instead pcp \mid c, and fix ee with c=pec = pe. Then 1p=p=dc=d(pe)=(de)p1 \cdot p = p = dc = d(pe) = (de) \cdot p, and p0p \ne 0, so cancellation gives de=1de = 1. Hence d1d \mid 1, so d=1d = 1 or d=1d = -1, and d>0>1d > 0 > -1 leaves d=1d = 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 dd of pp satisfies d=1d = 1 or d=pd = p; together with the standing hypothesis p>1p > 1 this says pp 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 pp divides a finite product i<nai\prod_{i<n} a_i of integers then paip \mid a_i for some i<ni < n; at n=0n = 0 the product is 11 and the hypothesis cannot hold

Statement

Let pp be a prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp), let nNn \in \mathbb{N}, and let a:NZa : \mathbb{N} \to \mathbb{Z}, with the finite product i<nai\prod_{i<n} a_i taken in the commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) of (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1 as in The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity. If

p    i<nai,p \;\Big|\; \prod_{i<n} a_i ,

then paip \mid a_i for some i<ni < n.

At n=0n = 0 the product is the empty product 11, and p1p \mid 1 is impossible for a prime, so the hypothesis is never satisfied there and the assertion is true rather than excluded. Since i<nai\prod_{i<n} a_i depends only on a0,,an1a_0, \dots, a_{n-1} (The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity), the statement applies verbatim to a finite list a:nZa : n \to \mathbb{Z}.

Facts & Assumptions

Given: A prime pp; the property P(n)P(n): "for every family a:NZa : \mathbb{N} \to \mathbb{Z}, if pi<naip \mid \prod_{i<n} a_i then paip \mid a_i for some i<ni < n".

[L1]
[L2]

In a monoid, i<0gi=e\prod_{i<0} g_i = e and i<σ(n)gi=(i<ngi)gn\prod_{i<\sigma(n)} g_i = \bigl(\prod_{i<n} g_i\bigr) \cdot g_n; the value depends only on g0,,gn1g_0, \dots, g_{n-1} (The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity).

[L3]

If qq is prime and quvq \mid uv then quq \mid u or qvq \mid v (Euclid's lemma: if pp is prime and pabp \mid ab then pap \mid a or pbp \mid b).

[L5]

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

[L6]

On N\mathbb{N}: n<σ(n)n < \sigma(n), and m<σ(n)m < \sigma(n) exactly when mnm \le n (On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in n, The natural numbers N\mathbb{N} (von Neumann)).

[L7]

The order on Z\mathbb{Z} is total, antisymmetric and transitive and is compatible with addition (The integers form a totally ordered ring, Order on the integers); Z\mathbb{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 ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, preserves the order, and has as image exactly the nonnegative integers, with ι(0)=0\iota(0) = 0 and ι(1)=1\iota(1) = 1; and 010 \ne 1 in N\mathbb{N} (The naturals embed in the integers).

Proof

technique · induction
1.1

0<10 < 1, since 1=ι(1)1 = \iota(1) is nonnegative and 101 \ne 0 by injectivity of ι\iota; adding 1-1 gives 1<0-1 < 0. Hence 1<0<1<p-1 < 0 < 1 < p, so p1p \ne 1 and p1p \ne -1.

L4L7L8
1.2

Let nNn \in \mathbb{N} and assume P(n)P(n).

ih
1.3

Let a:NZa : \mathbb{N} \to \mathbb{Z} and suppose pi<σ(n)aip \mid \prod_{i<\sigma(n)} a_i. By the recursion clause this product equals (i<nai)an\bigl(\prod_{i<n} a_i\bigr) \cdot a_n, so [L3] gives pi<naip \mid \prod_{i<n} a_i or panp \mid a_n.

L1L2L3L9
2.1

P(0)P(0) holds: i<0ai=1\prod_{i<0} a_i = 1 for every family aa, and p1p \mid 1 would force p=1p = 1 or p=1p = -1, which step 1.1 excludes. So the hypothesis of P(0)P(0) is never satisfied and P(0)P(0) is true vacuously.

basestep 1.1L1L2
2.2

In the first case step 1.2 supplies i<ni < n with paip \mid a_i, and i<n<σ(n)i < n < \sigma(n) gives i<σ(n)i < \sigma(n); in the second case i:=ni := n works, since n<σ(n)n < \sigma(n). Either way some i<σ(n)i < \sigma(n) has paip \mid a_i, so P(σ(n))P(\sigma(n)) holds.

step 1.2step 1.3L6
3.1

P(0)P(0) holds and P(n)P(n) implies P(σ(n))P(\sigma(n)) for every nn, so P(n)P(n) holds for every nNn \in \mathbb{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>1n > 1 has a prime divisor; indeed the least divisor of nn that exceeds 11 is prime

Statement

Let nZn \in \mathbb{Z} with n>1n > 1, and put

S  :=  {dZ  :  dn  and  d>1}S \;:=\; \{\, d \in \mathbb{Z} \;:\; d \mid n \ \text{ and } \ d > 1 \,\}

(Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq). Then SS is nonempty and has a least element qq, and qq is prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp). In particular every integer greater than 11 has a prime divisor.

Facts & Assumptions

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

[L5]

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

[L6]

The order on Z\mathbb{Z} is total, antisymmetric and transitive and is compatible with addition; x<yx < y means xyx \le y together with xyx \ne y (The integers form a totally ordered ring, Order on the integers).

[L8]

The embedding ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, preserves addition and order, and has as image exactly the nonnegative integers, with ι(0)=0\iota(0) = 0 and ι(1)=1\iota(1) = 1 (The naturals embed in the integers).

[L9]

On N\mathbb{N}: 0k0 \le k for every kk, since 0+k=k0 + k = k (Order on the natural numbers); m<km < k exactly when σ(m)k\sigma(m) \le k (Discreteness: σ(n)\sigma(n) is the immediate successor); and 1=σ(0)1 = \sigma(0) (The natural numbers N\mathbb{N} (von Neumann)).

Proof

technique · direct
1.1

0<10 < 1 in Z\mathbb{Z}: 1=ι(1)1 = \iota(1) lies in the image of ι\iota, so 101 \ge 0, and 101 \ne 0 because ι\iota is injective and ι(0)=0\iota(0) = 0.

L8
1.2

Discreteness: if xZx \in \mathbb{Z} and 0<x0 < x then 1x1 \le x. Indeed x0x \ge 0, so x=ι(k)x = \iota(k) for some kNk \in \mathbb{N}; k0k \ne 0 since ι(0)=0x\iota(0) = 0 \ne x; hence 0<k0 < k in N\mathbb{N}, so 1=σ(0)k1 = \sigma(0) \le k, and applying the order-preserving ι\iota gives 1=ι(1)ι(k)=x1 = \iota(1) \le \iota(k) = x.

L8L9
1.3

nSn \in S, since nnn \mid n and n>1n > 1; so SS is nonempty.

L2
1.4

11 is a lower bound for SS: every dSd \in S satisfies d>1d > 1, hence 1d1 \le d.

L6
2.1

By [L3] the set SS has a unique least element qq: that is, qnq \mid n, q>1q > 1, and qdq \le d for every dSd \in S.

step 1.3step 1.4L3
3.1

n>1>0n > 1 > 0 and q>1>0q > 1 > 0, so n0n \ne 0 and q0q \ne 0, and q=q|q| = q.

step 1.1step 2.1L6L10
3.2

Let ee be a positive divisor of qq with e1e \ne 1. Then 1e1 \le e by step 1.2, and e1e \ne 1, so e>1e > 1.

step 1.2step 2.1L6
4.1

Also eqe \mid q and qnq \mid n, so ene \mid n by transitivity; with e>1e > 1 this gives eSe \in S, hence qeq \le e.

step 2.1step 3.2L2
5.1

On the other hand eqe \mid q with q0q \ne 0 gives eq=q|e| \le |q| = q, and e=e|e| = e because e>0e > 0; so eqe \le q. With step 4.1 and antisymmetry, e=qe = q.

step 3.1step 3.2step 4.1L4L6L10
6.1

So every positive divisor of qq is 11 or qq, and q>1q > 1: qq is prime. Since qnq \mid n, the integer nn 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 n1n \ge 1 is a finite product of primes: there are rNr \in \mathbb{N} and a list p:rZp : r \to \mathbb{Z} of primes with n=i<rpin = \prod_{i<r} p_i, the case n=1n = 1 being the empty product

Statement

Write finite products in the commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) of (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1, as in The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity; a list of primes of length rr means a function p:rZp : r \to \mathbb{Z} on the von Neumann natural r={0,,r1}r = \{0,\dots,r-1\} with every pip_i prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp).

  1. Existence. For every nZn \in \mathbb{Z} with n1n \ge 1 there are rNr \in \mathbb{N} and a list p:rZp : r \to \mathbb{Z} of primes with

    n  =  i<rpi.n \;=\; \prod_{i<r} p_i .

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

  2. Every such product is at least 11. Conversely, for every rNr \in \mathbb{N} and every list p:rZp : r \to \mathbb{Z} of primes, i<rpi1\prod_{i<r} p_i \ge 1. So the integers of clause 1 are exactly the values of finite products of primes.

Facts & Assumptions

Given: The commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) ((Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1, Semigroup and monoid); the embedding ι:NZ\iota : \mathbb{N} \to \mathbb{Z} of The naturals embed in the integers; and the property P(k)P(k): "if ι(k)1\iota(k) \ge 1 then ι(k)=i<rpi\iota(k) = \prod_{i<r} p_i for some rNr \in \mathbb{N} and some list p:rZp : r \to \mathbb{Z} of primes".

[L1]

i<0gi=e\prod_{i<0} g_i = e and i<σ(r)gi=(i<rgi)gr\prod_{i<\sigma(r)} g_i = \bigl(\prod_{i<r} g_i\bigr) \cdot g_r; the value depends only on g0,,gr1g_0,\dots,g_{r-1}, so a list u:rMu : r \to M determines i<rui\prod_{i<r} u_i (The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity).

[L3]

Strong induction: if for every kk the truth of PP below kk implies P(k)P(k), then PP holds everywhere on N\mathbb{N} (Strong (complete) induction).

[L4]

Induction: a subset of N\mathbb{N} containing 00 and closed under σ\sigma is N\mathbb{N} (The principle of mathematical induction).

[L5]

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

[L7]

The order on Z\mathbb{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\mathbb{Z} is a commutative ring: multiplication is associative and commutative, x1=xx \cdot 1 = x, x0=0x \cdot 0 = 0, multiplication distributes over addition, and every xx has an additive inverse x-x, with (x)=x-(-x) = x and (x)y=(xy)(-x)y = -(xy); we write uvu - v for u+(v)u + (-v) (The integers form a commutative ring, Arithmetic on the integers).

[L9]

On N\mathbb{N}: 0k0 \le k for every kk (Order on the natural numbers); m<km < k exactly when σ(m)k\sigma(m) \le k (Discreteness: σ(n)\sigma(n) is the immediate successor); 1=σ(0)1 = \sigma(0) (The natural numbers N\mathbb{N} (von Neumann)); and r<σ(r)r < \sigma(r), with i<σ(r)i < \sigma(r) exactly when iri \le r (On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in n).

Proof

technique · induction
1.1

0<10 < 1 in Z\mathbb{Z}: 1=ι(1)1 = \iota(1) lies in the image of ι\iota, so 101 \ge 0, and 101 \ne 0 because ι\iota is injective and ι(0)=0\iota(0) = 0.

L5
1.2

Discreteness: if xZx \in \mathbb{Z} and 0<x0 < x then 1x1 \le x. Indeed x0x \ge 0, so x=ι(k)x = \iota(k) for some kk; k0k \ne 0 since ι(0)=0x\iota(0) = 0 \ne x; so 0<k0 < k in N\mathbb{N}, hence 1=σ(0)k1 = \sigma(0) \le k, and applying the order-preserving ι\iota gives 1x1 \le x.

L5L9
1.3

Let kNk \in \mathbb{N} and assume P(j)P(j) for every j<kj < k.

ih
2.1

Clause 2. Let TT be the set of rNr \in \mathbb{N} such that i<rpi1\prod_{i<r} p_i \ge 1 for every list p:rZp : r \to \mathbb{Z} of primes. Then 0T0 \in T, the empty product being 11. If rTr \in T and p:σ(r)Zp : \sigma(r) \to \mathbb{Z} is a list of primes, then i<σ(r)pi=(i<rpi)pr\prod_{i<\sigma(r)} p_i = \bigl(\prod_{i<r} p_i\bigr) p_r, where the restriction of pp to rr is again a list of primes, so the first factor is 1>0\ge 1 > 0; and pr>1>0p_r > 1 > 0; positives being closed under multiplication the product is >0> 0, hence 1\ge 1 by step 1.2. So σ(r)T\sigma(r) \in T, and T=NT = \mathbb{N}.

step 1.1step 1.2L1L4L6L7
2.2

P(0)P(0) holds vacuously: ι(0)=0\iota(0) = 0 and 010 \ge 1 is false, since 0<10 < 1.

basestep 1.1L5
2.3

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

step 1.1L1L7
3.1

Suppose instead n>1n > 1. Fix a prime qq with qnq \mid n and an integer mm with n=qmn = qm.

step 2.3L2L10choose
4.1

m>0m > 0: m=0m = 0 would give n=q0=0<1n = q \cdot 0 = 0 < 1, and m<0m < 0 would give m>0-m > 0, hence q(m)>0q(-m) > 0, that is n>0-n > 0 and n<0<1n < 0 < 1; both contradict n1n \ge 1. So m>0m > 0 and therefore m1m \ge 1 by step 1.2.

step 1.1step 1.2step 3.1L7L8
5.1

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

step 3.1step 4.1L6L7L8
6.1

As m1>0m \ge 1 > 0, write m=ι(j)m = \iota(j) with jNj \in \mathbb{N}. Then j<kj < k: otherwise kjk \le j, and ι\iota preserving the order would give n=ι(k)ι(j)=mn = \iota(k) \le \iota(j) = m, contradicting step 5.1.

step 4.1step 5.1L5L7
7.1

By step 1.3 applied to jj there are sNs \in \mathbb{N} and a list p:sZp : s \to \mathbb{Z} of primes with m=i<spim = \prod_{i<s} p_i.

step 1.3step 4.1step 6.1
8.1

Define p:σ(s)Zp' : \sigma(s) \to \mathbb{Z} by pi:=pip'_i := p_i for i<si < s and ps:=qp'_s := q; every value is prime, and i<σ(s)pi=(i<spi)ps=mq=qm=n\prod_{i<\sigma(s)} p'_i = \bigl(\prod_{i<s} p'_i\bigr) \cdot p'_s = m q = q m = n, the middle equality because the product over i<si < s depends only on p0,,ps1p'_0,\dots,p'_{s-1}, which agree with pp. So P(k)P(k) holds with r:=σ(s)r := \sigma(s).

step 3.1step 7.1L1L8L9
9.1

Steps 2.3 and 8.1 cover the two possibilities for nn, so P(k)P(k) follows from the truth of PP below kk; with step 2.2 as the case k=0k = 0, strong induction gives P(k)P(k) for every kNk \in \mathbb{N}.

step 2.2step 2.3step 8.1L3
10.1

Finally, any n1n \ge 1 satisfies n>0n > 0, so n=ι(k)n = \iota(k) for some kNk \in \mathbb{N}, and P(k)P(k) is clause 1 for that nn; 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 n1n \ge 1 is a product of primes, and the factorisation is unique up to order — if i<rpi=j<sqj\prod_{i<r} p_i = \prod_{j<s} q_j with every pip_i and qjq_j prime, then r=sr = s and qi=pπ(i)q_i = p_{\pi(i)} for some πSym(r)\pi \in \operatorname{Sym}(r)

Statement

Finite products are taken in the commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) of (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1 as in The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity, and a list of primes of length rr is a function p:rZp : r \to \mathbb{Z} on the von Neumann natural r={0,,r1}r = \{0,\dots,r-1\} with every pip_i prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp).

  1. Existence. Every nZn \in \mathbb{Z} with n1n \ge 1 is i<rpi\prod_{i<r} p_i for some rNr \in \mathbb{N} and some list pp of primes of length rr (Every integer n1n \ge 1 is a finite product of primes: there are rNr \in \mathbb{N} and a list p:rZp : r \to \mathbb{Z} of primes with n=i<rpin = \prod_{i<r} p_i, the case n=1n = 1 being the empty product).

  2. Uniqueness up to order. Let pp and qq be lists of primes, of lengths rr and ss. If

    i<rpi  =  j<sqj,\prod_{i<r} p_i \;=\; \prod_{j<s} q_j ,

    then r=sr = s, and there is a permutation πSym(r)\pi \in \operatorname{Sym}(r) (The symmetric group Sym(X)\operatorname{Sym}(X): the bijections of a set XX under composition) with

    qi  =  pπ(i)for every i<r.q_i \;=\; p_{\pi(i)} \qquad \text{for every } i < r .

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

Facts & Assumptions

Given: The commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) ((Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1, Semigroup and monoid); and the property U(r)U(r): "for every sNs \in \mathbb{N} and all lists pp, qq of primes of lengths rr and ss with i<rpi=j<sqj\prod_{i<r} p_i = \prod_{j<s} q_j, one has r=sr = s and qi=pπ(i)q_i = p_{\pi(i)} for all i<ri < r, for some πSym(r)\pi \in \operatorname{Sym}(r)".

[L1]

i<0gi=e\prod_{i<0} g_i = e and i<σ(r)gi=(i<rgi)gr\prod_{i<\sigma(r)} g_i = \bigl(\prod_{i<r} g_i\bigr) \cdot g_r; the value depends only on g0,,gr1g_0,\dots,g_{r-1} (The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity).

[L2]

Commutative case of generalised associativity: for a commutative monoid, nNn \in \mathbb{N}, πSym(n)\pi \in \operatorname{Sym}(n) and hh with hi=gπ(i)h_i = g_{\pi(i)} for i<ni < n, one has i<nhi=i<ngi\prod_{i<n} h_i = \prod_{i<n} g_i (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 uu satisfies u>1u > 1, and every positive divisor of a prime ww is 11 or ww (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp).

[L6]

If xz=yzxz = yz and z0z \ne 0 then x=yx = y (The integers have no zero divisors; multiplicative cancellation).

[L7]

Sym(X)\operatorname{Sym}(X) is the set of bijections XXX \to X under composition, with identity idX\mathrm{id}_X; it is closed under composition, and for aba \ne b in XX the transposition (ab)(a\,b) is a permutation of XX with (ab)(ab)=idX(a\,b) \circ (a\,b) = \mathrm{id}_X (The symmetric group Sym(X)\operatorname{Sym}(X): the bijections of a set XX under composition, Sym(X)\operatorname{Sym}(X) is a group under composition, and it is non-abelian whenever XX has at least three distinct elements, Injection, surjection, bijection).

[L8]

Induction on N\mathbb{N} (The principle of mathematical induction).

[L9]

On N\mathbb{N}: n={m:m<n}n = \{\, m : m < n \,\}, σ(n)=n{n}\sigma(n) = n \cup \{n\}, n<σ(n)n < \sigma(n), m<σ(n)m < \sigma(n) exactly when mnm \le n, and nnn \notin n (On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in n, The natural numbers N\mathbb{N} (von Neumann)).

[L10]

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

[L11]

The order on Z\mathbb{Z} is total, antisymmetric and transitive and is compatible with addition; Z\mathbb{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]

ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, preserves the order, and has as image the nonnegative integers, with ι(0)=0\iota(0) = 0, ι(1)=1\iota(1) = 1 (The naturals embed in the integers).

Proof

technique · induction
1.1

0<10 < 1: 1=ι(1)1 = \iota(1) is nonnegative and differs from 0=ι(0)0 = \iota(0) by injectivity of ι\iota. Hence every prime uu satisfies u>1>0u > 1 > 0, so u0u \ne 0, u1u \ne 1 and, adding 1-1 to 0<10 < 1, also u1u \ne -1.

L4L11L12
1.2

If qq is a list of primes of length s0s \ne 0 then qtj<sqjq_t \mid \prod_{j<s} q_j, where s=σ(t)s = \sigma(t): indeed the product equals (j<tqj)qt\bigl(\prod_{j<t} q_j\bigr) q_t.

L1L5L10
1.3

Let rNr \in \mathbb{N} and assume U(r)U(r).

ih
1.4

Let pp be a list of primes of length σ(r)\sigma(r) and qq one of length ss, with N:=i<σ(r)pi=j<sqjN := \prod_{i<\sigma(r)} p_i = \prod_{j<s} q_j. Then N=(i<rpi)prN = \bigl(\prod_{i<r} p_i\bigr) p_r, so prNp_r \mid N.

L1L5
2.1

A prime never divides 11: u1u \mid 1 would force u=1u = 1 or u=1u = -1, both excluded by step 1.1.

step 1.1L5
2.2

By [L3] there is k<sk < s with prqkp_r \mid q_k. Since pr>1>0p_r > 1 > 0, prp_r is a positive divisor of the prime qkq_k other than 11, so pr=qkp_r = q_k.

step 1.1step 1.4L3L4
3.1

U(0)U(0) holds. Let qq be a list of primes of length ss with i<0pi=j<sqj\prod_{i<0} p_i = \prod_{j<s} q_j, so j<sqj=1\prod_{j<s} q_j = 1. If s0s \ne 0, then s=σ(t)s = \sigma(t) and step 1.2 gives qt1q_t \mid 1, contradicting step 2.1; so s=0s = 0. Then r=s=0r = s = 0, idSym(0)\mathrm{id}_{\varnothing} \in \operatorname{Sym}(0) since 0=0 = \varnothing, and the condition "qi=pπ(i)q_i = p_{\pi(i)} for all i<0i < 0" is vacuous.

basestep 2.1step 1.2L1L7L9
3.2

s0s \ne 0: otherwise N=1N = 1 and pr1p_r \mid 1, contradicting step 2.1. Write s=σ(t)s = \sigma(t).

step 2.1step 1.4L1L10
4.1

Define τSym(s)\tau \in \operatorname{Sym}(s) by τ:=ids\tau := \mathrm{id}_s if k=tk = t and τ:=(kt)\tau := (k\,t) otherwise; in both cases τ\tau is a permutation of ss with ττ=ids\tau \circ \tau = \mathrm{id}_s and τ(t)=k\tau(t) = k. Note t<st < s and k<sk < s, so both lie in ss.

step 3.2step 2.2L7L9construct
5.1

Put qj:=qτ(j)q'_j := q_{\tau(j)} for j<sj < s; every qjq'_j is prime, and j<sqj=j<sqj=N\prod_{j<s} q'_j = \prod_{j<s} q_j = N by the commutative clause [L2], the monoid (Z,,1)(\mathbb{Z},\cdot,1) being commutative.

step 4.1L2
6.1

Also qt=qτ(t)=qk=prq'_t = q_{\tau(t)} = q_k = p_r, so N=j<σ(t)qj=(j<tqj)qt=(j<tqj)prN = \prod_{j<\sigma(t)} q'_j = \bigl(\prod_{j<t} q'_j\bigr) q'_t = \bigl(\prod_{j<t} q'_j\bigr) p_r.

step 2.2step 4.1step 5.1L1
7.1

Comparing with step 1.4, (i<rpi)pr=(j<tqj)pr\bigl(\prod_{i<r} p_i\bigr) p_r = \bigl(\prod_{j<t} q'_j\bigr) p_r, and pr0p_r \ne 0 by step 1.1, so cancellation gives i<rpi=j<tqj\prod_{i<r} p_i = \prod_{j<t} q'_j.

step 1.1step 1.4step 6.1L6
8.1

The restrictions of pp to rr and of qq' to tt are lists of primes of lengths rr and tt, 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)U(r) applies: r=tr = t, hence s=σ(t)=σ(r)s = \sigma(t) = \sigma(r), and there is ρSym(r)\rho \in \operatorname{Sym}(r) with qi=pρ(i)q'_i = p_{\rho(i)} for every i<ri < r.

step 1.3step 7.1L1
9.1

Define ρ^:σ(r)σ(r)\hat\rho : \sigma(r) \to \sigma(r) by ρ^(i):=ρ(i)\hat\rho(i) := \rho(i) for i<ri < r and ρ^(r):=r\hat\rho(r) := r. Since σ(r)=r{r}\sigma(r) = r \cup \{r\} with rrr \notin r, and ρ\rho is a bijection of rr, the map ρ^\hat\rho is a bijection of σ(r)\sigma(r), that is ρ^Sym(σ(r))\hat\rho \in \operatorname{Sym}(\sigma(r)).

step 8.1L7L9construct
10.1

Put π:=ρ^τ\pi := \hat\rho \circ \tau, a permutation of s=σ(r)s = \sigma(r) because Sym(σ(r))\operatorname{Sym}(\sigma(r)) is closed under composition.

step 4.1step 8.1step 9.1L7
11.1

For i<σ(r)i < \sigma(r) we get qi=qτ(τ(i))=qτ(i)q_i = q_{\tau(\tau(i))} = q'_{\tau(i)}. If τ(i)<r\tau(i) < r then qτ(i)=pρ(τ(i))=pρ^(τ(i))=pπ(i)q'_{\tau(i)} = p_{\rho(\tau(i))} = p_{\hat\rho(\tau(i))} = p_{\pi(i)}; and if τ(i)=r=t\tau(i) = r = t then qτ(i)=qt=pr=pρ^(r)=pπ(i)q'_{\tau(i)} = q'_t = p_r = p_{\hat\rho(r)} = p_{\pi(i)}. Since τ(i)<σ(r)\tau(i) < \sigma(r) these two possibilities are exhaustive, so qi=pπ(i)q_i = p_{\pi(i)} throughout.

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

Steps 8.1 and 11.1 give s=σ(r)s = \sigma(r) and a permutation πSym(σ(r))\pi \in \operatorname{Sym}(\sigma(r)) with qi=pπ(i)q_i = p_{\pi(i)} for all i<σ(r)i < \sigma(r), so U(σ(r))U(\sigma(r)) holds; with step 3.1 as base, induction gives U(r)U(r) for every rNr \in \mathbb{N}, which is clause 2. Clause 1 is Every integer n1n \ge 1 is a finite product of primes: there are rNr \in \mathbb{N} and a list p:rZp : r \to \mathbb{Z} of primes with n=i<rpin = \prod_{i<r} p_i, the case n=1n = 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 nn is ui<rpiu \prod_{i<r} p_i with u{1,1}u \in \{1,-1\} and every pip_i prime; uu and rr are determined by nn, and the list is determined up to a permutation

Statement

Let nZn \in \mathbb{Z} with n0n \ne 0, and take finite products in the commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) of (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1, as in The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity.

  1. Existence. There are u{1,1}u \in \{1,-1\}, rNr \in \mathbb{N} and a list p:rZp : r \to \mathbb{Z} of primes (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp) with

    n  =  ui<rpi.n \;=\; u \prod_{i<r} p_i .

  2. Uniqueness. If also n=uj<sqjn = u' \prod_{j<s} q_j with u{1,1}u' \in \{1,-1\} and q:sZq : s \to \mathbb{Z} a list of primes, then u=uu = u', r=sr = s, and qi=pπ(i)q_i = p_{\pi(i)} for every i<ri < r, for some πSym(r)\pi \in \operatorname{Sym}(r) (The symmetric group Sym(X)\operatorname{Sym}(X): the bijections of a set XX under composition).

Facts & Assumptions

Given: A nonzero integer nn.

[L4]

If xz=yzxz = yz and z0z \ne 0 then x=yx = y (The integers have no zero divisors; multiplicative cancellation).

[L5]

Z\mathbb{Z} is a commutative ring: multiplication is associative and commutative, x1=xx \cdot 1 = x, x(1)=xx \cdot (-1) = -x, and every xx has an additive inverse, with (x)=x-(-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\mathbb{Z} is total, antisymmetric and transitive and is compatible with addition (The integers form a totally ordered ring, Order on the integers).

[L7]

ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, preserves the order, and has as image exactly the nonnegative integers, with ι(0)=0\iota(0) = 0 and ι(1)=1\iota(1) = 1 (The naturals embed in the integers).

[L8]

On N\mathbb{N}: 0k0 \le k for every kk (Order on the natural numbers); m<km < k exactly when σ(m)k\sigma(m) \le k (Discreteness: σ(n)\sigma(n) is the immediate successor); 1=σ(0)1 = \sigma(0) (The natural numbers N\mathbb{N} (von Neumann)).

Proof

technique · direct
1.1

0<10 < 1, since 1=ι(1)1 = \iota(1) is nonnegative and differs from 0=ι(0)0 = \iota(0) by injectivity; and if 0<x0 < x then 1x1 \le x, because x=ι(k)x = \iota(k) with k0k \ne 0, so 1=σ(0)k1 = \sigma(0) \le k and ι\iota preserves the order.

L7L8
2.1

n0|n| \ge 0 and n0|n| \ne 0, so n>0|n| > 0 and hence n1|n| \ge 1.

step 1.1L3L6
2.2

For uniqueness, suppose n=uP=uPn = u P = u' P' where P:=i<rpiP := \prod_{i<r} p_i and P:=j<sqjP' := \prod_{j<s} q_j and u,u{1,1}u, u' \in \{1,-1\}. By [L1] both P1P \ge 1 and P1P' \ge 1, so both are positive and P=P|P| = P, P=P|P'| = P'.

step 1.1L1L3L6
3.1

By [L1] there are rNr \in \mathbb{N} and a list pp of primes of length rr with n=i<rpi|n| = \prod_{i<r} p_i.

step 2.1L1choose
3.2

Taking absolute values, n=uP=P|n| = |u|\,|P| = P and likewise n=uP=P|n| = |u'|\,|P'| = P', since 1=1|1| = 1 and 1=1|-1| = 1. Hence P=PP = P'.

step 2.2L3L5
4.1

The order is total and n0n \ne 0, so n>0n > 0 or n<0n < 0. If n>0n > 0 then n=n|n| = n and n=1i<rpin = 1 \cdot \prod_{i<r} p_i; if n<0n < 0 then n=n|n| = -n, so n=(n)=n=(1)i<rpin = -(-n) = -|n| = (-1) \prod_{i<r} p_i. In both cases clause 1 holds, with u=1u = 1 and u=1u = -1 respectively.

step 3.1L3L5L6
4.2

By [L2] applied to P=PP = P' we get r=sr = s and a permutation πSym(r)\pi \in \operatorname{Sym}(r) with qi=pπ(i)q_i = p_{\pi(i)} for every i<ri < r.

step 3.2L2
4.3

And uP=uPu P = u' P with P0P \ne 0, since P1>0P \ge 1 > 0; cancellation gives u=uu = 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 nNn \in \mathbb{N} and every list p:nZp : n \to \mathbb{Z} of primes there is a prime not among p0,,pn1p_0, \dots, p_{n-1}; consequently the set of primes is not finite

Statement

Write P:={xZ:x is prime}P := \{\, x \in \mathbb{Z} : x \text{ is prime} \,\} (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp), and take finite products in the commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) of (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1 as in The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity.

  1. For every nNn \in \mathbb{N} and every list p:nZp : n \to \mathbb{Z} of primes there is a prime qq with qpiq \ne p_i for every i<ni < n.
  2. Consequently PP is not finite: there is no mNm \in \mathbb{N} with PmP \approx m (Finite, countably infinite, countable, uncountable, Equinumerous sets, ABA \approx B and ABA \preceq B).

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

Facts & Assumptions

Given: The set PP of primes.

[L1]

i<0gi=e\prod_{i<0} g_i = e and i<σ(n)gi=(i<ngi)gn\prod_{i<\sigma(n)} g_i = \bigl(\prod_{i<n} g_i\bigr) \cdot g_n; the value depends only on g0,,gn1g_0,\dots,g_{n-1} (The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity, (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1, Semigroup and monoid).

[L2]

Splitting law: i<m+kgi=(i<mgi)(l<kgm+l)\prod_{i<m+k} g_i = \bigl(\prod_{i<m} g_i\bigr) \cdot \bigl(\prod_{l<k} g_{m+l}\bigr) for all m,kNm, k \in \mathbb{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\mathbb{Z} is a commutative ring: addition and multiplication are associative and commutative, x+0=xx + 0 = x, x1=xx \cdot 1 = x, and every xx 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\mathbb{Z} is total, antisymmetric and transitive and is compatible with addition (The integers form a totally ordered ring, Order on the integers); ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, preserves the order, and has as image the nonnegative integers, with ι(0)=0\iota(0) = 0, ι(1)=1\iota(1) = 1 (The naturals embed in the integers, The natural numbers N\mathbb{N} (von Neumann)).

[L10]

On N\mathbb{N}: j<nj < n exactly when σ(j)n\sigma(j) \le n (Discreteness: σ(n)\sigma(n) is the immediate successor); aba \le b means a+c=ba + c = b for some cNc \in \mathbb{N} (Order on the natural numbers, Addition of natural numbers); and n={m:m<n}n = \{\, m : m < n \,\} with j<σ(j)j < \sigma(j) (On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in 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); ABA \approx B means a bijection ABA \to B exists, and AA is finite when AmA \approx m for some mNm \in \mathbb{N} (Equinumerous sets, ABA \approx B and ABA \preceq B, Finite, countably infinite, countable, uncountable).

Proof

technique · contradiction
1.1

0<10 < 1 in Z\mathbb{Z}, since 1=ι(1)1 = \iota(1) is nonnegative and differs from 0=ι(0)0 = \iota(0) by injectivity of ι\iota; adding 11 gives 1<1+11 < 1 + 1.

L9
1.2

Fix nNn \in \mathbb{N} and a list p:nZp : n \to \mathbb{Z} of primes, and put Π:=i<npi\Pi := \prod_{i<n} p_i and N:=Π+1N := \Pi + 1.

L1choose
1.3

Suppose, for contradiction, that PP is finite: fix mNm \in \mathbb{N} and a bijection g:Pmg : P \to m.

assume-contraL11choose
2.1

Π1\Pi \ge 1 by [L3], so N=Π+11+1>1N = \Pi + 1 \ge 1 + 1 > 1 by compatibility of the order with addition.

step 1.1step 1.2L3L9
2.2

Suppose, for contradiction, that q=pjq = p_j for some j<nj < n. Since j<nj < n we have σ(j)n\sigma(j) \le n, so n=σ(j)+cn = \sigma(j) + c for some cNc \in \mathbb{N}.

assume-contrastep 1.2L10
2.3

Define f:mZf : m \to \mathbb{Z} by letting f(i)f(i) be the unique xPx \in P with g(x)=ig(x) = i; such an xx exists because gg is surjective and is unique because gg is injective. Then ff is a list of primes of length mm, and f(g(x))=xf(g(x)) = x for every xPx \in P.

step 1.3L11construct
3.1

By [L4] there is a prime qq with qNq \mid N.

step 2.1L4choose
3.2

The splitting law then gives Π=(i<σ(j)pi)(l<cpσ(j)+l)\Pi = \bigl(\prod_{i<\sigma(j)} p_i\bigr) \cdot \bigl(\prod_{l<c} p_{\sigma(j)+l}\bigr), and i<σ(j)pi=(i<jpi)pj\prod_{i<\sigma(j)} p_i = \bigl(\prod_{i<j} p_i\bigr) p_j; by associativity and commutativity Π=pjB\Pi = p_j \cdot B where B:=(i<jpi)(l<cpσ(j)+l)B := \bigl(\prod_{i<j} p_i\bigr)\bigl(\prod_{l<c} p_{\sigma(j)+l}\bigr). Hence pjΠp_j \mid \Pi, that is qΠq \mid \Pi.

step 2.2L1L2L7L8
4.1

So qNq \mid N and qΠq \mid \Pi, whence qNΠ=1q \mid N - \Pi = 1 by linearity, forcing q=1q = 1 or q=1q = -1 and contradicting q>1>0>1q > 1 > 0 > -1. Therefore qpiq \ne p_i for every i<ni < n, which is clause 1.

step 1.1step 1.2step 3.1step 3.2L5L6L7L8L9
5.1

Clause 1 applied to ff supplies a prime q0q_0 with q0f(i)q_0 \ne f(i) for every i<mi < m. But q0Pq_0 \in P, so g(q0)<mg(q_0) < m and f(g(q0))=q0f(g(q_0)) = q_0, a contradiction. Hence no such mm and gg exist and PP 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 pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a

Definition

Let pp be a prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp) and let aZa \in \mathbb{Z} with a0a \ne 0. Powers pkp^{k} for kNk \in \mathbb{N} are the natural powers of Powers gng^{n}: natural exponents in a monoid and integer exponents in a group, with g0=eg^{0} = e taken in the commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) of (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1 and Semigroup and monoid, so that

p0=1,pσ(k)=pkp(kN).p^{0} = 1, \qquad p^{\sigma(k)} = p^{k} \cdot p \quad (k \in \mathbb{N}).

Put

E(p,a)  :=  {kN  :  pka}E(p,a) \;:=\; \{\, k \in \mathbb{N} \;:\; p^{k} \mid a \,\}

(Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq). Then E(p,a)E(p,a) has a greatest element, and the pp-adic valuation of aa is

vp(a)  :=  maxE(p,a)    N,v_p(a) \;:=\; \max E(p,a) \;\in\; \mathbb{N},

the greatest kNk \in \mathbb{N} with pkap^{k} \mid a.

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

The set is nonempty. p0=1p^{0} = 1 and 1a1 \mid a for every aa (Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq), so 0E(p,a)0 \in E(p,a).

Every power of pp exceeds its own exponent. We claim pk1p^{k} \ge 1 and ι(k)<pk\iota(k) < p^{k} for every kNk \in \mathbb{N}, where ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is the embedding of The naturals embed in the integers. Both are proved by induction (The principle of mathematical induction). At k=0k = 0 we have p0=11p^{0} = 1 \ge 1 and ι(0)=0<1=p0\iota(0) = 0 < 1 = p^{0}, using 0<10 < 1, which holds because 1=ι(1)1 = \iota(1) is nonnegative and differs from 0=ι(0)0 = \iota(0) by injectivity of ι\iota. Assume both at kk. Since p>1p > 1 we have p1>0p - 1 > 0, hence p11p - 1 \ge 1 by discreteness of the order on Z\mathbb{Z} (Discreteness: σ(n)\sigma(n) is the immediate successor, The naturals embed in the integers: an integer x>0x > 0 is ι(j)\iota(j) with j0j \ne 0, so 1=σ(0)j1 = \sigma(0) \le j and 1x1 \le x). Therefore pσ(k)pk=pk(p1)pk1p^{\sigma(k)} - p^{k} = p^{k}(p-1) \ge p^{k} \ge 1, because pk1>0p^{k} \ge 1 > 0 and positives are closed under multiplication (The integers form a totally ordered ring); so pσ(k)pk+11+1>1p^{\sigma(k)} \ge p^{k} + 1 \ge 1 + 1 > 1. The same discreteness applied to pkι(k)>0p^{k} - \iota(k) > 0 gives ι(k)+1pk\iota(k) + 1 \le p^{k}, and ι(σ(k))=ι(k)+1\iota(\sigma(k)) = \iota(k) + 1 because σ(k)=k+1\sigma(k) = k + 1 in N\mathbb{N} (Addition of natural numbers) and ι\iota preserves addition; so ι(σ(k))pk<pk+1pσ(k)\iota(\sigma(k)) \le p^{k} < p^{k} + 1 \le p^{\sigma(k)}. The induction is complete.

The set is bounded. Let kE(p,a)k \in E(p,a). Then pkap^{k} \mid a with a0a \ne 0, so pka|p^{k}| \le |a| (If dad \mid a and a0a \ne 0 then d0d \ne 0 and da|d| \le |a|; hence the set of divisors of a nonzero integer is bounded above by a|a|); and pk1>0p^{k} \ge 1 > 0 gives pk=pk|p^{k}| = p^{k} (The absolute value a|a| of an integer, Absolute value in Z\mathbb{Z}: a0|a| \ge 0; a=0|a| = 0 exactly when a=0a = 0; a=a|-a| = |a|; ab=ab|ab| = |a|\,|b|; aaa-|a| \le a \le |a|; and ac|a| \le c exactly when cac-c \le a \le c). Combining with the previous paragraph, ι(k)<pka\iota(k) < p^{k} \le |a|. So the set of integers ι[E(p,a)]={ι(k):kE(p,a)}\iota[E(p,a)] = \{\, \iota(k) : k \in E(p,a) \,\} is nonempty and bounded above by a|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)\iota(k_0) for some k0E(p,a)k_0 \in E(p,a); and since ι\iota is injective and preserves the order in both directions, k0k_0 is the greatest element of E(p,a)E(p,a) and is unique. We set vp(a):=k0v_p(a) := k_0.

vp(0)v_p(0) is left undefined. Every power of pp divides 00 (Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq), so E(p,0)=NE(p,0) = \mathbb{N} has no greatest element and the clause above defines nothing. Every statement about vpv_p in this library therefore carries the hypothesis a0a \ne 0 explicitly. The convention vp(0):=v_p(0) := \infty is not adopted: it would need a value set enlarging N\mathbb{N} by a greatest element in which to place \infty, 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 ++\infty — but it is constructed far above this page, and taking the values of vpv_p there would make a definition about Z\mathbb{Z} rest on the construction of R\mathbb{R}.

Remarks

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

For a prime pp and a nonzero integer aa: pvp(a)ap^{v_p(a)} \mid a and pvp(a)+1ap^{v_p(a)+1} \nmid a; pkap^{k} \mid a holds exactly for kvp(a)k \le v_p(a); vp(a)1v_p(a) \ge 1 exactly when pap \mid a; vp(1)=vp(1)=0v_p(1) = v_p(-1) = 0; and vp(p)=1v_p(p) = 1

Statement

Let pp be a prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp), let aZa \in \mathbb{Z} with a0a \ne 0, and write v:=vp(a)v := v_p(a) (The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a). Powers are the natural powers of Powers gng^{n}: natural exponents in a monoid and integer exponents in a group, with g0=eg^{0} = e in the commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) ((Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1), and k+1k + 1 means σ(k)\sigma(k). Then:

  1. pk1p^{k} \ge 1 for every kNk \in \mathbb{N}; in particular pk>0p^{k} > 0 and pk0p^{k} \ne 0;
  2. pvap^{v} \mid a and pv+1ap^{v+1} \nmid a;
  3. for kNk \in \mathbb{N}: pkap^{k} \mid a if and only if kvk \le v;
  4. a=pvaa = p^{v} a' for some aZa' \in \mathbb{Z} with a0a' \ne 0 and pap \nmid a';
  5. v1v \ge 1 if and only if pap \mid a;
  6. vp(1)=vp(1)=0v_p(1) = v_p(-1) = 0 and vp(p)=1v_p(p) = 1.

Facts & Assumptions

Given: A prime pp, a nonzero integer aa, and v:=vp(a)v := v_p(a).

[L1]

vp(a)v_p(a) is the greatest kNk \in \mathbb{N} with pkap^{k} \mid a; in particular pvap^{v} \mid a, and pkap^{k} \mid a fails for every k>vk > v (The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a).

[L5]

dud \mid u means u=dcu = dc for some cZc \in \mathbb{Z} (Divisibility in Z\mathbb{Z}: dad \mid a when a=dqa = dq for some integer qq).

[L8]

If xz=yzxz = yz and z0z \ne 0 then x=yx = y; and a product of two nonzero integers is nonzero (The integers have no zero divisors; multiplicative cancellation).

[L9]

On N\mathbb{N}: mnm \le n means m+c=nm + c = n for some cc (Order on the natural numbers); σ(k)=k+1\sigma(k) = k + 1 (Addition of natural numbers, The natural numbers N\mathbb{N} (von Neumann)); k<σ(k)k < \sigma(k) and m<σ(n)m < \sigma(n) exactly when mnm \le n (On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in n); m<nm < n exactly when σ(m)n\sigma(m) \le n (Discreteness: σ(n)\sigma(n) is the immediate successor); and \le is a linear order, so it is antisymmetric and total (\le is a linear order on N\mathbb{N}).

[L10]

Z\mathbb{Z} is a commutative ring, its order is total, antisymmetric and transitive and compatible with addition, and ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective, order preserving, with image the nonnegative integers and ι(0)=0\iota(0) = 0, ι(1)=1\iota(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\mathbb{N}: a subset containing 00 and closed under σ\sigma is all of N\mathbb{N} (The principle of mathematical induction).

Proof

technique · direct
1.1

p1=pσ(0)=p0p=1p=pp^{1} = p^{\sigma(0)} = p^{0} \cdot p = 1 \cdot p = p.

L2L10
1.2

0<1<p0 < 1 < p in Z\mathbb{Z}, since 1=ι(1)1 = \iota(1) is nonnegative and differs from 00; hence p0p \ne 0, p1p \ne 1 and p1p \ne -1.

L7L10
1.3

Clause 1. pvap^{v} \mid a by [L1], and v<σ(v)=v+1v < \sigma(v) = v + 1, so pv+1ap^{v+1} \mid a would contradict the maximality of vv; hence pv+1ap^{v+1} \nmid a.

L1L9
1.4

Clause 2, the other direction. If pkap^{k} \mid a then kk belongs to the set of which vv is the greatest element, so kvk \le v.

L1L9
2.1

Clause 0: pk1p^{k} \ge 1 for every kNk \in \mathbb{N}. The set of such kk contains 00, since p0=1p^{0} = 1; and if pk1p^{k} \ge 1 then pσ(k)=pkpp^{\sigma(k)} = p^{k} p has both factors 1>0\ge 1 > 0, so the product is positive, hence 1\ge 1 by discreteness of the order on Z\mathbb{Z} (a positive integer is ι(j)\iota(j) with j0j \ne 0, so 1=σ(0)j1 = \sigma(0) \le j and 1ι(j)1 \le \iota(j)). By induction the set is all of N\mathbb{N}, and in particular pk>0p^{k} > 0 and pk0p^{k} \ne 0.

step 1.1step 1.2L2L9L10L11
2.2

Clause 2, one direction. Let kvk \le v and write v=k+cv = k + c with cNc \in \mathbb{N}. Then pv=pk+c=pkpcp^{v} = p^{k+c} = p^{k} p^{c}, so pkpvp^{k} \mid p^{v}; with pvap^{v} \mid a and transitivity, pkap^{k} \mid a.

step 1.3L1L3L4L5L9
2.3

Clause 3. By [L1] fix aa' with a=pvaa = p^{v} a'. Then a0a' \ne 0, since a0a \ne 0. If pap \mid a', say a=pba' = pb, then a=pv(pb)=(pvp)b=pv+1ba = p^{v}(pb) = (p^{v} p) b = p^{v+1} b, so pv+1ap^{v+1} \mid a, contradicting step 1.3. Hence pap \nmid a'.

step 1.3L1L2L5L9L10choose
2.4

If k1k \ge 1 then ppkp \mid p^{k}: write k=1+ck = 1 + c, so pk=p1pc=ppcp^{k} = p^{1} p^{c} = p \cdot p^{c}.

step 1.1L3L5L9
3.1

Clause 4. If v1v \ge 1 then p=p1ap = p^{1} \mid a by step 2.2. Conversely if pap \mid a then p1ap^{1} \mid a, so 1v1 \le v by step 1.4.

step 1.1step 2.2step 1.4
3.2

vp(1)=0v_p(1) = 0. If pk1p^{k} \mid 1 with k1k \ge 1, then ppk1p \mid p^{k} \mid 1 by step 2.4 and transitivity, so p=1p = 1 or p=1p = -1, contradicting step 1.2. So no k1k \ge 1 satisfies pk1p^{k} \mid 1, while p0=11p^{0} = 1 \mid 1; the greatest such kk is 00.

step 1.2step 2.4L1L2L4L6L9
3.3

vp(p)=1v_p(p) = 1. First p1=ppp^{1} = p \mid p, so 1vp(p)1 \le v_p(p) by step 1.4 applied to a:=pa := p. Next p2pp^{2} \nmid p, where 2=σ(1)2 = \sigma(1): otherwise p=p2c=p(pc)p = p^{2}c = p(pc) for some cc, and cancelling p0p \ne 0 gives 1=pc1 = pc, so p1p \mid 1, contradicting step 1.2. Hence vp(p)<2v_p(p) < 2 by step 2.2, that is vp(p)1v_p(p) \le 1, and antisymmetry gives vp(p)=1v_p(p) = 1.

step 1.1step 1.2step 2.2step 1.4L2L5L8L9
4.1

vp(1)=0v_p(-1) = 0, because pk1p^{k} \mid -1 holds exactly when pk1p^{k} \mid 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)v_p(ab) = v_p(a) + v_p(b) for nonzero integers a,ba, b, and vp(a+b)min{vp(a),vp(b)}v_p(a+b) \ge \min\{v_p(a), v_p(b)\} whenever aa, bb and a+ba+b are all nonzero

Statement

Let pp be a prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp) and let a,bZa, b \in \mathbb{Z} be nonzero, with vpv_p as in The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a. Then ab0ab \ne 0 and

vp(ab)  =  vp(a)+vp(b),v_p(ab) \;=\; v_p(a) + v_p(b),

the sum taken in N\mathbb{N} (Addition of natural numbers). If moreover a+b0a + b \ne 0, then

vp(a+b)    min{vp(a),vp(b)},v_p(a+b) \;\ge\; \min\{\, v_p(a),\, v_p(b) \,\},

the minimum of two natural numbers, which exists because the order on N\mathbb{N} is total (\le is a linear order on N\mathbb{N}).

Facts & Assumptions

Given: A prime pp and nonzero integers a,ba, b; α:=vp(a)\alpha := v_p(a) and β:=vp(b)\beta := v_p(b).

[L3]

If pp is prime and puvp \mid uv then pup \mid u or pvp \mid v (Euclid's lemma: if pp is prime and pabp \mid ab then pap \mid a or pbp \mid b).

[L5]

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

[L6]

Z\mathbb{Z} is a commutative ring: multiplication is associative and commutative and x1=xx \cdot 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\mathbb{N}: \le is a linear order, so any two naturals are comparable and have a minimum (\le is a linear order on N\mathbb{N}); mnm \le n means m+c=nm + c = n for some cc (Order on the natural numbers); σ(k)=k+1\sigma(k) = k + 1 (Addition of natural numbers, The natural numbers N\mathbb{N} (von Neumann)); m<nm < n exactly when σ(m)n\sigma(m) \le n (Discreteness: σ(n)\sigma(n) is the immediate successor), and m<σ(n)m < \sigma(n) exactly when mnm \le n (On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in n).

Proof

technique · direct
1.1

ab0ab \ne 0, so vp(ab)v_p(ab) is defined.

L5
1.2

Fix aa' and bb' with a=pαaa = p^{\alpha} a', b=pβbb = p^{\beta} b', both nonzero, and pap \nmid a', pbp \nmid b'.

L1choose
1.3

Now assume also a+b0a + b \ne 0, and put m:=min{α,β}m := \min\{\alpha,\beta\}, which exists because \le is total on N\mathbb{N}; then mαm \le \alpha and mβm \le \beta.

L7
2.1

ab=(pαa)(pβb)=(pαpβ)(ab)=pα+β(ab)ab = (p^{\alpha} a')(p^{\beta} b') = (p^{\alpha} p^{\beta})(a' b') = p^{\alpha+\beta}(a'b'), using commutativity, associativity and the exponent law.

step 1.2L2L6
2.2

pabp \nmid a'b': otherwise [L3] would give pap \mid a' or pbp \mid b', both excluded by step 1.2.

step 1.2L3
2.3

By [L1], pmap^{m} \mid a and pmbp^{m} \mid b, so pma+bp^{m} \mid a + b by linearity; since a+b0a + b \ne 0, [L1] applied to a+ba+b gives mvp(a+b)m \le v_p(a+b), which is the second assertion.

step 1.3L1L4
3.1

pα+β0p^{\alpha+\beta} \ne 0, since ab0ab \ne 0 and ab=pα+β(ab)ab = p^{\alpha+\beta}(a'b') would otherwise be 00.

step 1.1step 2.1L6
3.2

pα+βabp^{\alpha+\beta} \mid ab by step 2.1, so α+βvp(ab)\alpha + \beta \le v_p(ab).

step 1.1step 2.1L1L4
4.1

Suppose α+β<vp(ab)\alpha + \beta < v_p(ab). Then α+β+1vp(ab)\alpha + \beta + 1 \le v_p(ab), so pα+β+1abp^{\alpha+\beta+1} \mid ab; fix cc with ab=pα+β+1c=pα+β(pc)ab = p^{\alpha+\beta+1}c = p^{\alpha+\beta}(pc), using the exponent law. Cancelling pα+β0p^{\alpha+\beta} \ne 0 against step 2.1 gives ab=pca'b' = pc, that is pabp \mid a'b', contradicting step 2.2.

step 2.1step 2.2step 3.1L1L2L4L5L7
5.1

Hence vp(ab)=α+βv_p(ab) = \alpha + \beta by totality and antisymmetry of the order on N\mathbb{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 n1n \ge 1 and any injective list p:rZp : r \to \mathbb{Z} of primes containing every prime divisor of nn, one has n=i<rpivpi(n)n = \prod_{i<r} p_i^{\,v_{p_i}(n)}; the exponents are determined by nn, and vq(n)=0v_q(n) = 0 for every prime qq outside the list

Statement

Powers are the natural powers of Powers gng^{n}: natural exponents in a monoid and integer exponents in a group, with g0=eg^{0} = e and finite products those of The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity, both taken in the commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) of (Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1. Call p:rZp : r \to \mathbb{Z} an injective list of primes when every pip_i is prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp) and pi=pjp_i = p_j forces i=ji = j (Injection, surjection, bijection).

Let nZn \in \mathbb{Z} with n1n \ge 1 and let p:rZp : r \to \mathbb{Z} be an injective list of primes such that every prime divisor of nn equals pip_i for some i<ri < r. Then, with vqv_q as in The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a:

  1. n  =  i<rpivpi(n)\displaystyle n \;=\; \prod_{i<r} p_i^{\,v_{p_i}(n)};
  2. vq(n)=0v_q(n) = 0 for every prime qq that is not among p0,,pr1p_0,\dots,p_{r-1};
  3. the exponents are determined by nn: if e:rNe : r \to \mathbb{N} and n=i<rpiein = \prod_{i<r} p_i^{\,e_i}, then ej=vpj(n)e_j = v_{p_j}(n) for every j<rj < r.

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

Facts & Assumptions

Given: The commutative monoid (Z,,1)(\mathbb{Z},\cdot,1) ((Z,,1)(\mathbb{Z}, \cdot, 1) is a commutative monoid whose group of units is {1,1}\{1, -1\}; equivalently u1u \mid 1 holds exactly for u=1u = 1 and u=1u = -1, Semigroup and monoid); and the property Q(r)Q(r): "for every n1n \ge 1 and every injective list p:rZp : r \to \mathbb{Z} of primes containing every prime divisor of nn, one has n=i<rpivpi(n)n = \prod_{i<r} p_i^{\,v_{p_i}(n)}".

[L1]

i<0gi=e\prod_{i<0} g_i = e and i<σ(t)gi=(i<tgi)gt\prod_{i<\sigma(t)} g_i = \bigl(\prod_{i<t} g_i\bigr) g_t; the value depends only on the entries named (The product g0g1gn1g_0 g_1 \cdots g_{n-1} of a finite list in a monoid, by recursion, with the empty product (n=0n = 0) equal to the identity).

[L3]

For a prime pp and nonzero aa: pk1p^{k} \ge 1 for every kk, so pk>0p^{k} > 0 and pk0p^{k} \ne 0; a=pvp(a)aa = p^{v_p(a)} a' with a0a' \ne 0 and pap \nmid a'; pkap^{k} \mid a exactly for kvp(a)k \le v_p(a); vp(a)1v_p(a) \ge 1 exactly when pap \mid a; vp(1)=0v_p(1) = 0; and vp(p)=1v_p(p) = 1 (For a prime pp and a nonzero integer aa: pvp(a)ap^{v_p(a)} \mid a and pvp(a)+1ap^{v_p(a)+1} \nmid a; pkap^{k} \mid a holds exactly for kvp(a)k \le v_p(a); vp(a)1v_p(a) \ge 1 exactly when pap \mid a; vp(1)=vp(1)=0v_p(1) = v_p(-1) = 0; and vp(p)=1v_p(p) = 1, The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a).

[L5]

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

[L7]

Induction on N\mathbb{N} (The principle of mathematical induction).

[L8]

On N\mathbb{N}: mnm \le n means m+c=nm + c = n for some cc (Order on the natural numbers); σ(k)=k+1\sigma(k) = k+1 and addition is commutative (Addition of natural numbers, Addition is commutative, The natural numbers N\mathbb{N} (von Neumann)); t<σ(t)t < \sigma(t) and i<σ(t)i < \sigma(t) exactly when iti \le t (On N\mathbb{N} the order is membership: m<n    mnm < n \iff m \in n); m<nm < n exactly when σ(m)n\sigma(m) \le n (Discreteness: σ(n)\sigma(n) is the immediate successor).

[L9]

Z\mathbb{Z} is a commutative ring; its order is total, antisymmetric and transitive, is compatible with addition, and positives are closed under multiplication; ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective and order preserving with image the nonnegative integers, ι(0)=0\iota(0) = 0, ι(1)=1\iota(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 qq and ww are primes with qwq \mid w, then qq is a positive divisor of ww (as q>1>0q > 1 > 0) other than 11, so q=wq = w. Consequently vq(w)=0v_q(w) = 0 whenever qwq \ne w are primes.

L3L5L9
1.2

Q(0)Q(0) holds: an empty list contains no prime, so nn has no prime divisor at all; if n>1n > 1 it would have one, so n=1n = 1, and i<0pivpi(n)=1=n\prod_{i<0} p_i^{\,v_{p_i}(n)} = 1 = n.

baseL1L5L9
1.3

Let tNt \in \mathbb{N} and assume Q(t)Q(t).

ih
1.4

Let n1n \ge 1 and let p:σ(t)Zp : \sigma(t) \to \mathbb{Z} be an injective list of primes containing every prime divisor of nn. Write π:=pt\pi := p_t, v:=vπ(n)v := v_{\pi}(n), and fix nn' with n=πvnn = \pi^{v} n', n0n' \ne 0 and πn\pi \nmid n'.

L3choose
2.1

For a prime ww and kNk \in \mathbb{N}: vw(wk)=kv_w(w^{k}) = k, and vq(wk)=0v_q(w^{k}) = 0 for every prime qwq \ne w. Both sets of kk for which these hold contain 00, since w0=1w^{0} = 1 and vu(1)=0v_u(1) = 0 for every prime uu; and if they hold at kk then, wkw^{k} and ww being nonzero, additivity gives vw(wσ(k))=vw(wkw)=vw(wk)+vw(w)=k+1=σ(k)v_w(w^{\sigma(k)}) = v_w(w^{k} w) = v_w(w^{k}) + v_w(w) = k + 1 = \sigma(k) and vq(wσ(k))=vq(wk)+vq(w)=0+0=0v_q(w^{\sigma(k)}) = v_q(w^{k}) + v_q(w) = 0 + 0 = 0. Induction finishes both.

step 1.1L2L3L4L7L8
2.2

n1n' \ge 1: πv1>0\pi^{v} \ge 1 > 0 and n>0n > 0, so n0n' \le 0 would make πvn0<n\pi^{v} n' \le 0 < n; hence n>0n' > 0, and a positive integer is 1\ge 1 because n=ι(j)n' = \iota(j) with j0j \ne 0, so 1=σ(0)j1 = \sigma(0) \le j.

step 1.4L3L8L9
3.1

Clause 3. Let p:rZp : r \to \mathbb{Z} be an injective list of primes, e:rNe : r \to \mathbb{N}, and M:=i<rpieiM := \prod_{i<r} p_i^{\,e_i}; we claim M1M \ge 1, that vpj(M)=ejv_{p_j}(M) = e_j for every j<rj < r, and that vq(M)=0v_q(M) = 0 for every prime qq off the list. Let TT be the set of rNr \in \mathbb{N} for which this holds for all such pp and ee. Then 0T0 \in T: the empty product is 11, which is 1\ge 1, has vq(1)=0v_q(1) = 0 for every prime qq, and imposes no condition on indices. Suppose rTr \in T and let p:σ(r)Zp : \sigma(r) \to \mathbb{Z} be injective with primes and e:σ(r)Ne : \sigma(r) \to \mathbb{N}. Writing M:=i<rpieiM' := \prod_{i<r} p_i^{\,e_i} we have M=MprerM = M' \cdot p_r^{\,e_r}, with M1>0M' \ge 1 > 0 and prer1>0p_r^{\,e_r} \ge 1 > 0, so M1>0M \ge 1 > 0 and both factors are nonzero; additivity then gives vu(M)=vu(M)+vu(prer)v_u(M) = v_u(M') + v_u(p_r^{\,e_r}) for every prime uu. Taking u=pju = p_j with j<rj < r gives ej+0=eje_j + 0 = e_j, since pjprp_j \ne p_r by injectivity; taking u=pru = p_r gives 0+er=er0 + e_r = e_r, since prp_r is off the list p0,,pr1p_0,\dots,p_{r-1}; and taking a prime uu off the whole list gives 0+0=00 + 0 = 0. So σ(r)T\sigma(r) \in T, and T=NT = \mathbb{N} by induction.

step 2.1L1L3L4L7L8L9
3.2

The restriction ptp \restriction t is an injective list of primes containing every prime divisor of nn'. Indeed if qq is prime with qnq \mid n' then qnq \mid n, since n=πvnn = \pi^{v} n'; so q=piq = p_i for some i<σ(t)i < \sigma(t); and qπ=ptq \ne \pi = p_t, because πn\pi \nmid n'; hence iti \ne t, and i<σ(t)i < \sigma(t) gives iti \le t, so i<ti < t.

step 1.4step 2.2L5L6L8
3.3

For i<ti < t we have vpi(n)=vpi(πv)+vpi(n)=0+vpi(n)=vpi(n)v_{p_i}(n) = v_{p_i}(\pi^{v}) + v_{p_i}(n') = 0 + v_{p_i}(n') = v_{p_i}(n'), using additivity on the nonzero factors πv\pi^{v} and nn', and step 2.1 with piπp_i \ne \pi, which holds by injectivity since i<ti < t.

step 2.1step 1.4step 2.2L3L4L8
4.1

By step 1.3 applied to nn' and ptp \restriction t: n=i<tpivpi(n)n' = \prod_{i<t} p_i^{\,v_{p_i}(n')}.

step 1.3step 2.2step 3.2
5.1

Therefore i<σ(t)pivpi(n)=(i<tpivpi(n))πvπ(n)=(i<tpivpi(n))πv=nπv=n\prod_{i<\sigma(t)} p_i^{\,v_{p_i}(n)} = \bigl(\prod_{i<t} p_i^{\,v_{p_i}(n)}\bigr) \cdot \pi^{\,v_{\pi}(n)} = \bigl(\prod_{i<t} p_i^{\,v_{p_i}(n')}\bigr) \cdot \pi^{v} = n' \pi^{v} = n, so Q(σ(t))Q(\sigma(t)) holds.

step 1.4step 4.1step 3.3L1L9
6.1

With step 1.2 as base, induction gives Q(r)Q(r) for every rNr \in \mathbb{N}, which is clause 1. Clause 2 follows because a prime qq off the list does not divide nn — otherwise it would be a prime divisor of nn and hence on the list — so vq(n)=0v_q(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 aa and bb: aba \mid b if and only if vp(a)vp(b)v_p(a) \le v_p(b) for every prime pp

Statement

Let a,bZa, b \in \mathbb{Z} with a1a \ge 1 and b1b \ge 1, and let vpv_p be the pp-adic valuation of The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a. Then

abvp(a)vp(b)  for every prime p.a \mid b \qquad \Longleftrightarrow \qquad v_p(a) \le v_p(b) \ \text{ for every prime } p .

Both valuations are defined, since aa and bb are nonzero.

Facts & Assumptions

Given: The property R(k)R(k): "for every b1b \ge 1, if ι(k)1\iota(k) \ge 1 and vp(ι(k))vp(b)v_p(\iota(k)) \le v_p(b) for every prime pp, then ι(k)b\iota(k) \mid b", where ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is the embedding of The naturals embed in the integers.

[L4]

Strong induction on N\mathbb{N} (Strong (complete) induction).

[L6]

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

[L7]

On N\mathbb{N}: mnm \le n means m+c=nm + c = n for some cc, so mm+nm \le m + n always (Order on the natural numbers, Addition of natural numbers); m+xm+ym + x \le m + y holds exactly when xyx \le y (Order is compatible with addition); m<nm < n exactly when σ(m)n\sigma(m) \le n, and 1=σ(0)1 = \sigma(0) (Discreteness: σ(n)\sigma(n) is the immediate successor, The natural numbers N\mathbb{N} (von Neumann)).

[L8]

Z\mathbb{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]

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

Proof

technique · induction
1.1

0<10 < 1, since 1=ι(1)1 = \iota(1) is nonnegative and differs from 0=ι(0)0 = \iota(0); and every integer x>0x > 0 satisfies x1x \ge 1, because x=ι(j)x = \iota(j) with j0j \ne 0, so 1=σ(0)j1 = \sigma(0) \le j and ι\iota preserves the order.

L7L9
1.2

The forward implication. Suppose aba \mid b and fix cc with b=acb = ac. Then c0c \ne 0, since b0b \ne 0, so [L1] gives vp(b)=vp(a)+vp(c)vp(a)v_p(b) = v_p(a) + v_p(c) \ge v_p(a) for every prime pp.

L1L5L7L8
1.3

Let kNk \in \mathbb{N} and assume R(j)R(j) for every j<kj < k.

ih
2.1

R(0)R(0) holds vacuously: ι(0)=0\iota(0) = 0 and 010 \ge 1 is false.

basestep 1.1L9
2.2

Put a:=ι(k)a := \iota(k) and suppose a1a \ge 1, and let b1b \ge 1 satisfy vp(a)vp(b)v_p(a) \le v_p(b) for every prime pp. If a=1a = 1 then aba \mid b, so assume a>1a > 1.

step 1.1L5L8
3.1

Fix a prime qq with qaq \mid a, and fix a1a_1 with a=qa1a = q a_1. Then vq(a)1v_q(a) \ge 1, hence vq(b)1v_q(b) \ge 1 by hypothesis, so qbq \mid b; fix b1b_1 with b=qb1b = q b_1.

step 2.2L2L3L5choose
4.1

a11a_1 \ge 1 and b11b_1 \ge 1: they are nonzero because aa and bb are, and if a1<0a_1 < 0 then qa1<0q a_1 < 0 contradicting a>0a > 0, so a1>0a_1 > 0 and hence a11a_1 \ge 1; the same argument applies to b1b_1.

step 1.1step 3.1L6L8
5.1

a1<aa_1 < a: since q>1q > 1 we have q1>0q - 1 > 0, and a1>0a_1 > 0, so aa1=(q1)a1>0a - a_1 = (q-1)a_1 > 0.

step 3.1step 4.1L3L8
5.2

For every prime pp: vp(q)+vp(a1)=vp(a)vp(b)=vp(q)+vp(b1)v_p(q) + v_p(a_1) = v_p(a) \le v_p(b) = v_p(q) + v_p(b_1), so vp(a1)vp(b1)v_p(a_1) \le v_p(b_1) by cancellation of vp(q)v_p(q) in the order of N\mathbb{N}.

step 2.2step 3.1step 4.1L1L7
6.1

Write a1=ι(j)a_1 = \iota(j); then j<kj < k, since otherwise kjk \le j and the order-preserving ι\iota would give aa1a \le a_1, contradicting step 5.1. By step 1.3 applied to jj, together with steps 4.1 and 5.2, a1b1a_1 \mid b_1.

step 1.3step 4.1step 5.1step 5.2L9
7.1

Hence b=qb1=q(a1c)=(qa1)c=acb = q b_1 = q(a_1 c) = (q a_1) c = a c for the cc with b1=a1cb_1 = a_1 c, so aba \mid b and R(k)R(k) holds.

step 3.1step 6.1L5L8
8.1

Steps 2.2 and 7.1 cover both possibilities for aa, so RR at kk follows from RR below kk; with step 2.1, strong induction gives R(k)R(k) for every kk. Since a positive integer aa is ι(k)\iota(k) for a unique kk, 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 aa and bb and every prime pp: vp(gcd(a,b))=min{vp(a),vp(b)}v_p(\gcd(a,b)) = \min\{v_p(a), v_p(b)\} and vp(lcm(a,b))=max{vp(a),vp(b)}v_p(\operatorname{lcm}(a,b)) = \max\{v_p(a), v_p(b)\}; so the exponent-wise greatest common divisor is the gcd\gcd of the divisibility page and not a second notion

Statement

Let a,bZa, b \in \mathbb{Z} with a1a \ge 1 and b1b \ge 1, write g:=gcd(a,b)g := \gcd(a,b) (Common divisor, and the greatest common divisor gcd(a,b)\gcd(a,b), with the convention gcd(0,0):=0\gcd(0,0) := 0) and :=lcm(a,b)\ell := \operatorname{lcm}(a,b) (Common multiple, and the least common multiple lcm(a,b)\operatorname{lcm}(a,b), taken to be 00 when a=0a = 0 or b=0b = 0), and let pp be any prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp). Then g1g \ge 1 and 1\ell \ge 1, so all four valuations below are defined (The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a), and

  1. vp(g)=min{vp(a),vp(b)}v_p(g) = \min\{\, v_p(a),\, v_p(b) \,\};
  2. vp()=max{vp(a),vp(b)}v_p(\ell) = \max\{\, v_p(a),\, v_p(b) \,\},

the minimum and maximum being taken in N\mathbb{N}, whose order is total (\le is a linear order on N\mathbb{N}).

  1. The exponent recipe does not define a second notion. If d1d \ge 1 satisfies vp(d)=min{vp(a),vp(b)}v_p(d) = \min\{v_p(a),v_p(b)\} for every prime pp, then d=gcd(a,b)d = \gcd(a,b); and if d1d \ge 1 satisfies vp(d)=max{vp(a),vp(b)}v_p(d) = \max\{v_p(a),v_p(b)\} for every prime pp, then d=lcm(a,b)d = \operatorname{lcm}(a,b).

Facts & Assumptions

Given: Integers a,b1a, b \ge 1; g:=gcd(a,b)g := \gcd(a,b), :=lcm(a,b)\ell := \operatorname{lcm}(a,b); and, for a prime pp, mp:=min{vp(a),vp(b)}m_p := \min\{v_p(a), v_p(b)\} and Mp:=max{vp(a),vp(b)}M_p := \max\{v_p(a), v_p(b)\}.

[L2]

For u,vu, v both nonzero, lcm(u,v)\operatorname{lcm}(u,v) is the least positive common multiple of uu and vv; in particular ulcm(u,v)u \mid \operatorname{lcm}(u,v) and vlcm(u,v)v \mid \operatorname{lcm}(u,v) (Common multiple, and the least common multiple lcm(a,b)\operatorname{lcm}(a,b), taken to be 00 when a=0a = 0 or b=0b = 0).

[L3]

gcd(u,v)lcm(u,v)=uv\gcd(u,v) \cdot \operatorname{lcm}(u,v) = |uv|, and every common multiple of uu and vv is a multiple of lcm(u,v)\operatorname{lcm}(u,v) (Every common multiple of aa and bb is a multiple of lcm(a,b)\operatorname{lcm}(a,b), and gcd(a,b)lcm(a,b)=ab\gcd(a,b) \cdot \operatorname{lcm}(a,b) = |ab|).

[L4]

For positive u,wu, w: uwu \mid w exactly when vq(u)vq(w)v_q(u) \le v_q(w) for every prime qq (For positive integers aa and bb: aba \mid b if and only if vp(a)vp(b)v_p(a) \le v_p(b) for every prime pp).

[L9]

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

[L10]

Z\mathbb{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]

ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective and order preserving with image the nonnegative integers, ι(0)=0\iota(0) = 0, ι(1)=1\iota(1) = 1 (The naturals embed in the integers).

Proof

technique · direct
1.1

0<10 < 1, and every integer x>0x > 0 satisfies x1x \ge 1: x=ι(j)x = \iota(j) with j0j \ne 0, so 1=σ(0)j1 = \sigma(0) \le j and ι\iota preserves the order.

L9L11
1.2

For naturals x,yx, y the minimum and maximum exist by totality, and min{x,y}+max{x,y}=x+y\min\{x,y\} + \max\{x,y\} = x + y: if xyx \le y the left side is x+yx + y, and if yxy \le x it is y+x=x+yy + x = x + y.

L9
2.1

a>0a > 0 and b>0b > 0, so a0a \ne 0, b0b \ne 0 and (a,b)(0,0)(a,b) \ne (0,0); hence g1g \ge 1, and \ell is the least positive common multiple of aa and bb, so 1\ell \ge 1. All of a,b,g,a, b, g, \ell are nonzero and their valuations are defined.

step 1.1L1L2L10
3.1

gag \mid a and gbg \mid b, so vp(g)vp(a)v_p(g) \le v_p(a) and vp(g)vp(b)v_p(g) \le v_p(b) by [L4]; hence vp(g)mpv_p(g) \le m_p.

step 2.1step 1.2L1L4
3.2

Conversely mpvp(a)m_p \le v_p(a) and mpvp(b)m_p \le v_p(b), so pmpap^{m_p} \mid a and pmpbp^{m_p} \mid b by [L6]; thus pmpp^{m_p} is a common divisor of aa and bb and therefore divides gg. Since g0g \ne 0, [L6] applied to gg gives mpvp(g)m_p \le v_p(g).

step 2.1step 1.2L1L6
3.3

ab>0ab > 0, so ab=ab|ab| = ab, and [L3] gives g=abg \ell = ab. Applying [L5] to the nonzero pairs (g,)(g,\ell) and (a,b)(a,b) gives vp(g)+vp()=vp(ab)=vp(a)+vp(b)v_p(g) + v_p(\ell) = v_p(ab) = v_p(a) + v_p(b).

step 2.1L3L5L7L10
4.1

Clause 1: vp(g)=mpv_p(g) = m_p, by antisymmetry of the order on N\mathbb{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+Mpm_p + v_p(\ell) = v_p(a) + v_p(b) = m_p + M_p, so vp()=Mpv_p(\ell) = M_p by cancellation of addition on N\mathbb{N}.

step 1.2step 4.1step 3.3L9
5.2

Clause 3, first half. Let d1d \ge 1 satisfy vp(d)=mpv_p(d) = m_p for every prime pp. Then vp(d)=vp(g)v_p(d) = v_p(g) for every pp by step 4.1, so dgd \mid g and gdg \mid d by [L4], hence d=g|d| = |g|; both are positive, so d=gd = 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()v_p(d) = M_p = v_p(\ell) for every pp forces dd \mid \ell and d\ell \mid d, hence d=d = \ell.

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 pp-adic valuation extends to the nonzero rationals by vp(a/b):=vp(a)vp(b)Zv_p(a/b) := v_p(a) - v_p(b) \in \mathbb{Z}, independently of the representation; it satisfies vp(xy)=vp(x)+vp(y)v_p(xy) = v_p(x) + v_p(y), and vp(x+y)min{vp(x),vp(y)}v_p(x+y) \ge \min\{v_p(x), v_p(y)\} whenever xx, yy and x+yx+y are nonzero

Statement

Let pp be a prime (Prime and composite integers: pp is prime when p>1p > 1 and its only positive divisors are 11 and pp). A rational is a class [(a,b)][(a,b)] of pairs of integers with b0b \ne 0, written a/ba/b (The rationals as equivalence classes of pairs of integers), and [(a,b)]0[(a,b)] \ne 0 holds exactly when a0a \ne 0 (Arithmetic on the rationals). Write ι:NZ\iota : \mathbb{N} \to \mathbb{Z} for the embedding of The naturals embed in the integers and j:ZQj : \mathbb{Z} \to \mathbb{Q}, j(k)=[(k,1)]j(k) = [(k,1)], for that of The integers embed in the rationals.

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

vp(x)  :=  ι(vp(a))ι(vp(b))    Z,v_p(x) \;:=\; \iota\bigl(v_p(a)\bigr) - \iota\bigl(v_p(b)\bigr) \;\in\; \mathbb{Z},

with vpv_p on nonzero integers as in The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a. Then:

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

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

Facts & Assumptions

Given: A prime pp; nonzero rationals with representatives x=[(a,b)]x = [(a,b)], y=[(c,d)]y = [(c,d)], where a,b,c,dZa, b, c, d \in \mathbb{Z} are all nonzero.

[L1]

[(a,b)]=[(c,d)][(a,b)] = [(c,d)] exactly when ad=cbad = cb; Q\mathbb{Q} consists of such classes with b0b \ne 0 (The rationals as equivalence classes of pairs of integers).

[L2]

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

[L3]

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

[L4]

For a prime pp and nonzero integers u,wu, w: uw0uw \ne 0 and vp(uw)=vp(u)+vp(w)v_p(uw) = v_p(u) + v_p(w); and vp(u+w)min{vp(u),vp(w)}v_p(u+w) \ge \min\{v_p(u), v_p(w)\} when uu, ww and u+wu+w are nonzero (vp(ab)=vp(a)+vp(b)v_p(ab) = v_p(a) + v_p(b) for nonzero integers a,ba, b, and vp(a+b)min{vp(a),vp(b)}v_p(a+b) \ge \min\{v_p(a), v_p(b)\} whenever aa, bb and a+ba+b are all nonzero).

[L6]

ι\iota is injective and preserves addition, multiplication and order, with image the nonnegative integers and ι(0)=0\iota(0) = 0, ι(1)=1\iota(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\mathbb{Z} is a commutative ring: addition and multiplication are associative and commutative, x+0=xx + 0 = x, and every xx has an additive inverse x-x, with (x)=x-(-x) = x and (u+w)=(u)+(w)-(u+w) = (-u)+(-w); we write uwu - w for u+(w)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\mathbb{Z} is total, antisymmetric and transitive and is compatible with addition, so uwu \le w implies u+zw+zu + z \le w + z (The integers form a totally ordered ring, Order on the integers).

[L10]

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

Proof

technique · direct
1.1

If x=[(a,b)]x = [(a,b)] is a nonzero rational then a0a \ne 0 and b0b \ne 0, so vp(a)v_p(a) and vp(b)v_p(b) are both defined.

L1L2
2.1

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

step 1.1L1L4L6L7L8
2.2

Clause 4. Assume xx, yy and x+yx+y are nonzero. Then x+y=[(ad+cb,bd)]x + y = [(ad+cb,\, bd)] with bd0bd \ne 0, and ad+cb0ad + cb \ne 0 because x+y0x+y \ne 0; also ad0ad \ne 0 and cb0cb \ne 0.

step 1.1L1L2L7
3.1

Clause 2. For a nonzero integer aa, j(a)=[(a,1)]j(a) = [(a,1)], so vp(j(a))=ι(vp(a))ι(vp(1))=ι(vp(a))0=ι(vp(a))v_p(j(a)) = \iota(v_p(a)) - \iota(v_p(1)) = \iota(v_p(a)) - 0 = \iota(v_p(a)).

step 2.1L3L5L6L8
3.2

Clause 3. xy=[(ac,bd)]xy = [(ac, bd)], with ac0ac \ne 0 and bd0bd \ne 0, so vp(xy)=ι(vp(ac))ι(vp(bd))=ι(vp(a)+vp(c))ι(vp(b)+vp(d))v_p(xy) = \iota(v_p(ac)) - \iota(v_p(bd)) = \iota(v_p(a) + v_p(c)) - \iota(v_p(b) + v_p(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)}v_p(ad + cb) \ge \min\{v_p(ad),\, v_p(cb)\} = \min\{v_p(a) + v_p(d),\ v_p(c) + v_p(b)\}; applying the order-preserving injection ι\iota turns this into the same inequality between the corresponding integers.

step 2.2L4L6L10
4.1

Since ι\iota preserves addition, that value is (ι(vp(a))+ι(vp(c)))(ι(vp(b))+ι(vp(d)))\bigl(\iota(v_p(a)) + \iota(v_p(c))\bigr) - \bigl(\iota(v_p(b)) + \iota(v_p(d))\bigr), which rearranges in the commutative ring Z\mathbb{Z} to (ι(vp(a))ι(vp(b)))+(ι(vp(c))ι(vp(d)))=vp(x)+vp(y)\bigl(\iota(v_p(a)) - \iota(v_p(b))\bigr) + \bigl(\iota(v_p(c)) - \iota(v_p(d))\bigr) = v_p(x) + v_p(y).

step 3.2L6L8
4.2

Subtracting the integer ι(vp(b))+ι(vp(d))=ι(vp(bd))\iota(v_p(b)) + \iota(v_p(d)) = \iota(v_p(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)}v_p(x+y) \ge \min\{\iota(v_p(a)) - \iota(v_p(b)),\ \iota(v_p(c)) - \iota(v_p(d))\} = \min\{v_p(x), v_p(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 22-adic example. The published The 22-adic absolute value gives an ultrametric on Q\mathbb{Q}, in which every triangle is isosceles and every point of a ball is a centre records that the general pp-adic machinery is available, but nevertheless develops p=2p=2 from parity alone. The present lemma supplies the general algebraic extension: representation-independence is exactly the assertion that ad=cbad=cb forces the two candidate values to agree.

  • Nothing metric is stated here, deliberately. The pp-adic absolute value xp=pvp(x)|x|_p = p^{-v_p(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\mathbb{Z} under addition, satisfying the ultrametric inequality on valuations.

  • The values are integers, not naturals. vp(1/p)=1v_p(1/p) = -1, so the extension genuinely leaves N\mathbb{N}; that is why the two integer valuations are transported along ι\iota before being subtracted. As on Z\mathbb{Z}, the value at 00 is left undefined (The pp-adic valuation vp(a)v_p(a) of a nonzero integer: the greatest kNk \in \mathbb{N} with pkap^{k} \mid a).

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

A rational root of xk=mx^{k} = m is an integer: if k1k \ge 1, mZm \in \mathbb{Z}, xQx \in \mathbb{Q} and xkx^{k} is the image of mm, then xx is the image of an integer

Statement

Q\mathbb{Q} is a field (The rationals form a field, Field), so (Q,,1)(\mathbb{Q},\cdot,1) is a commutative monoid and natural powers xkx^{k} are defined in it by Powers gng^{n}: natural exponents in a monoid and integer exponents in a group, with g0=eg^{0} = e. Write j:ZQj : \mathbb{Z} \to \mathbb{Q}, j(u)=[(u,1)]j(u) = [(u,1)], for the embedding of The integers embed in the rationals.

Let kNk \in \mathbb{N} with k1k \ge 1, let mZm \in \mathbb{Z}, and let xQx \in \mathbb{Q} satisfy

xk  =  j(m).x^{k} \;=\; j(m).

Then x=j(z)x = j(z) for some zZz \in \mathbb{Z}.

Facts & Assumptions

Given: kNk \in \mathbb{N} with k1k \ge 1, mZm \in \mathbb{Z}, and xQx \in \mathbb{Q} with xk=j(m)x^{k} = j(m).

[L1]

A rational is a class [(u,w)][(u,w)] with u,wZu, w \in \mathbb{Z}, w0w \ne 0, and [(u,w)]=[(u,w)][(u,w)] = [(u',w')] exactly when uw=uwu w' = u' w (The rationals as equivalence classes of pairs of integers).

[L2]

[(u,w)][(u,w)]=[(uu,ww)][(u,w)] \cdot [(u',w')] = [(uu', ww')], 0=[(0,1)]0 = [(0,1)], 1=[(1,1)]1 = [(1,1)], and [(u,w)]0[(u,w)] \ne 0 exactly when u0u \ne 0 (Arithmetic on the rationals).

[L3]

Q\mathbb{Q} is a field: multiplication is associative and commutative on all of Q\mathbb{Q} with y1=yy \cdot 1 = y and y0=0y \cdot 0 = 0 (The rationals form a field, Field), so (Q,,1)(\mathbb{Q},\cdot,1) is a commutative monoid (Semigroup and monoid).

[L4]

g0=eg^{0} = e and gσ(t)=gtgg^{\sigma(t)} = g^{t} \cdot g in a monoid (Powers gng^{n}: natural exponents in a monoid and integer exponents in a group, with g0=eg^{0} = e).

[L5]

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

[L6]

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

[L9]

If qq is prime and quvq \mid uv then quq \mid u or qvq \mid v (Euclid's lemma: if pp is prime and pabp \mid ab then pap \mid a or pbp \mid b).

[L12]

Induction on N\mathbb{N} (The principle of mathematical induction); every natural 0\ne 0 is a successor (Every nonzero natural number is a successor); m<nm < n exactly when σ(m)n\sigma(m) \le n, and 1=σ(0)1 = \sigma(0) (Discreteness: σ(n)\sigma(n) is the immediate successor, The natural numbers N\mathbb{N} (von Neumann), Order on the natural numbers).

[L13]

A product of two nonzero integers is nonzero (The integers have no zero divisors; multiplicative cancellation); Z\mathbb{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); ι:NZ\iota : \mathbb{N} \to \mathbb{Z} is injective and order preserving with image the nonnegative integers (The naturals embed in the integers).

Proof

technique · direct
1.1

0<10 < 1 in Z\mathbb{Z}, and every integer y>0y > 0 satisfies y1y \ge 1: y=ι(t)y = \iota(t) with t0t \ne 0, so 1=σ(0)t1 = \sigma(0) \le t and ι\iota preserves the order.

L12L13
1.2

For integers u,wu, w with w0w \ne 0 and every tNt \in \mathbb{N}: wt0w^{t} \ne 0 and [(u,w)]t=[(ut,wt)][(u,w)]^{t} = [(u^{t}, w^{t})], powers on the left in Q\mathbb{Q} and on the right in Z\mathbb{Z}. The set of tt for which this holds contains 00, since w0=10w^{0} = 1 \ne 0 and [(u,w)]0=1=[(1,1)]=[(u0,w0)][(u,w)]^{0} = 1 = [(1,1)] = [(u^{0}, w^{0})]; and if it holds at tt then wσ(t)=wtw0w^{\sigma(t)} = w^{t} w \ne 0 and [(u,w)]σ(t)=[(ut,wt)][(u,w)]=[(utu,wtw)]=[(uσ(t),wσ(t))][(u,w)]^{\sigma(t)} = [(u^{t},w^{t})] \cdot [(u,w)] = [(u^{t}u,\, w^{t}w)] = [(u^{\sigma(t)}, w^{\sigma(t)})]. Induction finishes it.

L1L2L4L12L13
1.3

Suppose first x=0x = 0. Since k1k \ge 1, write k=σ(t)k = \sigma(t); then xk=xt0=0=j(0)x^{k} = x^{t} \cdot 0 = 0 = j(0), so j(m)=j(0)j(m) = j(0) and m=0m = 0 by injectivity of jj; and x=0=j(0)x = 0 = j(0) is the image of an integer.

L3L4L5L12
1.4

Suppose instead x0x \ne 0, and write x=[(a,b)]x = [(a,b)] with b0b \ne 0; then a0a \ne 0. If b<0b < 0, replace (a,b)(a,b) by (a,b)(-a,-b), which represents the same rational because a(b)=(a)ba(-b) = (-a)b; so we may assume b>0b > 0.

L1L2L13choose
2.1

For a prime qq, an integer uu and t1t \ge 1: if qutq \mid u^{t} then quq \mid u. Let SS be the set of tt for which this implication holds; 0S0 \in S vacuously, since t1t \ge 1 fails there. Suppose tSt \in S and quσ(t)=utuq \mid u^{\sigma(t)} = u^{t} u. By [L9] either qutq \mid u^{t} or quq \mid u; in the second case we are done, and in the first, if t1t \ge 1 then tSt \in S gives quq \mid u, while if t=0t = 0 then ut=1u^{t} = 1 and q1q \mid 1 is impossible for a prime, since q>1>0>1q > 1 > 0 > -1 would then be contradicted. So σ(t)S\sigma(t) \in S and S=NS = \mathbb{N}.

step 1.1L4L9L10L12L13L14
2.2

Put d:=gcd(a,b)d := \gcd(a,b); since a0a \ne 0 we have d1>0d \ge 1 > 0, so d0d \ne 0. Put a1:=a/da_1 := a/d and b1:=b/db_1 := b/d, so that a=da1a = d a_1, b=db1b = d b_1 and gcd(a1,b1)=1\gcd(a_1,b_1) = 1.

step 1.1step 1.4L6L7L13
3.1

a10a_1 \ne 0 and b1>0b_1 > 0: if a1=0a_1 = 0 then a=0a = 0, and if b10b_1 \le 0 then b=db10b = d b_1 \le 0, both contrary to step 1.4. Moreover [(a,b)]=[(a1,b1)][(a,b)] = [(a_1,b_1)], because ab1=(da1)b1=a1(db1)=a1ba b_1 = (d a_1) b_1 = a_1 (d b_1) = a_1 b.

step 1.4step 2.2L1L13
4.1

By step 1.2, xk=[(a1,b1)]k=[(a1k,b1k)]x^{k} = [(a_1,b_1)]^{k} = [(a_1^{k}, b_1^{k})], and this equals j(m)=[(m,1)]j(m) = [(m,1)], so a1k1=mb1ka_1^{k} \cdot 1 = m\, b_1^{k}, that is a1k=mb1ka_1^{k} = m\, b_1^{k}.

step 1.2step 3.1L1L5L13
5.1

Suppose b1>1b_1 > 1 and fix a prime qq with qb1q \mid b_1. Since k1k \ge 1, write k=σ(t)k = \sigma(t); then b1k=b1tb1b_1^{k} = b_1^{t} b_1, so b1b1kb_1 \mid b_1^{k} and hence qb1kq \mid b_1^{k} by transitivity. Then qmb1k=a1kq \mid m\, b_1^{k} = a_1^{k}, so qa1q \mid a_1 by step 2.1.

step 2.1step 4.1L4L10L11L12
6.1

So qq is a common divisor of a1a_1 and b1b_1, which are coprime, hence q=1q = 1 or q=1q = -1 by [L8] and [L14]; but q>1>0>1q > 1 > 0 > -1, a contradiction. Therefore b11b_1 \le 1, and b1>0b_1 > 0 gives b11b_1 \ge 1, so b1=1b_1 = 1.

step 1.1step 2.2step 3.1step 5.1L8L10L13L14
7.1

Hence x=[(a1,1)]=j(a1)x = [(a_1,1)] = j(a_1) 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