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.Topology.Algebra.Group.Units |
| 4 | import TauCeti.RingTheory.Valuation.Discrete.UnitPart |
| 5 | public import Lib.ClassField.Global.CMSplittingCharacters |
| 6 | import Lib.ClassField.Global.ArtinMap |
| 7 | import Lib.ClassField.Global.Chebotarev |
| 8 | import Lib.ClassField.Global.ExistenceTheorem |
| 9 | import Lib.ClassField.Places.TameInertia |
| 10 | import Lib.General.NumberTheory.FrobeniusOrbits |
| 11 | import Lib.General.NumberTheory.SUnitsAndClassNumber |
| 12 | import TauCeti.Topology.Algebra.ContinuousMonoidHom.Basic |
| 13 | |
| 14 | /-! |
| 15 | # Auxiliary primes, anticyclotomic characters, slopes and ties |
| 16 | |
| 17 | The setting is a CM field `E` and anticyclotomic characters of `Gal(Ω/E)` with values in `ℤ/q`. The |
| 18 | file defines data at auxiliary primes and sets of auxiliary primes. Chebotarev's theorem yields |
| 19 | auxiliary primes carrying such data. |
| 20 | |
| 21 | ## Main definitions and results |
| 22 | |
| 23 | * `New.IsAuxPrimeDataAt`: a prime `P ≠ P̄` of norm `≡ 1 mod q` outside `T`, with a Frobenius |
| 24 | element, a generator of tame inertia and a character to `ℤ/q` that comes from an idele class |
| 25 | character of level `P` (`New.IsFromU1`). |
| 26 | * `New.IsAuxiliary`: finite sets of primes of prime norm, disjoint from their conjugates, with |
| 27 | neither the primes nor their conjugates in `S`. |
| 28 | * `New.Selmer.exists_anticyclotomicChar_of_frob_fixes_roots`: a Galois character that sends the tame |
| 29 | generator above a prime `P` to the generator `1 ∈ ℤ/q` and comes from an idele class character of |
| 30 | level `P`. |
| 31 | * `New.Selmer.exists_isAuxPrimeDataAt`: an auxiliary prime `P` of `E` of prime norm with data |
| 32 | `New.Selmer.AuxPrimeData`. These include a Frobenius element close to a given element of the |
| 33 | normal closure of the inertia groups at the places of a finite set `R` outside `S ∪ S̄` and not |
| 34 | above `ℓ`, and a character of `Gal(Ω/E)` to `ℤ/ℓ^N` that is trivial at this Frobenius element. The |
| 35 | data satisfy `New.IsAuxPrimeDataAt` for every `T` contained in `S ∪ {v ∣ ℓ}`. |
| 36 | * `New.Selmer.IsTiedPrimes`: a set `J` of auxiliary primes with their data (place, tame generator |
| 37 | `γ = tameGenerator`, Frobenius `φ = frob`, character, slopes) and a first prime `P₀`. |
| 38 | * `New.Selmer.tieRelations`: the relations `z γ = s • z φ` imposed on cocycles at the primes of `J` |
| 39 | and their conjugates. |
| 40 | |
| 41 | Notions from other files: |
| 42 | * `New.IsFrob`: `σ` stabilises the valuation subring `A` and `σ • x ≡ x ^ q` modulo the maximal |
| 43 | ideal for all `x ∈ A`. |
| 44 | * `New.IsPlaceOver.tameGenerator`: a chosen generator of tame inertia at a place above `w`, as an |
| 45 | element of the inertia group. |
| 46 | * `New.idOrConjInv`: `g` if `b` is true, and `g^{-c} = (conjGal g)⁻¹` if `b` is false. |
| 47 | |
| 48 | ## Relation to the literature |
| 49 | |
| 50 | See `New.Congruences.Selmer.TwistingTheorem` and `New.Congruences.Selmer.Descent` for related work. |
| 51 | -/ |
| 52 | |
| 53 | @[expose] public section |
| 54 | |
| 55 | noncomputable section |
| 56 | |
| 57 | /-! |
| 58 | ## Auxiliary prime data and auxiliary sets of primes |
| 59 | -/ |
| 60 | |
| 61 | namespace New |
| 62 | |
| 63 | /-- The data at an auxiliary prime of a CM field `E` inside `Ω`, the algebraic closure of `ℚ`: a |
| 64 | place `place` of `Ω`, two elements `tameGenerator` and `frob` of `Gal(Ω/E)`, and a homomorphism |
| 65 | `character` from `Gal(Ω/E)` to `ℤ/q`. -/ |
| 66 | structure Selmer.AuxPrimeData (E : Type*) [Field E] |
| 67 | [EmbeddedNumberField E] [NumberField.IsCMField E] (q : ℕ) where |
| 68 | /-- A place of `Ω`, meant to lie over the auxiliary prime. -/ |
| 69 | place : ClosurePlace |
| 70 | /-- The element meant to be the tame generator of inertia at `place`. -/ |
| 71 | tameGenerator : Gal(Ω/E) |
| 72 | /-- The element meant to be a Frobenius at `place`. -/ |
| 73 | frob : Gal(Ω/E) |
| 74 | /-- The character to `ℤ / q` attached to the prime. -/ |
| 75 | character : Gal(Ω/E) →* Multiplicative (ZMod q) |
| 76 | |
| 77 | /-- For auxiliary prime data `l`: `P ≠ P̄` has norm `≡ 1 mod q` and lies outside `T`, `l.frob` is a |
| 78 | Frobenius and `l.tameGenerator` the chosen tame generator at the place `l.place` over `P`, and the |
| 79 | character `l.character` to `ℤ/q` comes from an idele class character of level `P` (`New.IsFromU1` |
| 80 | for `T` and `{P}`) and takes the value `1 ∈ ℤ/q` at `l.tameGenerator`. -/ |
| 81 | structure IsAuxPrimeDataAt {E : Type} [Field E] |
| 82 | [EmbeddedNumberField E] [NumberField.IsCMField E] (T : Set (FinPlace E)) |
| 83 | (P : FinPlace E) {q : ℕ} (l : Selmer.AuxPrimeData E q) : |
| 84 | Prop extends IsFromU1 T {P} l.character where |
| 85 | /-- The norm of `P` is congruent to `1` modulo `q`. -/ |
| 86 | norm_modEq : P.q ≡ 1 [MOD q] |
| 87 | /-- The valuation subring `l.place` of `Ω` lies over `P`. -/ |
| 88 | isPlaceOver : IsPlaceOver l.place P |
| 89 | /-- `l.frob` is an arithmetic Frobenius at `l.place`: it stabilises `l.place` and acts on residues |
| 90 | as the power `P.q`. -/ |
| 91 | isFrob : IsFrob l.place P.q l.frob |
| 92 | /-- The prime `P` does not lie in `T`. -/ |
| 93 | notMem : P ∉ T |
| 94 | /-- The prime `P` is not its own conjugate. -/ |
| 95 | star_ne : star P ≠ P |
| 96 | /-- `l.tameGenerator` lies in the inertia group of `l.place`, `l.character` sends it to |
| 97 | `1 ∈ ℤ/q`, and it is the chosen generator of tame inertia at `l.place`. -/ |
| 98 | tame_gen : |
| 99 | l.tameGenerator ∈ inertiaGroup Gal(Ω/E) l.place ∧ |
| 100 | l.character l.tameGenerator = Multiplicative.ofAdd 1 ∧ |
| 101 | isPlaceOver.tameGenerator = l.tameGenerator |
| 102 | |
| 103 | /-- A finite set `I` of places is auxiliary for `S` if every place of `I` has prime norm, neither it |
| 104 | nor its conjugate lies in `S`, and its conjugate lies outside `I`. -/ |
| 105 | @[grind] |
| 106 | def IsAuxiliary {E : Type*} [Field E] [EmbeddedNumberField E] [NumberField.IsCMField E] |
| 107 | (S I : Finset (FinPlace E)) : Prop := |
| 108 | ∀ v ∈ I, v ∉ S ∧ v.q.Prime ∧ star v ∉ I ∧ star v ∉ S |
| 109 | |
| 110 | end New |
| 111 | |
| 112 | /-! |
| 113 | ## An anticyclotomic character ramified at a new prime with prescribed Frobenius |
| 114 | |
| 115 | `P` comes from Chebotarev's theorem so that, for a suitable finite set `T` of places, all `T`-units |
| 116 | are `ℓ^N`-th powers modulo `P`. The discrete logarithm at `P` then descends to idele classes. |
| 117 | -/ |
| 118 | |
| 119 | section AnticyclotomicChar |
| 120 | |
| 121 | open NeZero Nat Subgroup QuotientGroup MonoidHom Valued Multiplicative |
| 122 | open scoped Pointwise |
| 123 | |
| 124 | /-- A discrete logarithm at `P`: let `P.q = 1 + q * k` and let the residue of the local unit `u` |
| 125 | generate the units of the residue field. Then some character of `E_Pˣ` to `ℤ/q` sends `u` to the |
| 126 | generator `1` and is trivial on every `t` with `t ≡ 1` or `t ^ k ≡ 1` modulo `P`. -/ |
| 127 | lemma New.Selmer.exists_discreteLog {E : Type*} [Field E] [NumberField E] {P : FinPlace E} |
| 128 | {q k : ℕ} (hk : P.q = 1 + q * k) {u : (LocField P)ˣ} |
| 129 | (hu : u ∈ (LocInt P).unitGroup) |
| 130 | (h_gen : ∀ z : (IsLocalRing.ResidueField (LocInt P))ˣ, |
| 131 | z ∈ zpowers ((LocInt P).unitGroupToResidueFieldUnits ⟨u, hu⟩)) : |
| 132 | ∃ lg : (LocField P)ˣ →* Multiplicative (ZMod q), |
| 133 | lg u = ofAdd 1 ∧ |
| 134 | (∀ t : (LocField P)ˣ, v (t.val - 1) < 1 → lg t = 1) ∧ |
| 135 | ∀ t : (LocField P)ˣ, v ((t ^ k).val - 1) < 1 → lg t = 1 := by |
| 136 | set g : (IsLocalRing.ResidueField (LocInt P))ˣ := (LocInt P).unitGroupToResidueFieldUnits ⟨u, hu⟩ |
| 137 | -- Divide by the uniformiser power before taking the residue. |
| 138 | have hπ : v.ord (uniformizer P).val = 1 := by simp [Valuation.ord_def] |
| 139 | -- Use the residue field of LocInt P, in which the generator g was specified. |
| 140 | let unitPartResidue : (LocField P)ˣ →* (IsLocalRing.ResidueField (LocInt P))ˣ := |
| 141 | v.unitPartResidue (uniformizer P) hπ |
| 142 | have h_residue_one (t : (LocField P)ˣ) (ht : v (t.val - 1) < 1) : |
| 143 | unitPartResidue t = 1 := by |
| 144 | have ht_unit : v t.val = 1 := by simpa using v.map_one_add_of_lt ht |
| 145 | have hu' := (v.mem_unitGroup_iff _ t).2 ht_unit |
| 146 | exact (v.unitPartResidue_coe _ _ ⟨t, hu'⟩).trans |
| 147 | (Units.ext (residue_eq_iff_valuation_sub_lt_one.mpr (by simpa using ht))) |
| 148 | have h_order : orderOf g = q * k := by |
| 149 | rw [orderOf_eq_card_of_forall_mem_zpowers h_gen, card_units, ← tsub_eq_of_eq_add_rev hk, |
| 150 | ← card_ResField P] |
| 151 | rfl |
| 152 | have h_order_dvd : q ∣ orderOf g := by simp [h_order] |
| 153 | obtain ⟨log, h_log⟩ := exists_zmod_log_of_dvd_orderOf h_gen h_order_dvd |
| 154 | -- The local logarithm applies the character sending g to one to the reduced unit part. |
| 155 | let lg : (LocField P)ˣ →* Multiplicative (ZMod q) := log.comp unitPartResidue |
| 156 | have hu_res : unitPartResidue u = g := v.unitPartResidue_coe _ _ ⟨u, hu⟩ |
| 157 | have hlg_u : lg u = ofAdd 1 := by simp [lg, hu_res, h_log] |
| 158 | refine ⟨lg, hlg_u, fun t ht ↦ by simp [lg, h_residue_one t ht], fun t ht ↦ ?_⟩ |
| 159 | -- The reduced unit part is a power of g whose k-th power is one. |
| 160 | obtain ⟨e, he⟩ : ∃ e : ℤ, g ^ e = unitPartResidue t := h_gen (unitPartResidue t) |
| 161 | have h_residue_pow : unitPartResidue t ^ k = 1 := by simpa using h_residue_one _ ht |
| 162 | have h_dvd : (q * k : ℤ) ∣ e * k := by |
| 163 | simpa [← he, ← zpow_natCast, ← zpow_mul, ← orderOf_dvd_iff_zpow_eq_one, h_order] |
| 164 | using h_residue_pow |
| 165 | have hk_ne : k ≠ 0 := fun h ↦ P.one_lt_q.ne' (by simpa [h] using hk) |
| 166 | have hq_dvd : (q : ℤ) ∣ e := Int.dvd_of_mul_dvd_mul_right (Int.natCast_ne_zero.2 hk_ne) h_dvd |
| 167 | simpa [lg, ← he, h_log, ← orderOf_dvd_iff_zpow_eq_one] using hq_dvd |
| 168 | |
| 169 | /-- Let `σ` be a Frobenius at a place above `P`, with `P.q = 1 + n * k`. If `σ` fixes an `n`-th root |
| 170 | of a `T`-unit `u`, where `P ∉ T`, then `u ^ k ≡ 1` modulo `P`. -/ |
| 171 | lemma New.Selmer.valuation_pow_sub_one_lt_one_of_isFrob {E : Type*} [Field E] |
| 172 | [EmbeddedNumberField E] |
| 173 | {A : ClosurePlace} {P : FinPlace E} (hA : IsPlaceOver A P) {σ : Gal(Ω/E)} (hσ : IsFrob A P.q σ) |
| 174 | {n k : ℕ} [NeZero n] (hk : P.q = 1 + n * k) {T : Set (FinPlace E)} (hPT : P ∉ T) {u : Eˣ} |
| 175 | (hu : u ∈ T.unit E) {y : Ω} (hy : y ^ n = algebraMap E Ω u) (hy_fix : σ • y = y) : |
| 176 | v ((ideleAt P (principalIdele u) ^ k).val - 1) < 1 := by |
| 177 | have hy_unit : A y = 1 := by |
| 178 | simpa [ne, ← hy, valuationVia] using hA.valuationVia_eq_one_iff.mpr (hu P hPT) |
| 179 | -- `y = σ y ≡ y ^ P.q = y * u ^ k`, and `y` is a unit at `A` |
| 180 | have h_cong : A (algebraMap E Ω (u ^ k - 1)) < 1 := by |
| 181 | have h_res : A (y - y * algebraMap E Ω (u : E) ^ k) < 1 := by |
| 182 | simpa [hy_fix, hk, hy, pow_add, pow_mul] using hσ.2 y hy_unit.le |
| 183 | simpa [hy_unit, ← mul_one_sub, Valuation.map_sub_swap] using h_res |
| 184 | change v ((algebraMap E (LocField P) u) ^ k - 1) < 1 |
| 185 | simpa using (v_algebraMap_eq_valuation _).trans_lt (hA.isEquiv.lt_one_iff_lt_one.mp h_cong) |
| 186 | |
| 187 | /-- Let the principal ideles and the `T`-ideles (those that are units off `T`) generate all finite |
| 188 | ideles. A continuous character `lg` of `E_Pˣ` that kills the `T`-units extends to a continuous |
| 189 | character of the idele classes which on `T`-ideles is `lg` of the component at `P`. -/ |
| 190 | lemma New.Selmer.exists_ideleClassChar_of_local {E : Type*} [Field E] [NumberField E] |
| 191 | {T : Set (FinPlace E)} (h_gen : principalIdele.range ⊔ idelesUnitOff T = ⊤) {P : FinPlace E} |
| 192 | {C : Type*} [CommGroup C] [TopologicalSpace C] [IsTopologicalGroup C] {lg : (LocField P)ˣ →* C} |
| 193 | (hlg_cont : Continuous lg) (hlg_unit : ∀ x ∈ T.unit E, lg (ideleAt P (principalIdele x)) = 1) : |
| 194 | ∃ θ : (𝔸f E)ˣ →* C, |
| 195 | Continuous θ ∧ |
| 196 | (∀ x : Eˣ, θ (principalIdele x) = 1) ∧ |
| 197 | ∀ a ∈ idelesUnitOff T, θ a = lg (ideleAt P a) := by |
| 198 | -- the `T`-ideles map onto the idele classes with kernel the `T`-units, so `lg` at `P` descends |
| 199 | let cls : (𝔸f E)ˣ →* (𝔸f E)ˣ ⧸ principalIdele.range := mk' principalIdele.range |
| 200 | let π : idelesUnitOff T →* (𝔸f E)ˣ ⧸ principalIdele.range := cls.domRestrict (idelesUnitOff T) |
| 201 | have hπ : Function.Surjective π := |
| 202 | range_eq_top.mp (comap_injective (mk'_surjective _) (by simpa [π, cls] using h_gen)) |
| 203 | let lgT : idelesUnitOff T →* C := (lg.comp (ideleAt P)).domRestrict (idelesUnitOff T) |
| 204 | have h_ker : π.ker ≤ lgT.ker := by |
| 205 | rintro ⟨a, ha⟩ h1 |
| 206 | obtain ⟨x, rfl⟩ : a ∈ principalIdele.range := (eq_one_iff a).mp h1 |
| 207 | exact hlg_unit x (principalIdele_mem_idelesUnitOff.mp ha) |
| 208 | let η : (𝔸f E)ˣ ⧸ principalIdele.range →* C := π.liftOfSurjective hπ ⟨lgT, h_ker⟩ |
| 209 | let θ : (𝔸f E)ˣ →* C := η.comp cls |
| 210 | have hθ_rat (x : Eˣ) : θ (principalIdele x) = 1 := by |
| 211 | simp [θ, show cls (principalIdele x) = 1 from (eq_one_iff _).mpr ⟨x, rfl⟩] |
| 212 | have hθ (a : (𝔸f E)ˣ) (ha : a ∈ idelesUnitOff T) : θ a = lg (ideleAt P a) := by |
| 213 | change η (π ⟨a, ha⟩) = lgT ⟨a, ha⟩ |
| 214 | exact π.liftOfRightInverse_comp_apply _ (Function.rightInverse_surjInv hπ) ⟨lgT, h_ker⟩ ⟨a, ha⟩ |
| 215 | -- `θ` agrees with `lg` at `P` on the open group of `T`-ideles |
| 216 | have hθ_cont_on : ContinuousOn θ (SetLike.coe (idelesUnitOff T)) := |
| 217 | (hlg_cont.comp_continuousOn (by fun_prop)).congr hθ |
| 218 | exact ⟨θ, continuous_of_continuousAt_one _ |
| 219 | (hθ_cont_on.continuousAt ((isOpen_idelesUnitOff T).mem_nhds (one_mem _))), hθ_rat, hθ⟩ |
| 220 | |
| 221 | /-- Let `E` be a CM field, `Ω` the algebraic closure of `ℚ` containing it, and `T` a set of finite |
| 222 | places such that the ideles that are units off `T` (the `T`-ideles) and the principal ideles |
| 223 | generate all finite ideles. Let `P ∉ T`, `P ≠ P̄`, have norm `1 + q * k`, and let a Frobenius |
| 224 | `σ` at a place `A` over `P` fix a `q`-th root of each element of a finite set `s` that generates the |
| 225 | `T`-units. Then there is a continuous character `χ` of `Gal(Ω/E)` with values in `ℤ/q` that takes |
| 226 | the value `1` at `hA.tameGenerator`, the generator of tame inertia at `A` fixed in |
| 227 | `New.IsPlaceOver.tameGenerator`. It satisfies `χ (Art x) = θ (x / x̄)` for the Artin map `Art` and a |
| 228 | character `θ` of the finite ideles that is trivial on `Eˣ` and on the `T`-ideles congruent to `1` at |
| 229 | `P`. -/ |
| 230 | lemma New.Selmer.exists_anticyclotomicChar_of_frob_fixes_roots {E : Type} [Field E] |
| 231 | [EmbeddedNumberField E] [NumberField.IsCMField E] {q k : ℕ} [NeZero q] {T : Set (FinPlace E)} |
| 232 | (h_gen : principalIdele.range ⊔ idelesUnitOff T = ⊤) {s : Finset (Additive (T.unit E))} |
| 233 | (hs : Submodule.span ℤ (s : Set (Additive (T.unit E))) = ⊤) {P : FinPlace E} |
| 234 | (hk : P.q = 1 + q * k) (hPT : P ∉ T) (hP_ne_star : star P ≠ P) |
| 235 | {A : ClosurePlace} (hA : IsPlaceOver A P) {σ : Gal(Ω/E)} (hσ : IsFrob A P.q σ) |
| 236 | (h_fix : ∀ u ∈ s, ∃ y : Ω, y ^ q = algebraMap E Ω (u.toMul : Eˣ) ∧ σ • y = y) : |
| 237 | ∃ (χ : Gal(Ω/E) →* Multiplicative (ZMod q)) (θ : (𝔸f E)ˣ →* Multiplicative (ZMod q)), |
| 238 | Continuous χ ∧ |
| 239 | χ hA.tameGenerator = ofAdd 1 ∧ |
| 240 | (∀ x : Eˣ, θ (principalIdele x) = 1) ∧ |
| 241 | (∀ a ∈ idelesUnitOff T, v ((ideleAt P a).val - 1) < 1 → θ a = 1) ∧ |
| 242 | ∀ (x : (𝔸f E)ˣ) (g : Gal(Ω/E)), artinMap Gal(Ω/E) x = g → χ g = θ (x / star x) := by |
| 243 | -- The discrete logarithm at `P` kills the `T`-units, so extends to a character `θ` of the idele |
| 244 | -- classes; the existence theorem turns `θ (x / star x)` into a Galois character. |
| 245 | obtain ⟨u₀, hu₀⟩ := hA.exists_isTameUnit |
| 246 | have hu₀_unit := hu₀.valuation_eq_one |
| 247 | obtain ⟨hu₀_mem, hu₀_art, hu₀_gen⟩ := hu₀ |
| 248 | obtain ⟨lg, hlg_u₀, hlg_one, hlg_pow⟩ := exists_discreteLog hk hu₀_mem hu₀_gen |
| 249 | have hlg_gen (u : Additive (T.unit E)) (hu : u ∈ s) : |
| 250 | lg (ideleAt P (principalIdele u.toMul)) = 1 := by |
| 251 | obtain ⟨y, hy, hy_fix⟩ := h_fix u hu |
| 252 | exact hlg_pow _ (valuation_pow_sub_one_lt_one_of_isFrob hA hσ hk hPT u.toMul.property hy hy_fix) |
| 253 | let lgT : T.unit E →* Multiplicative (ZMod q) := |
| 254 | (lg.comp (ideleAt P)).comp (principalIdele.domRestrict (T.unit E)) |
| 255 | have h_ker : lgT.ker.toAddSubgroup.toIntSubmodule = ⊤ := by |
| 256 | rw [eq_top_iff, ← hs] |
| 257 | exact Submodule.span_le.2 hlg_gen |
| 258 | have hlg_unit (x : Eˣ) (hx : x ∈ T.unit E) : lg (ideleAt P (principalIdele x)) = 1 := |
| 259 | Submodule.eq_top_iff'.1 h_ker (Additive.ofMul ⟨x, hx⟩) |
| 260 | -- `lg.ker` is open, as it contains all powers with exponent its finite index |
| 261 | have hlg_open := isOpen_of_forall_pow_mem index_ne_zero_of_finite lg.ker.pow_index_mem |
| 262 | have hlg_cont : Continuous lg := lg.continuous_of_isOpen_ker hlg_open |
| 263 | obtain ⟨θ, hθ_cont, hθ_rat, hθ⟩ := exists_ideleClassChar_of_local h_gen hlg_cont hlg_unit |
| 264 | let θ' : (𝔸f E)ˣ →* Multiplicative (ZMod q) := θ.comp (.id _ / starMulAut.toMonoidHom) |
| 265 | have hθ'_rat (x : Eˣ) : θ' (principalIdele x) = 1 := by |
| 266 | have h_conj : star (principalIdele x) = principalIdele (star x) := by |
| 267 | ext1 |
| 268 | simp [principalIdele] |
| 269 | change θ (principalIdele x / star (principalIdele x)) = 1 |
| 270 | rw [h_conj, ← map_div, hθ_rat] |
| 271 | obtain ⟨χ, hχ_cont, hχ⟩ := exists_comp_artinMap Gal(Ω/E) θ' |
| 272 | (hθ_cont.comp (continuous_id.div' continuous_star)) hθ'_rat |
| 273 | refine ⟨χ, θ, hχ_cont, ?_, hθ_rat, fun a ha ha_one ↦ (hθ a ha).trans (hlg_one _ ha_one), hχ⟩ |
| 274 | -- the tame generator is the Artin symbol of `u₀` at `P`; its conjugate has component `1` at `P` |
| 275 | have h_art : artinMap Gal(Ω/E) (locIdele P u₀) = hA.tameGenerator.val := by |
| 276 | rw [artinMap_locIdele, hA.artinAt_eq_of_localArtin_eq hu₀_art] |
| 277 | have h_conj_mem : star (locIdele P u₀) ∈ idelesUnitOff T := by |
| 278 | rw [star_locIdele] |
| 279 | exact locIdele_mem_idelesUnitOff (by simpa using hu₀_unit) |
| 280 | have hθ_conj : θ (star (locIdele P u₀)) = 1 := by |
| 281 | rw [hθ _ h_conj_mem] |
| 282 | simp [star_locIdele, hP_ne_star.symm] |
| 283 | rw [hχ _ _ h_art] |
| 284 | change θ (locIdele P u₀ / star (locIdele P u₀)) = ofAdd 1 |
| 285 | rw [map_div, hθ_conj, div_one, hθ _ (locIdele_mem_idelesUnitOff hu₀_unit)] |
| 286 | simpa using hlg_u₀ |
| 287 | |
| 288 | /-- Let `q` be a unit at all places off `T`, let the places of `R` lie off `T`, and let `y x` be a |
| 289 | `q`-th root of `x`. Then an element of the normal closure of the inertia groups above `R` fixes the |
| 290 | `q`-th roots of unity and the roots `y u` of each element `u` of a set `s` of `T`-units. -/ |
| 291 | lemma New.Selmer.mem_ker_inf_stabilizer_of_mem_normalClosure {E : Type} [Field E] |
| 292 | [EmbeddedNumberField E] |
| 293 | {q : ℕ} [NeZero q] {T R : Set (FinPlace E)} (hRT : ∀ w ∈ R, w ∉ T) |
| 294 | (hq : ∀ (w : FinPlace E) (A : ClosurePlace), w ∉ T → IsPlaceOver A w → A (q : Ω) = 1) |
| 295 | {y : E → Ω} (hy : ∀ x : E, y x ^ q = algebraMap E Ω x) (s : Finset (Additive (T.unit E))) |
| 296 | {z : Gal(Ω/E)} (hz_mem : z ∈ normalClosure (inertiaAbove R)) : |
| 297 | z ∈ (cyclotomicCharMod Ω q).ker ⊓ |
| 298 | ⨅ u : s, MulAction.stabilizer Gal(Ω/E) (y (u.val.toMul : Eˣ)) := by |
| 299 | let U : Subgroup Gal(Ω/E) := |
| 300 | (cyclotomicCharMod Ω q).ker ⊓ ⨅ u : s, MulAction.stabilizer Gal(Ω/E) (y (u.val.toMul : Eˣ)) |
| 301 | -- the inertia groups in question lie in `U` together with all their conjugates |
| 302 | have h_ine : inertiaAbove R ⊆ U.normalCore := by |
| 303 | rintro g ⟨w, hw, A, hA, hg⟩ b |
| 304 | have hA_conj : IsPlaceOver (b • A) w := hA.smul b |
| 305 | have hq_unit : (b • A) (q : Ω) = 1 := hq w _ (hRT w hw) hA_conj |
| 306 | refine ⟨cyclotomicCharMod_eq_one_of_mem_inertiaGroup (hg.conj b) hq_unit, |
| 307 | mem_iInf.2 fun u ↦ ?_⟩ |
| 308 | -- `u` is a unit at `w`, so inertia above `w` fixes its `q`-th roots |
| 309 | have hu_unit : w.valuation E (u.val.toMul : Eˣ) = 1 := u.val.toMul.property w (hRT w hw) |
| 310 | exact Cohomology.inertia_fixes_root_of_unit (hg.conj b) hq_unit (hy _) |
| 311 | (hA_conj.valuationVia_eq_one_iff.2 hu_unit) (by simp) |
| 312 | exact U.normalCore_le (U.normalCore.normalClosure_le_normal h_ine hz_mem) |
| 313 | |
| 314 | /-- Chebotarev gives auxiliary primes with prescribed Frobenius. Let `E` be a CM field in `Ω`, the |
| 315 | algebraic closure of `ℚ`, `ℓ` a prime (`New.ThePrime`), `S` and `R` finite sets of places of `E`, |
| 316 | and `W` a neighbourhood of an element `z` of the normal closure of the inertia groups at the places |
| 317 | of `R` that are outside `S ∪ S̄` and not above `ℓ`. Then there are a prime `P ∉ R ∪ R̄` of prime |
| 318 | norm and data `auxData`, made of a place `place` of `Ω`, elements `tameGenerator` and `frob` of |
| 319 | `Gal(Ω/E)` and a `character` to `ℤ / ℓ ^ N`, such that (a) `frob ∈ W` and `character` is trivial at |
| 320 | `frob`, and (b) `New.IsAuxPrimeDataAt` holds for every `T ⊆ S ∪ {v ∣ ℓ}`. -/ |
| 321 | lemma New.Selmer.exists_isAuxPrimeDataAt {E : Type} [Field E] |
| 322 | [EmbeddedNumberField E] [NumberField.IsCMField E] {ℓ : ℕ} |
| 323 | [ThePrime ℓ] (N : ℕ) (S : Finset (FinPlace E)) {R : Set (FinPlace E)} (hR_fin : R.Finite) |
| 324 | {z : Gal(Ω/E)} {W : Set Gal(Ω/E)} |
| 325 | (hz_mem : z ∈ normalClosure (inertiaAbove (R \ (Set.conjClosure S ∪ placesDividing E ℓ)))) |
| 326 | (hW : W ∈ nhds z) : |
| 327 | ∃ P : FinPlace E, P ∉ R.conjClosure ∧ |
| 328 | P.q.Prime ∧ |
| 329 | ∃ auxData : AuxPrimeData E (ℓ ^ N), |
| 330 | -- (a) |
| 331 | auxData.frob ∈ W ∧ auxData.character auxData.frob = 1 ∧ |
| 332 | -- (b) |
| 333 | ∀ T : Set (FinPlace E), T ⊆ ↑S ∪ placesDividing E ℓ → IsAuxPrimeDataAt T P auxData := by |
| 334 | -- Take a finite `T` containing `S`, its conjugate and the places above `ℓ`, but no other place of |
| 335 | -- `R`, whose ideles map onto the idele classes. The open group `U` fixing the `ℓ ^ N`-th roots of |
| 336 | -- the `T`-units contains `z`; Chebotarev gives `P` with its Frobenii in `U` and in `W`. This |
| 337 | -- gives the character `χ`; correct the Frobenius by tame inertia so that `χ` is trivial at it. |
| 338 | obtain ⟨T, hT, hST, hRT, h_gen⟩ := |
| 339 | exists_sup_idelesUnitOff_eq_top (↑S ∪ placesDividing E ℓ).toFinite.conjClosure R hR_fin |
| 340 | -- `ℓ` is a unit above the places off `T` |
| 341 | have hℓ {w : FinPlace E} {A : ClosurePlace} (hw : w ∉ T) (hA : IsPlaceOver A w) : |
| 342 | A (ℓ ^ N : ℕ) = 1 := by |
| 343 | have hℓw : ↑ℓ ∉ w.asIdeal := fun h ↦ hw (hST (.inl (.inr h))) |
| 344 | simp [hA.valuation_natCast_eq_one_iff, hℓw] |
| 345 | -- the `T`-units are finitely generated, say by `s` |
| 346 | obtain ⟨h_finite, -⟩ := SUnit.dirichlet_unit_theorem (K := E) hT |
| 347 | obtain ⟨s, hs⟩ := h_finite.fg_top |
| 348 | have h_root (x : E) : ∃ y : Ω, y ^ ℓ ^ N = algebraMap E Ω x := |
| 349 | Variety.IsAbsIntegrallyClosed.exists_pow_eq (ℓ ^ N) (algebraMap E Ω x) |
| 350 | choose y hy using h_root |
| 351 | -- `U` fixes the roots of unity of order `ℓ ^ N` and the roots of the generators of the `T`-units |
| 352 | let U : Subgroup Gal(Ω/E) := |
| 353 | (cyclotomicCharMod Ω (ℓ ^ N)).ker ⊓ |
| 354 | ⨅ u : s, MulAction.stabilizer Gal(Ω/E) (y (u.val.toMul : Eˣ)) |
| 355 | have hU_open : IsOpen (SetLike.coe U) := isOpen_ker_cyclotomicCharMod.out.inter |
| 356 | (by simp [isOpen_iInter_of_finite, stabilizer_isOpen_of_isIntegral]) |
| 357 | -- the inertia groups in question sit at places off `T`, so `z` lies in `U` |
| 358 | have hz : z ∈ U := by |
| 359 | refine mem_ker_inf_stabilizer_of_mem_normalClosure ?_ (fun _ _ ↦ hℓ) hy s hz_mem |
| 360 | rintro w ⟨hwR, hw⟩ hwT |
| 361 | have hw_conj : w ∈ (↑S ∪ placesDividing E ℓ).conjClosure := hRT w hwR hwT |
| 362 | simp_all |
| 363 | -- Chebotarev: `P ≠ P̄` off `T ∪ R ∪ R̄` of prime norm, `A` over `P` and a Frobenius `σ` at `A`; |
| 364 | -- every Frobenius at `A` lies in `U` and has `W` as a neighbourhood (`h_frob`) |
| 365 | obtain ⟨P, hP, hp, A, hA, σ, ⟨⟨hσ_cyc, hσ_root⟩, -⟩, hσ, h_frob⟩ := chebotarev |
| 366 | (hU_open.inter (isOpen_setOfPred_eventually_nhds (p := (· ∈ W)))) ⟨z, hz, hW⟩ |
| 367 | ((hT.union hR_fin.conjClosure).union (finite_prime_q_star_eq E)) |
| 368 | have hPT : P ∉ T := fun h ↦ hP (.inl (.inl h)) |
| 369 | have hP_ne_star : star P ≠ P := fun h ↦ hP (.inr ⟨hp, h⟩) |
| 370 | -- `σ` fixes the roots of unity, so the norm of `P` is `1` modulo `ℓ ^ N` |
| 371 | have h_norm : P.q ≡ 1 [MOD ℓ ^ N] := (hσ.mem_ker_cyclotomicCharMod_iff (hℓ hPT hA)).1 hσ_cyc |
| 372 | obtain ⟨k, hk⟩ := (modEq_iff_exists_eq_add P.one_le_q).1 h_norm.symm |
| 373 | obtain ⟨χ, θ, hχ_cont, hχ_tg, hθ_rat, hθ_one, hχ⟩ := |
| 374 | exists_anticyclotomicChar_of_frob_fixes_roots h_gen hs hk hPT hP_ne_star hA hσ |
| 375 | fun u hu ↦ ⟨y (u.toMul : Eˣ), hy _, mem_iInf.1 hσ_root ⟨u, hu⟩⟩ |
| 376 | -- multiply `σ` by a power of the tame generator to get a Frobenius `τ` at which `χ` is trivial |
| 377 | let τ : Gal(Ω/E) := σ * hA.tameGenerator.val ^ (χ σ⁻¹).toAdd.val |
| 378 | have hτ : IsFrob A P.q τ := by simpa using hσ.mul_iff.2 (pow_mem hA.tameGenerator.property _) |
| 379 | have hχτ : χ τ = 1 := by simp [τ, hχ_tg, ← ofAdd_nsmul] |
| 380 | obtain ⟨-, hτW⟩ := h_frob τ hτ |
| 381 | refine ⟨P, fun h ↦ hP (.inl (.inr h)), hp, ⟨A, hA.tameGenerator, τ, χ⟩, hτW.self_of_nhds, hχτ, |
| 382 | fun T' hT' ↦ ?_⟩ |
| 383 | have hT'T : T'.conjClosure ⊆ T := |
| 384 | (Set.union_subset_union hT' (Set.preimage_mono hT')).trans hST |
| 385 | refine ⟨⟨(IsLocallyConstant.iff_continuous χ).2 hχ_cont, θ, hθ_rat, fun a ha ha_one ↦ ?_, hχ⟩, |
| 386 | h_norm, hA, hτ, fun h ↦ hPT (hT'T (.inl h)), hP_ne_star, hA.tameGenerator.property, hχ_tg, rfl⟩ |
| 387 | -- an idele that is a unit off `T'.conjClosure ⊆ T` and `≡ 1` at `P` is killed by `θ` |
| 388 | exact hθ_one a (idelesUnitOff_mono hT'T ha) (ha_one P ⟨rfl, fun h ↦ hPT (hT'T h)⟩) |
| 389 | |
| 390 | end AnticyclotomicChar |
| 391 | |
| 392 | /-! |
| 393 | ## Auxiliary primes with slopes, and ties |
| 394 | |
| 395 | Statements about a prime and its conjugate are indexed by `b : Bool` through `New.idOrConjInv`. |
| 396 | |
| 397 | * `New.Selmer.pointChar`: the character `g ↦ ∏ j, y j ^ h j g` for `q`-th roots of unity `y j`. |
| 398 | -/ |
| 399 | |
| 400 | namespace New.Selmer |
| 401 | |
| 402 | open IsDiscreteValuationRing Module Fintype Matrix.Module |
| 403 | |
| 404 | open scoped Classical in |
| 405 | /-- The set `S ∪ J ∪ J̄` of places, for finite sets `S` and `J`. -/ |
| 406 | @[grind] def unionWithConj {E : Type} [Field E] [EmbeddedNumberField E] [NumberField.IsCMField E] |
| 407 | (S J : Finset (FinPlace E)) : |
| 408 | Finset (FinPlace E) := |
| 409 | S ∪ (J ∪ J.image star) |
| 410 | |
| 411 | /-- The character `g ↦ ∏ j, y j ^ h j g` of `G`, for characters `h j` to `ℤ/q` and `q`-th roots of |
| 412 | unity `y j`. -/ |
| 413 | @[simps] def pointChar {G O σ : Type} [CommRing O] [Fintype σ] [Monoid G] {q : ℕ} [NeZero q] |
| 414 | (h : σ → G →* Multiplicative (ZMod q)) (y : σ → O) (hy : ∀ j : σ, y j ^ q = 1) : G →* O where |
| 415 | toFun g := ∏ j : σ, y j ^ (h j g).toAdd.val |
| 416 | map_one' := by simp |
| 417 | map_mul' := by simp [ZMod.val_add, ← pow_eq_pow_mod, hy, pow_add, Finset.prod_mul_distrib] |
| 418 | |
| 419 | /-- The reduction of the matrix representation `ρ` modulo `l ^ M`. -/ |
| 420 | def reduceModPow {G O n : Type} [CommRing O] [Fintype n] [DecidableEq n] [Monoid G] (l M : ℕ) |
| 421 | (ρ : G →* Matrix n n O) : G →* Matrix n n (QuotSpan (l ^ M : O)) := |
| 422 | (algebraMap O (QuotSpan (l ^ M : O))).mapMatrix.toMonoidHom.comp ρ |
| 423 | |
| 424 | open scoped Classical in |
| 425 | /-- A set of tied primes for the finite set `S₀` of places records the auxiliary primes chosen so |
| 426 | far: a set `J` that consists of a first prime `P₀`, whose Frobenius element lies in `W`, and later |
| 427 | primes. Each prime `v ∈ J` carries the data `(x v).1` (place, Frobenius element, tame generator, |
| 428 | character to `ℤ / ℓ ^ N`) and a slope `(x v).2 i` for each datum `i`. One set `J` serves all data: |
| 429 | the primes chosen for datum `i` are those with a nonzero slope, and there the Frobenius elements |
| 430 | satisfy the given condition `U i` (typically: they act trivially on the datum `i`). -/ |
| 431 | structure IsTiedPrimes (ℓ : ℕ) {E ι O : Type} [Field E] |
| 432 | [EmbeddedNumberField E] [NumberField.IsCMField E] [CommRing O] |
| 433 | (S₀ : Finset (FinPlace E)) (U : ι → Gal(Ω/E) → Prop) (W : Set Gal(Ω/E)) (N : ℕ) |
| 434 | (P₀ : FinPlace E) (J : Finset (FinPlace E)) |
| 435 | (x : FinPlace E → AuxPrimeData E (ℓ ^ N) × (ι → O)) : Prop where |
| 436 | /-- `J` is a set of auxiliary primes for `S₀`. -/ |
| 437 | auxiliary : IsAuxiliary S₀ J |
| 438 | /-- The first prime `P₀` lies in `J`. -/ |
| 439 | first_mem : P₀ ∈ J |
| 440 | /-- At each `v ∈ J` the first component is a place over `v`, a Frobenius, the tame generator |
| 441 | and the character attached to them. -/ |
| 442 | isAuxPrimeDataAt : ∀ v ∈ J, IsAuxPrimeDataAt (placesDividing E ℓ) v (x v).1 |
| 443 | /-- For `v ≠ P₀` in `J`, the Frobenius at `v` has value `1` in `ℤ / ℓ ^ N` under the character of |
| 444 | `P₀` and value `0` under the characters of the other primes of `J`. -/ |
| 445 | char_frob_eq_ite : ∀ v ∈ J, v ≠ P₀ → ∀ w ∈ J, |
| 446 | (x w).1.character (x v).1.frob = if w = P₀ then Multiplicative.ofAdd 1 else 1 |
| 447 | /-- The Frobenius element of the first prime lies in `W`. -/ |
| 448 | first_frob_mem : (x P₀).1.frob ∈ W |
| 449 | /-- The first prime has slope `0` for every datum. -/ |
| 450 | first_slope : (x P₀).2 = 0 |
| 451 | /-- The primes of `S₀` and the later primes do not divide the norm of the first prime, so that the |
| 452 | Greenberg–Wiles count can choose its extra primes away from the first prime. -/ |
| 453 | notMem_placesDividing : ∀ v : FinPlace E, v ∈ S₀ ∨ v ∈ J ∧ v ≠ P₀ → v ∉ placesDividing E P₀.q |
| 454 | /-- Where the slope for datum `i` at `v` is not zero, `U i` holds at `φ_v = (x v).1.frob` and at |
| 455 | `φ_v^{-c}`. -/ |
| 456 | frob_of_slope_ne_zero : ∀ v ∈ J, ∀ i : ι, |
| 457 | (x v).2 i ≠ 0 → U i (x v).1.frob ∧ U i (conjGal (x v).1.frob)⁻¹ |
| 458 | |
| 459 | /-- If a tied prime has a nonzero slope, its Frobenius `φ_v` and the inverse `φ_v^{-c}` of its |
| 460 | conjugate satisfy the chosen condition. -/ |
| 461 | lemma IsTiedPrimes.apply_idOrConjInv_of_slope_ne_zero {ℓ : ℕ} {E ι O : Type} [Field E] |
| 462 | [EmbeddedNumberField E] [NumberField.IsCMField E] |
| 463 | [CommRing O] {S₀ : Finset (FinPlace E)} {U : ι → Gal(Ω/E) → Prop} {W : Set Gal(Ω/E)} {N : ℕ} |
| 464 | {P₀ : FinPlace E} {J : Finset (FinPlace E)} |
| 465 | {x : FinPlace E → AuxPrimeData E (ℓ ^ N) × (ι → O)} (hJ : IsTiedPrimes ℓ S₀ U W N P₀ J x) |
| 466 | {v : FinPlace E} (hv : v ∈ J) {i : ι} (h_slope : (x v).2 i ≠ 0) (b : Bool) : |
| 467 | U i (idOrConjInv b (x v).1.frob) := by |
| 468 | obtain ⟨h_frob, h_conj⟩ := hJ.frob_of_slope_ne_zero v hv i h_slope |
| 469 | cases b |
| 470 | exacts [h_conj, h_frob] |
| 471 | |
| 472 | /-- The ties `z(γ_w) = s • z(φ_w)` of datum `i`, for `v ∈ J` with slope `s = (x v).2 i` and |
| 473 | `w = v, v̄`, as formal combinations of group elements with matrix coefficients, where |
| 474 | `γ_v = (x v).1.tameGenerator` and `φ_v = (x v).1.frob`; at `v̄` the elements are `γ_v^{-c}` and |
| 475 | `φ_v^{-c}`. -/ |
| 476 | def tieRelations {E ι O n : Type} [Field E] [EmbeddedNumberField E] [NumberField.IsCMField E] |
| 477 | [CommRing O] [DecidableEq n] {q : ℕ} |
| 478 | (J : Finset (FinPlace E)) (x : FinPlace E → AuxPrimeData E q × (ι → O)) (i : ι) : |
| 479 | Set (Gal(Ω/E) →₀ Matrix n n O) := |
| 480 | Set.range fun p : J × Bool ↦ |
| 481 | Finsupp.single (idOrConjInv p.2 (x p.1).1.tameGenerator) 1 - |
| 482 | Finsupp.single (idOrConjInv p.2 (x p.1).1.frob) ((x p.1).2 i • 1) |
| 483 | |
| 484 | /-- If `τ` is inertial at a place over `P` and `S` contains `P` and its conjugate, then `τ` and |
| 485 | `τ^{-c}` (the two values of `New.idOrConjInv b τ`) lie in inertia groups above `S`. -/ |
| 486 | lemma idOrConjInv_mem_inertiaAbove {E : Type} [Field E] |
| 487 | [EmbeddedNumberField E] [NumberField.IsCMField E] {A : ClosurePlace} |
| 488 | {P : FinPlace E} {S : Set (FinPlace E)} {τ : Gal(Ω/E)} (hA : IsPlaceOver A P) |
| 489 | (hτ : τ ∈ inertiaGroup Gal(Ω/E) A) (hS : P ∈ S ∧ star P ∈ S) (b : Bool) : |
| 490 | idOrConjInv b τ ∈ inertiaAbove S := by |
| 491 | cases b |
| 492 | · -- The element `τ^c` is inertial at the conjugate place, over `star P`; so is its inverse. |
| 493 | exact ⟨star P, hS.2, conjPlace A, hA.conjPlace_star, inv_mem hτ.conjPlace_conjGal⟩ |
| 494 | · exact ⟨P, hS.1, A, hA, hτ⟩ |
| 495 | |
| 496 | end New.Selmer |
| 497 | |
| 498 | end |