Alphabeta Math
DefinitionDefinition: AI-adaptedProof: Not applicableSession-authored (Fable 5 assisted)judge pass (z-ai/glm-5.2)audited 2026-07-28
How statement and proof provenance work

The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.

  • Literature-sourced — the exact statement appears in a cited source; only wording and notation differ.
  • AI-adapted — a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
  • AI-generated — a genuinely novel statement formulated by AI, with no source for the claim itself.

These labels describe origin, not correctness: citations and verification chips remain separate evidence.

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

Depends on

Used by

Dependency tree · next 3 levels

Direct dependencies and their dependencies through the next three levels: 70 results over 24 levels. An arrow runs from a result to what uses it, and this result sits at the bottom with a heavier outline. Click the chart to enlarge it.

Sources