Zeta and L-valuesBlueprintDependency graphThesis
Contents

Stickelberger.lean

Statement index · Original Lean file

1/-2Copyright: none. Author: swarm member m6 (Mathlib-only, no axioms).34# Stickelberger elements at finite level (Bhattacharya, MSc thesis, Chapter 3)56This file supplies the finite-level Stickelberger layer that Proposition 3.6 of78 Shubhrajit Bhattacharya, *On Some Congruences of Zeta and `L`-values at9 Negative Odd Integers*, MSc thesis, UBC, April 2024, §3.21011needs, without the (absent) inverse limit of group rings. Everything here lives in12the group ring `O[(ZMod N)ˣ]` of the tame quotient, with `N = p^(k+1)` the intended13application; the group `(ZMod N)ˣ` plays the role of `Gal(Q(μ_N)/Q)` through the14cyclotomic character `a ↦ σ_a`.1516Four groups of results (this is the finite-level half of Proposition 3.6; the17passage to `lim_n` inside `Λ(ℤ_p) ≅ ℤ_p⟦T⟧` is *not* claimed here):1819* `stickelberger`, `stickelbergerWeight` — the thesis's `ξ_n`, equations20 (3.13)/(3.19), namely `θ_N = ∑_{a ∈ (ZMod N)ˣ} (a/N)·σ_a⁻¹`, in the faithful21 `σ_a⁻¹` convention of the source.22* `charIdem_mul_stickelbergerWeight` — the *system of eigenvalues*: `ε_χ` acts on23 `θ_N(w)` by the scalar `∑_a (a/N)w(a)χ(a⁻¹)`; `stickelberger_eigenvalue` identifies24 the scalar for `w = 1` with the generalized Bernoulli number `B_{1,χ̄}` of Chapter 225 (Theorem D at `n = 1`, `L(0,χ̄) = -B_{1,χ̄}`).26* `stickelberger_integrality` (and the concrete `eta_integral` for `N = p^(n+1)`,27 `u = 1+p`) — the algebraic core of Proposition 3.6 / [47, Prop. 7.6(a)]:28 multiplying `θ_N` by `(1 - u·[u]⁻¹)` cancels the denominator `N` exactly, because29 the fractional-part identity (3.17) rewrites the product with *integer* coefficients.30 This is precisely the mechanism by which the thesis concludes `η_n(θ) ∈ ℤ_p[Γ_n]`31 from `ξ_n(θ) ∈ (1/N)·ℤ_p[Γ_n]`. The formal statement lives in the group ring of the32 full unit group `(ZMod N)ˣ`; transporting it to `ℤ_p[Γ_n]` needs the33 `Δ × Γ_n` splitting of `(ZMod p^(n+1))ˣ` (not built here).34* `stickelberger_level_compatibility` (and its weighted and integral forms) — the35 *norm compatibility* of consecutive levels, [47, Prop. 7.6(i), finite form]:36 `π_*(θ_{n+1}) = θ_n + ((p-1)/2)·∑_b σ_b⁻¹`, so for odd `p` the two levels agree37 modulo the integral group ring.3839No custom axioms and no `sorry` are used in this file.40-/41import Thesis.GeneralizedBernoulli42import Thesis.IwasawaAlgebra4344open scoped BigOperators4546namespace Bhattacharya4748variable {k : Type*} [Field k]4950/-! ## §1 The Stickelberger element `θ_N = ∑_a (a/N)·σ_a⁻¹`5152`(a : ZMod N).val` is the canonical representative of the residue class `a` in53`{0, …, N-1}`; for a unit it lies in `{1, …, N-1}`, matching the range54`0 < a < p^(n+1)` of (3.13). -/5556section Defs5758variable (N : ℕ) [NeZero N]5960/-- **Equations (3.13)/(3.19).** The finite-level Stickelberger element61`ξ_n = -(1/p^(n+1)) ∑_a a·σ_a⁻¹`, up to the global sign, with an arbitrary62multiplicative weight `w` (the thesis takes `w = θ* = ωθ⁻¹`; `w = 1` gives `ξ_n`).63The source writes `σ_a⁻¹`; that convention is kept here. -/64noncomputable def stickelbergerWeight (w : (ZMod N)ˣ →* kˣ) :65 MonoidAlgebra k (ZMod N)ˣ :=66 ∑ a : (ZMod N)ˣ,67 MonoidAlgebra.single (a⁻¹ : (ZMod N)ˣ) (((a : ZMod N).val : k) / (N : k) * (w a : k))6869/-- The unweighted Stickelberger element `θ_N = ∑_a (a/N)·σ_a⁻¹`. -/70noncomputable def stickelberger : MonoidAlgebra k (ZMod N)ˣ :=71 stickelbergerWeight (k := k) N 17273/-- Reindexing the source convention `σ_a⁻¹` into the `σ_s` coordinate: the74coefficient of `σ_s` in `θ_N` is `(s⁻¹)/N`. -/75theorem stickelbergerWeight_eq_sum (w : (ZMod N)ˣ →* kˣ) :76 stickelbergerWeight (k := k) N w =77 ∑ s : (ZMod N)ˣ,78 MonoidAlgebra.single s79 ((((s⁻¹ : (ZMod N)ˣ) : ZMod N).val : k) / (N : k) * (w s⁻¹ : k)) := by80 rw [stickelbergerWeight]81 refine Finset.sum_equiv (Equiv.inv (ZMod N)ˣ) (fun a => by simp) (fun a _ => ?_)82 simp8384end Defs8586/-! ## §2 The system of eigenvalues -/8788section Eigen8990variable (N : ℕ) [NeZero N] [CharZero k]9192/-- **System of eigenvalues for `θ_N`.** The idempotent `ε_χ` of Definition 3.493acts on the Stickelberger element by the scalar `∑_a (a/N)·w(a)·χ(a⁻¹)`.94This is Lemma 3.5 in action (the thesis's step `ε_{θ*}ξ_n = ξ_n(θ*)ε_{θ*}`),95and it is what makes `ξ_n(θ)` and `η_n(θ)` "systems" indexed by `θ`. -/96theorem charIdem_mul_stickelbergerWeight (w : (ZMod N)ˣ →* kˣ) (χ : (ZMod N)ˣ →* kˣ) :97 charIdem χ * stickelbergerWeight (k := k) N w =98 algebraMap k (MonoidAlgebra k (ZMod N)ˣ)99 (∑ a : (ZMod N)ˣ, ((a : ZMod N).val : k) / (N : k) * (w a : k) * (χ a⁻¹ : k)) *100 charIdem χ := by101 rw [stickelbergerWeight_eq_sum,102 charIdem_mul_sum χ103 (fun s : (ZMod N)ˣ =>104 (((s⁻¹ : (ZMod N)ˣ) : ZMod N).val : k) / (N : k) * (w s⁻¹ : k))]105 congr 2106 refine (Finset.sum_equiv (Equiv.inv (ZMod N)ˣ) (fun a => by simp) (fun a _ => ?_)).symm107 simp108109end Eigen110111/-! ## §3 The eigenvalue is the generalized Bernoulli number `B_{1,χ}`112113This is the point where Chapter 3's Stickelberger layer meets Chapter 2's114generalized Bernoulli numbers: for a nontrivial `ψ` modulo `N`,115116`∑_{a ∈ (ZMod N)ˣ} (a/N)·ψ(a) = B_{1,ψ} = (1/N) ∑_{a=1}^{N} ψ(a)·a`,117118so by Theorem D at `n = 1` the eigenvalue is `-L(0,ψ)`. -/119120section Sums121122/-- The canonical representatives `1, …, N` of `ZMod N` used in equation (2.9) exhaust123the residue classes. -/124lemma sum_Icc_eq_sum_zmod {B : Type*} [AddCommMonoid B] {N : ℕ} [NeZero N]125 (F : ZMod N → B) :126 ∑ a ∈ Finset.Icc 1 N, F (a : ZMod N) = ∑ a : ZMod N, F a := by127 by_cases hN : 1 < N128 · refine Finset.sum_bij (fun a _ => (a : ZMod N)) ?_ ?_ ?_ ?_129 · intro a _; exact Finset.mem_univ _130 · intro a ha b hb hab131 exact Nat.ModEq.eq_of_abs_lt ((ZMod.natCast_eq_natCast_iff a b N).mp hab) (by132 simp only [Finset.mem_Icc] at ha hb133 rw [abs_lt]134 omega)135 · intro b _136 by_cases hb0 : b = 0137 · refine ⟨N, Finset.mem_Icc.mpr ⟨by omega, le_rfl⟩, ?_⟩138 simp [hb0]139 · refine ⟨b.val, Finset.mem_Icc.mpr140 ⟨Nat.pos_of_ne_zero ((ZMod.val_eq_zero b).not.mpr hb0), (ZMod.val_lt b).le⟩, ?_⟩141 simp142 · intro a _; rfl143 · have hN1 : N = 1 := by144 have hpos : 0 < N := Nat.pos_of_ne_zero (NeZero.ne N)145 omega146 subst hN1147 have huniv : (Finset.univ : Finset (ZMod 1)) = {(1 : ZMod 1)} := by148 ext x149 simp only [Finset.mem_univ, Finset.mem_singleton, true_iff]150 exact Subsingleton.elim x 1151 rw [Finset.Icc_self, Finset.sum_singleton, huniv, Finset.sum_singleton]152 exact congrArg F (Subsingleton.elim (1 : ZMod 1) 0).symm153154/-- Summing over the units of `ZMod N` is the same as summing over the units inside155`ZMod N`, i.e. over the canonical representatives that are coprime to `N`. -/156lemma sum_units_eq_sum_filter {N : ℕ} [NeZero N] (f : ZMod N → k) :157 ∑ a : (ZMod N)ˣ, f (a : ZMod N)158 = ∑ b ∈ Finset.univ.filter (fun b : ZMod N => IsUnit b), f b := by159 refine Finset.sum_bij (fun a (_ : a ∈ Finset.univ) => (a : ZMod N)) ?_ ?_ ?_ ?_160 · intro a _161 exact Finset.mem_filter.mpr ⟨Finset.mem_univ _, a.isUnit⟩162 · intro a _ b _ hab163 exact Units.ext hab164 · intro b hb165 obtain ⟨-, hun⟩ := Finset.mem_filter.mp hb166 exact ⟨hun.unit, Finset.mem_univ _, hun.unit_spec⟩167 · intro a _; rfl168169/-- Non-units contribute nothing to a weighted sum against a Dirichlet character. -/170lemma sum_filter_isUnit_eq_sum {N : ℕ} [NeZero N] (ψ : DirichletCharacter k N) :171 (∑ b ∈ Finset.univ.filter (fun b : ZMod N => IsUnit b), ((b.val : k) * ψ b))172 = ∑ b : ZMod N, ((b.val : k) * ψ b) := by173 rw [Finset.sum_filter]174 exact Finset.sum_congr rfl fun b _ => by175 by_cases hb : IsUnit b176 · simp [hb]177 · simp [hb, MulChar.map_nonunit ψ hb]178179end Sums180181section Arithmetic182183variable {N : ℕ} [NeZero N]184185/-- The representatives of `1, …, N` are the canonical residues, and the single186exception `a = N` contributes nothing because `ψ(N) = ψ(0) = 0` for `ψ ≠ 1`,187`N > 1`. -/188lemma sum_Icc_mul_character_val (ψ : DirichletCharacter k N) (hψ : ψ ≠ 1) :189 ∑ a ∈ Finset.Icc 1 N, ψ (a : ZMod N) * (a : k)190 = ∑ a : (ZMod N)ˣ, ((a : ZMod N).val : k) * ψ (a : ZMod N) := by191 have hne1 : N ≠ 1 := by192 intro h193 subst h194 exact hψ (Subsingleton.elim _ _)195 have h2 : 2 ≤ N := by196 have hpos : 0 < N := Nat.pos_of_ne_zero (NeZero.ne N)197 omega198 have h0 : ¬ IsUnit (0 : ZMod N) := by199 intro hun200 have hc : Nat.Coprime 0 N := (ZMod.isUnit_iff_coprime 0 N).mp (by simpa using hun)201 rw [Nat.coprime_zero_left] at hc202 omega203 have hψ0 : ψ (0 : ZMod N) = 0 := MulChar.map_nonunit ψ h0204 have hpt : ∀ a ∈ Finset.Icc 1 N,205 ψ (a : ZMod N) * (a : k) = ((a : ZMod N).val : k) * ψ (a : ZMod N) := by206 intro a ha207 simp only [Finset.mem_Icc] at ha208 rcases lt_or_eq_of_le ha.2 with h | h209 · have hval : ((a : ZMod N)).val = a := by210 rw [ZMod.val_natCast, Nat.mod_eq_of_lt h]211 rw [hval, mul_comm]212 · subst h213 rw [ZMod.natCast_self, hψ0, ZMod.val_zero]214 simp215 rw [Finset.sum_congr rfl hpt]216 rw [sum_Icc_eq_sum_zmod (fun b : ZMod N => ((b.val : k) * ψ b))]217 exact ((sum_units_eq_sum_filter (fun b : ZMod N => ((b.val : k) * ψ b))).trans218 (sum_filter_isUnit_eq_sum ψ)).symm219220/-- **Stickelberger eigenvalue = generalized Bernoulli number.** For a nontrivial221Dirichlet character `ψ` modulo `N`,222`∑_{a ∈ (ZMod N)ˣ} (a/N)·ψ(a) = B_{1,ψ}`, i.e. (2.9) at `n = 1`. -/223theorem weighted_sum_eq_generalizedBernoulli [Algebra ℚ k] [CharZero k]224 (ψ : DirichletCharacter k N)225 (hψ : ψ ≠ 1) :226 ∑ a : (ZMod N)ˣ, ((a : ZMod N).val : k) / (N : k) * ψ (a : ZMod N)227 = Thesis.generalizedBernoulli ψ 1 := by228 have hN0 : (N : k) ≠ 0 := by229 have hpos : 0 < N := Nat.pos_of_ne_zero (NeZero.ne N)230 exact Nat.cast_ne_zero.mpr (Nat.pos_iff_ne_zero.mp hpos)231 rw [Thesis.generalizedBernoulli_one_of_ne_one ψ hψ, sum_Icc_mul_character_val ψ hψ,232 Finset.mul_sum]233 refine Finset.sum_congr rfl fun a _ => ?_234 field_simp235236/-- **Stickelberger eigenvalue at a Dirichlet character.** In the source's `σ_a⁻¹`237convention the idempotent `ε_χ` acts on `θ_N` by the generalized Bernoulli number of238the *inverse* character `χ̄ = χ⁻¹`: `ε_χ·θ_N = B_{1,χ̄}·ε_χ`. By Theorem D at239`n = 1` this scalar is `-L(0,χ̄)`. -/240theorem stickelberger_eigenvalue [Algebra ℚ k] [CharZero k]241 (χ : DirichletCharacter k N) (hχ : χ ≠ 1) :242 charIdem χ.toUnitHom * stickelberger (k := k) N =243 algebraMap k (MonoidAlgebra k (ZMod N)ˣ)244 (Thesis.generalizedBernoulli (χ⁻¹) 1) * charIdem χ.toUnitHom := by245 have hχinv : χ⁻¹ ≠ 1 := by246 intro h247 exact hχ (by simpa using congrArg (fun ψ : DirichletCharacter k N => ψ⁻¹) h)248 have hstep : charIdem χ.toUnitHom * stickelberger (k := k) N =249 algebraMap k (MonoidAlgebra k (ZMod N)ˣ)250 (∑ a : (ZMod N)ˣ,251 ((a : ZMod N).val : k) / (N : k) * (χ.toUnitHom a⁻¹ : k)) *252 charIdem χ.toUnitHom := by253 simpa only [stickelberger, MonoidHom.one_apply, Units.val_one, mul_one] using254 charIdem_mul_stickelbergerWeight (k := k) N (1 : (ZMod N)ˣ →* kˣ) χ.toUnitHom255 have hterm : ∀ a : (ZMod N)ˣ, (χ.toUnitHom a⁻¹ : k) = (χ⁻¹) ((a : ZMod N)) := by256 intro a257 have h1 : (χ.toUnitHom a⁻¹ : k) = (((χ.toUnitHom a)⁻¹ : kˣ) : k) := by rw [map_inv]258 rw [h1, Units.val_inv_eq_inv_val, MulChar.coe_toUnitHom, MulChar.inv_apply_eq_inv,259 Ring.inverse_eq_inv]260 have h1 : (∑ a : (ZMod N)ˣ, ((a : ZMod N).val : k) / (N : k) * (χ.toUnitHom a⁻¹ : k))261 = ∑ a : (ZMod N)ˣ, ((a : ZMod N).val : k) / (N : k) * ((χ⁻¹) ((a : ZMod N))) :=262 Finset.sum_congr rfl fun a _ => by rw [hterm a]263 rw [hstep, h1, weighted_sum_eq_generalizedBernoulli (χ⁻¹) hχinv]264265end Arithmetic266267/-! ## §4 Integrality: `(1 - u·[u]⁻¹)·θ_N` lies in the integral group ring268269Proposition 3.6 of the thesis (with [47, Prop. 7.6(a)]) asserts that the `p`-adic270Stickelberger elements `ξ_n(θ)` and `η_n(θ)` have integral coefficients after271applying the "`h(T)`-type" factor `1 - (1+p)γ_n(1+p)⁻¹`. The analytic content is the272existence of the limit; the *arithmetic* content is the following finite identity,273which is equation (3.17) at the level of group rings: shifting the index `a` by the274unit `u` rewrites the rational coefficients `a/N` as fractional parts, and the275difference of fractional parts is an **integer**.276277Concretely, the coefficients of `θ_N` have denominator dividing `N`; multiplying by278`1 - u·σ_u⁻¹` replaces each coefficient by `{au/N} - au/N = -⌊au/N⌋`. -/279280section Integrality281282variable {N : ℕ} [NeZero N] [CharZero k]283284/-- The integer coefficient that replaces `(b/N)w(b) - u·((u⁻¹b)/N)w(u⁻¹b)` in the285fractional-part computation (3.17): `z_b = (b - u·(u⁻¹b))/N`. -/286noncomputable def integerCoeff (u b : (ZMod N)ˣ) : ℤ :=287 (((b : ZMod N).val : ℤ) - ((u : ZMod N).val : ℤ) *288 (((b * u⁻¹ : (ZMod N)ˣ) : ZMod N).val : ℤ)) / (N : ℤ)289290/-- The divisibility behind (3.17): `b ≡ u·(u⁻¹b) (mod N)`, hence `N ∣ b - u·(u⁻¹b)`.291This is the single arithmetic input of the integrality of `η_n`. -/292lemma dvd_val_sub_mul_val (u b : (ZMod N)ˣ) :293 (N : ℤ) ∣ ((b : ZMod N).val : ℤ) - ((u : ZMod N).val : ℤ) *294 (((b * u⁻¹ : (ZMod N)ˣ) : ZMod N).val : ℤ) := by295 have hone : (u * (b * u⁻¹) : (ZMod N)ˣ) = b := by simp296 have hval : ((u : ZMod N) * ((b * u⁻¹ : (ZMod N)ˣ) : ZMod N)).val297 = (b : ZMod N).val := by rw [← Units.val_mul, hone]298 have hmod : (b : ZMod N).val ≡ ((u : ZMod N).val *299 ((b * u⁻¹ : (ZMod N)ˣ) : ZMod N).val) [MOD N] := by300 show (b : ZMod N).val % N = _301 rw [← hval, ZMod.val_mul, mul_comm, Nat.mod_mod]302 have h := hmod.dvd303 have h2 : (N : ℤ) ∣ -(((u : ZMod N).val : ℤ) *304 (((b * u⁻¹ : (ZMod N)ˣ) : ZMod N).val : ℤ) - ((b : ZMod N).val : ℤ)) := dvd_neg.mpr h305 simpa using h2306307/-- Cast form of `integerCoeff`: in `k` the integer `z_b` is the quotient by `N`. -/308lemma integerCoeff_spec (u b : (ZMod N)ˣ) :309 ((integerCoeff u b : ℤ) : k)310 = (((b : ZMod N).val : k) - ((u : ZMod N).val : k) *311 (((b * u⁻¹ : (ZMod N)ˣ) : ZMod N).val : k)) / (N : k) := by312 have hN0 : (N : k) ≠ 0 := by313 have hpos : 0 < N := Nat.pos_of_ne_zero (NeZero.ne N)314 exact Nat.cast_ne_zero.mpr (Nat.pos_iff_ne_zero.mp hpos)315 have h1 := congrArg (fun m : ℤ => (m : k)) (Int.mul_ediv_cancel' (dvd_val_sub_mul_val u b))316 push_cast at h1317 rw [integerCoeff, eq_div_iff hN0, mul_comm]318 exact h1319320/-- **Proposition 3.6, arithmetic core (equation (3.17)).** Let `w` be a321multiplicative weight with `w u = 1` — in the thesis `w = θ* := ωθ⁻¹` and `u = 1+p`,322for which `ω(1+p) = θ(1+p) = 1`. Then the weighted Stickelberger element323`ξ = ∑_a (a/N)·w(a)·σ_a⁻¹` satisfies324325`(1 - u·σ_u⁻¹)·ξ = ∑_b w(b)·z_b·σ_b⁻¹` with `z_b = (b - u·(u⁻¹b))/N ∈ ℤ`,326327so `(1 - u·σ_u⁻¹)·ξ` lies in the integral group ring `ℤ[(ZMod N)ˣ]` (hence in328`ℤ_p[(ZMod N)ˣ]` after scalar extension). This is the finite-level form of329`η_n(θ) ∈ ℤ_p[Γ_n]`, up to the `Δ × Γ_n` splitting; the other half of Proposition 3.6,330the compatibility of the levels, is §6. -/331theorem stickelberger_integrality332 (w : (ZMod N)ˣ →* kˣ) (u : (ZMod N)ˣ) (hu : w u = 1) :333 ∃ z : (ZMod N)ˣ → ℤ,334 (1 - algebraMap k (MonoidAlgebra k (ZMod N)ˣ) ((u : ZMod N).val : k) *335 MonoidAlgebra.of k (ZMod N)ˣ u⁻¹) * stickelbergerWeight (k := k) N w =336 ∑ a : (ZMod N)ˣ, MonoidAlgebra.single a⁻¹ ((w a : k) * ((z a : ℤ) : k)) := by337 classical338 have hN0 : (N : k) ≠ 0 := by339 have hpos : 0 < N := Nat.pos_of_ne_zero (NeZero.ne N)340 exact Nat.cast_ne_zero.mpr (Nat.pos_iff_ne_zero.mp hpos)341 have hw : ∀ b : (ZMod N)ˣ, (w (b * u⁻¹) : k) = (w b : k) := by342 intro b343 have h1 : w (b * u⁻¹) = w b * (w u)⁻¹ := by rw [map_mul, map_inv, hu, inv_one, mul_one]344 rw [h1, hu, inv_one, mul_one]345 have hcoef : ∀ b : (ZMod N)ˣ,346 ((b : ZMod N).val : k) / (N : k) * (w b : k) - ((u : ZMod N).val : k) *347 ((((b * u⁻¹ : (ZMod N)ˣ) : ZMod N).val : k) / (N : k) * (w (b * u⁻¹) : k))348 = (w b : k) * ((integerCoeff u b : ℤ) : k) := by349 intro b350 rw [hw b, integerCoeff_spec u b]351 field_simp352 refine ⟨integerCoeff u, ?_⟩353 have hstep : (algebraMap k (MonoidAlgebra k (ZMod N)ˣ) ((u : ZMod N).val : k) *354 MonoidAlgebra.of k (ZMod N)ˣ u⁻¹) * stickelbergerWeight (k := k) N w355 = ∑ b : (ZMod N)ˣ, MonoidAlgebra.single b⁻¹ (((u : ZMod N).val : k) *356 ((((b * u⁻¹ : (ZMod N)ˣ) : ZMod N).val : k) / (N : k) * (w (b * u⁻¹) : k))) := by357 rw [← MonoidAlgebra.single_eq_algebraMap_mul_of, stickelbergerWeight, Finset.mul_sum]358 simp only [MonoidAlgebra.single_mul_single]359 refine Finset.sum_equiv (Equiv.mulRight u) (fun a => by simp) (fun a _ => ?_)360 simp [mul_inv_rev]361 rw [sub_mul, one_mul, hstep, stickelbergerWeight, ← Finset.sum_sub_distrib]362 refine Finset.sum_congr rfl fun b _ => ?_363 rw [← MonoidAlgebra.single_sub, ← hcoef b]364365end Integrality366367/-! ## §5 The concrete case of §3.2: `N = p^(n+1)` and `u = 1 + p`368369The thesis's `η_n` is obtained from `ξ_n` by the factor `1 - (1+p)γ_n(1+p)⁻¹`370(equations (3.13)–(3.17)), where `1+p` is the topological generator of `Γ = 1+pℤ_p`. -/371372section OneAddP373374/-- `1 + p` is a unit modulo `p^(n+1)`: the topological generator `γ` of `Γ`. -/375lemma coprime_one_add_p (p n : ℕ) [Fact p.Prime] :376 Nat.Coprime (1 + p) (p ^ (n + 1)) := by377 have hp := (Fact.out : p.Prime)378 have h1 : p.Coprime (1 + p) := hp.coprime_iff_not_dvd.mpr (by379 intro hdvd380 have h2 : p ∣ (1 + p) - p := Nat.dvd_sub hdvd (dvd_refl p)381 exact hp.not_dvd_one (by simpa using h2))382 exact (Nat.Coprime.pow_left (n + 1) h1).symm383384/-- `1 + p < p^(n+1)` for `n ≥ 1`: the canonical representative of the unit `1+p`385modulo `p^(n+1)` is `1+p` itself. -/386lemma one_add_p_lt_pow (p n : ℕ) [Fact p.Prime] (hn : 1 ≤ n) :387 1 + p < p ^ (n + 1) := by388 have hp2 : 2 ≤ p := (Fact.out : p.Prime).two_le389 have hmono : p ^ 2 ≤ p ^ (n + 1) :=390 Nat.pow_le_pow_right (by omega) (by omega)391 have hsq : p + 1 < p ^ 2 := by nlinarith392 omega393394/-- The generator `γ_n(1+p)` of `Γ_n` as a unit of `ZMod (p^(n+1))`. -/395def gammaUnit (p n : ℕ) [Fact p.Prime] : (ZMod (p ^ (n + 1)))ˣ :=396 ZMod.unitOfCoprime (1 + p) (coprime_one_add_p p n)397398/-- The canonical representative of `γ_n(1+p)` is `1+p` for `n ≥ 1`. -/399theorem gammaUnit_val (p n : ℕ) [Fact p.Prime] (hn : 1 ≤ n) :400 ((gammaUnit p n : ZMod (p ^ (n + 1))).val) = 1 + p := by401 rw [gammaUnit, ZMod.coe_unitOfCoprime, ZMod.val_natCast,402 Nat.mod_eq_of_lt (one_add_p_lt_pow p n hn)]403404/-- **`η_n` has integral coefficients (Proposition 3.6 / [47, Prop. 7.6(a)], finite405level, trivial weight).** For `N = p^(n+1)`, multiplying the Stickelberger element406`ξ_n = ∑_a (a/N)σ_a⁻¹` by `1 - (1+p)·σ_{1+p}⁻¹` produces an element of the integral407group ring `ℤ[(ZMod p^(n+1))ˣ]`, hence an integral element of `ℚ_p[(ZMod p^(n+1))ˣ]`.408(Identifying this ring with `ℤ_p[Γ_n]` requires the `Δ × Γ_n` splitting.) -/409theorem eta_integral (p n : ℕ) [Fact p.Prime] (hn : 1 ≤ n) :410 ∃ z : (ZMod (p ^ (n + 1)))ˣ → ℤ,411 (1 - algebraMap ℚ_[p] (MonoidAlgebra ℚ_[p] (ZMod (p ^ (n + 1)))ˣ)412 ((1 + p : ℕ) : ℚ_[p]) *413 MonoidAlgebra.of ℚ_[p] (ZMod (p ^ (n + 1)))ˣ (gammaUnit p n)⁻¹) *414 stickelberger (k := ℚ_[p]) (p ^ (n + 1)) =415 ∑ a : (ZMod (p ^ (n + 1)))ˣ, MonoidAlgebra.single a⁻¹ ((z a : ℤ) : ℚ_[p]) := by416 obtain ⟨z, hz⟩ := stickelberger_integrality (k := ℚ_[p]) (N := p ^ (n + 1))417 (1 : (ZMod (p ^ (n + 1)))ˣ →* ℚ_[p]ˣ) (gammaUnit p n) rfl418 refine ⟨z, ?_⟩419 simp only [stickelberger, MonoidHom.one_apply, Units.val_one, one_mul,420 gammaUnit_val p n hn] at hz ⊢421 exact hz422423end OneAddP424425/-! ## §6 Norm compatibility of the levels (Proposition 3.6, second half)426427The finite-level content of "`lim_n ξ_n(θ) ↔ f(T,θ)`" is that the Stickelberger428elements of consecutive levels are compatible under the projection429`π : (ZMod p^(n+1))ˣ →* (ZMod p^n)ˣ`. The classical computation430([47, Prop. 7.6(i)]) gives, for `M = p^n` and `N = p·M`,431432`π_*(θ_N) = θ_M + ((p-1)/2)·∑_{b ∈ (ZMod M)ˣ} σ_b⁻¹`,433434because the fibre of `π` over `b` is the arithmetic progression435`b, b + M, …, b + (p-1)M` and `∑_t (b + tM)/(pM) = b/M + (p-1)/2`.436The extra sum is an element of the integral group ring, so `θ_N` and `θ_M` agree437modulo integers — which is what makes the limit `lim ξ_n` an element of `Λ`. -/438439section Level440441variable (p n : ℕ) [Fact p.Prime]442443omit [Fact p.Prime] in444/-- `p^n ∣ p^(n+1)`. -/445lemma pow_dvd_pow_succ : p ^ n ∣ p ^ (n + 1) := pow_dvd_pow p (Nat.le_succ n)446447/-- The projection `π : (ZMod p^(n+1))ˣ →* (ZMod p^n)ˣ` of the unit groups. -/448def levelProj : (ZMod (p ^ (n + 1)))ˣ →* (ZMod (p ^ n))ˣ :=449 ZMod.unitsMap (pow_dvd_pow_succ p n)450451omit [Fact p.Prime] in452/-- The coercion of `π a` is the reduction of the coercion of `a`. -/453lemma levelProj_coe (a : (ZMod (p ^ (n + 1)))ˣ) :454 ((levelProj p n a : ZMod (p ^ n))) = ((a : ZMod (p ^ (n + 1)))).cast := by455 show (ZMod.castHom (pow_dvd_pow_succ p n) (ZMod (p ^ n)))456 ((a : ZMod (p ^ (n + 1)))) = _457 rw [ZMod.castHom_apply]458459/-- `π` is reduction of the canonical representative modulo `p^n`. -/460lemma levelProj_val (a : (ZMod (p ^ (n + 1)))ˣ) :461 ((levelProj p n a : ZMod (p ^ n)).val) = ((a : ZMod (p ^ (n + 1))).val) % p ^ n := by462 rw [levelProj_coe, ZMod.cast_eq_val, ZMod.val_natCast]463464/-- `b.val + p^n·t` is coprime to `p^(n+1)`: it is `≡ b.val ≢ 0` modulo `p`. -/465lemma levelLift_coprime (hn : 1 ≤ n) (b : (ZMod (p ^ n))ˣ) (t : ℕ) :466 Nat.Coprime (((b : ZMod (p ^ n)).val + p ^ n * t)) (p ^ (n + 1)) := by467 have hpP := (Fact.out : p.Prime)468 have hbM : Nat.Coprime ((b : ZMod (p ^ n)).val) (p ^ n) := by469 have hun : IsUnit ((((b : ZMod (p ^ n)).val : ℕ) : ZMod (p ^ n))) := by470 rw [ZMod.natCast_zmod_val]; exact b.isUnit471 exact (ZMod.isUnit_iff_coprime ((b : ZMod (p ^ n)).val) (p ^ n)).mp hun472 have hpM : p ∣ p ^ n := dvd_pow_self p (by omega)473 have hbp : Nat.Coprime ((b : ZMod (p ^ n)).val) p := Nat.Coprime.coprime_dvd_right hpM hbM474 have h1 : ¬ p ∣ (((b : ZMod (p ^ n)).val + p ^ n * t)) := by475 intro hdvd476 have hpdvd : p ∣ p ^ n * t := Dvd.dvd.mul_right hpM t477 have hsub : p ∣ (((b : ZMod (p ^ n)).val + p ^ n * t)) - p ^ n * t :=478 Nat.dvd_sub hdvd hpdvd479 exact (hpP.coprime_iff_not_dvd).mp hbp.symm (by simpa using hsub)480 have h2 : p.Coprime (((b : ZMod (p ^ n)).val + p ^ n * t)) :=481 (hpP.coprime_iff_not_dvd).mpr h1482 exact (Nat.Coprime.pow_left (n + 1) h2).symm483484/-- The lift of `b : (ZMod p^n)ˣ` to the residue class `b + p^n·t` modulo `p^(n+1)`. -/485def levelLift (hn : 1 ≤ n) (b : (ZMod (p ^ n))ˣ) (t : ℕ) : (ZMod (p ^ (n + 1)))ˣ :=486 ZMod.unitOfCoprime (((b : ZMod (p ^ n)).val + p ^ n * t)) (levelLift_coprime p n hn b t)487488/-- The canonical representative of the lift is `b.val + p^n·t`. -/489lemma levelLift_val (hn : 1 ≤ n) (b : (ZMod (p ^ n))ˣ) {t : ℕ} (ht : t < p) :490 ((levelLift p n hn b t : ZMod (p ^ (n + 1))).val) = ((b : ZMod (p ^ n)).val + p ^ n * t) := by491 rw [levelLift, ZMod.coe_unitOfCoprime, ZMod.val_natCast,492 Nat.mod_eq_of_lt (by493 have hb : ((b : ZMod (p ^ n)).val) < p ^ n := ZMod.val_lt _494 have hM : 0 < p ^ n := pow_pos (Fact.out : p.Prime).pos n495 have hlt : ((b : ZMod (p ^ n)).val) + p ^ n * t < p ^ n * p := by nlinarith496 rwa [pow_succ])]497498/-- `π` inverts the level lift. -/499lemma levelProj_lift (hn : 1 ≤ n) (b : (ZMod (p ^ n))ˣ) (t : ℕ) :500 levelProj p n (levelLift p n hn b t) = b := by501 apply Units.ext502 rw [levelProj_coe, levelLift, ZMod.coe_unitOfCoprime,503 ZMod.cast_natCast (pow_dvd_pow_succ p n), Nat.cast_add, Nat.cast_mul,504 ZMod.natCast_self, zero_mul, add_zero, ZMod.natCast_zmod_val]505506end Level507508section LevelMain509510variable (p n : ℕ) [Fact p.Prime]511512/-- The fibre of `π` over `b` is the arithmetic progression `b, b + p^n, …, b + (p-1)p^n`:513the level lift is a bijection. -/514lemma levelLift_bijective (hn : 1 ≤ n) :515 Function.Bijective516 (fun x : (ZMod (p ^ n))ˣ × Fin p => levelLift p n hn x.1 (x.2 : ℕ)) := by517 have hp0 : 0 < p ^ n := pow_pos (Fact.out : p.Prime).pos n518 constructor519 · rintro ⟨b, t⟩ ⟨b', t'⟩ h520 have ht : (t : ℕ) < p := t.isLt521 have ht' : (t' : ℕ) < p := t'.isLt522 have h' : levelLift p n hn b (t : ℕ) = levelLift p n hn b' (t' : ℕ) := h523 have hv : ((b : ZMod (p ^ n)).val + p ^ n * (t : ℕ))524 = ((b' : ZMod (p ^ n)).val + p ^ n * (t' : ℕ)) := by525 rw [← levelLift_val p n hn b ht, h', levelLift_val p n hn b' ht']526 have hbmod : ((b : ZMod (p ^ n)).val) = ((b' : ZMod (p ^ n)).val) := by527 have h1 := congrArg (fun x : ℕ => x % p ^ n) hv528 simp only [Nat.add_mul_mod_self_left,529 Nat.mod_eq_of_lt (ZMod.val_lt (b : ZMod (p ^ n))),530 Nat.mod_eq_of_lt (ZMod.val_lt (b' : ZMod (p ^ n)))] at h1531 exact h1532 have hb : b = b' := by533 apply Units.ext534 rw [← ZMod.natCast_zmod_val (b : ZMod (p ^ n)),535 ← ZMod.natCast_zmod_val (b' : ZMod (p ^ n)), hbmod]536 have htt : t = t' := by537 refine Fin.ext ?_538 have hv' := hv539 rw [hbmod] at hv'540 exact Nat.mul_left_cancel hp0 (Nat.add_left_cancel hv')541 rw [hb, htt]542 · intro a543 have ha : ((a : ZMod (p ^ (n + 1))).val) < p * p ^ n := by544 rw [mul_comm, ← pow_succ]545 exact ZMod.val_lt _546 set q : ℕ := ((a : ZMod (p ^ (n + 1))).val) / p ^ n with hq547 have hdiv : q < p := by548 rw [hq]549 exact (Nat.div_lt_iff_lt_mul hp0).mpr ha550 refine ⟨(levelProj p n a, ⟨q, hdiv⟩), ?_⟩551 apply Units.ext552 have hv : ((levelLift p n hn (levelProj p n a) q : ZMod (p ^ (n + 1))).val)553 = ((a : ZMod (p ^ (n + 1))).val) := by554 rw [levelLift_val p n hn _ hdiv, levelProj_val, hq, Nat.mod_add_div]555 rw [← ZMod.natCast_zmod_val (levelLift p n hn (levelProj p n a) q :556 ZMod (p ^ (n + 1))),557 ← ZMod.natCast_zmod_val (a : ZMod (p ^ (n + 1))), hv]558559/-- The fibre sum of the Stickelberger weights: for `M = p^n`, `N = p·M`,560`∑_{t<p} (b + tM)/(pM) = b/M + (p-1)/2`. This is the evaluation of (3.17) that makes561`π_*(θ_N) - θ_M` integral. -/562lemma level_fiber_sum (hn : 1 ≤ n) (b : (ZMod (p ^ n))ˣ) :563 (∑ t : Fin p, ((((levelLift p n hn b t : ZMod (p ^ (n + 1))).val : ℚ)) /564 ((p ^ (n + 1) : ℕ) : ℚ)))565 = ((((b : ZMod (p ^ n)).val : ℚ)) / ((p ^ n : ℕ) : ℚ)) + (((p - 1 : ℕ) : ℚ) / 2) := by566 have hpP := (Fact.out : p.Prime)567 have hp0 : 0 < p ^ n := pow_pos hpP.pos n568 have hM0 : (((p ^ n : ℕ)) : ℚ) ≠ 0 := by569 have : (0 : ℚ) < ((p ^ n : ℕ) : ℚ) := by positivity570 exact ne_of_gt this571 have hp0q : (p : ℚ) ≠ 0 := by572 have : (0 : ℚ) < (p : ℚ) := by exact_mod_cast hpP.pos573 exact ne_of_gt this574 have hsum_t : (∑ t : Fin p, (t : ℚ)) = (p : ℚ) * ((p : ℚ) - 1) / 2 := by575 have hsub : (((p - 1 : ℕ)) : ℚ) = (p : ℚ) - 1 := by576 rw [Nat.cast_sub hpP.one_lt.le]577 norm_num578 have h := congrArg (fun m : ℕ => (m : ℚ)) (Finset.sum_range_id_mul_two p)579 push_cast at h580 rw [hsub] at h581 rw [Fin.sum_univ_eq_sum_range (fun i => (i : ℚ)) p, ← h]582 ring583 have hterm : ∀ t : Fin p,584 ((((levelLift p n hn b t : ZMod (p ^ (n + 1))).val : ℚ)) /585 ((p ^ (n + 1) : ℕ) : ℚ))586 = (((((b : ZMod (p ^ n)).val : ℚ)) + ((p ^ n : ℕ) : ℚ) * (t : ℚ)) /587 (((p ^ n : ℕ) : ℚ) * (p : ℚ))) := by588 intro t589 rw [levelLift_val p n hn b t.isLt, pow_succ]590 push_cast591 ring592 rw [Finset.sum_congr rfl (fun t (_ : t ∈ Finset.univ) => hterm t),593 ← Finset.sum_div, Finset.sum_add_distrib, Finset.sum_const, Finset.card_univ,594 Fintype.card_fin, nsmul_eq_mul, ← Finset.mul_sum, hsum_t]595 have hsub : (((p - 1 : ℕ)) : ℚ) = (p : ℚ) - 1 := by596 rw [Nat.cast_sub hpP.one_lt.le]597 norm_num598 field_simp599 rw [hsub]600601/-- **Norm compatibility of consecutive levels (Proposition 3.6, finite form).**602On the group ring of `(ZMod p^n)ˣ`, the pushforward of the Stickelberger element of603level `n+1` differs from that of level `n` by an integral element:604`π_*(θ_(n+1)) = θ_n + ((p-1)/2)·∑_b σ_b⁻¹`. -/605theorem stickelberger_level_compatibility (hn : 1 ≤ n) :606 (∑ a : (ZMod (p ^ (n + 1)))ˣ,607 MonoidAlgebra.single (levelProj p n a)⁻¹608 ((((a : ZMod (p ^ (n + 1))).val : ℚ)) / ((p ^ (n + 1) : ℕ) : ℚ)))609 = (∑ b : (ZMod (p ^ n))ˣ,610 MonoidAlgebra.single b⁻¹ ((((b : ZMod (p ^ n)).val : ℚ)) / ((p ^ n : ℕ) : ℚ)))611 + ∑ b : (ZMod (p ^ n))ˣ, MonoidAlgebra.single b⁻¹ (((p - 1 : ℕ) : ℚ) / 2) := by612 classical613 -- Step 1: change variables along the fibre bijection614 have hstep : (∑ x : (ZMod (p ^ n))ˣ × Fin p,615 MonoidAlgebra.single (levelProj p n (levelLift p n hn x.1 x.2))⁻¹616 ((((levelLift p n hn x.1 (x.2 : ℕ) : ZMod (p ^ (n + 1))).val : ℚ)) /617 ((p ^ (n + 1) : ℕ) : ℚ)))618 = ∑ a : (ZMod (p ^ (n + 1)))ˣ, MonoidAlgebra.single (levelProj p n a)⁻¹619 ((((a : ZMod (p ^ (n + 1))).val : ℚ)) / ((p ^ (n + 1) : ℕ) : ℚ)) := by620 refine Finset.sum_bijective621 (fun x : (ZMod (p ^ n))ˣ × Fin p => levelLift p n hn x.1 (x.2 : ℕ))622 (levelLift_bijective p n hn) (fun i => by simp) (fun i _ => rfl)623 rw [← hstep, Fintype.sum_prod_type]624 -- Step 2: the fibre sum625 have hinner : ∀ b : (ZMod (p ^ n))ˣ,626 (∑ t : Fin p, MonoidAlgebra.single (levelProj p n (levelLift p n hn b t))⁻¹627 ((((levelLift p n hn b t : ZMod (p ^ (n + 1))).val : ℚ)) /628 ((p ^ (n + 1) : ℕ) : ℚ)))629 = MonoidAlgebra.single b⁻¹ ((((b : ZMod (p ^ n)).val : ℚ)) / ((p ^ n : ℕ) : ℚ))630 + MonoidAlgebra.single b⁻¹ (((p - 1 : ℕ) : ℚ) / 2) := by631 intro b632 have hproj : ∀ t : Fin p, levelProj p n (levelLift p n hn b t) = b :=633 fun t => levelProj_lift p n hn b t634 simp only [hproj]635 have hcomb : (∑ t : Fin p, MonoidAlgebra.single b⁻¹636 ((((levelLift p n hn b t : ZMod (p ^ (n + 1))).val : ℚ)) /637 ((p ^ (n + 1) : ℕ) : ℚ)))638 = MonoidAlgebra.single b⁻¹ (∑ t : Fin p,639 ((((levelLift p n hn b t : ZMod (p ^ (n + 1))).val : ℚ)) /640 ((p ^ (n + 1) : ℕ) : ℚ))) := by641 simp only [← MonoidAlgebra.singleAddHom_apply, map_sum]642 rw [hcomb, level_fiber_sum p n hn b, MonoidAlgebra.single_add]643 rw [Finset.sum_congr rfl (fun b (_ : b ∈ Finset.univ) => hinner b), Finset.sum_add_distrib]644645/-- **Norm compatibility of the character-twisted systems.** For any multiplicative646character `w` of `(ZMod p^n)ˣ`, the weighted Stickelberger elements647`ξ_N(w) = ∑_a (a/N)w(π a)σ_a⁻¹` are compatible between levels: the difference648`π_*(ξ_(n+1)(w)) - ξ_n(w)` is the integral element `∑_b (p-1)/2·w(b)σ_b⁻¹`.649This is the finite-level form of the compatibility of the systems `ξ_n(θ)` of (3.19). -/650theorem stickelbergerWeight_level_compatibility (hn : 1 ≤ n)651 (w : (ZMod (p ^ n))ˣ →* ℚˣ) :652 (∑ a : (ZMod (p ^ (n + 1)))ˣ,653 MonoidAlgebra.single (levelProj p n a)⁻¹654 ((((a : ZMod (p ^ (n + 1))).val : ℚ)) / ((p ^ (n + 1) : ℕ) : ℚ) *655 (w (levelProj p n a) : ℚ)))656 = (∑ b : (ZMod (p ^ n))ˣ,657 MonoidAlgebra.single b⁻¹658 ((((b : ZMod (p ^ n)).val : ℚ)) / ((p ^ n : ℕ) : ℚ) * (w b : ℚ)))659 + ∑ b : (ZMod (p ^ n))ˣ,660 MonoidAlgebra.single b⁻¹ (((p - 1 : ℕ) : ℚ) / 2 * (w b : ℚ)) := by661 classical662 have hstep : (∑ x : (ZMod (p ^ n))ˣ × Fin p,663 MonoidAlgebra.single (levelProj p n (levelLift p n hn x.1 x.2))⁻¹664 ((((levelLift p n hn x.1 (x.2 : ℕ) : ZMod (p ^ (n + 1))).val : ℚ)) /665 ((p ^ (n + 1) : ℕ) : ℚ) *666 (w (levelProj p n (levelLift p n hn x.1 x.2)) : ℚ)))667 = ∑ a : (ZMod (p ^ (n + 1)))ˣ, MonoidAlgebra.single (levelProj p n a)⁻¹668 ((((a : ZMod (p ^ (n + 1))).val : ℚ)) / ((p ^ (n + 1) : ℕ) : ℚ) *669 (w (levelProj p n a) : ℚ)) := by670 refine Finset.sum_bijective671 (fun x : (ZMod (p ^ n))ˣ × Fin p => levelLift p n hn x.1 (x.2 : ℕ))672 (levelLift_bijective p n hn) (fun i => by simp) (fun i _ => rfl)673 rw [← hstep, Fintype.sum_prod_type]674 have hinner : ∀ b : (ZMod (p ^ n))ˣ,675 (∑ t : Fin p, MonoidAlgebra.single (levelProj p n (levelLift p n hn b t))⁻¹676 ((((levelLift p n hn b t : ZMod (p ^ (n + 1))).val : ℚ)) /677 ((p ^ (n + 1) : ℕ) : ℚ) *678 (w (levelProj p n (levelLift p n hn b t)) : ℚ)))679 = MonoidAlgebra.single b⁻¹680 ((((b : ZMod (p ^ n)).val : ℚ)) / ((p ^ n : ℕ) : ℚ) * (w b : ℚ))681 + MonoidAlgebra.single b⁻¹ (((p - 1 : ℕ) : ℚ) / 2 * (w b : ℚ)) := by682 intro b683 have hproj : ∀ t : Fin p, levelProj p n (levelLift p n hn b t) = b :=684 fun t => levelProj_lift p n hn b t685 simp only [hproj]686 have hcomb : (∑ t : Fin p, MonoidAlgebra.single b⁻¹687 ((((levelLift p n hn b t : ZMod (p ^ (n + 1))).val : ℚ)) /688 ((p ^ (n + 1) : ℕ) : ℚ) * (w b : ℚ)))689 = MonoidAlgebra.single b⁻¹ (∑ t : Fin p,690 ((((levelLift p n hn b t : ZMod (p ^ (n + 1))).val : ℚ)) /691 ((p ^ (n + 1) : ℕ) : ℚ) * (w b : ℚ))) := by692 simp only [← MonoidAlgebra.singleAddHom_apply, map_sum]693 rw [hcomb, ← Finset.sum_mul, level_fiber_sum p n hn b, add_mul, MonoidAlgebra.single_add]694 rw [Finset.sum_congr rfl (fun b (_ : b ∈ Finset.univ) => hinner b), Finset.sum_add_distrib]695696/-- The trace of the augmentation element: `π_*(∑_a σ_a⁻¹) = p·∑_b σ_b⁻¹`, the697statement that the level correction `((p-1)/2)·∑_b σ_b⁻¹` scales by `p` under the698projection. Together with `stickelberger_level_compatibility` this is the699compatibility of the compatible system `(ξ_n)` used to build `lim_n ξ_n ∈ Λ`. -/700theorem levelProj_sum_units (hn : 1 ≤ n) :701 (∑ a : (ZMod (p ^ (n + 1)))ˣ, MonoidAlgebra.single (levelProj p n a)⁻¹ (1 : ℚ))702 = (p : ℚ) • ∑ b : (ZMod (p ^ n))ˣ, MonoidAlgebra.single b⁻¹ (1 : ℚ) := by703 classical704 have hstep : (∑ x : (ZMod (p ^ n))ˣ × Fin p,705 MonoidAlgebra.single (levelProj p n (levelLift p n hn x.1 x.2))⁻¹ (1 : ℚ))706 = ∑ a : (ZMod (p ^ (n + 1)))ˣ, MonoidAlgebra.single (levelProj p n a)⁻¹ (1 : ℚ) := by707 refine Finset.sum_bijective708 (fun x : (ZMod (p ^ n))ˣ × Fin p => levelLift p n hn x.1 (x.2 : ℕ))709 (levelLift_bijective p n hn) (fun i => by simp) (fun i _ => rfl)710 rw [← hstep, Fintype.sum_prod_type, Finset.smul_sum]711 refine Finset.sum_congr rfl fun b _ => ?_712 rw [Finset.sum_congr rfl (fun t (_ : t ∈ Finset.univ) => by713 rw [levelProj_lift p n hn b t]), Finset.sum_const, Finset.card_univ,714 Fintype.card_fin]715 rw [Nat.cast_smul_eq_nsmul]716717/-- For odd `p` the level correction is integral: `π_*(θ_(n+1)) - θ_n ∈ ℤ[(ZMod p^n)ˣ]`,718which is why the `ξ_n` give a well-defined element of `Λ(ℤ_p)`. -/719theorem stickelberger_level_compatibility_integral (hp : p ≠ 2) (hn : 1 ≤ n) :720 ∃ z : (ZMod (p ^ n))ˣ → ℤ,721 (∑ a : (ZMod (p ^ (n + 1)))ˣ,722 MonoidAlgebra.single (levelProj p n a)⁻¹723 ((((a : ZMod (p ^ (n + 1))).val : ℚ)) / ((p ^ (n + 1) : ℕ) : ℚ)))724 - (∑ b : (ZMod (p ^ n))ˣ,725 MonoidAlgebra.single b⁻¹ ((((b : ZMod (p ^ n)).val : ℚ)) / ((p ^ n : ℕ) : ℚ)))726 = ∑ b : (ZMod (p ^ n))ˣ, MonoidAlgebra.single b⁻¹ ((z b : ℤ) : ℚ) := by727 have hpP := (Fact.out : p.Prime)728 obtain ⟨k, hk⟩ : ∃ k, p - 1 = 2 * k := by729 rcases hpP.eq_two_or_odd with h | h730 · exact absurd h hp731 · exact ⟨p / 2, by omega⟩732 have hz : (((p - 1 : ℕ)) : ℚ) / 2 = ((k : ℤ) : ℚ) := by733 rw [hk]734 push_cast735 ring736 refine ⟨fun _ => (k : ℤ), ?_⟩737 rw [stickelberger_level_compatibility p n hn, add_sub_cancel_left]738 simp only [hz]739740end LevelMain741742end Bhattacharya743744section Audit745746#print axioms Bhattacharya.stickelbergerWeight_eq_sum747#print axioms Bhattacharya.charIdem_mul_stickelbergerWeight748#print axioms Bhattacharya.sum_Icc_eq_sum_zmod749#print axioms Bhattacharya.sum_units_eq_sum_filter750#print axioms Bhattacharya.sum_filter_isUnit_eq_sum751#print axioms Bhattacharya.sum_Icc_mul_character_val752#print axioms Bhattacharya.weighted_sum_eq_generalizedBernoulli753#print axioms Bhattacharya.stickelberger_eigenvalue754#print axioms Bhattacharya.dvd_val_sub_mul_val755#print axioms Bhattacharya.integerCoeff_spec756#print axioms Bhattacharya.stickelberger_integrality757#print axioms Bhattacharya.coprime_one_add_p758#print axioms Bhattacharya.gammaUnit_val759#print axioms Bhattacharya.eta_integral760#print axioms Bhattacharya.levelProj_val761#print axioms Bhattacharya.levelLift_val762#print axioms Bhattacharya.levelProj_lift763#print axioms Bhattacharya.levelLift_bijective764#print axioms Bhattacharya.level_fiber_sum765#print axioms Bhattacharya.stickelberger_level_compatibility766#print axioms Bhattacharya.stickelbergerWeight_level_compatibility767#print axioms Bhattacharya.stickelberger_level_compatibility_integral768#print axioms Bhattacharya.levelProj_sum_units769770end Audit