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.FieldTheory.Galois.Profinite |
| 4 | import Mathlib.Topology.Sheaves.Presheaf |
| 5 | public import Lib.ClassField.GreenbergWiles.SelmerLevels |
| 6 | import Lib.ClassField.GreenbergWiles.CocycleCounts |
| 7 | import Lib.ClassField.GreenbergWiles.SelmerRelations |
| 8 | import Lib.ClassField.Places.TameInertia |
| 9 | |
| 10 | /-! |
| 11 | # Relations at split primes |
| 12 | |
| 13 | Let `M` be a discrete Galois module with local conditions at a finite set `S` of primes; `Z(P)` |
| 14 | (`cocycles P`) is the group of cocycles allowed at each prime of `S`, zero at complex conjugations, |
| 15 | unramified outside `S ∪ P`. A relation is a function on an open normal subgroup `U` with values in |
| 16 | the dual of `M` that has the properties of the restriction of a dual cocycle, among them the |
| 17 | reciprocity law at primes that are split for `U`. The module of relations takes the place of the |
| 18 | dual Selmer group: at a split prime where the relation `y` is unramified, `y(φ)(z(γ))` is the local |
| 19 | pairing of `y` with a cocycle `z`. |
| 20 | |
| 21 | * `New.SplitPrime`, `New.RelationSetting`: split primes, and the module with its local conditions. |
| 22 | * `New.RelationSetting.relations`: the relations off a finite set `T`; there are finitely many if |
| 23 | `M` is finite. |
| 24 | * `New.RelationSetting.exists_splitPlaces_forall_exists_mem_relations`: one family of split primes |
| 25 | gives relations at all split primes. |
| 26 | * `New.RelationSetting.exists_card_cocycles_le`: a lower bound for the number of relations. |
| 27 | |
| 28 | Notions from other files: |
| 29 | * `New.IsLargeLevel.SplitPlaces`: a family `s` of distinct primes `s.v i` prime to a level `q`, with |
| 30 | Frobenius elements `s.φ i` in `U` at places `s.valuationSubring i` above `s.v i`; inertia at the |
| 31 | primes prime to `q` lies in `U`, and `I` is the union of the inertia groups above those primes not |
| 32 | in the family. Its property `FrobeniiDetectRoots` says that an `m`-th root of a `q`-unit of the |
| 33 | field of `U` that all `s.φ i` fix is fixed by `U`. |
| 34 | * `New.IsLargeLevel.fixedSUnits q U`: the `q`-units of the field of `U`; `New.unitsRep` is the |
| 35 | Galois action on `Ωˣ`, written additively. |
| 36 | * `New.cyclotomicCharMod`: the cyclotomic character modulo `m`. |
| 37 | |
| 38 | ## Relation to the literature |
| 39 | |
| 40 | Part of a known result: Greenberg–Wiles formula, as a lower bound for the dual side. See |
| 41 | `Lib.ClassField.GreenbergWiles.CocycleCounts`. Source: Darmon, Diamond, Taylor, Fermat's Last |
| 42 | Theorem, Theorem 2.19; the case that is used is proved here. |
| 43 | -/ |
| 44 | |
| 45 | @[expose] public section |
| 46 | |
| 47 | noncomputable section |
| 48 | |
| 49 | namespace New |
| 50 | |
| 51 | open NumberField Function Finset DiscreteModule Fintype commutatorElement |
| 52 | |
| 53 | variable {K R : Type} [Field K] [EmbeddedNumberField K] [CommRing R] |
| 54 | |
| 55 | /-- A place above a prime of `K`, with a Frobenius element in the open normal subgroup `U` and a |
| 56 | tame generator of inertia modulo `m`. The Frobenius element is arithmetic; passing to its inverse |
| 57 | only changes the sign of each relation. That the prime avoids a given finite set is imposed where |
| 58 | the structure is used. -/ |
| 59 | structure SplitPrime (m : ℕ) [NeZero m] (U : OpenNormalSubgroup Gal(Ω/K)) where |
| 60 | /-- The prime of `K`. -/ |
| 61 | prime : FinPlace K |
| 62 | /-- The place of `Ω` above it. -/ |
| 63 | place : ClosurePlace |
| 64 | /-- The place lies above the prime. -/ |
| 65 | isPlaceOver : IsPlaceOver place prime |
| 66 | /-- The Frobenius element. -/ |
| 67 | frob : Gal(Ω/K) |
| 68 | /-- `frob` is a Frobenius element at the place. -/ |
| 69 | isFrob : IsFrob place prime.q frob |
| 70 | /-- `frob` lies in `U`; where inertia above `prime` lies in `U`, this says that `prime` splits in |
| 71 | its field. -/ |
| 72 | frob_mem : frob ∈ U |
| 73 | /-- The inertial element. -/ |
| 74 | tameGenerator : Gal(Ω/K) |
| 75 | /-- `tameGenerator` multiplies an `m`-th root of a uniformiser by the fixed root of unity. -/ |
| 76 | isTameGeneratorFor : IsTameGeneratorFor (K := K) m place tameGenerator |
| 77 | |
| 78 | /-- The setting for relations among values of cocycles at split primes: a module `M` killed by `m` |
| 79 | and fixed by complex conjugations, an open normal subgroup `U` (`subgroup`) that fixes `M` and the |
| 80 | `m`-th roots of unity, and local conditions on a finite set `S` (`localPrimes`) of primes outside |
| 81 | which `M` is unramified. In addition `U` contains no complex conjugation. The number `m` need not be |
| 82 | a prime power, `S` need not contain the primes above `m`, and a local condition is a module of |
| 83 | functions, whose cocycles form the group `A_v`. -/ |
| 84 | structure RelationSetting (M : DiscreteModule R Gal(Ω/K)) (m : ℕ) [NeZero m] where |
| 85 | /-- The module is killed by `m`. -/ |
| 86 | nsmul_eq_zero (a : M) : m • a = 0 |
| 87 | /-- The open normal subgroup. -/ |
| 88 | subgroup : OpenNormalSubgroup Gal(Ω/K) |
| 89 | /-- `U` fixes the module. -/ |
| 90 | apply_eq_of_mem : ∀ g ∈ subgroup, ∀ a : M, M.ρ g a = a |
| 91 | /-- `U` fixes the `m`-th roots of unity. -/ |
| 92 | cyclotomicCharMod_eq_one : ∀ g ∈ subgroup, cyclotomicCharMod Ω m g = 1 |
| 93 | /-- `U` contains no complex conjugation. -/ |
| 94 | notMem_of_isComplexConj {c : Gal(Ω/K)} : IsComplexConj c → c ∉ subgroup |
| 95 | /-- Complex conjugations fix the module. -/ |
| 96 | ρ_eq_one_of_isComplexConj {c : Gal(Ω/K)} : IsComplexConj c → M.ρ c = 1 |
| 97 | /-- The finite set of primes with local conditions. -/ |
| 98 | localPrimes : Finset (FinPlace K) |
| 99 | /-- The module is unramified outside `S`. -/ |
| 100 | unramified : ∀ g ∈ inertiaAbove (localPrimes : Set (FinPlace K))ᶜ, M.ρ g = 1 |
| 101 | /-- A place of `Ω` above each prime. -/ |
| 102 | place : FinPlace K → ClosurePlace |
| 103 | /-- The place lies above the prime. -/ |
| 104 | isPlaceOver (v : FinPlace K) : IsPlaceOver (place v) v |
| 105 | /-- The local condition: the functions on the decomposition group that are allowed. -/ |
| 106 | allowed (v : FinPlace K) : Submodule R (decompGroup Gal(Ω/K) (place v) → M) |
| 107 | /-- Local coboundaries are allowed. -/ |
| 108 | coboundary_le : ∀ v ∈ localPrimes, (coboundaryMap |
| 109 | (M.restrictTo (decompGroup Gal(Ω/K) (place v))).ρ).range ≤ allowed v |
| 110 | |
| 111 | namespace RelationSetting |
| 112 | |
| 113 | variable {M : DiscreteModule R Gal(Ω/K)} {m : ℕ} [NeZero m] (D : RelationSetting M m) |
| 114 | |
| 115 | /-- The group `Z(P)` of the cocycles that are allowed at each prime of `S`, vanish at complex |
| 116 | conjugations and are unramified outside `S ∪ P`. -/ |
| 117 | abbrev cocycles (P : Set (FinPlace K)) : Submodule R (Gal(Ω/K) → M) := |
| 118 | selmerZ1 M D.localPrimes D.place D.allowed P |
| 119 | |
| 120 | /-- The group `A_v` of the local cocycles that are allowed at `v`. -/ |
| 121 | abbrev localCocycles (v : FinPlace K) : Submodule R (decompGroup Gal(Ω/K) (D.place v) → M) := |
| 122 | D.allowed v ⊓ Z1 (M.restrictTo (decompGroup Gal(Ω/K) (D.place v))).ρ |
| 123 | |
| 124 | /-- A relation off the finite set `T`: a continuous equivariant homomorphism `y` from `U` to |
| 125 | `Hom(M, ℚ/ℤ)`, extended by zero and unramified outside `T`, whose values at Frobenius elements give |
| 126 | a linear relation among the values of cocycles at tame generators. By global duality, the |
| 127 | restriction to `U` of a dual cocycle has these properties if `T` contains `S` and the primes above |
| 128 | `m`. -/ |
| 129 | structure IsRelation (T : Finset (FinPlace K)) (y : Gal(Ω/K) → CharacterModule M) : Prop where |
| 130 | /-- `y` is continuous for the discrete topology. -/ |
| 131 | isLocallyConstant : IsLocallyConstant y |
| 132 | /-- `y` is extended by zero outside `U`. -/ |
| 133 | eq_zero_of_notMem : ∀ g ∉ D.subgroup, y g = 0 |
| 134 | /-- `y` is a homomorphism on `U`. -/ |
| 135 | map_mul : ∀ a ∈ D.subgroup, ∀ b ∈ D.subgroup, y (a * b) = y a + y b |
| 136 | /-- `y (g u g⁻¹) = cyc(g) · y u ∘ g⁻¹`. -/ |
| 137 | map_conj (g : Gal(Ω/K)) : ∀ u ∈ D.subgroup, ∀ a : M, |
| 138 | y (g * u * g⁻¹) a = (cyclotomicCharMod Ω m g : ZMod m).val • y u (M.ρ g⁻¹ a) |
| 139 | /-- `y` is unramified outside `T`. -/ |
| 140 | unramified : ∀ τ ∈ inertiaAbove (T : Set (FinPlace K))ᶜ, y τ = 0 |
| 141 | /-- Reciprocity at every finite family of distinct split primes outside `T`. -/ |
| 142 | sum_eq_zero {J : Type} [Fintype J] (p : J → SplitPrime m D.subgroup) : |
| 143 | Injective (fun j : J ↦ (p j).prime) → (∀ j : J, (p j).prime ∉ T) → |
| 144 | ∀ z ∈ D.cocycles (Set.range fun j : J ↦ (p j).prime), |
| 145 | ∑ j : J, y (p j).frob (z (p j).tameGenerator) = 0 |
| 146 | |
| 147 | /-- The module of relations off `T`. It takes the place of the group `Z*` of dual cocycles: only the |
| 148 | restrictions to `U` of dual cocycles are used, and only through the properties in `IsRelation`; the |
| 149 | set `T` may be larger than `S`. -/ |
| 150 | def relations (T : Finset (FinPlace K)) : Submodule R (Gal(Ω/K) → CharacterModule M) where |
| 151 | carrier := {y : Gal(Ω/K) → CharacterModule M.V | D.IsRelation T y} |
| 152 | zero_mem' := |
| 153 | { isLocallyConstant := .const 0 |
| 154 | eq_zero_of_notMem := fun _ _ ↦ rfl |
| 155 | map_mul := fun _ _ _ _ ↦ (add_zero _).symm |
| 156 | map_conj := fun _ _ _ _ ↦ (nsmul_zero _).symm |
| 157 | unramified := fun _ _ ↦ rfl |
| 158 | sum_eq_zero := fun _ _ _ _ _ ↦ sum_const_zero } |
| 159 | add_mem' {y y'} hy hy' := |
| 160 | { isLocallyConstant := hy.isLocallyConstant.add hy'.isLocallyConstant |
| 161 | eq_zero_of_notMem := fun g hg ↦ by |
| 162 | simp [hy.eq_zero_of_notMem g hg, hy'.eq_zero_of_notMem g hg] |
| 163 | map_mul := fun a ha b hb ↦ by |
| 164 | simp [hy.map_mul a ha b hb, hy'.map_mul a ha b hb, add_add_add_comm] |
| 165 | map_conj := fun g u hu a ↦ by |
| 166 | change y (g * u * g⁻¹) a + y' (g * u * g⁻¹) a = |
| 167 | (cyclotomicCharMod Ω m g : ZMod m).val • (y u (M.ρ g⁻¹ a) + y' u (M.ρ g⁻¹ a)) |
| 168 | rw [hy.map_conj g u hu, hy'.map_conj g u hu, nsmul_add] |
| 169 | unramified := fun τ hτ ↦ by simp [hy.unramified τ hτ, hy'.unramified τ hτ] |
| 170 | sum_eq_zero := fun p hp hT z hz ↦ by |
| 171 | change ∑ j, (y (p j).frob (z (p j).tameGenerator) + y' (p j).frob (z (p j).tameGenerator)) = |
| 172 | 0 |
| 173 | simp [sum_add_distrib, hy.sum_eq_zero p hp hT z hz, hy'.sum_eq_zero p hp hT z hz] } |
| 174 | smul_mem' r y hy := |
| 175 | { isLocallyConstant := hy.isLocallyConstant.comp (r • ·) |
| 176 | eq_zero_of_notMem := fun g hg ↦ by simp [hy.eq_zero_of_notMem g hg] |
| 177 | map_mul := fun a ha b hb ↦ by simp [hy.map_mul a ha b hb] |
| 178 | map_conj := fun g u hu a ↦ by simp [hy.map_conj g u hu] |
| 179 | unramified := fun τ hτ ↦ by simp [hy.unramified τ hτ] |
| 180 | sum_eq_zero := fun p hp hT z hz ↦ by |
| 181 | simpa using hy.sum_eq_zero p hp hT (r • z) (Submodule.smul_mem _ r hz) } |
| 182 | |
| 183 | /-- There are finitely many relations off `T`, by the finiteness of cocycles with bounded |
| 184 | ramification for the group `U`. -/ |
| 185 | instance finite_relations [Finite M] (T : Finset (FinPlace K)) : Finite (D.relations T) := by |
| 186 | have : Finite (CharacterModule M) := inferInstanceAs (Finite (M →+ QZ)) |
| 187 | let _ : TopologicalSpace (CharacterModule M) := ⊥ |
| 188 | have : DiscreteTopology (CharacterModule M) := ⟨rfl⟩ |
| 189 | -- A relation is a cocycle of `U` for the trivial action, unramified outside the primes of the |
| 190 | -- field `F` of `U` above `T`. |
| 191 | let F : IntermediateField K Ω := fixedFieldOf D.subgroup.toSubgroup |
| 192 | let V : DiscreteModule ℤ D.subgroup.toSubgroup := |
| 193 | .of (.trivial ℤ D.subgroup.toSubgroup (CharacterModule M)) |
| 194 | have h_above : {w : FinPlace F | w.below K ∈ T}.Finite := by |
| 195 | simpa [Set.preimage, Set.compl_ofPred, FinPlace.below] using |
| 196 | tendsto_place_comap_cofinite (algebraMap K F) T.finite_toSet.compl_mem_cofinite |
| 197 | refine Set.Finite.of_injOn (s := {y | D.IsRelation T y}) |
| 198 | (f := fun (y : Gal(Ω/K) → CharacterModule M) (u : D.subgroup.toSubgroup) ↦ y u) |
| 199 | (fun y hy ↦ ?_) (fun y hy y' hy' h ↦ funext fun g ↦ ?_) |
| 200 | (finite_cocycles_unramified_outside V h_above) |
| 201 | · exact ⟨⟨hy.isLocallyConstant.continuous.comp continuous_subtypeVal, |
| 202 | fun a b ↦ hy.map_mul a a.property b b.property⟩, |
| 203 | fun w hw A hA τ hτ ↦ hy.unramified τ ⟨w.below K, hw, A, hA.isPlaceOver_below, hτ⟩⟩ |
| 204 | · by_cases hg : g ∈ D.subgroup |
| 205 | · exact congrFun h ⟨g, hg⟩ |
| 206 | · rw [hy.eq_zero_of_notMem g hg, hy'.eq_zero_of_notMem g hg] |
| 207 | |
| 208 | /-- The cocycles submodule `D.cocycles` is monotone with respect to the set of places `P`. -/ |
| 209 | lemma cocycles_mono : Monotone D.cocycles := |
| 210 | selmerZ1.mono M D.localPrimes D.place D.allowed |
| 211 | |
| 212 | include D in |
| 213 | /-- Multiplying by the integer value of `1 : ZMod m` acts as identity on an `m`-torsion module. -/ |
| 214 | lemma val_one_nsmul (a : M) : (1 : ZMod m).val • a = a := by |
| 215 | let : Module (ZMod m) M := AddCommGroup.zmodModule D.nsmul_eq_zero |
| 216 | simp [← Nat.cast_smul_eq_nsmul (ZMod m)] |
| 217 | |
| 218 | section Family |
| 219 | |
| 220 | open IsLargeLevel Set |
| 221 | |
| 222 | variable {q : ℕ} [NeZero q] |
| 223 | |
| 224 | omit [NeZero q] in |
| 225 | /-- Let the primes of `S` divide `q`. A cocycle in `Z(P)` vanishes at a tame generator at the split |
| 226 | prime `s.v i` when `s.v i ∉ P`, since it is unramified there. -/ |
| 227 | lemma apply_eq_zero_of_notMem (hS : ∀ v ∈ D.localPrimes, ↑q ∈ v.asIdeal) {I : Set Gal(Ω/K)} |
| 228 | {J : Type} (s : SplitPlaces m q I D.subgroup J) {i : J} {γ : Gal(Ω/K)} |
| 229 | (hγ : IsTameGeneratorFor (K := K) m (s.valuationSubring i) γ) {P : Set (FinPlace K)} |
| 230 | {z : Gal(Ω/K) → M} (hz : z ∈ D.cocycles P) (hi : s.v i ∉ P) : z γ = 0 := by |
| 231 | obtain ⟨⟨-, hz_unram⟩, -⟩ := hz |
| 232 | obtain ⟨hγ_inertia, -⟩ := hγ |
| 233 | have hi_notMem_S : s.v i ∉ D.localPrimes := fun h ↦ s.level_notMem i (hS _ h) |
| 234 | exact hz_unram γ |
| 235 | ⟨s.v i, not_or_intro hi_notMem_S hi, s.valuationSubring i, s.isPlaceOver i, hγ_inertia⟩ |
| 236 | |
| 237 | /-- Let the primes of `S` divide `q`, let the split primes `s` have tame generators `γ n`, and let |
| 238 | `s.φ j * (g * s.φ k * g⁻¹)` act like `s.φ i` on the `m`-th roots of the `q`-units fixed by `U`. |
| 239 | Then some cocycle in `Z(range s.v)` has the values `a`, `-a`, `-cyc(g) g⁻¹ a` at `γ i`, `γ j`, |
| 240 | `γ k` (added where indices coincide) and `0` at the other `γ n`. -/ |
| 241 | lemma exists_cocycle_three_values (hS : ∀ v ∈ D.localPrimes, ↑q ∈ v.asIdeal) {I : Set Gal(Ω/K)} |
| 242 | {J : Type} [Fintype J] [DecidableEq J] (s : SplitPlaces m q I D.subgroup J) {γ : J → Gal(Ω/K)} |
| 243 | (hγ : ∀ i : J, IsTameGeneratorFor (K := K) m (s.valuationSubring i) (γ i)) {i j k : J} |
| 244 | {g : Gal(Ω/K)} |
| 245 | (hφ : ∀ y : DiscreteUnits Ω, m • y ∈ fixedSUnits q D.subgroup → |
| 246 | unitsRep (s.φ j * (g * s.φ k * g⁻¹)) y = unitsRep (s.φ i) y) (a : M) : |
| 247 | ∃ z ∈ D.cocycles (range s.v), ∀ n : J, z (γ n) = |
| 248 | (if n = i then a else 0) - (if n = j then a else 0) - |
| 249 | if n = k then (cyclotomicCharMod Ω m g : ZMod m).val • M.ρ g⁻¹ a else 0 := by |
| 250 | let : Module (ZMod m) M := AddCommGroup.zmodModule D.nsmul_eq_zero |
| 251 | obtain ⟨⟨P₀, z⟩, hP, z_val⟩ := selmerZ1.exists_three_values s hγ D.apply_eq_of_mem |
| 252 | D.notMem_of_isComplexConj hφ a |
| 253 | refine ⟨z, selmerZ1.trivialized_mem_selmer D.unramified D.isPlaceOver D.allowed D.coboundary_le |
| 254 | D.ρ_eq_one_of_isComplexConj s hS hP, fun n ↦ ?_⟩ |
| 255 | simpa [← Nat.cast_smul_eq_nsmul (ZMod m)] using z_val n |
| 256 | |
| 257 | /-- Let the primes of `S` divide `q`, let the split primes `s` be indexed by the cosets of `O`, and |
| 258 | let `ν`, a character of `M` for each coset of `O`, kill the values at their tame generators `γ i` of |
| 259 | the cocycles in `Z(range s.v)`. If `s.φ j * (g * s.φ k * g⁻¹)` acts like `s.φ i` on the `m`-th roots |
| 260 | of the `q`-units fixed by `U`, then `ν i = ν j + cyc(g) · (ν k ∘ g⁻¹)`. -/ |
| 261 | lemma form_eq_add (hS : ∀ v ∈ D.localPrimes, ↑q ∈ v.asIdeal) |
| 262 | {O : OpenNormalSubgroup Gal(Ω/K)} [Fintype (Gal(Ω/K) ⧸ O.toSubgroup)] |
| 263 | {I : Set Gal(Ω/K)} {s : SplitPlaces m q I D.subgroup (Gal(Ω/K) ⧸ O.toSubgroup)} |
| 264 | {γ : Gal(Ω/K) ⧸ O.toSubgroup → Gal(Ω/K)} |
| 265 | (hγ : ∀ i : Gal(Ω/K) ⧸ O.toSubgroup, IsTameGeneratorFor (K := K) m (s.valuationSubring i) (γ i)) |
| 266 | {ν : Gal(Ω/K) ⧸ O.toSubgroup → CharacterModule M} |
| 267 | (hν : ∀ z ∈ D.cocycles (range s.v), |
| 268 | ∑ i : Gal(Ω/K) ⧸ (O.toOpenSubgroup : Subgroup Gal(Ω/K)), ν i (z (γ i)) = 0) |
| 269 | {i j k : Gal(Ω/K) ⧸ O.toSubgroup} {g : Gal(Ω/K)} |
| 270 | (hφ : ∀ y : DiscreteUnits Ω, m • y ∈ fixedSUnits q D.subgroup → |
| 271 | unitsRep (s.φ j * (g * s.φ k * g⁻¹)) y = unitsRep (s.φ i) y) (a : M) : |
| 272 | ν i a = ν j a + (cyclotomicCharMod Ω m g : ZMod m).val • ν k (M.ρ g⁻¹ a) := by |
| 273 | classical |
| 274 | obtain ⟨z, hz, z_val⟩ := D.exists_cocycle_three_values hS s hγ hφ a |
| 275 | -- Substitute the values of `z` into `∑ n, ν n (z (γ n)) = 0`. |
| 276 | simpa [z_val, apply_ite (ν _), sub_eq_iff_eq_add'] using hν z hz |
| 277 | |
| 278 | -- The next identities share the hypotheses on split primes indexed by cosets, their tame |
| 279 | -- generators, and the linear relation among cocycle values at those generators. |
| 280 | variable (hS : ∀ v ∈ D.localPrimes, ↑q ∈ v.asIdeal) |
| 281 | {O : OpenNormalSubgroup Gal(Ω/K)} [Fintype (Gal(Ω/K) ⧸ O.toSubgroup)] |
| 282 | (hO : ∀ g h : Gal(Ω/K), (g : Gal(Ω/K) ⧸ O.toSubgroup) = h → |
| 283 | ∀ y : DiscreteUnits Ω, m • y ∈ fixedSUnits q D.subgroup → unitsRep h y = unitsRep g y) |
| 284 | {I : Set Gal(Ω/K)} {s : SplitPlaces m q I D.subgroup (Gal(Ω/K) ⧸ O.toSubgroup)} |
| 285 | (φ_coset : ∀ g ∈ D.subgroup, (s.φ g : Gal(Ω/K) ⧸ O.toSubgroup) = g) |
| 286 | {γ : Gal(Ω/K) ⧸ O.toSubgroup → Gal(Ω/K)} |
| 287 | (hγ : ∀ i : Gal(Ω/K) ⧸ O.toSubgroup, IsTameGeneratorFor (K := K) m (s.valuationSubring i) (γ i)) |
| 288 | {ν : Gal(Ω/K) ⧸ O.toSubgroup → CharacterModule M} |
| 289 | (hν : ∀ z ∈ D.cocycles (range s.v), |
| 290 | ∑ i : Gal(Ω/K) ⧸ (O.toOpenSubgroup : Subgroup Gal(Ω/K)), ν i (z (γ i)) = 0) |
| 291 | |
| 292 | include hS hO φ_coset hγ hν |
| 293 | |
| 294 | /-- Let the primes of `S` divide `q`, let elements in one coset of `O` act alike on the `m`-th roots |
| 295 | of the `q`-units fixed by `U`, let the split primes `s` be indexed by the cosets of `O`, let the |
| 296 | Frobenius element at the coset of `g ∈ U` lie in that coset, and let `ν` kill the values at the tame |
| 297 | generators `γ i` of the cocycles in `Z(range s.v)`. Then the coefficient of `ν` at the trivial coset |
| 298 | is zero. -/ |
| 299 | lemma form_one_eq_zero |
| 300 | (a : M) : ν 1 a = 0 := by |
| 301 | have h_coset : (s.φ 1 : Gal(Ω/K) ⧸ O.toSubgroup) = ↑(s.φ 1 * (1 * s.φ 1 * 1⁻¹)) := by |
| 302 | simpa using φ_coset 1 |
| 303 | have h_add : ν 1 a = ν 1 a + ν 1 a := by |
| 304 | simpa [← map_nsmul, D.val_one_nsmul] using D.form_eq_add hS hγ hν (hO _ _ h_coset) a |
| 305 | exact left_eq_add.1 h_add |
| 306 | |
| 307 | /-- Let the primes of `S` divide `q`, let elements in one coset of `O` act alike on the `m`-th roots |
| 308 | of the `q`-units fixed by `U`, let the split primes `s` be indexed by the cosets of `O` with |
| 309 | `s.φ g ∈ g O` for `g ∈ U`, and let `ν` kill the values at the tame generators `γ i` of the cocycles |
| 310 | in `Z(range s.v)`. Then the coefficient of `ν` at the coset of an element `τ` of the inertia group |
| 311 | at a place `A` above a prime `v` that does not divide `q` is zero. -/ |
| 312 | lemma form_eq_zero_of_mem_inertiaGroup |
| 313 | {v : FinPlace K} (hv : ↑q ∉ v.asIdeal) {A : ClosurePlace} (hA : IsPlaceOver A v) |
| 314 | {τ : Gal(Ω/K)} (hτ : τ ∈ inertiaGroup Gal(Ω/K) A) (a : M) : ν τ a = 0 := by |
| 315 | -- `τ` lies in `U` and fixes the `m`-th roots of the `q`-units, as `s.φ 1` does. |
| 316 | have φ_one : s.φ 1 ∈ O.toSubgroup := by simpa using φ_coset 1 |
| 317 | have hτU : τ ∈ D.subgroup := s.inertiaGroup_le hv hA hτ |
| 318 | have hm_notMem : ↑m ∉ v.asIdeal := hv ∘ v.asIdeal.mem_of_dvd s.dvd_level.natCast |
| 319 | have τ_fix (y : DiscreteUnits Ω) (hy : m • y ∈ fixedSUnits q D.subgroup) : unitsRep τ y = y := by |
| 320 | obtain ⟨hy_units, hy_fixed⟩ := hy |
| 321 | have hy_fix : τ • ((m • y).toMul : Ω) = (m • y).toMul := |
| 322 | congrArg (fun x : DiscreteUnits Ω ↦ (x.toMul : Ω)) (hy_fixed ⟨τ, hτU⟩) |
| 323 | exact DiscreteUnits.ext <| Cohomology.inertia_fixes_root_of_unit hτ |
| 324 | (hA.valuation_natCast_eq_one_iff.2 hm_notMem) (by simp) |
| 325 | (hy_units A (hA.valuation_natCast_eq_one_iff.2 hv)) hy_fix |
| 326 | have hφ (y : DiscreteUnits Ω) (hy : m • y ∈ fixedSUnits q D.subgroup) : |
| 327 | unitsRep (s.φ 1 * (1 * s.φ 1 * 1⁻¹)) y = unitsRep (s.φ τ) y := by |
| 328 | have h_coset : ((s.φ 1 * (1 * s.φ 1 * 1⁻¹) : Gal(Ω/K)) : Gal(Ω/K) ⧸ O.toSubgroup) = |
| 329 | ↑(1 : Gal(Ω/K)) := by simp [φ_one] |
| 330 | rw [← hO _ _ (φ_coset τ hτU) y hy, τ_fix y hy, ← hO _ _ h_coset y hy] |
| 331 | simp |
| 332 | simpa [D.form_one_eq_zero hS hO φ_coset hγ hν] using D.form_eq_add hS hγ hν hφ a |
| 333 | |
| 334 | /-- In the relation setting `D` (with `M` killed by `m`, the subgroup `U`, and local conditions at |
| 335 | the finite set `S`), write `Z(P)` for the cocycles that are allowed at each prime of `S`, vanish at |
| 336 | complex conjugations and are unramified outside `S ∪ P`. Let the primes of `S` divide `q`, let |
| 337 | elements in one coset of `O` act alike on the `m`-th roots of the `q`-units fixed by `U`, let the |
| 338 | split primes `s` be indexed by the cosets of `O` with `s.φ g ∈ g O` for `g ∈ U`, and let `ν` kill |
| 339 | the values at the tame generators `γ i` of the cocycles in `Z(range s.v)`. Then for any family `p` |
| 340 | of distinct split primes, prime to `q` and different from those of `s`, and any cocycle `x` in `Z` |
| 341 | of the primes of `p`, we have `∑ j, ν (p j).frob (x (p j).tameGenerator) = 0` (`ν` taken at the |
| 342 | coset of `(p j).frob` modulo `O`). -/ |
| 343 | lemma form_sum_eq_zero |
| 344 | {J : Type} [Fintype J] (p : J → SplitPrime m D.subgroup) |
| 345 | (p_inj : Injective fun j : J ↦ (p j).prime) (p_notMem : ∀ j : J, ↑q ∉ (p j).prime.asIdeal) |
| 346 | (p_ne : ∀ (i : Gal(Ω/K) ⧸ O.toSubgroup) (j : J), s.v i ≠ (p j).prime) {x : Gal(Ω/K) → M} |
| 347 | (hx : x ∈ D.cocycles (range fun j : J ↦ (p j).prime)) : ∑ j : J, |
| 348 | ν (p j).frob (x (p j).tameGenerator) = 0 := by |
| 349 | classical |
| 350 | -- Join the primes `p j` to the family `s` and move the ramification of `x` from `p j` to the |
| 351 | -- primes of `s` at the coset of its Frobenius element and at `1`, where `ν` is zero. |
| 352 | have φ_one : s.φ 1 ∈ O.toSubgroup := by simpa using φ_coset 1 |
| 353 | let s' : SplitPlaces m q _ D.subgroup ((Gal(Ω/K) ⧸ O.toSubgroup) ⊕ J) := |
| 354 | { s with |
| 355 | v := Sum.elim s.v fun j ↦ (p j).prime |
| 356 | v_injective := s.v_injective.sumElim p_inj p_ne |
| 357 | level_notMem := Sum.forall.2 ⟨s.level_notMem, p_notMem⟩ |
| 358 | valuationSubring := Sum.elim s.valuationSubring fun j ↦ (p j).place |
| 359 | isPlaceOver := Sum.forall.2 ⟨s.isPlaceOver, fun j ↦ (p j).isPlaceOver⟩ |
| 360 | φ := Sum.elim s.φ fun j ↦ (p j).frob |
| 361 | isFrob := Sum.forall.2 ⟨s.isFrob, fun j ↦ ⟨(p j).isFrob, (p j).frob_mem⟩⟩ |
| 362 | mem_inertia_iff _ := Iff.of_eq Set.mem_ofPred_eq } |
| 363 | have hγ' : ∀ n : (Gal(Ω/K) ⧸ O.toSubgroup) ⊕ J, |
| 364 | IsTameGeneratorFor (K := K) m (s'.valuationSubring n) |
| 365 | (Sum.elim γ (fun j ↦ (p j).tameGenerator) n) := |
| 366 | Sum.forall.2 ⟨hγ, fun j ↦ (p j).isTameGeneratorFor⟩ |
| 367 | have move (j : J) : ∃ z ∈ D.cocycles (range s'.v), |
| 368 | (∀ b : J, z (p b).tameGenerator = if b = j then x (p j).tameGenerator else 0) ∧ |
| 369 | ∑ i, ν i (z (γ i)) = -ν (p j).frob (x (p j).tameGenerator) := by |
| 370 | have h_coset : (s'.φ (.inr j) : Gal(Ω/K) ⧸ O.toSubgroup) = |
| 371 | ↑(s'.φ (.inl (p j).frob) * (1 * s'.φ (.inl 1) * 1⁻¹)) := by |
| 372 | simp [s', φ_coset, (p j).frob_mem, φ_one] |
| 373 | obtain ⟨z, hz, z_val⟩ := D.exists_cocycle_three_values hS s' hγ' (hO _ _ h_coset) |
| 374 | (x (p j).tameGenerator) |
| 375 | have z_γ (i : Gal(Ω/K) ⧸ O.toSubgroup) : z (γ i) = |
| 376 | -(if i = (p j).frob then x (p j).tameGenerator else 0) - |
| 377 | if i = 1 then (1 : ZMod m).val • x (p j).tameGenerator else 0 := by |
| 378 | simpa using z_val (.inl i) |
| 379 | exact ⟨z, hz, fun b ↦ by simpa using z_val (.inr b), |
| 380 | by simp [z_γ, apply_ite (ν _), D.form_one_eq_zero hS hO φ_coset hγ hν]⟩ |
| 381 | choose z z_mem z_at_p ν_sum_z using move |
| 382 | -- `x - ∑ j, z j` vanishes at the tame generators of the `p j`, so it is unramified there. |
| 383 | have diff_mem : x - ∑ j, z j ∈ D.cocycles (range s.v) := by |
| 384 | obtain ⟨⟨cocycle, unram⟩, rest⟩ : x - ∑ j, z j ∈ D.cocycles (range s'.v) := |
| 385 | sub_mem (D.cocycles_mono (by simp [s']) hx) (sum_mem fun j _ ↦ z_mem j) |
| 386 | refine ⟨⟨cocycle, fun τ ⟨w, hw, B, hB, hτ⟩ ↦ ?_⟩, rest⟩ |
| 387 | by_cases hwp : w ∈ range fun j ↦ (p j).prime |
| 388 | · obtain ⟨j, hj⟩ := hwp |
| 389 | let : Module (ZMod m) M := AddCommGroup.zmodModule D.nsmul_eq_zero |
| 390 | exact s'.apply_inertia_eq_zero (V := M) hB (i := .inr j) hj (p j).isTameGeneratorFor |
| 391 | ⟨x - ∑ b, z b, cocycle⟩ D.apply_eq_of_mem (by simp [z_at_p]) hτ |
| 392 | · exact unram τ ⟨w, by simpa [s', hwp] using hw, B, hB, hτ⟩ |
| 393 | have x_γ (i : Gal(Ω/K) ⧸ O.toSubgroup) : x (γ i) = 0 := |
| 394 | D.apply_eq_zero_of_notMem hS s (hγ i) hx fun ⟨j, hj⟩ ↦ p_ne i j hj.symm |
| 395 | calc ∑ j, ν (p j).frob (x (p j).tameGenerator) = -∑ j, ∑ i, ν i (z j (γ i)) := by simp [ν_sum_z] |
| 396 | _ = ∑ i, ν i ((x - ∑ j, z j) (γ i)) := by |
| 397 | rw [sum_comm] |
| 398 | simp [x_γ] |
| 399 | _ = 0 := hν _ diff_mem |
| 400 | |
| 401 | /-- Let the primes of `S` (of `D`) divide `q`, let elements in one coset of `O` act alike on the |
| 402 | `m`-th roots of the `q`-units fixed by `U`, and let the split primes `s` be indexed by the cosets of |
| 403 | `O` with `s.φ g ∈ g O` for `g ∈ U`. Let `ν` kill the values at the tame generators `γ i` of the |
| 404 | cocycles in `Z(range s.v)`, which are allowed on `S`, zero at complex conjugations, and unramified |
| 405 | off `S` and the `s.v i`. Then `g ↦ ν (g O)` on `U`, zero off `U`, is a relation off any finite `T` |
| 406 | containing the primes dividing `q` and those of `s`: a continuous equivariant map to `Hom(M, ℚ/ℤ)`, |
| 407 | unramified off `T`, whose Frobenius values give linear relations among cocycle values at tame |
| 408 | generators. -/ |
| 409 | lemma isRelation_ite_form |
| 410 | [DecidablePred (· ∈ D.subgroup)] {T : Finset (FinPlace K)} |
| 411 | (hqT : ∀ v : FinPlace K, ↑q ∈ v.asIdeal → v ∈ T) |
| 412 | (hsT : ∀ i : Gal(Ω/K) ⧸ O.toSubgroup, s.v i ∈ T) : |
| 413 | D.IsRelation T fun g : Gal(Ω/K) ↦ if g ∈ D.subgroup then ν g else 0 := by |
| 414 | have ν_conj (g : Gal(Ω/K)) {a b : Gal(Ω/K)} (ha : a ∈ D.subgroup) (hb : b ∈ D.subgroup) (x : M) : |
| 415 | ν ↑(a * (g * b * g⁻¹)) x = ν a x + (cyclotomicCharMod Ω m g : ZMod m).val • ν b |
| 416 | (M.ρ g⁻¹ x) := by |
| 417 | refine D.form_eq_add hS hγ hν (hO _ _ ?_) x |
| 418 | rw [φ_coset _ (mul_mem ha (D.subgroup.isNormal'.conj_mem b hb g))] |
| 419 | simp [φ_coset, ha, hb] |
| 420 | refine |
| 421 | { isLocallyConstant := ?_ |
| 422 | eq_zero_of_notMem := fun g hg ↦ ite_eq_right hg |
| 423 | map_mul := fun a ha b hb ↦ ?_ |
| 424 | map_conj := fun g u hu a ↦ ?_ |
| 425 | unramified := fun τ ⟨v, hv, A, hA, hτ⟩ ↦ ?_ |
| 426 | sum_eq_zero := fun p p_inj hp x hx ↦ ?_ } |
| 427 | · -- The function depends only on the cosets of `g` modulo `U` and `O`. |
| 428 | let f (c : (Gal(Ω/K) ⧸ D.subgroup.toSubgroup) × (Gal(Ω/K) ⧸ O.toSubgroup)) : |
| 429 | CharacterModule M := |
| 430 | if c.1 = 1 then ν c.2 else 0 |
| 431 | have h_eq (g : Gal(Ω/K)) : (if g ∈ D.subgroup then ν g else 0) = f (g, g) := |
| 432 | if_congr (QuotientGroup.eq_one_iff g).symm rfl rfl |
| 433 | rw [funext h_eq] |
| 434 | exact .comp ((IsLocallyConstant.iff_continuous _).2 (by fun_prop)) f |
| 435 | · ext x |
| 436 | simp only [ha, hb, mul_mem ha hb, ite_true] |
| 437 | change ν ↑(a * b) x = ν a x + ν b x |
| 438 | simpa [← map_nsmul, D.val_one_nsmul] using ν_conj 1 ha hb x |
| 439 | · have h_conj : g * u * g⁻¹ ∈ D.subgroup := D.subgroup.isNormal'.conj_mem u hu g |
| 440 | simpa [hu, h_conj, D.form_one_eq_zero hS hO φ_coset hγ hν] using ν_conj g D.subgroup.one_mem hu |
| 441 | a |
| 442 | · have ν_τ : ν τ = 0 := |
| 443 | DFunLike.ext _ _ (D.form_eq_zero_of_mem_inertiaGroup hS hO φ_coset hγ hν |
| 444 | (fun h ↦ hv (hqT v h)) hA hτ) |
| 445 | simp [ν_τ] |
| 446 | · simp only [(p _).frob_mem, ite_true] |
| 447 | exact D.form_sum_eq_zero hS hO φ_coset hγ hν p p_inj (fun j h ↦ hp j (hqT _ h)) |
| 448 | (fun i j h ↦ hp j (by simpa [← h] using hsT i)) hx |
| 449 | |
| 450 | /-- Let the primes of `S` divide `q`, let elements in one coset of `O` act alike on the `m`-th roots |
| 451 | of the `q`-units fixed by `U`, let the split primes `s` be indexed by the cosets of `O` with |
| 452 | `s.φ g ∈ g O` for `g ∈ U`, and let `ν` kill the values at the tame generators `γ i` of the cocycles |
| 453 | in `Z(range s.v)`. Then the coefficient of `ν` at the coset of the Frobenius element `s.φ i` is the |
| 454 | coefficient at `i`. -/ |
| 455 | lemma form_frobenius_eq |
| 456 | (i : Gal(Ω/K) ⧸ O.toSubgroup) : ν (s.φ i) = ν i := by |
| 457 | -- Compare the coefficients at `i`, at the coset of `s.φ i` and at `1`. |
| 458 | have φ_one : s.φ 1 ∈ O.toSubgroup := by simpa using φ_coset 1 |
| 459 | obtain ⟨-, hi_mem⟩ := s.isFrob i |
| 460 | have hi : (s.φ i : Gal(Ω/K) ⧸ O.toSubgroup) = ↑(s.φ (s.φ i) * (1 * s.φ 1 * 1⁻¹)) := by |
| 461 | simp [φ_coset, hi_mem, φ_one] |
| 462 | ext a |
| 463 | simp [D.form_eq_add hS hγ hν (hO _ _ hi), D.form_one_eq_zero hS hO φ_coset hγ hν] |
| 464 | |
| 465 | end Family |
| 466 | |
| 467 | /-- The natural number `p` can be avoided: it is prime to `m`, no prime of `S` divides it, and the |
| 468 | primes dividing it are unramified in the field of `U`. -/ |
| 469 | structure Avoids (p : ℕ) : Prop where |
| 470 | /-- `p` is prime to the modulus. -/ |
| 471 | coprime : m.Coprime p |
| 472 | /-- No prime of `S` divides `p`. -/ |
| 473 | notMem : ∀ v ∈ D.localPrimes, ↑p ∉ v.asIdeal |
| 474 | /-- The primes dividing `p` are unramified in the field of `U`. -/ |
| 475 | inertiaGroup_le (v : FinPlace K) (hv : ↑p ∈ v.asIdeal) (B : ClosurePlace) |
| 476 | (hB : IsPlaceOver B v) : inertiaGroup Gal(Ω/K) B ≤ D.subgroup |
| 477 | |
| 478 | lemma avoids_one : D.Avoids 1 := |
| 479 | have h_one (v : FinPlace K) : ((1 : ℕ) : 𝓞 K) ∉ v.asIdeal := by |
| 480 | simpa using (Ideal.ne_top_iff_one _).1 v.isPrime.ne_top |
| 481 | ⟨m.coprime_one_right, fun v _ ↦ h_one v, fun v hv ↦ absurd hv (h_one v)⟩ |
| 482 | |
| 483 | open IsLargeLevel in |
| 484 | /-- One family of split primes gives relations at all split primes. Let `p` be a natural number |
| 485 | that can be avoided. There are a level `q`, a finite family `s` of split primes with Frobenius |
| 486 | elements `s.φ i` and tame generators `γ i`, and a finite set `T ⊇ S` of primes not dividing `p`, |
| 487 | such that every linear form `ν` that kills the values at the `γ i` of the cocycles in |
| 488 | `Z(range s.v)` consists of the values of a relation off `T` at the `s.φ i`. Moreover the primes of |
| 489 | `S` divide `q`, and an `m`-th root of a `q`-unit of the field of `U` that all `s.φ i` fix is fixed |
| 490 | by `U`. The set `I` is the union of the inertia groups above the primes that are prime to `q` and |
| 491 | not in the family. The proof rests on Artin's reciprocity law for Kummer characters of units, in |
| 492 | place of the reciprocity law for local pairings. -/ |
| 493 | theorem exists_splitPlaces_forall_exists_mem_relations {p : ℕ} [NeZero p] (hp : D.Avoids p) : |
| 494 | ∃ (q : ℕ) (_ : NeZero q) (ι : Type) (_ : Fintype ι) (I : Set Gal(Ω/K)) |
| 495 | (s : SplitPlaces m q I D.subgroup ι) (γ : ι → Gal(Ω/K)) (T : Finset (FinPlace K)), |
| 496 | -- (a) the primes of `S` divide `q` |
| 497 | (∀ v ∈ D.localPrimes, ↑q ∈ v.asIdeal) ∧ |
| 498 | -- (b) `T` contains `S` |
| 499 | D.localPrimes ⊆ T ∧ |
| 500 | -- (c) no prime of `T` divides `p` |
| 501 | (∀ v ∈ T, ↑p ∉ v.asIdeal) ∧ |
| 502 | -- (d) `U` fixes the `m`-th roots of `q`-units of its field that all `s.φ i` fix |
| 503 | s.FrobeniiDetectRoots ∧ |
| 504 | -- (e) `γ i` is a tame generator of inertia at the `i`-th prime |
| 505 | (∀ i : ι, IsTameGeneratorFor (K := K) m (s.valuationSubring i) (γ i)) ∧ |
| 506 | -- (f) a form that kills the values of the cocycles at the `γ i` comes from a relation off `T` |
| 507 | ∀ ν : ι → CharacterModule M, |
| 508 | (∀ z ∈ D.cocycles (Set.range s.v), ∑ i : ι, ν i (z (γ i)) = 0) → |
| 509 | ∃ y ∈ D.relations T, ∀ i : ι, y (s.φ i) = ν i := by |
| 510 | classical |
| 511 | -- Take `q` large, `O` open normal fixing the `m`-th roots of the `q`-units fixed by `U`, and one |
| 512 | -- split prime for each coset of `O`, with Frobenius element in that coset if it meets `U`. |
| 513 | obtain ⟨q, hq, hqp, hS, exists_spl⟩ := selmerZ1.exists_splitPlaces_frob_mem_coset |
| 514 | D.cyclotomicCharMod_eq_one D.localPrimes |
| 515 | hp.coprime hp.notMem hp.inertiaGroup_le |
| 516 | obtain ⟨O, hO⟩ : ∃ O : OpenNormalSubgroup Gal(Ω/K), |
| 517 | ∀ g h : Gal(Ω/K), (g : Gal(Ω/K) ⧸ O.toSubgroup) = h → |
| 518 | ∀ y : DiscreteUnits Ω, m • y ∈ fixedSUnits q D.subgroup → unitsRep h y = unitsRep g y := |
| 519 | selmerZ1.exists_fix_roots_of_units D.subgroup q |
| 520 | let : Fintype (Gal(Ω/K) ⧸ O.toSubgroup) := ofFinite _ |
| 521 | obtain ⟨I, s, hsp, φ_coset⟩ : ∃ (I : Set Gal(Ω/K)) |
| 522 | (s : SplitPlaces m q I D.subgroup (Gal(Ω/K) ⧸ O.toSubgroup)), |
| 523 | (∀ i : Gal(Ω/K) ⧸ O.toSubgroup, ↑p ∉ (s.v i).asIdeal) ∧ |
| 524 | ∀ g ∈ D.subgroup, (s.φ g : Gal(Ω/K) ⧸ O.toSubgroup) = g := exists_spl O |
| 525 | have exists_tame (i : Gal(Ω/K) ⧸ O.toSubgroup) : |
| 526 | ∃ γ : Gal(Ω/K), IsTameGeneratorFor (K := K) m (s.valuationSubring i) γ := |
| 527 | exists_isTameGeneratorFor Gal(Ω/K) m (s.isPlaceOver i) |
| 528 | choose γ hγ using exists_tame |
| 529 | -- `T` consists of the primes dividing `q` and the primes of the family. |
| 530 | let T : Finset (FinPlace K) := |
| 531 | ((finite_natCast_mem (K := K) q).union (Set.finite_range s.v)).toFinset |
| 532 | have hqT (v : FinPlace K) (hv : ↑q ∈ v.asIdeal) : v ∈ T := by simp [T, hv] |
| 533 | have hsT (i : Gal(Ω/K) ⧸ O.toSubgroup) : s.v i ∈ T := by simp [T] |
| 534 | have hTp (v : FinPlace K) (hv : v ∈ T) : ↑p ∉ v.asIdeal := by |
| 535 | obtain hqv | ⟨i, rfl⟩ : ↑q ∈ v.asIdeal ∨ v ∈ Set.range s.v := by simpa [T] using hv |
| 536 | · exact natCast_notMem_of_coprime hqp hqv |
| 537 | · exact hsp i |
| 538 | have h_detect : s.FrobeniiDetectRoots := fun y hy h_fix g hg ↦ by |
| 539 | -- `g ∈ U` acts on `y` as the Frobenius element in its coset. |
| 540 | rw [hO _ _ (φ_coset g hg) y hy, h_fix] |
| 541 | refine ⟨q, hq, _, inferInstance, I, s, γ, T, hS, fun v hv ↦ hqT v (hS v hv), hTp, h_detect, hγ, |
| 542 | fun ν hν ↦ ?_⟩ |
| 543 | -- The relation is `g ↦ ν (g O)` on `U`; its value at each Frobenius element is the one of `ν`. |
| 544 | refine ⟨_, D.isRelation_ite_form hS hO φ_coset hγ hν hqT hsT, fun i ↦ ?_⟩ |
| 545 | obtain ⟨-, hi_mem⟩ := s.isFrob i |
| 546 | simp only [ite_eq_left hi_mem, D.form_frobenius_eq hS hO φ_coset hγ hν i] |
| 547 | |
| 548 | /-- A case of the formula of Greenberg and Wiles (Darmon–Diamond–Taylor, Theorem 2.19), giving only |
| 549 | a lower bound. Let `K` be totally complex, `M` finite and killed by `ℓ ^ r` with `r ≠ 0`, and let |
| 550 | `σ` fix the `ℓ`-power roots of unity, be central modulo `U` and fix no nonzero element of `M`. If |
| 551 | `p` can be avoided, there is a finite set `T ⊇ S` of primes not dividing `p` with `#Z(∅) · #M ^ |
| 552 | (#S + r₂) ≤ #(relations off T) · #M · ∏_{v ∈ S} #A_v`, where `A_v` (`localCocycles v`) is the group |
| 553 | of allowed local cocycles at `v` and `r₂` is the number of infinite places. The factor `#M` comes |
| 554 | from the `#M` coboundaries, which are the dual cocycles vanishing on `U`. -/ |
| 555 | theorem exists_card_cocycles_le {ℓ r : ℕ} [Fact ℓ.Prime] [IsTotallyComplex K] [Finite M] |
| 556 | (D : RelationSetting M (ℓ ^ r)) (hr : r ≠ 0) {σ : Gal(Ω/K)} (hσ_cyc : cyclotomicChar Ω ℓ σ = 1) |
| 557 | (hσ_comm : ∀ g : Gal(Ω/K), ⁅σ, g⁆ ∈ D.subgroup) (hσ_fix : ∀ a : M, M.ρ σ a = a → a = 0) |
| 558 | {p : ℕ} [NeZero p] (hp : D.Avoids p) : |
| 559 | ∃ T : Finset (FinPlace K), D.localPrimes ⊆ T ∧ (∀ v ∈ T, ↑p ∉ v.asIdeal) ∧ |
| 560 | Nat.card (D.cocycles ∅) * Nat.card M ^ (#D.localPrimes + card (InfinitePlace K)) ≤ |
| 561 | Nat.card (D.relations T) * Nat.card M * ∏ v ∈ D.localPrimes, |
| 562 | Nat.card (D.localCocycles v) := by |
| 563 | obtain ⟨q, _, ι, _, I, s, γ, T, hS, hST, hTp, h_detect, hγ, h_forms⟩ := |
| 564 | D.exists_splitPlaces_forall_exists_mem_relations hp |
| 565 | refine ⟨T, hST, hTp, ?_⟩ |
| 566 | -- There are few trivialised cocycles, hence many forms that kill the values at the `γ i`. |
| 567 | have h_inj : Injective ⇑(M.ρ σ - ((1 : ℕ) : Module.End R M)) := |
| 568 | (injective_iff_map_eq_zero _).2 fun a ha ↦ hσ_fix a (by simpa [sub_eq_zero] using ha) |
| 569 | have h_few : M.HasFewCocycles (PlaceAboveLevel q) I (card ι + 1) := |
| 570 | s.hasFewCocycles_of_central hr ⟨inferInstance, D.nsmul_eq_zero, D.apply_eq_of_mem, h_inj⟩ |
| 571 | hσ_cyc hσ_comm h_detect |
| 572 | let F : Set (ι → M →+ QZ) := {ν | ∀ z ∈ D.cocycles (Set.range s.v), ∑ i, ν i (z (γ i)) = 0} |
| 573 | have h_count : Nat.card (D.cocycles ∅) * Nat.card M ^ (#D.localPrimes + card (InfinitePlace K)) ≤ |
| 574 | Nat.card F * Nat.card M * ∏ v ∈ D.localPrimes, Nat.card (D.localCocycles v) := |
| 575 | selmerZ1.card_relations_ge D.unramified D.isPlaceOver D.allowed D.coboundary_le |
| 576 | D.ρ_eq_one_of_isComplexConj s γ hS h_few |
| 577 | fun z hz i ↦ D.apply_eq_zero_of_notMem hS s (hγ i) hz (Set.notMem_empty _) |
| 578 | -- Every form is the restriction of a relation to the Frobenius elements. |
| 579 | have h_le : Nat.card F ≤ Nat.card (D.relations T) := by |
| 580 | choose y hy y_val using fun ν : F ↦ h_forms ν.val ν.property |
| 581 | refine Nat.card_le_card_of_injective (fun ν : F ↦ ⟨y ν, hy ν⟩) fun ν ν' h ↦ |
| 582 | Subtype.ext (funext fun i ↦ ?_) |
| 583 | rw [← y_val ν i, ← y_val ν' i, Subtype.mk.inj h] |
| 584 | exact h_count.trans (by gcongr) |
| 585 | |
| 586 | end RelationSetting |
| 587 | |
| 588 | end New |
| 589 | |
| 590 | end |