The areas / V12. Number theory
Mathlib.NumberTheory.Padics.RingHoms
75 declarations. Mathlib docs · Source
Relating ℤ_[p] to ZMod (p ^ n), aka ℤ/p^nℤ.
In this file we establish connections between the p-adic integers ℤ_[p]
and the integers modulo powers of p, ℤ/p^nℤ, implemented as ZMod (p^n).
Main declarations
We show that ℤ_[p] has a ring homomorphism to ℤ/p^nℤ for each n.
The case for n = 1 is handled separately, since it is used in the general construction
and we may want to use it without the ^1 getting in the way.
PadicInt.toZMod: ring homomorphism toℤ/pℤ, implemented asZMod p.PadicInt.toZModPow: ring homomorphism toℤ/p^nℤ, implemented asZMod (p^n).PadicInt.ker_toZMod/PadicInt.ker_toZModPow: the kernels of these maps are the ideals generated byp^nPadicInt.residueFieldshows that the residue field ofℤ_[p]is isomorphic toℤ/pℤ.
We also establish the universal property of ℤ_[p] as a projective limit.
Given a family of compatible ring homomorphisms f_k : R → ℤ/p^nℤ,
there is a unique limit R → ℤ_[p]
PadicInt.lift: the limit functionPadicInt.lift_spec/PadicInt.lift_unique: the universal property
Implementation notes
The constructions of the ring homomorphisms go through an auxiliary constructor
PadicInt.toZModHom, which removes some boilerplate code.
Ring homomorphisms to ZMod p and ZMod (p ^ n)
Universal property as projective limit
theorem PadicInt.ofIntSeq.congr_simp E1 #
∀ {p : ℕ} [hp : Fact (Nat.Prime p)] (seq seq_1 : ℕ → ℤ) (e_seq : seq = seq_1)
(h : IsCauSeq (padicNorm p) fun n ↦ ↑(seq n)), PadicInt.ofIntSeq seq h = PadicInt.ofIntSeq seq_1 ⋯
theorem PadicInt.appr.match_1.congr_eq_2 E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (motive : ℤ_[p] → ℕ → Sort u_1) (x : ℤ_[p]) (x_1 : ℕ)
(h_1 : (_x : ℤ_[p]) → motive _x 0) (h_2 : (x : ℤ_[p]) → (n : ℕ) → motive x n.succ) (x_2 : ℤ_[p]) (n : ℕ),
x = x_2 →
x_1 = n.succ →
(match x, x_1 with
| _x, 0 => h_1 _x
| x, n.succ => h_2 x n) ≍
h_2 x_2 n
theorem PadicInt.limNthHom.congr_simp E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f f_1 : (k : ℕ) → R →+* ZMod (p ^ k)} (e_f : f = f_1)
[hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (r r_1 : R),
r = r_1 → PadicInt.limNthHom f_compat r = PadicInt.limNthHom ⋯ r_1
theorem PadicInt.appr.match_1.congr_eq_1 E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (motive : ℤ_[p] → ℕ → Sort u_1) (x : ℤ_[p]) (x_1 : ℕ)
(h_1 : (_x : ℤ_[p]) → motive _x 0) (h_2 : (x : ℤ_[p]) → (n : ℕ) → motive x n.succ) (_x : ℤ_[p]),
x = _x →
x_1 = 0 →
(match x, x_1 with
| _x, 0 => h_1 _x
| x, n.succ => h_2 x n) ≍
h_1 _x
def PadicInt.modPart E1 #
ℕ → ℚ → ℤ
modPart p r is an integer that satisfies
‖(r - modPart p r : ℚ_[p])‖ < 1 when ‖(r : ℚ_[p])‖ ≤ 1,
see PadicInt.norm_sub_modPart.
It is the unique non-negative integer that is < p with this property.
(Note that this definition assumes r : ℚ.
See PadicInt.zmodRepr for a version that takes values in ℕ
and works for arbitrary x : ℤ_[p].)
theorem PadicInt.modPart_lt_p E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (r : ℚ), PadicInt.modPart p r < ↑p
theorem PadicInt.modPart_nonneg E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (r : ℚ), 0 ≤ PadicInt.modPart p r
theorem PadicInt.norm_sub_modPart_aux E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (r : ℚ), ‖↑r‖ ≤ 1 → ↑p ∣ r.num - r.num * r.den.gcdA p % ↑p * ↑r.den
theorem PadicInt.norm_sub_modPart E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (r : ℚ) (h : ‖↑r‖ ≤ 1), ‖⟨↑r, h⟩ - ↑(PadicInt.modPart p r)‖ < 1
theorem PadicInt.exists_mem_range_of_norm_rat_le_one E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (r : ℚ) (h : ‖↑r‖ ≤ 1), ∃ n, 0 ≤ n ∧ n < ↑p ∧ ‖⟨↑r, h⟩ - ↑n‖ < 1
theorem PadicInt.zmod_congr_of_sub_mem_span_aux E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (n : ℕ) (x : ℤ_[p]) (a b : ℤ),
x - ↑a ∈ Ideal.span {↑p ^ n} → x - ↑b ∈ Ideal.span {↑p ^ n} → ↑a = ↑b
theorem PadicInt.zmod_congr_of_sub_mem_span E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (n : ℕ) (x : ℤ_[p]) (a b : ℕ),
x - ↑a ∈ Ideal.span {↑p ^ n} → x - ↑b ∈ Ideal.span {↑p ^ n} → ↑a = ↑b
theorem PadicInt.zmod_congr_of_sub_mem_max_ideal E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]) (m n : ℕ),
x - ↑m ∈ IsLocalRing.maximalIdeal ℤ_[p] → x - ↑n ∈ IsLocalRing.maximalIdeal ℤ_[p] → ↑m = ↑n
theorem PadicInt.exists_mem_range E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), ∃ n < p, x - ↑n ∈ IsLocalRing.maximalIdeal ℤ_[p]
theorem PadicInt.existsUnique_mem_range E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), ∃! n, n < p ∧ x - ↑n ∈ IsLocalRing.maximalIdeal ℤ_[p]
def PadicInt.zmodRepr E1 #
{p : ℕ} → [hp_prime : Fact (Nat.Prime p)] → ℤ_[p] → ℕ
zmodRepr x is the unique natural number smaller than p
satisfying ‖(x - zmodRepr x : ℤ_[p])‖ < 1.
theorem PadicInt.zmodRepr_spec E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), x.zmodRepr < p ∧ x - ↑x.zmodRepr ∈ IsLocalRing.maximalIdeal ℤ_[p]
theorem PadicInt.zmodRepr_unique E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), ∀ y < p, x - ↑y ∈ IsLocalRing.maximalIdeal ℤ_[p] → x.zmodRepr = y
theorem PadicInt.zmodRepr_lt_p E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), x.zmodRepr < p
theorem PadicInt.sub_zmodRepr_mem E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), x - ↑x.zmodRepr ∈ IsLocalRing.maximalIdeal ℤ_[p]
theorem PadicInt.zmodRepr_eq_zero_of_dvd E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] {x : ℤ_[p]}, ↑p ∣ x → x.zmodRepr = 0
theorem PadicInt.zmodRepr_zero E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)], PadicInt.zmodRepr 0 = 0
theorem PadicInt.norm_sub_zmodRepr_lt_one E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), ‖x - ↑x.zmodRepr‖ < 1
theorem PadicInt.norm_natCast_zmodRepr_eq_one_iff E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] {x : ℤ_[p]}, ‖↑x.zmodRepr‖ = 1 ↔ ‖x‖ = 1
theorem PadicInt.zmodRepr_eq_zero_iff_dvd E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] {x : ℤ_[p]}, x.zmodRepr = 0 ↔ ↑p ∣ x
theorem PadicInt.norm_natCast_zmodRepr_eq_one_iff_ne E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), ‖↑x.zmodRepr‖ = 1 ↔ x.zmodRepr ≠ 0
theorem PadicInt.norm_natCast_zmodRepr_eq E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), ‖↑x.zmodRepr‖ = 1 ∨ x.zmodRepr = 0
theorem PadicInt.zmodRepr_natCast_zmodRepr E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), (↑x.zmodRepr).zmodRepr = x.zmodRepr
theorem PadicInt.norm_natCast_zmodRepr_eq_iff E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] {x : ℤ_[p]}, ‖↑x.zmodRepr‖ = ‖x‖ ↔ ‖x‖ = 1 ∨ x = 0
theorem PadicInt.zmodRepr_natCast E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (n : ℕ), (↑n).zmodRepr = n % p
theorem PadicInt.zmodRepr_natCast_of_lt E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] {n : ℕ}, n < p → (↑n).zmodRepr = n
theorem PadicInt.zmodRepr_natCast_ofNat E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] {n : ℕ}, OfNat.ofNat n < p → (OfNat.ofNat n).zmodRepr = OfNat.ofNat n
theorem PadicInt.zmodRepr_units_ne_zero E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]ˣ), (↑x).zmodRepr ≠ 0
def PadicInt.toZModHom E1 #
{p : ℕ} →
[hp_prime : Fact (Nat.Prime p)] →
(v : ℕ) →
(f : ℤ_[p] → ℕ) →
(∀ (x : ℤ_[p]), x - ↑(f x) ∈ Ideal.span {↑v}) →
(∀ (x : ℤ_[p]) (a b : ℕ), x - ↑a ∈ Ideal.span {↑v} → x - ↑b ∈ Ideal.span {↑v} → ↑a = ↑b) → ℤ_[p] →+* ZMod v
toZModHom is an auxiliary constructor for creating ring homs from ℤ_[p] to ZMod v.
def PadicInt.toZMod E3 #
{p : ℕ} → [hp_prime : Fact (Nat.Prime p)] → ℤ_[p] →+* ZMod p
toZMod is a ring hom from ℤ_[p] to ZMod p,
with the equality toZMod x = (zmodRepr x : ZMod p).
theorem PadicInt.toZMod_spec E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), x - (PadicInt.toZMod x).cast ∈ IsLocalRing.maximalIdeal ℤ_[p]
z - (toZMod z : ℤ_[p]) is contained in the maximal ideal of ℤ_[p], for every z : ℤ_[p].
The coercion from ZMod p to ℤ_[p] is ZMod.cast,
which coerces ZMod p into arbitrary rings.
This is unfortunate, but a consequence of the fact that we allow ZMod p
to coerce to rings of arbitrary characteristic, instead of only rings of characteristic p.
This coercion is only a ring homomorphism if it coerces into a ring whose characteristic divides
p. While this is not the case here we can still make use of the coercion.
theorem PadicInt.ker_toZMod E3 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)], RingHom.ker PadicInt.toZMod = IsLocalRing.maximalIdeal ℤ_[p]
theorem PadicInt.val_toZMod_eq_zmodRepr E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), (PadicInt.toZMod x).val = x.zmodRepr
theorem PadicInt.zmodRepr_mul E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x y : ℤ_[p]), (x * y).zmodRepr = x.zmodRepr * y.zmodRepr % p
def PadicInt.residueField E3 #
{p : ℕ} → [hp_prime : Fact (Nat.Prime p)] → IsLocalRing.ResidueField ℤ_[p] ≃+* ZMod p
The equivalence between the residue field of the p-adic integers and ℤ/pℤ
def PadicInt.appr E1 #
{p : ℕ} → [hp_prime : Fact (Nat.Prime p)] → ℤ_[p] → ℕ → ℕ
appr n x gives a value v : ℕ such that x and ↑v : ℤ_p are congruent mod p^n.
See appr_spec.
theorem PadicInt.appr_lt E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]) (n : ℕ), x.appr n < p ^ n
theorem PadicInt.appr_mono E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]), Monotone x.appr
theorem PadicInt.dvd_appr_sub_appr E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (x : ℤ_[p]) (m n : ℕ), m ≤ n → p ^ m ∣ x.appr n - x.appr m
theorem PadicInt.appr_spec E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (n : ℕ) (x : ℤ_[p]), x - ↑(x.appr n) ∈ Ideal.span {↑p ^ n}
theorem PadicInt.toZMod_eq_residueField_comp_residue E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)],
PadicInt.toZMod = PadicInt.residueField.toRingHom.comp (IsLocalRing.residue ℤ_[p])
def PadicInt.toZModPow E3 #
{p : ℕ} → [hp_prime : Fact (Nat.Prime p)] → (n : ℕ) → ℤ_[p] →+* ZMod (p ^ n)
A ring hom from ℤ_[p] to ZMod (p^n), with underlying function PadicInt.appr n.
theorem PadicInt.ker_toZModPow E3 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (n : ℕ), RingHom.ker (PadicInt.toZModPow n) = Ideal.span {↑p ^ n}
theorem PadicInt.zmod_cast_comp_toZModPow E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (m n : ℕ) (h : m ≤ n),
(ZMod.castHom ⋯ (ZMod (p ^ m))).comp (PadicInt.toZModPow n) = PadicInt.toZModPow m
theorem PadicInt.cast_toZModPow E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (m n : ℕ),
m ≤ n → ∀ (x : ℤ_[p]), ((PadicInt.toZModPow n) x).cast = (PadicInt.toZModPow m) x
theorem PadicInt.denseRange_natCast E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)], DenseRange Nat.cast
theorem PadicInt.denseRange_intCast E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)], DenseRange Int.cast
def PadicInt.nthHom E1 #
{R : Type u_1} → [inst : NonAssocSemiring R] → {p : ℕ} → ((k : ℕ) → R →+* ZMod (p ^ k)) → R → ℕ → ℤ
Given a family of ring homs f : Π n : ℕ, R →+* ZMod (p ^ n),
nthHom f r is an integer-valued sequence
whose nth value is the unique integer k such that 0 ≤ k < p ^ n
and f n r = (k : ZMod (p ^ n)).
theorem PadicInt.nthHom_zero E0 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} (f : (k : ℕ) → R →+* ZMod (p ^ k)), PadicInt.nthHom f 0 = 0
theorem PadicInt.pow_dvd_nthHom_sub E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)],
(∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) →
∀ (r : R) (i j : ℕ), i ≤ j → ↑p ^ i ∣ PadicInt.nthHom f r j - PadicInt.nthHom f r i
theorem PadicInt.isCauSeq_nthHom E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)],
(∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) →
∀ (r : R), IsCauSeq (padicNorm p) fun n ↦ ↑(PadicInt.nthHom f r n)
def PadicInt.nthHomSeq E1 #
{R : Type u_1} →
[inst : NonAssocSemiring R] →
{p : ℕ} →
{f : (k : ℕ) → R →+* ZMod (p ^ k)} →
[hp_prime : Fact (Nat.Prime p)] →
(∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) → R → PadicSeq p
nthHomSeq f_compat r bundles PadicInt.nthHom f r
as a Cauchy sequence of rationals with respect to the p-adic norm.
The nth value of the sequence is ((f n r).val : ℚ).
theorem PadicInt.nthHomSeq_one E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1),
PadicInt.nthHomSeq f_compat 1 ≈ 1
theorem PadicInt.nthHomSeq_add E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (r s : R),
PadicInt.nthHomSeq f_compat (r + s) ≈ PadicInt.nthHomSeq f_compat r + PadicInt.nthHomSeq f_compat s
theorem PadicInt.nthHomSeq_mul E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (r s : R),
PadicInt.nthHomSeq f_compat (r * s) ≈ PadicInt.nthHomSeq f_compat r * PadicInt.nthHomSeq f_compat s
def PadicInt.limNthHom E1 #
{R : Type u_1} →
[inst : NonAssocSemiring R] →
{p : ℕ} →
{f : (k : ℕ) → R →+* ZMod (p ^ k)} →
[hp_prime : Fact (Nat.Prime p)] →
(∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) → R → ℤ_[p]
limNthHom f_compat r is the limit of a sequence f of compatible ring homs R →+* ZMod (p^k).
This is itself a ring hom: see PadicInt.lift.
theorem PadicInt.limNthHom_spec E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (r : R) (ε : ℝ),
0 < ε → ∃ N, ∀ n ≥ N, ‖PadicInt.limNthHom f_compat r - ↑(PadicInt.nthHom f r n)‖ < ε
theorem PadicInt.limNthHom_zero E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1),
PadicInt.limNthHom f_compat 0 = 0
theorem PadicInt.limNthHom_one E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1),
PadicInt.limNthHom f_compat 1 = 1
theorem PadicInt.limNthHom_add E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (r s : R),
PadicInt.limNthHom f_compat (r + s) = PadicInt.limNthHom f_compat r + PadicInt.limNthHom f_compat s
theorem PadicInt.limNthHom_mul E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (r s : R),
PadicInt.limNthHom f_compat (r * s) = PadicInt.limNthHom f_compat r * PadicInt.limNthHom f_compat s
def PadicInt.lift E3 #
{R : Type u_1} →
[inst : NonAssocSemiring R] →
{p : ℕ} →
{f : (k : ℕ) → R →+* ZMod (p ^ k)} →
[hp_prime : Fact (Nat.Prime p)] →
(∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) → R →+* ℤ_[p]
lift f_compat is the limit of a sequence f of compatible ring homs R →+* ZMod (p^k),
with the equality lift f_compat r = PadicInt.limNthHom f_compat r.
theorem PadicInt.lift_sub_val_mem_span E1 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (r : R) (n : ℕ),
(PadicInt.lift f_compat) r - ↑((f n) r).val ∈ Ideal.span {↑p ^ n}
theorem PadicInt.lift_spec E3 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (n : ℕ),
(PadicInt.toZModPow n).comp (PadicInt.lift f_compat) = f n
One part of the universal property of ℤ_[p] as a projective limit.
See also PadicInt.lift_unique.
theorem PadicInt.lift_unique E3 #
∀ {R : Type u_1} [inst : NonAssocSemiring R] {p : ℕ} {f : (k : ℕ) → R →+* ZMod (p ^ k)} [hp_prime : Fact (Nat.Prime p)]
(f_compat : ∀ (k1 k2 : ℕ) (hk : k1 ≤ k2), (ZMod.castHom ⋯ (ZMod (p ^ k1))).comp (f k2) = f k1) (g : R →+* ℤ_[p]),
(∀ (n : ℕ), (PadicInt.toZModPow n).comp g = f n) → PadicInt.lift f_compat = g
One part of the universal property of ℤ_[p] as a projective limit.
See also PadicInt.lift_spec.
theorem PadicInt.lift_self E0 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] (z : ℤ_[p]), (PadicInt.lift ⋯) z = z
theorem PadicInt.ext_of_toZModPow E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] {x y : ℤ_[p]},
(∀ (n : ℕ), (PadicInt.toZModPow n) x = (PadicInt.toZModPow n) y) ↔ x = y
theorem PadicInt.toZModPow_eq_iff_ext E1 #
∀ {p : ℕ} [hp_prime : Fact (Nat.Prime p)] {R : Type u_1} [inst : NonAssocSemiring R] {g g' : R →+* ℤ_[p]},
(∀ (n : ℕ), (PadicInt.toZModPow n).comp g = (PadicInt.toZModPow n).comp g') ↔ g = g'
theorem PadicInt.isCauSeq_padicNorm_of_pow_dvd_sub E1 #
∀ (f : ℕ → ℤ) (p : ℕ) [Fact (Nat.Prime p)],
(∀ (i : ℕ), ↑p ^ i ∣ f (i + 1) - f i) → IsCauSeq (padicNorm p) fun x ↦ ↑(f x)
theorem PadicInt.toZModPow_ofIntSeq_of_pow_dvd_sub E1 #
∀ (f : ℕ → ℤ) (p : ℕ) [inst : Fact (Nat.Prime p)] (hi : ∀ (i : ℕ), ↑p ^ i ∣ f (i + 1) - f i) (n : ℕ),
(PadicInt.toZModPow n) (PadicInt.ofIntSeq f ⋯) = ↑(f n)