Contents
Iwasawa49.lean
Statement index · Original Lean file
1
import Thesis.Iwasawa23/-!4# Member m10 — Chapter 4, the Iwasawa layer: Lemmas 4.9 and 4.1056Stage 1: norm infrastructure in `ℂ_[p]` and "Lemma A" of the Chapter-4 proof7reconstruction (residually congruent level-`p` characters are equal).8-/910namespace Thesis11namespace Lemma491213open scoped BigOperators14open DirichletCharacter1516variable {p : ℕ} [Fact p.Prime]1718/-- A `ℕ` divisibility bound (`Nat.le_of_dvd` is not available under that name here). -/19lemma le_of_dvd_nat {a b : ℕ} (hb : 0 < b) (h : a ∣ b) : a ≤ b := by20 obtain ⟨k, hk⟩ := h21 have hk1 : 1 ≤ k := by22 rcases Nat.eq_zero_or_pos k with h0 | h023 · subst h0; simp at hk; omega24 · exact h025 calc a = a * 1 := (mul_one a).symm26 _ ≤ a * k := Nat.mul_le_mul_left a hk127 _ = b := hk.symm2829/-! ## Elementary norm facts in `ℂ_[p]` -/3031lemma norm_eq_one_of_pow_eq_one_cp {x : ℂ_[p]} {n : ℕ} (h : x ^ n = 1) (hn : n ≠ 0) :32 ‖x‖ = 1 := by33 have hpow : ‖x‖ ^ n = 1 := by rw [← norm_pow, h, norm_one]34 rcases lt_trichotomy ‖x‖ 1 with h1 | h1 | h135 · exact absurd hpow (ne_of_lt (pow_lt_one₀ (norm_nonneg x) h1 hn))36 · exact h137 · exact absurd hpow (ne_of_gt (one_lt_pow₀ h1 hn))3839lemma norm_natCast_eq_one_of_not_dvd {m : ℕ} (h : ¬ p ∣ m) : ‖(m : ℂ_[p])‖ = 1 := by40 rw [show (m : ℂ_[p]) = ((m : ℚ_[p]) : ℂ_[p]) by norm_cast, PadicComplex.norm_extends',41 Padic.norm_natCast_eq_one_iff]42 exact (Fact.out : Nat.Prime p).coprime_iff_not_dvd.mpr h4344lemma norm_natCast_lt_one_iff' {m : ℕ} : ‖(m : ℂ_[p])‖ < 1 ↔ p ∣ m := by45 rw [show (m : ℂ_[p]) = ((m : ℚ_[p]) : ℂ_[p]) by norm_cast, PadicComplex.norm_extends',46 Padic.norm_natCast_lt_one_iff]4748/-- Values of a level-`p` character at units are roots of unity, so have norm one. -/49lemma norm_apply_eq_one_of_isUnit (χ : DirichletCharacter ℂ_[p] p) {a : ZMod p}50 (ha : IsUnit a) : ‖χ a‖ = 1 := by51 obtain ⟨u, rfl⟩ := ha52 refine norm_eq_one_of_pow_eq_one_cp (n := p - 1) ?_ ?_53 · rw [← MulChar.pow_apply_coe, ← ZMod.card_units p, MulChar.pow_card_eq_one,54 MulChar.one_apply_coe]55 · have hp2 : 2 ≤ p := (Fact.out : Nat.Prime p).two_le56 omega5758lemma norm_apply_le_one (χ : DirichletCharacter ℂ_[p] p) (a : ZMod p) : ‖χ a‖ ≤ 1 := by59 by_cases ha : IsUnit a60 · rw [norm_apply_eq_one_of_isUnit χ ha]61 · rw [MulChar.map_nonunit χ ha, norm_zero]62 exact zero_le_one6364/-! ## Congruence algebra for `ResidueModEq` -/6566lemma residueModEq_add' {x x' y y' : ℂ_[p]} (hx : ResidueModEq p x x')67 (hy : ResidueModEq p y y') : ResidueModEq p (x + y) (x' + y') := by68 have h : x + y - (x' + y') = (x - x') + (y - y') := by ring69 rw [ResidueModEq, h]70 exact (PadicComplex.isNonarchimedean p _ _).trans_lt (max_lt hx hy)7172lemma residueModEq_trans' {x y z : ℂ_[p]} (h1 : ResidueModEq p x y)73 (h2 : ResidueModEq p y z) : ResidueModEq p x z := by74 have h : x - z = (x - y) + (y - z) := by ring75 rw [ResidueModEq, h]76 exact (PadicComplex.isNonarchimedean p _ _).trans_lt (max_lt h1 h2)7778lemma residueModEq_sum' {ι : Type*} (s : Finset ι) {f g : ι → ℂ_[p]}79 (h : ∀ i ∈ s, ResidueModEq p (f i) (g i)) :80 ResidueModEq p (∑ i ∈ s, f i) (∑ i ∈ s, g i) := by81 classical82 induction s using Finset.induction with83 | empty => simp [ResidueModEq]84 | insert a s ha ih =>85 rw [Finset.sum_insert ha, Finset.sum_insert ha]86 exact residueModEq_add' (h a (Finset.mem_insert_self a s))87 (ih fun i hi => h i (Finset.mem_insert_of_mem hi))8889lemma residueModEq_inv' {x y : ℂ_[p]} (hx : ‖x‖ = 1) (hy : ‖y‖ = 1)90 (h : ResidueModEq p x y) : ResidueModEq p x⁻¹ y⁻¹ := by91 have hx0 : x ≠ 0 := by intro h0; rw [h0, norm_zero] at hx; exact zero_ne_one hx92 have hy0 : y ≠ 0 := by intro h0; rw [h0, norm_zero] at hy; exact zero_ne_one hy93 have hxy : x⁻¹ - y⁻¹ = -(x - y) / (x * y) := by94 field_simp95 ring96 rw [ResidueModEq, hxy, norm_div, norm_neg, norm_mul, hx, hy, mul_one, div_one]97 exact h9899/-! ## Lemma A: residually congruent level-`p` characters coincide -/100101/-- **Lemma A** of `source/chapter-4-proof-reconstruction.md`: two characters modulo a102prime `p` whose values are congruent modulo `p` are equal. (The reduction of `μ_{p-1}`103into the residue field is injective, which is what makes the hypothesis collapse.) -/104theorem eq_of_residueModEq {θ₁ θ₂ : DirichletCharacter ℂ_[p] p}105 (h : ∀ a : ZMod p, ResidueModEq p (θ₁ a) (θ₂ a)) : θ₁ = θ₂ := by106 classical107 by_contra hne108 -- a unit where the two characters differ109 have hex : ∃ b : (ZMod p)ˣ, θ₁ (b : ZMod p) ≠ θ₂ (b : ZMod p) := by110 by_contra hall111 push Not at hall112 exact hne (MulChar.ext hall)113 obtain ⟨b, hb⟩ := hex114 set lam : ZMod p → ℂ_[p] := fun a => θ₁ a * (θ₂ a)⁻¹ with hlam115 have hb_ne : (b : ZMod p) ≠ 0 := by116 simpa using b.ne_zero117 have hθ₂b : θ₂ (b : ZMod p) ≠ 0 := by118 have h1 : ‖θ₂ (b : ZMod p)‖ = 1 := norm_apply_eq_one_of_isUnit θ₂ b.isUnit119 intro h0120 rw [h0, norm_zero] at h1121 exact zero_ne_one h1122 have hlamb : lam (b : ZMod p) ≠ 1 := by123 intro h1124 simp only [hlam] at h1125 apply hb126 have h2 : θ₁ (b : ZMod p) * (θ₂ (b : ZMod p))⁻¹ * θ₂ (b : ZMod p) =127 θ₂ (b : ZMod p) := by rw [h1, one_mul]128 rwa [mul_assoc, inv_mul_cancel₀ hθ₂b, mul_one] at h2129 -- multiplicativity of `lam` at units130 have hterm : ∀ a : ZMod p, lam ((b : ZMod p) * a) = lam (b : ZMod p) * lam a := by131 intro a132 simp only [hlam, map_mul, mul_inv]133 ring134 -- the sum of `lam` vanishes135 have hsum : ∑ a : ZMod p, lam a = 0 := by136 have key : ∑ a : ZMod p, lam ((b : ZMod p) * a) = ∑ a : ZMod p, lam a :=137 b.mulLeft_bijective.sum_comp lam138 have key2 : ∑ a : ZMod p, lam (b : ZMod p) * lam a = ∑ a : ZMod p, lam a := by139 simpa only [hterm] using key140 rw [← Finset.mul_sum] at key2141 have key := key2142 have hzero : (1 - lam (b : ZMod p)) * ∑ a : ZMod p, lam a = 0 := by143 rw [sub_mul, one_mul, key, sub_self]144 exact (mul_eq_zero.mp hzero).resolve_left (sub_ne_zero.mpr (Ne.symm hlamb))145 -- each nonzero value is congruent to one, and the value at zero vanishes146 have hcongr : ∀ a : ZMod p, a ≠ 0 → ResidueModEq p (lam a) 1 := by147 intro a ha148 have hunit : IsUnit a := isUnit_iff_ne_zero.mpr ha149 have hθ₂a : ‖θ₂ a‖ = 1 := norm_apply_eq_one_of_isUnit θ₂ hunit150 have hθ₂a0 : θ₂ a ≠ 0 := by151 intro h0; rw [h0, norm_zero] at hθ₂a; exact zero_ne_one hθ₂a152 have hsub : lam a - 1 = (θ₁ a - θ₂ a) * (θ₂ a)⁻¹ := by153 simp only [hlam]154 field_simp155 rw [ResidueModEq, hsub, norm_mul, norm_inv, hθ₂a, inv_one, mul_one]156 exact h a157 have hzero_val : lam 0 = 0 := by158 simp only [hlam, MulChar.map_zero, zero_mul]159 have hcong : ResidueModEq p (∑ a : ZMod p, lam a)160 (∑ a : ZMod p, (if a = 0 then (0 : ℂ_[p]) else 1)) := by161 refine residueModEq_sum' _ (fun a _ => ?_)162 by_cases ha : a = 0163 · rw [if_pos ha, ha, hzero_val]164 exact residueModEq_refl p 0165 · rw [if_neg ha]166 exact hcongr a ha167 have hval : ∑ a : ZMod p, (if a = 0 then (0 : ℂ_[p]) else 1) = (p : ℂ_[p]) - 1 := by168 have h1 : ∀ a : ZMod p, (if a = 0 then (0 : ℂ_[p]) else 1) =169 1 - (if a = 0 then (1 : ℂ_[p]) else 0) := by170 intro a171 split_ifs <;> simp172 simp only [h1, Finset.sum_sub_distrib, Finset.sum_const, Finset.card_univ, ZMod.card,173 nsmul_eq_mul, mul_one]174 congr 1175 rw [Finset.sum_ite_eq' Finset.univ (0 : ZMod p) (fun _ => (1 : ℂ_[p]))]176 simp177 rw [hsum, hval] at hcong178 have hlt : ‖((p - 1 : ℕ) : ℂ_[p])‖ < 1 := by179 have hp1 : 1 ≤ p := by have := (Fact.out : Nat.Prime p).two_le; omega180 rw [Nat.cast_sub hp1]181 rw [ResidueModEq] at hcong182 have h2 : ‖(p : ℂ_[p]) - 1‖ < 1 := by183 rwa [show (0 : ℂ_[p]) - ((p : ℂ_[p]) - 1) = -((p : ℂ_[p]) - 1) by ring,184 norm_neg] at hcong185 simpa using h2186 have hone : ‖((p - 1 : ℕ) : ℂ_[p])‖ = 1 := by187 refine norm_natCast_eq_one_of_not_dvd ?_188 intro hd189 have hp2 : 2 ≤ p := (Fact.out : Nat.Prime p).two_le190 have hpos : 0 < p - 1 := by omega191 have hle := le_of_dvd_nat hpos hd192 omega193 rw [hone] at hlt194 exact lt_irrefl 1 hlt195196197/-! ## Lemma 4.10: the constant-term congruence collapses -/198199/-- **Lemma 4.10** (Lemma A removes the thesis's Lemma 4.9/4.10 comparison): two residue200congruent level-`p` characters have the same constant term, so the interpolation201hypotheses `hfzero` give the required congruence immediately. -/202theorem iwasawa_constant_term_congruence_proof {n : ℕ}203 (f : DirichletCharacter ℂ_[p] p → PowerSeries ℚ_[p])204 (θ₁ θ₂ ω : DirichletCharacter ℂ_[p] p)205 (hω : IsTeichmullerCharacter (p := p) ω)206 (hθ₁ : θ₁ ≠ ω ^ (-(n : ℤ))) (hθ₂ : θ₂ ≠ ω ^ (-(n : ℤ)))207 (hchars : ∀ a : ZMod p, ResidueModEq p (θ₁ a) (θ₂ a))208 (hfint : ∀ θ : DirichletCharacter ℂ_[p] p, θ ≠ 1 → AllCoeffIntegral (f θ))209 (hfzero : ∀ θ : DirichletCharacter ℂ_[p] p,210 constantCoeffToCp (f (θ * ω ^ n)) =211 (1 - (θ * ω ^ (n - 1)) p) * dirichletValue (θ * ω ^ (n - 1)) 1) :212 ResidueModEq p (constantCoeffToCp (f (θ₁ * ω ^ n)))213 (constantCoeffToCp (f (θ₂ * ω ^ n))) := by214 have hEq : θ₁ = θ₂ := eq_of_residueModEq hchars215 rw [hEq]216 exact residueModEq_refl p _217218/-! ## The trivial character: `B₁,₁ = 0` at level `p` -/219220/-- Antisymmetric sums over `range n` vanish in `ℂ_[p]`. -/221lemma sum_range_eq_zero_of_reflect_neg {n : ℕ} {f : ℕ → ℂ_[p]}222 (h : ∀ i < n, f (n - 1 - i) = -f i) : ∑ i ∈ Finset.range n, f i = 0 := by223 have hrefl : ∑ i ∈ Finset.range n, f (n - 1 - i) = ∑ i ∈ Finset.range n, f i :=224 Finset.sum_range_reflect f n225 rw [Finset.sum_congr rfl (fun i hi => h i (Finset.mem_range.mp hi)),226 Finset.sum_neg_distrib] at hrefl227 have h2 : (2 : ℂ_[p]) * ∑ i ∈ Finset.range n, f i = 0 := by228 rw [two_mul]229 nth_rewrite 1 [hrefl.symm]230 exact neg_add_cancel _231 rcases mul_eq_zero.mp h2 with h0 | h0232 · norm_num at h0233 · exact h0234235/-- At level `p` the trivial character has `B₁,₁ = 0` (the `a = p` term drops out and the236remaining sum is antisymmetric under `a ↦ p - a`). -/237lemma generalizedBernoulli_one_one_eq_zero :238 generalizedBernoulli (1 : DirichletCharacter ℂ_[p] p) 1 = 0 := by239 haveI : NeZero p := ⟨(Fact.out : Nat.Prime p).ne_zero⟩240 have hp1 : 1 ≤ p := (Fact.out : Nat.Prime p).one_le241 have hp2 : 2 ≤ p := (Fact.out : Nat.Prime p).two_le242 have hpne : (p : ℂ_[p]) ≠ 0 := by243 exact_mod_cast (Fact.out : Nat.Prime p).ne_zero244 -- the `a = p` term vanishes245 have hB : generalizedBernoulli (1 : DirichletCharacter ℂ_[p] p) 1 =246 ∑ a ∈ Finset.Icc 1 (p - 1), ((a : ℂ_[p]) / (p : ℂ_[p]) - 1 / 2) := by247 rw [generalizedBernoulli_one]248 have hIcc : Finset.Icc 1 p = Finset.Icc 1 (p - 1 + 1) := by249 congr 1250 omega251 rw [hIcc, Finset.sum_Icc_succ_top (by omega : 1 ≤ p - 1 + 1)]252 have hlast : (1 : DirichletCharacter ℂ_[p] p) (((p - 1 + 1 : ℕ)) : ZMod p) *253 ((((p - 1 + 1 : ℕ)) : ℂ_[p]) / (p : ℂ_[p]) - 2⁻¹) = 0 := by254 rw [show ((p - 1 + 1 : ℕ) : ZMod p) = 0 by255 rw [show p - 1 + 1 = p by omega]; simp, MulChar.map_zero, zero_mul]256 rw [hlast, add_zero]257 refine Finset.sum_congr rfl (fun a ha => ?_)258 simp only [Finset.mem_Icc] at ha259 have hunit : IsUnit ((a : ℕ) : ZMod p) := by260 rw [isUnit_iff_ne_zero, Ne, ZMod.natCast_eq_zero_iff]261 intro hd262 have := le_of_dvd_nat (by omega) hd263 omega264 rw [MulChar.one_apply hunit, one_mul]265 norm_num266 have hIco : Finset.Icc 1 (p - 1) = Finset.Ico 1 p := by267 ext a268 simp only [Finset.mem_Icc, Finset.mem_Ico]269 omega270 rw [hB, hIco, Finset.sum_Ico_eq_sum_range]271 refine sum_range_eq_zero_of_reflect_neg (n := p - 1)272 (f := fun i => ((1 + i : ℕ) : ℂ_[p]) / (p : ℂ_[p]) - 1 / 2) ?_273 intro i hi274 have hsub : (1 + (p - 1 - 1 - i) : ℕ) = p - 1 - i := by omega275 rw [hsub, Nat.cast_sub (by omega : i ≤ p - 1), Nat.cast_sub hp1]276 push_cast277 field_simp278 ring279280281/-! ## Integrality of the generalized Bernoulli value `B₁,χ` at level `p`282283The proof follows Prasad's Lemma 10: multiply a nontrivial level-`p` character sum by284`1 - b·χ(b)` for a unit `b`; the quotient is an explicit integral element. -/285286lemma norm_sum_le_one {ι : Type*} (s : Finset ι) {f : ι → ℂ_[p]}287 (h : ∀ i ∈ s, ‖f i‖ ≤ 1) : ‖∑ i ∈ s, f i‖ ≤ 1 := by288 classical289 induction s using Finset.induction with290 | empty => simp291 | insert a s ha ih =>292 rw [Finset.sum_insert ha]293 refine (PadicComplex.isNonarchimedean p _ _).trans ?_294 exact max_le (h a (Finset.mem_insert_self a s))295 (ih fun i hi => h i (Finset.mem_insert_of_mem hi))296297/-- `x·y` modulo `p` differs from the product of the representatives by a bounded multiple298of `p`. -/299lemma cast_mul_cast_sub (x y : ZMod p) :300 (ZMod.cast (x * y) : ℂ_[p]) =301 (ZMod.cast x : ℂ_[p]) * (ZMod.cast y : ℂ_[p]) -302 (p : ℂ_[p]) * (((x.val * y.val) / p : ℕ) : ℂ_[p]) := by303 haveI : NeZero p := ⟨(Fact.out : Nat.Prime p).ne_zero⟩304 have h := Nat.div_add_mod (x.val * y.val) p305 have hval := ZMod.val_mul x y306 rw [ZMod.cast_eq_val, ZMod.cast_eq_val, ZMod.cast_eq_val, hval]307 have h' : (x.val * y.val) % p + p * (x.val * y.val / p) = x.val * y.val := by308 rw [Nat.add_comm]; exact h309 have hcast : ((((x.val * y.val) % p : ℕ)) : ℂ_[p]) +310 (p : ℂ_[p]) * ((((x.val * y.val) / p : ℕ)) : ℂ_[p]) =311 ((x.val : ℕ) : ℂ_[p]) * ((y.val : ℕ) : ℂ_[p]) := by312 calc ((((x.val * y.val) % p : ℕ)) : ℂ_[p]) +313 (p : ℂ_[p]) * ((((x.val * y.val) / p : ℕ)) : ℂ_[p])314 = (((x.val * y.val) % p + p * (x.val * y.val / p) : ℕ) : ℂ_[p]) := by push_cast; ring315 _ = ((x.val * y.val : ℕ) : ℂ_[p]) := by rw [h']316 _ = ((x.val : ℕ) : ℂ_[p]) * ((y.val : ℕ) : ℂ_[p]) := by push_cast; ring317 linear_combination hcast318319lemma nat_div_lt_of_lt_mul {m : ℕ} (hm : m < p * p) : m / p < p := by320 by_contra h321 push Not at h322 have h1 : p * p ≤ p * (m / p) := Nat.mul_le_mul_left p h323 have h2 : p * (m / p) ≤ m := Nat.mul_div_le m p324 omega325326lemma norm_natCast_le_one_of_lt {q : ℕ} (hq : q < p) : ‖(q : ℂ_[p])‖ ≤ 1 := by327 rcases Nat.eq_zero_or_pos q with h0 | hpos328 · subst h0; simp329 · have hnd : ¬ p ∣ q := by330 intro hd331 have hle := le_of_dvd_nat hpos hd332 omega333 rw [norm_natCast_eq_one_of_not_dvd hnd]334335/-- The explicit divisibility behind integrality of `B₁,χ` (Prasad, Lemma 10). If336`1 - b̄·χ(b)` is a unit then the character sum `∑ a, χ a · ā` is `p` times an integral337element. -/338lemma exists_padicIntegral_div (θ : DirichletCharacter ℂ_[p] p) (b : (ZMod p)ˣ)339 (hb : ‖1 - (ZMod.cast (b : ZMod p) : ℂ_[p]) * θ (b : ZMod p)‖ = 1) :340 ∃ T : ℂ_[p], (∑ a : ZMod p, θ a * (ZMod.cast a : ℂ_[p])) = (p : ℂ_[p]) * T ∧341 ‖T‖ ≤ 1 := by342 classical343 haveI : NeZero p := ⟨(Fact.out : Nat.Prime p).ne_zero⟩344 have hqlt : ∀ a : ZMod p, ((b : ZMod p).val * a.val) / p < p := by345 intro a346 refine nat_div_lt_of_lt_mul ?_347 have h1 : (b : ZMod p).val < p := ZMod.val_lt _348 have h2 : a.val < p := ZMod.val_lt _349 nlinarith350 set S : ℂ_[p] := ∑ a : ZMod p, θ a * (ZMod.cast a : ℂ_[p]) with hS351 set Q : ℂ_[p] := ∑ a : ZMod p, θ a * ((((b : ZMod p).val * a.val) / p : ℕ) : ℂ_[p]) with hQ352 set c : ℂ_[p] := (ZMod.cast (b : ZMod p) : ℂ_[p]) * θ (b : ZMod p) with hc353 have hQnorm : ‖Q‖ ≤ 1 := by354 rw [hQ]355 refine norm_sum_le_one _ (fun a _ => ?_)356 rw [norm_mul]357 exact mul_le_one₀ (norm_apply_le_one θ a) (norm_nonneg _) (norm_natCast_le_one_of_lt (hqlt a))358 have hkey : S = θ (b : ZMod p) * ((ZMod.cast (b : ZMod p) : ℂ_[p]) * S - (p : ℂ_[p]) * Q) := by359 have hsub : S = ∑ a : ZMod p, θ ((b : ZMod p) * a) * (ZMod.cast ((b : ZMod p) * a) : ℂ_[p]) := by360 rw [hS]361 exact (b.mulLeft_bijective.sum_comp (fun a => θ a * (ZMod.cast a : ℂ_[p]))).symm362 conv_lhs => rw [hsub]363 have hterm : ∀ a : ZMod p, θ ((b : ZMod p) * a) * (ZMod.cast ((b : ZMod p) * a) : ℂ_[p]) =364 θ (b : ZMod p) * (ZMod.cast (b : ZMod p) : ℂ_[p]) * (θ a * (ZMod.cast a : ℂ_[p])) -365 θ (b : ZMod p) * ((p : ℂ_[p]) * (θ a * ((((b : ZMod p).val * a.val) / p : ℕ) : ℂ_[p]))) := by366 intro a367 rw [map_mul, cast_mul_cast_sub (b : ZMod p) a]368 ring369 rw [Finset.sum_congr rfl (fun a _ => hterm a), Finset.sum_sub_distrib, hS, hQ]370 simp only [← Finset.mul_sum]371 ring372373 have hSQ : (1 - c) * S = -((p : ℂ_[p]) * (θ (b : ZMod p) * Q)) := by374 have h' : S - c * S = -((p : ℂ_[p]) * (θ (b : ZMod p) * Q)) := by375 nth_rewrite 1 [hkey]376 rw [hc]377 ring378 calc (1 - c) * S = S - c * S := by ring379 _ = _ := h'380 have h1mc : (1 - c) ≠ 0 := by381 intro h0382 rw [hc] at h0383 have h := hb384 rw [hc, h0, norm_zero] at h385 exact zero_ne_one h386 refine ⟨-((θ (b : ZMod p) * Q) / (1 - c)), ?_, ?_⟩387 · field_simp388 linear_combination hSQ389 · rw [norm_neg, norm_div, norm_mul, hb, div_one]390 calc ‖θ (b : ZMod p)‖ * ‖Q‖ ≤ 1 * 1 :=391 mul_le_mul (norm_apply_le_one θ _) hQnorm (norm_nonneg _) zero_le_one392 _ = 1 := mul_one 1393394/-- If `1 - b̄·χ(b)` is never a unit then `χ` is `ω⁻¹` (Lemma A). -/395lemma eq_omega_inv_of_forall_close {θ ω : DirichletCharacter ℂ_[p] p}396 (hω : IsTeichmullerCharacter (p := p) ω)397 (hbad : ∀ b : (ZMod p)ˣ,398 ‖1 - (ZMod.cast (b : ZMod p) : ℂ_[p]) * θ (b : ZMod p)‖ < 1) :399 θ = ω⁻¹ := by400 classical401 haveI : NeZero p := ⟨(Fact.out : Nat.Prime p).ne_zero⟩402 refine eq_of_residueModEq (fun a => ?_)403 by_cases ha : a = 0404 · rw [ha, MulChar.map_zero, MulChar.map_zero]405 exact residueModEq_refl p 0406 · obtain ⟨u, rfl⟩ := isUnit_iff_ne_zero.mpr ha407 have hnormc : ‖(ZMod.cast (u : ZMod p) : ℂ_[p])‖ = 1 := by408 rw [ZMod.cast_eq_val]409 refine norm_natCast_eq_one_of_not_dvd ?_410 intro hd411 have h1 : (u : ZMod p).val < p := ZMod.val_lt _412 have h2 : 0 < (u : ZMod p).val := Nat.pos_of_ne_zero ((ZMod.val_eq_zero _).not.mpr (by simpa using u.ne_zero))413 have := le_of_dvd_nat h2 hd414 omega415 have hωu : ResidueModEq p (ω (u : ZMod p)) (ZMod.cast (u : ZMod p) : ℂ_[p]) := hω.2 _416 have hnormω : ‖ω (u : ZMod p)‖ = 1 := norm_apply_eq_one_of_isUnit ω u.isUnit417 have hinv : ResidueModEq p (ω (u : ZMod p))⁻¹ ((ZMod.cast (u : ZMod p) : ℂ_[p]))⁻¹ :=418 residueModEq_inv' hnormω hnormc hωu419 have homega : (ω⁻¹) (u : ZMod p) = (ω (u : ZMod p))⁻¹ := by420 rw [MulChar.inv_apply_eq_inv]421 exact Ring.inverse_eq_inv _422 have htheta : ResidueModEq p (θ (u : ZMod p)) ((ZMod.cast (u : ZMod p) : ℂ_[p]))⁻¹ := by423 rw [ResidueModEq]424 have hc0 : (ZMod.cast (u : ZMod p) : ℂ_[p]) ≠ 0 := by425 intro h0426 rw [h0, norm_zero] at hnormc427 exact zero_ne_one hnormc428 have heq : θ (u : ZMod p) - ((ZMod.cast (u : ZMod p) : ℂ_[p]))⁻¹ =429 -(((ZMod.cast (u : ZMod p) : ℂ_[p]))⁻¹ *430 (1 - (ZMod.cast (u : ZMod p) : ℂ_[p]) * θ (u : ZMod p))) := by431 field_simp432 ring433 rw [heq, norm_neg, norm_mul, norm_inv, hnormc, inv_one, one_mul]434 exact hbad u435 rw [homega]436 exact residueModEq_trans' htheta (residueModEq_symm hinv)437438439/-- The literal `Icc 1 p` character sum of equation (2.9) rewritten as a sum over `ZMod p`. -/440lemma sum_Icc_mul_cast_eq_sum (θ : DirichletCharacter ℂ_[p] p) (hθ1 : θ ≠ 1) :441 (∑ a ∈ Finset.Icc 1 p, θ (a : ZMod p) * (a : ℂ_[p])) =442 ∑ a : ZMod p, θ a * (ZMod.cast a : ℂ_[p]) := by443 haveI : NeZero p := ⟨(Fact.out : Nat.Prime p).ne_zero⟩444 refine Finset.sum_bij (fun (a : ℕ) (_ : a ∈ Finset.Icc 1 p) => (a : ZMod p)) ?_ ?_ ?_ ?_445 · intro a _; exact Finset.mem_univ _446 · intro a ha b hb hab447 simp only [Finset.mem_Icc] at ha hb448 have hmod := (ZMod.natCast_eq_natCast_iff a b p).mp hab449 exact hmod.eq_of_abs_lt (by rw [abs_lt]; omega)450 · intro b _451 by_cases hb : b = 0452 · exact ⟨p, Finset.mem_Icc.mpr ⟨(Fact.out : Nat.Prime p).one_le, le_rfl⟩, by simp [hb]⟩453 · exact ⟨b.val, Finset.mem_Icc.mpr454 ⟨Nat.pos_of_ne_zero ((ZMod.val_eq_zero b).not.mpr hb), (ZMod.val_lt b).le⟩, by simp⟩455 · intro a ha456 simp only [Finset.mem_Icc] at ha457 rcases lt_or_eq_of_le ha.2 with hlt | heq458 · have hcast : (ZMod.cast ((a : ZMod p)) : ℂ_[p]) = (a : ℂ_[p]) := by459 rw [ZMod.cast_eq_val, ZMod.val_natCast_of_lt hlt]460 rw [hcast]461 · subst heq462 simp [MulChar.map_zero]463464/-- **Lemma 4.9's integrality half.** For `χ ≠ ω⁻¹` the value `B₁,χ` at level `p` is a465`p`-adic integer. -/466theorem generalizedBernoulli_one_padicIntegral {θ ω : DirichletCharacter ℂ_[p] p}467 (hω : IsTeichmullerCharacter (p := p) ω) (hθ : θ ≠ ω⁻¹) :468 PadicIntegral p (generalizedBernoulli θ 1) := by469 classical470 haveI : NeZero p := ⟨(Fact.out : Nat.Prime p).ne_zero⟩471 by_cases hθ1 : θ = 1472 · rw [hθ1, generalizedBernoulli_one_one_eq_zero]473 exact padicIntegral_zero p474 · rw [generalizedBernoulli_one_of_ne_one θ hθ1, sum_Icc_mul_cast_eq_sum θ hθ1]475 by_cases hwit : ∃ b : (ZMod p)ˣ,476 ‖1 - (ZMod.cast (b : ZMod p) : ℂ_[p]) * θ (b : ZMod p)‖ = 1477 · obtain ⟨b, hb⟩ := hwit478 obtain ⟨T, hT, hTnorm⟩ := exists_padicIntegral_div θ b hb479 rw [hT, PadicIntegral]480 have hpne : (p : ℂ_[p]) ≠ 0 := by481 exact_mod_cast (Fact.out : Nat.Prime p).ne_zero482 rw [← mul_assoc, inv_mul_cancel₀ hpne, one_mul]483 exact hTnorm484 · push Not at hwit485 have hle : ∀ b : (ZMod p)ˣ, ‖1 - (ZMod.cast (b : ZMod p) : ℂ_[p]) * θ (b : ZMod p)‖ ≤ 1 := by486 intro b487 have h1 : ‖(ZMod.cast (b : ZMod p) : ℂ_[p])‖ = 1 := by488 rw [ZMod.cast_eq_val]489 refine norm_natCast_eq_one_of_not_dvd ?_490 intro hd491 have hv1 : (b : ZMod p).val < p := ZMod.val_lt _492 have hv2 : 0 < (b : ZMod p).val :=493 Nat.pos_of_ne_zero ((ZMod.val_eq_zero _).not.mpr (by simpa using b.ne_zero))494 have := le_of_dvd_nat hv2 hd495 omega496 have h2 : ‖θ (b : ZMod p)‖ = 1 := norm_apply_eq_one_of_isUnit θ b.isUnit497 have hsub : (1 : ℂ_[p]) - (ZMod.cast (b : ZMod p) : ℂ_[p]) * θ (b : ZMod p) =498 1 + (-((ZMod.cast (b : ZMod p) : ℂ_[p]) * θ (b : ZMod p))) := by ring499 rw [hsub]500 refine (PadicComplex.isNonarchimedean p _ _).trans ?_501 rw [norm_one, norm_neg, norm_mul, h1, h2]502 exact max_le le_rfl (by norm_num)503 refine absurd (eq_omega_inv_of_forall_close hω (fun b => ?_)) hθ504 exact lt_of_le_of_ne (hle b) (hwit b)505506/-- **Lemma 4.9.** For two residue congruent characters `θ₁ ≡ θ₂ (mod p)`, both different507from `ω⁻¹`, the first generalized Bernoulli numbers are integral and congruent. -/508theorem generalizedBernoulli_one_residue_congruence_proof509 (θ₁ θ₂ ω : DirichletCharacter ℂ_[p] p)510 (hω : IsTeichmullerCharacter (p := p) ω)511 (hθ₁ : θ₁ ≠ ω⁻¹) (hθ₂ : θ₂ ≠ ω⁻¹)512 (hchars : ∀ a : ZMod p, ResidueModEq p (θ₁ a) (θ₂ a)) :513 PadicIntegral p (generalizedBernoulli θ₁ 1) ∧514 PadicIntegral p (generalizedBernoulli θ₂ 1) ∧515 ResidueModEq p (generalizedBernoulli θ₁ 1) (generalizedBernoulli θ₂ 1) := by516 have hEq : θ₁ = θ₂ := eq_of_residueModEq hchars517 subst hEq518 exact ⟨generalizedBernoulli_one_padicIntegral hω hθ₁,519 generalizedBernoulli_one_padicIntegral hω hθ₁, residueModEq_refl p _⟩520521end Lemma49522523variable {p : ℕ} [Fact p.Prime]524525/-- **Lemma 4.9**, expressed directly in terms of the first generalized526Bernoulli numbers. -/527theorem generalizedBernoulli_one_residue_congruence528 (θ₁ θ₂ ω : DirichletCharacter ℂ_[p] p)529 (hω : IsTeichmullerCharacter (p := p) ω)530 (hθ₁ : θ₁ ≠ ω⁻¹) (hθ₂ : θ₂ ≠ ω⁻¹)531 (hchars : ∀ a : ZMod p, ResidueModEq p (θ₁ a) (θ₂ a)) :532 PadicIntegral p (generalizedBernoulli θ₁ 1) ∧533 PadicIntegral p (generalizedBernoulli θ₂ 1) ∧534 ResidueModEq p (generalizedBernoulli θ₁ 1) (generalizedBernoulli θ₂ 1) :=535 Lemma49.generalizedBernoulli_one_residue_congruence_proof θ₁ θ₂ ω hω hθ₁ hθ₂ hchars536537538/-- **Lemma 4.10**, with the interpolation identity (4.16) and the integrality539part of Proposition 3.6 exposed as hypotheses on the Iwasawa assignment. -/540theorem iwasawa_constant_term_congruence {n : ℕ}541 (f : DirichletCharacter ℂ_[p] p → PowerSeries ℚ_[p])542 (θ₁ θ₂ ω : DirichletCharacter ℂ_[p] p)543 (hω : IsTeichmullerCharacter (p := p) ω)544 (hθ₁ : θ₁ ≠ ω ^ (-(n : ℤ))) (hθ₂ : θ₂ ≠ ω ^ (-(n : ℤ)))545 (hchars : ∀ a : ZMod p, ResidueModEq p (θ₁ a) (θ₂ a))546 (hfint : ∀ θ : DirichletCharacter ℂ_[p] p, θ ≠ 1 → AllCoeffIntegral (f θ))547 (hfzero : ∀ θ : DirichletCharacter ℂ_[p] p,548 constantCoeffToCp (f (θ * ω ^ n)) =549 (1 - (θ * ω ^ (n - 1)) p) * dirichletValue (θ * ω ^ (n - 1)) 1) :550 ResidueModEq p (constantCoeffToCp (f (θ₁ * ω ^ n)))551 (constantCoeffToCp (f (θ₂ * ω ^ n))) :=552 Lemma49.iwasawa_constant_term_congruence_proof f θ₁ θ₂ ω hω hθ₁ hθ₂ hchars hfint hfzero553554555end Thesis