Contents
M3Stick.lean
Statement index · Original Lean file
1
/-2Stickelberger system and its exact level correction (Bhattacharya MSc thesis, Prop. 3.6).3Own module of swarm member m3; builds on `Thesis.Stickelberger`.4-/5import Thesis.Stickelberger67open scoped BigOperators89namespace Bhattacharya1011namespace M31213set_option maxHeartbeats 10000001415variable (p : ℕ) [Fact p.Prime]1617/-- The trace ("norm") element `N_n = ∑_b σ_b⁻¹` of `ℚ[(ZMod p^n)ˣ]`. -/18noncomputable def normElem (n : ℕ) : MonoidAlgebra ℚ (ZMod (p ^ n))ˣ :=19 ∑ b : (ZMod (p ^ n))ˣ, MonoidAlgebra.single b⁻¹ (1 : ℚ)2021/-- The finite-level Stickelberger element `θ_n = ∑_a (a/p^n)·σ_a⁻¹`. -/22noncomputable def theta (n : ℕ) : MonoidAlgebra ℚ (ZMod (p ^ n))ˣ :=23 ∑ a : (ZMod (p ^ n))ˣ,24 MonoidAlgebra.single a⁻¹ (((a : ZMod (p ^ n)).val : ℚ) / ((p ^ n : ℕ) : ℚ))2526/-- The projection/trace pushforward along `(ZMod p^M)ˣ →* (ZMod p^n)ˣ`, `p^n ∣ p^M`. -/27noncomputable def push {n M : ℕ} (h : p ^ n ∣ p ^ M) :28 MonoidAlgebra ℚ (ZMod (p ^ M))ˣ →ₐ[ℚ] MonoidAlgebra ℚ (ZMod (p ^ n))ˣ :=29 MonoidAlgebra.mapDomainAlgHom ℚ ℚ (ZMod.unitsMap h)3031lemma unitsMap_trans_apply {n k M : ℕ} (h1 : n ∣ k) (h2 : k ∣ M) (a : (ZMod M)ˣ) :32 ZMod.unitsMap h1 (ZMod.unitsMap h2 a) = ZMod.unitsMap (h1.trans h2) a := by33 have h := congrFun (congrArg DFunLike.coe (ZMod.unitsMap_comp h1 h2)) a34 rw [show h1.trans h2 = dvd_trans h1 h2 from Subsingleton.elim _ _]35 exact h3637lemma push_single {n M : ℕ} (h : p ^ n ∣ p ^ M) (a : (ZMod (p ^ M))ˣ) (r : ℚ) :38 push p h (MonoidAlgebra.single a r) = MonoidAlgebra.single (ZMod.unitsMap h a) r := by39 simp [push]4041lemma push_comp {n k M : ℕ} (h1 : p ^ n ∣ p ^ k) (h2 : p ^ k ∣ p ^ M) :42 (push p h1).comp (push p h2) = push p (h1.trans h2) := by43 refine AlgHom.ext fun x => ?_44 simp only [AlgHom.comp_apply, push, MonoidAlgebra.mapDomainAlgHom_apply]45 have hfun : (⇑(ZMod.unitsMap (h1.trans h2)) : (ZMod (p ^ M))ˣ → (ZMod (p ^ n))ˣ)46 = ⇑(ZMod.unitsMap h1) ∘ ⇑(ZMod.unitsMap h2) := by47 funext a; exact (unitsMap_trans_apply h1 h2 a).symm48 rw [hfun]49 ext50 simp [Finsupp.mapDomain_comp]5152lemma push_comp_apply {n k M : ℕ} (h1 : p ^ n ∣ p ^ k) (h2 : p ^ k ∣ p ^ M)53 (x : MonoidAlgebra ℚ (ZMod (p ^ M))ˣ) :54 push p h1 (push p h2 x) = push p (h1.trans h2) x := by55 rw [← AlgHom.comp_apply, push_comp]5657lemma push_self (n : ℕ) (x : MonoidAlgebra ℚ (ZMod (p ^ n))ˣ) :58 push p (dvd_refl (p ^ n)) x = x := by59 show MonoidAlgebra.mapDomainAlgHom ℚ ℚ (ZMod.unitsMap (dvd_refl (p ^ n))) x = x60 rw [ZMod.unitsMap_self, MonoidAlgebra.mapDomainAlgHom_id, AlgHom.id_apply]6162lemma push_theta {n M : ℕ} (h : p ^ n ∣ p ^ M) :63 push p h (theta p M) = ∑ a : (ZMod (p ^ M))ˣ,64 MonoidAlgebra.single (ZMod.unitsMap h a)⁻¹65 (((a : ZMod (p ^ M)).val : ℚ) / ((p ^ M : ℕ) : ℚ)) := by66 simp only [theta, map_sum]67 refine Finset.sum_congr rfl fun a _ => ?_68 rw [push_single, map_inv]6970/-- A scalar multiple of the norm element, in coordinates. -/71lemma smul_normElem (n : ℕ) (c : ℚ) :72 c • normElem p n = ∑ b : (ZMod (p ^ n))ˣ, MonoidAlgebra.single b⁻¹ c := by73 rw [normElem, Finset.smul_sum]74 refine Finset.sum_congr rfl fun b _ => ?_75 rw [MonoidAlgebra.smul_single']76 simp7778/-- **Equation (3.17), one level.** The projection of `θ_{n+1}` differs from `θ_n` by79the norm element times `(p-1)/2` — the nonzero level correction of Proposition 3.6. -/80theorem push_theta_succ (n : ℕ) (hn : 1 ≤ n) :81 push p (pow_dvd_pow_succ p n) (theta p (n + 1)) =82 theta p n + (((p : ℚ) - 1) / 2) • normElem p n := by83 have hmain := stickelberger_level_compatibility p n hn84 simp only [levelProj] at hmain85 have hα : ((p : ℚ) - 1) / 2 = (((p - 1 : ℕ)) : ℚ) / 2 := by86 rw [Nat.cast_sub (Fact.out : p.Prime).one_lt.le]; norm_num87 rw [push_theta, hmain, smul_normElem, hα, theta]8889/-- The trace of the norm element: `π_*(N_{n+1}) = p·N_n`. -/90theorem push_normElem_succ (n : ℕ) (hn : 1 ≤ n) :91 push p (pow_dvd_pow_succ p n) (normElem p (n + 1)) = (p : ℚ) • normElem p n := by92 have hmain := levelProj_sum_units p n hn93 simp only [levelProj] at hmain94 simp only [normElem, map_sum, push_single, map_inv]95 exact hmain9697/-- The trace of the norm element across `M - n` levels: `π_*(N_M) = p^(M-n)·N_n`. -/98theorem push_normElem_le (n : ℕ) (hn : 1 ≤ n) : ∀ (M : ℕ), n ≤ M → ∀ (h : p ^ n ∣ p ^ M),99 push p h (normElem p M) = (p : ℚ) ^ (M - n) • normElem p n := by100 intro M hM101 induction M, hM using Nat.le_induction with102 | base =>103 intro h104 rw [show h = dvd_refl (p ^ n) from Subsingleton.elim _ _, push_self, Nat.sub_self,105 pow_zero, one_smul]106 | succ M hM ih =>107 intro h108 have h2 : p ^ M ∣ p ^ (M + 1) := pow_dvd_pow_succ p M109 have h1 : p ^ n ∣ p ^ M := pow_dvd_pow p hM110 rw [show h = h1.trans h2 from Subsingleton.elim _ _, ← push_comp_apply p h1 h2,111 push_normElem_succ p M (by omega), map_smul,112 ih h1, smul_smul, ← pow_succ', Nat.succ_sub hM]113114/-- **The level correction for arbitrary level gaps.** For `n ≤ M` the projection of the115level-`M` Stickelberger element to level `n` equals `θ_n` plus116`((p-1)/2)·(1 + p + ⋯ + p^(M-n-1))` times the norm element `N_n`. -/117theorem push_theta_le (n : ℕ) (hn : 1 ≤ n) : ∀ (M : ℕ), n ≤ M → ∀ (h : p ^ n ∣ p ^ M),118 push p h (theta p M) =119 theta p n120 + ((((p : ℚ) - 1) / 2) * ∑ k ∈ Finset.range (M - n), (p : ℚ) ^ k) • normElem p n := by121 intro M hM122 induction M, hM using Nat.le_induction with123 | base =>124 intro h125 rw [show h = dvd_refl (p ^ n) from Subsingleton.elim _ _, push_self, Nat.sub_self]126 simp127 | succ M hM ih =>128 intro h129 have h2 : p ^ M ∣ p ^ (M + 1) := pow_dvd_pow_succ p M130 have h1 : p ^ n ∣ p ^ M := pow_dvd_pow p hM131 rw [show h = h1.trans h2 from Subsingleton.elim _ _, ← push_comp_apply p h1 h2,132 push_theta_succ p M (by omega), map_add, map_smul,133 push_normElem_le p n hn M hM h1, ih h1, smul_smul, Nat.succ_sub hM,134 Finset.sum_range_succ, mul_add, add_smul]135 abel136137/-! ## §3 The level correction is nonzero: `θ_n` is not an element of the inverse system -/138139/-- The augmentation `ℚ[G] →+* ℚ`, `σ_g ↦ 1`. -/140noncomputable def aug {G : Type*} [Monoid G] : MonoidAlgebra ℚ G →+* ℚ :=141 MonoidAlgebra.liftNCRingHom (RingHom.id ℚ) (1 : G →* ℚ) (fun _ _ => Commute.all _ _)142143lemma aug_normElem (n : ℕ) : aug (normElem p n) = (Fintype.card (ZMod (p ^ n))ˣ : ℚ) := by144 simp only [normElem, map_sum, nsmul_eq_mul, mul_one]145 congr 1146 simp [aug, MonoidAlgebra.liftNCRingHom]147148lemma normElem_ne_zero (n : ℕ) : normElem p n ≠ 0 := by149 intro h150 have h1 := aug_normElem p n151 rw [h, map_zero] at h1152 haveI : Nonempty (ZMod (p ^ n))ˣ := ⟨1⟩153 have h2 : (0:ℚ) < (Fintype.card (ZMod (p ^ n))ˣ : ℚ) := by154 have := Fintype.card_pos (α := (ZMod (p ^ n))ˣ)155 exact_mod_cast this156 linarith157158/-- The correction coefficient of level gap one, `(p-1)/2`, is positive. -/159lemma alpha_pos (hp : 1 < p) : (0 : ℚ) < ((p : ℚ) - 1) / 2 := by160 have h1 : (1 : ℚ) < p := by exact_mod_cast hp161 linarith162163lemma alpha_ne_zero (hp : 1 < p) : ((p : ℚ) - 1) / 2 ≠ 0 :=164 ne_of_gt (alpha_pos p hp)165166/-- **Naive compatibility fails.** For every level `n ≥ 1` the projection of `θ_{n+1}` is167*not* `θ_n`; the defect is the norm element times `(p-1)/2 ≠ 0`. -/168theorem theta_not_compatible (n : ℕ) (hn : 1 ≤ n) :169 push p (pow_dvd_pow_succ p n) (theta p (n + 1)) ≠ theta p n := by170 intro h171 have h2 := push_theta_succ p n hn172 rw [h] at h2173 have h3 : (((p : ℚ) - 1) / 2) • normElem p n = 0 := by174 have h4 : theta p n + (((p : ℚ) - 1) / 2) • normElem p n = theta p n + 0 := by175 rw [← h2, add_zero]176 exact add_left_cancel h4177 rcases (smul_eq_zero.mp h3) with h5 | h5178 · exact alpha_ne_zero p (Fact.out : p.Prime).one_lt h5179 · exact normElem_ne_zero p n h5180181/-- The correction coefficients of level gap `d ≥ 1` are nonzero. -/182lemma alpha_mul_sum_ne_zero (hp : 1 < p) (d : ℕ) (hd : 1 ≤ d) :183 (((p : ℚ) - 1) / 2) * ∑ k ∈ Finset.range d, (p : ℚ) ^ k ≠ 0 := by184 have hpos : 0 < ∑ k ∈ Finset.range d, (p : ℚ) ^ k := by185 refine Finset.sum_pos' (fun k _ => ?_) ⟨0, Finset.mem_range.mpr (by omega), by simp⟩186 positivity187 have h1 := alpha_pos p hp188 positivity189190/-- **Incompatibility at every level gap.** For `n < M` the projection of `θ_M` to level191`n` is never `θ_n`: the finite-level Stickelberger elements do not form an element of the192inverse system `lim_n ℚ[(ZMod p^n)ˣ]`. -/193theorem theta_not_compatible_gap {n M : ℕ} (hn : 1 ≤ n) (hM : n < M) :194 push p (pow_dvd_pow p hM.le) (theta p M) ≠ theta p n := by195 intro h196 have h2 := push_theta_le p n hn M hM.le (pow_dvd_pow p hM.le)197 rw [h] at h2198 have h3 : ((((p : ℚ) - 1) / 2) * ∑ k ∈ Finset.range (M - n), (p : ℚ) ^ k)199 • normElem p n = 0 := by200 have h4 : theta p n + ((((p : ℚ) - 1) / 2) * ∑ k ∈ Finset.range (M - n), (p : ℚ) ^ k)201 • normElem p n = theta p n + 0 := by202 rw [← h2, add_zero]203 exact add_left_cancel h4204 rcases (smul_eq_zero.mp h3) with h5 | h5205 · exact alpha_mul_sum_ne_zero p (Fact.out : p.Prime).one_lt (M - n) (by omega) h5206 · exact normElem_ne_zero p n h5207208/-! ## §4 The exact repair: the corrected system is compatible iff the scalar209satisfies `p·c(n+1) - c n = -(p-1)/2`, whose solutions are `D/p^(n-1) - 1/2`. -/210211/-- The corrected Stickelberger element `θ_n + c n • N_n`. -/212noncomputable def corrected (c : ℕ → ℚ) (n : ℕ) : MonoidAlgebra ℚ (ZMod (p ^ n))ˣ :=213 theta p n + c n • normElem p n214215/-- `Compatible c` says that the corrected family `θ_n + c n • N_n` is an element of the216inverse limit of the `ℚ[(ZMod p^n)ˣ]` (concrete form: equal under every one-step217projection). -/218def Compatible (c : ℕ → ℚ) : Prop :=219 ∀ n : ℕ, 1 ≤ n → push p (pow_dvd_pow_succ p n) (corrected p c (n + 1)) = corrected p c n220221/-- **The exact compatibility recursion.** A scalar correction makes the Stickelberger222system compatible exactly when `p·c(n+1) - c n = -(p-1)/2` for all `n ≥ 1`. -/223theorem compatible_iff (c : ℕ → ℚ) :224 Compatible p c ↔ ∀ n : ℕ, 1 ≤ n → (p : ℚ) * c (n + 1) - c n = -(((p : ℚ) - 1) / 2) := by225 constructor226 · intro h n hn227 have h2 := h n hn228 simp only [corrected, map_add, map_smul, push_theta_succ p n hn,229 push_normElem_succ p n hn] at h2230 rw [smul_smul] at h2231 rw [add_assoc, ← add_smul] at h2232 have h4 : ((((p : ℚ) - 1) / 2) + c (n + 1) * p) • normElem p n233 = (c n) • normElem p n := add_left_cancel h2234 have h3 : ((((p : ℚ) - 1) / 2) + c (n + 1) * p - c n) • normElem p n = 0 := by235 rw [sub_smul, h4, sub_self]236 rcases (smul_eq_zero.mp h3) with h5 | h5237 · linarith238 · exact absurd h5 (normElem_ne_zero p n)239 · intro h n hn240 have hs : ((p : ℚ) - 1) / 2 + (p : ℚ) * c (n + 1) = c n := by241 have hh := h n hn242 linarith243 simp only [corrected, map_add, map_smul, push_theta_succ p n hn,244 push_normElem_succ p n hn]245 rw [smul_smul]246 rw [show c (n + 1) * (p : ℚ) = (p : ℚ) * c (n + 1) from mul_comm _ _]247 rw [add_assoc, ← add_smul, hs]248249end M3250251end Bhattacharya252253section Audit254255#print axioms Bhattacharya.M3.push_theta_succ256#print axioms Bhattacharya.M3.push_normElem_succ257#print axioms Bhattacharya.M3.push_normElem_le258#print axioms Bhattacharya.M3.push_theta_le259#print axioms Bhattacharya.M3.normElem_ne_zero260#print axioms Bhattacharya.M3.theta_not_compatible261#print axioms Bhattacharya.M3.theta_not_compatible_gap262#print axioms Bhattacharya.M3.compatible_iff263264end Audit