p-adic numbers #
This file defines the p-adic numbers (rationals) ℚ_[p] as
the completion of ℚ with respect to the p-adic norm.
We show that the p-adic norm on ℚ extends to ℚ_[p], that ℚ is embedded in ℚ_[p],
and that ℚ_[p] is Cauchy complete.
Important definitions #
Padic: the type ofp-adic numberspadicNormE: the rational-valuedp-adic norm onℚ_[p]Padic.addValuation: the additivep-adic valuation onℚ_[p], with values inWithTop ℤ
Notation #
We introduce the notation ℚ_[p] for the p-adic numbers.
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.
We use the same concrete Cauchy sequence construction that is used to construct ℝ.
ℚ_[p] inherits a field structure from this construction.
The extension of the norm on ℚ to ℚ_[p] is not analogous to extending the absolute value to
ℝ and hence the proof that ℚ_[p] is complete is different from the proof that ℝ is complete.
padicNormE is the rational-valued p-adic norm on ℚ_[p].
To instantiate ℚ_[p] as a normed field, we must cast this into an ℝ-valued norm.
The ℝ-valued norm, using notation ‖ ‖ from normed spaces,
is the canonical representation of this norm.
simp prefers padicNorm to padicNormE when possible.
Since padicNormE and ‖ ‖ have different types, simp does not rewrite one to the other.
Coercions from ℚ to ℚ_[p] are set up to work with the norm_cast tactic.
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]
- https://en.wikipedia.org/wiki/P-adic_number
Tags #
p-adic, p adic, padic, norm, valuation, cauchy, completion, p-adic completion
The p-adic valuation on rationals, sending p to (exp (-1) : ℤᵐ⁰)
Instances For
The p-adic valuation on integers, sending p to (exp (-1) : ℤᵐ⁰)
Instances For
The type of Cauchy sequences of rationals with respect to the p-adic norm.
Instances For
For all n ≥ stationaryPoint f hf, the p-adic norm of f n is the same.
Instances For
Since the norm of the entries of a Cauchy sequence is eventually stationary, we can lift the norm to sequences.
Instances For
An auxiliary lemma for manipulating sequence indices.
An auxiliary lemma for manipulating sequence indices.
An auxiliary lemma for manipulating sequence indices.
The rational-valued p-adic norm on ℚ_[p] is lifted from the norm on Cauchy sequences. The
canonical form of this function is the normed space instance, with notation ‖ ‖.
Instances For
Theorems about padicNormE are named with a ' so the names do not conflict with the
equivalent theorems about norm (‖ ‖).
Theorems about padicNormE are named with a ' so the names do not conflict with the
equivalent theorems about norm (‖ ‖).
limSeq f, for f a Cauchy sequence of p-adic numbers, is a sequence of rationals with the
same limit point as f.
Instances For
ratNorm q, for a p-adic number q is the p-adic norm of q, as rational number.
The lemma padicNormE.eq_ratNorm asserts ‖q‖ = ratNorm q.
Instances For
Valuation on ℚ_[p] #
Padic.valuation lifts the p-adic valuation on rationals to ℚ_[p].
Instances For
The additive p-adic valuation on ℚ_[p], with values in WithTop ℤ.
Instances For
The p-adic valuation on ℚ_[p], as a Valuation, bundled Padic.valuation.
Instances For
The additive p-adic valuation on ℚ_[p], as an addValuation.