Alphabeta Math
DefinitionDefinition: AI-adaptedProof: Not applicablejudge pass (z-ai/glm-5.2)audited 2026-07-28
How statement and proof provenance work

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

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

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

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

Definition

Let p be a prime (Prime and composite integers: p is prime when p>1 and its only positive divisors are 1 and p) and let a∈Z with a≠0. Powers pk for k∈N are the natural powers of Powers gn: natural exponents in a monoid and integer exponents in a group, with g0=e taken in the commutative monoid (Z,⋅,1) of (Z,⋅,1) is a commutative monoid whose group of units is {1,−1}; equivalently u∣1 holds exactly for u=1 and u=−1 and Semigroup and monoid, so that

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

Put

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

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

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

the greatest k∈N with pk∣a.

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

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

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

The set is bounded. Let k∈E(p,a). Then pk∣a with a≠0, so ∣pk∣≤∣a∣ (If d∣a and a≠0 then d≠0 and ∣d∣≤∣a∣; hence the set of divisors of a nonzero integer is bounded above by ∣a∣); and pk≥1>0 gives ∣pk∣=pk (The absolute value ∣a∣ of an integer, Absolute value in Z: ∣a∣≥0; ∣a∣=0 exactly when a=0; ∣−a∣=∣a∣; ∣ab∣=∣a∣ ∣b∣; −∣a∣≤a≤∣a∣; and ∣a∣≤c exactly when −c≤a≤c). Combining with the previous paragraph, ι(k)<pk≤∣a∣. So the set of integers ι[E(p,a)]={ ι(k):k∈E(p,a) } is nonempty and bounded above by ∣a∣, hence has a unique greatest element (A nonempty set of integers bounded above has a greatest element, and a nonempty set of integers bounded below has a least element). That greatest element lies in the set, so it is ι(k0) for some k0∈E(p,a); and since ι is injective and preserves the order in both directions, k0 is the greatest element of E(p,a) and is unique. We set vp(a):=k0.

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

Remarks

Depends on

Used by

Dependency tree · two levels

55 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources