p-adic norm #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4.
This file defines the p-adic norm on ℚ.
The p-adic valuation on ℚ is the difference of the multiplicities of p in the numerator and
denominator of q. This function obeys the standard properties of a valuation, with the appropriate
assumptions on p.
The valuation induces a norm on ℚ. This norm is a nonarchimedean absolute value.
It takes values in {0} ∪ {1/p^k | k ∈ ℤ}.
Notations #
This file uses the local notation /. for rat.mk.
Implementation notes #
Much, but not all, of this file assumes that p is prime. This assumption is inferred automatically
by taking [fact p.prime] as a type class argument.
References #
- F. Q. Gouvêa, p-adic numbers
- R. Y. Lewis, A formal proof of Hensel's lemma over the p-adic integers
- https://en.wikipedia.org/wiki/P-adic_number
Tags #
p-adic, p adic, padic, norm, valuation
If q ≠ 0, the p-adic norm of a rational q is p ^ -padic_val_rat p q.
If q = 0, the p-adic norm of q is 0.
Equations
- padic_norm p q = ite (q = 0) 0 (↑p ^ -padic_val_rat p q)
Instances for padic_norm
Unfolds the definition of the p-adic norm of q when q ≠ 0.
The p-adic norm is nonnegative.
The p-adic norm of 0 is 0.
The p-adic norm of 1 is 1.
The p-adic norm of p is p⁻¹ if p > 1.
See also padic_norm.padic_norm_p_of_prime for a version assuming p is prime.
The p-adic norm of p is p⁻¹ if p is prime.
See also padic_norm.padic_norm_p for a version assuming 1 < p.
The p-adic norm of p is less than 1 if 1 < p.
See also padic_norm.padic_norm_p_lt_one_of_prime for a version assuming p is prime.
The p-adic norm of p is less than 1 if p is prime.
See also padic_norm.padic_norm_p_lt_one for a version assuming 1 < p.
padic_norm p q takes discrete values p ^ -z for z : ℤ.
padic_norm p is symmetric.
If q ≠ 0, then padic_norm p q ≠ 0.
If the p-adic norm of q is 0, then q is 0.
The p-adic norm is multiplicative.
The p-adic norm respects division.
The p-adic norm of an integer is at most 1.
The p-adic norm is nonarchimedean: the norm of p + q is at most the max of the norm of p
and the norm of q.
The p-adic norm respects the triangle inequality: the norm of p + q is at most the norm of
p plus the norm of q.
The p-adic norm of a difference is at most the max of each component. Restates the archimedean
property of the p-adic norm.
If the p-adic norms of q and r are different, then the norm of q + r is equal to the max
of the norms of q and r.
The p-adic norm is an absolute value: positive-definite and multiplicative, satisfying the
triangle inequality.