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.Topology.Algebra.Group.Units |
| 6 | import TauCeti.NumberTheory.NumberField.ComplexConjugation.AlgebraicClosure |
| 7 | import TauCeti.RingTheory.DedekindDomain.Different.Basic |
| 8 | public import Lib.GaloisRep.BaseChange.CommutingHeckeFamilies |
| 9 | public import Lib.GaloisRep.Main.SelmerModules |
| 10 | public import Lib.Weil.Construction.WeilData |
| 11 | import Lib.Adelic.Adeles.LocalFactors |
| 12 | import Lib.Adelic.Adeles.StrongApproximation |
| 13 | import Lib.ClassField.Global.AlbertBrauerHasseNoether |
| 14 | import Lib.ClassField.Global.ArtinMap |
| 15 | import Lib.ClassField.Global.ArtinReciprocity |
| 16 | public import Lib.ClassField.Global.CMSplittingCharacters -- shake: keep (needed public by an exposed definition) |
| 17 | import Lib.ClassField.Global.Chebotarev |
| 18 | import Lib.ClassField.Global.ExistenceTheorem |
| 19 | import Lib.ClassField.Global.NormTheorems |
| 20 | import Lib.General.NumberTheory.FrobeniusOrbits |
| 21 | import Lib.General.NumberTheory.SUnitsAndClassNumber |
| 22 | import TauCeti.RingTheory.DedekindDomain.Different.Tower |
| 23 | import TauCeti.Topology.Algebra.ContinuousMonoidHom.Basic |
| 24 | |
| 25 | /-! |
| 26 | # Grunwald's theorem in prime degree and CM steps with prescribed local behaviour |
| 27 | |
| 28 | The file studies continuous characters `χ : Γ → ℚ/ℤ` of absolute Galois groups `Γ = Gal(Ω/E)` (`Ω` |
| 29 | the algebraic closure; `New.EmbeddedNumberField E`: a number field with an embedding into `Ω`) of CM |
| 30 | fields `E` that are killed by a prime `p`, and the cyclic extensions of degree `p` they cut out. |
| 31 | Grunwald's theorem in prime degree produces such characters with prescribed local behaviour. If `E` |
| 32 | is stably unramified (here: `New.HasPrimitiveRoot5040 E`, a primitive 5040th root of unity lies in |
| 33 | `E`) and the symmetrised character is nonzero and kills inertia above `p`, the field cut out by the |
| 34 | symmetrised character is a step of degree `p` over `E`. Weil data lift to stably unramified CM |
| 35 | extensions `L` whose CM type restricts to that of `E` and whose relative different is prime to the |
| 36 | places fixed by conjugation. Together these results give a step of prime degree with Weil data and a |
| 37 | prescribed completion at a split place. |
| 38 | |
| 39 | ## Main definitions and results |
| 40 | |
| 41 | * `New.grunwald`: a character of the finite ideles of a totally complex field, killed by `p`, agrees |
| 42 | with a Galois character killed by `p` at finitely many given places, and on the units at every |
| 43 | place whose norm is not prime. |
| 44 | * `New.QZChar.symmetrize`, `New.QZChar.abelianLift_symmetrize`: for a CM field, the character |
| 45 | `g ↦ χ g + χ (gᶜ)`; on the Artin symbol of an idele `a` it is `χ a + χ (star a)`. |
| 46 | * `New.QZChar.stepField`: the fixed field of the kernel of `New.QZChar.symmetrize χ`. Instances show |
| 47 | that it is CM, that a CM type of `E` extends to it (`New.CMTypeOver`) and that it inherits |
| 48 | `New.HasPrimitiveRoot5040`. |
| 49 | * `New.isStep_stepField`: it is a step of degree `p` over `E` if `New.HasPrimitiveRoot5040 E` holds, |
| 50 | `χ` is killed by a prime `p`, and `New.QZChar.symmetrize χ` is not zero and kills inertia above |
| 51 | `p`. |
| 52 | * `New.nonempty_weilData_of_not_dvd_differentIdeal`: if `L` also satisfies |
| 53 | `New.HasPrimitiveRoot5040`, then `L` has Weil data; in the construction `j` stays, `υ` is composed |
| 54 | with the norm, and a new idele absorbs the relative different, which is assumed prime to the |
| 55 | places fixed by conjugation. |
| 56 | * `New.GaloisRep.exists_isStepOfLocalChar`, `New.GaloisRep.exists_step_of_local_char`: given a split |
| 57 | place `w` below `A` and a nontrivial tame character `χ` of `E_wˣ` killed by a prime `p`, a step |
| 58 | `E' / E` of degree `p`, again with Weil data, cut out by the symmetrisation of a Galois character |
| 59 | `ν` that is trivial at `w` and has symmetrisation `χ` there; the only place of `E'` above `w` is |
| 60 | split and lies under `A`. |
| 61 | |
| 62 | Notions from other files: |
| 63 | * `New.locIdele`: The homomorphism sending x ∈ K_v^× to the finite idele with component x at v and 1 |
| 64 | elsewhere; `New.ideleAt v` takes the component at v. |
| 65 | * `New.CMTypeOver`: a CM type of L that restricts to the given CM type of E; the embedding chosen at |
| 66 | a place extends the one chosen at the place below. |
| 67 | * `New.WeilData`: Weil data on a stably unramified E. They consist of ȷ in E with ȷ = −ȷ̄, Im τȷ > 0 |
| 68 | for every τ in the CM type and (1 − ȷ⁻¹)/2 integral; a finite idele α for which the completed |
| 69 | integers Ô are self-dual under (z, u) ↦ ψ_f(ȷαᾱzu); and a splitting character υ equal to −1 at |
| 70 | uniformisers of the places w with w = w̄. |
| 71 | |
| 72 | ## Relation to the literature |
| 73 | |
| 74 | Known result: Grunwald–Wang theorem in prime exponent. It is proved over a totally complex field, |
| 75 | and the character also agrees with the given one on units at all primes of degree above one. It |
| 76 | yields a CM extension of prime degree with prescribed tame completion at a split place. Source: |
| 77 | Artin–Tate, Class Field Theory (1968), ch. X; S. Wang, Grunwald–Wang theorem, an effective version, |
| 78 | arXiv 1401.0389 (2014). |
| 79 | |
| 80 | See also `Lib.Weil.MixedModel.ZeroTerm`. |
| 81 | -/ |
| 82 | |
| 83 | @[expose] public section |
| 84 | |
| 85 | namespace New |
| 86 | |
| 87 | /-! |
| 88 | ## Grunwald's theorem in prime degree and the symmetrised character |
| 89 | |
| 90 | `New.QZChar Γ` is the group of continuous characters `Γ → ℚ/ℤ`, `New.QZChar.abelianLift χ` the |
| 91 | induced map on `Γ^ab` (written multiplicatively), `New.artinMap` the global Artin map on finite |
| 92 | ideles. |
| 93 | -/ |
| 94 | |
| 95 | section Grunwald |
| 96 | |
| 97 | open NumberField QuotientGroup Subgroup QZChar Valued QZ Algebra Nat SUnit MonoidHom Fact |
| 98 | |
| 99 | variable {E : Type} [Field E] [NumberField E] [Algebra E Ω] |
| 100 | |
| 101 | /-- Let `p` be prime, `x ∈ Eˣ` not the `p`-th power of an element of `Eˣ`, and `r ∈ Ω` a `p`-th root |
| 102 | of `x`. Then some element of the absolute Galois group of `E` that fixes the `p`-th roots of unity |
| 103 | (it lies in the kernel of the cyclotomic character `New.cyclotomicCharMod Ω p`) moves `r`. -/ |
| 104 | private lemma exists_mem_ker_cyclotomicCharMod_smul_ne_of_forall_pow_ne {p : ℕ} [Fact p.Prime] |
| 105 | {x : Eˣ} (hx : ∀ z : Eˣ, z ^ p ≠ x) {r : Ω} (hr : r ^ p = algebraMap E Ω x) : |
| 106 | ∃ g : Gal(Ω/E), g ∈ (cyclotomicCharMod Ω p).ker ∧ g • r ≠ r := by |
| 107 | -- Otherwise `r` lies in the field `E(μ_p)` fixed by the kernel, whose degree over `E` is prime |
| 108 | -- to `p`; the norm of `r` then shows that `x` is a `p`-th power in `E`. |
| 109 | by_contra! h_fix |
| 110 | have hp : p.Prime := Fact.out |
| 111 | let H : Subgroup Gal(Ω/E) := (cyclotomicCharMod Ω p).ker |
| 112 | have h_coprime : (Module.finrank E (fixedFieldOf H)).Coprime p := by |
| 113 | have h_dvd : Module.finrank E (fixedFieldOf H) ∣ p - 1 := |
| 114 | calc Module.finrank E (fixedFieldOf H) |
| 115 | _ = Nat.card (cyclotomicCharMod Ω p).range := by rw [finrank_fixedFieldOf, index_ker] |
| 116 | _ ∣ Nat.card (ZMod p)ˣ := card_subgroup_dvd_card _ |
| 117 | _ = p - 1 := by rw [card_units, Nat.card_zmod] |
| 118 | exact .of_dvd_left h_dvd (by simp [hp.one_le]) |
| 119 | let root : fixedFieldOf H := ⟨r, fun g ↦ h_fix g g.prop⟩ |
| 120 | have h_root : root ^ p = algebraMap E (fixedFieldOf H) x := Subtype.ext hr |
| 121 | have h_norm : norm E root ^ p = (x : E) ^ Module.finrank E (fixedFieldOf H) := by |
| 122 | rw [← map_pow, h_root, Algebra.norm_algebraMap] |
| 123 | obtain ⟨z, hz : z ^ p = (x : E)⟩ := |
| 124 | (pow_mem_range_pow_of_coprime h_coprime (x : E)).mp ⟨norm E root, h_norm⟩ |
| 125 | exact hx (x.ofPow z hp.ne_zero hz) (Units.ext hz) |
| 126 | |
| 127 | /-- Let `E` be totally complex and `ψ` a character of the finite ideles with values in `ℚ/ℤ` |
| 128 | (written multiplicatively), with open kernel and killed by `p`. Let `T` be a set of finite places |
| 129 | such that the principal ideles and the ideles that are units outside `T` (`New.idelesUnitOff T`) |
| 130 | generate all finite ideles, and let `U` be an open subgroup of the finite ideles that contains the |
| 131 | `p`-th powers of the ideles that are units outside `T`. If `ψ` is trivial on the principal ideles |
| 132 | in `U`, then some continuous character `χ` of the absolute Galois group, killed by `p`, has |
| 133 | `χ ∘ Art = ψ` on `U`. -/ |
| 134 | private lemma exists_nsmul_eq_zero_abelianLift_artinMap_eq_of_apply_principalIdele_eq_one |
| 135 | [IsTotallyComplex E] {p : ℕ} (ψ : (𝔸f E)ˣ →* Multiplicative QZ) (hψ_open : ψ.ker.IsOpen) |
| 136 | (hψ_pow : ∀ a : (𝔸f E)ˣ, ψ a ^ p = 1) {T : Set (FinPlace E)} |
| 137 | (h_sup : principalIdele.range ⊔ idelesUnitOff T = ⊤) {U : Subgroup (𝔸f E)ˣ} |
| 138 | (hU_open : U.IsOpen) (h_pow_mem : ∀ b ∈ idelesUnitOff T, b ^ p ∈ U) |
| 139 | (h_principal : ∀ x : Eˣ, principalIdele x ∈ U → ψ (principalIdele x) = 1) : |
| 140 | ∃ χ : ↥(QZChar Gal(Ω/E)), |
| 141 | p • χ = 0 ∧ ∀ a ∈ U, abelianLift χ (artinMap Gal(Ω/E) a) = ψ a := by |
| 142 | -- As `ℚ/ℤ` is divisible, `ψ` on `U` extends to a character `θ` of the finite ideles that kills |
| 143 | -- the principal ideles; by the existence theorem `θ` comes from a Galois character. |
| 144 | have h_kill (a : U) (ha : U.subtype a ∈ principalIdele.range) : ψ.domRestrict U a = 1 := by |
| 145 | obtain ⟨x, hx : principalIdele x = a⟩ := ha |
| 146 | change ψ a = 1 |
| 147 | simpa [hx] using h_principal x (by simp [hx]) |
| 148 | obtain ⟨θ, hθ_rat : principalIdele.range ≤ θ.ker, hθ : ∀ a : U, θ a = ψ a⟩ := |
| 149 | -- the instance `DivisibleBy QZ ℤ` is not found for `Additive (Multiplicative QZ)`: pass it |
| 150 | exists_monoidHom_extend (C := Multiplicative QZ) (d := instDivisibleByQZInt) U.subtype |
| 151 | (ψ.domRestrict U) principalIdele.range h_kill |
| 152 | -- `θ` is continuous: its kernel contains the open subgroup `ker ψ ⊓ U`. |
| 153 | have h_le_ker : ψ.ker ⊓ U ≤ θ.ker := fun a ⟨ha_ker, ha_U⟩ ↦ (hθ ⟨a, ha_U⟩).trans ha_ker |
| 154 | have hθ_cont : Continuous θ := |
| 155 | θ.continuous_of_isOpen_ker ((ψ.ker ⊓ U).isOpen_mono h_le_ker (hψ_open.inter hU_open)) |
| 156 | obtain ⟨μ, hμ_cont : Continuous μ, |
| 157 | hμ : ∀ (a : (𝔸f E)ˣ) (g : Gal(Ω/E)), artinMap Gal(Ω/E) a = g → μ g = θ a⟩ := |
| 158 | exists_comp_artinMap Gal(Ω/E) θ hθ_cont fun x ↦ hθ_rat ⟨x, rfl⟩ |
| 159 | -- `θ ^ p` kills the principal ideles and the ideles that are units outside `T` (their `p`-th |
| 160 | -- powers lie in `U`), and these two subgroups generate all finite ideles. |
| 161 | have hθ_pow (a : (𝔸f E)ˣ) : θ a ^ p = 1 := by |
| 162 | have h_rat : principalIdele.range ≤ (θ ^ p).ker := fun b hb ↦ by |
| 163 | simp [mem_ker.mp (hθ_rat hb)] |
| 164 | have h_units : idelesUnitOff T ≤ (θ ^ p).ker := fun b hb ↦ by |
| 165 | have hθ_b : θ (b ^ p) = ψ (b ^ p) := hθ ⟨b ^ p, h_pow_mem b hb⟩ |
| 166 | simpa [hψ_pow] using hθ_b |
| 167 | simpa using sup_le h_rat h_units (h_sup.ge (mem_top a)) |
| 168 | refine ⟨⟨μ, hμ_cont, μ.map_mul⟩, ?_, fun a ha ↦ ?_⟩ |
| 169 | · -- at `g`, `p • χ` takes the value `θ a ^ p = 1`, for an idele `a` whose Artin symbol is `g` |
| 170 | refine Subtype.ext (funext fun g ↦ ?_) |
| 171 | obtain ⟨a, ha⟩ := artinMap_surjective _ (g : TopologicalAbelianization Gal(Ω/E)) |
| 172 | change μ g ^ p = 1 |
| 173 | rw [hμ a g ha, hθ_pow] |
| 174 | · obtain ⟨g, hg⟩ := mk_surjective (artinMap Gal(Ω/E) a) |
| 175 | calc _ = μ g := (congrArg _ hg.symm).trans (abelianLift_mk _ g) |
| 176 | _ = θ a := hμ a g hg.symm |
| 177 | _ = ψ a := hθ ⟨a, ha⟩ |
| 178 | |
| 179 | omit [Algebra E Ω] in |
| 180 | /-- The idele `New.locIdele u x`, with single component `x` at `u`, is a unit outside `T` if `u ∈ T` |
| 181 | or if `x` is a local unit (`v x = 1`). -/ |
| 182 | private lemma locIdele_mem_idelesUnitOff_of_mem_or_v_eq_one {T : Set (FinPlace E)} {u : FinPlace E} |
| 183 | {x : (LocField u)ˣ} (hu : u ∈ T ∨ v x.val = 1) : locIdele u x ∈ idelesUnitOff T := by |
| 184 | rcases hu with hu_T | hx_unit |
| 185 | · refine mem_idelesUnitOff.mpr fun w hw ↦ ?_ |
| 186 | rw [locIdele_apply_of_ne (ne_of_mem_of_not_mem hu_T hw).symm x, map_one] |
| 187 | · exact locIdele_mem_idelesUnitOff hx_unit |
| 188 | |
| 189 | omit [Algebra E Ω] in |
| 190 | /-- Let `S ⊆ T`, let each `w q` be a place outside `T` of prime norm, and let `u` be a place of `S`, |
| 191 | or a place of non-prime norm at which `x` is a local unit. Then the idele `New.locIdele u x`, whose |
| 192 | only component different from `1` is `x` at `u`, is a unit outside `T` and a `p`-th power at every |
| 193 | place `w q`. -/ |
| 194 | private lemma locIdele_mem_inf_iInf_pow {p : ℕ} {ι : Type} {S T : Set (FinPlace E)} (hST : S ⊆ T) |
| 195 | (w : ι → FinPlace E) (hwT : ∀ q, w q ∉ T) (hw_prime : ∀ q, (w q).q.Prime) |
| 196 | (u : FinPlace E) (x : (LocField u)ˣ) |
| 197 | (hu : u ∈ S ∨ ¬ u.q.Prime ∧ v x.val = 1) : |
| 198 | locIdele u x ∈ idelesUnitOff T ⊓ ⨅ q, (powMonoidHom p).range.comap (ideleAt (w q)) := by |
| 199 | -- `u` is none of the `w q`, which lie outside `T` and have prime norm |
| 200 | have h_ne (q : ι) : w q ≠ u := by |
| 201 | rintro rfl |
| 202 | rcases hu with hu_S | ⟨hu_not_prime, -⟩ |
| 203 | · exact hwT q (hST hu_S) |
| 204 | · exact hu_not_prime (hw_prime q) |
| 205 | refine ⟨locIdele_mem_idelesUnitOff_of_mem_or_v_eq_one (hu.imp (fun hu_S ↦ hST hu_S) And.right), |
| 206 | mem_iInf.mpr fun q ↦ ?_⟩ |
| 207 | change ideleAt (w q) (locIdele u x) ∈ (powMonoidHom p).range |
| 208 | rw [ideleAt_locIdele_of_ne (h_ne q) x] |
| 209 | exact one_mem _ |
| 210 | |
| 211 | /-- Grunwald's theorem in prime exponent. Let `E` be totally complex, `p` prime, `S` a finite set of |
| 212 | finite places, and `ψ` a character of the finite ideles with values in `ℚ/ℤ` (written |
| 213 | multiplicatively), with open kernel and killed by `p`; it need not be trivial on `Eˣ`. Then some |
| 214 | continuous character `χ` of the absolute Galois group, killed by `p`, has `χ ∘ Art = ψ` on the |
| 215 | ideles `New.locIdele u x` with single component `x` at `u`. This holds for all `x` if `u ∈ S`, and |
| 216 | for local units `x` (`v x = 1`) if the norm `u.q` of `u` (the size of its residue field) is not |
| 217 | prime. -/ |
| 218 | lemma grunwald [IsTotallyComplex E] {p : ℕ} {S : Set (FinPlace E)} (hp : p.Prime) |
| 219 | (hS : Set.Finite S) (ψ : (𝔸f E)ˣ →* Multiplicative QZ) (hψ_open : ψ.ker.IsOpen) |
| 220 | (hψ_pow : ∀ a : (𝔸f E)ˣ, ψ a ^ p = 1) : |
| 221 | ∃ χ : ↥(QZChar Gal(Ω/E)), |
| 222 | -- (a) the Galois character `χ` is killed by `p` |
| 223 | p • χ = 0 ∧ |
| 224 | -- (b) `χ` agrees with `ψ` at places of `S` and on units at places of non-prime norm |
| 225 | ∀ (u : FinPlace E) (x : (LocField u)ˣ), |
| 226 | u ∈ S ∨ ¬u.q.Prime ∧ v x.val = 1 → |
| 227 | abelianLift χ (artinMap Gal(Ω/E) (locIdele u x)) = ψ (locIdele u x) := by |
| 228 | -- Enlarge `S` to `T` such that the principal ideles and the units outside `T` generate. For each |
| 229 | -- class `q` of `T`-units modulo `p`-th powers that `ψ` does not kill, Chebotarev gives a place |
| 230 | -- `w q` where `q` is not a local `p`-th power. Then `ψ` kills the principal ideles in the open |
| 231 | -- group `U` of ideles that are units outside `T` and `p`-th powers at every `w q`, and |
| 232 | -- `exists_nsmul_eq_zero_abelianLift_artinMap_eq_of_apply_principalIdele_eq_one` applies to `U`. |
| 233 | have h_fact : Fact p.Prime := ⟨hp⟩ |
| 234 | obtain ⟨T, hT_fin, hST, h_sup : principalIdele.range ⊔ idelesUnitOff T = ⊤⟩ := |
| 235 | exists_superset_sup_idelesUnitOff_eq_top hS |
| 236 | -- the `T`-units are finitely generated, so there are finitely many classes `q` |
| 237 | obtain ⟨h_fg : Module.Finite ℤ (Additive (T.unit E)), -⟩ := dirichlet_unit_theorem hT_fin |
| 238 | let N : Subgroup (T.unit E) := (powMonoidHom p).range |
| 239 | obtain ⟨h_index_ne : N.index ≠ 0, -⟩ := |
| 240 | index_range_pow_eq (Y := T.unit E) (n := p) (mod_cast cokerKerIndex_eq_pow_finrank) |
| 241 | have h_N_fin : N.FiniteIndex := N.finiteIndex_iff.mpr h_index_ne |
| 242 | let H : Subgroup Gal(Ω/E) := (cyclotomicCharMod Ω p).ker |
| 243 | -- `r a`: a chosen `p`-th root of `a` in `Ω` |
| 244 | choose r hr using Variety.IsAbsIntegrallyClosed.exists_pow_eq (A := Ω) p |
| 245 | -- An `x` not killed by `ψ` is no `p`-th power in `E`, so some element of `H` moves its root. |
| 246 | have h_moves (x : Eˣ) (hx : ψ (principalIdele x) ≠ 1) : |
| 247 | ((H : Set Gal(Ω/E)) \ {g | g • r (algebraMap E Ω x) = r (algebraMap E Ω x)}).Nonempty := by |
| 248 | have h_not_pow : ∀ z : Eˣ, z ^ p ≠ x := fun z hz ↦ |
| 249 | hx (by rw [← hz, map_pow, map_pow, hψ_pow]) |
| 250 | exact exists_mem_ker_cyclotomicCharMod_smul_ne_of_forall_pow_ne h_not_pow (hr _) |
| 251 | -- `Q`: the classes of `T`-units modulo `p`-th powers whose chosen representative `ψ` does not |
| 252 | -- kill; `ρ q`: the chosen root of that representative; `W q`: the elements of `H` that move it |
| 253 | let Q : Type := {q : T.unit E ⧸ N // ψ (principalIdele q.out) ≠ 1} |
| 254 | let ρ (q : Q) : Ω := r (algebraMap E Ω (q.val.out : Eˣ)) |
| 255 | let W (q : Q) : Set Gal(Ω/E) := (H : Set Gal(Ω/E)) \ {g | g • ρ q = ρ q} |
| 256 | -- Chebotarev: for each `q` a place `w q ∉ T` of prime norm, a place `A q` of `Ω` over it, and a |
| 257 | -- Frobenius `σ q` at `A q` that lies in `W q`. |
| 258 | have h_cheb (q : Q) : ∃ w ∉ T, w.q.Prime ∧ ∃ A : ClosurePlace, IsPlaceOver A w ∧ |
| 259 | ∃ σ ∈ W q, IsFrob A w.q σ ∧ ∀ τ : Gal(Ω/E), IsFrob A w.q τ → τ ∈ W q := by |
| 260 | -- `W q` is open: `H` is open and the set of elements that fix `ρ q` is closed |
| 261 | have h_H_open : IsOpen (H : Set Gal(Ω/E)) := Fact.out |
| 262 | exact chebotarev (h_H_open.sdiff (isClosed_setOf_smul (ρ q) fun y ↦ y = ρ q)) |
| 263 | (h_moves _ q.prop) hT_fin |
| 264 | choose w hwT hw_prime A hA σ hσ h_frob using h_cheb |
| 265 | -- `R q`: the ideles that are `p`-th powers at `w q`; `U`: the ideles in every `R q` that are |
| 266 | -- units outside `T` |
| 267 | let R (q : Q) : Subgroup (𝔸f E)ˣ := (powMonoidHom p).range.comap (ideleAt (w q)) |
| 268 | let U : Subgroup (𝔸f E)ˣ := idelesUnitOff T ⊓ iInf R |
| 269 | have h_principal (x : Eˣ) (hx : principalIdele x ∈ U) : ψ (principalIdele x) = 1 := by |
| 270 | by_contra h_ne |
| 271 | -- The representative of the class of `x` is `x * y ^ p`; it is a `p`-th power at its own place |
| 272 | -- `w q`, so the decomposition group in `H` fixes its root, against the choice of `σ q`. |
| 273 | obtain ⟨hx_units, hx_R : principalIdele x ∈ iInf R⟩ := hx |
| 274 | let xT : T.unit E := ⟨x, principalIdele_mem_idelesUnitOff.mp hx_units⟩ |
| 275 | obtain ⟨⟨_, y, rfl⟩, h_out : (xT : T.unit E ⧸ N).out = xT * y ^ p⟩ := mk_out_eq_mul N xT |
| 276 | have hq_ne : ψ (principalIdele ((xT : T.unit E ⧸ N).out : Eˣ)) ≠ 1 := by |
| 277 | simpa [h_out, hψ_pow] using h_ne |
| 278 | let q : Q := ⟨xT, hq_ne⟩ |
| 279 | have h_loc_pow : principalIdele q.val.out ∈ R q := by |
| 280 | rw [show (q.val.out : Eˣ) = x * y ^ p from congrArg Subtype.val h_out, map_mul] |
| 281 | exact mul_mem (mem_iInf.mp hx_R q) (by simp [R]) |
| 282 | obtain ⟨hσ_H : σ q ∈ H, hσ_moves : σ q • ρ q ≠ ρ q⟩ := hσ q |
| 283 | obtain ⟨⟨hσ_decomp : σ q ∈ decompGroup Gal(Ω/E) (A q), -⟩, -⟩ := h_frob q |
| 284 | exact hσ_moves |
| 285 | ((hA q).smul_root_eq_of_local_pow h_loc_pow (hr _) (σ q) hσ_decomp (mem_ker.mp hσ_H)) |
| 286 | have hR_open (q : Q) : (R q).IsOpen := |
| 287 | (isOpen_of_forall_pow_mem hp.ne_zero fun y ↦ mem_range.mpr ⟨y, rfl⟩).preimage_of_continuous |
| 288 | have hU_open : U.IsOpen := by |
| 289 | simpa [U, Subgroup.IsOpen] using |
| 290 | (isOpen_idelesUnitOff T).inter (isOpen_iInter_of_finite hR_open) |
| 291 | have h_pow_mem (b : (𝔸f E)ˣ) (hb : b ∈ idelesUnitOff T) : b ^ p ∈ U := by |
| 292 | simp [U, R, pow_mem hb] |
| 293 | obtain ⟨χ, hχ_pow, hχ_eq : ∀ a ∈ U, abelianLift χ (artinMap Gal(Ω/E) a) = ψ a⟩ := |
| 294 | exists_nsmul_eq_zero_abelianLift_artinMap_eq_of_apply_principalIdele_eq_one ψ hψ_open hψ_pow |
| 295 | h_sup hU_open h_pow_mem h_principal |
| 296 | refine ⟨χ, hχ_pow, fun u x hu ↦ hχ_eq (locIdele u x) ?_⟩ |
| 297 | exact locIdele_mem_inf_iInf_pow hST w hwT hw_prime u x hu |
| 298 | |
| 299 | variable [IsCMField E] (χ : QZChar Gal(Ω/E)) |
| 300 | |
| 301 | /-- For a character `χ` of the absolute Galois group of a CM field, the character |
| 302 | `g ↦ χ g + χ (gᶜ)`, where `gᶜ` is the conjugate of `g` by complex conjugation (`New.conjGal`). -/ |
| 303 | noncomputable abbrev QZChar.symmetrize : ↥(QZChar Gal(Ω/E)) := |
| 304 | χ + comap ⟨conjGal, continuous_conjGal⟩ χ |
| 305 | |
| 306 | /-- For a `ℚ/ℤ`-valued character `χ` of `Gal(Ω/E)`, the character `exp (2πi χ ∘ Art)` of the |
| 307 | finite ideles of `E`. -/ |
| 308 | noncomputable abbrev QZChar.ideleChar : (𝔸f E)ˣ →* ℂˣ := |
| 309 | expUnit.comp ((abelianLift χ).comp (artinMap Gal(Ω/E))) |
| 310 | |
| 311 | /-- On the Artin symbol of an idele `a`, the symmetrised character `New.QZChar.symmetrize χ` takes |
| 312 | the value of `χ` at `a` times the value of `χ` at the conjugate idele `star a`. -/ |
| 313 | lemma QZChar.abelianLift_symmetrize (a : (𝔸f E)ˣ) : |
| 314 | abelianLift (symmetrize χ) (artinMap Gal(Ω/E) a) = |
| 315 | abelianLift χ (artinMap Gal(Ω/E) a) * abelianLift χ (artinMap Gal(Ω/E) (star a)) := by |
| 316 | obtain ⟨g, hg⟩ := mk_surjective (artinMap Gal(Ω/E) a) |
| 317 | -- the Artin symbol of `star a` is the class of `conjGal g` |
| 318 | rw [← hg, artinMap_star g hg.symm] |
| 319 | simp [symmetrize, ofAdd_add] |
| 320 | rfl |
| 321 | |
| 322 | end Grunwald |
| 323 | |
| 324 | /-! |
| 325 | ## The CM field cut out by the symmetrised character, and when it is a step |
| 326 | |
| 327 | `New.HasPrimitiveRoot5040 E`: `E` contains a primitive root of unity of order `5040`. |
| 328 | `New.IsStep E' μ`: among other things `[E' : E]` is prime and `μ (z z̄) = 1` exactly when `z` is a |
| 329 | norm from `E'` times an element of `Eˣ`. |
| 330 | -/ |
| 331 | |
| 332 | section StepField |
| 333 | |
| 334 | open NumberField Ideal Algebra ComplexEmbedding Cohomology Subgroup QZChar QZ FractionalIdeal |
| 335 | RingOfIntegers |
| 336 | |
| 337 | variable {E : Type} [Field E] [EmbeddedNumberField E] |
| 338 | |
| 339 | section |
| 340 | |
| 341 | variable [IsCMField E] (χ : QZChar Gal(Ω/E)) |
| 342 | |
| 343 | /-- The extension of the CM field `E` inside `Ω` cut out by the character `g ↦ χ g + χ (gᶜ)`, that |
| 344 | is, the fixed field of its kernel. -/ |
| 345 | noncomputable abbrev QZChar.stepField : IntermediateField E Ω := fixedFieldOf (ker (symmetrize χ)) |
| 346 | |
| 347 | open TauCeti.NumberField in |
| 348 | /-- The field `New.QZChar.stepField χ` is CM. Any product of two complex conjugations of `Ω` |
| 349 | fixes it, and it contains the totally complex field `E`. -/ |
| 350 | instance : IsCMField (stepField χ) := by |
| 351 | have : IsTotallyComplex (stepField χ) := isTotallyComplex_of_algebra E _ |
| 352 | refine ((isTotallyReal_or_isCMField_iff (algebraMap (stepField χ) Ω)).mpr |
| 353 | ?_).resolve_left IsTotallyComplex.not_isTotallyReal |
| 354 | -- For each conjugation `c` of `Ω`, the product `c * cmConj` is over `E`, and conjugation |
| 355 | -- by `cmConj` inverts it. Hence the symmetrized character vanishes on this product. |
| 356 | have h_fix (c : Gal(Ω/ℚ)) (hc : c ∈ complexConjugations Ω) |
| 357 | (y : stepField χ) : c (cmConj (y : Ω)) = y := by |
| 358 | let g : Gal(Ω/E) := |
| 359 | { c * cmConj with |
| 360 | commutes' e := by |
| 361 | change c (cmConj (algebraMap E Ω e)) = algebraMap E Ω e |
| 362 | rw [cmConj_algebraMap, |
| 363 | apply_eq_complexConj_of_isCMField hc (algebraMap E Ω)] |
| 364 | exact congrArg (algebraMap E Ω) (star_star e) } |
| 365 | have h_inv : conjGal g * g = 1 := by |
| 366 | ext z |
| 367 | change cmConj (c (cmConj (cmConj (c (cmConj z))))) = z |
| 368 | rw [cmConj_cmConj, apply_apply_of_mem_complexConjugations hc, cmConj_cmConj] |
| 369 | have hg : g ∈ ker (symmetrize χ) := map_mul_eq_one (toHom χ) (mul_eq_one_symm h_inv) |
| 370 | exact y.prop ⟨g, hg⟩ |
| 371 | -- Thus every conjugation agrees with `cmConj` on the step field, and any two compose to 1. |
| 372 | intro c₁ hc₁ c₂ hc₂ y |
| 373 | change c₁ (c₂ (y : Ω)) = y |
| 374 | rw [apply_eq_of_apply_eq_of_mem_complexConjugations hc₂ (h_fix c₂ hc₂ y)] |
| 375 | exact h_fix c₁ hc₁ y |
| 376 | |
| 377 | end |
| 378 | |
| 379 | open scoped Classical in |
| 380 | open InfinitePlace in |
| 381 | /-- A CM type of `E` extends to `New.QZChar.stepField χ`: at each infinite place take the embedding |
| 382 | whose restriction to `E` is the embedding chosen at the place below. -/ |
| 383 | noncomputable instance [CMType E] (χ : QZChar Gal(Ω/E)) : CMTypeOver E (stepField χ) where |
| 384 | -- Of the two embeddings at `u`, take the one that restricts to the chosen embedding below. |
| 385 | Φ u := |
| 386 | let e : stepField χ →+* ℂ := u.embedding |
| 387 | if e.comp (algebraMap E (stepField χ)) = Φ (u.comap (algebraMap E (stepField χ))) then |
| 388 | e |
| 389 | else |
| 390 | star e |
| 391 | mk_Φ := by aesop |
| 392 | eq_chosen_iff := by grind [embedding_mk_eq, Φ_mk_eq_or_star_eq, comap_mk, conjugate_comp, |
| 393 | star_star] |
| 394 | |
| 395 | variable [IsCMField E] (χ : QZChar Gal(Ω/E)) |
| 396 | |
| 397 | /-- `New.QZChar.stepField χ` contains the image of a primitive `5040`-th root of unity of `E`. -/ |
| 398 | instance [h : HasPrimitiveRoot5040 E] : HasPrimitiveRoot5040 (stepField χ) where |
| 399 | exists_primitive_root := by |
| 400 | obtain ⟨ζ, hζ : IsPrimitiveRoot ζ 5040⟩ := h.exists_primitive_root |
| 401 | exact ⟨algebraMap E (stepField χ) ζ, hζ.map_of_injective (algebraMap E (stepField χ)).injective⟩ |
| 402 | |
| 403 | /-- If `New.QZChar.symmetrize χ` kills the inertia groups at the places `A : ClosurePlace` of `Ω` |
| 404 | (valuation subrings) over (`IsPlaceOver`) the prime of `E` below `u`, then `u` does not divide the |
| 405 | different of `New.QZChar.stepField χ` over `E`. -/ |
| 406 | lemma QZChar.not_dvd_differentIdeal_stepField {u : FinPlace (stepField χ)} |
| 407 | (h_inertia : ∀ {A : ClosurePlace}, |
| 408 | IsPlaceOver A (u.below E) → inertiaGroup Gal(Ω/E) A ≤ ker (symmetrize χ)) : |
| 409 | ¬u.asIdeal ∣ differentIdeal (𝓞 E) (𝓞 (stepField χ)) := by |
| 410 | -- Take a place of `Ω` over `u`. Its inertia group lies in the kernel of `symmetrize χ`, which |
| 411 | -- cuts out `stepField χ`, so the ramification index of `u` is one. |
| 412 | have h_below : IsPlaceOver (placeOver u) (u.below E) := u.isPlaceOver_placeOver.isPlaceOver_below |
| 413 | obtain ⟨-, h_unram_of_le, -⟩ := |
| 414 | h_below.ramification_in_tower (ker (symmetrize χ)) u.isPlaceOver_placeOver |
| 415 | have h_one : u.asIdeal.ramificationIdx (𝓞 E) = 1 := h_unram_of_le (h_inertia h_below) |
| 416 | exact not_dvd_differentIdeal_iff.mpr (ramificationIdx_eq_one_iff.mp h_one) |
| 417 | |
| 418 | /-- Suppose that `New.QZChar.stepField χ` has degree `p` over `E` and that `New.QZChar.symmetrize χ` |
| 419 | kills the inertia groups at the places above `p`. Then the trace from the integers of |
| 420 | `New.QZChar.stepField χ` to the integers of `E` is onto. -/ |
| 421 | private lemma range_intTrace_stepField_eq_top {p : ℕ} (h_rank : Module.finrank E (stepField χ) = p) |
| 422 | (h_unram : ∀ {A : ClosurePlace} {u : FinPlace E}, IsPlaceOver A u → ↑p ∈ u.asIdeal → |
| 423 | inertiaGroup Gal(Ω/E) A ≤ ker (symmetrize χ)) : |
| 424 | (intTrace (𝓞 E) (𝓞 (stepField χ))).range = ⊤ := by |
| 425 | -- Otherwise all traces lie in a prime `u` of `E`. It contains `tr 1 = p`, so a prime `P` above |
| 426 | -- `u` is unramified; yet `P` divides the different. |
| 427 | by_contra h_ne |
| 428 | obtain ⟨u, hu : LinearMap.range (intTrace (𝓞 E) (𝓞 (stepField χ))) ≤ u.asIdeal⟩ := |
| 429 | (IsDedekindDomain.HeightOneSpectrum.ideal_ne_top_iff_exists (not_isField E) _).mp h_ne |
| 430 | -- `tr 1 = [stepField χ : E] = p` |
| 431 | have h_trace_one : intTrace (𝓞 E) (𝓞 (stepField χ)) 1 = (p : 𝓞 E) := |
| 432 | ext (by simp [algebraMap_intTrace (L := stepField χ), trace_apply, map_one, h_rank]) |
| 433 | have hp_mem : (p : 𝓞 E) ∈ u.asIdeal := hu ⟨1, h_trace_one⟩ |
| 434 | obtain ⟨P, rfl⟩ := FinPlace.comap_surjective (algebraMap E (stepField χ)) u |
| 435 | -- Since all traces lie in the prime downstairs, its extension divides the different. |
| 436 | let extendedIdeal := (P.below E).asIdeal.map (algebraMap (𝓞 E) (𝓞 (stepField χ))) |
| 437 | have h_map_dvd : extendedIdeal ∣ differentIdeal (𝓞 E) (𝓞 (stepField χ)) := |
| 438 | (TauCeti.dvd_differentIdeal_iff_forall_intTrace_mem _ (P.below E).ne_bot |
| 439 | extendedIdeal 1 (mul_one _)).2 fun x _ ↦ hu ⟨x, rfl⟩ |
| 440 | have h_prime_dvd : P.asIdeal ∣ extendedIdeal := |
| 441 | (liesOver_iff_dvd_map P.isPrime.ne_top).1 inferInstance |
| 442 | exact not_dvd_differentIdeal_stepField χ (fun h_place ↦ h_unram h_place hp_mem) |
| 443 | (h_prime_dvd.trans h_map_dvd) |
| 444 | |
| 445 | /-- Suppose that `p` is prime, `p • χ = 0` and `New.QZChar.symmetrize χ ≠ 0`. Then |
| 446 | `New.QZChar.stepField χ` has degree `p` over `E`: the degree is the order of the image of |
| 447 | `New.QZChar.symmetrize χ`, a nontrivial subgroup of the `p`-torsion of `ℚ/ℤ` (the image of |
| 448 | `ZMod p`). -/ |
| 449 | private lemma finrank_stepField {p : ℕ} (hp : Nat.Prime p) (hχ : p • χ = 0) |
| 450 | (hχ_sym_ne : symmetrize χ ≠ 0) : Module.finrank E (stepField χ) = p := by |
| 451 | have h_fact : Fact p.Prime := ⟨hp⟩ |
| 452 | have hχ_apply (g : Gal(Ω/E)) : p • χ.val g = 0 := by |
| 453 | simpa using congrFun (congrArg Subtype.val hχ) g |
| 454 | have h_range : (toHom (symmetrize χ)).range ≤ (ofZMod p).toMultiplicative.range := by |
| 455 | rintro _ ⟨g, rfl⟩ |
| 456 | exact exists_ofZMod (a := χ.val g + χ.val (conjGal g)) (by simp [hχ_apply]) |
| 457 | have h_dvd : (toHom (symmetrize χ)).ker.index ∣ p := |
| 458 | calc (toHom (symmetrize χ)).ker.index |
| 459 | _ = Nat.card (toHom (symmetrize χ)).range := index_ker _ |
| 460 | _ ∣ Nat.card (ofZMod p).toMultiplicative.range := card_dvd_of_le h_range |
| 461 | _ ∣ Nat.card (Multiplicative (ZMod p)) := card_range_dvd _ |
| 462 | _ = p := Nat.card_zmod p |
| 463 | have h_ne_one : (toHom (symmetrize χ)).ker.index ≠ 1 := by |
| 464 | -- otherwise the kernel is everything, and `symmetrize χ` vanishes |
| 465 | intro h_one |
| 466 | refine hχ_sym_ne (Subtype.ext (funext fun g ↦ ?_)) |
| 467 | have hg_ker : g ∈ (toHom (symmetrize χ)).ker := (index_eq_one.mp h_one).ge (mem_top g) |
| 468 | exact (QZChar.mem_ker_iff_val_eq_zero (symmetrize χ) g).mp hg_ker |
| 469 | rw [finrank_fixedFieldOf, (hp.dvd_iff_eq h_ne_one).mp h_dvd] |
| 470 | |
| 471 | /-- Let `E` be a CM field containing a primitive 5040th root of unity (`New.HasPrimitiveRoot5040`), |
| 472 | and let `p` be prime. Write `New.QZChar.symmetrize χ` for the character `g ↦ χ g + χ gᶜ`, where `gᶜ` |
| 473 | is the conjugate of `g` by complex conjugation. Suppose that (a) `p • χ = 0`, (b) |
| 474 | `New.QZChar.symmetrize χ` is not zero, and (c) it kills the inertia groups at the places above `p`. |
| 475 | Then the field `New.QZChar.stepField χ`, the fixed field of the kernel of `symmetrize χ`, has degree |
| 476 | `p` over `E`. It is a step (`New.IsStep`: a CM field Galois of prime degree over `E`, with an |
| 477 | integer of trace `1`) for the Hecke character `New.QZChar.ideleChar χ = exp (2πi χ ∘ Art)`. This |
| 478 | character has open kernel, is trivial on `Eˣ`, and is `1` at `z z̄` exactly when `z` is a principal |
| 479 | idele times a norm from the field. -/ |
| 480 | lemma isStep_stepField [HasPrimitiveRoot5040 E] {p : ℕ} (hp : Nat.Prime p) (hχ : p • χ = 0) |
| 481 | (hχ_sym_ne : symmetrize χ ≠ 0) |
| 482 | (h_unram : ∀ {A : ClosurePlace} {u : FinPlace E}, IsPlaceOver A u → ↑p ∈ u.asIdeal → |
| 483 | inertiaGroup Gal(Ω/E) A ≤ ker (symmetrize χ)) : |
| 484 | IsStep (stepField χ) (ideleChar χ) ∧ Module.finrank E (stepField χ) = p := by |
| 485 | have h_fact : Fact p.Prime := ⟨hp⟩ |
| 486 | have h_rank : Module.finrank E (stepField χ) = p := finrank_stepField χ hp hχ hχ_sym_ne |
| 487 | -- The trace on integers is onto, since the places above `p` are unramified. |
| 488 | have h_trace : (intTrace (𝓞 E) (𝓞 (stepField χ))).range = ⊤ := |
| 489 | range_intTrace_stepField_eq_top χ h_rank h_unram |
| 490 | subst h_rank |
| 491 | refine ⟨⟨?_, ?_, ?_, ?_⟩, rfl⟩ |
| 492 | · -- the kernel of `ideleChar χ` contains that of `χ ∘ Art`, which is open |
| 493 | exact isOpen_mono (expUnit.ker.ker_le_comap _) |
| 494 | (continuous_iff_forall_isOpen_ker_comp.mp continuous_artinMap χ) |
| 495 | · -- the Artin map kills principal ideles, total positivity being void in the CM field `E` |
| 496 | simp [artinMap_principalIdele_eq_one_of_isTotallyPositive, |
| 497 | isTotallyPositive_of_isTotallyComplex] |
| 498 | · -- `ideleChar χ (z * star z)` is `expUnit` of `symmetrize χ` at the Artin symbol of `z`; this |
| 499 | -- is `1` exactly on the norm group of `stepField χ` (`abelianLift_artinMap_eq_one_iff`) |
| 500 | intro z |
| 501 | have h_sym : ideleChar χ (z * star z) = |
| 502 | expUnit (abelianLift (symmetrize χ) (artinMap Gal(Ω/E) z)) := by |
| 503 | simp [← abelianLift_symmetrize] |
| 504 | rw [h_sym, expUnit_eq_one_iff, abelianLift_artinMap_eq_one_iff (symmetrize χ)] |
| 505 | simp [isTotallyPositive_of_isTotallyComplex] |
| 506 | · -- an integer `c` with `intTrace c = 1` |
| 507 | obtain ⟨c, hc⟩ := (eq_top_iff_one _).mp h_trace |
| 508 | exact ⟨c, by simp [← algebraMap_intTrace (A := 𝓞 E), hc]⟩ |
| 509 | |
| 510 | end StepField |
| 511 | |
| 512 | end New |
| 513 | |
| 514 | /-! |
| 515 | ## Lifting Weil data to CM extensions unramified at non-split places |
| 516 | |
| 517 | Weil data (`New.WeilData E`) on a CM field `E` consist of an element `j = -j̄` with positive |
| 518 | imaginary part under the CM type `Φ` and with `(1 - j⁻¹) / 2` integral, a finite idele `α` such that |
| 519 | `j α ᾱ` generates the inverse different, and a splitting character `υ` (`New.SplittingChar`) that is |
| 520 | `-1` at the uniformisers of the places fixed by conjugation. |
| 521 | -/ |
| 522 | |
| 523 | section WeilDataExtension |
| 524 | |
| 525 | open NumberField WithZero Valued Ideal IsDedekindDomain HeightOneSpectrum FiniteMultiplicity Finset |
| 526 | New WeilData RingHom |
| 527 | |
| 528 | /-- Let the CM type of `L` restrict to that of `E` (`New.CMTypeOver E L`). Then the embedding `Φ u` |
| 529 | of `L` into `ℂ` that the CM type chooses at the infinite place `u` extends the embedding chosen at |
| 530 | the place of `E` below `u`. -/ |
| 531 | lemma New.Φ_algebraMap_eq_Φ_comap {E L : Type} [Field E] [CMType E] [Field L] [Algebra E L] |
| 532 | [h : CMTypeOver E L] (u : InfinitePlace L) (r : E) : |
| 533 | Φ u (algebraMap E L r) = Φ (u.comap (algebraMap E L)) r := by |
| 534 | have h_comp : (Φ u).comp (algebraMap E L) = Φ (u.comap (algebraMap E L)) := by |
| 535 | simpa only [mk_Φ] using (h.eq_chosen_iff (Φ u)).mp (by rw [mk_Φ]) |
| 536 | exact RingHom.congr_fun h_comp r |
| 537 | |
| 538 | /-- Let the CM type of `L` restrict to that of `E` (`New.CMTypeOver E L`), and let `w` be an |
| 539 | infinite place of `E`. The embeddings `Φ u` chosen at the places `u` of `L` above `w` are exactly |
| 540 | the embeddings of `L` that extend `Φ w`; so for `x` in `L` the product of the `Φ u x` is `Φ w` of |
| 541 | the norm of `x` from `L` to `E`. -/ |
| 542 | lemma New.prod_Φ_eq_Φ_norm {E L : Type} [Field E] [CMType E] [Field L] [Algebra E L] |
| 543 | [h : CMTypeOver E L] (w : InfinitePlace E) (x : L) : |
| 544 | ∏ u : InfinitePlace L with u.comap (algebraMap E L) = w, Φ u x = Φ w (Algebra.norm E x) := by |
| 545 | algebraize [Φ w] |
| 546 | -- with `ℂ` an `E`-algebra through `Φ w`, the norm is the product over the `E`-embeddings |
| 547 | have h_norm : Φ w (Algebra.norm E x) = ∏ σ : L →ₐ[E] ℂ, σ x := |
| 548 | Algebra.norm_eq_prod_embeddings E ℂ x |
| 549 | rw [h_norm] |
| 550 | have h_chosen (σ : L →ₐ[E] ℂ) : Φ (InfinitePlace.mk σ) = (σ : L →+* ℂ) := by |
| 551 | rw [eq_comm, h.eq_chosen_iff] |
| 552 | simp [algebraMap_toAlgebra] |
| 553 | -- the bijection sends `u` to `Φ u` as an `E`-embedding, and an `E`-embedding `σ` to its place |
| 554 | refine prod_bij' (fun u hu ↦ ⟨Φ u, fun r ↦ ?_⟩) (fun σ _ ↦ .mk σ) ?_ ?_ ?_ |
| 555 | (fun σ _ ↦ AlgHom.toRingHom_injective (h_chosen σ)) ?_ |
| 556 | · simp_all [algebraMap_toAlgebra, Φ_algebraMap_eq_Φ_comap] -- `Φ u` extends `Φ w` |
| 557 | · simp |
| 558 | · simp_all [algebraMap_toAlgebra] -- the place of an `E`-embedding lies above `w` |
| 559 | · simp |
| 560 | · simp |
| 561 | |
| 562 | /-- Let the CM type of `L` restrict to that of `E` (`New.CMTypeOver E L`), and let `E` carry a |
| 563 | splitting character `υ` (`New.SplittingChar`: a unitary Hecke character with `υ x̄ = (υ x)⁻¹` that |
| 564 | is `∏ x_τ / |x_τ|` on ideles whose finite part is a unit of `Ô`). Then `L` has a splitting |
| 565 | character: `υ` composed with the norm of ideles from `L` to `E`, which at an infinite place `w` of |
| 566 | `E` is the product of the components at the places of `L` above `w`. -/ |
| 567 | lemma New.nonempty_splittingChar_of_cmTypeOver {E L : Type} [Field E] [CMType E] [Field L] |
| 568 | [Algebra E L] [CMTypeOver E L] [SplittingChar E] : |
| 569 | Nonempty (SplittingChar L) := by |
| 570 | -- the norm of adeles: at an infinite place, the product over the places above it |
| 571 | let Nm : 𝔸 L →* 𝔸 E := |
| 572 | .prodMap (.pi fun w ↦ ∏ u with u.comap (algebraMap E L) = w, Pi.evalMonoidHom _ u) |
| 573 | (adeleNorm E L) |
| 574 | have hNm : Continuous Nm := by |
| 575 | -- the finite part is the adele norm; the infinite part is a product of coordinate maps |
| 576 | simp only [Nm, MonoidHom.coe_prodMap, continuous_prodMap_iff, continuous_adeleNorm, and_true, |
| 577 | MonoidHom.pi, MonoidHom.finsetProd_apply, Pi.evalMonoidHom_apply, MonoidHom.coe_mk, |
| 578 | OneHom.coe_mk] |
| 579 | fun_prop |
| 580 | refine ⟨{ υ := ⟨υ.val.comp ⟨Units.map Nm, hNm.units_map _⟩, fun y ⟨x, hx⟩ ↦ ?_⟩ |
| 581 | υ_unit := fun y hy ↦ ?_ |
| 582 | υ_star := fun y ↦ ?_ }⟩ |
| 583 | · -- trivial on `Lˣ`, as the norm of a principal idele is principal |
| 584 | refine υ.prop _ ⟨Algebra.norm E x, .symm ?_⟩ |
| 585 | ext w <;> simp [Nm, ← hx, prod_Φ_eq_Φ_norm] |
| 586 | · -- the value on ideles whose finite part is a unit of `Ô L` |
| 587 | have h_unit_Nm : |
| 588 | (Units.map Nm y).map (MonoidHom.snd (InfinitePlace E → ℂ) (𝔸f E)) ∈ (Ô E).units := by |
| 589 | simp_all [Nm, adeleNorm_mem_Ô, Submonoid.mem_units_iff] |
| 590 | change (υ.val (Units.map Nm y) : ℂ) = _ |
| 591 | rw [υ_unit (Units.map Nm y) h_unit_Nm] |
| 592 | -- the infinite places of `L`, grouped by the place of `E` below them |
| 593 | simp [Nm, prod_fiberwise] |
| 594 | · -- the norm commutes with conjugation |
| 595 | have h_star : Units.map Nm (star y) = star (Units.map Nm y) := by |
| 596 | ext <;> simp [Nm, adeleNorm_star] |
| 597 | exact (congrArg υ.val h_star).trans (υ_star _) |
| 598 | |
| 599 | open IsCMField in |
| 600 | /-- The different of a CM field `L` is invariant under complex conjugation: a finite place `u` |
| 601 | and its conjugate `star u` have the same multiplicity in it. -/ |
| 602 | lemma New.multiplicity_star_differentIdeal {L : Type} [Field L] [CMType L] (u : FinPlace L) : |
| 603 | multiplicity (star u).asIdeal (differentIdeal ℤ (𝓞 L)) = |
| 604 | multiplicity u.asIdeal (differentIdeal ℤ (𝓞 L)) := by |
| 605 | -- Conjugation preserves the different, and transporting ideals preserves multiplicities. |
| 606 | let e := (ringOfIntegersComplexConj L).toRingEquiv |
| 607 | let σ := (complexConj L).toRingEquiv |
| 608 | let eI : Ideal (𝓞 L) ≃* Ideal (𝓞 L) := |
| 609 | { e.idealComapOrderIso.symm.toEquiv with |
| 610 | map_mul' := Ideal.map_mul (e : 𝓞 L →+* 𝓞 L) } |
| 611 | have hD : eI (differentIdeal ℤ (𝓞 L)) = differentIdeal ℤ (𝓞 L) := |
| 612 | (RingEquiv.refl ℤ).map_differentIdeal_of_equiv |
| 613 | (RingEquiv.refl ℚ) e σ (fun _ ↦ rfl) (fun x ↦ (coe_ringOfIntegersComplexConj L x).symm) |
| 614 | (Subsingleton.elim _ _) |
| 615 | have hu : eI u.asIdeal = (star u).asIdeal := by |
| 616 | change Ideal.map (e : 𝓞 L →+* 𝓞 L) u.asIdeal = _ |
| 617 | rw [Ideal.map_comap_of_equiv] |
| 618 | ext x |
| 619 | have hx : e.symm x = star x := e.symm_apply_eq.mpr (by change x = star (star x); simp) |
| 620 | change e.symm x ∈ u.asIdeal ↔ star x ∈ u.asIdeal |
| 621 | rw [hx] |
| 622 | simpa [hu, hD] using (multiplicity_map_eq eI (a := u.asIdeal) (b := differentIdeal ℤ (𝓞 L))) |
| 623 | |
| 624 | /-- Let `E` carry Weil data and let the finite place `w` be fixed by complex conjugation. Then the |
| 625 | log of the valuation of `j` at `w` is the multiplicity of `w` in the different of `E` minus twice |
| 626 | the log of the valuation of `α` at `w` (this is the condition `self_dual` at `w`, where `α` and |
| 627 | `star α` have the same order). -/ |
| 628 | lemma New.WeilData.log_valuation_j_of_star_eq {E : Type} [Field E] [CMType E] [WeilData E] |
| 629 | (w : FinPlace E) (hw_fix : star w = w) : |
| 630 | (w.valuation E j).log = |
| 631 | multiplicity w.asIdeal (differentIdeal ℤ (𝓞 E)) - 2 * (v (α.val w)).log := by |
| 632 | have hα : v (α.val (star w)) = v (α.val w) := by rw [hw_fix] |
| 633 | have h_ne : v ((algebraMap E (𝔸f E) j * α.val * star α.val : 𝔸f E) w) ≠ 0 := by |
| 634 | rw [self_dual w] |
| 635 | exact exp_ne_zero |
| 636 | have h_log : (v ((algebraMap E (𝔸f E) j * α.val * star α.val : 𝔸f E) w)).log = |
| 637 | (exp (multiplicity w.asIdeal (differentIdeal ℤ (𝓞 E)) : ℤ)).log := by rw [self_dual w] |
| 638 | -- `log` turns the self-duality at `w` into a sum of orders; `star α` has the order of `α` at `w` |
| 639 | have h_sum : (w.valuation E j).log + (v (α.val w)).log + (v (α.val w)).log = |
| 640 | multiplicity w.asIdeal (differentIdeal ℤ (𝓞 E)) := by |
| 641 | -- no factor vanishes, by `h_ne` |
| 642 | have hα_ne : v (α.val w) ≠ 0 := by simp_all |
| 643 | simpa [j_ne_zero, log_mul, hα, hα_ne] using h_log |
| 644 | linarith |
| 645 | |
| 646 | /-- Let `L / E` be an extension of CM fields with compatible CM types, where `E` carries Weil data, |
| 647 | and let the finite place `u` of `L` be fixed by complex conjugation and not divide the relative |
| 648 | different ideal of `𝓞 L` over `𝓞 E`. Then the log of the valuation of `j` at `u` minus the |
| 649 | multiplicity of `u` in the different of `L` is even: by the tower formula for differents it is the |
| 650 | ramification index times the same difference at the place `w` below `u`, which is `-2` times the |
| 651 | log of the valuation of `α` at `w` (`New.WeilData.log_valuation_j_of_star_eq`). -/ |
| 652 | lemma New.WeilData.two_dvd_log_valuation_j_sub_multiplicity {E L : Type} [Field E] [CMType E] |
| 653 | [Field L] [Algebra E L] [CMTypeOver E L] [WeilData E] (u : FinPlace L) (hu_fix : star u = u) |
| 654 | (hu : ¬u.asIdeal ∣ differentIdeal (𝓞 E) (𝓞 L)) : |
| 655 | 2 ∣ (u.valuation L (algebraMap E L j)).log - |
| 656 | multiplicity u.asIdeal (differentIdeal ℤ (𝓞 L)) := by |
| 657 | let w : FinPlace E := u.below E |
| 658 | have hw_fix : star w = w := by rw [← below_star, hu_fix] |
| 659 | have hj : (w.valuation E j).log = |
| 660 | multiplicity w.asIdeal (differentIdeal ℤ (𝓞 E)) - 2 * (v (α.val w)).log := |
| 661 | WeilData.log_valuation_j_of_star_eq w hw_fix |
| 662 | have h_tower := TauCeti.multiplicity_differentIdeal_tower ℤ w u |
| 663 | rw [multiplicity_eq_zero_of_not_dvd hu, zero_add] at h_tower |
| 664 | refine ⟨-(u.asIdeal.ramificationIdx (𝓞 E) * (v (α.val w)).log), ?_⟩ |
| 665 | rw [h_tower, ← w.valuation_liesOver L, log_pow, hj] |
| 666 | push_cast |
| 667 | ring |
| 668 | |
| 669 | /-- Let `L / E` be an extension of CM fields with compatible CM types, where `E` carries Weil data |
| 670 | and `L` contains a primitive 5040th root of unity. Weil data consist of such a root of unity, an |
| 671 | element `ȷ = −ȷ̄` with `Im τȷ > 0` and `(1 − ȷ⁻¹)/2` integral, a finite idele making the integers |
| 672 | self-dual for the standard additive character, and a splitting character equal to `−1` at |
| 673 | uniformisers of places fixed by conjugation. If no finite prime of `L` fixed by complex conjugation |
| 674 | divides the relative different ideal of `𝓞 L` over `𝓞 E`, then `L` also carries Weil data. -/ |
| 675 | lemma New.nonempty_weilData_of_not_dvd_differentIdeal {E L : Type} [Field E] [CMType E] [Field L] |
| 676 | [Algebra E L] [h : CMTypeOver E L] [WeilData E] [HasPrimitiveRoot5040 L] |
| 677 | (h_unram : ∀ u : FinPlace L, star u = u → ¬u.asIdeal ∣ differentIdeal (𝓞 E) (𝓞 L)) : |
| 678 | Nonempty (WeilData L) := by |
| 679 | -- Keep `j`, compose the splitting character with the norm, and choose a new idele `β`. With `g` a |
| 680 | -- generator of the different, `s = j * g` has the same order at `u` and at `star u`, and an even |
| 681 | -- order if `u = star u`; `β` cancels half of it at each of the two places, so `s * β * star β` |
| 682 | -- has order `0` everywhere, which is the condition `self_dual`. The condition `υ_inert` holds |
| 683 | -- for every splitting character, by class field theory for `L / L⁺`. |
| 684 | -- `g`: an idele generating the different of `L` (`hg_val`: its order at each place) |
| 685 | obtain ⟨-, -, -, g, -, hg_val, -⟩ := |
| 686 | exists_reduction_and_idele_generator (E := L) (differentIdeal_ne_bot (A := ℤ)) |
| 687 | obtain ⟨s, hs⟩ : IsUnit (algebraMap L (𝔸f L) (algebraMap E L j) * g.val) := by simp [j_ne_zero] |
| 688 | have hs_ord (u : FinPlace L) : (v (s.val u)).log = |
| 689 | (u.valuation L (algebraMap E L j)).log - |
| 690 | multiplicity u.asIdeal (differentIdeal ℤ (𝓞 L)) := by |
| 691 | simp [hs, hg_val, j_ne_zero, sub_eq_add_neg] |
| 692 | have hs_star (u : FinPlace L) : (v (s.val (star u))).log = (v (s.val u)).log := by |
| 693 | have hj : (star u).valuation L (algebraMap E L j) = u.valuation L (algebraMap E L j) := by |
| 694 | simpa [← map_star_CM] using valuation_star u (algebraMap E L j) |
| 695 | rw [hs_ord, hs_ord, hj, multiplicity_star_differentIdeal u] |
| 696 | have hs_even (u : FinPlace L) (hu_fix : star u = u) : 2 ∣ (v (s.val u)).log := by |
| 697 | rw [hs_ord] |
| 698 | exact WeilData.two_dvd_log_valuation_j_sub_multiplicity u hu_fix (h_unram u hu_fix) |
| 699 | -- an auxiliary order decides which of `u`, `star u` gets the larger half |
| 700 | obtain ⟨h_linearOrder, -⟩ : ∃ _ : LinearOrder (FinPlace L), WellFoundedLT (FinPlace L) := |
| 701 | exists_wellFoundedLT (FinPlace L) |
| 702 | -- `log v` of `β` at `u`: `(1 - log v (s u)) / 2` if `u < star u` in the auxiliary order, else |
| 703 | -- `(-log v (s u)) / 2` (integer division) |
| 704 | let halfOrder (u : FinPlace L) : ℤ := ((if u < star u then 1 else 0) - (v (s.val u)).log) / 2 |
| 705 | have h_half_eq_zero (u : FinPlace L) (h_one : v (s.val u) = 1) : halfOrder u = 0 := by |
| 706 | simp only [halfOrder, h_one, log_one, sub_zero] |
| 707 | split_ifs <;> omega |
| 708 | obtain ⟨β, hβ⟩ : ∃ β : (𝔸f L)ˣ, ∀ u : FinPlace L, |
| 709 | β.val u = ↑((uniformizer u)⁻¹ ^ halfOrder u) := |
| 710 | exists_idele_eq_uniformizer_zpow halfOrder |
| 711 | ((finite_setOf_valued_val_ne_one s).subset fun u h_ne_zero h_one ↦ |
| 712 | h_ne_zero (h_half_eq_zero u h_one)) |
| 713 | obtain ⟨h_splittingChar⟩ : Nonempty (SplittingChar L) := |
| 714 | nonempty_splittingChar_of_cmTypeOver (E := E) |
| 715 | have h_star_j : star (algebraMap E L j) = -algebraMap E L j := by simp [← map_star_CM] |
| 716 | have h_im_pos (u : InfinitePlace L) : 0 < (Φ u (algebraMap E L j)).im := by |
| 717 | simp [Φ_algebraMap_eq_Φ_comap, im_pos] |
| 718 | have h_integral : IsIntegral ℤ ((1 - (algebraMap E L j)⁻¹) / 2) := by |
| 719 | simpa [map_ofNat] using map_isIntegral_int (algebraMap E L) isIntegral_traceOne |
| 720 | refine ⟨{ j := algebraMap E L j, α := β, self_dual u := ?_ |
| 721 | star_j := h_star_j |
| 722 | im_pos := h_im_pos |
| 723 | isIntegral_traceOne := h_integral |
| 724 | υ_inert := Cohomology.upsilon_atUniformizer_eq_neg_one }⟩ |
| 725 | rw [← exp_log (x := v ((algebraMap L (𝔸f L) (algebraMap E L j) * β.val * star β.val) u)) |
| 726 | (by simp [j_ne_zero, hβ]), exp_inj] |
| 727 | -- `log v` of `j β β̄` at `u` is that of `j` plus the two halves at `u` and `star u` |
| 728 | have h_log_eq : (v ((algebraMap L (𝔸f L) (algebraMap E L j) * β.val * star β.val : 𝔸f L) u)).log = |
| 729 | (u.valuation L (algebraMap E L j)).log + halfOrder u + halfOrder (star u) := by |
| 730 | simp [hβ, j_ne_zero] |
| 731 | -- the two halves add up to `-(v (s u)).log`: exactly one gets the `1` if `u ≠ star u`, and the |
| 732 | -- order is even if `u = star u` |
| 733 | have h_halves : halfOrder u + halfOrder (star u) = -(v (s.val u)).log := by |
| 734 | simp only [halfOrder, star_star, hs_star] |
| 735 | rcases lt_trichotomy u (star u) with h | h | h |
| 736 | · rw [ite_eq_left h, ite_eq_right (lt_asymm h)] |
| 737 | omega |
| 738 | · have := hs_even u h.symm |
| 739 | rw [← h, ite_eq_right (lt_irrefl u)] |
| 740 | omega |
| 741 | · rw [ite_eq_right (lt_asymm h), ite_eq_left h] |
| 742 | omega |
| 743 | rw [h_log_eq] |
| 744 | linarith [h_halves, hs_ord u] |
| 745 | |
| 746 | end WeilDataExtension |
| 747 | |
| 748 | /-! ## A CM step of prime degree with prescribed completion at a split place -/ |
| 749 | |
| 750 | section GrunwaldStep |
| 751 | |
| 752 | open New NumberField Valued QZChar |
| 753 | |
| 754 | /-- Let `A` be a place of the algebraic closure `Ω` (a valuation subring), `w` a finite place of |
| 755 | `E`, `χ` a character of `E_wˣ` (`LocField w`) with values in `ℚ/ℤ`, `ν` a Galois character of `E` |
| 756 | with `E' = stepField ν` the fixed field of the kernel of `symmetrize ν`, and `u` a finite place of |
| 757 | `E'`. The predicate says that `E' / E` is a step (`New.IsStep`: CM, Galois of prime degree, an |
| 758 | integer of trace `1`, for `ideleChar ν = exp (2πi ν ∘ Art)`) of degree `p` and `E'` has Weil data, |
| 759 | that `u` is split, lies below `A` and is the only place of `E'` above `w`, and that under the local |
| 760 | Artin map at `w` the character `ν` is trivial and `symmetrize ν` is `χ`. -/ |
| 761 | structure New.GaloisRep.IsStepOfLocalChar {E : Type} [Field E] [EmbeddedNumberField E] [CMType E] |
| 762 | {w : FinPlace E} (A : ClosurePlace) (χ : (LocField w)ˣ →* Multiplicative QZ) (p : ℕ) |
| 763 | (ν : QZChar Gal(Ω/E)) (u : FinPlace (stepField ν)) : Prop where |
| 764 | /-- The field `E'` has Weil data. -/ |
| 765 | nonempty_weilData : Nonempty (WeilData (stepField ν)) |
| 766 | /-- The extension `E' / E`, with the idele character of `ν`, is a step. -/ |
| 767 | isStep : IsStep (stepField ν) (ideleChar ν) |
| 768 | /-- The extension `E' / E` has degree `p`. -/ |
| 769 | finrank_eq : Module.finrank E (stepField ν) = p |
| 770 | /-- The place `u` is split. -/ |
| 771 | isSplit : u.IsSplit |
| 772 | /-- The place `u` is the only place of `E'` above `w`. -/ |
| 773 | below_eq_iff (u' : FinPlace (stepField ν)) : u'.below E = w ↔ u' = u |
| 774 | /-- The place `u` lies below `A`. -/ |
| 775 | isPlaceOver : IsPlaceOver A u |
| 776 | /-- Under the local Artin map at `w`, the character `ν` is trivial. -/ |
| 777 | abelianLift_artinAt (x : (LocField w)ˣ) : abelianLift ν (artinAt Gal(Ω/E) w x) = 1 |
| 778 | /-- Under the local Artin map at `w`, the character `symmetrize ν` is `χ`. -/ |
| 779 | abelianLift_symmetrize_artinAt (x : (LocField w)ˣ) : |
| 780 | abelianLift (symmetrize ν) (artinAt Gal(Ω/E) w x) = χ x |
| 781 | |
| 782 | /-- Let `χ` be a character of `E_wˣ` (`LocField w`) with values in `ℚ/ℤ` that is killed by `p` and |
| 783 | kills the `(q - 1)`-th powers of units, `q = w.q` being the norm of `w`. If `w` lies above `p`, |
| 784 | then `χ` kills the units of `E_w`, since `p` divides `q` and so is prime to `q - 1`. -/ |
| 785 | lemma New.GaloisRep.apply_eq_one_of_natCast_mem_asIdeal {E : Type} [Field E] [NumberField E] |
| 786 | {w : FinPlace E} {p : ℕ} (hp : p.Prime) (χ : (LocField w)ˣ →* Multiplicative QZ) |
| 787 | (hχ_pow : ∀ x : (LocField w)ˣ, χ x ^ p = 1) |
| 788 | (h_tame : ∀ x : (LocField w)ˣ, v x.val = 1 → χ (x ^ (w.q - 1)) = 1) |
| 789 | (hpw : (p : 𝓞 E) ∈ w.asIdeal) (x : (LocField w)ˣ) (hx : v x.val = 1) : χ x = 1 := by |
| 790 | have h_fact : Fact p.Prime := ⟨hp⟩ |
| 791 | have h_dvd : p ∣ w.q := (w.natCast_mem_iff_dvd hpw).mp w.asIdeal.absNorm_mem |
| 792 | have h_cop : p.Coprime (w.q - 1) := .of_dvd_left h_dvd (by simp) |
| 793 | exact (pow_eq_one_iff_of_coprime h_cop).mp ⟨hχ_pow x, by rw [← map_pow, h_tame x hx]⟩ |
| 794 | |
| 795 | /-- The local behaviour of the Galois character `ν` of `E` that Grunwald's theorem gives in the |
| 796 | proof of `New.GaloisRep.exists_isStepOfLocalChar`, for a character `χ` of `E_wˣ` (`LocField w`) |
| 797 | and a number `p`: `ν` is killed by `p`; under the local Artin map at `w` it is trivial and |
| 798 | `symmetrize ν` is `χ`; and it kills the local units at every finite place that is fixed by |
| 799 | complex conjugation or lies above `p`. -/ |
| 800 | private structure New.GaloisRep.IsGrunwaldChar {E : Type} [Field E] [EmbeddedNumberField E] |
| 801 | [CMType E] (w : FinPlace E) (χ : (LocField w)ˣ →* Multiplicative QZ) (p : ℕ) |
| 802 | (ν : QZChar Gal(Ω/E)) : Prop where |
| 803 | /-- The character `ν` is killed by `p`. -/ |
| 804 | nsmul_eq_zero : p • ν = 0 |
| 805 | /-- Under the local Artin map at `w`, the character `ν` is trivial. -/ |
| 806 | abelianLift_artinAt (x : (LocField w)ˣ) : abelianLift ν (artinAt Gal(Ω/E) w x) = 1 |
| 807 | /-- Under the local Artin map at `w`, the character `symmetrize ν` is `χ`. -/ |
| 808 | abelianLift_symmetrize_artinAt (x : (LocField w)ˣ) : |
| 809 | abelianLift (symmetrize ν) (artinAt Gal(Ω/E) w x) = χ x |
| 810 | /-- At a place `u` fixed by conjugation or above `p`, the character `ν` kills the local units. -/ |
| 811 | abelianLift_artinMap_locIdele (u : FinPlace E) (x : (LocField u)ˣ) |
| 812 | (hu : star u = u ∨ (p : 𝓞 E) ∈ u.asIdeal) (hx : v x.val = 1) : |
| 813 | abelianLift ν (artinMap Gal(Ω/E) (locIdele u x)) = 1 |
| 814 | |
| 815 | /-- Let `w` be a split finite place of the CM field `E`, `p` a prime, and `χ` a character of `E_wˣ` |
| 816 | killed by `p` that kills the `(w.q - 1)`-th powers of units (`E` also satisfies |
| 817 | `New.HasPrimitiveRoot5040`). Then some Galois character of `E` has the local behaviour of |
| 818 | `New.GaloisRep.IsGrunwaldChar`. -/ |
| 819 | private lemma New.GaloisRep.exists_isGrunwaldChar {E : Type} [Field E] [EmbeddedNumberField E] |
| 820 | [CMType E] [HasPrimitiveRoot5040 E] {w : FinPlace E} {p : ℕ} (hw : w.IsSplit) (hp : p.Prime) |
| 821 | (χ : (LocField w)ˣ →* Multiplicative QZ) (hχ_pow : ∀ x : (LocField w)ˣ, χ x ^ p = 1) |
| 822 | (h_tame : ∀ x : (LocField w)ˣ, v x.val = 1 → χ (x ^ (w.q - 1)) = 1) : |
| 823 | ∃ ν : QZChar Gal(Ω/E), IsGrunwaldChar w χ p ν := by |
| 824 | -- Grunwald's theorem for the character `ψ : b ↦ χ ((star b) w)` and the places `w`, `star w` and |
| 825 | -- those above `p` gives `ν`. As `ψ` only sees the place `star w`, `ν` is trivial at `w`, and at |
| 826 | -- the places `u = star u` (whose norm is not prime) and above `p` it kills the local units. |
| 827 | have h_neZero : NeZero p := ⟨hp.ne_zero⟩ |
| 828 | let ψ : (𝔸f E)ˣ →* Multiplicative QZ := .mk' (fun b ↦ χ (ideleAt w (star b))) (by simp) |
| 829 | have hχ_open : χ.ker.IsOpen := |
| 830 | isOpen_of_forall_pow_mem hp.ne_zero fun x ↦ by simpa using hχ_pow x |
| 831 | let S : Set (FinPlace E) := insert (star w) (insert w {u | (p : 𝓞 E) ∈ u.asIdeal}) |
| 832 | have hS : S.Finite := ((finite_natCast_mem p).insert w).insert (star w) |
| 833 | obtain ⟨ν, hν, h_grun⟩ := |
| 834 | grunwald hp hS ψ hχ_open.preimage_of_continuous fun b ↦ hχ_pow (ideleAt w (star b)) |
| 835 | -- on ideles at `w` the character `ψ` is trivial, and `ψ ∘ star` is `χ` there |
| 836 | have hν_w (x : (LocField w)ˣ) : abelianLift ν (artinAt Gal(Ω/E) w x) = 1 := by |
| 837 | simpa [ψ, star_locIdele, hw.symm] using h_grun w x (.inl (by simp [S])) |
| 838 | have h_sym_w (x : (LocField w)ˣ) : |
| 839 | abelianLift (symmetrize ν) (artinAt Gal(Ω/E) w x) = χ x := by |
| 840 | have h_conj : |
| 841 | abelianLift ν (artinMap Gal(Ω/E) (star (locIdele w x))) = ψ (star (locIdele w x)) := by |
| 842 | rw [star_locIdele, h_grun _ _ (.inl (by simp [S]))] |
| 843 | simpa [ψ, hν_w, h_conj] using abelianLift_symmetrize ν (locIdele w x) |
| 844 | have hν_unit (u : FinPlace E) (x : (LocField u)ˣ) (hu : star u = u ∨ (p : 𝓞 E) ∈ u.asIdeal) |
| 845 | (hx : v x.val = 1) : abelianLift ν (artinMap Gal(Ω/E) (locIdele u x)) = 1 := by |
| 846 | have h_place : u ∈ S ∨ ¬u.q.Prime ∧ v x.val = 1 := by |
| 847 | rcases hu with h_fixed | h_above |
| 848 | · exact .inr ⟨fun hq ↦ isSplit_of_q_prime hq h_fixed, hx⟩ |
| 849 | · exact .inl (by simp [S, h_above]) |
| 850 | rw [h_grun u x h_place] |
| 851 | change χ (ideleAt w (star (locIdele u x))) = 1 |
| 852 | rw [star_locIdele] |
| 853 | by_cases hwu : w = star u |
| 854 | · subst hwu |
| 855 | have hpu : (p : 𝓞 E) ∈ u.asIdeal := |
| 856 | hu.resolve_left fun h_fixed ↦ hw (by rw [h_fixed, h_fixed]) |
| 857 | rw [ideleAt_locIdele] |
| 858 | exact apply_eq_one_of_natCast_mem_asIdeal hp χ hχ_pow h_tame (by simpa using hpu) _ |
| 859 | ((v_conjLoc rfl x.val).trans hx) |
| 860 | · rw [ideleAt_locIdele_of_ne hwu, map_one] |
| 861 | exact ⟨ν, hν, hν_w, h_sym_w, hν_unit⟩ |
| 862 | |
| 863 | /-- Let the Galois character `ν` of `E` have the local behaviour of |
| 864 | `New.GaloisRep.IsGrunwaldChar`, and let the place `B` of `Ω` lie above a finite place `u` of `E` |
| 865 | that is fixed by complex conjugation or lies above `p`. Then `symmetrize ν` is unramified at `B`: |
| 866 | it kills the inertia group. The set of these places `u` is stable under `star`, and `ν` kills the |
| 867 | local units at `u` and at `star u`. -/ |
| 868 | private lemma New.GaloisRep.IsGrunwaldChar.inertiaGroup_le_ker_symmetrize {E : Type} [Field E] |
| 869 | [EmbeddedNumberField E] [CMType E] {w : FinPlace E} {χ : (LocField w)ˣ →* Multiplicative QZ} |
| 870 | {p : ℕ} {ν : QZChar Gal(Ω/E)} (hν : IsGrunwaldChar w χ p ν) {B : ClosurePlace} |
| 871 | {u : FinPlace E} (hB : IsPlaceOver B u) (hu : star u = u ∨ (p : 𝓞 E) ∈ u.asIdeal) : |
| 872 | inertiaGroup Gal(Ω/E) B ≤ ker (symmetrize ν) := by |
| 873 | have hu_star : star (star u) = star u ∨ (p : 𝓞 E) ∈ (star u).asIdeal := |
| 874 | hu.imp (fun h_fixed ↦ by rw [h_fixed, h_fixed]) fun h_above ↦ by simpa using h_above |
| 875 | refine (hB.artinAt_units_trivial_iff_inertiaGroup_le (symmetrize ν)).mp fun x hx ↦ ?_ |
| 876 | have hx_star : v (x.map (conjLoc (rfl : star u = star u)).toMonoidHom).val = 1 := by |
| 877 | simpa using hx |
| 878 | rw [← artinMap_locIdele, abelianLift_symmetrize, star_locIdele, |
| 879 | hν.abelianLift_artinMap_locIdele u x hu hx, |
| 880 | hν.abelianLift_artinMap_locIdele (star u) _ hu_star hx_star, one_mul] |
| 881 | |
| 882 | /-- Let `ν` be a character of `Gal(Ω/E)`, let the place `A` of `Ω` lie above the finite place `w` |
| 883 | of `E`, and let `stepField ν` have prime degree `p` over `E`. If some `g₀` in the decomposition |
| 884 | group of `A` has `symmetrize ν g₀ ≠ 1`, then exactly one place of `stepField ν` lies above `w`. -/ |
| 885 | private lemma New.GaloisRep.exists_forall_below_eq_iff {E : Type} [Field E] |
| 886 | [EmbeddedNumberField E] [CMType E] {w : FinPlace E} {A : ClosurePlace} {p : ℕ} |
| 887 | {ν : QZChar Gal(Ω/E)} (hA : IsPlaceOver A w) (hp : p.Prime) |
| 888 | (h_deg : Module.finrank E (stepField ν) = p) {g₀ : Gal(Ω/E)} |
| 889 | (hg₀ : g₀ ∈ decompGroup Gal(Ω/E) A) (hg₀_ne : toHom (symmetrize ν) g₀ ≠ 1) : |
| 890 | ∃ u₁ : FinPlace (stepField ν), ∀ u' : FinPlace (stepField ν), u'.below E = w ↔ u' = u₁ := by |
| 891 | -- (number of places above `w`) * (index of the kernel in the decomposition group) = `p`, and |
| 892 | -- `g₀` shows that the index is not `1` |
| 893 | have h_index : (ker (symmetrize ν)).relIndex (decompGroup Gal(Ω/E) A) ≠ 1 := fun h_one ↦ |
| 894 | hg₀_ne (Subgroup.relIndex_eq_one.mp h_one hg₀) |
| 895 | have h_count : {u' : FinPlace (stepField ν) | u'.below E = w}.ncard = 1 := by |
| 896 | have h_prime_mul : ({u' : FinPlace (stepField ν) | u'.below E = w}.ncard * |
| 897 | (ker (symmetrize ν)).relIndex (decompGroup Gal(Ω/E) A)).Prime := by |
| 898 | rwa [hA.ncard_above_mul_relIndex_eq_finrank (ker (symmetrize ν)), h_deg] |
| 899 | rcases Nat.prime_mul_iff.mp h_prime_mul with ⟨-, h_index_eq_one⟩ | ⟨-, h_ncard_eq_one⟩ |
| 900 | · exact absurd h_index_eq_one h_index |
| 901 | · exact h_ncard_eq_one |
| 902 | obtain ⟨u₁, h_set_eq⟩ : ∃ u₁ : FinPlace (stepField ν), |
| 903 | {u' : FinPlace (stepField ν) | u'.below E = w} = {u₁} := |
| 904 | Set.ncard_eq_one.mp h_count |
| 905 | exact ⟨u₁, fun u' ↦ by simpa using Set.ext_iff.mp h_set_eq u'⟩ |
| 906 | |
| 907 | /-- Grunwald's theorem for CM extensions of prime degree. Let `E` be a CM field with Weil data. Let |
| 908 | `w` be a split finite place of `E` (one that differs from its conjugate) lying below the place `A` |
| 909 | of `Ω`. Let `χ ≠ 1` be a character of `E_wˣ` that is killed by the prime `p` and kills the |
| 910 | `(q - 1)`-th powers of units, `q = w.q` being the norm of `w`. Then there are a Galois character `ν` |
| 911 | of `E` and a place `u` of `stepField ν` (the fixed field of the kernel of `g ↦ ν g + ν gᶜ`) forming |
| 912 | a step of degree `p` with local character `χ` at `w` (`New.GaloisRep.IsStepOfLocalChar`). This says |
| 913 | that `stepField ν / E` is a step of degree `p`, `stepField ν` has Weil data, and `u` is split. -/ |
| 914 | lemma New.GaloisRep.exists_isStepOfLocalChar {E : Type} [Field E] [EmbeddedNumberField E] |
| 915 | [CMType E] [WeilData E] {w : FinPlace E} {A : ClosurePlace} {p : ℕ} (hw : w.IsSplit) |
| 916 | (hA : IsPlaceOver A w) (hp : p.Prime) (χ : (LocField w)ˣ →* Multiplicative QZ) (hχ_ne : χ ≠ 1) |
| 917 | (hχ_pow : ∀ x : (LocField w)ˣ, χ x ^ p = 1) |
| 918 | (h_tame : ∀ x : (LocField w)ˣ, v x.val = 1 → χ (x ^ (w.q - 1)) = 1) : |
| 919 | ∃ (ν : QZChar Gal(Ω/E)) (u : FinPlace (stepField ν)), IsStepOfLocalChar A χ p ν u := by |
| 920 | -- Grunwald's theorem gives `ν` (`exists_isGrunwaldChar`). Then `symmetrize ν` is `χ` at `w` and |
| 921 | -- unramified at the places `u = star u` and above `p`, which gives the step and the Weil data; |
| 922 | -- only one place lies above `w`, since `symmetrize ν` is non-trivial there and the degree is |
| 923 | -- prime. |
| 924 | obtain ⟨ν, hν⟩ : ∃ ν : QZChar Gal(Ω/E), IsGrunwaldChar w χ p ν := |
| 925 | exists_isGrunwaldChar hw hp χ hχ_pow h_tame |
| 926 | -- hence `symmetrize ν` is unramified at these places, a set that is stable under `star` |
| 927 | have h_unram {B : ClosurePlace} {u : FinPlace E} (hB : IsPlaceOver B u) |
| 928 | (hu : star u = u ∨ (p : 𝓞 E) ∈ u.asIdeal) : |
| 929 | inertiaGroup Gal(Ω/E) B ≤ ker (symmetrize ν) := |
| 930 | hν.inertiaGroup_le_ker_symmetrize hB hu |
| 931 | -- some `g₀` in the decomposition group of `A` has `symmetrize ν g₀ = χ x₀ ≠ 1` |
| 932 | obtain ⟨x₀, hx₀⟩ : ∃ x₀ : (LocField w)ˣ, χ x₀ ≠ 1 := DFunLike.ne_iff.mp hχ_ne |
| 933 | obtain ⟨g₀, hg₀, hg₀_eq⟩ : ∃ g₀ ∈ decompGroup Gal(Ω/E) A, toHom (symmetrize ν) g₀ = χ x₀ := |
| 934 | (hA.range_abelianLift_comp_artinAt (symmetrize ν)).le ⟨x₀, hν.abelianLift_symmetrize_artinAt x₀⟩ |
| 935 | have h_sym_g₀_ne : toHom (symmetrize ν) g₀ ≠ 1 := hg₀_eq.trans_ne hx₀ |
| 936 | have h_sym_ne : symmetrize ν ≠ 0 := fun h_zero ↦ |
| 937 | h_sym_g₀_ne (congrArg (fun s : QZChar Gal(Ω/E) ↦ toHom s g₀) h_zero) |
| 938 | obtain ⟨u, hAu, hu_below⟩ : ∃ u : FinPlace (stepField ν), IsPlaceOver A u ∧ u.below E = w := |
| 939 | hA.exists_above |
| 940 | obtain ⟨h_step, h_deg⟩ : |
| 941 | IsStep (stepField ν) (ideleChar ν) ∧ Module.finrank E (stepField ν) = p := |
| 942 | isStep_stepField ν hp hν.nsmul_eq_zero h_sym_ne fun hB hu ↦ h_unram hB (.inr hu) |
| 943 | -- `g₀` shows that the kernel does not contain the decomposition group; as the degree is prime, |
| 944 | -- `u` is the only place above `w` |
| 945 | obtain ⟨u₁, h_unique⟩ := exists_forall_below_eq_iff hA hp h_deg hg₀ h_sym_g₀_ne |
| 946 | obtain rfl : u = u₁ := (h_unique u).mp hu_below |
| 947 | have hu_split : u.IsSplit := fun hu_fix ↦ hw (by rw [← hu_below, ← below_star, hu_fix]) |
| 948 | -- the relative different is prime to the places fixed by conjugation, where `symmetrize ν` is |
| 949 | -- unramified |
| 950 | have h_relDiff (u' : FinPlace (stepField ν)) (hu'_fix : star u' = u') : |
| 951 | ¬u'.asIdeal ∣ differentIdeal (𝓞 E) (𝓞 (stepField ν)) := |
| 952 | not_dvd_differentIdeal_stepField ν fun hB ↦ |
| 953 | h_unram hB (.inl (by rw [← below_star, hu'_fix])) |
| 954 | have h_data : Nonempty (WeilData (stepField ν)) := |
| 955 | nonempty_weilData_of_not_dvd_differentIdeal h_relDiff |
| 956 | exact ⟨ν, u, |
| 957 | { nonempty_weilData := h_data, isStep := h_step, finrank_eq := h_deg, isSplit := hu_split, |
| 958 | below_eq_iff := h_unique, isPlaceOver := hAu, |
| 959 | abelianLift_artinAt := hν.abelianLift_artinAt, |
| 960 | abelianLift_symmetrize_artinAt := hν.abelianLift_symmetrize_artinAt }⟩ |
| 961 | |
| 962 | /-- `New.GaloisRep.exists_isStepOfLocalChar` with `χ ≠ 1` given by a point `x₀` where `χ x₀ ≠ 1`. -/ |
| 963 | lemma New.GaloisRep.exists_step_of_local_char {E : Type} [Field E] [EmbeddedNumberField E] |
| 964 | [CMType E] {w : FinPlace E} {A : ClosurePlace} [WeilData E] {p : ℕ} (hw : w.IsSplit) |
| 965 | (hA : IsPlaceOver A w) (hp : p.Prime) (χ : (LocField w)ˣ →* Multiplicative QZ) |
| 966 | {x₀ : (LocField w)ˣ} (hx₀ : χ x₀ ≠ 1) (hχ_pow : ∀ x : (LocField w)ˣ, χ x ^ p = 1) |
| 967 | (h_tame : ∀ x : (LocField w)ˣ, v x.val = 1 → χ (x ^ (w.q - 1)) = 1) : |
| 968 | ∃ (ν : QZChar Gal(Ω/E)) (u : FinPlace (stepField ν)), IsStepOfLocalChar A χ p ν u := by |
| 969 | exact exists_isStepOfLocalChar hw hA hp χ (DFunLike.ne_iff.mpr ⟨x₀, hx₀⟩) hχ_pow h_tame |
| 970 | |
| 971 | end GrunwaldStep |