p-adic norm #
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 ∈ ℤ}.
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][gouvea1997]
- [R. Y. Lewis, A formal proof of Hensel's lemma over the p-adic integers][lewis2019]
Tags #
p-adic, p adic, padic, norm, valuation
Unfolds the definition of the p
-adic norm of q
when q ≠ 0
.
The p
-adic norm of p
is p⁻¹
if p > 1
.
See also padicNorm.padicNorm_p_of_prime
for a version assuming p
is prime.
The p
-adic norm of p
is p⁻¹
if p
is prime.
See also padicNorm.padicNorm_p
for a version assuming 1 < p
.
The p
-adic norm of p
is less than 1
if 1 < p
.
See also padicNorm.padicNorm_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 padicNorm.padicNorm_p_lt_one
for a version assuming 1 < p
.
The p
-adic norm is an absolute value: positive-definite and multiplicative, satisfying the
triangle inequality.
Equations
- (_ : IsAbsoluteValue (padicNorm p)) = (_ : IsAbsoluteValue (padicNorm p))