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.Algebra.Order.Star.Rat |
| 4 | import Mathlib.RingTheory.ZMod.Torsion |
| 5 | public import Lib.Cyclotomic.Stickelberger |
| 6 | public import Lib.Cyclotomic.Voronoi |
| 7 | import Lib.Adelic.Adeles.LocalFactors |
| 8 | import Lib.ClassField.Global.AlbertBrauerHasseNoether |
| 9 | import Lib.ClassField.Global.ArtinMap |
| 10 | import Lib.ClassField.Global.ArtinReciprocity |
| 11 | import Lib.ClassField.Global.Chebotarev |
| 12 | import Lib.ClassField.Global.ExistenceTheorem |
| 13 | import Lib.ClassField.GreenbergWiles.SelmerLevels |
| 14 | import Lib.Cyclotomic.Kolyvagin.DerivativeCocycles |
| 15 | import Lib.General.NumberTheory.CoefficientRings |
| 16 | import Lib.PadicComparison.Descent.TestCategory |
| 17 | |
| 18 | /-! |
| 19 | # Reciprocity laws and Stickelberger and Kolyvagin bounds for odd-part cocycles |
| 20 | |
| 21 | The file studies cocycles on `Gal(Ω/ℚ)`, with `Ω` an algebraic closure of ℚ. Here |
| 22 | `New.cyclotomicPowDirichlet l e ψ` is `cyc^e ψ` with `cyc` the `l`-adic cyclotomic character. The |
| 23 | module `New.OddPart.component l e ψ ν` consists of the cocycles for `(cyc^e ψ)⁻¹` with values in |
| 24 | `O / l^ν`, where `O` (`PadicIntegerRing O l`) is the integer ring of a finite extension of ℚ_l, that |
| 25 | satisfy three conditions. They are unramified off `l` over ℚ(μ_N), split at `l` over ℚ(μ_{N l^∞}) |
| 26 | and zero at `New.cmConj`, a complex conjugation. Reciprocity laws at primes `q ≡ 1` relate the value |
| 27 | of one cocycle at a Frobenius element to the ramification of another. Using these laws and |
| 28 | Chebotarev's theorem, the file bounds these components in two ways. One bound is an annihilation |
| 29 | result analogous to Stickelberger's theorem. The other uses Kolyvagin's descent with the Euler |
| 30 | system of Gauss sums. |
| 31 | |
| 32 | ## Main definitions and results |
| 33 | |
| 34 | * `New.OddPart.artin_reciprocity_of_mem_component`: Artin reciprocity over ℚ(μ_{N m}), where the |
| 35 | prime q ≡ 1 splits completely, pairs a cocycle `x` with a number `y`; only the places above q |
| 36 | contribute. |
| 37 | * `New.OddPart.reciprocity_mod_ell`: the same law modulo `l` for a cocycle κ for cyc^(e+1) ψ; if |
| 38 | `2 (a ^ e - 1) x φ ≠ 0`, then κ vanishes on the inertia group of `B`. |
| 39 | * `New.OddPart.nsmul_component_eq_zero`: if `X` has the Stickelberger property |
| 40 | (`New.OddPart.IsStickelbergerBound N e X`), `cyc^e ψ` is odd and `e ≠ 0`, then `4 X²` kills |
| 41 | `New.OddPart.component l e ψ ν` (an analogue of Stickelberger's theorem). |
| 42 | * `New.OddPart.exists_detecting_points_component`: for large `l`, a cocycle in |
| 43 | `New.OddPart.component l e ψ ν` is determined by its values at `v_l(X) + 1` elements (Kolyvagin's |
| 44 | descent with the Euler system of Gauss sums). |
| 45 | |
| 46 | Notions from other files: |
| 47 | * `New.cyclotomicPowDirichlet l e ψ`: the character `cyc^e ψ` of `Gal(Ω/ℚ)` with values in `Oˣ`; the |
| 48 | Dirichlet character `ψ` is read through the action on the `N`-th roots of unity. |
| 49 | * `New.OddPart.vanishingCocycles χ M s`: the `O`-module of locally constant maps `x : Gal(Ω/ℚ) → M` |
| 50 | with `x (g h) = x g + χ(g) x h` (cocycles for `χ`) that vanish on `s`. |
| 51 | * `New.IsFrob A q σ`: `σ` stabilises the place `A` and `σ • x ≡ x ^ q` modulo its maximal ideal for |
| 52 | all `x ∈ A`. |
| 53 | * `New.ordRat K A`: the order `Ωˣ → ℚ` at the place `A`, normalised to be `1` on uniformisers of |
| 54 | `K`. `New.cyclotomicCharMod Ω n` gives the action on the `n`-th roots of unity, in `(ℤ/n)ˣ`. |
| 55 | |
| 56 | ## Relation to the literature |
| 57 | |
| 58 | Known result: Stickelberger annihilation and the Kolyvagin–Rubin bound for odd twisted components. |
| 59 | Here the value is taken at a negative integer instead of at zero, and for an integer X whose |
| 60 | multiples (a^(e+1) − 1) X, for a ≡ 1 mod N, are congruent modulo each m prime to a to 2w times the |
| 61 | Stickelberger sum at level N m, and which for each prime ℓ is divisible by (a^e − 1)(a^(e+1) − 1) |
| 62 | for some such a prime to ℓ, 4X² kills the odd component at every prime. For large primes ℓ, at most |
| 63 | v_ℓ(X)+1 Galois elements detect its classes. Source: J. Coates, W. Sinnott, An analogue of |
| 64 | Stickelberger's theorem for the higher K-groups, Invent. Math. 24 (1974); K. Rubin, Euler Systems, |
| 65 | 2000, III.4, Thm 4.6. |
| 66 | -/ |
| 67 | |
| 68 | @[expose] public section |
| 69 | |
| 70 | namespace New.OddPart |
| 71 | |
| 72 | /-! |
| 73 | ## Reciprocity laws for Galois cocycles and finiteness |
| 74 | |
| 75 | Places are valuation subrings of `Ω`, and the group Ω^× is written additively. `New.cycloGalGroup N` |
| 76 | is the Galois group over ℚ(μ_N). The cocycles in `New.OddPart.component l e ψ ν` vanish at |
| 77 | `New.cmConj`. Over ℚ(μ_N) they also vanish on inertia at places prime to `l` and on |
| 78 | `New.Selmer.shaLocalSet` above `l`. |
| 79 | -/ |
| 80 | |
| 81 | section ReciprocityLaw |
| 82 | |
| 83 | open DiscreteUnits Finset Subgroup QZ MonoidHom NeZero Fact Pointwise Submodule IsLocalRing |
| 84 | IsPlaceOver |
| 85 | |
| 86 | variable {O M : Type} [CommRing O] |
| 87 | {N l m e q ν : ℕ} [NeZero N] [NeZero m] [Fact l.Prime] [Fact q.Prime] [PadicIntegerRing O l] |
| 88 | {ψ : DirichletCharacter O N} {g τ φ : Gal(Ω/ℚ)} |
| 89 | {B : ClosurePlace} [AddCommGroup M] [Module O M] |
| 90 | {χ : Gal(Ω/ℚ) →* Oˣ} {s : Set Gal(Ω/ℚ)} {z : Gal(Ω/ℚ) → M} (hz : z ∈ vanishingCocycles χ M s) |
| 91 | |
| 92 | /-- A map `z` in `vanishingCocycles χ M s` satisfies the cocycle rule |
| 93 | `z (g h) = z g + χ(g) z h`. -/ |
| 94 | private lemma apply_mul_of_mem_vanishingCocycles (hz : z ∈ vanishingCocycles χ M s) |
| 95 | (g h : Gal(Ω/ℚ)) : z (g * h) = z g + (χ g).val • z h := |
| 96 | hz.2.1 g h |
| 97 | |
| 98 | /-- A map `z` in `vanishingCocycles χ M s` is locally constant. -/ |
| 99 | private lemma isLocallyConstant_of_mem_vanishingCocycles (hz : z ∈ vanishingCocycles χ M s) : |
| 100 | IsLocallyConstant z := |
| 101 | hz.1 |
| 102 | |
| 103 | /-- A map `z` in `vanishingCocycles χ M s` vanishes on `s`. -/ |
| 104 | private lemma apply_eq_zero_of_mem_vanishingCocycles (hz : z ∈ vanishingCocycles χ M s) |
| 105 | {g : Gal(Ω/ℚ)} (hg : g ∈ s) : z g = 0 := |
| 106 | hz.2.2 g hg |
| 107 | |
| 108 | /-- Let `g` fix the `N m`-th roots of unity (`g ∈ cycloGalGroup (N * m)`) and let `m • y = 0`. |
| 109 | Then `cyc^e ψ (g)` and its inverse fix `y`. -/ |
| 110 | lemma cyclotomicPowDirichlet_smul_eq_self (hg : g ∈ cycloGalGroup (N * m)) {y : M} |
| 111 | (hy : m • y = 0) : |
| 112 | (cyclotomicPowDirichlet l e ψ g).val • y = y ∧ |
| 113 | (cyclotomicPowDirichlet l e ψ g)⁻¹.val • y = y := by |
| 114 | have h_fix {σ : Gal(Ω/ℚ)} (hσ : σ ∈ cycloGalGroup (N * m)) : |
| 115 | (cyclotomicPowDirichlet l e ψ σ).val • y = y := by |
| 116 | simpa using cyclotomicPowDirichlet_smul (a := 1) (by simp [mem_ker.1 hσ]) hy |
| 117 | exact ⟨h_fix hg, by simpa using h_fix (inv_mem hg)⟩ |
| 118 | |
| 119 | /-- The open subgroup `{g | z g = 0}` of zeros of a map `z` in `vanishingCocycles χ M s` (given by |
| 120 | `hz`): it is a subgroup by the cocycle rule, and open since `z` is locally constant. -/ |
| 121 | noncomputable def openCocycleKer : OpenSubgroup Gal(Ω/ℚ) := |
| 122 | OpenSubgroup.mk (cocycleKer χ hz.2.1) (hz.1 {0}) |
| 123 | |
| 124 | /-- Let `z` be in `vanishingCocycles χ M s`, with `z γ = 0` and `(χ γ - 1) • z ≠ 0`. Then `z` does |
| 125 | not vanish on the Galois group over ℚ(μ_f), for any `f ≠ 0`. -/ |
| 126 | lemma not_cycloGalGroup_le_openCocycleKer (γ : Gal(Ω/ℚ)) (hγ : z γ = 0) |
| 127 | (h_ne : ((χ γ).val - 1) • z ≠ 0) (f : ℕ) [NeZero f] : |
| 128 | ¬cycloGalGroup f ≤ openCocycleKer hz := by |
| 129 | -- If `z` vanishes on `cycloGalGroup f`, it kills all commutators, so Sah's lemma gives |
| 130 | -- `(χ γ - 1) • z g = (χ g - 1) • z γ`; and `z γ = 0`. |
| 131 | refine fun h_le ↦ h_ne (funext fun g ↦ ?_) |
| 132 | have h_comm_mem : (γ * g)⁻¹ * (g * γ) ∈ cycloGalGroup f := by simp [mul_right_comm] |
| 133 | simpa [hγ] using sah (apply_mul_of_mem_vanishingCocycles hz) γ g (h_le h_comm_mem) |
| 134 | |
| 135 | omit [PadicIntegerRing O l] in |
| 136 | /-- Let `M` be finite, let ℚ(μ_{N l^n}) trivialise the action through `χ`, and let `s` contain |
| 137 | the inertia over ℚ(μ_N) at all non-trivial places prime to `l`. Then there are finitely many |
| 138 | locally constant cocycles for `χ` that vanish on `s`. -/ |
| 139 | lemma finite_vanishingCocycles [Finite M] {n : ℕ} |
| 140 | (h_triv : ∀ g : cycloGalGroup (N * l ^ n), ∀ {y : M}, (χ g).val • y = y) |
| 141 | (hs : ↑(cycloGalGroup N) ∩ inertiaAbove (placesDividing ℚ l)ᶜ ⊆ s) : |
| 142 | Finite (vanishingCocycles χ M s) := by |
| 143 | -- These cocycles are continuous for the discrete topology and unramified outside `N l`, and |
| 144 | -- there are finitely many such (`selmerZ1.finite_unramified_cocycles`). |
| 145 | let : TopologicalSpace M := ⊥ |
| 146 | have : DiscreteTopology M := discreteTopology_bot M |
| 147 | let : MulAction Gal(Ω/ℚ) M := .compHom M χ |
| 148 | have cont : ContinuousSMul Gal(Ω/ℚ) M := |
| 149 | continuousSMul_iff_stabilizer_isOpen.2 fun y ↦ isOpen_mono (fun g hg ↦ h_triv ⟨g, hg⟩) out |
| 150 | refine (selmerZ1.finite_unramified_cocycles (.of (charRep M χ) cont.continuous_smul) |
| 151 | ((finite_natCast_mem N).union (placesDividing ℚ l).toFinite)).subset |
| 152 | fun z ⟨z_lc, z_cocycle, z_zero⟩ ↦ |
| 153 | ⟨⟨z_lc.continuous, z_cocycle⟩, Submodule.mem_pi.2 fun g hg ↦ z_zero g ?_⟩ |
| 154 | -- Inertia at a place prime to `N l` fixes the `N`-th roots of unity, so `g ∈ s`. |
| 155 | change g ∈ s |
| 156 | simp_all [inertiaAbove, Set.subset_def] |
| 157 | grind [valuation_natCast_eq_one_iff, cyclotomicCharMod_eq_one_of_mem_inertiaGroup] |
| 158 | |
| 159 | /-- Let `B` be a place of `Ω` above `l`, and let `a ≡ 1 mod N` be prime to `l`. Then some element |
| 160 | `i` of the inertia group of `B` has `cyc^e ψ (i) = a ^ e`. -/ |
| 161 | lemma exists_inertia_cyclotomicPowDirichlet_eq {a : ℕ} (ha : l.Coprime a) (ha_one : a ≡ 1 [MOD N]) |
| 162 | (hB : B.valuation (l : Ω) < 1) (e : ℕ) : |
| 163 | ∃ i ∈ inertiaGroup Gal(Ω/ℚ) B, (cyclotomicPowDirichlet l e ψ i).val = a ^ e := by |
| 164 | -- Take `i` in inertia with `l`-adic cyclotomic character `a`. |
| 165 | obtain ⟨i, hi, cyc_i⟩ := exists_inertia_cyclotomicChar_eq hB ha |
| 166 | -- It fixes the roots of unity of order the `l`-part of `N`, since `a ≡ 1` modulo that number. |
| 167 | have fix_l_part : i ∈ cycloGalGroup (ordProj[l] N) := Units.ext <| by |
| 168 | simp [cyclotomicCharMod_prime_pow_eq, cyc_i, |
| 169 | (ZMod.natCast_eq_natCast_iff a 1 _).2 (ha_one.of_dvd (N.ordProj_dvd l))] |
| 170 | -- By rigidity it fixes all `N`-th roots of unity, so `ψ` contributes nothing. |
| 171 | have hB_compl : B.valuation (ordCompl[l] N : ℕ) = 1 := |
| 172 | (N.coprime_ordCompl out (NeZero.ne N)).valuation_eq_one hB |
| 173 | have fix_N : i ∈ cycloGalGroup N := |
| 174 | mem_cycloGalGroup_of_mem_inertiaGroup hi hB_compl (N.ordProj_mul_ordCompl_eq_self l) fix_l_part |
| 175 | exact ⟨i, hi, by simp [cyclotomicPowDirichlet, cyc_i, mem_ker.1 fix_N]⟩ |
| 176 | |
| 177 | /-- A cocycle `x ∈ component l e ψ ν` vanishes at every `g` that fixes the `N m`-th roots of unity |
| 178 | and lies in the inertia group of a place `A` of `Ω` prime to `l`, above the place `t` of `ℚ`. -/ |
| 179 | private lemma apply_eq_zero_of_mem_inertiaGroup_of_valuation_eq_one |
| 180 | {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} (hx : x ∈ component l e ψ ν) {A : ClosurePlace} |
| 181 | {t : FinPlace ℚ} (hA : IsPlaceOver A t) (hA_l : A.valuation l = 1) {g : Gal(Ω/ℚ)} |
| 182 | (hg : g ∈ cycloGalGroup (N * m)) (hg_inertia : g ∈ inertiaGroup Gal(Ω/ℚ) A) : x g = 0 := by |
| 183 | have hg_N : g ∈ cycloGalGroup N := cyclotomicCharMod_eq_one_of_dvd ⟨_, rfl⟩ hg |
| 184 | have hg_off : g ∈ inertiaAbove (placesDividing ℚ l)ᶜ := |
| 185 | ⟨t, hA.valuation_natCast_eq_one_iff.1 hA_l, A, hA, hg_inertia⟩ |
| 186 | exact apply_eq_zero_of_mem_vanishingCocycles hx (.inr ⟨hg_N, .inl hg_off⟩) |
| 187 | |
| 188 | /-- Let `x ∈ component l e ψ ν` be killed by `m`, let `A` be a place of `Ω` above `l`, and let |
| 189 | `a ≡ 1 mod N` be prime to `l`. Then `(a ^ e - 1) • x g = 0` for every `g` that fixes the `N m`-th |
| 190 | roots of unity and lies in the decomposition group of `A`. -/ |
| 191 | private lemma pow_sub_one_smul_apply_eq_zero_of_mem_decompGroup {a : ℕ} (ha : l.Coprime a) |
| 192 | (ha_one : a ≡ 1 [MOD N]) {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} (hx : x ∈ component l e ψ ν) |
| 193 | (hx_tors : ∀ g : Gal(Ω/ℚ), m • x g = 0) {A : ClosurePlace} (hA : A.valuation l < 1) |
| 194 | {g : Gal(Ω/ℚ)} (hg : g ∈ cycloGalGroup (N * m)) (hg_dec : g ∈ decompGroup Gal(Ω/ℚ) A) : |
| 195 | (a ^ e - 1 : O) • x g = 0 := by |
| 196 | -- Take `δ` in the inertia group of `A` with `cyc^e ψ (δ) = a ^ e`. The cocycle `x` vanishes on |
| 197 | -- the commutator of `δ⁻¹` and `g`, so Sah's lemma gives `(Υ δ - 1) • x g = ((Υ g)⁻¹ - 1) • x δ⁻¹` |
| 198 | -- for `Υ = cyc^e ψ`, and the right side is `0` because `g` acts trivially. |
| 199 | obtain ⟨δ, hδ_inertia, hδ⟩ := exists_inertia_cyclotomicPowDirichlet_eq (ψ := ψ) ha ha_one hA e |
| 200 | have hδ_dec : δ ∈ decompGroup Gal(Ω/ℚ) A := IsFrob.mem_decompGroup hδ_inertia |
| 201 | have h_comm_mem : (δ⁻¹ * g)⁻¹ * (g * δ⁻¹) ∈ |
| 202 | ↑(cycloGalGroup N) ∩ (inertiaAbove (placesDividing ℚ l)ᶜ ∪ Selmer.shaLocalSet l ℚ 1) := |
| 203 | ⟨by simp [mul_comm], .inr ⟨A, by simp_all [mul_comm, mul_mem]⟩⟩ |
| 204 | have h_sah : (((cyclotomicPowDirichlet l e ψ)⁻¹ δ⁻¹).val - 1) • x g = |
| 205 | (((cyclotomicPowDirichlet l e ψ)⁻¹ g).val - 1) • x δ⁻¹ := |
| 206 | sah (apply_mul_of_mem_vanishingCocycles hx) δ⁻¹ g |
| 207 | (apply_eq_zero_of_mem_vanishingCocycles hx (.inr h_comm_mem)) |
| 208 | simpa [hδ, hx_tors, sub_smul, cyclotomicPowDirichlet_smul_eq_self hg] using h_sah |
| 209 | |
| 210 | /-- Let `x ∈ component l e ψ ν` be killed by `m`, let `φ` fix the `N m`-th roots of unity, and let |
| 211 | `σ` act on them by `u ∈ (ℤ/N m)ˣ`. Then `x (σ⁻¹ φ σ) = (u ^ e ψ(u)) • x φ`. -/ |
| 212 | private lemma apply_conj_eq_smul_of_cyclotomicCharMod_eq {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} |
| 213 | (hx : x ∈ component l e ψ ν) (hx_tors : ∀ g : Gal(Ω/ℚ), m • x g = 0) {φ σ : Gal(Ω/ℚ)} |
| 214 | (hφ : φ ∈ cycloGalGroup (N * m)) {u : (ZMod (N * m))ˣ} |
| 215 | (hσ : cyclotomicCharMod Ω (N * m) σ = u) : |
| 216 | x (σ⁻¹ * φ * σ⁻¹⁻¹) = (u.val.val ^ e * ψ u.val.val : O) • x φ := by |
| 217 | -- The cocycle rule gives `x (σ⁻¹ φ σ) = Υ⁻¹ (σ⁻¹) • x φ = Υ σ • x φ` for `Υ = cyc^e ψ`, as `φ` |
| 218 | -- acts trivially. |
| 219 | have h_fix : ((cyclotomicPowDirichlet l e ψ)⁻¹ φ).val • x σ⁻¹⁻¹ = x σ⁻¹⁻¹ := by |
| 220 | simp [cyclotomicPowDirichlet_smul_eq_self hφ (hx_tors _)] |
| 221 | have h_cyc : (cyclotomicCharMod Ω (N * m) σ).val = (u.val.val : ℕ) := by simp [hσ] |
| 222 | rw [cocycle_conj_eq_smul (apply_mul_of_mem_vanishingCocycles hx) h_fix] |
| 223 | simpa using cyclotomicPowDirichlet_smul h_cyc (hx_tors φ) |
| 224 | |
| 225 | /-- Let `s u ∈ Gal(Ω/ℚ)` act on the `N m`-th roots of unity by `u ∈ (ℤ/N m)ˣ`, and let the |
| 226 | decomposition group of the place `B` fix them. If `w u` is a place of `ℚ(μ_{N m})` below |
| 227 | `(s u)⁻¹ • B` for each `u`, then the places `w u` are pairwise distinct. -/ |
| 228 | private lemma injective_of_forall_isPlaceOver_inv_smul {s : (ZMod (N * m))ˣ → Gal(Ω/ℚ)} |
| 229 | (hs : ∀ u : (ZMod (N * m))ˣ, cyclotomicCharMod Ω (N * m) (s u) = u) |
| 230 | (dec_B : decompGroup Gal(Ω/ℚ) B ≤ cycloGalGroup (N * m)) |
| 231 | {w : (ZMod (N * m))ˣ → FinPlace (fixedFieldOf (cycloGalGroup (N * m)))} |
| 232 | (hw : ∀ u : (ZMod (N * m))ˣ, IsPlaceOver ((s u)⁻¹ • B) (w u)) : |
| 233 | Function.Injective w := by |
| 234 | -- If `w u = w t`, some `g` over ℚ(μ_{N m}) carries `(s t)⁻¹ • B` to `(s u)⁻¹ • B`. Then |
| 235 | -- `s u * g * (s t)⁻¹` fixes `B`, so it fixes the roots of unity, and `u = t`. |
| 236 | intro u t hut |
| 237 | obtain ⟨g, hg⟩ : ∃ g : cycloGalGroup (N * m), (g : Gal(Ω/ℚ)) • (s t)⁻¹ • B = (s u)⁻¹ • B := |
| 238 | (hw t).exists_smul (cycloGalGroup (N * m)) (by simpa only [hut] using hw u) |
| 239 | have h_dec : s u * g * (s t)⁻¹ ∈ decompGroup Gal(Ω/ℚ) B := |
| 240 | MulAction.mem_stabilizer_iff.2 (by simp [mul_smul, hg]) |
| 241 | simpa [mem_ker.1, mul_inv_eq_one, hs] using dec_B h_dec |
| 242 | |
| 243 | /-- Let `v` be a place of `ℚ` such that every place of `Ω` at which `v.q` is not a unit lies over |
| 244 | `v`, and let `B` be such a place. Let `s u ∈ Gal(Ω/ℚ)` act on the `N m`-th roots of unity by `u`, |
| 245 | and let `w u` be a place of `ℚ(μ_{N m})` below `(s u)⁻¹ • B`. Then every place `t` of `ℚ(μ_{N m})` |
| 246 | at which `v.q` is not a unit is one of the `w u`. -/ |
| 247 | private lemma mem_range_of_valuation_lt_one {v : FinPlace ℚ} |
| 248 | (over_v : ∀ A : ClosurePlace, A.valuation (v.q : Ω) < 1 → IsPlaceOver A v) |
| 249 | (hB : B.valuation (v.q : Ω) < 1) {s : (ZMod (N * m))ˣ → Gal(Ω/ℚ)} |
| 250 | (hs : ∀ u : (ZMod (N * m))ˣ, cyclotomicCharMod Ω (N * m) (s u) = u) |
| 251 | {w : (ZMod (N * m))ˣ → FinPlace (fixedFieldOf (cycloGalGroup (N * m)))} |
| 252 | (hw : ∀ u : (ZMod (N * m))ˣ, IsPlaceOver ((s u)⁻¹ • B) (w u)) |
| 253 | {t : FinPlace (fixedFieldOf (cycloGalGroup (N * m)))} |
| 254 | (ht : (placeOver t).valuation (v.q : Ω) < 1) : |
| 255 | t ∈ Set.range w := by |
| 256 | -- Some `σ` carries a place above `t` to `B`. With `u` the action of `σ` on the roots of unity, |
| 257 | -- `(s u)⁻¹ * σ` fixes them, so `(s u)⁻¹ • B` also lies above `t`, and `t = w u`. |
| 258 | obtain ⟨σ, hσ⟩ : ∃ σ : Gal(Ω/ℚ), σ • placeOver t = B := |
| 259 | (over_v _ ht).exists_smul Gal(Ω/ℚ) (over_v B hB) |
| 260 | let u : (ZMod (N * m))ˣ := cyclotomicCharMod Ω (N * m) σ |
| 261 | let g : cycloGalGroup (N * m) := ⟨(s u)⁻¹ * σ, (eq_iff _).1 (hs u).symm⟩ |
| 262 | have h_over_g : IsPlaceOver (((s u)⁻¹ * σ : Gal(Ω/ℚ)) • placeOver t) t := |
| 263 | t.isPlaceOver_placeOver.smul g |
| 264 | have h_over : IsPlaceOver ((s u)⁻¹ • B) t := by simpa [← hσ, smul_smul] using h_over_g |
| 265 | exact ⟨u, (hw u).unique h_over⟩ |
| 266 | |
| 267 | /-- A cocycle `x ∈ component l e ψ ν` killed by `m` satisfies `2 • x σ = 0` at every complex |
| 268 | conjugation `σ` that fixes the `N m`-th roots of unity. -/ |
| 269 | private lemma two_smul_apply_eq_zero_of_isComplexConj |
| 270 | {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} |
| 271 | (hx : x ∈ component l e ψ ν) (hx_tors : ∀ g : Gal(Ω/ℚ), m • x g = 0) |
| 272 | {σ : cycloGalGroup (N * m)} (hσ : IsComplexConj σ) : |
| 273 | (2 : O) • x σ = 0 := by |
| 274 | -- The cocycle rule evaluates `x (σ * (σ * σ)) = x σ` as `3 • x σ = x σ`, and the cocycle |
| 275 | -- character acts trivially since `σ` fixes the roots of unity and `m` kills `x`. |
| 276 | have hσ_sq : (σ : Gal(Ω/ℚ)) * σ = 1 := by simp [← Subgroup.coe_mul, hσ.mul_self] |
| 277 | have h_val : x (σ * (σ * σ) : Gal(Ω/ℚ)) = x σ := by rw [hσ_sq, mul_one] |
| 278 | simpa [apply_mul_of_mem_vanishingCocycles hx, hx_tors, two_smul, |
| 279 | cyclotomicPowDirichlet_smul_eq_self σ.prop] using h_val |
| 280 | |
| 281 | /-- The `ℚ/ℤ`-valued character of `cycloGalGroup (N * m)` sending `g'` to `lam (d • x g')`, for a |
| 282 | cocycle `x ∈ component l e ψ ν` killed by `m`, scalar `d : O`, and additive map `lam`. -/ |
| 283 | private def componentChar {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} |
| 284 | (hx : x ∈ component l e ψ ν) (hx_tors : ∀ h : Gal(Ω/ℚ), m • x h = 0) |
| 285 | (d : O) (lam : QuotSpan ((l : O) ^ ν) →+ QZ) : QZChar (cycloGalGroup (N * m)) := |
| 286 | have h_lc : IsLocallyConstant fun h : Gal(Ω/ℚ) ↦ lam (d • x h) := |
| 287 | (isLocallyConstant_of_mem_vanishingCocycles hx).comp fun z' ↦ lam (d • z') |
| 288 | ⟨fun h ↦ lam (d • x h), h_lc.continuous.comp continuous_subtypeVal, |
| 289 | fun h₁ h₂ ↦ by simp [apply_mul_of_mem_vanishingCocycles hx, |
| 290 | cyclotomicPowDirichlet_smul_eq_self h₁.prop, hx_tors]⟩ |
| 291 | |
| 292 | /-- For `d = 2 * (a ^ e - 1)` with `a ≡ 1 mod N` prime to `l`, the character |
| 293 | `componentChar hx hx_tors d lam` is killed by `m`, kills complex conjugations (since `2 • x σ = 0` |
| 294 | and `2 ∣ d`), kills the decomposition group above `l` (since `(a ^ e - 1) • x h = 0` there), and is |
| 295 | unramified everywhere (off `l`, `x` vanishes on inertia over `ℚ(μ_N)`; above `l`, inertia lies in |
| 296 | the decomposition group). -/ |
| 297 | private lemma componentChar_local_properties {a : ℕ} (ha : l.Coprime a) (ha_one : a ≡ 1 [MOD N]) |
| 298 | {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} (hx : x ∈ component l e ψ ν) |
| 299 | (hx_tors : ∀ h : Gal(Ω/ℚ), m • x h = 0) (lam : QuotSpan ((l : O) ^ ν) →+ QZ) : |
| 300 | let c := componentChar hx hx_tors (2 * (a ^ e - 1)) lam |
| 301 | m • c = 0 ∧ |
| 302 | (∀ σ : cycloGalGroup (N * m), IsComplexConj σ → c.val σ = 0) ∧ |
| 303 | (∀ (A : ClosurePlace), A.valuation l < 1 → ∀ h : cycloGalGroup (N * m), |
| 304 | (h : Gal(Ω/ℚ)) ∈ decompGroup Gal(Ω/ℚ) A → c.val h = 0) ∧ |
| 305 | (∀ {A : ClosurePlace} {t : FinPlace ℚ}, IsPlaceOver A t → ∀ h : cycloGalGroup (N * m), |
| 306 | h ∈ inertiaGroup (cycloGalGroup (N * m)) A → c.val h = 0) := by |
| 307 | set d : O := 2 * (a ^ e - 1) |
| 308 | have h_tors : m • componentChar hx hx_tors d lam = 0 := by |
| 309 | ext |
| 310 | simp [componentChar, ← map_nsmul, smul_comm, hx_tors] |
| 311 | have h_conj (σ : cycloGalGroup (N * m)) (hσ : IsComplexConj σ) : |
| 312 | (componentChar hx hx_tors d lam).val σ = 0 := by |
| 313 | simp [componentChar, d, mul_comm (2 : O), mul_smul, |
| 314 | two_smul_apply_eq_zero_of_isComplexConj hx hx_tors hσ] |
| 315 | have h_dec (A : ClosurePlace) (hA : A.valuation l < 1) (h : cycloGalGroup (N * m)) |
| 316 | (hh : (h : Gal(Ω/ℚ)) ∈ decompGroup Gal(Ω/ℚ) A) : |
| 317 | (componentChar hx hx_tors d lam).val h = 0 := by |
| 318 | simp [componentChar, d, mul_smul, |
| 319 | pow_sub_one_smul_apply_eq_zero_of_mem_decompGroup ha ha_one hx hx_tors hA h.prop hh] |
| 320 | have h_unram {A : ClosurePlace} {t : FinPlace ℚ} (hA : IsPlaceOver A t) |
| 321 | (h : cycloGalGroup (N * m)) (hh : h ∈ inertiaGroup (cycloGalGroup (N * m)) A) : |
| 322 | (componentChar hx hx_tors d lam).val h = 0 := by |
| 323 | rcases (A.valuation_le_one l).eq_or_lt with h_eq | h_lt |
| 324 | · simp [componentChar, apply_eq_zero_of_mem_inertiaGroup_of_valuation_eq_one hx hA h_eq h.prop |
| 325 | hh] |
| 326 | · exact h_dec A h_lt h (IsFrob.mem_decompGroup hh) |
| 327 | exact ⟨h_tors, h_conj, h_dec, h_unram⟩ |
| 328 | |
| 329 | /-- Artin's reciprocity law `sum_ord_smul_frob_eq_zero` applied to `componentChar` and an element |
| 330 | `y` of `ℚ(μ_{N m})ˣ`: only the places `w u` above `v` contribute, yielding a vanishing weighted sum |
| 331 | over the Frobenius conjugates `(σ u)⁻¹ * φ * (σ u)⁻¹⁻¹`. -/ |
| 332 | private lemma sum_ord_smul_componentChar_frob_eq_zero {a : ℕ} (ha : l.Coprime a) |
| 333 | (ha_one : a ≡ 1 [MOD N]) {v : FinPlace ℚ} [Fact v.q.Prime] |
| 334 | (over_v : ∀ A : ClosurePlace, A.valuation (v.q : Ω) < 1 → IsPlaceOver A v) |
| 335 | (hB : B.valuation (v.q : Ω) < 1) (hφ : IsFrob B v.q φ) |
| 336 | {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} (hx : x ∈ component l e ψ ν) |
| 337 | (hq_one : v.q ≡ 1 [MOD N * m]) (hx_tors : ∀ h : Gal(Ω/ℚ), m • x h = 0) |
| 338 | (y : (fixedFieldOf (cycloGalGroup (N * m)))ˣ) |
| 339 | (h_away : ∀ A : ValuationSubring Ω, A.valuation (l : Ω) = 1 → A.valuation (v.q : Ω) = 1 → |
| 340 | (∃ r : DiscreteUnits Ω, |
| 341 | A.valuation |
| 342 | ((ofBase (cycloGalGroup (N * m)) Ω (Additive.ofMul y) : DiscreteUnits Ω) - |
| 343 | m • r).toMul = 1 ∧ |
| 344 | ∀ i ∈ inertiaGroup (cycloGalGroup (N * m)) A, galUnitsRep i r = r) ∨ |
| 345 | ∀ h ∈ decompGroup Gal(Ω/ℚ) A, x h = 0) |
| 346 | {σ : (ZMod (N * m))ˣ → Gal(Ω/ℚ)} |
| 347 | (hσ : ∀ u : (ZMod (N * m))ˣ, cyclotomicCharMod Ω (N * m) (σ u) = u) |
| 348 | {w : (ZMod (N * m))ˣ → FinPlace (fixedFieldOf (cycloGalGroup (N * m)))} |
| 349 | (hw : ∀ u : (ZMod (N * m))ˣ, IsPlaceOver ((σ u)⁻¹ • B) (w u)) |
| 350 | (h_split : ∀ u : (ZMod (N * m))ˣ, FinPlace.q (w u) = v.q) |
| 351 | (hφ_G : φ ∈ cycloGalGroup (N * m)) (lam : QuotSpan ((l : O) ^ ν) →+ QZ) : |
| 352 | ∑ u : (ZMod (N * m))ˣ, |
| 353 | -((w u).valuation (fixedFieldOf (cycloGalGroup (N * m))) y).log • |
| 354 | (componentChar hx hx_tors (2 * (a ^ e - 1)) lam).val |
| 355 | ⟨(σ u)⁻¹ * φ * (σ u)⁻¹⁻¹, (normal_ker _).conj_mem _ hφ_G _⟩ = 0 := by |
| 356 | let G : Subgroup Gal(Ω/ℚ) := cycloGalGroup (N * m) |
| 357 | let c : QZChar G := componentChar hx hx_tors (2 * (a ^ e - 1)) lam |
| 358 | obtain ⟨torsion, conj_zero, dec_zero, unramified⟩ := |
| 359 | componentChar_local_properties ha ha_one hx hx_tors lam |
| 360 | have dec_B : decompGroup Gal(Ω/ℚ) B ≤ G := decompGroup_le_cycloGalGroup hB hq_one |
| 361 | have conj_over (u : (ZMod (N * m))ˣ) : IsPlaceOver ((σ u)⁻¹ • B) v := (over_v B hB).smul (σ u)⁻¹ |
| 362 | -- The places `w u` are all the places of `fixedFieldOf G` above `v.q`. |
| 363 | have unit_q (t : FinPlace (fixedFieldOf G)) (ht : t ∉ Set.range w) : |
| 364 | (placeOver t).valuation v.q = 1 := |
| 365 | eq_of_le_of_not_lt (by simp) fun h ↦ ht (mem_range_of_valuation_lt_one over_v hB hσ hw h) |
| 366 | let frob (u : (ZMod (N * m))ˣ) : G := ⟨(σ u)⁻¹ * φ * (σ u)⁻¹⁻¹, (normal_ker _).conj_mem _ hφ_G _⟩ |
| 367 | -- The conjugate `frob u` of `φ` is a Frobenius element at `(σ u)⁻¹ • B`, above `w u`. |
| 368 | have frob_isFrob (u : (ZMod (N * m))ˣ) : IsFrob ((σ u)⁻¹ • B) (w u).q (frob u) := by |
| 369 | rw [h_split u] |
| 370 | exact hφ.conj (σ u)⁻¹ |
| 371 | -- `c` kills complex conjugations, hence the Artin symbol of `y`. |
| 372 | refine sum_ord_smul_frob_eq_zero torsion |
| 373 | (abelianLift_artinMap_principalIdele_eq_one c y conj_zero) |
| 374 | (injective_of_forall_isPlaceOver_inv_smul hσ dec_B hw) hw frob_isFrob |
| 375 | (fun u ↦ unramified (conj_over u)) fun t ht ↦ ?_ |
| 376 | -- At another place either `c` kills the decomposition group, or `y` is a unit times an `m`-th |
| 377 | -- power of an element fixed by inertia. |
| 378 | have h_over : IsPlaceOver (placeOver t) t := t.isPlaceOver_placeOver |
| 379 | rcases ((placeOver t).valuation_le_one l).eq_or_lt with h | h |
| 380 | · rcases h_away _ h (unit_q t ht) with h_unit | h_dec |
| 381 | · exact .inr ⟨h_unit, unramified h_over.isPlaceOver_below⟩ |
| 382 | · exact .inl ((h_over.artinAt_trivial_iff_decompGroup_le c).2 |
| 383 | (fun h' hh' ↦ show c.val h' = 0 by simp [c, componentChar, h_dec h' hh']) _) |
| 384 | · exact .inl ((h_over.artinAt_trivial_iff_decompGroup_le c).2 (dec_zero _ h) _) |
| 385 | |
| 386 | /-- Artin reciprocity over `K = ℚ(μ_{N m})` at a prime `q ≡ 1 mod N m`, with `φ` a Frobenius at `B` |
| 387 | above `q`. The space `component l e ψ ν` consists of cocycles `Gal(Ω/ℚ) → O/l^ν` for `(cyc^e ψ)⁻¹` |
| 388 | under local conditions, including vanishing at `cmConj` and on inertia over `ℚ(μ_N)` away from `l`. |
| 389 | Let `x` in it be killed by `m`, and let `a ≡ 1 mod N` be prime to `l`. Let `y ∈ Kˣ` be, at each |
| 390 | place prime to `l q`, a unit times the `m`-th power of an element fixed by inertia, unless `x` kills |
| 391 | the decomposition group there. With `s u` acting on `μ_{N m}` by `u`, the orders `k u` of `s u • y` |
| 392 | at `B`, weighted by `u ^ e ψ(u)`, sum to a scalar killing `2 (a ^ e - 1) x φ`. -/ |
| 393 | lemma artin_reciprocity_of_mem_component {a : ℕ} (ha : l.Coprime a) (ha_one : a ≡ 1 [MOD N]) |
| 394 | (hB : B.valuation q < 1) (hφ : IsFrob B q φ) {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} |
| 395 | (hx : x ∈ component l e ψ ν) (hq_one : q ≡ 1 [MOD N * m]) |
| 396 | (hx_tors : ∀ g : Gal(Ω/ℚ), m • x g = 0) {y : DiscreteUnits Ω} |
| 397 | (hy : ∀ g : cycloGalGroup (N * m), galUnitsRep g y = y) |
| 398 | (h_away : ∀ A : ValuationSubring Ω, A.valuation (l : Ω) = 1 → A.valuation q = 1 → |
| 399 | (∃ r : DiscreteUnits Ω, |
| 400 | A.valuation (y - m • r).toMul = 1 ∧ |
| 401 | ∀ i ∈ inertiaGroup (cycloGalGroup (N * m)) A, galUnitsRep i r = r) ∨ |
| 402 | ∀ g ∈ decompGroup Gal(Ω/ℚ) A, x g = 0) |
| 403 | {s : (ZMod (N * m))ˣ → Gal(Ω/ℚ)} |
| 404 | (hs : ∀ u : (ZMod (N * m))ˣ, cyclotomicCharMod Ω (N * m) (s u) = u) : |
| 405 | ∃ k : (ZMod (N * m))ˣ → ℤ, |
| 406 | -- (a) `k u` is the order at `B` of the conjugate of `y` by `s u` |
| 407 | (∀ u : (ZMod (N * m))ˣ, ordRat ℚ B (galUnitsRep (s u) y) = k u) ∧ |
| 408 | -- (b) the weighted sum of these orders kills `2 (a ^ e - 1) • x φ` |
| 409 | (∑ u : (ZMod (N * m))ˣ, k u * (u.val.val ^ e * ψ u.val.val)) • (2 * (a ^ e - 1) : O) • x φ = |
| 410 | 0 := by |
| 411 | -- Over `F = ℚ(μ_{N m})`, with group `G`, the map `g ↦ lam (d • x g)` is a character for each |
| 412 | -- `lam` with values in `ℚ/ℤ`. Apply Artin's law `sum_ord_smul_frob_eq_zero` to it and `y`: only |
| 413 | -- the places above `q`, which lie below the conjugates `(s u)⁻¹ • B`, contribute. |
| 414 | let G : Subgroup Gal(Ω/ℚ) := cycloGalGroup (N * m) |
| 415 | let F : IntermediateField ℚ Ω := fixedFieldOf G |
| 416 | -- `v` is the place of `ℚ` at `q`; from here on `q` is `v.q`. |
| 417 | obtain ⟨v, ⟨rfl, -⟩, -, over_v⟩ := exists_rat_place_of_prime (p := q) (Fact.out : q.Prime) |
| 418 | -- `y` is fixed by `G`, so it comes from `Fˣ`; from here on `y` is that element of `Fˣ`. |
| 419 | obtain ⟨y, rfl⟩ : ∃ y₀ : Fˣ, (ofBase G Ω (Additive.ofMul y₀) : DiscreteUnits Ω) = y := |
| 420 | ((ofBase_bijective G).surjective ⟨y, hy⟩).imp fun _ ↦ congrArg Subtype.val |
| 421 | -- `q` splits completely in `F`; let `w u` be the place of `F` below `(s u)⁻¹ • B`. |
| 422 | have dec_B : decompGroup Gal(Ω/ℚ) B ≤ G := decompGroup_le_cycloGalGroup hB hq_one |
| 423 | have conj_over (u : (ZMod (N * m))ˣ) : IsPlaceOver ((s u)⁻¹ • B) v := (over_v B hB).smul (s u)⁻¹ |
| 424 | choose w hw _ using fun u ↦ (conj_over u).exists_above (L := F) |
| 425 | have split (u : (ZMod (N * m))ˣ) : |
| 426 | FinPlace.q (w u) = v.q ∧ ordRat F ((s u)⁻¹ • B) = ordRat ℚ ((s u)⁻¹ • B) := |
| 427 | ((conj_over u).ramification_in_tower G (hw u)).1 |
| 428 | (decompGroup_le_cycloGalGroup (conj_over u).valuation_q_lt_one hq_one) |
| 429 | refine ⟨fun u ↦ -((w u).valuation F y).log, fun u ↦ ?_, |
| 430 | eq_zero_of_forall_hom_eq_zero fun lam ↦ ?_⟩ |
| 431 | · change ordRat ℚ B (unitsRep (s u) (ofBase G Ω (Additive.ofMul y) : DiscreteUnits Ω)) = |
| 432 | -((w u).valuation F y).log |
| 433 | simpa [split, ← (conj_over u).ordRat_smul (s u)] using (hw u).ordRat_ofBase (Γ := G) y |
| 434 | have hφ_G : φ ∈ G := dec_B hφ.mem_decompGroup |
| 435 | have reciprocity := sum_ord_smul_componentChar_frob_eq_zero ha ha_one over_v hB hφ hx hq_one |
| 436 | hx_tors y h_away hs hw (fun u ↦ (split u).1) hφ_G lam |
| 437 | -- Each `x ((s u)⁻¹ * φ * s u)` is `(u ^ e * ψ u) • x φ`, so `reciprocity` is the claim. |
| 438 | set d : O := 2 * (a ^ e - 1) |
| 439 | have frob_val (u : (ZMod (N * m))ˣ) : |
| 440 | x ((s u)⁻¹ * φ * s u) = (u.val.val ^ e * ψ u.val.val : O) • x φ := by |
| 441 | simpa only [inv_inv] using apply_conj_eq_smul_of_cyclotomicCharMod_eq hx hx_tors hφ_G (hs u) |
| 442 | rw [← reciprocity] |
| 443 | simp [sum_smul, componentChar, frob_val, smul_comm d, mul_smul, ← zsmul_eq_mul] |
| 444 | rfl |
| 445 | |
| 446 | /-- Hilbert 90 for a cocycle read through `L : M →+ Ωˣ`. Let `κ` be a cocycle for `cyc^(e+1) ψ` with |
| 447 | values in `M`, killed by `l`. Then on the Galois group over ℚ(μ_{N l}) the map `g ↦ L (κ g)` is a |
| 448 | coboundary: `L (κ g) = g • r - r` for some `r ∈ Ωˣ` (the group `Ωˣ` is written additively). -/ |
| 449 | private lemma exists_apply_eq_galUnitsRep_sub {κ : Gal(Ω/ℚ) → M} {s : Set Gal(Ω/ℚ)} |
| 450 | (hκ : κ ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) M s) |
| 451 | (hκ_tors : ∀ g : Gal(Ω/ℚ), l • κ g = 0) (L : M →+ DiscreteUnits Ω) : |
| 452 | ∃ r : DiscreteUnits Ω, ∀ g : cycloGalGroup (N * l), L (κ g) = galUnitsRep g r - r := by |
| 453 | have h_lc : IsLocallyConstant (L ∘ κ) := (isLocallyConstant_of_mem_vanishingCocycles hκ).comp L |
| 454 | refine hilbert90_unitsRep ⟨_, h_lc.continuous.comp continuous_subtypeVal, fun g h ↦ ?_⟩ |
| 455 | -- `g` fixes the root of unity `L (κ h)` and acts trivially on `κ h`. |
| 456 | change L (κ (g * h)) = L (κ g) + unitsRep (g : Gal(Ω/ℚ)) (L (κ h)) |
| 457 | rw [cyclotomicCharMod_eq_one_iff.1 g.property] |
| 458 | · simp [hκ_tors, apply_mul_of_mem_vanishingCocycles hκ, |
| 459 | cyclotomicPowDirichlet_smul_eq_self g.property] |
| 460 | · simp [mul_smul, ← map_nsmul, hκ_tors] |
| 461 | |
| 462 | /-- Let `B` lie above a prime `q ≡ 1 mod N l`, let `τ` lie in the inertia group of `B`, and let |
| 463 | `κ` be a cocycle for `cyclotomicPowDirichlet l (e + 1) ψ` with values in `M` killed by `l`. Let |
| 464 | `b` be a `ZMod l`-basis of `O ∙ κ τ`, and let `L i : M →+ DiscreteUnits Ω` extend the `i`-th |
| 465 | coordinate in `b` composed with `(rootPowHom Ω l).val`, with coboundary witnesses |
| 466 | `r i : DiscreteUnits Ω` satisfying `L i (κ h) = galUnitsRep h (r i) - r i` for all |
| 467 | `h : cycloGalGroup (N * l)`. If `σ u` acts on the `N l`-th roots of unity by `u` and `k i u` is |
| 468 | the order `ordRat ℚ B (galUnitsRep (σ u) (l • r i))`, then for some `j : ZMod l` the vector |
| 469 | `b.equivFun.symm (k · u * j)`, scaled by `u.val.val ^ e * ψ u.val.val`, equals `κ τ` for every |
| 470 | `u : (ZMod (N * l))ˣ`. -/ |
| 471 | private lemma exists_forall_smul_equivFun_symm_eq (hB : B.valuation q < 1) |
| 472 | (hq_one : q ≡ 1 [MOD N * l]) {κ : Gal(Ω/ℚ) → M} |
| 473 | (hκ : κ ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) M s) |
| 474 | (hκ_tors : ∀ h : Gal(Ω/ℚ), l • κ h = 0) (hτ : τ ∈ inertiaGroup Gal(Ω/ℚ) B) |
| 475 | [Module (ZMod l) (O ∙ κ τ)] {ι : Type*} [Fintype ι] (b : Module.Basis ι (ZMod l) (O ∙ κ τ)) |
| 476 | {L : ι → M →+ DiscreteUnits Ω} |
| 477 | (hL : ∀ i y hy, L i y = (rootPowHom Ω l).val (b.repr ⟨y, hy⟩ i)) |
| 478 | {r : ι → DiscreteUnits Ω} |
| 479 | (hr : ∀ i (h : cycloGalGroup (N * l)), L i (κ h) = galUnitsRep h (r i) - r i) |
| 480 | {σ : (ZMod (N * l))ˣ → Gal(Ω/ℚ)} |
| 481 | (hσ : ∀ u : (ZMod (N * l))ˣ, cyclotomicCharMod Ω (N * l) (σ u) = u) |
| 482 | {k : ι → (ZMod (N * l))ˣ → ℤ} |
| 483 | (hk : ∀ i u, ordRat ℚ B (galUnitsRep (σ u) (l • r i)) = k i u) : |
| 484 | ∃ j : ZMod l, ∀ u : (ZMod (N * l))ˣ, |
| 485 | (u.val.val ^ e * ψ u.val.val) • b.equivFun.symm (k · u * j) = κ τ := by |
| 486 | have τ_fix : cyclotomicCharMod Ω (N * l) τ = 1 := |
| 487 | mem_ker.1 (decompGroup_le_cycloGalGroup hB hq_one (IsFrob.mem_decompGroup hτ)) |
| 488 | obtain ⟨v, hv, -, ord_q⟩ := exists_isPlaceOver_prime hB |
| 489 | -- `μ` identifies `ℤ/l` with the `l`-th roots of unity; `τ` moves an `l`-th root `π` of `q` |
| 490 | -- by `μ j`. |
| 491 | set μ : ZMod l →+ DiscreteUnits Ω := (rootPowHom Ω l).val with hμ |
| 492 | obtain ⟨-, μ_range⟩ := (rootPowHom Ω l).property |
| 493 | obtain ⟨π, hπ⟩ := (ofNeZero (q : Ω) (NeZero.ne _)).exists_nsmul (NeZero.ne l) |
| 494 | obtain ⟨j, hj⟩ : galUnitsRep τ π - π ∈ μ.range := |
| 495 | (μ_range _).2 (DiscreteUnits.ext (by simp [smul_sub, ← map_nsmul, hπ])) |
| 496 | refine ⟨j, fun u ↦ ?_⟩ |
| 497 | have cyc_u : (cyclotomicCharMod Ω (N * l) (σ u)).val = u.val.val := by simp [hσ] |
| 498 | have κ_conj : |
| 499 | κ ((σ u)⁻¹ * τ * (σ u)⁻¹⁻¹) = (cyclotomicPowDirichlet l (e + 1) ψ (σ u)⁻¹).val • κ τ := |
| 500 | cocycle_conj_eq_smul (apply_mul_of_mem_vanishingCocycles hκ) |
| 501 | (cyclotomicPowDirichlet_smul_eq_self τ_fix (hκ_tors _)).left |
| 502 | let y : O ∙ κ τ := ⟨_, mem_span_singleton.2 ⟨_, κ_conj.symm⟩⟩ |
| 503 | -- `l • (k i u • π - σ u • r i)` is a unit at `B`, so `τ` moves `k i u • π - σ u • r i` by a |
| 504 | -- principal unit; it moves it by the root of unity `μ (k i u * j - u * b.repr y i)`. |
| 505 | have coord i : k i u * j = b.equivFun (u.val.val • y) i := by |
| 506 | have unit : B.valuation (l • (k i u • π - galUnitsRep (σ u) (r i))).toMul.val = 1 := by |
| 507 | simp [↓← hv.ordRat_eq_zero_iff, smul_comm, hπ, ord_q, smul_sub, ← hk] |
| 508 | refine eq_of_mem_principalUnits |
| 509 | (hq_one.of_mul_left.coprime_of_modEq_one.valuation_eq_one hB) ?_ |
| 510 | -- `using!` matches the conjugation by `σ u` inside `galUnitsRep`. |
| 511 | simpa [y, smul_smul, ← hμ, hj, τ_fix, hr _ ⟨_, _⟩, ← zsmul_eq_mul, smul_sub, ↓map_nsmul, ← hL, |
| 512 | ← cyclotomicCharMod_eq_of_dvd _ cyc_u, sub_sub_sub_comm, map_cyclotomicCharMod_mul] using! |
| 513 | hτ.sub_nsmul_mem_principalUnits unit |
| 514 | rw [b.equivFun.symm_apply_eq.2 (funext coord)] |
| 515 | calc (u.val.val ^ e * ψ u.val.val : O) • u.val.val • y.val |
| 516 | = (cyclotomicPowDirichlet l (e + 1) ψ (σ u)).val • y.val := by |
| 517 | rw [← Nat.cast_smul_eq_nsmul O, smul_smul, mul_right_comm, ← pow_succ, |
| 518 | cyclotomicPowDirichlet_smul cyc_u (hκ_tors _)] |
| 519 | _ = κ τ := by simp [y, ↓κ_conj, smul_smul] |
| 520 | |
| 521 | /-- Let `z` be an element of `M`, let `b` be a basis of `O ∙ z` over `ZMod l`, and let `j ∈ ZMod l`. |
| 522 | Suppose that for every unit `u` modulo `N l` the vector with coordinates `m i u * j` in the basis |
| 523 | `b`, scaled by `u ^ e ψ(u)`, is `z`. Suppose also that each weighted sum `∑_u m i u u ^ e ψ(u)` |
| 524 | kills a nonzero `c`, and that the totient of `N l` is a unit of `O`. Then `z = 0`. -/ |
| 525 | private lemma eq_zero_of_forall_smul_equivFun_symm_eq {z : M} [Module (ZMod l) (O ∙ z)] |
| 526 | (b : Module.Basis (Fin (Module.finrank (ZMod l) (O ∙ z))) (ZMod l) (O ∙ z)) |
| 527 | (m : Fin (Module.finrank (ZMod l) (O ∙ z)) → (ZMod (N * l))ˣ → ℤ) (j : ZMod l) |
| 528 | (h_coords : ∀ u : (ZMod (N * l))ˣ, |
| 529 | (u.val.val ^ e * ψ u.val.val) • b.equivFun.symm (m · u * j) = z) |
| 530 | {Y : Type} [AddCommGroup Y] [Module O Y] {c : Y} (hc : c ≠ 0) |
| 531 | (h_kill : ∀ i : Fin (Module.finrank (ZMod l) (O ∙ z)), |
| 532 | (∑ u : (ZMod (N * l))ˣ, m i u * (u.val.val ^ e * ψ u.val.val : O)) • c = 0) |
| 533 | (h_totient : IsUnit ((N * l).totient : O)) : |
| 534 | z = 0 := by |
| 535 | -- The weighted sums kill `c ≠ 0`, so they lie in the maximal ideal. Summing `h_coords` over the |
| 536 | -- units `u` gives `t • z = φ(N l) • z` for some `t` in the maximal ideal. |
| 537 | obtain ⟨t, t_mem, ht⟩ : ∃ t ∈ maximalIdeal O, |
| 538 | t • z = ∑ i, (∑ u, m i u * (u.val.val ^ e * ψ u.val.val)) • ((j • b i : O ∙ z) : M) := |
| 539 | mem_smul_span_singleton.1 <| sum_mem fun i _ ↦ |
| 540 | (maximalIdeal O).smul_mem_smul (fun h ↦ hc (h.smul_eq_zero.1 (h_kill i))) (j • b i).prop |
| 541 | have unit : IsUnit (t - (N * l).totient) := |
| 542 | by_contra fun h ↦ (sub_mem_iff_right _ t_mem).1 h h_totient |
| 543 | have sum_coords : ∑ u : (ZMod (N * l))ˣ, |
| 544 | (((u.val.val ^ e * ψ u.val.val) • b.equivFun.symm (m · u * j) : O ∙ z) : M) = |
| 545 | ∑ u : (ZMod (N * l))ˣ, z := |
| 546 | sum_congr rfl fun u _ ↦ h_coords u |
| 547 | rw [← unit.smul_eq_zero, sub_smul, sub_eq_zero, ht] |
| 548 | simpa [smul_sum, sum_smul, sum_comm (γ := _ˣ), ← zsmul_eq_mul, Nat.cast_smul_eq_nsmul, |
| 549 | smul_comm (_ : O)] using sum_coords |
| 550 | |
| 551 | /-- Reciprocity modulo `l`, when the totient of `N l` is a unit of `O`. The space |
| 552 | `component l e ψ ν` consists of cocycles `Gal(Ω/ℚ) → O/l^ν` for `(cyc^e ψ)⁻¹` under local |
| 553 | conditions, including vanishing at `cmConj` and on inertia over `ℚ(μ_N)` away from `l`. Let `φ` be a |
| 554 | Frobenius at `B` above a prime `q ≡ 1 mod N l`. Let `l` kill `x ∈ component l e ψ ν` and a cocycle |
| 555 | `κ` for `cyc ^ (e + 1) ψ` zero on `inertiaOff N l T`: the elements over `ℚ(μ_N)` in the inertia |
| 556 | group of a place above neither `l` nor a prime of `T`. Let each place prime to `q` lie above no |
| 557 | prime of `T`, or have its decomposition group killed by `x`. If `2 (a ^ e - 1) x φ ≠ 0` for some |
| 558 | `a ≡ 1 mod N` prime to `l`, then `κ` vanishes on the inertia group of `B`. -/ |
| 559 | lemma reciprocity_mod_ell {a : ℕ} (ha : l.Coprime a) (ha_one : a ≡ 1 [MOD N]) |
| 560 | (hB : B.valuation q < 1) (hφ : IsFrob B q φ) {x : Gal(Ω/ℚ) → QuotSpan ((l : O) ^ ν)} |
| 561 | (hx : x ∈ component l e ψ ν) [Finite M] (h_totient : IsUnit ((N * l).totient : O)) |
| 562 | (hq_one : q ≡ 1 [MOD N * l]) (hx_tors : l • x = 0) {κ : Gal(Ω/ℚ) → M} {T : Finset Nat.Primes} |
| 563 | (hκ : κ ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) M (inertiaOff N l T)) |
| 564 | (hκ_tors : ∀ g : Gal(Ω/ℚ), l • κ g = 0) (hτ : τ ∈ inertiaGroup Gal(Ω/ℚ) B) |
| 565 | (h_away : ∀ A : ValuationSubring Ω, A.valuation (q : Ω) = 1 → |
| 566 | (∀ r ∈ T, ¬A.valuation r < 1) ∨ ∀ g ∈ decompGroup Gal(Ω/ℚ) A, x g = 0) |
| 567 | (h_ne : (2 * (a ^ e - 1) : O) • x φ ≠ 0) : |
| 568 | κ τ = 0 := by |
| 569 | -- Kummer theory turns each coordinate of `κ` in the `𝔽_l`-space `O ∙ κ τ` into an element |
| 570 | -- `l • r i` of `ℚ(μ_{N l})`; the orders `m i u` at `B` of its conjugates give the coordinates of |
| 571 | -- `κ τ`. By `artin_reciprocity_of_mem_component` their weighted sums lie in the maximal ideal, so |
| 572 | -- `κ τ` is killed by a unit. |
| 573 | have h_zmodModule : Module (ZMod l) (O ∙ κ τ) := |
| 574 | AddCommGroup.zmodModule (by simp [mem_span_singleton, smul_comm, hκ_tors]) |
| 575 | let b := Module.finBasis (ZMod l) (O ∙ κ τ) |
| 576 | choose σ hσ using cyclotomicCharMod_surjective (N * l) |
| 577 | -- Extend the coordinates, read in `μ_l`, to `M`; by Hilbert 90 `L i ∘ κ` is a coboundary. |
| 578 | let μ : ZMod l →+ DiscreteUnits Ω := (rootPowHom Ω l).val |
| 579 | have extend i : ∃ L : M →+ DiscreteUnits Ω, ∀ y hy, L y = μ (b.repr ⟨y, hy⟩ i) := by |
| 580 | simpa [DFunLike.ext_iff] using |
| 581 | exists_extend (O ∙ κ τ).subtype.toAddMonoidHom (μ.comp (b.coord i)) (by aesop_cat) |
| 582 | choose L hL using extend |
| 583 | have kummer i : |
| 584 | ∃ r : DiscreteUnits Ω, ∀ g : cycloGalGroup (N * l), L i (κ g) = galUnitsRep g r - r := |
| 585 | exists_apply_eq_galUnitsRep_sub hκ hκ_tors (L i) |
| 586 | choose r hr using kummer |
| 587 | have reciprocity i : ∃ m : (ZMod (N * l))ˣ → ℤ, |
| 588 | (∀ u, ordRat ℚ B (galUnitsRep (σ u) (l • r i)) = m u) ∧ |
| 589 | (∑ u, m u * (u.val.val ^ e * ψ u.val.val)) • (2 * (a ^ e - 1) : O) • x φ = 0 := by |
| 590 | refine artin_reciprocity_of_mem_component ha ha_one hB hφ hx hq_one (congrFun hx_tors) |
| 591 | (fun g ↦ ?_) |
| 592 | (fun A hAl hAq ↦ ?_) hσ |
| 593 | · simp [← add_eq_of_eq_sub (hr i g), ← map_nsmul, hκ_tors] |
| 594 | · -- At a place off `l` and `T` the cocycle `κ` kills inertia, which therefore fixes `r i`. |
| 595 | refine (h_away A hAq).imp_left fun off_T ↦ ⟨r i, by simp, fun g hg ↦ ?_⟩ |
| 596 | have hκ_g : κ g = 0 := apply_eq_zero_of_mem_vanishingCocycles hκ |
| 597 | ⟨A, ⟨cyclotomicCharMod_eq_one_of_dvd (N.dvd_mul_right l) g.prop, hAl, hg⟩, off_T⟩ |
| 598 | simp [← sub_eq_zero, ← hr, hκ_g] |
| 599 | choose m hm m_sum using reciprocity |
| 600 | -- For some `j` and each `u`, the `m i u * j` are the coordinates of `κ τ` up to `u ^ e * ψ u`. |
| 601 | obtain ⟨j, coords⟩ := exists_forall_smul_equivFun_symm_eq hB hq_one hκ hκ_tors hτ b hL hr hσ hm |
| 602 | -- By `m_sum i` the weighted sums kill the nonzero `2 (a ^ e - 1) • x φ`; with `coords` this |
| 603 | -- makes `κ τ` killed by a unit. |
| 604 | exact eq_zero_of_forall_smul_equivFun_symm_eq b m j coords h_ne m_sum h_totient |
| 605 | |
| 606 | end ReciprocityLaw |
| 607 | |
| 608 | /-! |
| 609 | ## Stickelberger and Kolyvagin bounds for the components |
| 610 | |
| 611 | The proofs of `New.OddPart.nsmul_component_eq_zero` and |
| 612 | `New.OddPart.exists_detecting_points_component` use Chebotarev's theorem |
| 613 | (`New.OddPart.exists_isFrob_notMem`) to find a Frobenius element at which a cocycle does not vanish. |
| 614 | They also use the reciprocity laws. |
| 615 | -/ |
| 616 | |
| 617 | section ComponentBound |
| 618 | |
| 619 | open NeZero ZMod Selmer Ideal.Quotient Function QZ Finset Nat HasEnoughRootsOfUnity |
| 620 | |
| 621 | variable {O : Type} [CommRing O] |
| 622 | {N l e X ν : ℕ} [NeZero N] [L : Fact l.Prime] [PadicIntegerRing O l] {ψ : DirichletCharacter O N} |
| 623 | |
| 624 | /-- If neither of the open subgroups `U`, `V` contains the Galois group over `ℚ(ζ_m)`, then some |
| 625 | Frobenius element at a place above a prime `q ≡ 1 mod m` lies outside both. -/ |
| 626 | lemma exists_isFrob_notMem (m : ℕ) [NeZero m] {U V : OpenSubgroup Gal(Ω/ℚ)} |
| 627 | (hU : ¬cycloGalGroup m ≤ U) (hV : ¬cycloGalGroup m ≤ V) : |
| 628 | ∃ q : Primes, q ≡ 1 [MOD m] ∧ |
| 629 | ∃ (A : ClosurePlace) (σ : Gal(Ω/ℚ)), |
| 630 | A.valuation (q : Ω) < 1 ∧ IsFrob A q σ ∧ σ ∉ U ∧ σ ∉ V := by |
| 631 | -- A group is not the union of two proper subgroups, so the open set below is not empty. |
| 632 | have h_ne : ((cycloGalGroup m : Set Gal(Ω/ℚ)) \ (U ∪ V)).Nonempty := |
| 633 | Set.sdiff_nonempty.2 fun h_sub ↦ (SubgroupClass.subset_union.1 h_sub).elim hU hV |
| 634 | -- Chebotarev: it contains a Frobenius at a prime not dividing `m`. |
| 635 | obtain ⟨v, hv, h_prime, A, hA, σ, ⟨hσ, hσ_not⟩, h_frob, -⟩ := |
| 636 | chebotarev (isOpen_ker_cyclotomicCharMod.out.sdiff (U.isClosed.union V.isClosed)) h_ne |
| 637 | (finite_natCast_mem m) |
| 638 | exact ⟨⟨v.q, h_prime⟩, |
| 639 | (h_frob.mem_ker_cyclotomicCharMod_iff (hA.valuation_natCast_eq_one_iff.2 hv)).1 hσ, |
| 640 | A, σ, hA.valuation_q_lt_one, h_frob, not_or.1 hσ_not⟩ |
| 641 | |
| 642 | lemma exists_place_above (r : Primes) : ∃ A : ClosurePlace, A.valuation (r : Ω) < 1 := |
| 643 | have : Fact (r : ℕ).Prime := ⟨r.prop⟩ |
| 644 | ⟨_, valuation_comap_intQpBar_lt_one (IsAlgClosed.lift : Ω →ₐ[ℚ] PadicAlgCl r).toRingHom⟩ |
| 645 | |
| 646 | /-- The function `x` on the Galois group vanishes on the decomposition group of every place above |
| 647 | the prime `r`. -/ |
| 648 | def IsTrivialAbove {M : Type} [Zero M] (x : Gal(Ω/ℚ) → M) (r : Primes) : Prop := |
| 649 | ∀ A : ClosurePlace, A.valuation (r : Ω) < 1 → ∀ g ∈ decompGroup Gal(Ω/ℚ) A, x g = 0 |
| 650 | |
| 651 | /-- For a function supported on numbers that are units modulo `N`, the sum at level `N lⁿ⁺¹` |
| 652 | splits into the unit terms at that level and the terms indexed by multiples of `l`. -/ |
| 653 | private lemma sum_range_eq_sum_units_add_multiples {A : Type*} [AddCommMonoid A] |
| 654 | (f : ℕ → A) (h_zero : ∀ x : ℕ, ¬IsUnit (x : ZMod N) → f x = 0) (n : ℕ) : |
| 655 | ∑ x ∈ range (N * l ^ (n + 1)), f x = |
| 656 | ∑ u : (ZMod (N * l ^ (n + 1)))ˣ, f u.val.val + |
| 657 | ∑ y ∈ range (N * l ^ n), f (l * y) := by |
| 658 | -- A number below `N lⁿ⁺¹` at which `f` is not zero is a unit or a multiple of `l`. |
| 659 | have h_level : N * l ^ (n + 1) = l * (N * l ^ n) := by ring |
| 660 | have h_lt (y : ℕ) : l * y < N * l ^ (n + 1) ↔ y < N * l ^ n := by simp [h_level, L.out.pos] |
| 661 | have h_inj : Injective |
| 662 | (Sum.elim (fun u : (ZMod (N * l ^ (n + 1)))ˣ ↦ u.val.val) fun y ↦ l * y) := |
| 663 | ((ZMod.val_injective _).comp Units.val_injective).sumElim (mul_right_injective₀ (NeZero.ne l)) |
| 664 | fun u y h_eq ↦ L.out.ne_one |
| 665 | (eq_one_of_dvd_coprimes (val_coe_unit_coprime u) ⟨y, h_eq⟩ ⟨_, h_level⟩) |
| 666 | rw [← sum_of_injOn (s := univ.disjSum (range (N * l ^ n))) _ h_inj.injOn ?_ |
| 667 | (fun x hx h_out ↦ ?_) fun _ _ ↦ rfl] |
| 668 | · simp only [sum_disjSum, Sum.elim_inl, Sum.elim_inr] |
| 669 | · -- Both kinds of numbers lie below `N lⁿ⁺¹`. |
| 670 | simp [Set.MapsTo, val_lt, h_lt] |
| 671 | · -- At the other numbers `f` vanishes by its support condition. |
| 672 | apply h_zero |
| 673 | refine fun h_unit ↦ h_out ?_ |
| 674 | by_cases h_dvd : l ∣ x |
| 675 | · obtain ⟨y, rfl⟩ := h_dvd |
| 676 | exact ⟨.inr y, by simpa [h_lt] using hx, rfl⟩ |
| 677 | · have h_cop : x.Coprime (N * l ^ (n + 1)) := |
| 678 | .mul_right ((isUnit_iff_coprime x N).1 h_unit) (L.out.coprime_pow_of_not_dvd h_dvd) |
| 679 | exact ⟨.inl (unitOfCoprime x h_cop), by simpa [mod_eq_iff_lt, NeZero.ne] using hx⟩ |
| 680 | |
| 681 | omit [PadicIntegerRing O l] in |
| 682 | /-- The sum `∑ ⌊a x / (N lⁿ⁺¹)⌋ x ^ e ψ(x)` over `x < N lⁿ⁺¹` splits into its part over the units |
| 683 | modulo `N lⁿ⁺¹` and `l ^ e ψ(l)` times the same sum at level `N lⁿ`. -/ |
| 684 | lemma sum_range_eq_sum_units_add (a n : ℕ) : |
| 685 | ∑ x ∈ range (N * l ^ (n + 1)), (a * x / (N * l ^ (n + 1)) : ℕ) * (x ^ e * ψ x : O) = |
| 686 | ∑ u : (ZMod (N * l ^ (n + 1)))ˣ, |
| 687 | (a * ZMod.val u.val / (N * l ^ (n + 1)) : ℕ) * |
| 688 | (ZMod.val u.val ^ e * ψ (ZMod.val u.val) : O) + |
| 689 | l ^ e * ψ l * ∑ x ∈ range (N * l ^ n), (a * x / (N * l ^ n) : ℕ) * (x ^ e * ψ x : O) := by |
| 690 | let F (x : ℕ) : O := (a * x / (N * l ^ (n + 1)) : ℕ) * (x ^ e * ψ x : O) |
| 691 | have h_zero (x : ℕ) (hx : ¬IsUnit (x : ZMod N)) : F x = 0 := by |
| 692 | simp [F, ψ.map_nonunit hx] |
| 693 | rw [sum_range_eq_sum_units_add_multiples (l := l) F h_zero n] |
| 694 | -- The term at `l y` is `l ^ e ψ(l)` times the term at `y` of level `N lⁿ`. |
| 695 | have h_floor (y : ℕ) : a * (l * y) / (N * l ^ (n + 1)) = a * y / (N * l ^ n) := by |
| 696 | rw [show N * l ^ (n + 1) = l * (N * l ^ n) by ring, mul_left_comm, |
| 697 | Nat.mul_div_mul_left _ _ L.out.pos] |
| 698 | simp only [F, h_floor, mul_sum, Nat.cast_mul, map_mul] |
| 699 | exact congrArg _ (sum_congr rfl fun y _ ↦ by ring) |
| 700 | |
| 701 | omit [PadicIntegerRing O l] in |
| 702 | /-- For an odd pair `(e, ψ)` (meaning `ψ (-y) = -((-1) ^ e * ψ y)` for all `y : ZMod N`), the sum |
| 703 | of `floorDiff a (u / (N lⁿ)) u ^ e ψ(u)` over the units `u` modulo `N lⁿ` reduces modulo `lⁿ` to |
| 704 | `2 * ∑ u, ⌊a u / (N lⁿ)⌋ u ^ e ψ(u)`, since `floorDiff` is a difference of two integer parts and |
| 705 | `u ↦ -u` changes the sign of `u ^ e ψ(u)`. -/ |
| 706 | private lemma sum_floorDiff_eq_two_mul_sum_div (h_odd : ∀ y : ZMod N, -((-1) ^ e * ψ y) = ψ (-y)) |
| 707 | (a n : ℕ) : |
| 708 | ((∑ u : (ZMod (N * l ^ n))ˣ, floorDiff a (ofZMod (N * l ^ n) u.val) * |
| 709 | (u.val.val ^ e * ψ u.val.val) : O) : QuotSpan (l ^ n : O)) = |
| 710 | 2 * ((∑ u : (ZMod (N * l ^ n))ˣ, |
| 711 | (a * u.val.val / (N * l ^ n) : ℕ) * (u.val.val ^ e * ψ u.val.val) : O) : |
| 712 | QuotSpan (l ^ n : O)) := by |
| 713 | have h_nil : (l : QuotSpan (l ^ n : O)) ^ n = 0 := mk_singleton_self _ |
| 714 | have h_char : ringChar (QuotSpan (l ^ n : O)) ∣ N * l ^ n := |
| 715 | ringChar.dvd (by simp [h_nil]) |
| 716 | simp only [floorDiff, ↓← map_neg, ofZMod_apply, QZ.fracRep_mk, mul_div, mod_eq_of_lt, val_lt, |
| 717 | Int.fract_div_natCast_eq_div_natCast_mod] |
| 718 | norm_cast |
| 719 | simp only [Int.cast_subNatNat, sub_mul, sum_sub_distrib, map_sub, map_sum, map_mul, map_natCast, |
| 720 | two_mul] |
| 721 | nth_rw 2 [← neg_bijective.sum_comp] |
| 722 | simp [← h_odd, ← mul_assoc, ← mul_pow, h_char] |
| 723 | |
| 724 | /-- Let `O` be a ring with `PadicIntegerRing O l` for a prime `l`, let `N ≠ 0`, let `e ≠ 0`, let |
| 725 | `ψ : DirichletCharacter O N` satisfy `ψ (-1) = -(-1) ^ e`, and let `X` satisfy |
| 726 | `IsStickelbergerBound N e X`. Let `n : ℕ` and let `a ≡ 1 mod N` be prime to `l`. Then there are |
| 727 | `w, x, y : O` such that `(1 - l ^ e * ψ l) * ((a ^ (e + 1) - 1) * X)` equals |
| 728 | `2 * w * ∑ u, ⌊a u / (N lⁿ⁺¹)⌋ u ^ e ψ(u)` plus `lⁿ⁺¹ * (x - l ^ (e - 1) * ψ l * y)`, where the |
| 729 | sum runs over `(ZMod (N * l ^ (n + 1)))ˣ`. -/ |
| 730 | private lemma exists_euler_mul_eq_sum_units_add (h : IsStickelbergerBound N e X) |
| 731 | (hψ_odd : ψ (-1) = -(-1) ^ e) (he_ne_zero : e ≠ 0) (n : ℕ) {a : ℕ} |
| 732 | (ha : a ≡ 1 [MOD N]) (hla : l.Coprime a) : |
| 733 | ∃ w x y : O, ((1 - l ^ e * ψ l) * ((a ^ (e + 1) - 1) * X) : O) = |
| 734 | 2 * w * (∑ u : (ZMod (N * l ^ (n + 1)))ˣ, |
| 735 | (a * u.val.val / (N * l ^ (n + 1)) : ℕ) * (u.val.val ^ e * ψ u.val.val)) + |
| 736 | l ^ (n + 1) * (x - l ^ (e - 1) * ψ l * y) := by |
| 737 | -- `T m` is the sum of `IsStickelbergerBound` at level `N m`, and `U` is the part of `T lⁿ⁺¹` |
| 738 | -- over the units modulo `N lⁿ⁺¹`. |
| 739 | let T (m : ℕ) : O := ∑ x ∈ range (N * m), ↑(a * x / (N * m)) * (x ^ e * ψ x) |
| 740 | let U : O := ∑ u : (ZMod (N * l ^ (n + 1)))ˣ, |
| 741 | ↑(a * u.val.val / (N * l ^ (n + 1))) * (u.val.val ^ e * ψ u.val.val) |
| 742 | have h_split : T (l ^ (n + 1)) = U + l ^ e * ψ l * T (l ^ n) := sum_range_eq_sum_units_add a n |
| 743 | -- Use `IsStickelbergerBound` at the levels `lⁿ⁺¹` and `lⁿ`. As `e ≠ 0`, the factor `l ^ e` turns |
| 744 | -- the congruence modulo `lⁿ` into one modulo `lⁿ⁺¹`. |
| 745 | obtain ⟨w, hw⟩ := h.exists_natCast_dvd_sub_mul_sum ha O ψ hψ_odd |
| 746 | obtain ⟨x, hx⟩ : (l ^ (n + 1) : O) ∣ (a ^ (e + 1) - 1) * X - 2 * w * T (l ^ (n + 1)) := by |
| 747 | simpa only [Nat.cast_pow] using hw (l ^ (n + 1)) (hla.pow_left (n + 1)) |
| 748 | obtain ⟨y, hy⟩ : (l ^ n : O) ∣ (a ^ (e + 1) - 1) * X - 2 * w * T (l ^ n) := by |
| 749 | simpa only [Nat.cast_pow] using hw (l ^ n) (hla.pow_left n) |
| 750 | refine ⟨w, x, y, ?_⟩ |
| 751 | obtain ⟨k, rfl⟩ : ∃ k : ℕ, e = k + 1 := exists_eq_add_one_of_ne_zero he_ne_zero |
| 752 | rw [add_tsub_cancel_right] |
| 753 | linear_combination hx - l ^ (k + 1) * ψ l * hy + 2 * w * h_split |
| 754 | |
| 755 | /-- Let `O` be the integer ring of a finite extension of `ℚ_l` (`PadicIntegerRing O l`), and let `X` |
| 756 | have the Stickelberger property `IsStickelbergerBound N e X`: for `a ≡ 1 mod N`, for some `w` that |
| 757 | does not depend on `m`, `(a ^ (e + 1) - 1) X` is congruent modulo every `m` prime to `a` to `2 w` |
| 758 | times the Stickelberger sum at level `N m`. Let `cyc ^ e ψ` be odd (`hc`: its value at the complex |
| 759 | conjugation `cmConj` is `-1`), let `e ≠ 0`, and let `a ≡ 1 mod N` be prime to `l`. Then in |
| 760 | `O / lⁿ O` the sum of `floorDiff a (u / (N lⁿ)) u ^ e ψ(u)` over the units `u` modulo `N lⁿ` divides |
| 761 | `(a ^ (e + 1) - 1) X`. Here `floorDiff a t = ⌊a ⟨t⟩⌋ - ⌊a ⟨-t⟩⌋`, where `⟨t⟩ ∈ [0, 1)` represents |
| 762 | `t ∈ ℚ/ℤ`. The multiples of `l` give the Euler factor `1 - l ^ e ψ(l)`, a unit modulo `lⁿ`. -/ |
| 763 | lemma sum_floorDiff_dvd (h : IsStickelbergerBound N e X) |
| 764 | (hc : cyclotomicPowDirichlet l e ψ cmConj = -1) |
| 765 | (he_ne_zero : e ≠ 0) (n : ℕ) {a : ℕ} (ha : a ≡ 1 [MOD N]) (hla : l.Coprime a) : |
| 766 | ((∑ x : (ZMod (N * l ^ n))ˣ, floorDiff a (ofZMod (N * l ^ n) x) * |
| 767 | ((x : ZMod (N * l ^ n)).val ^ e * ψ (x : ZMod (N * l ^ n)).val) : O) : |
| 768 | QuotSpan (l ^ n : O)) ∣ ((a ^ (e + 1) - 1) * X : O) := by |
| 769 | -- `cmConj` inverts roots of unity, so `hc` says that `(-1) ^ e * ψ (-1) = -1`. |
| 770 | have h_odd (y : ZMod N) : -((-1) ^ e * ψ y) = ψ (-y) := by |
| 771 | have h_mul : |
| 772 | ((cyclotomicPowDirichlet l e ψ cmConj : Oˣ) : O) * -ψ (-y) = ((-1 : Oˣ) : O) * -ψ (-y) := by |
| 773 | rw [hc] |
| 774 | simpa [cyclotomicPowDirichlet, isComplexConj_cmConj.cyclotomicChar_eq_neg_one, |
| 775 | isComplexConj_cmConj.cyclotomicCharMod_eq_neg_one, mul_assoc, ← map_mul] using h_mul |
| 776 | have h_nil : (l : QuotSpan (l ^ n : O)) ^ n = 0 := mk_singleton_self _ |
| 777 | rcases n with - | n |
| 778 | · -- Modulo `l ^ 0 = 1` the ring is trivial. |
| 779 | have h_subsingleton : Subsingleton (QuotSpan (l ^ 0 : O)) := |
| 780 | subsingleton_of_zero_eq_one (h_nil.symm.trans (pow_zero _)) |
| 781 | exact ⟨0, Subsingleton.elim _ _⟩ |
| 782 | -- `U` is the Stickelberger sum over the units modulo `N lⁿ⁺¹`. |
| 783 | let U : O := ∑ u : (ZMod (N * l ^ (n + 1)))ˣ, |
| 784 | ↑(a * u.val.val / (N * l ^ (n + 1))) * (u.val.val ^ e * ψ u.val.val) |
| 785 | have h_twice : ((∑ u : (ZMod (N * l ^ (n + 1)))ˣ, floorDiff a (ofZMod _ u.val) * |
| 786 | (u.val.val ^ e * ψ u.val.val) : O) : QuotSpan (l ^ (n + 1) : O)) = 2 * U := |
| 787 | sum_floorDiff_eq_two_mul_sum_div h_odd a (n + 1) |
| 788 | have hψ_odd : ψ (-1) = -(-1) ^ e := by simp [← h_odd] |
| 789 | obtain ⟨w, x, y, h_euler⟩ := exists_euler_mul_eq_sum_units_add h hψ_odd he_ne_zero n ha hla |
| 790 | -- The Euler factor is a unit modulo `lⁿ⁺¹`, because `l ^ e * ψ l` is nilpotent there. |
| 791 | obtain ⟨G, hG⟩ : (1 - l ^ e * ψ l : QuotSpan (l ^ (n + 1) : O)) ∣ 1 := |
| 792 | (IsNilpotent.isUnit_one_sub |
| 793 | ⟨n + 1, by rw [mul_pow, pow_right_comm, h_nil, zero_pow he_ne_zero, zero_mul]⟩).dvd |
| 794 | have h_euler_mod : |
| 795 | (((1 - l ^ e * ψ l) * ((a ^ (e + 1) - 1) * X) : O) : QuotSpan (l ^ (n + 1) : O)) = |
| 796 | ((2 * w * U + l ^ (n + 1) * (x - l ^ (e - 1) * ψ l * y) : O) : |
| 797 | QuotSpan (l ^ (n + 1) : O)) := by |
| 798 | rw [h_euler] |
| 799 | use w * G |
| 800 | rw [h_twice] |
| 801 | -- Push the reduction modulo `lⁿ⁺¹` through both equations; there `lⁿ⁺¹ = 0`. |
| 802 | simp only [map_mul, map_sub, map_add, map_pow, map_natCast, map_one, map_ofNat, h_nil, zero_mul, |
| 803 | add_zero] at h_euler_mod ⊢ |
| 804 | linear_combination G * h_euler_mod + (a ^ (e + 1) - 1) * X * hG |
| 805 | |
| 806 | private lemma ne_zero_of_coprime {a : ℕ} (hla : l.Coprime a) : a ≠ 0 := by |
| 807 | rintro rfl |
| 808 | exact L.out.ne_one ((Nat.coprime_zero_right l).1 hla) |
| 809 | |
| 810 | /-- Artin's law for the Jacobi sums. Let `σ` be a Frobenius at `B` above a prime `p ≡ 1` modulo |
| 811 | `N l ^ ν`, and let `a ≡ 1 mod N` be prime to `l`. Then for `z ∈ component l e ψ ν` the |
| 812 | Stickelberger sum of the `floorDiff a (u / (N l ^ ν))` kills `2 (a ^ e - 1) z σ` in `O / l ^ ν`. -/ |
| 813 | private lemma sum_floorDiff_mul_eq_zero {a : ℕ} (hla : l.Coprime a) (ha : a ≡ 1 [MOD N]) |
| 814 | {p : Primes} (hp : p ≡ 1 [MOD N * l ^ ν]) {B : ClosurePlace} |
| 815 | (hB : B.valuation (p : Ω) < 1) {σ : Gal(Ω/ℚ)} (hσ : IsFrob B p σ) |
| 816 | {z : Gal(Ω/ℚ) → QuotSpan (l ^ ν : O)} (hz : z ∈ component l e ψ ν) : |
| 817 | ((∑ u : (ZMod (N * l ^ ν))ˣ, floorDiff a (ofZMod (N * l ^ ν) u) * |
| 818 | ((u : ZMod (N * l ^ ν)).val ^ e * ψ (u : ZMod (N * l ^ ν)).val) : O) : |
| 819 | QuotSpan (l ^ ν : O)) * (2 * ((a : QuotSpan (l ^ ν : O)) ^ e - 1) * z σ) = 0 := by |
| 820 | -- The Jacobi sum `J (1 / (N l ^ ν))` is a unit off `p`, and its conjugates have the orders |
| 821 | -- `μ u = floorDiff a (u / (N l ^ ν))` at `B`. |
| 822 | obtain ⟨J, hJ⟩ := exists_isJacobiFamily hB a |
| 823 | have hJ_level : IsJacobiFamily p B a (N * l ^ ν) J := hJ (N * l ^ ν) hp |
| 824 | have h_tors (u : ZMod (N * l ^ ν)) : (N * l ^ ν) • ofZMod (N * l ^ ν) u = 0 := by |
| 825 | rw [← map_nsmul, nsmul_eq_mul, natCast_self, zero_mul, map_zero] |
| 826 | have hz_tors (g : Gal(Ω/ℚ)) : l ^ ν • z g = 0 := nsmul_quot_eq_zero dvd_rfl (z g) |
| 827 | have hJ_fix (g : cycloGalGroup (N * l ^ ν)) : |
| 828 | galUnitsRep g (J (ofZMod (N * l ^ ν) 1)) = J (ofZMod (N * l ^ ν) 1) := by |
| 829 | rw [hJ_level.galUnitsRep_apply (h_tors 1) g 1 (by simp [MonoidHom.mem_ker.1 g.prop]), |
| 830 | one_nsmul] |
| 831 | have hJ_away (A : ValuationSubring Ω) |
| 832 | (hA_p : A.valuation (p : Ω) = 1) : |
| 833 | (∃ r : DiscreteUnits Ω, A.valuation (J (ofZMod (N * l ^ ν) 1) - l ^ ν • r).toMul = 1 ∧ |
| 834 | ∀ i ∈ inertiaGroup (cycloGalGroup (N * l ^ ν)) A, galUnitsRep i r = r) ∨ |
| 835 | ∀ g ∈ decompGroup Gal(Ω/ℚ) A, z g = 0 := |
| 836 | .inl ⟨0, by simpa using hJ_level.valuation_eq_one (h_tors 1) A hA_p, fun i _ ↦ map_zero _⟩ |
| 837 | -- Apply Artin's law with representatives of the units modulo `N l ^ ν` in the Galois group. |
| 838 | have h_reps (u : (ZMod (N * l ^ ν))ˣ) : cyclotomicCharMod Ω (N * l ^ ν) |
| 839 | (surjInv (cyclotomicCharMod_surjective _) u) = u := |
| 840 | surjInv_eq (cyclotomicCharMod_surjective _) u |
| 841 | obtain ⟨μ, hμ, h_law⟩ := artin_reciprocity_of_mem_component hla ha hB hσ hz hp hz_tors hJ_fix |
| 842 | (fun A _ ↦ hJ_away A) h_reps |
| 843 | have h_ord (u : (ZMod (N * l ^ ν))ˣ) : |
| 844 | μ u = floorDiff a (ofZMod (N * l ^ ν) (u : ZMod (N * l ^ ν))) := by |
| 845 | simpa [hJ_level.galUnitsRep_apply (h_tors 1) _ _ (ZMod.natCast_zmod_val _).symm, surjInv_eq, |
| 846 | ← map_nsmul, hJ_level.ordRat_eq (h_tors _)] using (hμ u).symm |
| 847 | simpa [h_ord, Algebra.smul_def, map_ofNat] using h_law |
| 848 | |
| 849 | /-- An analogue of Stickelberger's theorem. Let `X` have the Stickelberger property |
| 850 | `IsStickelbergerBound N e X` (a divisibility for each prime and a congruence for the Stickelberger |
| 851 | sums), let `cyc ^ e ψ` be odd (its value at the complex conjugation `cmConj` is `-1`), and let |
| 852 | `e ≠ 0`. Then `4 X²` kills every cocycle `z` in `component l e ψ ν`, the locally constant cocycles |
| 853 | `Gal(Ω/ℚ) → O/l^ν` for `(cyc ^ e ψ)⁻¹` that vanish at `cmConj` and at the elements of |
| 854 | `Gal(Ω/ℚ(μ_N))` lying in an inertia group at a place prime to `l` or in `shaLocalSet l ℚ 1`. -/ |
| 855 | lemma nsmul_component_eq_zero (h_bound : IsStickelbergerBound N e X) |
| 856 | (hc : cyclotomicPowDirichlet l e ψ cmConj = -1) (he_ne_zero : e ≠ 0) |
| 857 | {z : Gal(Ω/ℚ) → QuotSpan (l ^ ν : O)} (hz : z ∈ component l e ψ ν) : |
| 858 | (4 * X * X) • z = 0 := by |
| 859 | -- At a Frobenius `σ` above `p ≡ 1 mod N l ^ ν`, Artin's law for a Jacobi sum shows that the |
| 860 | -- Stickelberger sum kills `2 (a ^ e - 1) z σ`, hence `2 X² z σ = 0`. If `4 X² z ≠ 0`, Chebotarev |
| 861 | -- gives such a `σ` with `2 X² z σ ≠ 0`. |
| 862 | by_contra h_ne |
| 863 | -- The character of `z` is `-1` at `cmConj`, so `not_cycloGalGroup_le_openCocycleKer` asks for |
| 864 | -- `-2 • 2 X² z ≠ 0`. |
| 865 | have h_conj_zero : ((2 * X * X) • z) cmConj = 0 := by |
| 866 | simp [apply_eq_zero_of_mem_vanishingCocycles hz (Set.mem_insert cmConj _)] |
| 867 | have h_char : ((cyclotomicPowDirichlet l e ψ)⁻¹ cmConj : O) - 1 = -(2 : ℕ) := by norm_num [hc] |
| 868 | have h_visible : ¬cycloGalGroup (N * l ^ ν) ≤ openCocycleKer (nsmul_mem hz (2 * X * X)) := by |
| 869 | refine not_cycloGalGroup_le_openCocycleKer _ cmConj h_conj_zero ?_ _ |
| 870 | rwa [h_char, neg_smul, cast_smul_eq_nsmul, smul_smul, neg_ne_zero, ← mul_assoc, ← mul_assoc] |
| 871 | obtain ⟨p, hp : p ≡ 1 [MOD N * l ^ ν], B, σ, hB : B.valuation (p : Ω) < 1, hσ : IsFrob B p σ, |
| 872 | hzσ : ((2 * X * X) • z) σ ≠ 0, -⟩ := |
| 873 | exists_isFrob_notMem (N * l ^ ν) h_visible h_visible |
| 874 | obtain ⟨a, ha, hla, h_dvd⟩ := h_bound.exists_modEq_one_coprime_dvd L.out |
| 875 | obtain ⟨b, hX⟩ : ∃ b : ℕ, X = (a ^ e - 1) * (a ^ (e + 1) - 1) * b := h_dvd |
| 876 | -- In `O / l ^ ν`, the Stickelberger sum `t` divides `(a ^ (e + 1) - 1) X` with quotient `k`, and |
| 877 | -- `X = (a ^ e - 1) (a ^ (e + 1) - 1) b`; so `k b` times Artin's law gives `2 X² z σ = 0`. |
| 878 | set t : QuotSpan (l ^ ν : O) := ((∑ u : (ZMod (N * l ^ ν))ˣ, |
| 879 | floorDiff a (ofZMod (N * l ^ ν) u) * |
| 880 | ((u : ZMod (N * l ^ ν)).val ^ e * ψ (u : ZMod (N * l ^ ν)).val) : O) : |
| 881 | QuotSpan (l ^ ν : O)) with ht |
| 882 | obtain ⟨k, hk⟩ : t ∣ ((a : QuotSpan (l ^ ν : O)) ^ (e + 1) - 1) * X := by |
| 883 | simpa [ht] using sum_floorDiff_dvd h_bound hc he_ne_zero ν ha hla |
| 884 | have h_law_t : t * (2 * ((a : QuotSpan (l ^ ν : O)) ^ e - 1) * z σ) = 0 := |
| 885 | sum_floorDiff_mul_eq_zero hla ha hp hB hσ hz |
| 886 | have hX_q : (X : QuotSpan (l ^ ν : O)) = |
| 887 | ((a : QuotSpan (l ^ ν : O)) ^ e - 1) * ((a : QuotSpan (l ^ ν : O)) ^ (e + 1) - 1) * b := by |
| 888 | simp [hX, Nat.pos_of_ne_zero (ne_zero_of_coprime hla)] |
| 889 | have h_zero : 2 * (X : QuotSpan (l ^ ν : O)) * X * z σ = 0 := by |
| 890 | linear_combination k * b * h_law_t + |
| 891 | 2 * ((a : QuotSpan (l ^ ν : O)) ^ e - 1) * b * z σ * hk + 2 * X * z σ * hX_q |
| 892 | exact hzσ (by simpa [nsmul_eq_mul] using h_zero) |
| 893 | |
| 894 | /-- For `l > N` the number `φ (N l) = φ(N) (l - 1)` is a unit of `O`: both factors lie strictly |
| 895 | between `0` and `l`. -/ |
| 896 | lemma isUnit_totient_mul (hl : N < l) : IsUnit (φ (N * l) : O) := by |
| 897 | have hl_one : 1 < l := L.out.one_lt |
| 898 | rw [totient_mul (N.coprime_of_lt_prime (NeZero.ne N) hl L.out).symm, totient_prime L.out, |
| 899 | Nat.cast_mul] |
| 900 | exact (isUnit_natCast_of_not_dvd |
| 901 | (not_dvd_of_pos_of_lt (NeZero.pos _) (N.totient_le.trans_lt hl))).mul |
| 902 | (isUnit_natCast_of_not_dvd (ℓ := l) (not_dvd_of_pos_of_lt (by lia) (by lia))) |
| 903 | |
| 904 | /-- For `l > N` some `a ≡ 1 mod N` prime to `l` (a primitive root modulo `l`) makes `a ^ k - 1` a |
| 905 | unit of `O` for all `0 < k < l - 1`. -/ |
| 906 | lemma exists_modEq_one_forall_isUnit_pow_sub_one (hl : N < l) : |
| 907 | ∃ a : ℕ, a ≡ 1 [MOD N] ∧ l.Coprime a ∧ |
| 908 | ∀ k : ℕ, 0 < k → k < l - 1 → IsUnit (a ^ k - 1 : O) := by |
| 909 | obtain ⟨b, hb⟩ : ∃ b : ZMod l, IsPrimitiveRoot b (l - 1) := |
| 910 | exists_isPrimitiveRoot (ZMod l) (l - 1) |
| 911 | -- `a` is `b` modulo `l` and `1` modulo `N`. |
| 912 | obtain ⟨a, hab, ha⟩ : {a : ℕ // a ≡ b.val [MOD l] ∧ a ≡ 1 [MOD N]} := |
| 913 | chineseRemainder (N.coprime_of_lt_prime (NeZero.ne N) hl L.out) b.val 1 |
| 914 | obtain rfl : (a : ZMod l) = b := by simpa [← natCast_eq_natCast_iff] using hab |
| 915 | have hl_one : 1 < l := L.out.one_lt |
| 916 | have hla : l.Coprime a := ((isUnit_iff_coprime a l).1 (hb.isUnit (by lia))).symm |
| 917 | refine ⟨a, ha, hla, fun k hk hkl ↦ ?_⟩ |
| 918 | -- `a ^ k ≠ 1` modulo `l`, as `k` lies strictly between `0` and the order `l - 1` of `a`. |
| 919 | have h_unit : IsUnit (a ^ k - 1 : ℤ_[l]) := |
| 920 | .of_map PadicInt.toZMod _ (by simpa [sub_eq_zero] using hb.pow_ne_one_of_pos_of_lt hk.ne' hkl) |
| 921 | simpa using h_unit.map (algebraMap ℤ_[l] O) |
| 922 | |
| 923 | /-- For `e ≠ 0` and `l > N + e + 3`, the numbers `a ^ e - 1` and `a ^ (e + 1) - 1` are units of `O` |
| 924 | for some `a ≡ 1 mod N` prime to `l`. -/ |
| 925 | lemma exists_modEq_one_coprime_isUnit_pow_sub_one (he_ne_zero : e ≠ 0) (hl : N + e + 3 < l) : |
| 926 | ∃ a : ℕ, a ≡ 1 [MOD N] ∧ l.Coprime a ∧ |
| 927 | IsUnit (a ^ e - 1 : O) ∧ IsUnit (a ^ (e + 1) - 1 : O) := by |
| 928 | obtain ⟨a, ha, hla, h_pow⟩ := |
| 929 | exists_modEq_one_forall_isUnit_pow_sub_one (O := O) (show N < l by lia) |
| 930 | exact ⟨a, ha, hla, h_pow e (by lia) (by lia), h_pow (e + 1) e.succ_pos (by lia)⟩ |
| 931 | |
| 932 | omit [Fact l.Prime] in |
| 933 | /-- Let `i` lie in the inertia group of a place `A` above a prime `r ≡ 1 mod N l`. Then `i` fixes |
| 934 | the `N`-th roots of unity, and `A` is not above `l`. The last clause repeats `hi`, so that the |
| 935 | conclusion has the form of the membership condition of `inertiaOff`. -/ |
| 936 | lemma mem_cycloGalGroup_and_valuation_eq_one {r : Primes} {A : ClosurePlace} {i : Gal(Ω/ℚ)} |
| 937 | (hr : r ≡ 1 [MOD N * l]) (hA : A.valuation (r : Ω) < 1) (hi : i ∈ inertiaGroup Gal(Ω/ℚ) A) : |
| 938 | i ∈ cycloGalGroup N ∧ A.valuation (l : Ω) = 1 ∧ i ∈ inertiaGroup Gal(Ω/ℚ) A := |
| 939 | ⟨decompGroup_le_cycloGalGroup hA hr.of_mul_right (IsFrob.mem_decompGroup hi), |
| 940 | hr.of_mul_left.coprime_of_modEq_one.valuation_eq_one hA, hi⟩ |
| 941 | |
| 942 | /-- Let `O` be the integer ring of a finite extension of ℚ_l, `ψ` a Dirichlet character mod `N` with |
| 943 | values in `O`, and `component l e ψ ν` the locally constant cocycles for `(cyc ^ e ψ)⁻¹` on Gal(Ω/ℚ) |
| 944 | with values in `O / l ^ ν` that vanish at `cmConj` and at those elements of Gal(Ω/ℚ(μ_N)) lying in |
| 945 | an inertia group at a place prime to `l` or in `shaLocalSet l ℚ 1`. At a place `A` above a prime |
| 946 | `r ≡ 1 mod N l` (`A.valuation r < 1`) there is a Frobenius element `σ` with this property: every |
| 947 | cocycle `x` in `component l e ψ ν` that is killed by `l` and zero at `σ` is trivial above `r` |
| 948 | (`IsTrivialAbove x r`: it vanishes on the decomposition group of every place above `r`). -/ |
| 949 | lemma exists_isFrob_forall_isTrivialAbove {r : Primes} {A : ClosurePlace} (hr : r ≡ 1 [MOD N * l]) |
| 950 | (hA : A.valuation (r : Ω) < 1) : |
| 951 | ∃ σ : Gal(Ω/ℚ), IsFrob A r σ ∧ |
| 952 | ∀ x ∈ component l e ψ ν, l • x = 0 → x σ = 0 → IsTrivialAbove x r := by |
| 953 | obtain ⟨v, ⟨hv : v.q = r, -⟩, -, |
| 954 | h_over : ∀ A : ClosurePlace, A.valuation (r : Ω) < 1 → IsPlaceOver A v⟩ := |
| 955 | exists_rat_place_of_prime r.prop |
| 956 | obtain ⟨σ, hσ⟩ : ∃ σ : Gal(Ω/ℚ), IsFrob A v.q σ := (h_over A hA).exists_isFrob Gal(Ω/ℚ) |
| 957 | refine ⟨σ, by rwa [← hv], fun x hx h_tors hxσ B hB ↦ ?_⟩ |
| 958 | -- `B` is a conjugate `ρ • A`. The zeros of `x` form an open subgroup that contains inertia at |
| 959 | -- `B` and the Frobenius element `ρ σ ρ⁻¹`, so it contains the decomposition group. |
| 960 | have hBv : IsPlaceOver B v := h_over B hB |
| 961 | obtain ⟨ρ, hρ⟩ := (h_over A hA).exists_smul Gal(Ω/ℚ) hBv |
| 962 | have h_frob : IsFrob B v.q (ρ * σ * ρ⁻¹) := by |
| 963 | rw [← hρ] |
| 964 | exact hσ.conj ρ |
| 965 | have h_inertia (i : Gal(Ω/ℚ)) (hi : i ∈ inertiaGroup Gal(Ω/ℚ) B) : x i = 0 := by |
| 966 | obtain ⟨h_fix, h_val, -⟩ := mem_cycloGalGroup_and_valuation_eq_one hr hB hi |
| 967 | have h_off_l : i ∈ inertiaAbove (placesDividing ℚ l)ᶜ := |
| 968 | ⟨v, hBv.valuation_natCast_eq_one_iff.1 h_val, B, hBv, hi⟩ |
| 969 | exact apply_eq_zero_of_mem_vanishingCocycles hx (.inr ⟨h_fix, .inl h_off_l⟩) |
| 970 | -- `σ` fixes the `N l`-th roots of unity, so it fixes the values of `x`, which `l` kills. |
| 971 | have h_conj : x (ρ * σ * ρ⁻¹) = 0 := by |
| 972 | have h_fix : σ ∈ cycloGalGroup (N * l) := |
| 973 | decompGroup_le_cycloGalGroup hA hr hσ.mem_decompGroup |
| 974 | have h_inv_fix : (cyclotomicPowDirichlet l e ψ σ)⁻¹.val • x ρ⁻¹ = x ρ⁻¹ := |
| 975 | (cyclotomicPowDirichlet_smul_eq_self h_fix (congrFun h_tors ρ⁻¹)).right |
| 976 | rw [cocycle_conj_eq_smul (apply_mul_of_mem_vanishingCocycles hx) h_inv_fix, hxσ, smul_zero] |
| 977 | exact hBv.decompGroup_le h_frob (openCocycleKer hx).isOpen' h_inertia h_conj |
| 978 | |
| 979 | /-- Suppose no `m` points detect the cocycles in `component`: for every `γ : Fin m → Gal(Ω/ℚ)` some |
| 980 | non-zero `x` in `component` vanishes at all `γ i`. Then for every set `T` of at most `m` primes |
| 981 | `≡ 1 mod N l` some non-zero `z` in `component`, killed by `l`, is trivial above every prime of `T` |
| 982 | (it vanishes on the decomposition groups of the places above them). -/ |
| 983 | lemma exists_ne_zero_forall_isTrivialAbove {m : ℕ} |
| 984 | (h_blind : ∀ γ : Fin m → Gal(Ω/ℚ), ∃ x ∈ component l e ψ ν, (∀ i : Fin m, x (γ i) = 0) ∧ x ≠ 0) |
| 985 | {T : Finset Primes} (hT : ∀ r ∈ T, r ≡ 1 [MOD N * l]) (h_card : #T ≤ m) : |
| 986 | ∃ z ∈ component l e ψ ν, z ≠ 0 ∧ l • z = 0 ∧ ∀ r ∈ T, IsTrivialAbove z r := by |
| 987 | -- Some `x ≠ 0` vanishes at the Frobenius elements `σ r`, `r ∈ T`, that detect triviality above |
| 988 | -- `r`. |
| 989 | choose place h_place using exists_place_above |
| 990 | have h_detect : ∀ r : Primes, r ≡ 1 [MOD N * l] → ∃ σ : Gal(Ω/ℚ), IsFrob (place r) r σ ∧ |
| 991 | ∀ x ∈ component l e ψ ν, l • x = 0 → x σ = 0 → IsTrivialAbove x r := |
| 992 | fun r hr ↦ exists_isFrob_forall_isTrivialAbove hr (h_place r) |
| 993 | choose! σ _hσ_frob hσ using h_detect |
| 994 | obtain ⟨x, hx, hx_zero, hx_ne⟩ := h_blind fun i ↦ σ T.toList[i]! |
| 995 | -- Replace `x` by its last non-zero multiple `l ^ k • x`. |
| 996 | obtain ⟨k, hk, hk_succ⟩ : ∃ k : ℕ, l ^ k • x ≠ 0 ∧ l ^ (k + 1) • x = 0 := |
| 997 | exists_not_and_succ_of_not_zero_of_exists (p := fun k ↦ l ^ k • x = 0) (by simpa using hx_ne) |
| 998 | ⟨ν, funext fun g ↦ nsmul_quot_eq_zero dvd_rfl (x g)⟩ |
| 999 | have h_tors : l • l ^ k • x = 0 := by rwa [← mul_nsmul] |
| 1000 | refine ⟨l ^ k • x, nsmul_mem hx _, hk, h_tors, |
| 1001 | fun r hr ↦ hσ r (hT r hr) _ (nsmul_mem hx _) h_tors ?_⟩ |
| 1002 | have h_index : T.toList.idxOf r < m := |
| 1003 | (List.idxOf_lt_length_iff.2 (mem_toList.2 hr)).trans_le (by rwa [length_toList]) |
| 1004 | have hxσ : x (σ r) = 0 := by simpa [hr] using hx_zero ⟨_, h_index⟩ |
| 1005 | simp [hxσ] |
| 1006 | |
| 1007 | /-- Reciprocity modulo `l`. Let `a ≡ 1 mod N` be prime to `l`, with `2`, `φ (N l)` and `a ^ e - 1` |
| 1008 | units of `O`. Let `z` in `component`, killed by `l`, be trivial above every prime of `T` but not |
| 1009 | above a prime `r ≡ 1 mod N l`. Then a dual cocycle `y` for `cyc ^ (e + 1) ψ`, killed by `l`, that |
| 1010 | vanishes on `inertiaOff N l (insert r T)`, vanishes on `inertiaOff N l T`. -/ |
| 1011 | lemma mem_vanishingCocycles_of_mem_insert {a m : ℕ} (ha : a ≡ 1 [MOD N]) (hla : l.Coprime a) |
| 1012 | (h_two : IsUnit (2 : O)) (h_totient : IsUnit (φ (N * l) : O)) (h_pow : IsUnit (a ^ e - 1 : O)) |
| 1013 | {T : Finset Primes} {r : Primes} (hr : r ≡ 1 [MOD N * l]) |
| 1014 | {z : Gal(Ω/ℚ) → QuotSpan (l ^ ν : O)} (hz : z ∈ component l e ψ ν) (hz_tors : l • z = 0) |
| 1015 | (hzT : ∀ t ∈ T, IsTrivialAbove z t) (hzr : ¬IsTrivialAbove z r) |
| 1016 | {y : Gal(Ω/ℚ) → QuotSpan (l ^ m : O)} |
| 1017 | (hy : y ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1018 | (inertiaOff N l (insert r T))) |
| 1019 | (hy_tors : l • y = 0) : |
| 1020 | y ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1021 | (inertiaOff N l T) := by |
| 1022 | -- Local constancy and the cocycle identity come from `hy`; it remains to show that `y` vanishes |
| 1023 | -- on the inertia groups of the places above neither `l` nor a prime of `T`. |
| 1024 | refine ⟨isLocallyConstant_of_mem_vanishingCocycles hy, |
| 1025 | apply_mul_of_mem_vanishingCocycles hy, ?_⟩ |
| 1026 | rintro τ ⟨A, ⟨h_fix, h_val, hτ⟩, hA⟩ |
| 1027 | by_cases hAr : A.valuation (r : Ω) < 1 |
| 1028 | · obtain ⟨σ, hσ, h_detect⟩ := exists_isFrob_forall_isTrivialAbove (e := e) (ψ := ψ) (ν := ν) hr |
| 1029 | hAr |
| 1030 | -- A place that is not above `r` lies above no prime of `insert r T`, or `z` is trivial there. |
| 1031 | have h_away (B : ClosurePlace) (hB : B.valuation (r : Ω) = 1) : |
| 1032 | (∀ t ∈ insert r T, ¬B.valuation (t : Ω) < 1) ∨ |
| 1033 | ∀ g ∈ decompGroup Gal(Ω/ℚ) B, z g = 0 := by |
| 1034 | rw [or_iff_not_imp_right, forall_mem_insert] |
| 1035 | exact fun h_nontrivial ↦ ⟨hB.not_lt, fun t ht hBt ↦ h_nontrivial (hzT t ht B hBt)⟩ |
| 1036 | -- `z σ ≠ 0`, since `σ` detects triviality above `r`. |
| 1037 | have hzσ : (2 * (a ^ e - 1) : O) • z σ ≠ 0 := |
| 1038 | (h_two.mul h_pow).smul_eq_zero.ne.2 fun h_zero ↦ hzr (h_detect z hz hz_tors h_zero) |
| 1039 | exact reciprocity_mod_ell hla ha hAr hσ hz h_totient hr hz_tors hy (congrFun hy_tors) hτ |
| 1040 | h_away hzσ |
| 1041 | · -- `A` lies above neither `r` nor a prime of `T`, so `hy` applies. |
| 1042 | exact apply_eq_zero_of_mem_vanishingCocycles hy |
| 1043 | ⟨A, ⟨h_fix, h_val, hτ⟩, (forall_mem_insert r T _).2 ⟨hAr, hA⟩⟩ |
| 1044 | |
| 1045 | /-- Let `v_l(X) = X.factorization l`. If `l ^ (v_l(X) + 1)` divides `X ≠ 0` in `O`, then `l` is a |
| 1046 | unit of `O`: it divides the part of `X` prime to `l`. -/ |
| 1047 | lemma isUnit_natCast_of_pow_factorization_succ_dvd (hX : X ≠ 0) |
| 1048 | (h_dvd : (l ^ (X.factorization l + 1) : O) ∣ X) : |
| 1049 | IsUnit (l : O) := by |
| 1050 | -- Write `X = l ^ v_l(X) * X'`; cancelling `l ^ v_l(X)` gives `l ∣ X'`, and `X'` is prime to `l`. |
| 1051 | nth_rw 2 [← X.ordProj_mul_ordCompl_eq_self l] at h_dvd |
| 1052 | have h_dvd_compl : (l : O) ∣ (ordCompl[l] X : ℕ) := by |
| 1053 | simpa [pow_succ, NeZero.ne, mul_dvd_mul_iff_left] using h_dvd |
| 1054 | exact (X.coprime_ordCompl L.out hX).cast.isUnit_of_dvd h_dvd_compl |
| 1055 | |
| 1056 | /-- Finiteness of the Kolyvagin reciprocity component. -/ |
| 1057 | lemma finite_component : Finite (component l e ψ ν) := |
| 1058 | finite_vanishingCocycles (n := ν) |
| 1059 | (fun g y ↦ (cyclotomicPowDirichlet_smul_eq_self g.prop (nsmul_quot_eq_zero dvd_rfl y)).right) |
| 1060 | fun _ ⟨h_fix, h_inertia⟩ ↦ .inr ⟨h_fix, .inl h_inertia⟩ |
| 1061 | |
| 1062 | /-- There are finitely many cocycles for `cyc ^ e ψ` modulo `l ^ m` that are unramified off `l` |
| 1063 | over `ℚ(ζ_N)`. -/ |
| 1064 | lemma finite_vanishingCocycles_inertiaOff_empty (m : ℕ) : |
| 1065 | Finite (vanishingCocycles (cyclotomicPowDirichlet l e ψ) (QuotSpan (l ^ m : O)) |
| 1066 | (inertiaOff N l ∅)) := |
| 1067 | finite_vanishingCocycles (n := m) |
| 1068 | (fun g y ↦ (cyclotomicPowDirichlet_smul_eq_self g.prop (nsmul_quot_eq_zero dvd_rfl y)).left) |
| 1069 | fun _ ⟨h_fix, _, hv, A, hA, h_inertia⟩ ↦ |
| 1070 | ⟨A, ⟨h_fix, hA.valuation_natCast_eq_one_iff.2 hv, h_inertia⟩, nofun⟩ |
| 1071 | |
| 1072 | /-- If `cyc ^ e ψ` is odd (value `-1` at `cmConj`) and `2` is a unit of `O`, a non-zero cocycle `z` |
| 1073 | in `component` does not vanish on the Galois group over `ℚ(ζ_f)`, that is, this group does not lie |
| 1074 | in the open subgroup `openCocycleKer hz` of zeros of `z`. The reason: `z` is zero at `cmConj`, where |
| 1075 | the character of `z` has the value `-1`, and `-1 - 1 = -2` is a unit. -/ |
| 1076 | lemma not_cycloGalGroup_le_openCocycleKer_of_ne_zero (hc : cyclotomicPowDirichlet l e ψ cmConj = -1) |
| 1077 | (h_two : IsUnit (2 : O)) |
| 1078 | {z : Gal(Ω/ℚ) → QuotSpan (l ^ ν : O)} (hz : z ∈ component l e ψ ν) (hz_ne : z ≠ 0) |
| 1079 | (f : ℕ) [NeZero f] : ¬cycloGalGroup f ≤ openCocycleKer hz := by |
| 1080 | have h_char : ((cyclotomicPowDirichlet l e ψ)⁻¹ cmConj : O) - 1 = -2 := by norm_num [hc] |
| 1081 | refine not_cycloGalGroup_le_openCocycleKer hz cmConj |
| 1082 | (apply_eq_zero_of_mem_vanishingCocycles hz (Set.mem_insert cmConj _)) ?_ f |
| 1083 | simpa only [h_char] using h_two.neg.smul_eq_zero.ne.2 hz_ne |
| 1084 | |
| 1085 | /-- Let `cyc ^ e ψ` be odd (value `-1` at `cmConj`) and `2` a unit of `O`. There is a finite set `Q` |
| 1086 | of primes `≡ 1 mod f` with this property. Let `y` be a cocycle for the dual character |
| 1087 | `cyc ^ (e + 1) ψ` with values in `O / l ^ m`, unramified off `l` over `ℚ(ζ_N)` and not zero on the |
| 1088 | Galois group over `ℚ(ζ_f)`, and let `z` be a non-zero cocycle in `component`. Then at some |
| 1089 | Frobenius element `σ` at a place above a prime of `Q` neither `y` nor `z` vanishes. -/ |
| 1090 | lemma exists_finset_forall_exists_isFrob (hc : cyclotomicPowDirichlet l e ψ cmConj = -1) |
| 1091 | (h_two : IsUnit (2 : O)) (m f : ℕ) [NeZero f] : |
| 1092 | ∃ Q : Finset Primes, (∀ r ∈ Q, r ≡ 1 [MOD f]) ∧ |
| 1093 | ∀ (y : vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1094 | (inertiaOff N l ∅)) (z : component l e ψ ν), |
| 1095 | ¬cycloGalGroup f ≤ openCocycleKer y.prop → z ≠ 0 → |
| 1096 | ∃ r ∈ Q, ∃ (A : ClosurePlace) (σ : Gal(Ω/ℚ)), |
| 1097 | A.valuation (r : Ω) < 1 ∧ IsFrob A r σ ∧ y.val σ ≠ 0 ∧ z.val σ ≠ 0 := by |
| 1098 | -- Choose a prime for each pair; there are finitely many pairs. |
| 1099 | have h_finite_y : Finite (vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) |
| 1100 | (QuotSpan (l ^ m : O)) (inertiaOff N l ∅)) := finite_vanishingCocycles_inertiaOff_empty m |
| 1101 | have h_finite_z : Finite (component l e ψ ν) := finite_component |
| 1102 | have h_pair (y : {y : vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) |
| 1103 | (QuotSpan (l ^ m : O)) (inertiaOff N l ∅) // ¬cycloGalGroup f ≤ openCocycleKer y.prop}) |
| 1104 | (z : {z : component l e ψ ν // z ≠ 0}) : |
| 1105 | ∃ q : Primes, q ≡ 1 [MOD f] ∧ ∃ (A : ClosurePlace) (σ : Gal(Ω/ℚ)), |
| 1106 | A.valuation (q : Ω) < 1 ∧ IsFrob A q σ ∧ σ ∉ openCocycleKer y.val.prop ∧ |
| 1107 | σ ∉ openCocycleKer z.val.prop := |
| 1108 | exists_isFrob_notMem f y.prop (not_cycloGalGroup_le_openCocycleKer_of_ne_zero hc h_two |
| 1109 | z.val.prop (Subtype.coe_ne_coe.2 z.prop) f) |
| 1110 | choose q hq hq_frob using h_pair |
| 1111 | refine ⟨(Set.finite_range (uncurry q)).toFinset, fun r hr ↦ ?_, fun y z hy hz ↦ ?_⟩ |
| 1112 | · obtain ⟨⟨y, z⟩, rfl⟩ : r ∈ Set.range (uncurry q) := (Set.Finite.mem_toFinset _).1 hr |
| 1113 | exact hq y z |
| 1114 | · have h_mem : q ⟨y, hy⟩ ⟨z, hz⟩ ∈ (Set.finite_range (uncurry q)).toFinset := |
| 1115 | (Set.Finite.mem_toFinset _).2 ⟨(⟨y, hy⟩, ⟨z, hz⟩), rfl⟩ |
| 1116 | exact ⟨q ⟨y, hy⟩ ⟨z, hz⟩, h_mem, hq_frob ⟨y, hy⟩ ⟨z, hz⟩⟩ |
| 1117 | |
| 1118 | omit [Fact l.Prime] [PadicIntegerRing O l] in |
| 1119 | /-- A cocycle unramified off `l` over `ℚ(ζ_N)` vanishes on inertia above a prime `≡ 1 mod N l`. -/ |
| 1120 | lemma apply_eq_zero_of_mem_inertiaGroup {M : Type} [AddCommGroup M] [Module O M] |
| 1121 | {χ : Gal(Ω/ℚ) →* Oˣ} {y : Gal(Ω/ℚ) → M} (hy : y ∈ vanishingCocycles χ M (inertiaOff N l ∅)) |
| 1122 | {r : Primes} (hr : r ≡ 1 [MOD N * l]) {A : ClosurePlace} (hA : A.valuation (r : Ω) < 1) |
| 1123 | {ι : Gal(Ω/ℚ)} (hι : ι ∈ inertiaGroup Gal(Ω/ℚ) A) : y ι = 0 := |
| 1124 | apply_eq_zero_of_mem_vanishingCocycles hy |
| 1125 | ⟨A, mem_cycloGalGroup_and_valuation_eq_one hr hA hι, nofun⟩ |
| 1126 | |
| 1127 | variable (l e ψ) in |
| 1128 | /-- A finite set `T` of primes is tight at level `m` when its primes are `≡ 1 mod N l` and every |
| 1129 | cocycle for the dual character `cyc ^ (e + 1) ψ` with values in `O / l ^ m` that is killed by `l` |
| 1130 | and vanishes on `inertiaOff N l T` (unramified over `ℚ(ζ_N)` off `l` and `T`) also vanishes on |
| 1131 | `inertiaOff N l ∅` (unramified off `l`). -/ |
| 1132 | private def IsTight (m : ℕ) (T : Finset Primes) : Prop := |
| 1133 | (∀ r ∈ T, r ≡ 1 [MOD N * l]) ∧ |
| 1134 | ∀ y ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1135 | (inertiaOff N l T), l • y = 0 → |
| 1136 | y ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1137 | (inertiaOff N l ∅) |
| 1138 | |
| 1139 | private lemma IsTight.modEq_one {m : ℕ} {T : Finset Primes} (hT : IsTight l e ψ m T) : |
| 1140 | ∀ r ∈ T, r ≡ 1 [MOD N * l] := |
| 1141 | hT.1 |
| 1142 | |
| 1143 | /-- For a tight set `T`, a dual cocycle killed by `l` and unramified off `l` and `T` is unramified |
| 1144 | off `l`. -/ |
| 1145 | private lemma IsTight.mem_vanishingCocycles_of_nsmul_eq_zero {m : ℕ} {T : Finset Primes} |
| 1146 | (hT : IsTight l e ψ m T) {y : Gal(Ω/ℚ) → QuotSpan (l ^ m : O)} |
| 1147 | (hy : y ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1148 | (inertiaOff N l T)) |
| 1149 | (hy_tors : l • y = 0) : |
| 1150 | y ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1151 | (inertiaOff N l ∅) := |
| 1152 | hT.2 y hy hy_tors |
| 1153 | |
| 1154 | /-- Reciprocity keeps a set tight. Let `a ≡ 1 mod N` be prime to `l`, with `2`, `φ (N l)` and |
| 1155 | `a ^ e - 1` units of `O`. If `T` is tight and some `z` in `component`, killed by `l`, is trivial |
| 1156 | above every prime of `T` but not above a prime `r ≡ 1 mod N l`, then `insert r T` is tight. -/ |
| 1157 | private lemma IsTight.insert {a m : ℕ} (ha : a ≡ 1 [MOD N]) (hla : l.Coprime a) |
| 1158 | (h_two : IsUnit (2 : O)) (h_totient : IsUnit (φ (N * l) : O)) (h_pow : IsUnit (a ^ e - 1 : O)) |
| 1159 | {T : Finset Primes} (hT : IsTight l e ψ m T) {r : Primes} (hr : r ≡ 1 [MOD N * l]) |
| 1160 | {z : Gal(Ω/ℚ) → QuotSpan (l ^ ν : O)} (hz : z ∈ component l e ψ ν) (hz_tors : l • z = 0) |
| 1161 | (hzT : ∀ t ∈ T, IsTrivialAbove z t) (hzr : ¬IsTrivialAbove z r) : |
| 1162 | IsTight l e ψ m (insert r T) := by |
| 1163 | refine ⟨(forall_mem_insert r T _).2 ⟨hr, hT.modEq_one⟩, fun y hy hy_tors ↦ ?_⟩ |
| 1164 | -- By reciprocity modulo `l`, `y` is unramified off `l` and `T`. |
| 1165 | have hy_T : y ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1166 | (inertiaOff N l T) := |
| 1167 | mem_vanishingCocycles_of_mem_insert ha hla h_two h_totient h_pow hr hz hz_tors hzT hzr hy |
| 1168 | hy_tors |
| 1169 | exact hT.mem_vanishingCocycles_of_nsmul_eq_zero hy_T hy_tors |
| 1170 | |
| 1171 | /-- Kolyvagin's descent. Suppose no `m` points detect the cocycles in `component l e ψ ν`; let |
| 1172 | `a ≡ 1 mod N` be prime to `l` with `2`, `φ (N l)`, `a ^ e - 1` units. Let `κ` be a Kolyvagin system |
| 1173 | for `cyc ^ (e + 1) ψ` in `O / l ^ m` over the primes of `Q` (all `≡ 1 mod a N l ^ m`), with |
| 1174 | auxiliary prime `p`, zero at `γ` (`cyc ^ (e + 1) ψ (γ) - 1` a unit), and `hQ_frob` supplying |
| 1175 | detecting Frobenius elements. If `i ≤ m` and `S ⊆ Q` has at most `i` primes with `insert p S` tight, |
| 1176 | `l ^ i • κ S` is unramified off `l`. -/ |
| 1177 | private lemma nsmul_mem_vanishingCocycles_of_isTight {a m : ℕ} [NeZero a] (ha : a ≡ 1 [MOD N]) |
| 1178 | (hla : l.Coprime a) (h_two : IsUnit (2 : O)) (h_totient : IsUnit (φ (N * l) : O)) |
| 1179 | (h_pow : IsUnit (a ^ e - 1 : O)) |
| 1180 | (h_blind : ∀ δ : Fin m → Gal(Ω/ℚ), |
| 1181 | ∃ x ∈ component l e ψ ν, (∀ j : Fin m, x (δ j) = 0) ∧ x ≠ 0) |
| 1182 | {γ : Gal(Ω/ℚ)} (hγ_unit : IsUnit (cyclotomicPowDirichlet l (e + 1) ψ γ - 1 : O)) |
| 1183 | {Q : Finset Primes} (hQ_mod : ∀ r ∈ Q, r ≡ 1 [MOD a * (N * l ^ m)]) |
| 1184 | (hQ_frob : ∀ (y : vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1185 | (inertiaOff N l ∅)) (z : component l e ψ ν), |
| 1186 | ¬cycloGalGroup (a * (N * l ^ m)) ≤ openCocycleKer y.prop → z ≠ 0 → |
| 1187 | ∃ r ∈ Q, ∃ (A : ClosurePlace) (σ : Gal(Ω/ℚ)), |
| 1188 | A.valuation (r : Ω) < 1 ∧ IsFrob A r σ ∧ y.val σ ≠ 0 ∧ z.val σ ≠ 0) |
| 1189 | {p : Primes} {κ : Finset Primes → Gal(Ω/ℚ) → QuotSpan (l ^ m : O)} |
| 1190 | (hκ : IsKolyvaginSystem (cyclotomicPowDirichlet l (e + 1) ψ) γ N l p Q κ) {i : ℕ} (hi : i ≤ m) : |
| 1191 | ∀ S ⊆ Q, #S ≤ i → IsTight l e ψ m (insert p S) → |
| 1192 | l ^ i • κ S ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1193 | (inertiaOff N l ∅) := by |
| 1194 | -- Descent on `i`, from `i = m`, where `l ^ m` kills the coefficients. |
| 1195 | induction hi using decreasingInduction with |
| 1196 | | self => |
| 1197 | intro S _ _ _ |
| 1198 | simp [show l ^ m • κ S = 0 from funext fun g ↦ nsmul_quot_eq_zero dvd_rfl (κ S g)] |
| 1199 | | of_succ i hi ih => |
| 1200 | intro S hS h_card h_tight |
| 1201 | suffices h_tors : l • l ^ i • κ S = 0 from |
| 1202 | h_tight.mem_vanishingCocycles_of_nsmul_eq_zero (nsmul_mem (hκ.mem_vanishingCocycles S hS) _) |
| 1203 | h_tors |
| 1204 | by_contra h_ne |
| 1205 | -- If `y = l ^ (i + 1) • κ S` is not zero, it is not zero on the Galois group over |
| 1206 | -- `ℚ(ζ_{a N l ^ m})`, because `y γ = 0` and `cyc ^ (e + 1) ψ (γ) - 1` is a unit. |
| 1207 | let y : vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1208 | (inertiaOff N l ∅) := |
| 1209 | ⟨l ^ (i + 1) • κ S, ih S hS h_card.step h_tight⟩ |
| 1210 | have hy_ne : l ^ (i + 1) • κ S ≠ 0 := by rwa [← mul_nsmul] at h_ne |
| 1211 | have hyγ : (l ^ (i + 1) • κ S) γ = 0 := by simp [hκ.apply_eq_zero S hS] |
| 1212 | have hy : ¬cycloGalGroup (a * (N * l ^ m)) ≤ openCocycleKer y.prop := |
| 1213 | not_cycloGalGroup_le_openCocycleKer y.prop γ hyγ (hγ_unit.smul_eq_zero.ne.2 hy_ne) _ |
| 1214 | -- Some `w ≠ 0` in `component`, killed by `l`, is trivial above `p` and the primes of `S`. |
| 1215 | obtain ⟨w, hw, hw_ne, hw_tors, hw_triv⟩ := exists_ne_zero_forall_isTrivialAbove h_blind |
| 1216 | h_tight.modEq_one ((card_insert_le p S).trans (Nat.succ_le_of_lt (h_card.trans_lt hi))) |
| 1217 | -- The prime `r` of the pair `(y, w)` is new (`w` is not trivial above it); the set stays tight. |
| 1218 | obtain ⟨r, hrQ, A, σ, hA, hσ, hyσ, hwσ⟩ := hQ_frob y ⟨w, hw⟩ hy (Subtype.coe_ne_coe.1 hw_ne) |
| 1219 | have h_level : N * l ∣ N * l ^ m := mul_dvd_mul_left N (dvd_pow_self l (Nat.ne_zero_of_lt hi)) |
| 1220 | have hr : r ≡ 1 [MOD N * l] := (hQ_mod r hrQ).of_dvd (h_level.mul_left a) |
| 1221 | have hwr : ¬IsTrivialAbove w r := fun h_triv ↦ |
| 1222 | hwσ (h_triv A hA σ hσ.mem_decompGroup) |
| 1223 | have hrS : r ∉ S := fun hrS ↦ hwr (hw_triv r (mem_insert_of_mem hrS)) |
| 1224 | have h_tight_next : IsTight l e ψ m (insert p (insert r S)) := by |
| 1225 | simpa only [insert_comm p r] using |
| 1226 | h_tight.insert ha hla h_two h_totient h_pow hr hw hw_tors hw_triv hwr |
| 1227 | have h_next : l ^ (i + 1) • κ (insert r S) ∈ vanishingCocycles |
| 1228 | (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) (inertiaOff N l ∅) := |
| 1229 | ih _ (insert_subset hrQ hS) ((card_insert_le r S).trans (Nat.succ_le_succ h_card)) |
| 1230 | h_tight_next |
| 1231 | -- Hence `y σ = l ^ (i + 1) • κ (insert r S) ι = 0`, against the choice of `σ`. |
| 1232 | obtain ⟨ι, hι, h_eq⟩ := hκ.exists_mem_inertiaGroup_eq S hS r hrQ hrS A σ hσ hA |
| 1233 | refine hyσ ?_ |
| 1234 | calc l ^ (i + 1) • κ S σ = (l ^ (i + 1) • κ (insert r S)) ι := by rw [← h_eq, Pi.smul_apply] |
| 1235 | _ = 0 := apply_eq_zero_of_mem_inertiaGroup h_next hr hA hι |
| 1236 | |
| 1237 | /-- The Kolyvagin–Rubin bound, from the Euler system of Gauss sums. Let `X ≠ 0` satisfy |
| 1238 | `IsStickelbergerBound N e X`, a divisibility for each prime plus a congruence for the Stickelberger |
| 1239 | sums. Let `cyc ^ e ψ` be odd (value `-1` at `cmConj`), `e ≠ 0` and `l > N + e + 3`. Then there are |
| 1240 | `v_l(X) + 1` elements `γ i` of the Galois group, where `v_l(X) = X.factorization l`, such that a |
| 1241 | cocycle in `component l e ψ ν` vanishing at all of them is zero. That space consists of cocycles |
| 1242 | `Gal(Ω/ℚ) → O/l^ν` for `(cyc^e ψ)⁻¹` under local conditions. |
| 1243 | |
| 1244 | It is used instead of the Iwasawa main conjecture proved by Mazur and Wiles: for l > N + e + 3 it |
| 1245 | bounds, at finite level, the number of Galois elements needed to detect the cocycles. -/ |
| 1246 | lemma exists_detecting_points_component (h_bound : IsStickelbergerBound N e X) |
| 1247 | (hc : cyclotomicPowDirichlet l e ψ cmConj = -1) (he_ne_zero : e ≠ 0) (hX : X ≠ 0) |
| 1248 | (hl : N + e + 3 < l) : |
| 1249 | ∃ γ : Fin (X.factorization l + 1) → Gal(Ω/ℚ), |
| 1250 | ∀ x ∈ component l e ψ ν, (∀ i : Fin (X.factorization l + 1), x (γ i) = 0) → x = 0 := by |
| 1251 | -- Suppose no `m = v_l(X) + 1` points detect the cocycles. Then for any `m` primes `≡ 1 mod N l` |
| 1252 | -- some non-zero cocycle killed by `l` is trivial above all of them. By reciprocity this bounds |
| 1253 | -- the ramification of Kolyvagin's cocycles `κ S`; by descent `κ ∅` is unramified at `p`, so that |
| 1254 | -- `l ^ m ∣ X` in `O`. |
| 1255 | by_contra! h_blind |
| 1256 | set m : ℕ := X.factorization l + 1 |
| 1257 | have h_two : IsUnit (2 : O) := by |
| 1258 | exact_mod_cast isUnit_natCast_of_not_dvd (O := O) |
| 1259 | (not_dvd_of_pos_of_lt two_pos (by lia : 2 < l)) |
| 1260 | have h_totient : IsUnit (φ (N * l) : O) := isUnit_totient_mul (by lia) |
| 1261 | obtain ⟨a, ha, hla, h_pow, h_pow_succ⟩ := |
| 1262 | exists_modEq_one_coprime_isUnit_pow_sub_one (O := O) he_ne_zero hl |
| 1263 | have ha_ne_zero : NeZero a := ⟨ne_zero_of_coprime hla⟩ |
| 1264 | have h_level : N * l ∣ N * l ^ m := mul_dvd_mul_left N (dvd_pow_self l (NeZero.ne m)) |
| 1265 | -- At `γ` the dual character has the value `a ^ (e + 1)`. |
| 1266 | obtain ⟨P, hP⟩ := exists_place_above ⟨l, L.out⟩ |
| 1267 | obtain ⟨γ, -, hγ⟩ := exists_inertia_cyclotomicPowDirichlet_eq (ψ := ψ) hla ha hP (e + 1) |
| 1268 | have hγ_unit : IsUnit (cyclotomicPowDirichlet l (e + 1) ψ γ - 1 : O) := by rwa [hγ] |
| 1269 | obtain ⟨Q, hQ_mod, hQ_frob⟩ := |
| 1270 | exists_finset_forall_exists_isFrob (ν := ν) hc h_two m (a * (N * l ^ m)) |
| 1271 | -- Choose `z ≠ 0` killed by `l`, and a prime `p ≡ 1` modulo `N l ^ m` and all of `Q` at which `z` |
| 1272 | -- is not trivial. |
| 1273 | obtain ⟨z, hz, hz_ne, hz_tors, -⟩ := |
| 1274 | exists_ne_zero_forall_isTrivialAbove h_blind (T := ∅) (by simp) bot_le |
| 1275 | have h_prod_ne_zero : NeZero (∏ r ∈ Q, (r : ℕ)) := NeZero.of_pos (Q.prod_pos fun r _ ↦ r.prop.pos) |
| 1276 | have hz_visible : ¬cycloGalGroup (N * l ^ m * ∏ r ∈ Q, (r : ℕ)) ≤ openCocycleKer hz := |
| 1277 | not_cycloGalGroup_le_openCocycleKer_of_ne_zero hc h_two hz hz_ne _ |
| 1278 | obtain ⟨p, hp : p ≡ 1 [MOD N * l ^ m * ∏ r ∈ Q, (r : ℕ)], B, τ, hB : B.valuation (p : Ω) < 1, |
| 1279 | hτ : IsFrob B p τ, hzτ : z τ ≠ 0, -⟩ := |
| 1280 | exists_isFrob_notMem _ hz_visible hz_visible |
| 1281 | have hp_split : p ≡ 1 [MOD N * l] := hp.of_dvd (h_level.mul_right _) |
| 1282 | have h_tight_empty : IsTight l e ψ m ∅ := ⟨by simp, fun y hy _hy_tors ↦ hy⟩ |
| 1283 | have hp_tight : IsTight l e ψ m (insert p ∅) := |
| 1284 | h_tight_empty.insert ha hla h_two h_totient h_pow hp_split hz hz_tors (by simp) |
| 1285 | fun h_triv ↦ hzτ (h_triv B hB τ hτ.mem_decompGroup) |
| 1286 | -- Kolyvagin's cocycles `κ S` for `S ⊆ Q`; if `κ ∅` is unramified at `B`, then |
| 1287 | -- `cyc ^ (e + 1) ψ (γ) - 1` kills the Stickelberger sum (`h_value`). |
| 1288 | obtain ⟨κ, hκ : IsKolyvaginSystem (cyclotomicPowDirichlet l (e + 1) ψ) γ N l p Q κ, h_value⟩ := |
| 1289 | exists_isKolyvaginSystem (ψ := ψ) e a γ hQ_mod hp hB |
| 1290 | -- By descent down to `i = 0`, `κ ∅` is unramified off `l`, so it kills inertia at `B`. |
| 1291 | have h_κ_mem : κ ∅ ∈ vanishingCocycles (cyclotomicPowDirichlet l (e + 1) ψ) (QuotSpan (l ^ m : O)) |
| 1292 | (inertiaOff N l ∅) := by |
| 1293 | simpa using nsmul_mem_vanishingCocycles_of_isTight ha hla h_two h_totient h_pow h_blind |
| 1294 | hγ_unit hQ_mod hQ_frob hκ (zero_le m) ∅ (empty_subset Q) le_rfl hp_tight |
| 1295 | have h_inertia (ι : Gal(Ω/ℚ)) (hι : ι ∈ inertiaGroup Gal(Ω/ℚ) B) : κ ∅ ι = 0 := |
| 1296 | apply_eq_zero_of_mem_inertiaGroup h_κ_mem hp_split hB hι |
| 1297 | -- So the Stickelberger sum is `0` modulo `l ^ m`, and `l ^ m ∣ X`. |
| 1298 | have h_sum_zero : ((∑ u : (ZMod (N * l ^ m))ˣ, floorDiff a (ofZMod (N * l ^ m) u) * |
| 1299 | ((u : ZMod (N * l ^ m)).val ^ e * ψ (u : ZMod (N * l ^ m)).val) : O) : |
| 1300 | QuotSpan (l ^ m : O)) = 0 := |
| 1301 | hγ_unit.smul_eq_zero.1 (h_value h_inertia) |
| 1302 | have h_dvd_mul : (l ^ m : O) ∣ (a ^ (e + 1) - 1) * X := by |
| 1303 | obtain ⟨c, h_eq⟩ := sum_floorDiff_dvd h_bound hc he_ne_zero m ha hla |
| 1304 | simpa only [h_sum_zero, zero_mul, eq_zero_iff_dvd] using h_eq |
| 1305 | have h_dvd : (l ^ m : O) ∣ X := h_pow_succ.dvd_mul_left.1 h_dvd_mul |
| 1306 | -- Then `l` is a unit of `O`, and a unit kills no `z ≠ 0`. |
| 1307 | have hl_unit : IsUnit (l : O) := isUnit_natCast_of_pow_factorization_succ_dvd hX h_dvd |
| 1308 | exact hz_ne (hl_unit.smul_eq_zero.1 (by rwa [Nat.cast_smul_eq_nsmul])) |
| 1309 | |
| 1310 | end ComponentBound |
| 1311 | |
| 1312 | end New.OddPart |