Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import Mathlib.Order.Interval.Finset.Box |
| 4 | import Mathlib.RingTheory.ZMod.UnitsCyclic |
| 5 | import Mathlib.Tactic.Linter.Style |
| 6 | public import Lib.Cyclotomic.Stickelberger |
| 7 | public import Lib.General.NumberTheory.ImaginaryQuadraticField |
| 8 | import Lib.Adelic.Adeles.LocalFactors |
| 9 | import Lib.ClassField.GreenbergWiles.SelmerLevels |
| 10 | import Lib.ClassField.Places.TameInertia |
| 11 | import Lib.Cyclotomic.Voronoi |
| 12 | import Lib.General.NumberTheory.FrobeniusOrbits |
| 13 | |
| 14 | /-! |
| 15 | # Kolyvagin's derivative cocycles from Gauss sums, for one set of primes |
| 16 | |
| 17 | The main result, `New.OddPart.exists_isKolyvaginSystem`, constructs Kolyvagin's cocycles `κ S` with |
| 18 | values in `O/lⁿ` from the Jacobi-type quotients `J` of `New.OddPart.exists_isJacobiFamily`. One |
| 19 | takes `lⁿ`-th roots `y` of `J`, forms the roots of unity `γ y / (g γ g⁻¹) y`, applies the derivative |
| 20 | operators at the primes of `S` and sums against `aᵉ ψ(a)`. The local properties are read modulo a |
| 21 | place, where roots of unity of order prime to it stay distinct. |
| 22 | |
| 23 | * `New.OddPart.IsKolyvaginSystem`: the properties of the cocycles `κ S`. |
| 24 | * `New.OddPart.exists_isKolyvaginSystem`: a Kolyvagin system exists. |
| 25 | * `New.OddPart.derivativeSum`: the derivative operators followed by the character sum. |
| 26 | |
| 27 | Conventions: `Ω = ℚ̄` is an algebraic closure of `ℚ`, and its places are valuation subrings |
| 28 | (`ClosurePlace`); `DiscreteUnits Ω` is `Ω^×` written additively, so `n • u` is `uⁿ`, and |
| 29 | `galUnitsRep g` is the action of `g` on it; `New.QZ.ofZMod M a` is `a/M` in `ℚ/ℤ`; |
| 30 | `QuotSpan (l ^ n : O)` is `O/lⁿ`; `floorDiff c x` is `⌊c ⟨x⟩⌋ - ⌊c ⟨-x⟩⌋`, where `⟨x⟩` is the |
| 31 | representative of `x` in `[0, 1)`. |
| 32 | |
| 33 | Notions from other files: |
| 34 | * `New.OddPart.principalUnits B`: the units of `Ω` congruent to `1` modulo the maximal ideal of `B`, |
| 35 | as an additive subgroup of `DiscreteUnits Ω`. |
| 36 | * `New.IsFrob B q σ`: `σ` stabilises `B`, and `σ x ≡ x ^ q` modulo the maximal ideal of `B` for |
| 37 | every `x` in `B`; for `q = 1` this says that `σ` lies in the inertia group of `B`. |
| 38 | * `New.rootPowHom Ω m`: the map `ℤ/m → Ω^×`, `t ↦ ζᵗ`, for a fixed primitive `m`-th root of unity |
| 39 | `ζ`; it is injective, and its image is the set of `m`-th roots of unity. |
| 40 | * `New.cyclotomicPowDirichlet l e ψ`: the character `cycᵉ ψ` of `Gal(ℚ̄/ℚ)` with values in `Oˣ`, |
| 41 | where `cyc` is the `l`-adic cyclotomic character. |
| 42 | |
| 43 | ## Relation to the literature |
| 44 | |
| 45 | Known result: Kolyvagin's derivative classes of the Euler system of Gauss sums. Here the classes |
| 46 | carry a Tate twist and a Dirichlet character and are cocycles over the rationals that vanish at one |
| 47 | fixed element. Their ramification, the relation between Frobenius and inertia, and the link between |
| 48 | the bottom class and the Stickelberger element are also covered. Source: K. Rubin, Kolyvagin's |
| 49 | system of Gauss sums, Arithmetic Algebraic Geometry (Texel 1989), Progr. Math. 89, 1991, 309-324; |
| 50 | with a Tate twist: G. Banaszak, W. Gajda, Euler systems for higher K-theory of number fields, J. |
| 51 | Number Theory 58 (1996). |
| 52 | -/ |
| 53 | |
| 54 | @[expose] public section |
| 55 | |
| 56 | namespace New.OddPart |
| 57 | |
| 58 | open QZ Finset MulAut Function ZMod NeZero DiscreteUnits Cohomology Representation Multiplicative |
| 59 | Selmer |
| 60 | |
| 61 | section |
| 62 | |
| 63 | variable {O : Type} [CommRing O] {B : ClosurePlace} {g : Gal(Ω/ℚ)} {u : DiscreteUnits Ω} |
| 64 | {m a M N l n e : ℕ} [NeZero m] [NeZero N] [Fact l.Prime] [Algebra ℤ_[l] O] |
| 65 | {ψ : DirichletCharacter O N} [Algebra (ZMod (l ^ n)) (QuotSpan (l ^ n : O))] |
| 66 | {L : ∀ q : Nat.Primes, (ZMod q)ˣ →* Multiplicative (ZMod (l ^ n))} |
| 67 | {S : Finset Nat.Primes} {d f : Nat.Primes → ZMod (l ^ n)} {G G' : QZ → ZMod (l ^ n)} |
| 68 | {γ : Gal(Ω/ℚ)} {q : Nat.Primes} {τ φ : Gal(Ω/ℚ)} {Y : ZMod q → DiscreteUnits Ω} |
| 69 | {y : DiscreteUnits Ω} {v : (ZMod q)ˣ} {lg : (ZMod q)ˣ → ℤ} |
| 70 | |
| 71 | private lemma mem_principalUnits_iff {x : DiscreteUnits Ω} : |
| 72 | x ∈ principalUnits B ↔ B.valuation ((x.toMul : Ω) - 1) < 1 := |
| 73 | Iff.rfl |
| 74 | |
| 75 | /-- Let `g` act as the `a`-th power modulo the maximal ideal of `B` (`IsFrob B a g`), and let |
| 76 | the `m`-th power of `u` be a unit at `B`, where `m ≠ 0`. Then `g u / uᵃ` is a principal unit at |
| 77 | `B`. -/ |
| 78 | lemma _root_.New.IsFrob.sub_nsmul_mem_principalUnits (hg : IsFrob B a g) |
| 79 | (hu : B.valuation ((m • u).toMul : Ω) = 1) : |
| 80 | galUnitsRep g u - a • u ∈ principalUnits B := by |
| 81 | -- `u` is a unit at `B`, so `g u / u ^ a - 1` has the valuation of `g u - u ^ a`. |
| 82 | obtain ⟨-, hg_cong⟩ : g ∈ decompGroup Gal(Ω/ℚ) B ∧ |
| 83 | ∀ x : Ω, B.valuation x ≤ 1 → B.valuation (g • x - x ^ a) < 1 := hg |
| 84 | have h_unit : B.valuation (u.toMul : Ω) = 1 := by simpa [NeZero.ne] using hu |
| 85 | have h_cong : B.valuation (g • (u.toMul : Ω) - (u.toMul : Ω) ^ a) < 1 := hg_cong _ h_unit.le |
| 86 | rw [mem_principalUnits_iff] |
| 87 | simpa [div_sub_one, h_unit] using h_cong |
| 88 | |
| 89 | /-- Roots of unity of order prime to the residue characteristic stay distinct modulo `B`. Let |
| 90 | `μ = New.rootPowHom Ω m` be the fixed map `t ↦ ζᵗ` from `ℤ/m` to `Ω^×`. If `m` is a unit at `B` |
| 91 | and `μ (a - b)` is a principal unit at `B`, then `a = b`. -/ |
| 92 | lemma eq_of_mem_principalUnits {a b : ZMod m} (hm : B m = 1) |
| 93 | (h_mem : (rootPowHom Ω m).val (a - b) ∈ principalUnits B) : |
| 94 | a = b := by |
| 95 | -- The image of `a - b` is an `m`-th root of unity congruent to one, and `m` is a unit at `B`. |
| 96 | let μ := (rootPowHom Ω m).val |
| 97 | have h_root : m • μ (a - b) = 0 := by rw [← map_nsmul, ZModModule.char_nsmul_eq_zero, map_zero] |
| 98 | have h_pow : ((μ (a - b)).toMul : Ω) ^ m = 1 := by |
| 99 | simpa using congr_arg (fun z : DiscreteUnits Ω ↦ (z.toMul : Ω)) h_root |
| 100 | have h_eq_one : ((μ (a - b)).toMul : Ω) = 1 := |
| 101 | eq_of_val_sub_lt_one hm h_pow (one_pow m) (mem_principalUnits_iff.mp h_mem) |
| 102 | apply sub_eq_zero.mp |
| 103 | exact (rootPowHom Ω m).property.1 ((DiscreteUnits.ext h_eq_one).trans (map_zero μ).symm) |
| 104 | |
| 105 | /-- Let `M = m a` with `a` a unit at `B`. An element `g` of the inertia group of `B` that fixes |
| 106 | the `m`-th roots of unity fixes the `M`-th roots of unity. -/ |
| 107 | lemma mem_cycloGalGroup_of_mem_inertiaGroup [NeZero M] (hg : g ∈ inertiaGroup Gal(Ω/ℚ) B) |
| 108 | (ha : B a = 1) (hM : m * a = M) (hgm : g ∈ cycloGalGroup m) : |
| 109 | g ∈ cycloGalGroup M := by |
| 110 | -- `a • z` is an `m`-th root of unity, so it is a unit at `B` and `g` fixes it; as `a` is a unit |
| 111 | -- at `B`, inertia then fixes its `a`-th root `z`. |
| 112 | refine cyclotomicCharMod_eq_one_iff.mpr fun z hz ↦ DiscreteUnits.ext ?_ |
| 113 | have h_fix : galUnitsRep g (a • z) = a • z := |
| 114 | cyclotomicCharMod_eq_one_iff.mp hgm (a • z) (by rwa [smul_smul, hM]) |
| 115 | have h_fix_val : g • ((a • z).toMul : Ω) = (a • z).toMul := by rw [← val_unitsRep, h_fix] |
| 116 | have h_unit : B.valuation ((a • z).toMul : Ω) = 1 := by |
| 117 | simpa [NeZero.ne, ← hM] using congr_arg (fun w : DiscreteUnits Ω ↦ B w.toMul) hz |
| 118 | rw [val_unitsRep] |
| 119 | exact inertia_fixes_root_of_unit hg ha rfl h_unit h_fix_val |
| 120 | |
| 121 | /-- If `B` lies above the prime `l` and `a` is prime to `l`, some element of the inertia group of |
| 122 | `B` in `Gal(Ω/ℚ)` has `l`-adic cyclotomic character `a`. -/ |
| 123 | lemma exists_inertia_cyclotomicChar_eq (hB : B l < 1) (ha : l.Coprime a) : |
| 124 | ∃ γ ∈ inertiaGroup Gal(Ω/ℚ) B, (cyclotomicChar Ω l γ).val = a := by |
| 125 | -- `B` is pulled back from the integers of `ℚ̄_l` along an embedding `e`, and `res` restricts the |
| 126 | -- local Galois group along `e`. It carries local inertia into inertia and keeps `cyclotomicChar`. |
| 127 | obtain ⟨e, rfl⟩ := exists_comap_intQpBar_eq hB |
| 128 | obtain ⟨res, h_res⟩ : ∃ res : Gp l →ₜ* Gal(Ω/ℚ), ∀ (g : Gp l) (x : Ω), e (res g • x) = g • e x := |
| 129 | exists_galois_restrict _ _ e fun g x ↦ by simp |
| 130 | -- the local statement: `ℚ_l(μ_{l^∞})` is totally ramified |
| 131 | have h_prime : ThePrime l := ThePrime.mk |
| 132 | obtain ⟨g, hg_ine, hg_val⟩ := exists_inertia_cyclotomicGp_eq a ha |
| 133 | exact ⟨res g, .map h_res hg_ine, by rwa [cyclotomicChar_eq_of_equivariant l (h_res g)]⟩ |
| 134 | |
| 135 | /-- If `g` raises the `(N m)`-th roots of unity to the power `a`, then on an element `x` of an |
| 136 | `O`-module with `m x = 0` the value `cyclotomicPowDirichlet l e ψ g` acts as the scalar |
| 137 | `aᵉ ψ(a)`. -/ |
| 138 | lemma cyclotomicPowDirichlet_smul (hg : (cyclotomicCharMod Ω (N * m) g).val = a) {V : Type*} |
| 139 | [AddCommGroup V] [Module O V] {x : V} (hx : m • x = 0) : |
| 140 | (cyclotomicPowDirichlet l e ψ g).val • x = (a ^ e * ψ a) • x := by |
| 141 | -- Up to a unit, `m` is a power of `l` in `ℤ_[l]`, and modulo that power the `l`-adic cyclotomic |
| 142 | -- character of `g` is `a`. |
| 143 | have hm_ne : (m : ℤ_[l]) ≠ 0 := NeZero.ne _ |
| 144 | have h_pow_dvd : (l : ℤ_[l]) ^ multiplicity l m ∣ (cyclotomicChar Ω l g).val - a := |
| 145 | (pow_dvd_cyclotomicChar_sub_iff _).mpr |
| 146 | (cyclotomicCharMod_eq_of_dvd (.mul_left (pow_multiplicity_dvd l m) N) hg) |
| 147 | have h_adic : (m : ℤ_[l]) ∣ (cyclotomicChar Ω l g).val - a := |
| 148 | (PadicInt.unitCoeff_spec hm_ne).dvd.trans (by simpa [PadicInt.valuation] using h_pow_dvd) |
| 149 | obtain ⟨b, hb⟩ : (m : O) ∣ algebraMap ℤ_[l] O (cyclotomicChar Ω l g).val ^ e - a ^ e := by |
| 150 | simpa using map_dvd (algebraMap ℤ_[l] O) (h_adic.trans (sub_dvd_pow_sub_pow _ _ e)) |
| 151 | have h_scalar : ((cyclotomicPowDirichlet l e ψ g : Oˣ) : O) = |
| 152 | algebraMap ℤ_[l] O (cyclotomicChar Ω l g).val ^ e * ψ a := by |
| 153 | simp [cyclotomicPowDirichlet, cyclotomicCharMod_eq_of_dvd (dvd_mul_right N m) hg] |
| 154 | -- The two scalars differ by `ψ a * b * m`, and `m` kills `x`. |
| 155 | rw [h_scalar] |
| 156 | linear_combination (norm := module) ψ a • (hb • x + b • hx) |
| 157 | |
| 158 | private lemma cyclotomicPowDirichlet_succ_smul |
| 159 | (hg : (cyclotomicCharMod Ω (N * m) g).val = a) {V : Type*} [AddCommGroup V] [Module O V] |
| 160 | {x : V} (hx : m • x = 0) : |
| 161 | (cyclotomicPowDirichlet l (e + 1) ψ g).val • x = |
| 162 | (cyclotomicPowDirichlet l e ψ g).val • a • x := by |
| 163 | have hax : m • a • x = 0 := by rw [smul_comm m a, hx, smul_zero] |
| 164 | rw [cyclotomicPowDirichlet_smul hg hx, cyclotomicPowDirichlet_smul hg hax] |
| 165 | module |
| 166 | |
| 167 | /-- Discrete logarithm: for a prime `q ≡ 1 mod k` there is a homomorphism `L` from `(ℤ/q)ˣ` to |
| 168 | `ℤ/k` (written multiplicatively) that sends some unit `g` to `1`, so `L` is onto. -/ |
| 169 | lemma exists_monoidHom_units_zmod_eq_ofAdd_one {q : Nat.Primes} {k : ℕ} (hq : q ≡ 1 [MOD k]) : |
| 170 | ∃ L : (ZMod q)ˣ →* Multiplicative (ZMod k), ∃ g : (ZMod q)ˣ, L g = ofAdd 1 := by |
| 171 | obtain ⟨g, gen⟩ := (isCyclic_units_prime q.prop).exists_zpow_surjective |
| 172 | have h_gen (x : (ZMod q)ˣ) : x ∈ Subgroup.zpowers g := Subgroup.mem_zpowers_iff.mpr (gen x) |
| 173 | -- `k` divides `q - 1`, the order of `g`. |
| 174 | have h_order : k ∣ orderOf g := by |
| 175 | simp [orderOf_eq_card_of_forall_mem_zpowers h_gen, Nat.totient_prime q.prop, hq.symm.dvd'] |
| 176 | obtain ⟨L, hL⟩ := exists_zmod_log_of_dvd_orderOf h_gen h_order |
| 177 | exact ⟨L, g, hL⟩ |
| 178 | |
| 179 | /-- An `m`-th root of unity `u` of `Ω` is moved alike by `γ` and by its conjugate `g γ g⁻¹`. -/ |
| 180 | lemma galUnitsRep_conj_of_nsmul_eq_zero (γ g : Gal(Ω/ℚ)) {u : DiscreteUnits Ω} (hu : m • u = 0) : |
| 181 | galUnitsRep γ u = galUnitsRep (g * γ * g⁻¹) u := by |
| 182 | have h_ker : γ⁻¹ * conj g γ ∈ cycloGalGroup m := by simp [mul_comm] |
| 183 | have h_fix : galUnitsRep (γ⁻¹ * conj g γ) u = u := cyclotomicCharMod_eq_one_iff.mp h_ker u hu |
| 184 | calc galUnitsRep γ u = galUnitsRep γ (galUnitsRep (γ⁻¹ * conj g γ) u) := by rw [h_fix] |
| 185 | _ = galUnitsRep (g * γ * g⁻¹) u := by simp |
| 186 | |
| 187 | section Derivative |
| 188 | |
| 189 | variable (ψ e L S d) in |
| 190 | /-- Kolyvagin's derivative followed by the character sum, with values in `O/lⁿ` |
| 191 | (`QuotSpan (l ^ n : O)`). For each `q ∈ S`, a function on `ℚ/ℤ` is translated by `u/q` with weight |
| 192 | `L q u - d q` and summed over the units `u` mod `q`; the values of the result at `a / N lⁿ` are |
| 193 | then summed against `aᵉ ψ(a)` over the units `a` mod `N lⁿ`. -/ |
| 194 | noncomputable def derivativeSum : (QZ → ZMod (l ^ n)) →ₗ[ZMod (l ^ n)] QuotSpan (l ^ n : O) := |
| 195 | (∑ a : (ZMod (N * l ^ n))ˣ, |
| 196 | LinearMap.smulRight |
| 197 | ((a : ZMod (N * l ^ n)).val ^ e • LinearMap.proj (ofZMod (N * l ^ n) a)) |
| 198 | (ψ (a : ZMod (N * l ^ n)).val : QuotSpan (l ^ n : O))) ∘ₗ |
| 199 | asAlgebraHom (ofDistribMulAction (ZMod (l ^ n)) (Multiplicative QZ)ᵈᵐᵃ (QZ → ZMod (l ^ n))) |
| 200 | (∏ q ∈ S, ∑ u : (ZMod q)ˣ, |
| 201 | MonoidAlgebra.single (DomMulAct.mk (ofAdd (ofZMod q u))) ((L q u).toAdd - d q)) |
| 202 | |
| 203 | omit [Algebra ℤ_[l] O] in |
| 204 | /-- With no primes, `derivativeSum` is the character sum: the value of `G` at `a / N lⁿ` is summed |
| 205 | against `aᵉ ψ(a)` over the units `a` mod `N lⁿ`. -/ |
| 206 | lemma derivativeSum_empty : |
| 207 | derivativeSum e ψ L ∅ d G = ∑ a : (ZMod (N * l ^ n))ˣ, |
| 208 | (((a : ZMod (N * l ^ n)).val ^ e : ℕ) * G (ofZMod (N * l ^ n) a)) • |
| 209 | (ψ (a : ZMod (N * l ^ n)).val : QuotSpan (l ^ n : O)) := by |
| 210 | simp [derivativeSum] |
| 211 | |
| 212 | omit [Algebra ℤ_[l] O] in |
| 213 | /-- Adding a prime `q` to `S` applies the derivative at `q` first. -/ |
| 214 | lemma derivativeSum_insert {q : Nat.Primes} (hq : q ∉ S) : |
| 215 | derivativeSum e ψ L (insert q S) d G = |
| 216 | derivativeSum e ψ L S d fun x : QZ ↦ |
| 217 | ∑ u : (ZMod q)ˣ, ((L q u).toAdd - d q) * G (x + ofZMod q u) := by |
| 218 | -- `MonoidAlgebra.single_sub` would split the weights before the sums are matched. |
| 219 | simp [derivativeSum, hq, mul_comm _ (S.prod _), sum_fn, DomMulAct.smul_apply, add_comm, |
| 220 | -MonoidAlgebra.single_sub] |
| 221 | |
| 222 | /-- Substituting `a u` for `u` in all the sums. Here `derivativeSum e ψ L S d G ∈ O/lⁿ` applies |
| 223 | Kolyvagin's derivative to `G : ℚ/ℤ → ZMod (lⁿ)`: for each `q ∈ S`, `G` is translated by `u/q` with |
| 224 | weight `L q u - d q` and summed over the units `u` mod `q`, and the values of the result at |
| 225 | `b / N lⁿ` are then summed against `bᵉ ψ(b)` over the units `b` mod `N lⁿ`. Let `M` be a multiple of |
| 226 | `N lⁿ` and of the primes of `S`, and let `a` be the cyclotomic character of `g` mod `N lⁿ`; if |
| 227 | `G x = G' (a x)` on the `M`-torsion of `ℚ/ℤ`, and `f q = L q v + d q` with `v ≡ a` mod `q` for each |
| 228 | `q ∈ S`, then `cycᵉ ψ (g)` (`cyclotomicPowDirichlet l e ψ g`) times `derivativeSum … d G` is |
| 229 | `derivativeSum … f G'`. -/ |
| 230 | lemma cyclotomicPowDirichlet_smul_derivativeSum (hM : N * l ^ n ∣ M) (hS : ∀ q ∈ S, (q : ℕ) ∣ M) |
| 231 | (hg : (cyclotomicCharMod Ω (N * l ^ n) g : ZMod (N * l ^ n)) = a) |
| 232 | (hf : ∀ q ∈ S, ∃ v : (ZMod q)ˣ, f q = (L q v).toAdd + d q ∧ (v : ZMod q) = a) |
| 233 | (hG : ∀ {x : QZ}, M • x = 0 → G x = G' (a • x)) : |
| 234 | (cyclotomicPowDirichlet l e ψ g : O) • derivativeSum e ψ L S d G = |
| 235 | derivativeSum e ψ L S f G' := by |
| 236 | have killed {x : QuotSpan (l ^ n : O)} : l ^ n • x = 0 := nsmul_quot_eq_zero dvd_rfl x |
| 237 | induction S using Finset.induction generalizing G G' with |
| 238 | | empty => |
| 239 | -- Substitute `χ u` for `u` in the character sum, where `χ` is the character of `g` mod `N lⁿ`. |
| 240 | have base_zero : (M : ZMod (N * l ^ n)) = 0 := (natCast_eq_zero_iff M (N * l ^ n)).mpr hM |
| 241 | rw [derivativeSum_empty, derivativeSum_empty, smul_sum] |
| 242 | refine Fintype.sum_equiv (.mulLeft (cyclotomicCharMod Ω (N * l ^ n) g)) _ _ fun u ↦ ?_ |
| 243 | -- Both terms become products in `O/lⁿ`, equal by `ring`. |
| 244 | simp [cyclotomicPowDirichlet_smul hg killed, base_zero, Algebra.smul_def, ← map_nsmul, hG, hg] |
| 245 | ring |
| 246 | | insert q S hq ih => |
| 247 | obtain ⟨hqM, hS⟩ := (forall_mem_insert q S _).mp hS |
| 248 | obtain ⟨⟨v, hv_shift, hv⟩, hf⟩ := (forall_mem_insert q S _).mp hf |
| 249 | have q_zero : (M : ZMod q) = 0 := (natCast_eq_zero_iff M q).mpr hqM |
| 250 | rw [derivativeSum_insert hq, derivativeSum_insert hq] |
| 251 | -- Substitute `v u` for `u` in the sum at `q`. |
| 252 | refine ih hS hf fun {x} hx ↦ sum_equiv (.mulLeft v) (fun u ↦ by simp) fun u _ ↦ ?_ |
| 253 | have h_tors : M • (x + ofZMod q u) = 0 := by simp [q_zero, ← map_nsmul, hx] |
| 254 | have h_shift : (L q (v * u)).toAdd - f q = (L q u).toAdd - d q := by simp [hv_shift] |
| 255 | have h_arg : a • (x + ofZMod q u) = a • x + ofZMod q (v * u : (ZMod q)ˣ) := by |
| 256 | simp [← map_nsmul, hv] |
| 257 | change ((L q u).toAdd - d q) * G (x + ofZMod q u) = |
| 258 | ((L q (v * u)).toAdd - f q) * G' (a • x + ofZMod q (v * u : (ZMod q)ˣ)) |
| 259 | rw [hG h_tors, h_arg, h_shift] |
| 260 | |
| 261 | /-- The case of a prime `r ≡ 1 mod N lⁿ` outside `S`, where `rᵉ ψ(r) = 1` in `O/lⁿ`. Let `M` be |
| 262 | a multiple of `N lⁿ` and of the primes of `S`. If `G x = G' (r x)` on the `M`-torsion of `ℚ/ℤ`, |
| 263 | then `derivativeSum` takes the same value on `d, G` as on `f, G'`, where `f q = L q r' + d q` for |
| 264 | the unit `r'` of `ℤ/q` that `r` gives. -/ |
| 265 | lemma derivativeSum_eq_of_prime (hM : N * l ^ n ∣ M) (hS : ∀ q ∈ S, (q : ℕ) ∣ M) {r : Nat.Primes} |
| 266 | (hr : r ≡ 1 [MOD N * l ^ n]) (hrS : r ∉ S) |
| 267 | (hG : ∀ {x : QZ}, M • x = 0 → G x = G' ((r : ℕ) • x)) : |
| 268 | derivativeSum e ψ L S d G = |
| 269 | derivativeSum e ψ L S |
| 270 | (fun q : Nat.Primes ↦ (L q (invFun Units.val ((r : ℕ) : ZMod q))).toAdd + d q) G' := by |
| 271 | have h_cyc_one : (cyclotomicCharMod Ω (N * l ^ n) (1 : Gal(Ω/ℚ)) : ZMod (N * l ^ n)) = |
| 272 | (r : ℕ) := by |
| 273 | simpa using (natCast_eq_natCast_iff 1 r (N * l ^ n)).mpr hr.symm |
| 274 | have r_unit {q : Nat.Primes} (hq : q ∈ S) : IsUnit ((r : ℕ) : ZMod q) := |
| 275 | (CharP.cast_ne_zero_of_ne_of_prime (ZMod q) r.prop |
| 276 | fun h_eq ↦ ne_of_mem_of_not_mem hq hrS (Subtype.ext h_eq)).isUnit |
| 277 | -- `cyclotomicPowDirichlet l e ψ` is a homomorphism, so its value at `1` acts trivially. |
| 278 | simpa using cyclotomicPowDirichlet_smul_derivativeSum (e := e) (ψ := ψ) (L := L) (d := d) |
| 279 | (f := fun q : Nat.Primes ↦ (L q (invFun Units.val ((r : ℕ) : ZMod q))).toAdd + d q) hM hS |
| 280 | h_cyc_one (fun q hq ↦ ⟨invFun Units.val _, rfl, invFun_eq (r_unit hq)⟩) hG |
| 281 | |
| 282 | /-- `derivativeSum` reads only the shifts at the primes of `S` and the values on the |
| 283 | `M`-torsion of `ℚ/ℤ`, where `M` is a multiple of `N lⁿ` and of the primes of `S`. -/ |
| 284 | lemma derivativeSum_congr (hM : N * l ^ n ∣ M) (hS : ∀ q ∈ S, (q : ℕ) ∣ M) |
| 285 | (hf : ∀ q ∈ S, f q = d q) (hG : ∀ {x : QZ}, M • x = 0 → G x = G' x) : |
| 286 | derivativeSum e ψ L S d G = derivativeSum e ψ L S f G' := by |
| 287 | -- Take `g = 1` in `cyclotomicPowDirichlet_smul_derivativeSum`. |
| 288 | have h_shift : ∀ q ∈ S, ∃ v : (ZMod q)ˣ, f q = (L q v).toAdd + d q ∧ (v : ZMod q) = (1 : ℕ) := |
| 289 | fun q hq ↦ ⟨1, by simp [hf q hq], by simp⟩ |
| 290 | simpa using cyclotomicPowDirichlet_smul_derivativeSum (g := 1) (a := 1) (e := e) (ψ := ψ) hM hS |
| 291 | (by simp) h_shift (fun {x} hx ↦ by simpa using hG hx) |
| 292 | |
| 293 | /-- Let `M` be a multiple of `N lⁿ`, let the natural number `a` represent the cyclotomic character |
| 294 | of `g ∈ Gal(ℚ̄/ℚ)` mod `N lⁿ`, and let `s : ℚ/ℤ → ℤ` and `G : ℚ/ℤ → ℤ/lⁿ` satisfy |
| 295 | `G x = a s(x) - s(a x)` on the `M`-torsion. Suppose that the character sum |
| 296 | `∑_u G(u / N lⁿ) uᵉ ψ(u)` of `G` (`derivativeSum` for no primes) vanishes in `O/lⁿ` |
| 297 | (`QuotSpan (l ^ n : O)`), where `u` runs over the units mod `N lⁿ`. Then `cycᵉ⁺¹ ψ (g) - 1` |
| 298 | (`cyclotomicPowDirichlet l (e + 1) ψ g - 1`) kills the character sum `∑_u s(u / N lⁿ) uᵉ ψ(u)` of |
| 299 | `s` in `O/lⁿ`. -/ |
| 300 | lemma sub_one_smul_sum_eq_zero (hM : N * l ^ n ∣ M) |
| 301 | (hg : (cyclotomicCharMod Ω (N * l ^ n) g : ZMod (N * l ^ n)) = a) {s : QZ → ℤ} |
| 302 | (hG : ∀ {x : QZ}, M • x = 0 → a • (s x : ZMod (l ^ n)) - G x = s (a • x)) |
| 303 | (h_zero : derivativeSum e ψ L ∅ d G = 0) : |
| 304 | (cyclotomicPowDirichlet l (e + 1) ψ g - 1 : O) • |
| 305 | ((∑ u : (ZMod (N * l ^ n))ˣ, s (ofZMod (N * l ^ n) u) * |
| 306 | ((u : ZMod (N * l ^ n)).val ^ e * ψ (u : ZMod (N * l ^ n)).val) : O) : |
| 307 | QuotSpan (l ^ n : O)) = |
| 308 | (0 : QuotSpan (l ^ n : O)) := by |
| 309 | -- Let `Λ` be the character sum and `F` be `s` mod `lⁿ`. Equivariance gives |
| 310 | -- `cycᵉ ψ (g) Λ (a F - G) = Λ F`, and the left side is `cycᵉ⁺¹ ψ (g) Λ F` since `Λ G = 0`. |
| 311 | let F : QZ → ZMod (l ^ n) := fun x : QZ ↦ s x |
| 312 | have killed {x : QuotSpan (l ^ n : O)} : l ^ n • x = 0 := nsmul_quot_eq_zero dvd_rfl x |
| 313 | have h_sum : ((∑ u : (ZMod (N * l ^ n))ˣ, s (ofZMod (N * l ^ n) u) * |
| 314 | ((u : ZMod (N * l ^ n)).val ^ e * ψ (u : ZMod (N * l ^ n)).val) : O) : |
| 315 | QuotSpan (l ^ n : O)) = derivativeSum e ψ L ∅ d F := by |
| 316 | rw [derivativeSum_empty, map_sum] |
| 317 | refine sum_congr rfl fun u _ ↦ ?_ |
| 318 | simp only [F, Algebra.smul_def, map_mul, map_pow, map_natCast, map_intCast, Nat.cast_pow] |
| 319 | ring |
| 320 | have h_equiv : (cyclotomicPowDirichlet l e ψ g : O) • derivativeSum e ψ L ∅ d (a • F - G) = |
| 321 | derivativeSum e ψ L ∅ d F := |
| 322 | cyclotomicPowDirichlet_smul_derivativeSum hM (by simp) hg (by simp) hG |
| 323 | have h_sub : derivativeSum e ψ L ∅ d (a • F - G) = a • derivativeSum e ψ L ∅ d F := by |
| 324 | rw [map_sub, map_nsmul, h_zero, sub_zero] |
| 325 | rw [h_sum, sub_smul, one_smul, cyclotomicPowDirichlet_succ_smul hg killed, |
| 326 | ← h_sub, h_equiv, sub_self] |
| 327 | |
| 328 | end Derivative |
| 329 | |
| 330 | section CommutatorLog |
| 331 | |
| 332 | /-- The exponent `t` with `γ y / (g γ g⁻¹) y = ζᵗ`, for the fixed primitive `m`-th root of unity |
| 333 | `ζ` of `New.rootPowHom`, when this quotient is an `m`-th root of unity (otherwise some value that |
| 334 | is of no use). -/ |
| 335 | noncomputable def commutatorLog (m : ℕ) [NeZero m] (γ : Gal(Ω/ℚ)) (y : DiscreteUnits Ω) |
| 336 | (g : Gal(Ω/ℚ)) : ZMod m := |
| 337 | invFun (rootPowHom Ω m).val (galUnitsRep γ y - galUnitsRep (g * γ * g⁻¹) y) |
| 338 | |
| 339 | /-- Conjugation by `γ` fixes `γ`, so the quotient in the commutator log is one and its |
| 340 | exponent is zero. -/ |
| 341 | lemma commutatorLog_self : commutatorLog m γ y γ = 0 := by |
| 342 | simpa [commutatorLog] using leftInverse_invFun (rootPowHom Ω m).property.left (0 : ZMod m) |
| 343 | |
| 344 | /-- `commutatorLog m γ y g` is locally constant in `g`, since the orbit map `g ↦ (g γ g⁻¹) y` is. -/ |
| 345 | lemma isLocallyConstant_commutatorLog : IsLocallyConstant (commutatorLog m γ y) := by |
| 346 | -- The orbit map of `y` under the conjugates of `γ` is locally constant, read in `Ω`. |
| 347 | have h_orbit_val : IsLocallyConstant fun g : Gal(Ω/ℚ) ↦ (g * γ * g⁻¹) • (y.toMul : Ω) := |
| 348 | (isLocallyConstant_smul (y.toMul : Ω)).comp_continuous (by fun_prop) |
| 349 | have orbit : IsLocallyConstant fun g : Gal(Ω/ℚ) ↦ galUnitsRep (g * γ * g⁻¹) y := |
| 350 | .desc _ (fun z : DiscreteUnits Ω ↦ (z.toMul : Ω)) h_orbit_val fun _ _ ↦ DiscreteUnits.ext |
| 351 | exact orbit.comp fun z : DiscreteUnits Ω ↦ invFun (rootPowHom Ω m).val (galUnitsRep γ y - z) |
| 352 | |
| 353 | /-- The cocycle rule. Let `g` act on the `m`-th roots of unity by `a`, and let `g y / y'` be an |
| 354 | `m`-th root of unity. If `ζᵗ = γ y / (g' γ g'⁻¹) y`, `ζˢ = γ y' / (g g' γ (g g')⁻¹) y'` and |
| 355 | `ζ ^ s' = γ y' / (g γ g⁻¹) y'`, where `ζ ^ t` is `rootPowHom Ω m t`, then `a t = s - s'`. -/ |
| 356 | lemma nsmul_exponent_eq_sub {g' : Gal(Ω/ℚ)} {y' : DiscreteUnits Ω} {t s s' : ZMod m} |
| 357 | (hg : (cyclotomicCharMod Ω m g : ZMod m) = a) (hgy : m • (galUnitsRep g y - y') = 0) |
| 358 | (ht : (rootPowHom Ω m).val t = galUnitsRep γ y - galUnitsRep (g' * γ * g'⁻¹) y) |
| 359 | (hs : (rootPowHom Ω m).val s = galUnitsRep γ y' - galUnitsRep (g * g' * γ * (g * g')⁻¹) y') |
| 360 | (hs' : (rootPowHom Ω m).val s' = galUnitsRep γ y' - galUnitsRep (g * γ * g⁻¹) y') : |
| 361 | a • t = s - s' := by |
| 362 | -- Equivariance of the exponent map identifies the action of `g` on `ζᵗ`. |
| 363 | have g_pow := (map_cyclotomicCharMod_mul (rootPowHom Ω m).val g t).symm |
| 364 | rw [hg, ← nsmul_eq_mul, map_nsmul] at g_pow |
| 365 | -- Apply `g` to `ζᵗ`; conjugates of `γ` act alike on the root of unity `g y / y'`. |
| 366 | apply (rootPowHom Ω m).property.1 |
| 367 | linear_combination (norm := skip) galUnitsRep_conj_of_nsmul_eq_zero γ (g * g') hgy - |
| 368 | galUnitsRep_conj_of_nsmul_eq_zero γ g hgy - g_pow |
| 369 | -- `-nsmul_eq_mul` keeps `a •` outside `rootPowHom`, where `abel` can match it. |
| 370 | simp [ht, hs, hs', -nsmul_eq_mul] |
| 371 | abel |
| 372 | |
| 373 | /-- Let `B` lie above the prime `q` and let `M` be a unit at `B`. For a unit `v` mod `q` there is |
| 374 | an element `τ` of the inertia group of `B` whose cyclotomic character mod `q M`, acting on `ℚ/ℤ`, |
| 375 | sends `x + v u / q` to `x + u / q` for every `x` in the `M`-torsion and every `u` mod `q`. -/ |
| 376 | lemma exists_inertia_smul_add_ofZMod [NeZero M] {q : Nat.Primes} (hq : B.valuation (q : Ω) < 1) |
| 377 | (hM : B.valuation M = 1) (v : (ZMod q)ˣ) : |
| 378 | ∃ τ ∈ inertiaGroup Gal(Ω/ℚ) B, ∀ x : QZ, M • x = 0 → ∀ u : ZMod q, |
| 379 | (cyclotomicCharMod Ω (q * M) τ : ZMod (q * M)).val • (x + ofZMod q (v * u)) = |
| 380 | x + ofZMod q u := by |
| 381 | -- Take `τ` with `cyc_q τ = v⁻¹`; it fixes the `M`-th roots of unity, as `M` is a unit at `B`. |
| 382 | obtain ⟨τ, hτ, cyc_τ⟩ := exists_inertia_cyclotomicChar_eq hq (val_coe_unit_coprime v⁻¹).symm |
| 383 | refine ⟨τ, hτ, fun x hx u ↦ ?_⟩ |
| 384 | obtain ⟨b, rfl⟩ := exists_ofZMod hx |
| 385 | -- The character of `τ` is `1` mod `M` and `v⁻¹` mod `q`. |
| 386 | have cyc_M : (cyclotomicCharMod Ω M τ : ZMod M) = (1 : ℕ) := hτ.cyclotomicCharMod_eq hM |
| 387 | have cyc_mod_q : (cyclotomicCharMod Ω q τ : ZMod q) = ((v⁻¹ : (ZMod q)ˣ) : ZMod q).val := |
| 388 | cyclotomicCharMod_eq_of_dvd (dvd_pow_self (q : ℕ) one_ne_zero) |
| 389 | ((pow_dvd_cyclotomicChar_sub_iff 1).mp (by simp only [cyc_τ, sub_self, dvd_zero])) |
| 390 | -- Without `-inv_coe_unit` this `simp` call loops. |
| 391 | simp [← map_nsmul, ← cyclotomicCharMod_eq_of_dvd _ (ZMod.natCast_zmod_val _).symm, cyc_M, |
| 392 | cyc_mod_q, -inv_coe_unit] |
| 393 | |
| 394 | end CommutatorLog |
| 395 | |
| 396 | section Telescoping |
| 397 | |
| 398 | /-- Let `τ` lie in the inertia group of `B` and let `φ` be a `q`-Frobenius at `B`. Let the `Y b`, |
| 399 | for `b` mod `q`, have `m`-th powers that are units at `B` and congruent to each other modulo `B`, |
| 400 | and let `lg (v u) ≡ lg u + 1 mod m` for the units `u` mod `q`. Then |
| 401 | `∏_b Y b / φ (Y 0) · ∏_u (τ Y(v u) / Y u) ^ lg u` is a principal unit at `B`. -/ |
| 402 | lemma telescoping_mem_principalUnits (hτ : IsFrob B 1 τ) (hφ : IsFrob B q φ) |
| 403 | (h_unit : ∀ b : ZMod q, B.valuation ((m • Y b).toMul : Ω) = 1) |
| 404 | (h_cong : ∀ b : ZMod q, m • (Y b - Y 0) ∈ principalUnits B) |
| 405 | (hlg : ∀ u : (ZMod q)ˣ, (m : ℤ) ∣ lg (v * u) - lg u - 1) : |
| 406 | ∑ b : ZMod q, Y b - galUnitsRep φ (Y 0) + |
| 407 | ∑ u : (ZMod q)ˣ, lg u • (galUnitsRep τ (Y (v * u)) - Y u) ∈ |
| 408 | principalUnits B := by |
| 409 | -- Modulo `B`, `τ` acts trivially on units and `φ` as the `q`-th power; the sum over `u` |
| 410 | -- telescopes. |
| 411 | have h_quot : ∀ u : (ZMod q)ˣ, ∃ k : ℤ, lg (v * u) - lg u - 1 = m * k := hlg |
| 412 | choose k hk using h_quot |
| 413 | have inertia (b : ZMod q) : galUnitsRep τ (Y b) - 1 • Y b ∈ principalUnits B := |
| 414 | hτ.sub_nsmul_mem_principalUnits (h_unit b) |
| 415 | have frobenius : galUnitsRep φ (Y 0) - (q : ℕ) • Y 0 ∈ principalUnits B := |
| 416 | hφ.sub_nsmul_mem_principalUnits (h_unit 0) |
| 417 | have h_mem : ∑ u : (ZMod q)ˣ, (lg u • (galUnitsRep τ (Y (v * u)) - 1 • Y (v * u)) - |
| 418 | k u • m • (Y (v * u) - Y 0)) - (galUnitsRep φ (Y 0) - (q : ℕ) • Y 0) ∈ principalUnits B := |
| 419 | sub_mem (sum_mem fun u _ ↦ |
| 420 | sub_mem (zsmul_mem (inertia (v * u)) (lg u)) (zsmul_mem (h_cong (v * u)) (k u))) frobenius |
| 421 | -- Reindex the sum by `u ↦ v u`; the exponents telescope by `hk`. |
| 422 | have h_eq : ∑ b : ZMod q, Y b - galUnitsRep φ (Y 0) + |
| 423 | ∑ u : (ZMod q)ˣ, lg u • (galUnitsRep τ (Y (v * u)) - Y u) = |
| 424 | ∑ u : (ZMod q)ˣ, (lg u • (galUnitsRep τ (Y (v * u)) - 1 • Y (v * u)) - |
| 425 | k u • m • (Y (v * u) - Y 0)) - (galUnitsRep φ (Y 0) - (q : ℕ) • Y 0) := by |
| 426 | simp_rw [← natCast_zsmul, ← mul_zsmul', ← hk] |
| 427 | linear_combination (norm := skip) Equiv.sum_comp (.mulLeft v) fun u ↦ lg u • (Y u - Y 0) - Y u |
| 428 | simp [sub_smul, smul_sub, sub_nsmul, q.prop.one_le, Nat.totient_prime q.prop, |
| 429 | sum_eq_add_sum_units] |
| 430 | abel |
| 431 | rw [h_eq] |
| 432 | exact h_mem |
| 433 | |
| 434 | open Pointwise in |
| 435 | /-- The congruence behind the relation between Frobenius and inertia. Let `B` lie above `q`, let `τ` |
| 436 | lie in its inertia group, let `φ` be a `q`-Frobenius at `B`, and let `γ ∈ Gal(Ω/ℚ)` and `y ∈ Ωˣ`. |
| 437 | Let `Y : ℤ/q → Ωˣ` be such that at every place above `q`, `Y bᵐ` is a unit and `(Y b / Y 0)ᵐ` is a |
| 438 | principal unit. Let `v` be a unit mod `q` and `lg` satisfy `lg (v u) ≡ lg u + 1 mod m`. Suppose |
| 439 | `φ (Y 0) / y` and `τ Y(v u) / Y u` are `m`-th roots of unity, and `(∏_b Y b / y)ᵐ` is a root of |
| 440 | unity. Then `∏_u (γ Y u / τγτ⁻¹ Y u) ^ lg u ≡ γ y / φγφ⁻¹ y` modulo `B`, i.e. their quotient is a |
| 441 | principal unit at `B`. -/ |
| 442 | lemma derivative_sub_frob_mem_principalUnits (γ : Gal(Ω/ℚ)) (hq : B.valuation (q : Ω) < 1) |
| 443 | (hτ : IsFrob B 1 τ) (hφ : IsFrob B q φ) |
| 444 | (h_unit : ∀ A : ClosurePlace, A.valuation (q : Ω) < 1 → |
| 445 | ∀ b : ZMod q, A.valuation ((m • Y b).toMul : Ω) = 1) |
| 446 | (h_cong : ∀ A : ClosurePlace, A.valuation (q : Ω) < 1 → |
| 447 | ∀ b : ZMod q, m • (Y b - Y 0) ∈ principalUnits A) |
| 448 | (hlg : ∀ u : (ZMod q)ˣ, (m : ℤ) ∣ lg (v * u) - lg u - 1) |
| 449 | (hφY : m • (galUnitsRep φ (Y 0) - y) = 0) |
| 450 | (hτY : ∀ u : ZMod q, m • (galUnitsRep τ (Y (v * u)) - Y u) = 0) |
| 451 | (h_dist : IsOfFinAddOrder (m • (∑ b : ZMod q, Y b - y))) : |
| 452 | ∑ u : (ZMod q)ˣ, lg u • (galUnitsRep γ (Y u) - galUnitsRep (τ * γ * τ⁻¹) (Y u)) - |
| 453 | (galUnitsRep γ y - galUnitsRep (φ * γ * φ⁻¹) y) ∈ principalUnits B := by |
| 454 | -- `W δ` is the telescoping product for `τ` and `φ` conjugated by `δ`; it is a principal unit at |
| 455 | -- `δ B`. The wanted quotient is `γ (W 1) / γ (W γ⁻¹)`. |
| 456 | let W (δ : Gal(Ω/ℚ)) : DiscreteUnits Ω := |
| 457 | ∑ b : ZMod q, Y b - galUnitsRep (δ * φ * δ⁻¹) (Y 0) + |
| 458 | ∑ u : (ZMod q)ˣ, lg u • (galUnitsRep (δ * τ * δ⁻¹) (Y (v * u)) - Y u) |
| 459 | have W_mem (δ : Gal(Ω/ℚ)) : galUnitsRep δ⁻¹ (W δ) ∈ principalUnits B := by |
| 460 | have hqδ : (δ • B).valuation (q : Ω) < 1 := by simpa using (smul_apply_smul_lt_one_iff δ).mpr hq |
| 461 | have W_conj : W δ ∈ principalUnits (δ • B) := |
| 462 | telescoping_mem_principalUnits (hτ.conj δ) (hφ.conj δ) (h_unit _ hqδ) (h_cong _ hqδ) hlg |
| 463 | -- `δ` carries `B` to `δ B` and `δ⁻¹ (W δ)` to `W δ`. |
| 464 | rw [mem_principalUnits_iff, ← smul_apply_smul_lt_one_iff δ] |
| 465 | simpa [val_unitsRep, smul_sub] using mem_principalUnits_iff.mp W_conj |
| 466 | -- `W 1` is a root of unity by the distribution relation, so `γ` acts on it by a power. |
| 467 | obtain ⟨k, k_pos, hk⟩ := h_dist.exists_nsmul_eq_zero |
| 468 | have hk_ne : NeZero k := NeZero.of_pos k_pos |
| 469 | have h_diff : k • m • (∑ b : ZMod q, Y b - y) - k • m • (galUnitsRep φ (Y 0) - y) = 0 := by |
| 470 | rw [hk, hφY, smul_zero, sub_zero] |
| 471 | have root : (k * m) • W 1 = 0 := by |
| 472 | simpa [W, ← smul_sub, smul_sum, smul_comm _ (lg _), hτY, mul_smul] using h_diff |
| 473 | have γ_mem : galUnitsRep γ (W 1) ∈ principalUnits B := by |
| 474 | rw [cyclotomicCharMod_eq_iff_unitsRep.mp (ZMod.natCast_zmod_val _).symm root] |
| 475 | exact nsmul_mem (by simpa using W_mem 1) _ |
| 476 | -- Conjugating by `φ` and `τ` does not change how `γ` acts on these roots of unity. |
| 477 | have h_conj_τ : ∑ u : (ZMod q)ˣ, lg u • galUnitsRep γ (galUnitsRep τ (Y (v * u)) - Y u) = |
| 478 | ∑ u : (ZMod q)ˣ, lg u • galUnitsRep (τ * γ * τ⁻¹) (galUnitsRep τ (Y (v * u)) - Y u) := |
| 479 | sum_congr rfl fun u _ ↦ by rw [galUnitsRep_conj_of_nsmul_eq_zero γ τ (hτY u)] |
| 480 | have h_eq : ∑ u : (ZMod q)ˣ, lg u • (galUnitsRep γ (Y u) - galUnitsRep (τ * γ * τ⁻¹) (Y u)) - |
| 481 | (galUnitsRep γ y - galUnitsRep (φ * γ * φ⁻¹) y) = |
| 482 | galUnitsRep γ (W 1) - galUnitsRep γ⁻¹⁻¹ (W γ⁻¹) := by |
| 483 | linear_combination (norm := skip) galUnitsRep_conj_of_nsmul_eq_zero γ φ hφY - h_conj_τ |
| 484 | simp [W, smul_sub] |
| 485 | abel |
| 486 | rw [h_eq] |
| 487 | exact sub_mem γ_mem (W_mem γ⁻¹) |
| 488 | |
| 489 | end Telescoping |
| 490 | |
| 491 | end |
| 492 | |
| 493 | section Cocycles |
| 494 | |
| 495 | variable {O : Type} [CommRing O] {B : ClosurePlace} {M N l n e : ℕ} [NeZero N] [Fact l.Prime] |
| 496 | [Algebra ℤ_[l] O] {ψ : DirichletCharacter O N} [Algebra (ZMod (l ^ n)) (QuotSpan (l ^ n : O))] |
| 497 | {L : ∀ q : Nat.Primes, (ZMod q)ˣ →* Multiplicative (ZMod (l ^ n))} |
| 498 | {p : Nat.Primes} {c : ℕ} {γ : Gal(Ω/ℚ)} {y : QZ → DiscreteUnits Ω} [NeZero M] |
| 499 | |
| 500 | /-- A Kolyvagin system for the character `χ`, the element `γ`, the prime `p` and the set of primes |
| 501 | `P`: cocycles `κ S`, one for each `S ⊆ P`, that are unramified over `ℚ(ζ_N)` away from `l`, `p` and |
| 502 | `S`, vanish at `γ`, and are linked by the relation between Frobenius and inertia at the primes of |
| 503 | `P`. -/ |
| 504 | structure IsKolyvaginSystem {V : Type} [AddCommGroup V] [Module O V] (χ : Gal(Ω/ℚ) →* Oˣ) |
| 505 | (γ : Gal(Ω/ℚ)) (N l : ℕ) [NeZero N] (p : Nat.Primes) (P : Finset Nat.Primes) |
| 506 | (κ : Finset Nat.Primes → Gal(Ω/ℚ) → V) : Prop where |
| 507 | /-- `κ S` is a locally constant `χ`-cocycle that vanishes on inertia over `ℚ(ζ_N)` at the places |
| 508 | above neither `l`, `p` nor a prime of `S`. -/ |
| 509 | mem_vanishingCocycles : ∀ S ⊆ P, κ S ∈ vanishingCocycles χ V (inertiaOff N l (insert p S)) |
| 510 | /-- `κ S` vanishes at `γ`. -/ |
| 511 | apply_eq_zero : ∀ S ⊆ P, κ S γ = 0 |
| 512 | /-- For `q ∈ P ∖ S` and a Frobenius `φ` at a place `A` above `q`, `κ S φ` is a value of |
| 513 | `κ (S ∪ {q})` on inertia at `A`. -/ |
| 514 | exists_mem_inertiaGroup_eq : ∀ S ⊆ P, ∀ q ∈ P, q ∉ S → |
| 515 | ∀ (A : ClosurePlace) (φ : Gal(Ω/ℚ)), IsFrob A q φ → A.valuation (q : Ω) < 1 → |
| 516 | ∃ τ ∈ inertiaGroup Gal(Ω/ℚ) A, κ (insert q S) τ = κ S φ |
| 517 | |
| 518 | /-! |
| 519 | ## The cocycles at one level |
| 520 | |
| 521 | In this section `y : ℚ/ℤ → Ω^×` is a family whose `lⁿ`-th powers `lⁿ • y` form a Jacobi family |
| 522 | (`New.OddPart.IsJacobiFamily`) at a level `M` (for `x` killed by `M`: `σ J(x) = J(a x)` if `σ` acts |
| 523 | on `μ_M` by `a`; `J x` is a unit at places prime to `p` and has order `floorDiff c x` at `B`), and |
| 524 | `commutatorLog (l ^ n) γ (y x) g` is the exponent `t` with `γ y(x) / (g γ g⁻¹) y(x) = ζᵗ`, for the |
| 525 | fixed primitive `lⁿ`-th root of unity `ζ`. |
| 526 | -/ |
| 527 | |
| 528 | omit [Fact l.Prime] in |
| 529 | /-- Let `lⁿ • y` be a Jacobi family at level `M`. If `σ` raises the `M`-th roots of unity to the |
| 530 | power `a`, then `σ (y x) / y (a x)` is an `lⁿ`-th root of unity, for every `x` killed by `M`. -/ |
| 531 | private lemma nsmul_galUnitsRep_sub_eq_zero_of_isJacobiFamily |
| 532 | (hJ : IsJacobiFamily p B c M (l ^ n • y)) {x : QZ} (hx : M • x = 0) (σ : Gal(Ω/ℚ)) (a : ℕ) |
| 533 | (ha : (cyclotomicCharMod Ω M σ).val = a) : |
| 534 | l ^ n • (galUnitsRep σ (y x) - y (a • x)) = 0 := by |
| 535 | rw [smul_sub, ← map_nsmul, sub_eq_zero] |
| 536 | exact hJ.galUnitsRep_apply hx σ a ha |
| 537 | |
| 538 | /-- Let `lⁿ • y` be a Jacobi family at level `M` and let `x` be killed by `M`. Then `commutatorLog` |
| 539 | names the root of unity `γ y(x) / (g γ g⁻¹) y(x)`: its image under `rootPowHom Ω (l ^ n)` is this |
| 540 | quotient. -/ |
| 541 | private lemma rootPowHom_commutatorLog_of_isJacobiFamily |
| 542 | (hJ : IsJacobiFamily p B c M (l ^ n • y)) {x : QZ} (hx : M • x = 0) (g : Gal(Ω/ℚ)) : |
| 543 | (rootPowHom Ω (l ^ n)).val (commutatorLog (l ^ n) γ (y x) g) = |
| 544 | galUnitsRep γ (y x) - galUnitsRep (g * γ * g⁻¹) (y x) := by |
| 545 | -- The commutator `γ⁻¹ g γ g⁻¹` fixes the `M`-th roots of unity. |
| 546 | have h_comm : (cyclotomicCharMod Ω M (γ⁻¹ * conj g γ)).val = (1 : ℕ) := by simp [mul_comm] |
| 547 | have h_fixed : l ^ n • (galUnitsRep (γ⁻¹ * conj g γ) (y x) - y x) = 0 := by |
| 548 | simpa using nsmul_galUnitsRep_sub_eq_zero_of_isJacobiFamily hJ hx (γ⁻¹ * conj g γ) 1 h_comm |
| 549 | have h_root : l ^ n • (galUnitsRep γ (y x) - galUnitsRep (g * γ * g⁻¹) (y x)) = 0 := by |
| 550 | simpa [smul_sub] using congr_arg (fun z : DiscreteUnits Ω ↦ -galUnitsRep γ z) h_fixed |
| 551 | exact invFun_eq (((rootPowHom Ω (l ^ n)).prop.2 _).mpr h_root) |
| 552 | |
| 553 | /-- Let `lⁿ • y` be a Jacobi family at level `M`, and let `r` be a prime dividing `M` with |
| 554 | `r ≡ 1 mod c`. For `x` killed by `M`, the exponents `commutatorLog (l ^ n) γ (y ·) g` satisfy the |
| 555 | distribution relation: their sum over the points `x + b / r` is their value at `r • x`. -/ |
| 556 | private lemma sum_commutatorLog_eq_of_isJacobiFamily |
| 557 | (hJ : IsJacobiFamily p B c M (l ^ n • y)) {r : Nat.Primes} (hr_dvd : (r : ℕ) ∣ M) |
| 558 | (hr_one : (r : ℕ) ≡ 1 [MOD c]) (g : Gal(Ω/ℚ)) {x : QZ} (hx : M • x = 0) : |
| 559 | ∑ b : ZMod r, commutatorLog (l ^ n) γ (y (x + ofZMod r b)) g = |
| 560 | commutatorLog (l ^ n) γ (y ((r : ℕ) • x)) g := by |
| 561 | let D : DiscreteUnits Ω := ∑ b : ZMod r, y (x + ofZMod r b) - y ((r : ℕ) • x) |
| 562 | have h_order : IsOfFinAddOrder (l ^ n • D) := by |
| 563 | simpa [D, smul_sub, smul_sum] using hJ.isOfFinAddOrder_sum_sub hx r hr_dvd |
| 564 | hr_one.coprime_of_modEq_one.symm |
| 565 | obtain ⟨k, k_pos, hk⟩ := (h_order.of_nsmul (NeZero.ne _)).exists_nsmul_eq_zero |
| 566 | have : NeZero k := .of_pos k_pos |
| 567 | have h_level (b : ZMod r) : M • (x + ofZMod r b) = 0 := by |
| 568 | simp [← map_nsmul, (natCast_eq_zero_iff M r).mpr hr_dvd, hx] |
| 569 | have h_level_r : M • ((r : ℕ) • x) = 0 := by simp [smul_comm M, hx] |
| 570 | apply (rootPowHom Ω (l ^ n)).property.left |
| 571 | simp only [map_sum, rootPowHom_commutatorLog_of_isJacobiFamily hJ (h_level _), |
| 572 | rootPowHom_commutatorLog_of_isJacobiFamily hJ h_level_r] |
| 573 | simpa only [D, map_sub, map_sum, sum_sub_distrib, sub_sub_sub_comm, |
| 574 | sub_eq_sub_iff_sub_eq_sub] using galUnitsRep_conj_of_nsmul_eq_zero γ g hk |
| 575 | |
| 576 | /-- Let `lⁿ • y` be a Jacobi family at level `M`, with `N lⁿ ∣ M`, and let every prime of `I` divide |
| 577 | `M` and be `≡ 1 mod c N lⁿ`. For `S ⊆ I`, the derivative sum `derivativeSum e ψ L S d` of the |
| 578 | exponents `x ↦ commutatorLog (l ^ n) γ (y x) g` does not depend on the shifts `d` (the sum at |
| 579 | `q ∈ S` carries the weights `L q u - d q`). -/ |
| 580 | private lemma derivativeSum_commutatorLog_eq_of_isJacobiFamily |
| 581 | (hJ : IsJacobiFamily p B c M (l ^ n • y)) (hM : N * l ^ n ∣ M) {I : Finset Nat.Primes} |
| 582 | (hI_dvd : ∀ q ∈ I, (q : ℕ) ∣ M) (hI_one : ∀ q ∈ I, (q : ℕ) ≡ 1 [MOD c * (N * l ^ n)]) |
| 583 | (g : Gal(Ω/ℚ)) {S : Finset Nat.Primes} (hS : S ⊆ I) (d f : Nat.Primes → ZMod (l ^ n)) : |
| 584 | derivativeSum e ψ L S d (fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) g) = |
| 585 | derivativeSum e ψ L S f (fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) g) := by |
| 586 | let F (x : QZ) : ZMod (l ^ n) := commutatorLog (l ^ n) γ (y x) g |
| 587 | revert hS d f |
| 588 | refine S.strongInductionOn fun S ih hS d f ↦ ?_ |
| 589 | have step (T : Finset Nat.Primes) (hT : T ⊆ S) : |
| 590 | derivativeSum e ψ L S (T.piecewise d f) F = derivativeSum e ψ L S f F := by |
| 591 | induction T using Finset.induction with |
| 592 | | empty => rfl |
| 593 | | insert r T hrT ihT => |
| 594 | obtain ⟨hr, hT⟩ := insert_subset_iff.mp hT |
| 595 | refine .trans ?_ (ihT hT) |
| 596 | have erase_le : S.erase r ⊆ I := (erase_subset r S).trans hS |
| 597 | have hr_not : r ∉ S.erase r := notMem_erase r S |
| 598 | have h_dvd : ∀ q ∈ S.erase r, (q : ℕ) ∣ M := fun q hq ↦ hI_dvd q (erase_le hq) |
| 599 | let G₁ (x : QZ) : ZMod (l ^ n) := |
| 600 | ∑ u : (ZMod r)ˣ, ((L r u).toAdd - (insert r T).piecewise d f r) * F (x + ofZMod r u) |
| 601 | let H (x : QZ) : ZMod (l ^ n) := ∑ b : ZMod r, F (x + ofZMod r b) |
| 602 | have h_vanish : derivativeSum e ψ L (S.erase r) ((insert r T).piecewise d f) H = |
| 603 | derivativeSum e ψ L (S.erase r) ((insert r T).piecewise d f) F := |
| 604 | (derivativeSum_eq_of_prime hM h_dvd (hI_one r (hS hr)).of_mul_left hr_not |
| 605 | (sum_commutatorLog_eq_of_isJacobiFamily hJ (hI_dvd r (hS hr)) |
| 606 | (hI_one r (hS hr)).of_mul_right g)).trans (ih _ (erase_ssubset hr) erase_le _ _) |
| 607 | rw [← insert_erase hr, derivativeSum_insert hr_not, derivativeSum_insert hr_not] |
| 608 | calc derivativeSum e ψ L (S.erase r) ((insert r T).piecewise d f) G₁ |
| 609 | = derivativeSum e ψ L (S.erase r) ((insert r T).piecewise d f) |
| 610 | (G₁ + (d r - f r) • (H - F)) := by simp [h_vanish] |
| 611 | _ = derivativeSum e ψ L (S.erase r) (T.piecewise d f) _ := |
| 612 | derivativeSum_congr hM h_dvd (fun q hq ↦ by simp [ne_of_mem_erase hq]) fun _ ↦ by |
| 613 | simp [G₁, H, hrT, mul_sum, sum_eq_add_sum_units, ← add_mul, ← sum_add_distrib] |
| 614 | exact (derivativeSum_congr hM (fun q hq ↦ hI_dvd q (hS hq)) (fun q hq ↦ by simp [hq]) |
| 615 | fun _ ↦ rfl).trans (step S le_rfl) |
| 616 | |
| 617 | /-- Let `lⁿ • y` be a Jacobi family at level `M` with `lⁿ ∣ M`, and let `g` lie in the inertia group |
| 618 | (`IsFrob A 1 g`) of a place `A` prime to `l`, fix the `M`-th roots of unity and have `g r / r = ζᵇ`. |
| 619 | If `y x ^ lⁿ` is a unit at `A` times `r ^ (lⁿ floorDiff c x)` for every `x` killed by `M`, then |
| 620 | `commutatorLog (l ^ n) γ (y x) g = (a floorDiff c x - floorDiff c (a x)) b` for such `x`, where `γ` |
| 621 | raises the `M`-th roots of unity to the power `a`. -/ |
| 622 | private lemma nsmul_floorDiff_mul_sub_commutatorLog_eq_of_isFrob |
| 623 | (hJ : IsJacobiFamily p B c M (l ^ n • y)) (hM : l ^ n ∣ M) {a : ℕ} |
| 624 | (ha : (cyclotomicCharMod Ω M γ).val = a) {g : Gal(Ω/ℚ)} {A : ClosurePlace} |
| 625 | (hg_cyc : cyclotomicCharMod Ω M g = 1) (hg_inertia : IsFrob A 1 g) |
| 626 | (hl : A.valuation (l ^ n : ℕ) = 1) {b : ZMod (l ^ n)} {r : DiscreteUnits Ω} |
| 627 | (hr : galUnitsRep g r - r = (rootPowHom Ω (l ^ n)).val b) |
| 628 | (h_unit : ∀ {x : QZ}, M • x = 0 → A.valuation (l ^ n • (y x - floorDiff c x • r)).toMul.val = 1) |
| 629 | {x : QZ} (hx : M • x = 0) : |
| 630 | a • (floorDiff c x * b) - commutatorLog (l ^ n) γ (y x) g = floorDiff c (a • x) * b := by |
| 631 | have h_gy : l ^ n • (galUnitsRep g (y x) - y x) = 0 := by |
| 632 | simpa using nsmul_galUnitsRep_sub_eq_zero_of_isJacobiFamily hJ hx g 1 (by simp [hg_cyc]) |
| 633 | have h_γy : l ^ n • (galUnitsRep γ (y x) - y (a • x)) = 0 := |
| 634 | nsmul_galUnitsRep_sub_eq_zero_of_isJacobiFamily hJ hx γ a ha |
| 635 | have hax : M • a • x = 0 := by simp [smul_comm M, hx] |
| 636 | have g_fix : galUnitsRep g (galUnitsRep γ (y x) - y (a • x)) = |
| 637 | 1 • (galUnitsRep γ (y x) - y (a • x)) := |
| 638 | cyclotomicCharMod_eq_iff_unitsRep.mp (hg_inertia.cyclotomicCharMod_eq hl) h_γy |
| 639 | have γ_pow : galUnitsRep γ (galUnitsRep g (y x) - y x) = a • (galUnitsRep g (y x) - y x) := |
| 640 | cyclotomicCharMod_eq_iff_unitsRep.mp (cyclotomicCharMod_eq_of_dvd hM ha) h_gy |
| 641 | have h_mem : galUnitsRep g (y (a • x) - floorDiff c (a • x) • r) - |
| 642 | 1 • (y (a • x) - floorDiff c (a • x) • r) - |
| 643 | a • (galUnitsRep g (y x - floorDiff c x • r) - 1 • (y x - floorDiff c x • r)) ∈ |
| 644 | principalUnits A := |
| 645 | sub_mem (hg_inertia.sub_nsmul_mem_principalUnits (h_unit hax)) |
| 646 | (nsmul_mem (hg_inertia.sub_nsmul_mem_principalUnits (h_unit hx)) a) |
| 647 | have h_eq : (rootPowHom Ω (l ^ n)).val |
| 648 | (a • (floorDiff c x * b) - commutatorLog (l ^ n) γ (y x) g - floorDiff c (a • x) * b) = |
| 649 | galUnitsRep g (y (a • x) - floorDiff c (a • x) • r) - |
| 650 | 1 • (y (a • x) - floorDiff c (a • x) • r) - |
| 651 | a • (galUnitsRep g (y x - floorDiff c x • r) - 1 • (y x - floorDiff c x • r)) := by |
| 652 | linear_combination (norm := skip) g_fix - γ_pow + galUnitsRep_conj_of_nsmul_eq_zero γ g h_gy |
| 653 | simp [rootPowHom_commutatorLog_of_isJacobiFamily hJ hx g, ← hr, ← zsmul_eq_mul, smul_sub, |
| 654 | -nsmul_eq_mul] |
| 655 | abel |
| 656 | exact eq_of_mem_principalUnits hl (by rwa [h_eq]) |
| 657 | |
| 658 | /-- The relation for the character sum. Let `B` lie above `p ≡ 1 mod N lⁿ`, and let `lⁿ • y` be a |
| 659 | Jacobi family at level `N lⁿ` for `p`, `B` and `c`. If the derivative sum over no primes of the |
| 660 | exponents `x ↦ commutatorLog (l ^ n) γ (y x) τ` vanishes for every `τ` in the inertia group of `B`, |
| 661 | then `(Υ γ - 1) ∑ floorDiff c (a / N lⁿ) aᵉ ψ(a) = 0` in `O/lⁿ`, where `Υ = cyc^(e+1) ψ` and `a` |
| 662 | runs over the units mod `N lⁿ`. -/ |
| 663 | private lemma cyclotomicPowDirichlet_sub_one_smul_sum_eq_zero_of_isJacobiFamily |
| 664 | (hJ : IsJacobiFamily p B c (N * l ^ n) (l ^ n • y)) (hpB : B.valuation p < 1) |
| 665 | (hp_one : (p : ℕ) ≡ 1 [MOD N * l ^ n]) |
| 666 | (h_vanish : ∀ τ ∈ inertiaGroup Gal(Ω/ℚ) B, |
| 667 | derivativeSum e ψ L ∅ 0 (fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) τ) = 0) : |
| 668 | (cyclotomicPowDirichlet l (e + 1) ψ γ - 1 : O) • |
| 669 | ((∑ a : (ZMod (N * l ^ n))ˣ, floorDiff c (ofZMod (N * l ^ n) a) * |
| 670 | ((a : ZMod (N * l ^ n)).val ^ e * ψ (a : ZMod (N * l ^ n)).val) : O) : |
| 671 | QuotSpan (l ^ n : O)) = |
| 672 | (0 : QuotSpan (l ^ n : O)) := by |
| 673 | -- Take `τ` in the inertia group at `B` moving an `lⁿ`-th root `r` of a uniformiser by `ζ`. As |
| 674 | -- `y x ^ lⁿ` is a unit times `r ^ (lⁿ floorDiff c x)`, the exponent of `y x` at `τ` is |
| 675 | -- `a floorDiff c x - floorDiff c (a x)`, where `a` is the cyclotomic character of `γ`. |
| 676 | obtain ⟨a, ha⟩ : ∃ a : ℕ, (cyclotomicCharMod Ω (N * l ^ n) γ).val = a := |
| 677 | ⟨_, (ZMod.natCast_zmod_val _).symm⟩ |
| 678 | obtain ⟨v, hv, -⟩ := exists_isPlaceOver_prime hpB |
| 679 | obtain ⟨τ, hτ, π, r, unif, hr, τ_r⟩ := exists_isTameGeneratorFor Gal(Ω/ℚ) (l ^ n) hv |
| 680 | have h_unit {x : QZ} (hx : (N * l ^ n) • x = 0) : |
| 681 | B.valuation (l ^ n • (y x - floorDiff c x • r)).toMul.val = 1 := by |
| 682 | have h_ord : l ^ n • ordRat ℚ B (y x) = floorDiff c x := by simpa using hJ.ordRat_eq hx |
| 683 | apply hv.ordRat_eq_zero_iff.mp |
| 684 | simp [smul_sub, smul_comm, h_ord, hv.ordRat_ofBase, hv.isUniformizer_iff.mp unif, hr] |
| 685 | have hτ_cyc : τ ∈ cycloGalGroup (N * l ^ n) := decompGroup_le_cycloGalGroup hpB hp_one hτ.left |
| 686 | have hl : B.valuation (l ^ n : ℕ) = 1 := |
| 687 | (hp_one.of_dvd (dvd_mul_left _ _)).coprime_of_modEq_one.valuation_eq_one hpB |
| 688 | have hτ_r : galUnitsRep τ r - r = (rootPowHom Ω (l ^ n)).val 1 := by simpa using τ_r |
| 689 | have h_exponent {x : QZ} (hx : (N * l ^ n) • x = 0) : |
| 690 | a • (floorDiff c x : ZMod (l ^ n)) - commutatorLog (l ^ n) γ (y x) τ = |
| 691 | floorDiff c (a • x) := by |
| 692 | simpa only [mul_one] using nsmul_floorDiff_mul_sub_commutatorLog_eq_of_isFrob hJ |
| 693 | (dvd_mul_left _ _) ha hτ_cyc hτ hl hτ_r h_unit hx |
| 694 | exact sub_one_smul_sum_eq_zero dvd_rfl ha h_exponent (h_vanish τ hτ) |
| 695 | |
| 696 | /-- The cocycle rule. Let `lⁿ • y` be a Jacobi family at level `M`, with `N lⁿ ∣ M`, and let every |
| 697 | prime of `I` divide `M` and be `≡ 1 mod c N lⁿ`. Write `Λ h` for `derivativeSum e ψ L I 0` of the |
| 698 | exponents `x ↦ commutatorLog (l ^ n) γ (y x) h`. Then `Λ (g g') = Λ g + Υ(g) Λ g'` for |
| 699 | `Υ = cyc^(e+1) ψ`. -/ |
| 700 | private lemma derivativeSum_commutatorLog_mul_eq_of_isJacobiFamily |
| 701 | (hJ : IsJacobiFamily p B c M (l ^ n • y)) (hM : N * l ^ n ∣ M) {I : Finset Nat.Primes} |
| 702 | (hI_dvd : ∀ q ∈ I, (q : ℕ) ∣ M) (hI_one : ∀ q ∈ I, (q : ℕ) ≡ 1 [MOD c * (N * l ^ n)]) |
| 703 | (g g' : Gal(Ω/ℚ)) : |
| 704 | derivativeSum e ψ L I 0 (fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) (g * g')) = |
| 705 | derivativeSum e ψ L I 0 (fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) g) + |
| 706 | (cyclotomicPowDirichlet l (e + 1) ψ g).val • |
| 707 | derivativeSum e ψ L I 0 (fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) g') := by |
| 708 | -- With `a` the cyclotomic character of `g` mod `M` and `F h x` the exponent of `y x` at `h`: |
| 709 | -- `F (g g') (a x) = F g (a x) + a F g' x` (`nsmul_exponent_eq_sub`). Equivariance of the |
| 710 | -- derivative sum carries this to `Λ`; it changes only the shifts, which do not matter. |
| 711 | let F (h : Gal(Ω/ℚ)) (x : QZ) : ZMod (l ^ n) := commutatorLog (l ^ n) γ (y x) h |
| 712 | change derivativeSum e ψ L I 0 (F (g * g')) = derivativeSum e ψ L I 0 (F g) + |
| 713 | (cyclotomicPowDirichlet l (e + 1) ψ g).val • derivativeSum e ψ L I 0 (F g') |
| 714 | have killed {v : QuotSpan (l ^ n : O)} : l ^ n • v = 0 := nsmul_quot_eq_zero dvd_rfl v |
| 715 | obtain ⟨a, ha⟩ : ∃ a : ℕ, (cyclotomicCharMod Ω M g).val = a := ⟨_, (ZMod.natCast_zmod_val _).symm⟩ |
| 716 | have ha_N : (cyclotomicCharMod Ω (N * l ^ n) g).val = a := cyclotomicCharMod_eq_of_dvd hM ha |
| 717 | have h_exponent {x : QZ} (hx : M • x = 0) : (a • F g') x = (F (g * g') - F g) (a • x) := by |
| 718 | have hax : M • a • x = 0 := by simp [smul_comm M, hx] |
| 719 | exact nsmul_exponent_eq_sub (cyclotomicCharMod_eq_of_dvd (dvd_of_mul_left_dvd hM) ha) |
| 720 | (nsmul_galUnitsRep_sub_eq_zero_of_isJacobiFamily hJ hx g a ha) |
| 721 | (rootPowHom_commutatorLog_of_isJacobiFamily hJ hx g') |
| 722 | (rootPowHom_commutatorLog_of_isJacobiFamily hJ hax (g * g')) |
| 723 | (rootPowHom_commutatorLog_of_isJacobiFamily hJ hax g) |
| 724 | have a_unit {q : Nat.Primes} (hq : q ∈ I) : IsUnit (a : ZMod q) := |
| 725 | ⟨unitsMap (hI_dvd q hq) (cyclotomicCharMod Ω M g), |
| 726 | by rw [unitsMap_val, ha, cast_natCast (hI_dvd q hq) a]⟩ |
| 727 | let v (q : Nat.Primes) : (ZMod q)ˣ := invFun Units.val (a : ZMod q) |
| 728 | let f (q : Nat.Primes) : ZMod (l ^ n) := (L q (v q)).toAdd |
| 729 | have h_equiv : (cyclotomicPowDirichlet l e ψ g : O) • derivativeSum e ψ L I 0 (a • F g') = |
| 730 | derivativeSum e ψ L I f (F (g * g') - F g) := |
| 731 | cyclotomicPowDirichlet_smul_derivativeSum hM hI_dvd ha_N |
| 732 | (fun q hq ↦ ⟨v q, by simp [f], invFun_eq (a_unit hq)⟩) h_exponent |
| 733 | have h_shift (h : Gal(Ω/ℚ)) : derivativeSum e ψ L I f (F h) = derivativeSum e ψ L I 0 (F h) := |
| 734 | derivativeSum_commutatorLog_eq_of_isJacobiFamily hJ hM hI_dvd hI_one h le_rfl f 0 |
| 735 | rw [cyclotomicPowDirichlet_succ_smul ha_N killed, ← map_nsmul, h_equiv, map_sub, h_shift, |
| 736 | h_shift] |
| 737 | abel |
| 738 | |
| 739 | /-- The cocycles at the level `M = N lⁿ ∏_{r ∈ I} r`, when `lⁿ • y` is a Jacobi family at level `M` |
| 740 | and the primes of `I` are `≡ 1 mod c N lⁿ`: `g ↦ derivativeSum e ψ L I 0 F_g`, where `F_g x` is the |
| 741 | exponent `commutatorLog (l ^ n) γ (y x) g`, is a locally constant cocycle for `Υ = cyc^(e+1) ψ` that |
| 742 | vanishes on inertia over `ℚ(ζ_N)` at the places above neither `l`, `p` nor a prime of `I`. -/ |
| 743 | private lemma derivativeSum_commutatorLog_mem_vanishingCocycles_of_isJacobiFamily |
| 744 | (hJ : IsJacobiFamily p B c M (l ^ n • y)) {I : Finset Nat.Primes} |
| 745 | (hM_eq : N * l ^ n * ∏ q ∈ I, (q : ℕ) = M) (hM : N * l ^ n ∣ M) |
| 746 | (hI_dvd : ∀ q ∈ I, (q : ℕ) ∣ M) (hI_one : ∀ q ∈ I, (q : ℕ) ≡ 1 [MOD c * (N * l ^ n)]) : |
| 747 | (fun g : Gal(Ω/ℚ) ↦ derivativeSum e ψ L I 0 fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) g) ∈ |
| 748 | vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ n : O)) |
| 749 | (inertiaOff N l (insert p I)) := by |
| 750 | -- The derivative sum reads only the values on `M`-torsion. |
| 751 | have h_congr {G G' : QZ → ZMod (l ^ n)} (hG : ∀ {x : QZ}, M • x = 0 → G x = G' x) : |
| 752 | derivativeSum e ψ L I 0 G = derivativeSum e ψ L I 0 G' := |
| 753 | derivativeSum_congr hM hI_dvd (fun _ _ ↦ rfl) hG |
| 754 | refine ⟨?_, fun g g' ↦ |
| 755 | derivativeSum_commutatorLog_mul_eq_of_isJacobiFamily hJ hM hI_dvd hI_one g g', ?_⟩ |
| 756 | · -- Locally constant: only the finitely many exponents at the points `b / M` are read. |
| 757 | have h_orbit (b : ZMod M) : |
| 758 | IsLocallyConstant fun g : Gal(Ω/ℚ) ↦ commutatorLog (l ^ n) γ (y (ofZMod M b)) g := |
| 759 | isLocallyConstant_commutatorLog |
| 760 | refine (IsLocallyConstant.iff_eventually_eq _).mpr fun g ↦ ?_ |
| 761 | filter_upwards [Filter.eventually_all.mpr fun b ↦ (h_orbit b).eventually_eq g] with g' hg' |
| 762 | refine h_congr fun hx ↦ ?_ |
| 763 | obtain ⟨b, rfl⟩ := exists_ofZMod hx |
| 764 | exact hg' b |
| 765 | · -- Away from `l`, `p` and `I` the `y x` are units, and inertia fixing `μ_N` fixes `μ_M`; so |
| 766 | -- every exponent is zero (`nsmul_floorDiff_mul_sub_commutatorLog_eq_of_isFrob` with `b = 0` and |
| 767 | -- `r = 0`, the unit `1` of `Ω^×` written additively). |
| 768 | rintro g ⟨A, ⟨hgN, hlA, hg⟩, hA⟩ |
| 769 | obtain ⟨hpA, hIA⟩ : A.valuation p = 1 ∧ ∀ q ∈ I, A.valuation (q : Ω) = 1 := by |
| 770 | simpa [LE.le.ge_iff_eq] using hA |
| 771 | have h_cofactor : A.valuation ((l ^ n * ∏ q ∈ I, (q : ℕ) : ℕ) : Ω) = 1 := by |
| 772 | simp +contextual [hlA, hIA] |
| 773 | have hgM : g ∈ cycloGalGroup M := |
| 774 | mem_cycloGalGroup_of_mem_inertiaGroup hg h_cofactor (by rw [← hM_eq, mul_assoc]) hgN |
| 775 | obtain ⟨a, ha⟩ : ∃ a : ℕ, (cyclotomicCharMod Ω M γ).val = a := |
| 776 | ⟨_, (ZMod.natCast_zmod_val _).symm⟩ |
| 777 | have h_unit {x : QZ} (hx : M • x = 0) : |
| 778 | A.valuation (l ^ n • (y x - floorDiff c x • (0 : DiscreteUnits Ω))).toMul.val = 1 := by |
| 779 | simpa using hJ.valuation_eq_one hx A hpA |
| 780 | have h_exponent_zero {x : QZ} (hx : M • x = 0) : commutatorLog (l ^ n) γ (y x) g = 0 := by |
| 781 | simpa using nsmul_floorDiff_mul_sub_commutatorLog_eq_of_isFrob hJ (dvd_of_mul_left_dvd hM) ha |
| 782 | hgM hg (by simp [hlA]) (b := 0) (by simp) h_unit hx |
| 783 | exact (h_congr (G' := 0) h_exponent_zero).trans (map_zero _) |
| 784 | |
| 785 | /-- Frobenius and inertia for the exponents at one `x` killed by `M`: for a Frobenius `φ` at a place |
| 786 | `A` above `q` and `τ` in the inertia group of `A` whose cyclotomic character mod `q M` fixes the |
| 787 | `M`-torsion and sends `v u / q` to `u / q` (where `L q v = 1`), the exponents of `y (x + u/q)` |
| 788 | at `τ`, weighted by `L q u`, sum to the exponent of `y (q x)` at `φ`. Here `lⁿ ∣ M`, `q` is prime |
| 789 | to `M`, `q ≡ 1 mod c`, `p ≡ 1 mod q`, and `lⁿ • y` is a Jacobi family at levels `M` and `q M`. -/ |
| 790 | private lemma sum_mul_commutatorLog_eq_of_isJacobiFamily {q : Nat.Primes} |
| 791 | (hJ : IsJacobiFamily p B c M (l ^ n • y)) |
| 792 | (hJ_q : IsJacobiFamily p B c ((q : ℕ) * M) (l ^ n • y)) (hM : l ^ n ∣ M) |
| 793 | (hq_cop : (q : ℕ).Coprime M) (hq_one : (q : ℕ) ≡ 1 [MOD c]) (hpq : (p : ℕ) ≡ 1 [MOD q]) |
| 794 | {v : (ZMod q)ˣ} (hv : L q v = ofAdd 1) {A : ClosurePlace} (hqA : A.valuation (q : Ω) < 1) |
| 795 | {τ φ : Gal(Ω/ℚ)} (hτ : τ ∈ inertiaGroup Gal(Ω/ℚ) A) |
| 796 | (hτ_cyc : ∀ x : QZ, M • x = 0 → ∀ u : ZMod q, |
| 797 | (cyclotomicCharMod Ω ((q : ℕ) * M) τ : ZMod ((q : ℕ) * M)).val • (x + ofZMod q (v * u)) = |
| 798 | x + ofZMod q u) |
| 799 | (hφ : IsFrob A q φ) {x : QZ} (hx : M • x = 0) : |
| 800 | ∑ u : (ZMod q)ˣ, (L q u).toAdd * commutatorLog (l ^ n) γ (y (x + ofZMod q u)) τ = |
| 801 | commutatorLog (l ^ n) γ (y ((q : ℕ) • x)) φ := by |
| 802 | -- Put `Y b = y (x + b/q)` and lift `L q` to `lg` with values in `ℤ`. The congruence |
| 803 | -- `derivative_sub_frob_mem_principalUnits` says that the image of the difference of the two sides |
| 804 | -- under `rootPowHom` is a principal unit at `A`; so the two sides are equal. |
| 805 | choose lg hlg using fun u : (ZMod q)ˣ ↦ |
| 806 | (intCast_surjective (L q u).toAdd : ∃ z : ℤ, (z : ZMod (l ^ n)) = (L q u).toAdd) |
| 807 | let Y (b : ZMod q) : DiscreteUnits Ω := y (x + ofZMod q b) |
| 808 | have h_level (b : ZMod q) : ((q : ℕ) * M) • (x + ofZMod q b) = 0 := by |
| 809 | simp [← map_nsmul, mul_smul, hx, natCast_self] |
| 810 | have hx_q : M • ((q : ℕ) • x) = 0 := by simp [smul_comm M, hx] |
| 811 | have h_unit (A' : ClosurePlace) (hqA' : A'.valuation (q : Ω) < 1) (b : ZMod q) : |
| 812 | A'.valuation (l ^ n • Y b).toMul.val = 1 := |
| 813 | hJ_q.valuation_eq_one (h_level b) A' |
| 814 | (hpq.coprime_of_modEq_one.symm.valuation_eq_one hqA') |
| 815 | have h_cong (A' : ClosurePlace) (hqA' : A'.valuation (q : Ω) < 1) (b : ZMod q) : |
| 816 | l ^ n • (Y b - Y 0) ∈ principalUnits A' := by |
| 817 | simpa [Y, smul_sub] using hJ.sub_mem_principalUnits hx q A' (ofZMod q b) |
| 818 | (by simp [← map_nsmul, natCast_self]) hpq.symm.dvd' hqA' |
| 819 | have h_lg_step (u : (ZMod q)ˣ) : ((l ^ n : ℕ) : ℤ) ∣ lg (v * u) - lg u - 1 := by |
| 820 | rw [← intCast_zmod_eq_zero_iff_dvd] |
| 821 | simp [hlg, hv] |
| 822 | -- Up to `lⁿ`-th roots of unity, `φ` sends `Y 0 = y x` to `y (q x)`, and `τ` sends `Y (v u)` to |
| 823 | -- `Y u`. |
| 824 | have hφ_Y : l ^ n • (galUnitsRep φ (Y 0) - y ((q : ℕ) • x)) = 0 := by |
| 825 | simpa [Y] using nsmul_galUnitsRep_sub_eq_zero_of_isJacobiFamily hJ hx φ q |
| 826 | (hφ.cyclotomicCharMod_eq (hq_cop.valuation_eq_one hqA)) |
| 827 | have hτ_Y (u : ZMod q) : l ^ n • (galUnitsRep τ (Y (v * u)) - Y u) = 0 := by |
| 828 | simpa only [hτ_cyc x hx u] using |
| 829 | nsmul_galUnitsRep_sub_eq_zero_of_isJacobiFamily hJ_q (h_level (v * u)) τ _ |
| 830 | (ZMod.natCast_zmod_val _).symm |
| 831 | have h_dist : IsOfFinAddOrder (l ^ n • (∑ b : ZMod q, Y b - y ((q : ℕ) • x))) := by |
| 832 | simpa [Y, smul_sub, smul_sum] using |
| 833 | hJ_q.isOfFinAddOrder_sum_sub (h_level 0) q (dvd_mul_right _ _) |
| 834 | hq_one.coprime_of_modEq_one.symm |
| 835 | have h_image : (rootPowHom Ω (l ^ n)).val |
| 836 | (∑ u : (ZMod q)ˣ, (L q u).toAdd * commutatorLog (l ^ n) γ (y (x + ofZMod q u)) τ - |
| 837 | commutatorLog (l ^ n) γ (y ((q : ℕ) • x)) φ) = |
| 838 | ∑ u : (ZMod q)ˣ, lg u • (galUnitsRep γ (Y u) - galUnitsRep (τ * γ * τ⁻¹) (Y u)) - |
| 839 | (galUnitsRep γ (y ((q : ℕ) • x)) - galUnitsRep (φ * γ * φ⁻¹) (y ((q : ℕ) • x))) := by |
| 840 | simp [← hlg, ← zsmul_eq_mul, rootPowHom_commutatorLog_of_isJacobiFamily hJ_q (h_level _), |
| 841 | rootPowHom_commutatorLog_of_isJacobiFamily hJ hx_q, Y] |
| 842 | apply eq_of_mem_principalUnits ((hq_cop.of_dvd_right hM).valuation_eq_one hqA) |
| 843 | rw [h_image] |
| 844 | exact derivative_sub_frob_mem_principalUnits γ hqA hτ hφ h_unit h_cong h_lg_step hφ_Y hτ_Y h_dist |
| 845 | |
| 846 | /-- Frobenius and inertia for the derivative sums, at the level `M = N lⁿ ∏_{r ∈ I} r`: for a prime |
| 847 | `q ∉ I`, a place `A` above `q` and a Frobenius `φ` at `A`, some `τ` in the inertia group of `A` has |
| 848 | `Λ (I ∪ {q}) τ = Λ I φ`, with `Λ S h = derivativeSum e ψ L S 0 (commutatorLog (l ^ n) γ (y ·) h)`. |
| 849 | Here `p ≡ 1` mod `M` and mod `q`, `lⁿ • y` is a Jacobi family at every level `M' ∣ p - 1`, `q` and |
| 850 | the primes of `I` are `≡ 1 mod c N lⁿ`, and `L q v = 1` for some `v`. -/ |
| 851 | private lemma exists_mem_inertiaGroup_derivativeSum_insert_eq_of_isJacobiFamily |
| 852 | (hJ : ∀ (M' : ℕ) [NeZero M'], (p : ℕ) ≡ 1 [MOD M'] → IsJacobiFamily p B c M' (l ^ n • y)) |
| 853 | {I : Finset Nat.Primes} (hM_eq : N * l ^ n * ∏ r ∈ I, (r : ℕ) = M) (hM : N * l ^ n ∣ M) |
| 854 | (hI_dvd : ∀ r ∈ I, (r : ℕ) ∣ M) (hpM : (p : ℕ) ≡ 1 [MOD M]) |
| 855 | (hI_one : ∀ r ∈ I, (r : ℕ) ≡ 1 [MOD c * (N * l ^ n)]) |
| 856 | {q : Nat.Primes} (hq_one : (q : ℕ) ≡ 1 [MOD c * (N * l ^ n)]) (hqI : q ∉ I) |
| 857 | (hpq : (p : ℕ) ≡ 1 [MOD q]) (hL : ∃ v : (ZMod q)ˣ, L q v = ofAdd 1) {A : ClosurePlace} |
| 858 | {φ : Gal(Ω/ℚ)} (hφ : IsFrob A q φ) (hqA : A.valuation (q : Ω) < 1) : |
| 859 | ∃ τ ∈ inertiaGroup Gal(Ω/ℚ) A, |
| 860 | derivativeSum e ψ L (insert q I) 0 (fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) τ) = |
| 861 | derivativeSum e ψ L I 0 (fun x : QZ ↦ commutatorLog (l ^ n) γ (y x) φ) := by |
| 862 | -- Take `v` with `L q v = 1` and `τ` in the inertia group at `A` with `cyc_q τ = v⁻¹`. By |
| 863 | -- `derivativeSum_eq_of_prime` it suffices to compare the exponents at each `x` killed by `M`. |
| 864 | obtain ⟨v, hv⟩ := hL |
| 865 | have hq_cop : (q : ℕ).Coprime M := by |
| 866 | rw [← hM_eq] |
| 867 | refine hq_one.of_mul_left.coprime_of_modEq_one.mul_right (Nat.Coprime.prod_right fun r hr ↦ |
| 868 | (Nat.coprime_primes q.prop r.prop).mpr fun h_eq ↦ hqI ?_) |
| 869 | rwa [Subtype.ext h_eq] |
| 870 | have hpqM : (p : ℕ) ≡ 1 [MOD q * M] := (Nat.modEq_and_modEq_iff_modEq_mul hq_cop).mp ⟨hpq, hpM⟩ |
| 871 | obtain ⟨τ, hτ, hτ_cyc⟩ := exists_inertia_smul_add_ofZMod hqA (hq_cop.valuation_eq_one hqA) v |
| 872 | have h_relation {x : QZ} (hx : M • x = 0) : |
| 873 | ∑ u : (ZMod q)ˣ, (L q u).toAdd * commutatorLog (l ^ n) γ (y (x + ofZMod q u)) τ = |
| 874 | commutatorLog (l ^ n) γ (y ((q : ℕ) • x)) φ := |
| 875 | sum_mul_commutatorLog_eq_of_isJacobiFamily (hJ M hpM) (hJ (q * M) hpqM) |
| 876 | (dvd_of_mul_left_dvd hM) hq_cop hq_one.of_mul_right hpq hv hqA hτ hτ_cyc hφ hx |
| 877 | refine ⟨τ, hτ, ?_⟩ |
| 878 | calc derivativeSum e ψ L (insert q I) 0 (fun x ↦ commutatorLog (l ^ n) γ (y x) τ) |
| 879 | = derivativeSum e ψ L I 0 fun x ↦ |
| 880 | ∑ u : (ZMod q)ˣ, (L q u).toAdd * commutatorLog (l ^ n) γ (y (x + ofZMod q u)) τ := by |
| 881 | simp only [derivativeSum_insert hqI, Pi.zero_apply, sub_zero] |
| 882 | _ = derivativeSum e ψ L I _ (fun x ↦ commutatorLog (l ^ n) γ (y x) φ) := |
| 883 | derivativeSum_eq_of_prime hM hI_dvd hq_one.of_mul_left hqI h_relation |
| 884 | _ = derivativeSum e ψ L I 0 (fun x ↦ commutatorLog (l ^ n) γ (y x) φ) := |
| 885 | derivativeSum_commutatorLog_eq_of_isJacobiFamily (hJ M hpM) hM hI_dvd hI_one φ le_rfl _ 0 |
| 886 | |
| 887 | end Cocycles |
| 888 | |
| 889 | /-- Kolyvagin's cocycles. Let `l` be a prime, `O` a `ℤ_l`-algebra, `ψ` a Dirichlet character mod |
| 890 | `N ≠ 0` with values in `O`, and `Υ = cyc^(e+1) ψ` (`New.cyclotomicPowDirichlet`) the character of |
| 891 | `Gal(ℚ̄/ℚ)` with `cyc` the `l`-adic cyclotomic character. Let `γ ∈ Gal(ℚ̄/ℚ)`, let `P` be a finite |
| 892 | set of primes `≡ 1 mod c N lⁿ`, and let `B` be a place of `ℚ̄` above a prime `p ≡ 1 mod N lⁿ ∏ P`. |
| 893 | Then there are maps `κ S` from `Gal(ℚ̄/ℚ)` to `O/lⁿ` (`QuotSpan (l ^ n : O)`), one for each finite |
| 894 | set `S` of primes, with two properties. |
| 895 | * They form a Kolyvagin system (`New.OddPart.IsKolyvaginSystem`). For `S ⊆ P`, `κ S` is a locally |
| 896 | constant `Υ`-cocycle, is unramified over `ℚ(ζ_N)` away from `l`, `p` and `S`, and vanishes at |
| 897 | `γ`. For `q ∈ P ∖ S`, the value of `κ S` at a Frobenius at a place `A` above `q` is a value of |
| 898 | `κ (S ∪ {q})` on the inertia group of `A`. |
| 899 | * If `κ ∅` vanishes on the inertia group of `B`, then `Υ γ - 1` kills the twisted Stickelberger |
| 900 | sum `∑ₐ m(a / N lⁿ) aᵉ ψ(a)` in `O/lⁿ`. Here `a` runs over the units mod `N lⁿ`, read as integers |
| 901 | in `[0, N lⁿ)`; `ofZMod M a` is `a / M` in `ℚ/ℤ`; and `m(x) = ⌊c ⟨x⟩⌋ - ⌊c ⟨-x⟩⌋` |
| 902 | (`New.OddPart.floorDiff c x`), where `⟨x⟩` is the representative of `x` in `[0, 1)`. -/ |
| 903 | lemma exists_isKolyvaginSystem {O : Type} [CommRing O] {B : ClosurePlace} {N l n : ℕ} [NeZero N] |
| 904 | [Fact l.Prime] [Algebra ℤ_[l] O] {ψ : DirichletCharacter O N} (e c : ℕ) (γ : Gal(Ω/ℚ)) |
| 905 | {P : Finset Nat.Primes} (hP_one : ∀ q ∈ P, (q : ℕ) ≡ 1 [MOD c * (N * l ^ n)]) |
| 906 | {p : Nat.Primes} (hp_one : (p : ℕ) ≡ 1 [MOD N * l ^ n * ∏ q ∈ P, (q : ℕ)]) |
| 907 | (hpB : B.valuation (p : Ω) < 1) : |
| 908 | ∃ κ : Finset Nat.Primes → Gal(Ω/ℚ) → QuotSpan (l ^ n : O), |
| 909 | IsKolyvaginSystem (cyclotomicPowDirichlet l (e + 1) ψ) γ N l p P κ ∧ |
| 910 | ((∀ τ ∈ inertiaGroup Gal(Ω/ℚ) B, κ ∅ τ = 0) → |
| 911 | (cyclotomicPowDirichlet l (e + 1) ψ γ - 1 : O) • |
| 912 | ((∑ a : (ZMod (N * l ^ n))ˣ, floorDiff c (ofZMod (N * l ^ n) a) * |
| 913 | ((a : ZMod (N * l ^ n)).val ^ e * ψ (a : ZMod (N * l ^ n)).val) : O) : |
| 914 | QuotSpan (l ^ n : O)) = |
| 915 | (0 : QuotSpan (l ^ n : O))) := by |
| 916 | -- Let `y x` be an `lⁿ`-th root of the Jacobi-type quotient `J x` (`exists_isJacobiFamily`). Then |
| 917 | -- `κ S g` is the derivative sum over `S` of the exponents of the `lⁿ`-th roots of unity |
| 918 | -- `γ y(x) / (g γ g⁻¹) y(x)`; its properties are proved at the level `N lⁿ ∏ S` above. |
| 919 | have killed (x : QuotSpan (l ^ n : O)) : l ^ n • x = 0 := nsmul_quot_eq_zero dvd_rfl x |
| 920 | let _ : Module (ZMod (l ^ n)) (QuotSpan (l ^ n : O)) := AddCommGroup.zmodModule killed |
| 921 | let _ : Algebra (ZMod (l ^ n)) (QuotSpan (l ^ n : O)) := |
| 922 | algebraOfModule (l ^ n) (QuotSpan (l ^ n : O)) |
| 923 | obtain ⟨J, hJ⟩ : ∃ J : QZ → DiscreteUnits Ω, |
| 924 | ∀ (M : ℕ) [NeZero M], (p : ℕ) ≡ 1 [MOD M] → IsJacobiFamily p B c M J := |
| 925 | exists_isJacobiFamily hpB c |
| 926 | obtain ⟨y, hy⟩ : ∃ y : QZ → DiscreteUnits Ω, ∀ x : QZ, l ^ n • y x = J x := |
| 927 | Classical.skolem.mp fun x ↦ (J x).exists_nsmul (ne _) |
| 928 | obtain rfl : J = l ^ n • y := funext fun x ↦ (hy x).symm |
| 929 | -- Discrete logarithms `L q` onto `ℤ/lⁿ`, for `q ∈ P`. |
| 930 | have exists_log : ∀ q ∈ P, ∃ L : (ZMod q)ˣ →* Multiplicative (ZMod (l ^ n)), |
| 931 | ∃ v : (ZMod q)ˣ, L v = ofAdd 1 := |
| 932 | fun q hq ↦ exists_monoidHom_units_zmod_eq_ofAdd_one (hP_one q hq).of_mul_left.of_mul_left |
| 933 | choose! L hL using exists_log |
| 934 | let κ (S : Finset Nat.Primes) (g : Gal(Ω/ℚ)) : QuotSpan (l ^ n : O) := |
| 935 | derivativeSum e ψ L S 0 fun x ↦ commutatorLog (l ^ n) γ (y x) g |
| 936 | -- The level `M S = N lⁿ ∏ S` divides `p - 1` for `S ⊆ P`. |
| 937 | let M (S : Finset Nat.Primes) : ℕ := N * l ^ n * ∏ q ∈ S, (q : ℕ) |
| 938 | have M_neZero (S : Finset Nat.Primes) : NeZero (M S) := ⟨by simp [M, ne, prod_eq_zero_iff]⟩ |
| 939 | have base_dvd (S : Finset Nat.Primes) : N * l ^ n ∣ M S := dvd_mul_right _ _ |
| 940 | have prime_dvd (S : Finset Nat.Primes) (q : Nat.Primes) (hq : q ∈ S) : (q : ℕ) ∣ M S := |
| 941 | (dvd_prod_of_mem _ hq).mul_left _ |
| 942 | have hp_level {S : Finset Nat.Primes} (hS : S ⊆ P) : (p : ℕ) ≡ 1 [MOD M S] := |
| 943 | hp_one.of_dvd (mul_dvd_mul_left (N * l ^ n) (prod_dvd_prod_of_subset S P _ hS)) |
| 944 | have hJ_level {S : Finset Nat.Primes} (hS : S ⊆ P) : IsJacobiFamily p B c (M S) (l ^ n • y) := |
| 945 | hJ (M S) (hp_level hS) |
| 946 | have system : IsKolyvaginSystem (cyclotomicPowDirichlet l (e + 1) ψ) γ N l p P κ := |
| 947 | { mem_vanishingCocycles := fun S hS ↦ |
| 948 | derivativeSum_commutatorLog_mem_vanishingCocycles_of_isJacobiFamily (hJ_level hS) rfl |
| 949 | (base_dvd S) (prime_dvd S) fun q hq ↦ hP_one q (hS hq) |
| 950 | apply_eq_zero := fun S _ ↦ by |
| 951 | simp only [κ, commutatorLog_self] |
| 952 | exact map_zero (derivativeSum e ψ L S 0) |
| 953 | exists_mem_inertiaGroup_eq := fun S hS q hqP hqS A φ hφ hqA ↦ |
| 954 | exists_mem_inertiaGroup_derivativeSum_insert_eq_of_isJacobiFamily hJ rfl (base_dvd S) |
| 955 | (prime_dvd S) (hp_level hS) (fun r hr ↦ hP_one r (hS hr)) (hP_one q hqP) hqS |
| 956 | (hp_one.of_dvd (prime_dvd P q hqP)) (hL q hqP) hφ hqA } |
| 957 | -- The relation for `κ ∅` is proved at the level `N lⁿ`. |
| 958 | have hp_base : (p : ℕ) ≡ 1 [MOD N * l ^ n] := hp_one.of_dvd (base_dvd P) |
| 959 | exact ⟨κ, system, |
| 960 | cyclotomicPowDirichlet_sub_one_smul_sum_eq_zero_of_isJacobiFamily (hJ (N * l ^ n) hp_base) hpB |
| 961 | hp_base⟩ |
| 962 | |
| 963 | end New.OddPart |