Zeta and L-valuesBlueprintDependency graphThesis
Contents

IwasawaAlgebra.lean

Statement index · Original Lean file

1/-2Copyright: none. Author: swarm member m7 (Mathlib-only, no axioms).34# Iwasawa's construction of `p`-adic `L`-functions (Bhattacharya, MSc thesis, April 2024)56This file formalizes, in Lean 4 + Mathlib, the parts of Chapter 3 of78 Shubhrajit Bhattacharya, *On Some Congruences of Zeta and `L`-values at9 Negative Odd Integers*, MSc thesis, UBC, April 2024,10 <https://shubhrajit.com/thesis/chap3>1112that can be stated and proved without any new number-theoretic infrastructure:13Theorem E (§3.1), Lemma 3.3, Lemma 3.5, and the algebra of the auxiliary power14series `h(T) = 1 - (1+p)/(1+T)` behind Definition 3.7 / Lemma 3.8.1516Numbering `(3.k)` below refers to the equation tags of the PreTeXt edition of the17thesis.1819No custom axioms are used. Statements which need infrastructure that Mathlib20does not have (the Iwasawa algebra as an inverse limit of group rings, the21Coleman/Stickelberger compatibility, the Kubota–Leopoldt `L`-function) are22collected in `IwasawaStatements.lean` and are clearly marked as scaffolding.23-/24import Mathlib2526open scoped BigOperators27open PowerSeries2829namespace Bhattacharya3031/-! ## §1 The Iwasawa algebra `Λ(ℤ_p)` and the auxiliary series `h(T)`3233§3.1 defines `Λ(ℤ_p) = lim_n O[Γ_n]` (3.6) and quotes *Theorem E*: `Λ(ℤ_p) ≅ O⟦T⟧`34with `γ ↦ 1 + T`. The identification of the inverse limit with a power series35ring is Mathlib-level infrastructure that does not exist yet; what exists, and36is all that §3.2 then uses, is the power series ring itself together with the37algebra of the element `h(T) = 1 - (1+p)/(1+T)` of (3.23). -/3839variable (p : ℕ) [hp : Fact p.Prime]4041/-- `Λ(ℤ_p)`, presented via Theorem E as the power series ring `ℤ_p⟦T⟧`. -/42abbrev IwasawaAlgebra : Type := ℤ_[p]⟦X⟧4344/-- The element `1 + T`, i.e. the image of a topological generator `γ` of45`Γ = 1 + pℤ_p` under the isomorphism of Theorem E (`γ ↦ 1+T`). -/46noncomputable def gamma : IwasawaAlgebra p := 1 + X4748theorem gamma_eq : gamma p = 1 + X := rfl4950/-- `1 + T` is a unit of `ℤ_p⟦T⟧`: its residue is `1`. -/51theorem gamma_isUnit : IsUnit (gamma p) := by52 rw [PowerSeries.isUnit_iff_constantCoeff]53 simp [gamma]5455/-- The element `h(T) = 1 - (1+p)·(1+T)⁻¹` of (3.23). -/56noncomputable def h : IwasawaAlgebra p :=57 1 - C ((1 : ℤ_[p]) + (p : ℤ_[p])) * Ring.inverse (gamma p)5859/-- Cleared form of (3.23): `h(T)·(1+T) = T - p`. This is the equation that60makes the quotient in Definition 3.7 and Lemma 3.8 legitimate: `h` is a61non-zero-divisor, so `f = g/h` below is *determined*, not merely suggested. -/62theorem h_mul_gamma : h p * gamma p = X - C ((p : ℤ_[p])) := by63 have hunit : IsUnit (gamma p) := gamma_isUnit p64 have hinv : Ring.inverse (gamma p) * gamma p = 1 := Ring.inverse_mul_cancel _ hunit65 rw [h, sub_mul, one_mul, mul_assoc, hinv, mul_one, gamma, map_add, map_one]66 ring6768theorem h_ne_zero : h p ≠ 0 := by69 intro hzero70 have : X - C ((p : ℤ_[p])) = 0 := by rw [← h_mul_gamma p, hzero, zero_mul]71 have hc := congrArg PowerSeries.constantCoeff this72 simp only [PowerSeries.constantCoeff_X, map_sub, map_zero,73 PowerSeries.constantCoeff_C] at hc74 -- `0 - p = 0` would force `p = 0` in `ℤ_[p]`, which has characteristic zero75 have hp0 : (p : ℤ_[p]) = 0 := by simpa using hc76 exact (Nat.Prime.ne_zero hp.out) (Nat.cast_eq_zero.mp hp0)7778/-- `h` is not a zero divisor (`ℤ_p⟦T⟧` is a domain). -/79theorem h_mul_right_cancel {f g : IwasawaAlgebra p} (H : h p * f = h p * g) : f = g := by80 have : h p * (f - g) = 0 := by rw [mul_sub, H, sub_self]81 exact sub_eq_zero.mp ((mul_eq_zero.mp this).resolve_left (h_ne_zero p))8283/-- **Definition 3.7 / Lemma 3.8, made precise.** The element `f(T,θ) = g(T,θ)/h(T)`84is *uniquely determined* by `g` and `h`: any two solutions of `h·f = g` agree. -/85theorem f_unique {g f₁ f₂ : IwasawaAlgebra p} (H₁ : h p * f₁ = g) (H₂ : h p * f₂ = g) :86 f₁ = f₂ :=87 h_mul_right_cancel p (by rw [H₁, H₂])8889/-- Existence counterpart of `f_unique`: over `ℤ_p⟦T⟧` the equation `h·f = g`90need not be solvable (this is *exactly* the content of Proposition 3.6: for the91particular `g(T,θ)` coming from `lim η_n(θ)`, the quotient exists because92`θ*` is odd). We record the solvability predicate here. -/93def Solvable (g : IwasawaAlgebra p) : Prop := ∃ f, h p * f = g9495theorem solvable_iff {g : IwasawaAlgebra p} {f : IwasawaAlgebra p} (H : h p * f = g) :96 Solvable p g := ⟨f, H⟩9798/-! ## §2 Lemma 3.3: parity of characters of the second kind, and `ω(-1) = -1` -/99100section Parity101102variable {M : Type*} [Monoid M]103104/-- Elementary core of Lemma 3.3(1): an element of order dividing `2` and odd105order is trivial. Applied to `ψ(-1)` for `ψ` a character of the second kind. -/106theorem eq_one_of_pow_odd_eq_one_of_sq_eq_one {x : M} {m : ℕ} (hm : Odd m)107 (hpow : x ^ m = 1) (h2 : x ^ 2 = 1) : x = 1 := by108 obtain ⟨k, rfl⟩ := hm109 rw [pow_succ, pow_mul, h2, one_pow, one_mul] at hpow110 exact hpow111112/-- **Lemma 3.3, first assertion.** A Dirichlet character `ψ` of the second kind113(i.e. `ψ` is killed by `p^ν`, `p` odd) is even: `ψ(-1) = 1`. -/114theorem char_second_kind_even {G : Type*} [CommGroup G] (ψ : G →* M) {negOne : G}115 (h2 : negOne ^ 2 = 1) {ν : ℕ} (hν : Odd (p ^ ν)) (hpow : ψ negOne ^ p ^ ν = 1) :116 ψ negOne = 1 :=117 eq_one_of_pow_odd_eq_one_of_sq_eq_one hν hpow (by rw [← map_pow, h2, map_one])118119end Parity120121section Teichmuller122123variable {R : Type*} [CommRing R] [IsDomain R] {q : ℕ} [Fact q.Prime]124125/-- **Lemma 3.3, second assertion** (abstract form). Let `q` be an odd prime and126let `ω : (ℤ/q)^× → R^×` be any character whose values are `(q-1)`-st roots of127unity and which reduces to the identity modulo `q`. Then `ω(-1) = -1`.128129This is exactly the thesis's argument: `ω(-1)² = ω(1) = 1` forces130`ω(-1) = ±1`, and `ω(-1) ≡ -1 (mod q)` with `q` odd excludes `+1`. -/131theorem teichmuller_neg_one (ω : (ZMod q)ˣ →* Rˣ) (hω : (ω (-1) : R) ≠ 1)132 (hΩ : ((ω (-1) : Rˣ) : R) ^ 2 = 1) : ((ω (-1) : Rˣ) : R) = -1 := by133 rcases sq_eq_one_iff.mp hΩ with h | h134 · exact absurd h hω135 · exact h136137end Teichmuller138139140141section Idempotents142variable {k : Type*} [Field k] [CharZero k] {G : Type*} [CommGroup G] [Fintype G]143144/-- (3.18): `ε_χ = |G|⁻¹ ∑_{σ∈G} χ(σ)σ⁻¹`, Definition 3.4 of the thesis. -/145noncomputable def charIdem (χ : G →* kˣ) : MonoidAlgebra k G :=146 ∑ g : G, MonoidAlgebra.single g ((Fintype.card G : k)⁻¹ * (χ (g⁻¹) : k))147148/-- Orthogonality: a nontrivial character of a finite group sums to zero. -/149theorem sum_char_eq_zero (χ : G →* kˣ) (hχ : χ ≠ 1) : ∑ g : G, (χ g : k) = 0 := by150 classical151 obtain ⟨g₀, hg₀⟩ : ∃ g₀, χ g₀ ≠ 1 := by152 by_contra h153 push Not at h154 exact hχ (MonoidHom.ext fun g => by simpa using h g)155 have key : (∑ g : G, (χ (g₀ * g) : k)) = ∑ g : G, (χ g : k) :=156 Fintype.sum_equiv (Equiv.mulLeft g₀) (fun g => (χ (g₀ * g) : k)) (fun g => (χ g : k))157 (fun g => rfl)158 have hS : (χ g₀ : k) * ∑ g : G, (χ g : k) = ∑ g : G, (χ g : k) := by159 rw [Finset.mul_sum, ← key]160 exact Finset.sum_congr rfl fun g _ => by rw [map_mul]; push_cast; ring161 have hzero : ((χ g₀ : k) - 1) * (∑ g : G, (χ g : k)) = 0 := by162 rw [sub_mul, one_mul, hS, sub_self]163 have hne : (χ g₀ : k) - 1 ≠ 0 := by164 have : (χ g₀ : k) ≠ 1 := fun h => hg₀ (Units.ext (by simpa using h))165 exact sub_ne_zero.mpr this166 exact (mul_eq_zero.mp hzero).resolve_left hne167168variable (χ : G →* kˣ)169170/-- Property (i) of Lemma 3.5: `ε_χ · g = χ(g) · ε_χ`. -/171theorem charIdem_mul_of (g : G) :172 charIdem χ * MonoidAlgebra.of k G g173 = algebraMap k (MonoidAlgebra k G) (χ g : k) * charIdem χ := by174 classical175 have hLHS : charIdem χ * MonoidAlgebra.of k G g176 = ∑ t : G, MonoidAlgebra.single (t * g) ((Fintype.card G : k)⁻¹ * (χ (t⁻¹) : k)) := by177 rw [charIdem, MonoidAlgebra.of_apply, Finset.sum_mul]178 exact Finset.sum_congr rfl fun t _ => by179 rw [MonoidAlgebra.single_mul_single, mul_one]180 have hreindex : (∑ t : G, MonoidAlgebra.single (t * g) ((Fintype.card G : k)⁻¹ * (χ (t⁻¹) : k)))181 = ∑ s : G, MonoidAlgebra.single s182 ((Fintype.card G : k)⁻¹ * (χ g : k) * (χ (s⁻¹) : k)) := by183 have key : (∑ t : G, MonoidAlgebra.single (t * g)184 ((Fintype.card G : k)⁻¹ * (χ g : k) * (χ ((t * g)⁻¹) : k)))185 = ∑ s : G, MonoidAlgebra.single s186 ((Fintype.card G : k)⁻¹ * (χ g : k) * (χ (s⁻¹) : k)) :=187 Fintype.sum_equiv (Equiv.mulRight g)188 (fun t => MonoidAlgebra.single (t * g)189 ((Fintype.card G : k)⁻¹ * (χ g : k) * (χ ((t * g)⁻¹) : k)))190 (fun s => MonoidAlgebra.single s ((Fintype.card G : k)⁻¹ * (χ g : k) * (χ (s⁻¹) : k)))191 (fun t => rfl)192 rw [← key]193 have hcoef : ∀ t : G, (χ (t⁻¹) : k) = (χ g : k) * (χ ((t * g)⁻¹) : k) := by194 intro t195 rw [mul_inv_rev, map_mul, map_inv, map_inv, Units.val_mul, Units.val_inv_eq_inv_val,196 Units.val_inv_eq_inv_val, ← mul_assoc, mul_inv_cancel₀ (χ g).isUnit.ne_zero, one_mul]197 exact Finset.sum_congr rfl fun t _ => by198 congr 1199 rw [hcoef t, ← mul_assoc]200 have hRHS : algebraMap k (MonoidAlgebra k G) (χ g : k) * charIdem χ201 = ∑ s : G, MonoidAlgebra.single s202 ((Fintype.card G : k)⁻¹ * (χ g : k) * (χ (s⁻¹) : k)) := by203 rw [charIdem, Finset.mul_sum]204 exact Finset.sum_congr rfl fun s _ => by205 rw [MonoidAlgebra.single_eq_algebraMap_mul_of, MonoidAlgebra.single_eq_algebraMap_mul_of,206 ← mul_assoc, ← map_mul]207 rw [show (χ g : k) * ((Fintype.card G : k)⁻¹ * (χ (s⁻¹) : k))208 = (Fintype.card G : k)⁻¹ * (χ g : k) * (χ (s⁻¹) : k) from by ring]209 rw [hLHS, hreindex, hRHS]210211/-- Master computation behind both identities of Lemma 3.5: for any coefficient212function `a : G → k`, `ε_χ · (∑ a(s)·s) = (∑ a(s)·χ(s)) · ε_χ`. -/213theorem charIdem_mul_sum (χ : G →* kˣ) (a : G → k) :214 charIdem χ * (∑ s : G, MonoidAlgebra.single s (a s))215 = algebraMap k (MonoidAlgebra k G) (∑ s : G, a s * (χ s : k)) * charIdem χ := by216 rw [Finset.mul_sum]217 have hterm : ∀ s : G, charIdem χ * MonoidAlgebra.single s (a s)218 = algebraMap k (MonoidAlgebra k G) (a s * (χ s : k)) * charIdem χ := by219 intro s220 rw [MonoidAlgebra.single_eq_algebraMap_mul_of, ← mul_assoc, ← Algebra.commutes (a s),221 mul_assoc, charIdem_mul_of, ← mul_assoc, ← map_mul]222 rw [Finset.sum_congr rfl fun s _ => hterm s, ← Finset.sum_mul, ← map_sum]223224/-- Lemma 3.5, second identity: `ε_χ · ε_ψ = 0` for `χ ≠ ψ`. -/225theorem charIdem_mul_charIdem (ψ : G →* kˣ) :226 charIdem χ * charIdem ψ227 = algebraMap k (MonoidAlgebra k G)228 (∑ s : G, ((Fintype.card G : k)⁻¹ * (ψ (s⁻¹) : k)) * (χ s : k)) * charIdem χ := by229 classical230 have hsum : charIdem χ * charIdem ψ231 = ∑ s : G, algebraMap k (MonoidAlgebra k G)232 (((Fintype.card G : k)⁻¹ * (ψ (s⁻¹) : k)) * (χ s : k)) * charIdem χ := by233 rw [show charIdem ψ234 = ∑ s : G, MonoidAlgebra.single s ((Fintype.card G : k)⁻¹ * (ψ (s⁻¹) : k)) from rfl,235 charIdem_mul_sum χ (fun s => (Fintype.card G : k)⁻¹ * (ψ (s⁻¹) : k))]236 rw [← Finset.sum_mul, ← map_sum]237 rw [hsum, ← Finset.sum_mul, ← map_sum]238239/-- Lemma 3.5, first identity: `ε_χ` is idempotent. -/240theorem charIdem_idem : charIdem χ * charIdem χ = charIdem χ := by241 have hcard : (Fintype.card G : k) ≠ 0 := Nat.cast_ne_zero.mpr Fintype.card_ne_zero242 rw [charIdem_mul_charIdem]243 have hcoef : (∑ s : G, ((Fintype.card G : k)⁻¹ * (χ (s⁻¹) : k)) * (χ s : k)) = 1 := by244 have hterm : ∀ s : G, ((Fintype.card G : k)⁻¹ * (χ (s⁻¹) : k)) * (χ s : k)245 = (Fintype.card G : k)⁻¹ := by246 intro s247 have h1 : (χ (s⁻¹) : k) = ((χ s : k))⁻¹ := by248 rw [map_inv]; simp249 rw [h1, mul_assoc, inv_mul_cancel₀, mul_one]250 exact (χ s).isUnit.ne_zero251 rw [Finset.sum_congr rfl fun s _ => hterm s, Finset.sum_const, Finset.card_univ,252 nsmul_eq_mul]253 exact mul_inv_cancel₀ hcard254 rw [hcoef, map_one, one_mul]255256/-- Lemma 3.5, second identity: `ε_χ · ε_ψ = 0` for `χ ≠ ψ`. -/257theorem charIdem_mul_eq_zero {ψ : G →* kˣ} (h : χ ≠ ψ) : charIdem χ * charIdem ψ = 0 := by258 have hcard : (Fintype.card G : k) ≠ 0 := Nat.cast_ne_zero.mpr Fintype.card_ne_zero259 rw [charIdem_mul_charIdem]260 have hcoef : (∑ s : G, ((Fintype.card G : k)⁻¹ * (ψ (s⁻¹) : k)) * (χ s : k)) = 0 := by261 have hterm : ∀ s : G, ((Fintype.card G : k)⁻¹ * (ψ (s⁻¹) : k)) * (χ s : k)262 = (Fintype.card G : k)⁻¹ * ((χ * ψ⁻¹) s : k) := by263 intro s264 have h1 : (ψ (s⁻¹) : k) = ((ψ s : k))⁻¹ := by rw [map_inv]; simp265 have h2 : ((χ * ψ⁻¹) s : k) = (χ s : k) * ((ψ s : k))⁻¹ := by266 rw [show ((χ * ψ⁻¹) s : kˣ) = (χ s) * (ψ s)⁻¹ from rfl, Units.val_mul,267 Units.val_inv_eq_inv_val]268 rw [h1, h2]269 ring270 have hne : χ * ψ⁻¹ ≠ 1 := by271 intro hh272 apply h273 rw [← mul_one χ, ← inv_mul_cancel ψ, ← mul_assoc, hh]274 simp275 rw [Finset.sum_congr rfl fun s _ => hterm s, ← Finset.mul_sum, sum_char_eq_zero _ hne,276 mul_zero]277 rw [hcoef, map_zero, zero_mul]278279end Idempotents280281/-! ## §3 (`ZMod`-model check) The group ring of `Γ_n = ℤ/p^n` -/282283section GammaN284285/-- `Γ_n = Γ/Γ^{p^n} ≅ ℤ/p^n` (3.11), modelled additively as `ZMod (p^n)`; `γ_n` is286the image of a topological generator `γ` of `Γ = 1+pℤ_p`. -/287noncomputable abbrev gammaN (p n : ℕ) [Fact p.Prime] : MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))) :=288 MonoidAlgebra.of ℤ_[p] (Multiplicative (ZMod (p ^ n))) (Multiplicative.ofAdd 1)289290/-- The relation `γ_n^{p^n} = 1`, i.e. `ℤ_p[Γ_n]` is a quotient of `ℤ_p[T]` by a291divisor of `(1+T)^{p^n} - 1`, which is what (3.28) uses when it reduces `g(T,θ)`292modulo `(1+T)^{p^n} - 1`. -/293theorem gammaN_pow (p n : ℕ) [Fact p.Prime] : gammaN p n ^ (p ^ n) = 1 := by294 rw [← map_pow]295 have h : (Multiplicative.ofAdd (1 : ZMod (p ^ n))) ^ (p ^ n) = 1 := by296 show Multiplicative.ofAdd ((p ^ n) • (1 : ZMod (p ^ n))) = Multiplicative.ofAdd 0297 rw [show (p ^ n) • (1 : ZMod (p ^ n)) = ((p ^ n : ℕ) : ZMod (p ^ n)) by298 simp [nsmul_eq_mul], ZMod.natCast_self]299 rw [h, map_one]300301end GammaN302303/-! ## §4 Statement layer for §3.2 — SCAFFOLDING ONLY304305Only statements that are (a) true and (b) typeable with today's Mathlib are written306down here; each carries the list of missing bricks that blocks its proof.307Proposition 3.6 and Theorem 3.9 are *not* stated in Lean: their types mention the308Kubota–Leopoldt function `L_p(s,χ)` on `{s ∈ ℂ_p : |s|_p < p^{1-1/(p-1)}}`, the309generalized Bernoulli numbers `B_{n,χ}`, the Teichmüller character `ω` and the310Stickelberger limit `lim_n η_n(θ) ∈ lim_n ℤ_p[Γ_n]`, none of which exists in Mathlib;311writing them over free parameters would be vacuous and is therefore avoided.312Their exact statements (with equation tags) are in `Ch3-inventory.md`, which also313lists, node by node, the bricks that must be built first.314-/315316/-- Powers of the additive generator of `ZMod n`. -/317theorem ofAdd_one_pow (n k : ℕ) :318 (Multiplicative.ofAdd (1 : ZMod n)) ^ k = Multiplicative.ofAdd ((k : ZMod n)) := by319 induction k with320 | zero => simp321 | succ k ih =>322 rw [pow_succ, ih, ← ofAdd_add]323 push_cast324 rfl325326327theorem pow_pos_p (n : ℕ) : 0 < p ^ n :=328 pow_pos (by have := hp.out.two_le; omega) n329330/-! ## §2 The distinguished polynomial `g(T) = (1+T)^{p^n} - 1` -/331332/-- `g(T) = (1+T)^{p^n} - 1`, as a polynomial. -/333noncomputable def gPoly (n : ℕ) : Polynomial ℤ_[p] :=334 (1 + Polynomial.X) ^ (p ^ n) - 1335336/-- `g` as a power series. -/337noncomputable def gSeries (n : ℕ) : PowerSeries ℤ_[p] :=338 (1 + PowerSeries.X) ^ (p ^ n) - 1339340theorem coe_gPoly (n : ℕ) :341 ((gPoly p n : Polynomial ℤ_[p]) : PowerSeries ℤ_[p]) = gSeries p n := by342 rw [gPoly, gSeries]343 push_cast344 ring345346/-- The coefficient of `T^k` in `(1+T)^N`. -/347theorem coeff_one_add_X_pow (N k : ℕ) :348 ((1 + Polynomial.X : Polynomial ℤ_[p]) ^ N).coeff k = ((N.choose k : ℕ) : ℤ_[p]) := by349 have h : (1 + Polynomial.X : Polynomial ℤ_[p]) = Polynomial.X + Polynomial.C (1 : ℤ_[p]) := by350 rw [Polynomial.C_1, add_comm]351 rw [h, Polynomial.coeff_X_add_C_pow]352 simp353354theorem coeff_gPoly (n k : ℕ) :355 (gPoly p n).coeff k = ((p ^ n).choose k : ℤ_[p]) - (if k = 0 then 1 else 0) := by356 rw [gPoly, Polynomial.coeff_sub, coeff_one_add_X_pow p, Polynomial.coeff_one]357358theorem natDegree_gPoly (n : ℕ) : (gPoly p n).natDegree = p ^ n := by359 refine Polynomial.natDegree_eq_of_le_of_coeff_ne_zero ?_ ?_360 · rw [Polynomial.natDegree_le_iff_coeff_eq_zero]361 intro k hk362 rw [coeff_gPoly]363 rw [Nat.choose_eq_zero_of_lt hk]364 have : k ≠ 0 := by omega365 simp [this]366 · rw [coeff_gPoly, Nat.choose_self]367 have h0 : p ^ n ≠ 0 := (pow_pos_p p n).ne'368 rw [if_neg h0, sub_zero]369 norm_num370371theorem monic_gPoly (n : ℕ) : (gPoly p n).Monic := by372 rw [Polynomial.Monic, Polynomial.leadingCoeff, natDegree_gPoly p n]373 have h0 : p ^ n ≠ 0 := (pow_pos_p p n).ne'374 rw [coeff_gPoly, Nat.choose_self, if_neg h0, sub_zero]375 norm_num376377theorem isWeaklyEisensteinAt_gPoly (n : ℕ) :378 (gPoly p n).IsWeaklyEisensteinAt (IsLocalRing.maximalIdeal ℤ_[p]) := by379 rw [Polynomial.isWeaklyEisensteinAt_iff]380 intro k hk381 rw [natDegree_gPoly p n] at hk382 rw [coeff_gPoly, PadicInt.maximalIdeal_eq_span_p, Ideal.mem_span_singleton]383 by_cases hk0 : k = 0384 · subst hk0385 simp386 · simp only [hk0, if_false, sub_zero]387 obtain ⟨m, hm⟩ := Nat.Prime.dvd_choose_pow hp.out hk0 (show k ≠ p ^ n by omega)388 rw [hm]389 push_cast390 exact dvd_mul_right _ _391392/-- **`g` is distinguished at `(p)`.** -/393theorem isDistinguished_gPoly (n : ℕ) :394 Polynomial.IsDistinguishedAt (gPoly p n) (IsLocalRing.maximalIdeal ℤ_[p]) :=395 ⟨isWeaklyEisensteinAt_gPoly p n, monic_gPoly p n⟩396397section Iso398399/-! ## §3 The two algebraic isomorphisms400401We prove `ℤ_p⟦T⟧/((1+T)^{p^n}-1) ≃ ℤ_p[Γ_n]` in two steps: first402`ℤ_p[T]/(g) ≃ ℤ_p⟦T⟧/(g)` (Weierstrass division, `g` being distinguished),403then `ℤ_p[Γ_n] ≃ ℤ_p[T]/(g)` via `T ↦ γ_n - 1`. -/404405/-- The quotient `ℤ_p[T]/(g)`. -/406noncomputable abbrev Qpoly (n : ℕ) : Type :=407 Polynomial ℤ_[p] ⧸ Ideal.span {gPoly p n}408409/-- The quotient `ℤ_p⟦T⟧/(g)`. -/410noncomputable abbrev Qseries (n : ℕ) : Type :=411 PowerSeries ℤ_[p] ⧸ Ideal.span {gSeries p n}412413414/-- The class of `1 + T` in `ℤ_p[T]/(g)`. -/415noncomputable def clsX (n : ℕ) : Qpoly p n :=416 Ideal.Quotient.mk (Ideal.span {gPoly p n}) (1 + Polynomial.X)417418theorem clsX_pow (n : ℕ) : clsX p n ^ (p ^ n) = 1 := by419 have hg : (1 + Polynomial.X : Polynomial ℤ_[p]) ^ (p ^ n) = gPoly p n + 1 := by420 rw [gPoly]; ring421 have hmem : Ideal.Quotient.mk (Ideal.span {gPoly p n}) (gPoly p n) = 0 := by422 rw [Ideal.Quotient.eq_zero_iff_mem]423 exact Ideal.subset_span (Set.mem_singleton _)424 rw [clsX, ← map_pow, hg, map_add, hmem, zero_add, map_one]425426/-- The unit `1 + T` of `ℤ_p[T]/(g)`; its `p^n`-th power is `1`. -/427noncomputable def unitX (n : ℕ) : (Qpoly p n)ˣ where428 val := clsX p n429 inv := clsX p n ^ (p ^ n - 1)430 val_inv := by431 rw [mul_comm, ← pow_succ, Nat.sub_add_cancel (pow_pos_p p n), clsX_pow]432 inv_val := by433 rw [← pow_succ, Nat.sub_add_cancel (pow_pos_p p n), clsX_pow]434435theorem unitX_val (n : ℕ) : ((unitX p n : (Qpoly p n)ˣ) : Qpoly p n) = clsX p n := rfl436437theorem unitX_pow (n : ℕ) : unitX p n ^ (p ^ n) = 1 := by438 apply Units.ext439 rw [Units.val_pow_eq_pow_val, unitX_val, clsX_pow, Units.val_one]440441/-- `ℤ ∋ z ↦ u^z`, as an additive hom into the additive group of the unit group. -/442noncomputable def zpowAddHom (n : ℕ) : ℤ →+ Additive (Qpoly p n)ˣ where443 toFun z := Additive.ofMul (unitX p n ^ z)444 map_zero' := by simp445 map_add' := by446 intro a b447 simp [zpow_add]448449theorem zpowAddHom_apply (n : ℕ) (z : ℤ) :450 zpowAddHom p n z = Additive.ofMul (unitX p n ^ z) := rfl451452/-- The additive hom `ZMod (p^n) → (ℤ_p[T]/(g))ˣ` sending `1` to `1+T`. -/453noncomputable def zmodAddHom (n : ℕ) : ZMod (p ^ n) →+ Additive (Qpoly p n)ˣ :=454 ZMod.lift (p ^ n) ⟨zpowAddHom p n, by455 show Additive.ofMul (unitX p n ^ (((p ^ n : ℕ)) : ℤ)) = 0456 rw [zpow_natCast, unitX_pow]457 rfl⟩458459theorem zmodAddHom_apply (n : ℕ) (x : ZMod (p ^ n)) :460 zmodAddHom p n x = ZMod.lift (p ^ n) ⟨zpowAddHom p n, by461 show Additive.ofMul (unitX p n ^ (((p ^ n : ℕ)) : ℤ)) = 0462 rw [zpow_natCast, unitX_pow]463 rfl⟩ x := rfl464465/-- The multiplicative hom `Γ_n → (ℤ_p[T]/(g))ˣ`, `γ_n ↦ 1 + T`. -/466noncomputable def grpHom (n : ℕ) : Multiplicative (ZMod (p ^ n)) →* (Qpoly p n)ˣ where467 toFun m := (zmodAddHom p n m.toAdd).toMul468 map_one' := by469 show (zmodAddHom p n (Multiplicative.toAdd 1)).toMul = 1470 rw [show Multiplicative.toAdd (1 : Multiplicative (ZMod (p ^ n))) = 0 from rfl, map_zero]471 rfl472 map_mul' := by473 intro a b474 show (zmodAddHom p n (Multiplicative.toAdd (a * b))).toMul =475 (zmodAddHom p n a.toAdd).toMul * (zmodAddHom p n b.toAdd).toMul476 rw [toAdd_mul, map_add, toMul_add]477478theorem grpHom_ofAdd (n k : ℕ) :479 grpHom p n (Multiplicative.ofAdd ((k : ZMod (p ^ n)))) = unitX p n ^ k := by480 have hcast : ((k : ℕ) : ZMod (p ^ n)) = ((k : ℤ) : ZMod (p ^ n)) := by push_cast; ring481 rw [hcast]482 show (zmodAddHom p n ((k : ℤ) : ZMod (p ^ n))).toMul = _483 rw [zmodAddHom_apply, ZMod.lift_coe, zpowAddHom_apply, zpow_natCast]484 rfl485486/-! ### The algebra map `ℤ_p[Γ_n] → ℤ_p[T]/(g)`, `γ_n ↦ 1 + T` -/487488/-- The inverse isomorphism `ℤ_p[Γ_n] → ℤ_p[T]/(g)` of (4.6): `γ_n ↦ 1 + T`. -/489noncomputable def psi (n : ℕ) :490 MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))) →ₐ[ℤ_[p]] Qpoly p n :=491 (MonoidAlgebra.lift ℤ_[p] (Qpoly p n) (Multiplicative (ZMod (p ^ n))))492 ((Units.coeHom (Qpoly p n)).comp (grpHom p n))493494theorem psi_gammaN (n : ℕ) : psi p n (gammaN p n) = clsX p n := by495 have h1 : (1 : ZMod (p ^ n)) = ((1 : ℕ) : ZMod (p ^ n)) := by norm_num496 rw [psi, gammaN, MonoidAlgebra.lift_of]497 rw [show (Multiplicative.ofAdd (1 : ZMod (p ^ n)))498 = Multiplicative.ofAdd ((1 : ℕ) : ZMod (p ^ n)) from by rw [← h1]]499 rw [MonoidHom.comp_apply, Units.coeHom_apply, grpHom_ofAdd, pow_one, unitX_val]500501/-! ### The algebra map `ℤ_p[T]/(g) → ℤ_p[Γ_n]`, `T ↦ γ_n - 1` -/502503theorem aeval_gPoly (n : ℕ) : Polynomial.aeval (gammaN p n - 1) (gPoly p n) = 0 := by504 have h1 : Polynomial.aeval (gammaN p n - 1) (1 + Polynomial.X : Polynomial ℤ_[p])505 = gammaN p n := by506 rw [map_add, map_one, Polynomial.aeval_X]507 ring508 have hone : Polynomial.aeval (gammaN p n - 1) (1 : Polynomial ℤ_[p]) = 1 := map_one _509 rw [gPoly, map_sub, map_pow, h1, hone, gammaN_pow, sub_self]510511/-- The isomorphism `ℤ_p[T]/(g) → ℤ_p[Γ_n]` of (4.6): `T ↦ γ_n - 1`. -/512noncomputable def phi (n : ℕ) :513 Qpoly p n →ₐ[ℤ_[p]] MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))) :=514 Ideal.Quotient.liftₐ (Ideal.span {gPoly p n}) (Polynomial.aeval (gammaN p n - 1))515 (by516 intro a ha517 rw [Ideal.mem_span_singleton] at ha518 obtain ⟨b, hb⟩ := ha519 rw [hb, map_mul, aeval_gPoly, zero_mul])520521theorem phi_mk (n : ℕ) (a : Polynomial ℤ_[p]) :522 phi p n (Ideal.Quotient.mk (Ideal.span {gPoly p n}) a)523 = Polynomial.aeval (gammaN p n - 1) a := rfl524525theorem phi_clsX (n : ℕ) : phi p n (clsX p n) = gammaN p n := by526 have h1 : Polynomial.aeval (gammaN p n - 1) (1 + Polynomial.X : Polynomial ℤ_[p])527 = gammaN p n := by528 rw [map_add, map_one, Polynomial.aeval_X]529 ring530 rw [clsX, phi_mk, h1]531532theorem phi_unitX (n : ℕ) : phi p n (unitX p n : Qpoly p n) = gammaN p n := by533 rw [unitX_val, phi_clsX]534535/-! ### The two composites are the identity -/536537theorem psi_phi (n : ℕ) : (psi p n).comp (phi p n) = AlgHom.id ℤ_[p] (Qpoly p n) := by538 have hone : (psi p n) (1 : MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n)))) = 1 :=539 map_one _540 have hone' : (phi p n) (1 : Qpoly p n) = 1 := map_one _541 have h1 : ((psi p n).comp (phi p n)) (clsX p n - 1) = clsX p n - 1 := by542 rw [AlgHom.comp_apply, map_sub, phi_clsX, map_sub, hone', hone, psi_gammaN]543 have hX : ((psi p n).comp (phi p n))544 ((Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) Polynomial.X)545 = (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) Polynomial.X := by546 have hcls : (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) Polynomial.X547 = clsX p n - 1 := by548 rw [Ideal.Quotient.mkₐ_eq_mk, clsX]549 have hpol : (Polynomial.X : Polynomial ℤ_[p]) = (1 + Polynomial.X) - 1 := by ring550 rw [hpol]551 simp552 rw [hcls]553 exact h1554 have h : ((psi p n).comp (phi p n)).comp555 (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n}))556 = (AlgHom.id ℤ_[p] (Qpoly p n)).comp557 (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) :=558 Polynomial.algHom_ext hX559 refine AlgHom.ext fun y => ?_560 obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective y561 exact congr($h a)562563theorem phi_psi (n : ℕ) :564 (phi p n).comp (psi p n)565 = AlgHom.id ℤ_[p] (MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n)))) := by566 have key : ∀ m : Multiplicative (ZMod (p ^ n)),567 phi p n (psi p n (MonoidAlgebra.of ℤ_[p] (Multiplicative (ZMod (p ^ n))) m))568 = MonoidAlgebra.of ℤ_[p] (Multiplicative (ZMod (p ^ n))) m := by569 intro m570 have : NeZero (p ^ n) := ⟨(pow_pos_p p n).ne'⟩571 have hm : (Multiplicative.ofAdd ((m.toAdd).val : ZMod (p ^ n))) = m := by572 rw [ZMod.natCast_zmod_val, ofAdd_toAdd]573 rw [psi, MonoidAlgebra.lift_of, MonoidHom.comp_apply, Units.coeHom_apply, ← hm,574 grpHom_ofAdd, Units.val_pow_eq_pow_val, map_pow, phi_unitX, gammaN, ← map_pow,575 ofAdd_one_pow]576 rw [MonoidAlgebra.lift_unique' ((phi p n).comp (psi p n)),577 MonoidAlgebra.lift_unique' (AlgHom.id ℤ_[p] _)]578 congr 1579 refine MonoidHom.ext fun m => ?_580 simpa using key m581582/-! ### The distinguished quotient isomorphism -/583584theorem span_coe_gPoly (n : ℕ) :585 Ideal.span {((gPoly p n : Polynomial ℤ_[p]) : PowerSeries ℤ_[p])}586 = Ideal.span {gSeries p n} := by587 rw [coe_gPoly]588589noncomputable def polySeriesEquiv (n : ℕ) :590 Qpoly p n ≃ₐ[ℤ_[p]] Qseries p n :=591 (Polynomial.IsDistinguishedAt.algEquivQuotient (isDistinguished_gPoly p n)).trans592 (Ideal.quotientEquivAlgOfEq ℤ_[p] (span_coe_gPoly p n))593594theorem polySeriesEquiv_mk (n : ℕ) (f : Polynomial ℤ_[p]) :595 polySeriesEquiv p n (Ideal.Quotient.mk (Ideal.span {gPoly p n}) f)596 = Ideal.Quotient.mk (Ideal.span {gSeries p n}) ((f : PowerSeries ℤ_[p])) := by597 rw [polySeriesEquiv, AlgEquiv.trans_apply]598 simp [Polynomial.IsDistinguishedAt.algEquivQuotient_apply, Ideal.quotientEquivAlgOfEq_mk]599600end Iso601602section Final603604/-- The `ℤ_p`-algebra surjection `ℤ_p⟦T⟧ ↠ ℤ_p[Γ_n]` of Theorem E: reduce modulo605`(1+T)^{p^n} - 1` and then apply `T ↦ γ_n - 1`. -/606noncomputable def Phi (n : ℕ) :607 PowerSeries ℤ_[p] →+* MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))) :=608 ((phi p n).toRingHom.comp (polySeriesEquiv p n).symm.toRingHom).comp609 (Ideal.Quotient.mk (Ideal.span {gSeries p n}))610611theorem coe_one_add_X :612 ((1 + Polynomial.X : Polynomial ℤ_[p]) : PowerSeries ℤ_[p]) = 1 + PowerSeries.X := by613 push_cast614 ring615616theorem eqv_symm_apply_cls (n : ℕ) :617 (polySeriesEquiv p n).symm618 (Ideal.Quotient.mk (Ideal.span {gSeries p n}) (1 + PowerSeries.X))619 = Ideal.Quotient.mk (Ideal.span {gPoly p n}) (1 + Polynomial.X) := by620 rw [← coe_one_add_X, ← polySeriesEquiv_mk p n (1 + Polynomial.X)]621 exact (polySeriesEquiv p n).symm_apply_apply _622623theorem Phi_one_add_X (n : ℕ) : Phi p n (1 + PowerSeries.X) = gammaN p n := by624 rw [Phi, RingHom.comp_apply, RingHom.comp_apply]625 show (phi p n) ((polySeriesEquiv p n).symm626 (Ideal.Quotient.mk (Ideal.span {gSeries p n}) (1 + PowerSeries.X))) = gammaN p n627 rw [eqv_symm_apply_cls]628 exact phi_clsX p n629630theorem phi_injective (n : ℕ) : Function.Injective (phi p n) := by631 intro a b hab632 have h : (psi p n).comp (phi p n) = AlgHom.id ℤ_[p] (Qpoly p n) := psi_phi p n633 have h1 : ((psi p n).comp (phi p n)) a = ((psi p n).comp (phi p n)) b :=634 congrArg (fun y => (psi p n) y) hab635 rw [h] at h1636 simpa using h1637638theorem comp_ringHom_injective (n : ℕ) :639 Function.Injective640 ((phi p n).toRingHom.comp (polySeriesEquiv p n).symm.toRingHom) :=641 (phi_injective p n).comp (AlgEquiv.injective (polySeriesEquiv p n).symm)642643theorem Phi_ker (n : ℕ) :644 RingHom.ker (Phi p n) = Ideal.span {gSeries p n} := by645 rw [Phi, RingHom.ker_comp_of_injective _ (comp_ringHom_injective p n),646 Ideal.mk_ker]647648end Final649650/-! ## §5 The tower of group rings, its inverse limit, and the cone651652The level-`n` maps `Φ_n` are compatible with the projections of the tower, hence they653assemble into a ring homomorphism `ℤ_p⟦T⟧ → lim_n ℤ_p[Γ_n]`. Theorem E of the thesis is654the statement that this map is an isomorphism; the two halves are the finite-level kernel655theorem and the lifting of compatible families, both stated at the end of this section. -/656657/-! ### The tower of group rings and its projections -/658659noncomputable def castZMod (n m : ℕ) (hmn : m ≤ n) : ZMod (p ^ n) →+* ZMod (p ^ m) :=660 ZMod.castHom (pow_dvd_pow p hmn) (ZMod (p ^ m))661662noncomputable def projAlg (n m : ℕ) (hmn : m ≤ n) :663 MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))) →ₐ[ℤ_[p]]664 MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ m))) :=665 (MonoidAlgebra.lift ℤ_[p] _ _)666 ((MonoidAlgebra.of ℤ_[p] _).comp667 ((AddMonoidHom.toMultiplicative) (castZMod (p := p) n m hmn).toAddMonoidHom))668669theorem projAlg_gammaN (n m : ℕ) (hmn : m ≤ n) :670 projAlg p n m hmn (gammaN p n) = gammaN p m := by671 rw [projAlg, MonoidAlgebra.lift_of, MonoidHom.comp_apply, gammaN]672 congr 1673 have h1 : (ZMod.cast (1 : ZMod (p ^ n)) : ZMod (p ^ m)) = 1 :=674 ZMod.cast_one (pow_dvd_pow p hmn)675 show Multiplicative.ofAdd (ZMod.cast (1 : ZMod (p ^ n)) : ZMod (p ^ m))676 = Multiplicative.ofAdd 1677 rw [h1]678679/-! ### Divisibility of the level polynomials -/680681theorem gPoly_dvd {n m : ℕ} (hmn : m ≤ n) : gPoly p m ∣ gPoly p n := by682 obtain ⟨k, rfl⟩ : ∃ k, n = m + k := ⟨n - m, by omega⟩683 have h : (1 + Polynomial.X : Polynomial ℤ_[p]) ^ (p ^ (m + k))684 = ((1 + Polynomial.X) ^ (p ^ m)) ^ (p ^ k) := by685 rw [pow_add, pow_mul]686 rw [gPoly, gPoly, h]687 have := sub_dvd_pow_sub_pow ((1 + Polynomial.X : Polynomial ℤ_[p]) ^ (p ^ m)) 1 (p ^ k)688 simpa using this689690theorem gSeries_dvd {n m : ℕ} (hmn : m ≤ n) : gSeries p m ∣ gSeries p n := by691 obtain ⟨k, rfl⟩ : ∃ k, n = m + k := ⟨n - m, by omega⟩692 have h : (1 + PowerSeries.X : PowerSeries ℤ_[p]) ^ (p ^ (m + k))693 = ((1 + PowerSeries.X) ^ (p ^ m)) ^ (p ^ k) := by694 rw [pow_add, pow_mul]695 rw [gSeries, gSeries, h]696 have := sub_dvd_pow_sub_pow ((1 + PowerSeries.X : PowerSeries ℤ_[p]) ^ (p ^ m)) 1 (p ^ k)697 simpa using this698699/-! ### Quotient maps induced by the tower -/700701theorem mk_gPoly_eq_zero (n : ℕ) :702 Ideal.Quotient.mk (Ideal.span {gPoly p n}) (gPoly p n) = 0 := by703 rw [Ideal.Quotient.eq_zero_iff_mem]704 exact Ideal.subset_span (Set.mem_singleton _)705706theorem mk_gSeries_eq_zero (n : ℕ) :707 Ideal.Quotient.mk (Ideal.span {gSeries p n}) (gSeries p n) = 0 := by708 rw [Ideal.Quotient.eq_zero_iff_mem]709 exact Ideal.subset_span (Set.mem_singleton _)710711noncomputable def quotPoly (n m : ℕ) (hmn : m ≤ n) :712 Qpoly p n →ₐ[ℤ_[p]] Qpoly p m :=713 Ideal.Quotient.liftₐ (Ideal.span {gPoly p n}) (Ideal.Quotient.mkₐ ℤ_[p] _)714 (by715 intro a ha716 rw [Ideal.mem_span_singleton] at ha717 obtain ⟨b, hb⟩ := ha718 rw [hb, map_mul, Ideal.Quotient.mkₐ_eq_mk]719 have hz : Ideal.Quotient.mk (Ideal.span {gPoly p m}) (gPoly p n) = 0 := by720 rw [Ideal.Quotient.eq_zero_iff_mem, Ideal.mem_span_singleton]721 exact gPoly_dvd (p := p) hmn722 rw [hz, zero_mul])723724@[simp] theorem quotPoly_mk (n m : ℕ) (hmn : m ≤ n) (a : Polynomial ℤ_[p]) :725 quotPoly p n m hmn (Ideal.Quotient.mk (Ideal.span {gPoly p n}) a)726 = Ideal.Quotient.mk (Ideal.span {gPoly p m}) a := rfl727728noncomputable def quotSeries (n m : ℕ) (hmn : m ≤ n) :729 Qseries p n →ₐ[ℤ_[p]] Qseries p m :=730 Ideal.Quotient.liftₐ (Ideal.span {gSeries p n}) (Ideal.Quotient.mkₐ ℤ_[p] _)731 (by732 intro a ha733 rw [Ideal.mem_span_singleton] at ha734 obtain ⟨b, hb⟩ := ha735 rw [hb, map_mul, Ideal.Quotient.mkₐ_eq_mk]736 have hz : Ideal.Quotient.mk (Ideal.span {gSeries p m}) (gSeries p n) = 0 := by737 rw [Ideal.Quotient.eq_zero_iff_mem, Ideal.mem_span_singleton]738 exact gSeries_dvd (p := p) hmn739 rw [hz, zero_mul])740741@[simp] theorem quotSeries_mk (n m : ℕ) (hmn : m ≤ n) (a : PowerSeries ℤ_[p]) :742 quotSeries p n m hmn (Ideal.Quotient.mk (Ideal.span {gSeries p n}) a)743 = Ideal.Quotient.mk (Ideal.span {gSeries p m}) a := rfl744745/-! ### The class of `X` in the two quotients -/746747@[simp] theorem mk_X_eq (n : ℕ) :748 (Ideal.Quotient.mk (Ideal.span {gPoly p n}) Polynomial.X) = clsX p n - 1 := by749 rw [clsX]750 have hpol : (Polynomial.X : Polynomial ℤ_[p]) = (1 + Polynomial.X) - 1 := by ring751 rw [hpol]752 simp753754@[simp] theorem eqv_symm_mkS_X (n : ℕ) :755 (polySeriesEquiv p n).symm (Ideal.Quotient.mk (Ideal.span {gSeries p n}) PowerSeries.X)756 = Ideal.Quotient.mk (Ideal.span {gPoly p n}) Polynomial.X := by757 rw [AlgEquiv.symm_apply_eq, ← Polynomial.coe_X]758 exact (polySeriesEquiv_mk p n Polynomial.X).symm759760@[simp] theorem eqv_mkPoly_X (n : ℕ) :761 (polySeriesEquiv p n) (Ideal.Quotient.mk (Ideal.span {gPoly p n}) Polynomial.X)762 = Ideal.Quotient.mk (Ideal.span {gSeries p n}) PowerSeries.X := by763 rw [← Polynomial.coe_X]764 exact polySeriesEquiv_mk p n Polynomial.X765766@[simp] theorem eqv_toAlgHom_mkPoly_X (n : ℕ) :767 (polySeriesEquiv p n).toAlgHom768 ((Ideal.Quotient.mk (Ideal.span {gPoly p n})) Polynomial.X)769 = (Ideal.Quotient.mk (Ideal.span {gSeries p n})) PowerSeries.X :=770 eqv_mkPoly_X p n771772@[simp] theorem eqv_symm_toAlgHom_mkS_X (n : ℕ) :773 (polySeriesEquiv p n).symm.toAlgHom774 ((Ideal.Quotient.mk (Ideal.span {gSeries p n})) PowerSeries.X)775 = (Ideal.Quotient.mk (Ideal.span {gPoly p n})) Polynomial.X :=776 eqv_symm_mkS_X p n777778/-! ### Extensionality for algebra maps out of `Qseries` -/779780theorem algHom_ext_series {n m : ℕ} {f g : Qseries p n →ₐ[ℤ_[p]] Qseries p m}781 (h : f (Ideal.Quotient.mk (Ideal.span {gSeries p n}) PowerSeries.X)782 = g (Ideal.Quotient.mk (Ideal.span {gSeries p n}) PowerSeries.X)) : f = g := by783 have hX : ((f.comp (polySeriesEquiv p n).toAlgHom).comp784 (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n}))) Polynomial.X785 = ((g.comp (polySeriesEquiv p n).toAlgHom).comp786 (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n}))) Polynomial.X := by787 simpa only [AlgHom.comp_apply, Ideal.Quotient.mkₐ_eq_mk, eqv_toAlgHom_mkPoly_X] using h788 have h' := Polynomial.algHom_ext hX789 have h2 : f.comp (polySeriesEquiv p n).toAlgHom = g.comp (polySeriesEquiv p n).toAlgHom := by790 refine AlgHom.ext fun y => ?_791 obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective y792 exact congr($h' a)793 refine AlgHom.ext fun x => ?_794 have h3 := congr($h2 ((polySeriesEquiv p n).symm x))795 simpa using h3796797/-! ### The cone: `projAlg` is compatible with `Φ` -/798799theorem projAlg_phi (n m : ℕ) (hmn : m ≤ n) :800 (projAlg p n m hmn).comp (phi p n)801 = (phi p m).comp (quotPoly p n m hmn) := by802 have hone : (projAlg p n m hmn) (1 : MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))))803 = 1 := map_one _804 have hone' : (phi p m) (1 : Qpoly p m) = 1 := map_one _805 have hone'' : (phi p n) (1 : Qpoly p n) = 1 := map_one _806 have hL : ((projAlg p n m hmn).comp (phi p n))807 ((Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) Polynomial.X) = gammaN p m - 1 := by808 rw [AlgHom.comp_apply, Ideal.Quotient.mkₐ_eq_mk, mk_X_eq, map_sub, phi_clsX, map_sub,809 hone'', hone, projAlg_gammaN]810 have hR : ((phi p m).comp (quotPoly p n m hmn))811 ((Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) Polynomial.X) = gammaN p m - 1 := by812 rw [AlgHom.comp_apply, Ideal.Quotient.mkₐ_eq_mk, quotPoly_mk, mk_X_eq, map_sub, phi_clsX,813 hone']814 have hX : ((projAlg p n m hmn).comp (phi p n))815 ((Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) Polynomial.X)816 = ((phi p m).comp (quotPoly p n m hmn))817 ((Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) Polynomial.X) := by818 rw [hL, hR]819 have h : ((projAlg p n m hmn).comp (phi p n)).comp820 (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n}))821 = ((phi p m).comp (quotPoly p n m hmn)).comp822 (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gPoly p n})) :=823 Polynomial.algHom_ext hX824 refine AlgHom.ext fun y => ?_825 obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective y826 exact congr($h a)827828theorem eqv_quotPoly (n m : ℕ) (hmn : m ≤ n) (x : Qseries p n) :829 (polySeriesEquiv p m) (quotPoly p n m hmn ((polySeriesEquiv p n).symm x))830 = quotSeries p n m hmn x := by831 have key : (polySeriesEquiv p m).toAlgHom.comp832 ((quotPoly p n m hmn).comp (polySeriesEquiv p n).symm.toAlgHom)833 = quotSeries p n m hmn := by834 apply algHom_ext_series835 simp only [AlgHom.comp_apply, eqv_symm_toAlgHom_mkS_X, quotPoly_mk, eqv_toAlgHom_mkPoly_X,836 quotSeries_mk]837 exact congr($key x)838839theorem projAlg_Phi (n m : ℕ) (hmn : m ≤ n) (g : ℤ_[p]⟦X⟧) :840 projAlg p n m hmn (Phi p n g) = Phi p m g := by841 have h1 : Phi p n g = phi p n ((polySeriesEquiv p n).symm842 (Ideal.Quotient.mk (Ideal.span {gSeries p n}) g)) := rfl843 have h2 : Phi p m g = phi p m ((polySeriesEquiv p m).symm844 (Ideal.Quotient.mk (Ideal.span {gSeries p m}) g)) := rfl845 have hx : projAlg p n m hmn (phi p n ((polySeriesEquiv p n).symm846 (Ideal.Quotient.mk (Ideal.span {gSeries p n}) g)))847 = phi p m (quotPoly p n m hmn ((polySeriesEquiv p n).symm848 (Ideal.Quotient.mk (Ideal.span {gSeries p n}) g))) :=849 congr($(projAlg_phi p n m hmn) ((polySeriesEquiv p n).symm850 (Ideal.Quotient.mk (Ideal.span {gSeries p n}) g)))851 have hstep : quotPoly p n m hmn ((polySeriesEquiv p n).symm852 (Ideal.Quotient.mk (Ideal.span {gSeries p n}) g))853 = (polySeriesEquiv p m).symm (Ideal.Quotient.mk (Ideal.span {gSeries p m}) g) := by854 have hy := eqv_quotPoly p n m hmn (Ideal.Quotient.mk (Ideal.span {gSeries p n}) g)855 rw [quotSeries_mk] at hy856 rw [AlgEquiv.eq_symm_apply]857 exact hy858 rw [h1, h2, hx, hstep]859860/-! ### The inverse limit of the tower and the canonical map -/861862/-- The inverse limit `lim_n ℤ_p[Γ_n]` of the tower of group rings, as the subring of the863product consisting of the compatible families. This is `Λ(ℤ_p)` of (3.6) before864Theorem E identifies it with `ℤ_p⟦T⟧`. -/865def IwasawaLimit :866 Subring (∀ n : ℕ, MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n)))) where867 carrier := {f | ∀ ⦃m n : ℕ⦄ (hmn : m ≤ n), projAlg p n m hmn (f n) = f m}868 mul_mem' := by869 intro f g hf hg m n hmn870 simp only [Pi.mul_apply, map_mul, hf hmn, hg hmn]871 one_mem' := by872 intro m n hmn873 simp only [Pi.one_apply, map_one]874 add_mem' := by875 intro f g hf hg m n hmn876 simp only [Pi.add_apply, map_add, hf hmn, hg hmn]877 zero_mem' := by878 intro m n hmn879 simp only [Pi.zero_apply, map_zero]880 neg_mem' := by881 intro f hf m n hmn882 simp only [Pi.neg_apply, map_neg, hf hmn]883884/-- The canonical ring homomorphism `ℤ_p⟦T⟧ → lim_n ℤ_p[Γ_n]`, `T ↦ (γ_n - 1)_n`.885Theorem E says it is a ring isomorphism. -/886noncomputable def limitMap : ℤ_[p]⟦X⟧ →+* IwasawaLimit p :=887 RingHom.codRestrict (RingHom.pi fun n => Phi p n) (IwasawaLimit p)888 (by889 intro g m n hmn890 simp only [RingHom.pi_apply]891 exact projAlg_Phi p n m hmn g)892893@[simp]894theorem limitMap_apply (g : ℤ_[p]⟦X⟧) (n : ℕ) :895 ((limitMap p g : IwasawaLimit p) : ∀ n : ℕ,896 MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n)))) n = Phi p n g := rfl897898/-- Theorem E, reduced to its two halves: the canonical map `ℤ_p⟦T⟧ → lim_n ℤ_p[Γ_n]` is899injective (the finite-level kernel theorem: `⋂_n ((1+T)^{p^n}-1) = 0`) and surjective900(every compatible family of level-`n` Stickelberger-type elements comes from one series). -/901theorem theoremE_iff :902 Function.Bijective (limitMap p) ↔903 (Function.Injective (limitMap p) ∧ Function.Surjective (limitMap p)) :=904 Iff.rfl905906907908section Scaffolding909910/-- *Theorem E* (§3.1, [47, Theorem 7.1]), level-`n` form.911912For each `n` there is a surjective `ℤ_p`-algebra homomorphism913`ℤ_p⟦T⟧ ↠ ℤ_p[Γ_n]` sending `1+T ↦ γ_n`, with kernel the ideal `((1+T)^{p^n}-1)`.914915This is the composite `ℤ_p⟦T⟧ → ℤ_p⟦T⟧/((1+T)^{p^n}-1) ≅ ℤ_p[T]/((1+T)^{p^n}-1) ≅ ℤ_p[Γ_n]`;916the middle step is Weierstrass division by the monic polynomial `(1+T)^{p^n}-1`.917The proof uses Weierstrass division for the distinguished polynomial918`(1+T)^(p^n)-1`, explicit mutually inverse group-ring maps, and shows both the919surjectivity and the full `ℤ_p`-algebra structure below. -/920theorem exists_reduction (p : ℕ) [Fact p.Prime] (n : ℕ) :921 ∃ Φ : ℤ_[p]⟦X⟧ →+* MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))),922 Φ (1 + X) = gammaN p n ∧923 RingHom.ker Φ = Ideal.span {((1 + X) ^ (p ^ n) - 1 : ℤ_[p]⟦X⟧)} :=924 ⟨Phi p n, Phi_one_add_X p n, Phi_ker p n⟩925926/-- The finite-level quotient map with its actual `ℤ_p`-algebra structure displayed. -/927noncomputable def PhiAlgHom (n : ℕ) :928 PowerSeries ℤ_[p] →ₐ[ℤ_[p]] MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))) :=929 ((phi p n).comp (polySeriesEquiv p n).symm.toAlgHom).comp930 (Ideal.Quotient.mkₐ ℤ_[p] (Ideal.span {gSeries p n}))931932theorem PhiAlgHom_toRingHom (n : ℕ) : (PhiAlgHom p n).toRingHom = Phi p n := rfl933934/-- The stronger form of the source's finite-level assertion: an algebra surjection with935an explicitly computed kernel, rather than merely a ring homomorphism of that form. -/936theorem exists_reduction_algHom_surjective (p : ℕ) [Fact p.Prime] (n : ℕ) :937 ∃ Φ : PowerSeries ℤ_[p] →ₐ[ℤ_[p]] MonoidAlgebra ℤ_[p] (Multiplicative (ZMod (p ^ n))),938 Function.Surjective Φ ∧939 Φ (1 + PowerSeries.X) = gammaN p n ∧940 RingHom.ker Φ.toRingHom = Ideal.span {((1 + PowerSeries.X) ^ (p ^ n) - 1 : ℤ_[p]⟦X⟧)} := by941 refine ⟨PhiAlgHom p n, ?_, Phi_one_add_X p n, Phi_ker p n⟩942 intro y943 obtain ⟨c, hc⟩ := Ideal.Quotient.mk_surjective ((polySeriesEquiv p n) (psi p n y))944 refine ⟨c, ?_⟩945 change phi p n ((polySeriesEquiv p n).symm ((Ideal.Quotient.mk (Ideal.span {gSeries p n})) c)) = y946 rw [hc, AlgEquiv.symm_apply_apply]947 exact congr($(phi_psi p n) y)948949950end Scaffolding951952end Bhattacharya953954section Audit955#print axioms Bhattacharya.exists_reduction956#print axioms Bhattacharya.projAlg_Phi957#print axioms Bhattacharya.limitMap958#print axioms Bhattacharya.h_mul_gamma959#print axioms Bhattacharya.f_unique960#print axioms Bhattacharya.char_second_kind_even961#print axioms Bhattacharya.teichmuller_neg_one962#print axioms Bhattacharya.sum_char_eq_zero963#print axioms Bhattacharya.charIdem_mul_of964#print axioms Bhattacharya.charIdem_idem965#print axioms Bhattacharya.charIdem_mul_eq_zero966#print axioms Bhattacharya.gammaN_pow967#print axioms Bhattacharya.exists_reduction968end Audit