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.Int |
| 4 | import Mathlib.FieldTheory.Galois.Profinite |
| 5 | import Mathlib.NumberTheory.DirichletCharacter.Orthogonality |
| 6 | import Mathlib.NumberTheory.NumberField.Cyclotomic.Basic |
| 7 | import Mathlib.RingTheory.Ideal.Int |
| 8 | import TauCeti.NumberTheory.MulChar.Orthogonality |
| 9 | import TauCeti.NumberTheory.RamificationInertia.Tower |
| 10 | import TauCeti.Topology.Algebra.Group.Units |
| 11 | public import Lib.ClassField.Global.ExistenceTheorem |
| 12 | public import Lib.Cyclotomic.Voronoi |
| 13 | public import Lib.GaloisRep.Main.SelmerModules |
| 14 | import Lib.ClassField.GaloisCohomology.TameSelmerCocycles |
| 15 | import Lib.ClassField.Global.AlbertBrauerHasseNoether |
| 16 | import Lib.Cyclotomic.Kolyvagin.ReciprocityComponentBounds |
| 17 | import Lib.General.NumberTheory.SUnitsAndClassNumber |
| 18 | import Lib.PadicComparison.Descent.TestCategory |
| 19 | |
| 20 | /-! |
| 21 | # Detecting unramified cocycles and a uniform bound for a model of the odd part of Ш |
| 22 | |
| 23 | Let E be a number field inside ℚ(μ_N) and let l be a prime. Polynomially many elements of the |
| 24 | absolute Galois group of E detect the locally constant cocycles of a Tate twist that take values in |
| 25 | O / lⁿ and are unramified outside l. For a CM field E inside ℚ(μ_N), this gives one integer X of |
| 26 | explicit size whose valuation bounds the length of a module of odd cocycles at every prime l. |
| 27 | |
| 28 | ## Overview of this theory |
| 29 | |
| 30 | For a CM field `E` inside `ℚ(μ_N)`, and `O` the integers of a finite extension of `ℚ_ℓ` with enough |
| 31 | roots of unity for the characters mod `N`, `New.Selmer.shaOdd` is a module of cocycles of `Gal(Ω/E)` |
| 32 | with values in `O/ℓⁿ(-e)`, modelled on the odd part of `Ш¹(E, O/ℓⁿ(-e))`; no comparison with `Ш¹` is |
| 33 | proved. For `e = 0` it consists of the everywhere unramified homomorphisms. Here `ℓ` is a prime and |
| 34 | `e, n ≥ 0`. |
| 35 | |
| 36 | * `New.exists_length_shaOdd_le`: for each `t ≥ 0` there is an integer `X`, depending on `E`, `N` and |
| 37 | `t`, with `0 < X ≤ 2^(4T²⁷) h_E`. Here `T = N + t + 3` and `h_E` is the class number of `E`. The |
| 38 | length of `New.Selmer.shaOdd` over `O` is at most `v_O(X)` for all `ℓ`, `O`, `n` and all `e < t`. |
| 39 | |
| 40 | No equality of characteristic ideals (the main conjecture of Mazur and Wiles) is proved. |
| 41 | |
| 42 | Proof outline: 1. `Voronoi`: `New.OddPart.exists_isStickelbergerBound` gives, for `e ≥ 1`, an |
| 43 | integer `0 < X ≤ 2^((N+e+3)⁶)` satisfying `New.OddPart.IsStickelbergerBound N e X`. This is a |
| 44 | bounded divisibility of twisted Stickelberger sums. |
| 45 | |
| 46 | 2. `Stickelberger`: `New.OddPart.exists_isJacobiFamily` fixes a prime `p`, a place `B` above `p` and |
| 47 | any `c ∈ ℕ`. It builds a map `J` from `ℚ/ℤ` to units, a variant of Jacobi sums. For `p ≡ 1 mod M` |
| 48 | and `Mx = 0`, `J(x)` is a unit at places not above `p`. It has absolute value one in every |
| 49 | complex embedding. Its order at `B` is `New.OddPart.floorDiff c x`. It also satisfies Galois and |
| 50 | product relations. |
| 51 | 3. `Kolyvagin.DerivativeCocycles`: `New.OddPart.exists_isKolyvaginSystem` builds |
| 52 | `cyc^(e+1)ψ`-cocycles `κ_S : G_ℚ → O/ℓⁿ`. Here `cyc` is the `ℓ`-adic cyclotomic character and `ψ` |
| 53 | a Dirichlet character mod `N`. The sets `S` range over subsets of a finite set `P` of primes |
| 54 | `≡ 1 mod cNℓⁿ`, and `p ≡ 1 mod Nℓⁿ∏P`. For `q ∈ P ∖ S` and a place `A` above `q`, the value of |
| 55 | `κ_S` at a Frobenius at `A` is a value of `κ_{S∪{q}}` on inertia at `A`. |
| 56 | 4. `Kolyvagin.ReciprocityComponentBounds`: take `e ≥ 1` and `cycᵉψ` odd. Then `4X²` kills |
| 57 | `New.OddPart.component`, a set of cocycles `G_ℚ → O/ℓ^ν` attached to `cycᵉψ` |
| 58 | (`New.OddPart.nsmul_component_eq_zero`, an analogue of Stickelberger's theorem). If moreover |
| 59 | `ℓ > N + e + 3`, there are `v_ℓ(X) + 1` elements of `G_ℚ` with the following property: a cocycle |
| 60 | in the component vanishing at all of them is zero |
| 61 | (`New.OddPart.exists_detecting_points_component`). |
| 62 | 5. `OddSha`: for `e > 0`, the group is split by characters `ψ`, and step 4 gives an integer killing |
| 63 | `New.Selmer.shaOdd`. A bounded number of suitable elements of `G_E` suffice to test whether a |
| 64 | cocycle is zero. For small `ℓ` this uses ray classes, and for large `ℓ` it uses step 4. Together |
| 65 | these bound the length. For `e = 0`, the class number `h_E` serves. |
| 66 | |
| 67 | ## Main definitions and results |
| 68 | |
| 69 | * `New.OddPart.exists_detecting_points_cocycles`: the detecting set and the bound on its size. |
| 70 | * `New.OddPart.nsmul_shaOdd_eq_zero_of_isStickelbergerBound`: an integer that kills |
| 71 | `New.Selmer.shaOdd` for e ≠ 0, at every prime l. |
| 72 | * `New.OddPart.length_shaOdd_le_of_le_sq`, `New.OddPart.length_shaOdd_le_of_sq_lt`: the bounds on |
| 73 | the length for small and for large primes l. |
| 74 | |
| 75 | Notions from other files: |
| 76 | * `Ω`: the fixed algebraic closure of ℚ; `Gal(Ω/E)` is its group of automorphisms |
| 77 | over `E`, the absolute Galois group of `E`. |
| 78 | * `New.Selmer.tateTwist`: the rank-one representation O(−e), the character cyc^{−e} with values in |
| 79 | O, as 1 × 1 matrices. |
| 80 | * `New.conjGal`: the endomorphism g ↦ c g c of Gal(Ω / E), where c is `New.cmConj`, the complex |
| 81 | conjugation fixed in Gal(Ω / ℚ); a cocycle z is odd if z (c g c) = -z g. |
| 82 | |
| 83 | ## Relation to the literature |
| 84 | |
| 85 | For large `l` a bound of this kind follows from the Iwasawa main conjecture of Mazur and Wiles; only |
| 86 | an upper bound for the length at finite level, by an integer of explicit size, is proved here. One |
| 87 | non-zero integer serves at all primes, 2 included; small primes are handled by a crude count of |
| 88 | generators of the ray class group. Source: B. Mazur, A. Wiles, Class fields of abelian extensions of |
| 89 | Q, Invent. Math. 76 (1984); C. Greither, Ann. Inst. Fourier 42 (1992), Thm 3.2. |
| 90 | -/ |
| 91 | |
| 92 | @[expose] public section |
| 93 | |
| 94 | /-! ## Few Galois elements detecting unramified cocycles -/ |
| 95 | |
| 96 | section DetectingPoints |
| 97 | |
| 98 | open New NumberField IsCyclotomicExtension.Rat Selmer Ideal NeZero Nat Function |
| 99 | IsDedekindDomain.HeightOneSpectrum |
| 100 | |
| 101 | /-- A number field `K` has at most `[K : ℚ]` places above a prime `l`. -/ |
| 102 | lemma New.ncard_placesDividing_le_finrank (K : Type) [Field K] [EmbeddedNumberField K] (l : ℕ) |
| 103 | [ThePrime l] : (placesDividing K l).ncard ≤ Module.finrank ℚ K := by |
| 104 | have hl : span {(l : ℤ)} ≠ ⊥ := by simp [NeZero.ne l] |
| 105 | grw [← RingOfIntegers.rank, |
| 106 | ← TauCeti.RamificationInertia.ncard_primesOver_le_finrank (span {(l : ℤ)})] |
| 107 | refine (Set.ncard_congr' (.trans (.subtypeEquivRight fun P ↦ ?_) (equivPrimesOver _ hl))).le |
| 108 | simp [placesDividing, map_span] |
| 109 | |
| 110 | /-- For `K = ℚ(μ_M)`, the class number times the index of the ideles that are `M`-th powers above |
| 111 | the prime `l` is at most `2 ^ (M³ + 5 M² + M)`. -/ |
| 112 | lemma New.OddPart.classNumber_mul_index_idelesPowAt_le (M l : ℕ) [NeZero M] [ThePrime l] : |
| 113 | classNumber (cycloField M) * (idelesPowAt (placesDividing (cycloField M) l) M).index ≤ |
| 114 | 2 ^ (M ^ 3 + 5 * M ^ 2 + M) := by |
| 115 | -- With `d = [K : ℚ] ≤ M`, `|disc K| ≤ M ^ d` and `M ≤ 2 ^ M`, the bounds `classNumber_le` and |
| 116 | -- `index_idelesPowAt_ne_zero_and_le` become powers of `2`. |
| 117 | set K : IntermediateField ℚ Ω := cycloField M |
| 118 | have hM_le : M ≤ 2 ^ M := M.lt_two_pow_self.le |
| 119 | have h_one : 1 ≤ 2 ^ M := Nat.one_le_two_pow |
| 120 | have h_deg : Module.finrank ℚ K ≤ M := by grw [finrank M, totient_le] |
| 121 | have h_discr : (discr K).natAbs ≤ (2 ^ M) ^ M := by |
| 122 | grw [natAbs_discr M, Nat.div_le_self, ← finrank M K] |
| 123 | exact (Nat.pow_le_pow_left hM_le _).trans (Nat.pow_le_pow_right h_one h_deg) |
| 124 | have h_class : classNumber K ≤ (2 ^ M * (2 ^ M) ^ M) ^ (M + 1) := by |
| 125 | grw [classNumber_le K, h_discr, pow_le_pow_right₀ one_le_two h_deg] |
| 126 | exact Nat.pow_le_pow_right (by positivity) (Nat.succ_le_succ h_deg) |
| 127 | have h_index : (idelesPowAt (placesDividing K l) M).index ≤ (2 ^ M) ^ (2 * M + M) := by |
| 128 | refine (index_idelesPowAt_ne_zero_and_le M (placesDividing K l)).right.trans |
| 129 | ((Nat.pow_le_pow_left hM_le _).trans (Nat.pow_le_pow_right h_one ?_)) |
| 130 | linarith only [ncard_placesDividing_le_finrank K l, h_deg] |
| 131 | calc classNumber K * (idelesPowAt (placesDividing K l) M).index |
| 132 | ≤ (2 ^ M * (2 ^ M) ^ M) ^ (M + 1) * (2 ^ M) ^ (2 * M + M) := Nat.mul_le_mul h_class h_index |
| 133 | _ = 2 ^ (M ^ 3 + 5 * M ^ 2 + M) := by ring |
| 134 | |
| 135 | /-- The count of detecting points: let `M = N l²` with `2 < M`, `N ≤ y` and `l ≤ y ^ 2`. If |
| 136 | `c ≤ M ^ 3 + 5 M ^ 2 + M`, then `φ(M) + c ≤ y ^ 20`. -/ |
| 137 | private lemma totient_add_le_pow_twenty {N l y c : ℕ} (hNy : N ≤ y) (hly : l ≤ y ^ 2) |
| 138 | (hM_gt : 2 < N * l ^ 2) (hc : c ≤ (N * l ^ 2) ^ 3 + 5 * (N * l ^ 2) ^ 2 + N * l ^ 2) : |
| 139 | φ (N * l ^ 2) + c ≤ y ^ 20 := by |
| 140 | set M : ℕ := N * l ^ 2 with hM |
| 141 | have hMy : M ≤ y ^ 5 := by grw [hM, hNy, hly, ← pow_mul, ← _root_.pow_succ'] |
| 142 | calc φ M + c ≤ M + (M ^ 3 + 5 * M ^ 2 + M) := Nat.add_le_add (totient_le M) hc |
| 143 | -- `M³ + 5 M² + 2 M ≤ M⁴` for `M ≥ 3` |
| 144 | _ ≤ M ^ 4 := by nlinarith [(M ^ 3).zero_le, (M ^ 2).zero_le] |
| 145 | _ ≤ (y ^ 5) ^ 4 := Nat.pow_le_pow_left hMy 4 |
| 146 | _ = y ^ 20 := by ring |
| 147 | |
| 148 | open scoped Matrix.Module in |
| 149 | /-- Few points detect unramified cocycles. Let `E` be a number field whose image in the algebraic |
| 150 | closure `Ω` lies in `ℚ(μ_N)` (`h_sub`), and `l` a prime. There is a finite set `s` in `Gal(Ω/E)` |
| 151 | with (a) `#s ≤ y ^ 20` whenever `N ≤ y` and `l ≤ y ^ 2`; (b) for all `O` (the integers of a finite |
| 152 | extension of `ℚ_l`), `n`, `e`, a cocycle `z` in `selmerModule (tateTwist l E O e) (placesDividing E |
| 153 | l) ∅ (O / lⁿ)` (locally constant, for the character `cyc⁻ᵉ`, unramified off `l`) that vanishes on |
| 154 | `s` is zero. |
| 155 | |
| 156 | This is a cocycle analogue, with the crude bound `y ^ 20`, of the class field theory bound on the |
| 157 | number of generators of the Galois group of the maximal pro-`l` extension unramified outside `l`. -/ |
| 158 | lemma New.OddPart.exists_detecting_points_cocycles {N : ℕ} {E : Type} [NeZero N] [Field E] |
| 159 | [EmbeddedNumberField E] (h_sub : ∀ x : E, algebraMap E Ω x ∈ cycloField N) (l : ℕ) |
| 160 | [ThePrime l] : |
| 161 | ∃ s : Finset Gal(Ω/E), |
| 162 | -- (a) |
| 163 | (∀ y : ℕ, N ≤ y → l ≤ y ^ 2 → s.card ≤ y ^ 20) ∧ |
| 164 | -- (b) |
| 165 | ∀ {O : Type} [CommRing O] [PadicIntegerRing O l] {n e : ℕ}, |
| 166 | ∀ z ∈ selmerModule (tateTwist l E O e) (placesDividing E l) ∅ (QuotSpan (l ^ n : O)), |
| 167 | (∀ g ∈ s, z g = 0) → z = 0 := by |
| 168 | classical |
| 169 | -- Put `M = N l²`, `K = ℚ(μ_M)`. The points are representatives of the cosets of `G_K` in `G_E` |
| 170 | -- and the points of `exists_detecting_points_hom` for `K`. If `M • z = 0`, then `G_K` acts |
| 171 | -- trivially on the values of `z`, so `z` is a homomorphism on `G_K` and |
| 172 | -- `exists_detecting_points_hom` applies. That `M • z = 0` comes from an induction on the power |
| 173 | -- of `l` that kills `z`, as `l ∣ M`. |
| 174 | set M : ℕ := N * l ^ 2 with hM |
| 175 | -- the inclusion `r : G_K → G_E` (`E ⊆ ℚ(μ_N) ⊆ K`) |
| 176 | have h_fix (g : cycloGalGroup M) : cyclotomicCharMod Ω N (g : Gal(Ω/ℚ)) = 1 := |
| 177 | cyclotomicCharMod_eq_one_of_dvd ⟨l ^ 2, hM⟩ g.prop |
| 178 | let r (g : cycloGalGroup M) : Gal(Ω/E) := |
| 179 | { (g : Gal(Ω/ℚ)) with commutes' := fun x ↦ h_sub x ⟨g, h_fix g⟩ } |
| 180 | let K : IntermediateField ℚ Ω := cycloField M |
| 181 | have hM_gt : 2 < M := by nlinarith [pos N, (Fact.out : 1 < l)] |
| 182 | have hK_complex : IsTotallyComplex K := isTotallyComplex K hM_gt |
| 183 | obtain ⟨ι, _, b, m, hm, h_dvd, h_detect⟩ := exists_detecting_points_hom (cycloGalGroup M) |
| 184 | (placesDividing K l) M (index_idelesPowAt_ne_zero_and_le M (placesDividing K l)).left |
| 185 | -- `G_K` is the kernel of `cyclotomicCharMod` on `G_E`, so a section of it gives coset |
| 186 | -- representatives |
| 187 | let f : Gal(Ω/E) →* (ZMod M)ˣ := cyclotomicCharMod Ω M |
| 188 | refine ⟨.image (Sum.elim (invFun f) (r ∘ b)) .univ, |
| 189 | fun y hNy hly ↦ Finset.card_image_le.trans ?_, ?_⟩ |
| 190 | · -- There are at most `φ(M)` cosets, and few points of `exists_detecting_points_hom`. |
| 191 | have h_card : Fintype.card ι ≤ M ^ 3 + 5 * M ^ 2 + M := by |
| 192 | apply (Nat.pow_le_pow_iff_right one_lt_two).mp |
| 193 | calc 2 ^ Fintype.card ι ≤ ∏ i, m i := |
| 194 | Finset.pow_card_le_prod Finset.univ m 2 fun i _ ↦ hm i |
| 195 | _ ≤ classNumber K * (idelesPowAt (placesDividing K l) M).index := |
| 196 | Nat.le_of_dvd (Nat.mul_pos (classNumber_pos _) |
| 197 | (index_idelesPowAt_ne_zero_and_le M (placesDividing K l)).left.bot_lt) h_dvd |
| 198 | _ ≤ 2 ^ (M ^ 3 + 5 * M ^ 2 + M) := OddPart.classNumber_mul_index_idelesPowAt_le M l |
| 199 | calc (Finset.univ : Finset ((ZMod M)ˣ ⊕ ι)).card = φ M + Fintype.card ι := by simp |
| 200 | _ ≤ y ^ 20 := totient_add_le_pow_twenty hNy hly hM_gt h_card |
| 201 | intro O _ _ n e z hz h_zero |
| 202 | obtain ⟨k, hk⟩ : ∃ k : ℕ, l ^ k • z = 0 := |
| 203 | ⟨n, funext₂ fun g i ↦ nsmul_quot_eq_zero dvd_rfl (z g i)⟩ |
| 204 | induction k generalizing z with |
| 205 | | zero => simpa using hk |
| 206 | | succ k ih => |
| 207 | -- `M • z` is killed by `l ^ k` and vanishes at the points, so it is `0` |
| 208 | have h_eq : l ^ k * M = N * l * l ^ (k + 1) := by ring |
| 209 | have h_kill : l ^ k • M • z = 0 := by rw [smul_smul, h_eq, mul_smul, hk, smul_zero] |
| 210 | have hMz : M • z = 0 := ih _ (nsmul_mem hz M) (fun g hg ↦ by simp [h_zero g hg]) h_kill |
| 211 | obtain ⟨h_coc, h_unr, -, h_lc⟩ := mem_selmerModule_iff.mp hz |
| 212 | -- on `G_K` the twist acts trivially on elements killed by `M` |
| 213 | have h_add (x : cycloGalGroup M) (g : Gal(Ω/E)) : z (r x * g) = z (r x) + z g := by |
| 214 | rw [h_coc] |
| 215 | have h_fix := (OddPart.cyclotomicPowDirichlet_smul_eq_self (O := O) (e := e) (ψ := 1) |
| 216 | (cyclotomicCharMod_eq_one_of_dvd (one_mul M).dvd x⁻¹.prop) (congrFun hMz g)).left |
| 217 | have h_char : cyclotomicChar Ω l (r x) = cyclotomicChar Ω l (x : Gal(Ω/ℚ)) := rfl |
| 218 | rw [show tateTwist l E O e (r x) • z g = z g by |
| 219 | simpa [cyclotomicPowDirichlet, tateTwist, cyclotomicInv, h_char, |
| 220 | map_inv (cyclotomicChar Ω l), -map_inv] using h_fix] |
| 221 | -- an inertia group of `K` away from `l` lies in an inertia group of `E` away from `l` |
| 222 | have h_unr' (v : FinPlace K) (hv : v ∉ placesDividing K l) (g : cycloGalGroup M) |
| 223 | (hg : g ∈ inertiaGroup (cycloGalGroup M) (placeOver v)) : z (r g) = 0 := by |
| 224 | have hv_over := v.isPlaceOver_placeOver |
| 225 | obtain ⟨w, hw, -⟩ := (hv_over.isPlaceOver_below (K := ℚ)).exists_above (L := E) |
| 226 | have hw_notMem : w ∉ placesDividing E l := fun h_mem ↦ |
| 227 | hv (hv_over.valuation_natCast_lt_one_iff.mp (hw.valuation_natCast_lt_one_iff.mpr h_mem)) |
| 228 | exact h_unr _ ⟨w, hw_notMem, _, hw, hg⟩ |
| 229 | -- so `z` vanishes on `G_K`, by `exists_detecting_points_hom` |
| 230 | have h_hom : IsUnramifiedTorsionHom (placesDividing K l) M (z ∘ r) := |
| 231 | { isLocallyConstant := h_lc.comp_continuous (continuous_of_equivariant_emb 1 fun _ _ ↦ rfl) |
| 232 | map_mul := fun x g ↦ h_add x (r g) |
| 233 | nsmul_eq_zero := fun g ↦ congrFun hMz (r g) |
| 234 | unramified := h_unr' } |
| 235 | have h_res : z ∘ r = 0 := (h_detect h_hom).right fun i ↦ h_zero _ (by simp) |
| 236 | -- write `g = x * c` with `c` the representative of its coset and `x ∈ G_K` |
| 237 | ext1 g |
| 238 | let c : Gal(Ω/E) := invFun f (f g) |
| 239 | have h_fc : f g = f c := by simp [c, invFun_eq] |
| 240 | let x : cycloGalGroup M := ⟨(g / c).restrictScalars ℚ, f.div_mem_ker_iff.mpr h_fc⟩ |
| 241 | have hz_x : z (r x) = 0 := congrFun h_res x |
| 242 | have hz_c : z c = 0 := h_zero c (by simp [c]) |
| 243 | calc z g = z (r x * c) := congrArg z (div_mul_cancel g c).symm |
| 244 | _ = z (r x) + z c := h_add x c |
| 245 | _ = 0 := by rw [hz_x, hz_c, add_zero] |
| 246 | |
| 247 | open Matrix.Module in |
| 248 | /-- Few points in the kernel of the cyclotomic character detect. Let `E ⊆ ℚ(μ_N)` be a number |
| 249 | field, `l` a prime, and let `g₀` generate the absolute Galois group of `E` modulo the kernel of the |
| 250 | `l`-adic cyclotomic character. There is a finite set `s` of points such that (a) they lie in that |
| 251 | kernel; (b) their number is at most `y ^ 20` whenever `N ≤ y` and `l ≤ y ^ 2`; (c) a locally |
| 252 | constant cocycle with values in `O/l ^ n` twisted by `tateTwist l E O e`, unramified off `l`, that |
| 253 | vanishes at `g₀` and on `s` is zero. The same points serve for all `O`, `n` and `e`. -/ |
| 254 | lemma New.OddPart.exists_detecting_points_mem_ker {N : ℕ} {E : Type} [NeZero N] [Field E] |
| 255 | [EmbeddedNumberField E] (hE : ∀ x : E, algebraMap E Ω x ∈ cycloField N) (l : ℕ) [ThePrime l] |
| 256 | {g₀ : Gal(Ω/E)} (hg₀ : (cyclotomicChar Ω l).IsGeneratorModKer g₀) : |
| 257 | ∃ s : Finset Gal(Ω/E), |
| 258 | (∀ g ∈ s, cyclotomicChar Ω l g = 1) ∧ |
| 259 | (∀ y : ℕ, N ≤ y → l ≤ y ^ 2 → s.card ≤ y ^ 20) ∧ |
| 260 | ∀ {O : Type} [CommRing O] [PadicIntegerRing O l] {n e : ℕ}, |
| 261 | ∀ z ∈ selmerModule (tateTwist l E O e) (placesDividing E l) ∅ (QuotSpan (l ^ n : O)), |
| 262 | z g₀ = 0 → (∀ g ∈ s, z g = 0) → z = 0 := by |
| 263 | classical |
| 264 | -- Write each point `p` of `exists_detecting_points_cocycles` as `h p * q p`, with `h p` in the |
| 265 | -- kernel and `q p` in the closure of the powers of `g₀`, and keep the `h p`. |
| 266 | obtain ⟨s, h_card, h_detect⟩ := exists_detecting_points_cocycles hE l |
| 267 | choose h hh q hq hp using hg₀.exists_mul_eq |
| 268 | (isClosed_singleton.preimage (continuous_cyclotomicChar l)) |
| 269 | refine ⟨s.image h, by simpa using fun p _ ↦ hh p, |
| 270 | fun y hNy hly ↦ Finset.card_image_le.trans (h_card y hNy hly), ?_⟩ |
| 271 | intro O _ _ n e z hz hz₀ h_zero |
| 272 | obtain ⟨h_coc, -, -, h_lc⟩ := mem_selmerModule_iff.1 hz |
| 273 | -- The zeros of `z` form a closed subgroup that contains `g₀`, hence the `q p`, and the `h p`. |
| 274 | let Z : Subgroup Gal(Ω/E) := cocycleKer (tateTwist l E O e) h_coc |
| 275 | have h_le : (Subgroup.zpowers g₀).topologicalClosure ≤ Z := |
| 276 | Subgroup.topologicalClosure_minimal _ (Subgroup.zpowers_le.2 hz₀) (h_lc.isClosed_fiber 0) |
| 277 | refine h_detect z hz fun p hp_mem ↦ ?_ |
| 278 | rw [← hp p] |
| 279 | exact Z.mul_mem (h_zero _ (Finset.mem_image_of_mem h hp_mem)) (h_le (hq p)) |
| 280 | |
| 281 | end DetectingPoints |
| 282 | |
| 283 | /-! |
| 284 | ## A uniform explicit bound on a model of the odd part of Ш for CM subfields of ℚ(μ_N) |
| 285 | |
| 286 | For e = 0 the class number serves. For e > 0 a cocycle is split into components over ℚ by characters |
| 287 | mod N. The odd components are killed by an integer of Stickelberger type, and few points detect the |
| 288 | cocycle. |
| 289 | |
| 290 | Conventions: `New.Selmer.shaOdd` is the module of locally constant cocycles that are unramified |
| 291 | outside l, vanish on `New.Selmer.shaLocalSet` above l and, for e ≠ 0, are odd. |
| 292 | `New.cyclotomicPowDirichlet l e ψ` is the character cyc ^ e · ψ of Gal(Ω / ℚ). |
| 293 | `New.OddPart.component` is the module of cocycles for its inverse with the matching local |
| 294 | conditions. |
| 295 | -/ |
| 296 | |
| 297 | section OddShaBound |
| 298 | |
| 299 | open Module IsDiscreteValuationRing New OddPart Selmer Fintype Finset DirichletCharacter NeZero Nat |
| 300 | MulAut NumberField Pointwise Function |
| 301 | |
| 302 | /-- The case `e = 0`. Let `E` be a CM number field, `l` a prime, `O` a ring with |
| 303 | `PadicIntegerRing O l` (the integer ring of a finite extension of `ℚ_l`) and `n : ℕ`. The module |
| 304 | `shaOdd l E O 0 n` consists of the continuous homomorphisms `Gal(Ω/E) → O / lⁿ` that are unramified |
| 305 | at every place. Its length over `O` is at most `addVal O (classNumber E)`, the valuation in `O` of |
| 306 | the class number of `E`. -/ |
| 307 | lemma New.length_shaOdd_zero_le_addVal_classNumber (E : Type) [Field E] [NumberField E] |
| 308 | [IsCMField E] |
| 309 | [Algebra E Ω] (l : ℕ) [ThePrime l] (O : Type) [CommRing O] [PadicIntegerRing O l] (n : ℕ) : |
| 310 | length O (shaOdd l E O 0 n) ≤ addVal O (classNumber E) := by |
| 311 | -- `exists_detecting_points_hom` with `S = ∅` gives points `p i` and integers `m i` whose product |
| 312 | -- divides the class number, such that every unramified homomorphism `z` has `m i • z (p i) = 0` |
| 313 | -- and is zero if it vanishes at all `p i`. |
| 314 | obtain ⟨ι, _, p, m, -, h_dvd, h_detect⟩ := |
| 315 | exists_detecting_points_hom Gal(Ω/E) (∅ : Set (FinPlace E)) 0 (by simp [iInf_of_isEmpty]) |
| 316 | have h_pts (z : Gal(Ω/E) → Unit → QuotSpan (l ^ n : O)) (hz : z ∈ shaOdd l E O 0 n) : |
| 317 | (∀ i, m i • z (p i) = 0) ∧ ((∀ i, z (p i) = 0) → z = 0) := by |
| 318 | obtain ⟨h_above, -, h_selmer⟩ := mem_shaOdd.mp hz |
| 319 | obtain ⟨h_cocycle, h_unram, -, h_loc⟩ := mem_selmerModule_iff.mp h_selmer |
| 320 | refine h_detect |
| 321 | { isLocallyConstant := h_loc |
| 322 | map_mul := by simpa [tateTwist] using h_cocycle |
| 323 | nsmul_eq_zero := fun g ↦ zero_smul ℕ (z g) |
| 324 | unramified := fun v _ g hg ↦ ?_ } |
| 325 | -- `z` kills inertia above `l` by the local condition, and elsewhere as it is unramified. |
| 326 | by_cases hl : v ∈ placesDividing E l |
| 327 | · exact h_above g ⟨_, v.isPlaceOver_placeOver.valuation_natCast_lt_one_iff.mpr hl, hg⟩ |
| 328 | · exact h_unram g ⟨v, hl, _, v.isPlaceOver_placeOver, hg⟩ |
| 329 | calc length O (shaOdd l E O 0 n) ≤ addVal O (∏ i, m i : ℕ) := |
| 330 | length_le_of_detecting_points (LinearEquiv.funUnique Unit O _) |
| 331 | (fun z hz ↦ (h_pts z hz).left) fun z hz ↦ (h_pts z hz).right |
| 332 | _ ≤ addVal O (classNumber E) := |
| 333 | addVal_le_iff_dvd.mpr (Nat.cast_dvd_cast (by simpa [iInf_of_isEmpty] using h_dvd)) |
| 334 | |
| 335 | /-- The last step of splitting by characters. Let `x` be odd: `x (conjGal g) = -x g`, where |
| 336 | `conjGal g = c g c` for the complex conjugation `c`. Let finitely many maps `z ψ` satisfy |
| 337 | `∑ ψ, z ψ (ι h) = φ(N) x (conjGal h) - φ(N) x h` for all `h`, `z ψ (ι (conjGal g)) = z ψ (ι g)`, and |
| 338 | `conjGal (conjGal g) = g`. Then `4 φ(N)` kills `x`. -/ |
| 339 | private lemma four_mul_totient_smul_eq_zero_of_sum_eq {E : Type} [Field E] [NumberField E] |
| 340 | [IsCMField E] [Algebra E Ω] {N l n : ℕ} {O : Type} [CommRing O] |
| 341 | {x : Gal(Ω/E) → Unit → QuotSpan (l ^ n : O)} (hx_odd : ∀ g : Gal(Ω/E), x (conjGal g) = -x g) |
| 342 | {ι : Gal(Ω/E) → Gal(Ω/ℚ)} {Ψ : Type} [Fintype Ψ] {z : Ψ → Gal(Ω/ℚ) → QuotSpan (l ^ n : O)} |
| 343 | (h_sum : ∀ h : Gal(Ω/E), ∑ ψ : Ψ, z ψ (ι h) = |
| 344 | ((φ N : ℕ) : QuotSpan (l ^ n : O)) * x (conjGal h) () - |
| 345 | ((φ N : ℕ) : QuotSpan (l ^ n : O)) * x h ()) |
| 346 | (h_even : ∀ (ψ : Ψ) (g : Gal(Ω/E)), z ψ (ι (conjGal g)) = z ψ (ι g)) |
| 347 | (h_conj_conj : ∀ g : Gal(Ω/E), conjGal (conjGal g) = g) : |
| 348 | (4 * φ N) • x = 0 := by |
| 349 | ext g u |
| 350 | -- Compare `g` with `c = conjGal g`: `φ(N) (x c - x g) = φ(N) (x g - x c)`, and `x c = -x g`. |
| 351 | have hx_sum : x g () + x (conjGal g) () = 0 := by rw [hx_odd g, Pi.neg_apply, add_neg_cancel] |
| 352 | have h_even_sum : ∑ ψ : Ψ, z ψ (ι (conjGal g)) = ∑ ψ : Ψ, z ψ (ι g) := |
| 353 | Fintype.sum_congr _ _ fun ψ ↦ h_even ψ g |
| 354 | rw [h_sum, h_sum, h_conj_conj] at h_even_sum |
| 355 | change (4 * φ N) • x g () = 0 |
| 356 | simp only [nsmul_eq_mul, Nat.cast_mul, Nat.cast_ofNat] |
| 357 | linear_combination h_even_sum + 2 * ((φ N : ℕ) : QuotSpan (l ^ n : O)) * hx_sum |
| 358 | |
| 359 | /-- Let `x` on `Gal(Ω/E)` vanish on the inertia groups at places of `E` prime to `l` and on |
| 360 | `shaLocalSet l E e`, where `e ≠ 0`. Let `g` lie in an inertia group at a place prime to `l`, or in |
| 361 | `shaLocalSet l ℚ 1` (a decomposition group above `l`, with trivial cyclotomic character). Then `x` |
| 362 | vanishes at each `w` whose image in `Gal(Ω/ℚ)` is the conjugate `u g u⁻¹`. -/ |
| 363 | private lemma apply_eq_zero_of_toAlgAut_eq_conj {E : Type} [Field E] [NumberField E] |
| 364 | [Algebra E Ω] {l e : ℕ} [ThePrime l] (he : e ≠ 0) {V : Type} [Zero V] {x : Gal(Ω/E) → V} |
| 365 | (h_above : ∀ g ∈ shaLocalSet l E e, x g = 0) |
| 366 | (h_unram : ∀ g ∈ inertiaAbove (placesDividing E l)ᶜ, x g = 0) {g : Gal(Ω/ℚ)} |
| 367 | (h_local : g ∈ inertiaAbove (placesDividing ℚ l)ᶜ ∪ shaLocalSet l ℚ 1) (u : Gal(Ω/ℚ)) |
| 368 | {w : Gal(Ω/E)} (hw : MulSemiringAction.toAlgAut Gal(Ω/E) ℚ Ω w = conj u g) : |
| 369 | x w = 0 := by |
| 370 | obtain ⟨v₀, hv₀, A, hA, h_ine⟩ | ⟨A, h_val, h_dec, h_one⟩ := h_local |
| 371 | -- Inertia away from `l`: `x` is unramified at the place `v` of `E` under `u • A`. |
| 372 | · obtain ⟨v, hv, h_under⟩ : ∃ v : FinPlace E, IsPlaceOver (u • A) v ∧ v.below ℚ = v₀ := |
| 373 | (hA.smul u).exists_above |
| 374 | have hv_compl : v ∈ (placesDividing E l)ᶜ := by simpa [← h_under, placesDividing] using hv₀ |
| 375 | -- The image `conj u g` of `w` lies in the inertia group at `u • A`. |
| 376 | have h_mem : MulSemiringAction.toAlgAut Gal(Ω/E) ℚ Ω w ∈ inertiaGroup Gal(Ω/ℚ) (u • A) := by |
| 377 | rw [hw] |
| 378 | exact h_ine.conj u |
| 379 | exact h_unram _ ⟨v, hv_compl, _, hv, h_mem⟩ |
| 380 | -- Decomposition group above `l` with trivial cyclotomic character: `w` lies in `shaLocalSet`. |
| 381 | · have h_cyc_one : cyclotomicChar Ω l w = 1 := by |
| 382 | change cyclotomicChar Ω l (MulSemiringAction.toAlgAut Gal(Ω/E) ℚ Ω w) = 1 |
| 383 | simp [hw, h_one] |
| 384 | have h_val_lt : (u • A).valuation l < 1 := by |
| 385 | simpa using (smul_apply_smul_lt_one_iff u).mpr h_val |
| 386 | have h_mem : MulSemiringAction.toAlgAut Gal(Ω/E) ℚ Ω w ∈ decompGroup Gal(Ω/ℚ) (u • A) := by |
| 387 | rw [hw] |
| 388 | exact conj_mem_decompGroup_smul h_dec |
| 389 | refine h_above w ⟨u • A, h_val_lt, ?_⟩ |
| 390 | rw [ite_eq_right he] |
| 391 | exact ⟨h_mem, h_cyc_one⟩ |
| 392 | |
| 393 | attribute [local simp] mul_assoc tateTwist in |
| 394 | /-- Splitting by characters. Let `E ⊆ ℚ(μ_N)` be a CM field, `l` a prime, `e ≠ 0`, and `O` with |
| 395 | enough roots of unity for the characters mod `N`. `shaOdd l E O e n` is the module of odd locally |
| 396 | constant cocycles `Gal(Ω/E) → O/lⁿ(-e)` that are unramified outside `l` and vanish on |
| 397 | `shaLocalSet l E e`. `component l e ψ n` consists of cocycles on `Gal(Ω/ℚ)` for `(cyc^e ψ)⁻¹` with |
| 398 | local conditions: locally constant, and vanishing at `cmConj` and at elements fixing `μ_N` that lie |
| 399 | in inertia off `l` or in `shaLocalSet l ℚ 1`. There are `σ : (ZMod N)ˣ → Gal(Ω/ℚ)` and |
| 400 | `b : Gal(Ω/ℚ) → Gal(Ω/ℚ) → Gal(Ω/E)`, independent of the cocycle, with the following property. For |
| 401 | `x ∈ shaOdd l E O e n`, each `z ψ g = ∑ t, (cyc^e ψ)(σ t) • x (b (σ t) g)` lies in |
| 402 | `component l e ψ n`, and `4 * φ N` kills `x` once the odd `z ψ` |
| 403 | (`cyclotomicPowDirichlet l e ψ cmConj = -1`) vanish. -/ |
| 404 | lemma New.exists_character_components {N : ℕ} [NeZero N] {E : Type} [Field E] [NumberField E] |
| 405 | [IsCMField E] [Algebra E Ω] (h_sub : ∀ x : E, algebraMap E Ω x ∈ cycloField N) |
| 406 | (l : ℕ) [ThePrime l] (O : Type) [CommRing O] [PadicIntegerRing O l] |
| 407 | [HasEnoughRootsOfUnity O (Monoid.exponent (ZMod N)ˣ)] {e : ℕ} (he : e ≠ 0) (n : ℕ) : |
| 408 | ∃ (σ : (ZMod N)ˣ → Gal(Ω/ℚ)) (b : Gal(Ω/ℚ) → Gal(Ω/ℚ) → Gal(Ω/E)), |
| 409 | ∀ x ∈ shaOdd l E O e n, |
| 410 | let z (ψ : DirichletCharacter O N) : Gal(Ω/ℚ) → QuotSpan (l ^ n : O) := |
| 411 | ∑ t : (ZMod N)ˣ, fun g : Gal(Ω/ℚ) ↦ |
| 412 | (cyclotomicPowDirichlet l e ψ (σ t)).val • x (b (σ t) g) () |
| 413 | (∀ ψ : DirichletCharacter O N, z ψ ∈ component l e ψ n) ∧ |
| 414 | ((∀ ψ : DirichletCharacter O N, cyclotomicPowDirichlet l e ψ cmConj = -1 → z ψ = 0) → |
| 415 | (4 * φ N) • x = 0) := by |
| 416 | let ι : Gal(Ω/E) →* Gal(Ω/ℚ) := MulSemiringAction.toAlgAut Gal(Ω/E) ℚ Ω |
| 417 | have hι : Topology.IsClosedEmbedding ι := |
| 418 | isClosedEmbedding_of_smul_eq_smul (K := ℚ) (L := E) ι fun _ _ ↦ rfl |
| 419 | have h_lift : ∀ g ∈ cycloGalGroup N, ∃ w : Gal(Ω/E), ι w = g := |
| 420 | fun g hg ↦ ⟨⟨g, g.map_mul', g.map_add', fun x ↦ h_sub x ⟨g, hg⟩⟩, rfl⟩ |
| 421 | have h_conj (g : Gal(Ω/E)) : ι (conjGal g) = cmConj * ι g * cmConj := rfl |
| 422 | have h_cyc : cyclotomicChar Ω l = (cyclotomicChar Ω l).comp ι := rfl |
| 423 | -- Lifts `σ t` of `t` with `σ 1 = 1`, and lifts `b u g` to `Gal(Ω/E)` of the commutator |
| 424 | -- `cmConj * g * cmConj⁻¹ * g⁻¹` conjugated by `u`. |
| 425 | have h_surj : ∀ t : (ZMod N)ˣ, ∃ g : Gal(Ω/ℚ), cyclotomicCharMod Ω N g = t := |
| 426 | cyclotomicCharMod_surjective N |
| 427 | choose S hS using h_surj |
| 428 | let σ (t : (ZMod N)ˣ) : Gal(Ω/ℚ) := S t / S 1 |
| 429 | have h_lift_comm (u g : Gal(Ω/ℚ)) : ∃ w : Gal(Ω/E), ι w = conj u (conj cmConj g * g⁻¹) := by |
| 430 | have h_mem : conj u (conj cmConj g * g⁻¹) ∈ cycloGalGroup N := by |
| 431 | simp [mul_left_comm, mul_assoc] |
| 432 | exact h_lift _ h_mem |
| 433 | choose b hb using h_lift_comm |
| 434 | refine ⟨σ, b, fun x hx ↦ ?_⟩ |
| 435 | obtain ⟨h_above, h_minus, h_selmer⟩ := mem_shaOdd.mp hx |
| 436 | obtain ⟨h_cocycle, h_unram, -, h_loc⟩ := mem_selmerModule_iff.mp h_selmer |
| 437 | -- The cyclotomic character is trivial at `b u g`, so the cocycle `x` is additive there: if |
| 438 | -- `b u g * k = w` (checked in `Gal(Ω/ℚ)`, by default by `simp`), then `x (b u g) = x w - x k`. |
| 439 | have h_add (u g : Gal(Ω/ℚ)) (k w : Gal(Ω/E)) (hw : ι (b u g * k) = ι w := by simp [*]) : |
| 440 | x (b u g) = x w - x k := by |
| 441 | simp [h_cocycle, h_cyc, hb, ← hι.injective hw, tateTwist, cyclotomicInv] |
| 442 | let T (ψ : DirichletCharacter O N) (u g : Gal(Ω/ℚ)) : QuotSpan ((l : O) ^ n) := |
| 443 | (cyclotomicPowDirichlet l e ψ u).val • x (b u g) () |
| 444 | let z (ψ : DirichletCharacter O N) : Gal(Ω/ℚ) → QuotSpan (l ^ n : O) := ∑ t, T ψ (σ t) |
| 445 | have hz (ψ : DirichletCharacter O N) : z ψ ∈ component l e ψ n := by |
| 446 | refine ⟨sum_mem fun _ _ ↦ .comp (h_loc.comp_continuous ?_) fun y ↦ _ • y (), |
| 447 | fun g k ↦ ?_, ?_⟩ |
| 448 | · simp only [hι.continuous_iff, comp_def, hb, conj_apply, mul_assoc] |
| 449 | fun_prop |
| 450 | -- The cocycle rule: `T ψ u k` depends only on the coset of `u` modulo `cycloGalGroup N`, and |
| 451 | -- right multiplication by `g` permutes the cosets. |
| 452 | · have h_coset {v : Gal(Ω/ℚ)} (w : Gal(Ω/ℚ)) |
| 453 | (hw : w / v ∈ cycloGalGroup N) : T ψ w k = T ψ v k := by |
| 454 | obtain ⟨u, rfl⟩ : ∃ a : Gal(Ω/E), ι a * v = w := (h_lift _ hw).imp fun _ ↦ mul_eq_of_eq_div |
| 455 | -- With `T` unfolded; `h_add` relates `x (b (ι u * v) k)` to `x (b v k)`. |
| 456 | change (cyclotomicPowDirichlet l e ψ (ι u * v)).val • x (b (ι u * v) k) () = |
| 457 | (cyclotomicPowDirichlet l e ψ v).val • x (b v k) () |
| 458 | simp_all [cyclotomicPowDirichlet, h_add v k u⁻¹ (u⁻¹ * b (ι u * v) k), mul_assoc, tateTwist, |
| 459 | cyclotomicInv, smul_smul, mul_pow, mul_comm, mul_left_comm] |
| 460 | -- Right multiplication by `g` permutes the cosets of the `σ t`. |
| 461 | have h_shift : ∑ t, T ψ (σ t * g) k = ∑ t, T ψ (σ t) k := by |
| 462 | refine sum_equiv (.mulRight (cyclotomicCharMod Ω N g)) _ _ fun t ↦ h_coset (σ t * g) ?_ |
| 463 | simp [σ, hS] |
| 464 | simp [z, T, mul_left_comm, ← h_shift, fun u ↦ h_add u g (b (u * g) k) (b u (g * k)), |
| 465 | smul_sub, smul_sum, smul_smul] |
| 466 | rintro g (rfl | ⟨hg, h_local⟩) |
| 467 | -- For `g = cmConj` the commutator is trivial. |
| 468 | · simp [z, T, h_add _ cmConj 1 1] |
| 469 | -- Otherwise `x` vanishes at the lift `w u` of every conjugate of `g`. |
| 470 | have h_lift_conj (u : Gal(Ω/ℚ)) : ∃ w : Gal(Ω/E), ι w = conj u g := h_lift _ (by simpa) |
| 471 | choose w hw using h_lift_conj |
| 472 | have h_zero (u : Gal(Ω/ℚ)) : x (w u) = 0 := |
| 473 | apply_eq_zero_of_toAlgAut_eq_conj he h_above h_unram h_local u (hw u) |
| 474 | -- `b u g * w u = w (u * cmConj)`, so `x (b u g) = 0` for all `u`. |
| 475 | simp [z, T, h_zero, fun t ↦ h_add t g (w t) (w (t * cmConj))] |
| 476 | refine ⟨hz, fun h_odd : ∀ ψ, cyclotomicPowDirichlet l e ψ cmConj = -1 → z ψ = 0 ↦ ?_⟩ |
| 477 | have hc_inv : cmConj⁻¹ = cmConj := inv_eq_of_mul_eq_one_left isComplexConj_cmConj.mul_self |
| 478 | -- The odd components vanish and the even ones are invariant under conjugation by `cmConj`. |
| 479 | have h_even (ψ : DirichletCharacter O N) (g : Gal(Ω/E)) : z ψ (ι (conjGal g)) = z ψ (ι g) := by |
| 480 | obtain ⟨-, h_mul, h_vanish⟩ := hz ψ |
| 481 | -- `cmConj` is an involution, so the value of the character there is a sign. |
| 482 | have h_sign : cyclotomicPowDirichlet l e ψ cmConj = 1 ∨ |
| 483 | cyclotomicPowDirichlet l e ψ cmConj = -1 := |
| 484 | (Units.inv_eq_self_iff _).mp (by grind) |
| 485 | rcases h_sign with h_even_sign | h_odd_sign |
| 486 | · simp [h_conj, h_mul, h_vanish, h_even_sign] |
| 487 | · simp [h_odd ψ h_odd_sign] |
| 488 | -- By orthogonality of characters only `t = 1` survives in `∑ ψ, z ψ (ι h)`. |
| 489 | have h_sum (h : Gal(Ω/E)) : ∑ ψ : DirichletCharacter O N, z ψ (ι h) = |
| 490 | ((φ N : ℕ) : QuotSpan (l ^ n : O)) * x (conjGal h) () - |
| 491 | ((φ N : ℕ) : QuotSpan (l ^ n : O)) * x h () := by |
| 492 | simp [cast_smul_eq_nsmul, z, T, σ, hS, cyclotomicPowDirichlet, ← sum_smul, |
| 493 | ← mul_sum, sum_comm, fun g ↦ h_add 1 (ι g) g (conjGal g), smul_sub] |
| 494 | have h_conj_conj (g : Gal(Ω/E)) : conjGal (conjGal g) = g := hι.injective (by simp) |
| 495 | exact four_mul_totient_smul_eq_zero_of_sum_eq (h_minus he) h_sum h_even h_conj_conj |
| 496 | |
| 497 | /-- The size of the integer in `New.exists_length_shaOdd_le`. Let `y = N + t + 3` and let |
| 498 | `X e ≤ 2 ^ (N + e + 3) ^ 6` for `e ≠ 0`. Then the product over `0 < e < t` of `4 φ(N) · 4 (X e)²`, |
| 499 | raised to the power `y ^ 20`, is at most `2 ^ (4 y ^ 27)`: each factor is at most `2 ^ (4 y ^ 6)`, |
| 500 | and there are at most `y` factors. -/ |
| 501 | private lemma prod_Ioo_pow_le_two_pow_of_le_two_pow {N t y : ℕ} {X : ℕ → ℕ} (hy : N + t + 3 = y) |
| 502 | (hX_le : ∀ e : ℕ, e ≠ 0 → X e ≤ 2 ^ (N + e + 3) ^ 6) : |
| 503 | (∏ e ∈ Ioo 0 t, 4 * φ N * (4 * X e * X e)) ^ y ^ 20 ≤ 2 ^ (4 * y ^ 27) := by |
| 504 | have hY (e : ℕ) (he : e ∈ Ioo 0 t) : 4 * φ N * (4 * X e * X e) ≤ 2 ^ (4 * y ^ 6) := by |
| 505 | obtain ⟨he_pos, he_lt⟩ : 0 < e ∧ e < t := mem_Ioo.mp he |
| 506 | have hXe : X e ≤ 2 ^ y ^ 6 := (hX_le e he_pos.ne').trans |
| 507 | (Nat.pow_le_pow_right two_pos (Nat.pow_le_pow_left (by lia) 6)) |
| 508 | have h16 : 4 * φ N * 4 ≤ 2 ^ (2 * y ^ 6) := by grind [Nat.lt_two_pow_self, Nat.totient_le] |
| 509 | calc 4 * φ N * (4 * X e * X e) = 4 * φ N * 4 * X e * X e := by ring |
| 510 | _ ≤ 2 ^ (2 * y ^ 6) * 2 ^ y ^ 6 * 2 ^ y ^ 6 := by gcongr |
| 511 | _ = 2 ^ (4 * y ^ 6) := by ring |
| 512 | calc |
| 513 | (∏ e ∈ Ioo 0 t, 4 * φ N * (4 * X e * X e)) ^ y ^ 20 ≤ ((2 ^ (4 * y ^ 6)) ^ y) ^ y ^ 20 := by |
| 514 | grw [prod_le_pow_card (Ioo 0 t) _ (2 ^ (4 * y ^ 6)) hY, |
| 515 | pow_le_pow_right₀ Nat.one_le_two_pow ((Nat.card_Ioo 0 t).trans_le (by lia : t - 0 - 1 ≤ y))] |
| 516 | _ = 2 ^ (4 * y ^ 27) := by ring |
| 517 | |
| 518 | /-- A Stickelberger bound kills `shaOdd`. Let `E ⊆ ℚ(μ_N)` be a CM field, `l` a prime, `O` with |
| 519 | `PadicIntegerRing O l` having enough roots of unity for the characters mod `N`, and `e ≠ 0`. Let `X` |
| 520 | satisfy `IsStickelbergerBound N e X`, a divisibility for each prime together with a congruence for |
| 521 | the Stickelberger sums. Then `4 φ(N) · 4 X²` kills every `z ∈ shaOdd l E O e n`, that is, every |
| 522 | continuous cocycle `Gal(Ω/E) → O / lⁿ(-e)` unramified outside `l`, vanishing on `shaLocalSet l E e` |
| 523 | and odd under `conjGal`: `4 X²` kills the odd character components of a cocycle, and `4 φ(N)` kills |
| 524 | a cocycle whose odd components vanish. -/ |
| 525 | lemma New.OddPart.nsmul_shaOdd_eq_zero_of_isStickelbergerBound {N : ℕ} [NeZero N] {E : Type} |
| 526 | [Field E] [NumberField E] [IsCMField E] [Algebra E Ω] |
| 527 | (h_sub : ∀ x : E, algebraMap E Ω x ∈ cycloField N) (l : ℕ) [ThePrime l] (O : Type) |
| 528 | [CommRing O] [PadicIntegerRing O l] [HasEnoughRootsOfUnity O (Monoid.exponent (ZMod N)ˣ)] |
| 529 | {e : ℕ} (he : e ≠ 0) (n : ℕ) {X : ℕ} (h_stick : IsStickelbergerBound N e X) : |
| 530 | ∀ z ∈ shaOdd l E O e n, (4 * φ N * (4 * X * X)) • z = 0 := by |
| 531 | obtain ⟨σ, b, h_split⟩ := exists_character_components h_sub l O he n |
| 532 | intro z hz |
| 533 | obtain ⟨hz_comp, -⟩ := h_split z hz |
| 534 | -- `(4 φ(N) · 4 X²) • z = 4 φ(N) • (4 X² • z)`, and the odd components of `4 X² • z` vanish. |
| 535 | obtain ⟨-, h_kill_of_odd⟩ := h_split _ (nsmul_mem hz (4 * X * X)) |
| 536 | refine (mul_smul (4 * φ N) (4 * X * X) z).trans (h_kill_of_odd fun ψ hψ ↦ ?_) |
| 537 | -- The component of `4 X² • z` is `4 X²` times the component of `z`, killed by Stickelberger. |
| 538 | simpa [funext_iff, smul_sum] using nsmul_component_eq_zero h_stick hψ he (hz_comp ψ) |
| 539 | |
| 540 | /-- An annihilator and detecting points bound the length. Let `E` be a CM field and `l` a prime. If |
| 541 | a natural number `m` kills `New.Selmer.shaOdd` with values in `O / lⁿ(-e)`, and only `0` vanishes |
| 542 | at all of the at most `k` points `p i`, then the length is at most the valuation of `m ^ k`: |
| 543 | evaluation at the points embeds the module in copies of the `m`-torsion of `O / lⁿ`. -/ |
| 544 | lemma New.OddPart.length_shaOdd_le_addVal_pow {E : Type} [Field E] [NumberField E] [IsCMField E] |
| 545 | [Algebra E Ω] {l : ℕ} [ThePrime l] {O : Type} [CommRing O] [PadicIntegerRing O l] |
| 546 | {e n m k : ℕ} (h_kill : ∀ z ∈ shaOdd l E O e n, m • z = 0) {ι : Type} [Fintype ι] |
| 547 | (p : ι → Gal(Ω/E)) (h_card : Fintype.card ι ≤ k) |
| 548 | (h_detect : ∀ z ∈ shaOdd l E O e n, (∀ i : ι, z (p i) = 0) → z = 0) : |
| 549 | length O (shaOdd l E O e n) ≤ addVal O (m ^ k : ℕ) := by |
| 550 | calc |
| 551 | length O (shaOdd l E O e n) ≤ addVal O (∏ _i : ι, m : ℕ) := |
| 552 | length_le_of_detecting_points (LinearEquiv.funUnique Unit O (QuotSpan (l ^ n : O))) |
| 553 | (fun z hz i ↦ congrFun (h_kill z hz) (p i)) h_detect |
| 554 | _ ≤ addVal O (m ^ k : ℕ) := |
| 555 | addVal_le_iff_dvd.mpr (cast_dvd_cast (by simpa using pow_dvd_pow m h_card)) |
| 556 | |
| 557 | /-- Small primes. Let `E ⊆ ℚ(μ_N)` be a CM field, `N ≤ y`, and `l` a prime with `l ≤ y ^ 2`. If a |
| 558 | natural number `m` kills `New.Selmer.shaOdd` with values in `O / lⁿ(-e)`, then its length is at |
| 559 | most the valuation of `m ^ y ^ 20`, as `y ^ 20` or fewer points detect the cocycles that are |
| 560 | unramified outside `l`. -/ |
| 561 | lemma New.OddPart.length_shaOdd_le_of_le_sq {N : ℕ} [NeZero N] {E : Type} [Field E] |
| 562 | [NumberField E] [IsCMField E] [Algebra E Ω] (h_sub : ∀ x : E, algebraMap E Ω x ∈ cycloField N) |
| 563 | (l : ℕ) [ThePrime l] (O : Type) [CommRing O] [PadicIntegerRing O l] (e n : ℕ) {y : ℕ} |
| 564 | (hN_le : N ≤ y) (hl_le : l ≤ y ^ 2) {m : ℕ} |
| 565 | (h_kill : ∀ z ∈ shaOdd l E O e n, m • z = 0) : |
| 566 | length O (shaOdd l E O e n) ≤ addVal O (m ^ y ^ 20 : ℕ) := by |
| 567 | obtain ⟨s, h_card, h_detect⟩ := exists_detecting_points_cocycles h_sub l |
| 568 | have h_card_le : Fintype.card s ≤ y ^ 20 := by simpa using h_card y hN_le hl_le |
| 569 | refine length_shaOdd_le_addVal_pow h_kill (fun g : s ↦ (g : Gal(Ω/E))) h_card_le |
| 570 | fun z hz h_van ↦ ?_ |
| 571 | obtain ⟨-, -, h_selmer⟩ := mem_shaOdd.mp hz |
| 572 | exact h_detect z h_selmer fun g hg ↦ h_van ⟨g, hg⟩ |
| 573 | |
| 574 | /-- Let `E ⊆ ℚ(μ_N)` be a CM field, `e ≠ 0`, `N + e + 3 ≤ y`, and `l` a prime with `y ^ 2 < l`; let |
| 575 | `O`, the integers of a finite extension of `ℚ_l`, have enough roots of unity for the characters mod |
| 576 | `N`. If `0 < X ≤ 2 ^ y ^ 6` satisfies `New.OddPart.IsStickelbergerBound N e X` (a divisibility at |
| 577 | each prime and a congruence for Stickelberger sums), then the length of `New.Selmer.shaOdd` (odd |
| 578 | continuous cocycles `Gal(Ω/E) → O / lⁿ(-e)` unramified outside `l`, vanishing on |
| 579 | `shaLocalSet l E e`) is at most the valuation of `(4 φ(N) · 4 X²) ^ y ^ 20`. |
| 580 | |
| 581 | An upper bound of this kind is usually drawn from the main conjecture of Mazur and Wiles. Here it |
| 582 | comes from the points that Kolyvagin's derivative cocycles give for each odd character. -/ |
| 583 | lemma New.OddPart.length_shaOdd_le_of_sq_lt {N : ℕ} [NeZero N] {E : Type} [Field E] |
| 584 | [NumberField E] [IsCMField E] [Algebra E Ω] (h_sub : ∀ x : E, algebraMap E Ω x ∈ cycloField N) |
| 585 | (l : ℕ) [hl_prime : ThePrime l] (O : Type) [CommRing O] [PadicIntegerRing O l] |
| 586 | [HasEnoughRootsOfUnity O (Monoid.exponent (ZMod N)ˣ)] {e : ℕ} (he : e ≠ 0) (n : ℕ) {y : ℕ} |
| 587 | (h_le_y : N + e + 3 ≤ y) (hl_gt : y ^ 2 < l) {X : ℕ} (hX_ne : X ≠ 0) (hX_le : X ≤ 2 ^ y ^ 6) |
| 588 | (h_stick : IsStickelbergerBound N e X) : |
| 589 | length O (shaOdd l E O e n) ≤ addVal O ((4 * φ N * (4 * X * X)) ^ y ^ 20 : ℕ) := by |
| 590 | -- For each odd `ψ`, points `γ ψ i` with `i ≤ v_l(X)` detect the cocycles in |
| 591 | -- `component l e ψ n`. The values of `z` at the points `b (σ u) (γ ψ i)` then detect `z`. |
| 592 | have h_tot : φ N ≤ N := N.totient_le |
| 593 | have hl_big : N + e + 3 < l := by nlinarith |
| 594 | obtain ⟨σ, b, h_split⟩ := exists_character_components h_sub l O he n |
| 595 | have h_detect_pts : ∀ ψ : DirichletCharacter O N, cyclotomicPowDirichlet l e ψ cmConj = -1 → |
| 596 | ∃ γ : Fin (X.factorization l + 1) → Gal(Ω/ℚ), |
| 597 | ∀ x ∈ component l e ψ n, (∀ i : Fin (X.factorization l + 1), x (γ i) = 0) → x = 0 := |
| 598 | fun ψ hψ ↦ exists_detecting_points_component h_stick hψ he hX_ne hl_big |
| 599 | choose! γ hγ using h_detect_pts |
| 600 | refine length_shaOdd_le_addVal_pow |
| 601 | (nsmul_shaOdd_eq_zero_of_isStickelbergerBound h_sub l O he n h_stick) |
| 602 | (fun (u, ψ, i) ↦ b (σ u) (γ ψ i)) ?_ fun z hz h_van ↦ ?_ |
| 603 | · -- At most `y` values of `u`, `y` characters and `y ^ 6 + 1 ≤ y ^ 18` values of `i`. |
| 604 | have h_val : X.factorization l ≤ y ^ 6 := |
| 605 | factorization_le_of_le_pow (hX_le.trans (Nat.pow_le_pow_left hl_prime.out.two_le _)) |
| 606 | have h_pow : y ^ 6 < y ^ 18 := Nat.pow_lt_pow_right (by lia) (by norm_num) |
| 607 | have h_tot_le : φ N ≤ y := by lia |
| 608 | simp only [Fintype.card_prod, ZMod.card_units_eq_totient, Fintype.card_fin] |
| 609 | grw [card_eq_nat_card, card_eq_totient_of_hasEnoughRootsOfUnity, h_tot_le, h_val, |
| 610 | add_one_le_of_lt h_pow] |
| 611 | linarith |
| 612 | · -- The odd components of `z` vanish, so `z` is killed by `4 * φ N`, which is prime to `l`. |
| 613 | obtain ⟨hz_comp, h_kill_of_odd⟩ := h_split z hz |
| 614 | have h_van' (u : (ZMod N)ˣ) (ψ : DirichletCharacter O N) (i : Fin (X.factorization l + 1)) : |
| 615 | z (b (σ u) (γ ψ i)) = 0 := h_van (u, ψ, i) |
| 616 | have h_four : (4 * φ N) • z = 0 := |
| 617 | h_kill_of_odd fun ψ hψ ↦ hγ ψ hψ _ (hz_comp ψ) fun i ↦ by simp [h_van'] |
| 618 | have h_pow : l ^ n • z = 0 := funext₂ fun g i ↦ nsmul_quot_eq_zero dvd_rfl (z g i) |
| 619 | have h_lt : 4 * φ N < l := by nlinarith |
| 620 | have h_coprime : (l ^ n).Coprime (4 * φ N) := |
| 621 | .pow_left n (coprime_of_lt_prime out h_lt hl_prime.out) |
| 622 | exact (nsmul_eq_zero_iff_of_coprime h_coprime).mp ⟨h_pow, h_four⟩ |
| 623 | |
| 624 | /-- For a CM field `E` inside `ℚ(μ_N)` (`h_sub`) and `t : ℕ` there is an integer `X ≠ 0`, at most |
| 625 | `2 ^ (4 (N + t + 3) ^ 27) · h_E` (`h_E` the class number), such that the following holds for each |
| 626 | prime `l`, each `O` with `PadicIntegerRing O l` (a discrete valuation ring finite and free over |
| 627 | `ℤ_l`, with valuation `addVal O`) and enough roots of unity for the characters mod `N`, and each |
| 628 | `e < t` and `n`. The length over `O` of `shaOdd l E O e n` is at most `addVal O X`. For `e ≠ 0` this |
| 629 | is the module of continuous cocycles `Gal(Ω/E) → O / lⁿ(-e)`, not taken modulo coboundaries, that |
| 630 | are unramified off `l`, vanish on `shaLocalSet l E e` and are odd; for `e = 0` it is the everywhere |
| 631 | unramified continuous homomorphisms. |
| 632 | |
| 633 | For large `l` a bound of this kind follows from the Iwasawa main conjecture of Mazur and Wiles; only |
| 634 | an upper bound for the length at finite level, by an integer of explicit size, is proved. -/ |
| 635 | lemma New.exists_length_shaOdd_le (N t : ℕ) [NeZero N] (E : Type) [Field E] [NumberField E] |
| 636 | [IsCMField E] [Algebra E Ω] (h_sub : ∀ x : E, algebraMap E Ω x ∈ cycloField N) : |
| 637 | ∃ X : ℕ, X ≠ 0 ∧ |
| 638 | X ≤ 2 ^ (4 * (N + t + 3) ^ 27) * classNumber E ∧ |
| 639 | ∀ (l : ℕ) [ThePrime l] (O : Type) [CommRing O] [PadicIntegerRing O l], |
| 640 | HasEnoughRootsOfUnity O (Monoid.exponent (ZMod N)ˣ) → |
| 641 | ∀ e : ℕ, e < t → ∀ n : ℕ, length O (shaOdd l E O e n) ≤ addVal O X := by |
| 642 | -- Put `y = N + t + 3`. For `e ≠ 0` a nonzero Stickelberger bound `X e ≤ 2 ^ (N + e + 3) ^ 6` |
| 643 | -- gives an integer `Y e` that kills the module, and for small and for large `l` the length is |
| 644 | -- at most the valuation of `Y e ^ y ^ 20`. For `e = 0` the class number serves. |
| 645 | have h_bound : ∀ e : ℕ, e ≠ 0 → |
| 646 | ∃ X ≠ (0 : ℕ), X ≤ 2 ^ (N + e + 3) ^ 6 ∧ IsStickelbergerBound N e X := |
| 647 | fun e he ↦ exists_isStickelbergerBound N e he |
| 648 | choose! X hX_ne hX_le h_stick using h_bound |
| 649 | generalize hy : N + t + 3 = y |
| 650 | let Y (e : ℕ) : ℕ := 4 * φ N * (4 * X e * X e) |
| 651 | have hY_ne : (Ioo 0 t).prod Y ≠ 0 := prod_ne_zero_iff.mpr fun e he ↦ by |
| 652 | simp [NeZero.ne N, hX_ne e (mem_Ioo.mp he).left.ne'] |
| 653 | refine ⟨(Ioo 0 t).prod Y ^ y ^ 20 * classNumber E, by simp [hY_ne, classNumber_ne_zero], |
| 654 | Nat.mul_le_mul_right (classNumber E) (prod_Ioo_pow_le_two_pow_of_le_two_pow hy hX_le), ?_⟩ |
| 655 | intro l _ O _ _ hO e het n |
| 656 | obtain rfl | he := eq_or_ne e 0 |
| 657 | · exact (length_shaOdd_zero_le_addVal_classNumber E l O n).trans (addVal_le_iff_dvd.mpr (by simp)) |
| 658 | have h_mem : e ∈ Ioo 0 t := mem_Ioo.mpr ⟨Nat.pos_of_ne_zero he, het⟩ |
| 659 | have h_dvd : Y e ^ y ^ 20 ∣ (Ioo 0 t).prod Y ^ y ^ 20 * classNumber E := |
| 660 | (pow_dvd_pow_of_dvd (dvd_prod_of_mem Y h_mem) (y ^ 20)).mul_right (classNumber E) |
| 661 | suffices h_length : length O (shaOdd l E O e n) ≤ addVal O (Y e ^ y ^ 20 : ℕ) from |
| 662 | h_length.trans (addVal_le_iff_dvd.mpr (cast_dvd_cast h_dvd)) |
| 663 | have h_le_y : N + e + 3 ≤ y := by lia |
| 664 | obtain hl_le | hl_gt := le_or_gt l (y ^ 2) |
| 665 | · exact length_shaOdd_le_of_le_sq h_sub l O e n (by lia) hl_le |
| 666 | (nsmul_shaOdd_eq_zero_of_isStickelbergerBound h_sub l O he n (h_stick e he)) |
| 667 | · have hXe_le : X e ≤ 2 ^ y ^ 6 := |
| 668 | (hX_le e he).trans (Nat.pow_le_pow_right two_pos (Nat.pow_le_pow_left h_le_y 6)) |
| 669 | exact length_shaOdd_le_of_sq_lt h_sub l O he n h_le_y hl_gt (hX_ne e he) hXe_le (h_stick e he) |
| 670 | |
| 671 | end OddShaBound |