module import Mathlib.Algebra.Order.Star.Int import Mathlib.FieldTheory.Galois.Profinite import Mathlib.Topology.Algebra.Group.Units import TauCeti.NumberTheory.NumberField.ComplexConjugation.AlgebraicClosure import TauCeti.RingTheory.DedekindDomain.Different.Basic public import Lib.GaloisRep.BaseChange.CommutingHeckeFamilies public import Lib.GaloisRep.Main.SelmerModules public import Lib.Weil.Construction.WeilData import Lib.Adelic.Adeles.LocalFactors import Lib.Adelic.Adeles.StrongApproximation import Lib.ClassField.Global.AlbertBrauerHasseNoether import Lib.ClassField.Global.ArtinMap import Lib.ClassField.Global.ArtinReciprocity public import Lib.ClassField.Global.CMSplittingCharacters -- shake: keep (needed public by an exposed definition) import Lib.ClassField.Global.Chebotarev import Lib.ClassField.Global.ExistenceTheorem import Lib.ClassField.Global.NormTheorems import Lib.General.NumberTheory.FrobeniusOrbits import Lib.General.NumberTheory.SUnitsAndClassNumber import TauCeti.RingTheory.DedekindDomain.Different.Tower import TauCeti.Topology.Algebra.ContinuousMonoidHom.Basic /-! # Grunwald's theorem in prime degree and CM steps with prescribed local behaviour The file studies continuous characters `χ : Γ → ℚ/ℤ` of absolute Galois groups `Γ = Gal(Ω/E)` (`Ω` the algebraic closure; `New.EmbeddedNumberField E`: a number field with an embedding into `Ω`) of CM fields `E` that are killed by a prime `p`, and the cyclic extensions of degree `p` they cut out. Grunwald's theorem in prime degree produces such characters with prescribed local behaviour. If `E` is stably unramified (here: `New.HasPrimitiveRoot5040 E`, a primitive 5040th root of unity lies in `E`) and the symmetrised character is nonzero and kills inertia above `p`, the field cut out by the symmetrised character is a step of degree `p` over `E`. Weil data lift to stably unramified CM extensions `L` whose CM type restricts to that of `E` and whose relative different is prime to the places fixed by conjugation. Together these results give a step of prime degree with Weil data and a prescribed completion at a split place. ## Main definitions and results * `New.grunwald`: a character of the finite ideles of a totally complex field, killed by `p`, agrees with a Galois character killed by `p` at finitely many given places, and on the units at every place whose norm is not prime. * `New.QZChar.symmetrize`, `New.QZChar.abelianLift_symmetrize`: for a CM field, the character `g ↦ χ g + χ (gᶜ)`; on the Artin symbol of an idele `a` it is `χ a + χ (star a)`. * `New.QZChar.stepField`: the fixed field of the kernel of `New.QZChar.symmetrize χ`. Instances show that it is CM, that a CM type of `E` extends to it (`New.CMTypeOver`) and that it inherits `New.HasPrimitiveRoot5040`. * `New.isStep_stepField`: it is a step of degree `p` over `E` if `New.HasPrimitiveRoot5040 E` holds, `χ` is killed by a prime `p`, and `New.QZChar.symmetrize χ` is not zero and kills inertia above `p`. * `New.nonempty_weilData_of_not_dvd_differentIdeal`: if `L` also satisfies `New.HasPrimitiveRoot5040`, then `L` has Weil data; in the construction `j` stays, `υ` is composed with the norm, and a new idele absorbs the relative different, which is assumed prime to the places fixed by conjugation. * `New.GaloisRep.exists_isStepOfLocalChar`, `New.GaloisRep.exists_step_of_local_char`: given a split place `w` below `A` and a nontrivial tame character `χ` of `E_wˣ` killed by a prime `p`, a step `E' / E` of degree `p`, again with Weil data, cut out by the symmetrisation of a Galois character `ν` that is trivial at `w` and has symmetrisation `χ` there; the only place of `E'` above `w` is split and lies under `A`. Notions from other files: * `New.locIdele`: The homomorphism sending x ∈ K_v^× to the finite idele with component x at v and 1 elsewhere; `New.ideleAt v` takes the component at v. * `New.CMTypeOver`: a CM type of L that restricts to the given CM type of E; the embedding chosen at a place extends the one chosen at the place below. * `New.WeilData`: Weil data on a stably unramified E. They consist of ȷ in E with ȷ = −ȷ̄, Im τȷ > 0 for every τ in the CM type and (1 − ȷ⁻¹)/2 integral; a finite idele α for which the completed integers Ô are self-dual under (z, u) ↦ ψ_f(ȷαᾱzu); and a splitting character υ equal to −1 at uniformisers of the places w with w = w̄. ## Relation to the literature Known result: Grunwald–Wang theorem in prime exponent. It is proved over a totally complex field, and the character also agrees with the given one on units at all primes of degree above one. It yields a CM extension of prime degree with prescribed tame completion at a split place. Source: Artin–Tate, Class Field Theory (1968), ch. X; S. Wang, Grunwald–Wang theorem, an effective version, arXiv 1401.0389 (2014). See also `Lib.Weil.MixedModel.ZeroTerm`. -/ @[expose] public section namespace New /-! ## Grunwald's theorem in prime degree and the symmetrised character `New.QZChar Γ` is the group of continuous characters `Γ → ℚ/ℤ`, `New.QZChar.abelianLift χ` the induced map on `Γ^ab` (written multiplicatively), `New.artinMap` the global Artin map on finite ideles. -/ section Grunwald open NumberField QuotientGroup Subgroup QZChar Valued QZ Algebra Nat SUnit MonoidHom Fact variable {E : Type} [Field E] [NumberField E] [Algebra E Ω] /-- Let `p` be prime, `x ∈ Eˣ` not the `p`-th power of an element of `Eˣ`, and `r ∈ Ω` a `p`-th root of `x`. Then some element of the absolute Galois group of `E` that fixes the `p`-th roots of unity (it lies in the kernel of the cyclotomic character `New.cyclotomicCharMod Ω p`) moves `r`. -/ private lemma exists_mem_ker_cyclotomicCharMod_smul_ne_of_forall_pow_ne {p : ℕ} [Fact p.Prime] {x : Eˣ} (hx : ∀ z : Eˣ, z ^ p ≠ x) {r : Ω} (hr : r ^ p = algebraMap E Ω x) : ∃ g : Gal(Ω/E), g ∈ (cyclotomicCharMod Ω p).ker ∧ g • r ≠ r := by -- Otherwise `r` lies in the field `E(μ_p)` fixed by the kernel, whose degree over `E` is prime -- to `p`; the norm of `r` then shows that `x` is a `p`-th power in `E`. by_contra! h_fix have hp : p.Prime := Fact.out let H : Subgroup Gal(Ω/E) := (cyclotomicCharMod Ω p).ker have h_coprime : (Module.finrank E (fixedFieldOf H)).Coprime p := by have h_dvd : Module.finrank E (fixedFieldOf H) ∣ p - 1 := calc Module.finrank E (fixedFieldOf H) _ = Nat.card (cyclotomicCharMod Ω p).range := by rw [finrank_fixedFieldOf, index_ker] _ ∣ Nat.card (ZMod p)ˣ := card_subgroup_dvd_card _ _ = p - 1 := by rw [card_units, Nat.card_zmod] exact .of_dvd_left h_dvd (by simp [hp.one_le]) let root : fixedFieldOf H := ⟨r, fun g ↦ h_fix g g.prop⟩ have h_root : root ^ p = algebraMap E (fixedFieldOf H) x := Subtype.ext hr have h_norm : norm E root ^ p = (x : E) ^ Module.finrank E (fixedFieldOf H) := by rw [← map_pow, h_root, Algebra.norm_algebraMap] obtain ⟨z, hz : z ^ p = (x : E)⟩ := (pow_mem_range_pow_of_coprime h_coprime (x : E)).mp ⟨norm E root, h_norm⟩ exact hx (x.ofPow z hp.ne_zero hz) (Units.ext hz) /-- Let `E` be totally complex and `ψ` a character of the finite ideles with values in `ℚ/ℤ` (written multiplicatively), with open kernel and killed by `p`. Let `T` be a set of finite places such that the principal ideles and the ideles that are units outside `T` (`New.idelesUnitOff T`) generate all finite ideles, and let `U` be an open subgroup of the finite ideles that contains the `p`-th powers of the ideles that are units outside `T`. If `ψ` is trivial on the principal ideles in `U`, then some continuous character `χ` of the absolute Galois group, killed by `p`, has `χ ∘ Art = ψ` on `U`. -/ private lemma exists_nsmul_eq_zero_abelianLift_artinMap_eq_of_apply_principalIdele_eq_one [IsTotallyComplex E] {p : ℕ} (ψ : (𝔸f E)ˣ →* Multiplicative QZ) (hψ_open : ψ.ker.IsOpen) (hψ_pow : ∀ a : (𝔸f E)ˣ, ψ a ^ p = 1) {T : Set (FinPlace E)} (h_sup : principalIdele.range ⊔ idelesUnitOff T = ⊤) {U : Subgroup (𝔸f E)ˣ} (hU_open : U.IsOpen) (h_pow_mem : ∀ b ∈ idelesUnitOff T, b ^ p ∈ U) (h_principal : ∀ x : Eˣ, principalIdele x ∈ U → ψ (principalIdele x) = 1) : ∃ χ : ↥(QZChar Gal(Ω/E)), p • χ = 0 ∧ ∀ a ∈ U, abelianLift χ (artinMap Gal(Ω/E) a) = ψ a := by -- As `ℚ/ℤ` is divisible, `ψ` on `U` extends to a character `θ` of the finite ideles that kills -- the principal ideles; by the existence theorem `θ` comes from a Galois character. have h_kill (a : U) (ha : U.subtype a ∈ principalIdele.range) : ψ.domRestrict U a = 1 := by obtain ⟨x, hx : principalIdele x = a⟩ := ha change ψ a = 1 simpa [hx] using h_principal x (by simp [hx]) obtain ⟨θ, hθ_rat : principalIdele.range ≤ θ.ker, hθ : ∀ a : U, θ a = ψ a⟩ := -- the instance `DivisibleBy QZ ℤ` is not found for `Additive (Multiplicative QZ)`: pass it exists_monoidHom_extend (C := Multiplicative QZ) (d := instDivisibleByQZInt) U.subtype (ψ.domRestrict U) principalIdele.range h_kill -- `θ` is continuous: its kernel contains the open subgroup `ker ψ ⊓ U`. have h_le_ker : ψ.ker ⊓ U ≤ θ.ker := fun a ⟨ha_ker, ha_U⟩ ↦ (hθ ⟨a, ha_U⟩).trans ha_ker have hθ_cont : Continuous θ := θ.continuous_of_isOpen_ker ((ψ.ker ⊓ U).isOpen_mono h_le_ker (hψ_open.inter hU_open)) obtain ⟨μ, hμ_cont : Continuous μ, hμ : ∀ (a : (𝔸f E)ˣ) (g : Gal(Ω/E)), artinMap Gal(Ω/E) a = g → μ g = θ a⟩ := exists_comp_artinMap Gal(Ω/E) θ hθ_cont fun x ↦ hθ_rat ⟨x, rfl⟩ -- `θ ^ p` kills the principal ideles and the ideles that are units outside `T` (their `p`-th -- powers lie in `U`), and these two subgroups generate all finite ideles. have hθ_pow (a : (𝔸f E)ˣ) : θ a ^ p = 1 := by have h_rat : principalIdele.range ≤ (θ ^ p).ker := fun b hb ↦ by simp [mem_ker.mp (hθ_rat hb)] have h_units : idelesUnitOff T ≤ (θ ^ p).ker := fun b hb ↦ by have hθ_b : θ (b ^ p) = ψ (b ^ p) := hθ ⟨b ^ p, h_pow_mem b hb⟩ simpa [hψ_pow] using hθ_b simpa using sup_le h_rat h_units (h_sup.ge (mem_top a)) refine ⟨⟨μ, hμ_cont, μ.map_mul⟩, ?_, fun a ha ↦ ?_⟩ · -- at `g`, `p • χ` takes the value `θ a ^ p = 1`, for an idele `a` whose Artin symbol is `g` refine Subtype.ext (funext fun g ↦ ?_) obtain ⟨a, ha⟩ := artinMap_surjective _ (g : TopologicalAbelianization Gal(Ω/E)) change μ g ^ p = 1 rw [hμ a g ha, hθ_pow] · obtain ⟨g, hg⟩ := mk_surjective (artinMap Gal(Ω/E) a) calc _ = μ g := (congrArg _ hg.symm).trans (abelianLift_mk _ g) _ = θ a := hμ a g hg.symm _ = ψ a := hθ ⟨a, ha⟩ omit [Algebra E Ω] in /-- The idele `New.locIdele u x`, with single component `x` at `u`, is a unit outside `T` if `u ∈ T` or if `x` is a local unit (`v x = 1`). -/ private lemma locIdele_mem_idelesUnitOff_of_mem_or_v_eq_one {T : Set (FinPlace E)} {u : FinPlace E} {x : (LocField u)ˣ} (hu : u ∈ T ∨ v x.val = 1) : locIdele u x ∈ idelesUnitOff T := by rcases hu with hu_T | hx_unit · refine mem_idelesUnitOff.mpr fun w hw ↦ ?_ rw [locIdele_apply_of_ne (ne_of_mem_of_not_mem hu_T hw).symm x, map_one] · exact locIdele_mem_idelesUnitOff hx_unit omit [Algebra E Ω] in /-- Let `S ⊆ T`, let each `w q` be a place outside `T` of prime norm, and let `u` be a place of `S`, or a place of non-prime norm at which `x` is a local unit. Then the idele `New.locIdele u x`, whose only component different from `1` is `x` at `u`, is a unit outside `T` and a `p`-th power at every place `w q`. -/ private lemma locIdele_mem_inf_iInf_pow {p : ℕ} {ι : Type} {S T : Set (FinPlace E)} (hST : S ⊆ T) (w : ι → FinPlace E) (hwT : ∀ q, w q ∉ T) (hw_prime : ∀ q, (w q).q.Prime) (u : FinPlace E) (x : (LocField u)ˣ) (hu : u ∈ S ∨ ¬ u.q.Prime ∧ v x.val = 1) : locIdele u x ∈ idelesUnitOff T ⊓ ⨅ q, (powMonoidHom p).range.comap (ideleAt (w q)) := by -- `u` is none of the `w q`, which lie outside `T` and have prime norm have h_ne (q : ι) : w q ≠ u := by rintro rfl rcases hu with hu_S | ⟨hu_not_prime, -⟩ · exact hwT q (hST hu_S) · exact hu_not_prime (hw_prime q) refine ⟨locIdele_mem_idelesUnitOff_of_mem_or_v_eq_one (hu.imp (fun hu_S ↦ hST hu_S) And.right), mem_iInf.mpr fun q ↦ ?_⟩ change ideleAt (w q) (locIdele u x) ∈ (powMonoidHom p).range rw [ideleAt_locIdele_of_ne (h_ne q) x] exact one_mem _ /-- Grunwald's theorem in prime exponent. Let `E` be totally complex, `p` prime, `S` a finite set of finite places, and `ψ` a character of the finite ideles with values in `ℚ/ℤ` (written multiplicatively), with open kernel and killed by `p`; it need not be trivial on `Eˣ`. Then some continuous character `χ` of the absolute Galois group, killed by `p`, has `χ ∘ Art = ψ` on the ideles `New.locIdele u x` with single component `x` at `u`. This holds for all `x` if `u ∈ S`, and for local units `x` (`v x = 1`) if the norm `u.q` of `u` (the size of its residue field) is not prime. -/ lemma grunwald [IsTotallyComplex E] {p : ℕ} {S : Set (FinPlace E)} (hp : p.Prime) (hS : Set.Finite S) (ψ : (𝔸f E)ˣ →* Multiplicative QZ) (hψ_open : ψ.ker.IsOpen) (hψ_pow : ∀ a : (𝔸f E)ˣ, ψ a ^ p = 1) : ∃ χ : ↥(QZChar Gal(Ω/E)), -- (a) the Galois character `χ` is killed by `p` p • χ = 0 ∧ -- (b) `χ` agrees with `ψ` at places of `S` and on units at places of non-prime norm ∀ (u : FinPlace E) (x : (LocField u)ˣ), u ∈ S ∨ ¬u.q.Prime ∧ v x.val = 1 → abelianLift χ (artinMap Gal(Ω/E) (locIdele u x)) = ψ (locIdele u x) := by -- Enlarge `S` to `T` such that the principal ideles and the units outside `T` generate. For each -- class `q` of `T`-units modulo `p`-th powers that `ψ` does not kill, Chebotarev gives a place -- `w q` where `q` is not a local `p`-th power. Then `ψ` kills the principal ideles in the open -- group `U` of ideles that are units outside `T` and `p`-th powers at every `w q`, and -- `exists_nsmul_eq_zero_abelianLift_artinMap_eq_of_apply_principalIdele_eq_one` applies to `U`. have h_fact : Fact p.Prime := ⟨hp⟩ obtain ⟨T, hT_fin, hST, h_sup : principalIdele.range ⊔ idelesUnitOff T = ⊤⟩ := exists_superset_sup_idelesUnitOff_eq_top hS -- the `T`-units are finitely generated, so there are finitely many classes `q` obtain ⟨h_fg : Module.Finite ℤ (Additive (T.unit E)), -⟩ := dirichlet_unit_theorem hT_fin let N : Subgroup (T.unit E) := (powMonoidHom p).range obtain ⟨h_index_ne : N.index ≠ 0, -⟩ := index_range_pow_eq (Y := T.unit E) (n := p) (mod_cast cokerKerIndex_eq_pow_finrank) have h_N_fin : N.FiniteIndex := N.finiteIndex_iff.mpr h_index_ne let H : Subgroup Gal(Ω/E) := (cyclotomicCharMod Ω p).ker -- `r a`: a chosen `p`-th root of `a` in `Ω` choose r hr using Variety.IsAbsIntegrallyClosed.exists_pow_eq (A := Ω) p -- An `x` not killed by `ψ` is no `p`-th power in `E`, so some element of `H` moves its root. have h_moves (x : Eˣ) (hx : ψ (principalIdele x) ≠ 1) : ((H : Set Gal(Ω/E)) \ {g | g • r (algebraMap E Ω x) = r (algebraMap E Ω x)}).Nonempty := by have h_not_pow : ∀ z : Eˣ, z ^ p ≠ x := fun z hz ↦ hx (by rw [← hz, map_pow, map_pow, hψ_pow]) exact exists_mem_ker_cyclotomicCharMod_smul_ne_of_forall_pow_ne h_not_pow (hr _) -- `Q`: the classes of `T`-units modulo `p`-th powers whose chosen representative `ψ` does not -- kill; `ρ q`: the chosen root of that representative; `W q`: the elements of `H` that move it let Q : Type := {q : T.unit E ⧸ N // ψ (principalIdele q.out) ≠ 1} let ρ (q : Q) : Ω := r (algebraMap E Ω (q.val.out : Eˣ)) let W (q : Q) : Set Gal(Ω/E) := (H : Set Gal(Ω/E)) \ {g | g • ρ q = ρ q} -- Chebotarev: for each `q` a place `w q ∉ T` of prime norm, a place `A q` of `Ω` over it, and a -- Frobenius `σ q` at `A q` that lies in `W q`. have h_cheb (q : Q) : ∃ w ∉ T, w.q.Prime ∧ ∃ A : ClosurePlace, IsPlaceOver A w ∧ ∃ σ ∈ W q, IsFrob A w.q σ ∧ ∀ τ : Gal(Ω/E), IsFrob A w.q τ → τ ∈ W q := by -- `W q` is open: `H` is open and the set of elements that fix `ρ q` is closed have h_H_open : IsOpen (H : Set Gal(Ω/E)) := Fact.out exact chebotarev (h_H_open.sdiff (isClosed_setOf_smul (ρ q) fun y ↦ y = ρ q)) (h_moves _ q.prop) hT_fin choose w hwT hw_prime A hA σ hσ h_frob using h_cheb -- `R q`: the ideles that are `p`-th powers at `w q`; `U`: the ideles in every `R q` that are -- units outside `T` let R (q : Q) : Subgroup (𝔸f E)ˣ := (powMonoidHom p).range.comap (ideleAt (w q)) let U : Subgroup (𝔸f E)ˣ := idelesUnitOff T ⊓ iInf R have h_principal (x : Eˣ) (hx : principalIdele x ∈ U) : ψ (principalIdele x) = 1 := by by_contra h_ne -- The representative of the class of `x` is `x * y ^ p`; it is a `p`-th power at its own place -- `w q`, so the decomposition group in `H` fixes its root, against the choice of `σ q`. obtain ⟨hx_units, hx_R : principalIdele x ∈ iInf R⟩ := hx let xT : T.unit E := ⟨x, principalIdele_mem_idelesUnitOff.mp hx_units⟩ obtain ⟨⟨_, y, rfl⟩, h_out : (xT : T.unit E ⧸ N).out = xT * y ^ p⟩ := mk_out_eq_mul N xT have hq_ne : ψ (principalIdele ((xT : T.unit E ⧸ N).out : Eˣ)) ≠ 1 := by simpa [h_out, hψ_pow] using h_ne let q : Q := ⟨xT, hq_ne⟩ have h_loc_pow : principalIdele q.val.out ∈ R q := by rw [show (q.val.out : Eˣ) = x * y ^ p from congrArg Subtype.val h_out, map_mul] exact mul_mem (mem_iInf.mp hx_R q) (by simp [R]) obtain ⟨hσ_H : σ q ∈ H, hσ_moves : σ q • ρ q ≠ ρ q⟩ := hσ q obtain ⟨⟨hσ_decomp : σ q ∈ decompGroup Gal(Ω/E) (A q), -⟩, -⟩ := h_frob q exact hσ_moves ((hA q).smul_root_eq_of_local_pow h_loc_pow (hr _) (σ q) hσ_decomp (mem_ker.mp hσ_H)) have hR_open (q : Q) : (R q).IsOpen := (isOpen_of_forall_pow_mem hp.ne_zero fun y ↦ mem_range.mpr ⟨y, rfl⟩).preimage_of_continuous have hU_open : U.IsOpen := by simpa [U, Subgroup.IsOpen] using (isOpen_idelesUnitOff T).inter (isOpen_iInter_of_finite hR_open) have h_pow_mem (b : (𝔸f E)ˣ) (hb : b ∈ idelesUnitOff T) : b ^ p ∈ U := by simp [U, R, pow_mem hb] obtain ⟨χ, hχ_pow, hχ_eq : ∀ a ∈ U, abelianLift χ (artinMap Gal(Ω/E) a) = ψ a⟩ := exists_nsmul_eq_zero_abelianLift_artinMap_eq_of_apply_principalIdele_eq_one ψ hψ_open hψ_pow h_sup hU_open h_pow_mem h_principal refine ⟨χ, hχ_pow, fun u x hu ↦ hχ_eq (locIdele u x) ?_⟩ exact locIdele_mem_inf_iInf_pow hST w hwT hw_prime u x hu variable [IsCMField E] (χ : QZChar Gal(Ω/E)) /-- For a character `χ` of the absolute Galois group of a CM field, the character `g ↦ χ g + χ (gᶜ)`, where `gᶜ` is the conjugate of `g` by complex conjugation (`New.conjGal`). -/ noncomputable abbrev QZChar.symmetrize : ↥(QZChar Gal(Ω/E)) := χ + comap ⟨conjGal, continuous_conjGal⟩ χ /-- For a `ℚ/ℤ`-valued character `χ` of `Gal(Ω/E)`, the character `exp (2πi χ ∘ Art)` of the finite ideles of `E`. -/ noncomputable abbrev QZChar.ideleChar : (𝔸f E)ˣ →* ℂˣ := expUnit.comp ((abelianLift χ).comp (artinMap Gal(Ω/E))) /-- On the Artin symbol of an idele `a`, the symmetrised character `New.QZChar.symmetrize χ` takes the value of `χ` at `a` times the value of `χ` at the conjugate idele `star a`. -/ lemma QZChar.abelianLift_symmetrize (a : (𝔸f E)ˣ) : abelianLift (symmetrize χ) (artinMap Gal(Ω/E) a) = abelianLift χ (artinMap Gal(Ω/E) a) * abelianLift χ (artinMap Gal(Ω/E) (star a)) := by obtain ⟨g, hg⟩ := mk_surjective (artinMap Gal(Ω/E) a) -- the Artin symbol of `star a` is the class of `conjGal g` rw [← hg, artinMap_star g hg.symm] simp [symmetrize, ofAdd_add] rfl end Grunwald /-! ## The CM field cut out by the symmetrised character, and when it is a step `New.HasPrimitiveRoot5040 E`: `E` contains a primitive root of unity of order `5040`. `New.IsStep E' μ`: among other things `[E' : E]` is prime and `μ (z z̄) = 1` exactly when `z` is a norm from `E'` times an element of `Eˣ`. -/ section StepField open NumberField Ideal Algebra ComplexEmbedding Cohomology Subgroup QZChar QZ FractionalIdeal RingOfIntegers variable {E : Type} [Field E] [EmbeddedNumberField E] section variable [IsCMField E] (χ : QZChar Gal(Ω/E)) /-- The extension of the CM field `E` inside `Ω` cut out by the character `g ↦ χ g + χ (gᶜ)`, that is, the fixed field of its kernel. -/ noncomputable abbrev QZChar.stepField : IntermediateField E Ω := fixedFieldOf (ker (symmetrize χ)) open TauCeti.NumberField in /-- The field `New.QZChar.stepField χ` is CM. Any product of two complex conjugations of `Ω` fixes it, and it contains the totally complex field `E`. -/ instance : IsCMField (stepField χ) := by have : IsTotallyComplex (stepField χ) := isTotallyComplex_of_algebra E _ refine ((isTotallyReal_or_isCMField_iff (algebraMap (stepField χ) Ω)).mpr ?_).resolve_left IsTotallyComplex.not_isTotallyReal -- For each conjugation `c` of `Ω`, the product `c * cmConj` is over `E`, and conjugation -- by `cmConj` inverts it. Hence the symmetrized character vanishes on this product. have h_fix (c : Gal(Ω/ℚ)) (hc : c ∈ complexConjugations Ω) (y : stepField χ) : c (cmConj (y : Ω)) = y := by let g : Gal(Ω/E) := { c * cmConj with commutes' e := by change c (cmConj (algebraMap E Ω e)) = algebraMap E Ω e rw [cmConj_algebraMap, apply_eq_complexConj_of_isCMField hc (algebraMap E Ω)] exact congrArg (algebraMap E Ω) (star_star e) } have h_inv : conjGal g * g = 1 := by ext z change cmConj (c (cmConj (cmConj (c (cmConj z))))) = z rw [cmConj_cmConj, apply_apply_of_mem_complexConjugations hc, cmConj_cmConj] have hg : g ∈ ker (symmetrize χ) := map_mul_eq_one (toHom χ) (mul_eq_one_symm h_inv) exact y.prop ⟨g, hg⟩ -- Thus every conjugation agrees with `cmConj` on the step field, and any two compose to 1. intro c₁ hc₁ c₂ hc₂ y change c₁ (c₂ (y : Ω)) = y rw [apply_eq_of_apply_eq_of_mem_complexConjugations hc₂ (h_fix c₂ hc₂ y)] exact h_fix c₁ hc₁ y end open scoped Classical in open InfinitePlace in /-- A CM type of `E` extends to `New.QZChar.stepField χ`: at each infinite place take the embedding whose restriction to `E` is the embedding chosen at the place below. -/ noncomputable instance [CMType E] (χ : QZChar Gal(Ω/E)) : CMTypeOver E (stepField χ) where -- Of the two embeddings at `u`, take the one that restricts to the chosen embedding below. Φ u := let e : stepField χ →+* ℂ := u.embedding if e.comp (algebraMap E (stepField χ)) = Φ (u.comap (algebraMap E (stepField χ))) then e else star e mk_Φ := by aesop eq_chosen_iff := by grind [embedding_mk_eq, Φ_mk_eq_or_star_eq, comap_mk, conjugate_comp, star_star] variable [IsCMField E] (χ : QZChar Gal(Ω/E)) /-- `New.QZChar.stepField χ` contains the image of a primitive `5040`-th root of unity of `E`. -/ instance [h : HasPrimitiveRoot5040 E] : HasPrimitiveRoot5040 (stepField χ) where exists_primitive_root := by obtain ⟨ζ, hζ : IsPrimitiveRoot ζ 5040⟩ := h.exists_primitive_root exact ⟨algebraMap E (stepField χ) ζ, hζ.map_of_injective (algebraMap E (stepField χ)).injective⟩ /-- If `New.QZChar.symmetrize χ` kills the inertia groups at the places `A : ClosurePlace` of `Ω` (valuation subrings) over (`IsPlaceOver`) the prime of `E` below `u`, then `u` does not divide the different of `New.QZChar.stepField χ` over `E`. -/ lemma QZChar.not_dvd_differentIdeal_stepField {u : FinPlace (stepField χ)} (h_inertia : ∀ {A : ClosurePlace}, IsPlaceOver A (u.below E) → inertiaGroup Gal(Ω/E) A ≤ ker (symmetrize χ)) : ¬u.asIdeal ∣ differentIdeal (𝓞 E) (𝓞 (stepField χ)) := by -- Take a place of `Ω` over `u`. Its inertia group lies in the kernel of `symmetrize χ`, which -- cuts out `stepField χ`, so the ramification index of `u` is one. have h_below : IsPlaceOver (placeOver u) (u.below E) := u.isPlaceOver_placeOver.isPlaceOver_below obtain ⟨-, h_unram_of_le, -⟩ := h_below.ramification_in_tower (ker (symmetrize χ)) u.isPlaceOver_placeOver have h_one : u.asIdeal.ramificationIdx (𝓞 E) = 1 := h_unram_of_le (h_inertia h_below) exact not_dvd_differentIdeal_iff.mpr (ramificationIdx_eq_one_iff.mp h_one) /-- Suppose that `New.QZChar.stepField χ` has degree `p` over `E` and that `New.QZChar.symmetrize χ` kills the inertia groups at the places above `p`. Then the trace from the integers of `New.QZChar.stepField χ` to the integers of `E` is onto. -/ private lemma range_intTrace_stepField_eq_top {p : ℕ} (h_rank : Module.finrank E (stepField χ) = p) (h_unram : ∀ {A : ClosurePlace} {u : FinPlace E}, IsPlaceOver A u → ↑p ∈ u.asIdeal → inertiaGroup Gal(Ω/E) A ≤ ker (symmetrize χ)) : (intTrace (𝓞 E) (𝓞 (stepField χ))).range = ⊤ := by -- Otherwise all traces lie in a prime `u` of `E`. It contains `tr 1 = p`, so a prime `P` above -- `u` is unramified; yet `P` divides the different. by_contra h_ne obtain ⟨u, hu : LinearMap.range (intTrace (𝓞 E) (𝓞 (stepField χ))) ≤ u.asIdeal⟩ := (IsDedekindDomain.HeightOneSpectrum.ideal_ne_top_iff_exists (not_isField E) _).mp h_ne -- `tr 1 = [stepField χ : E] = p` have h_trace_one : intTrace (𝓞 E) (𝓞 (stepField χ)) 1 = (p : 𝓞 E) := ext (by simp [algebraMap_intTrace (L := stepField χ), trace_apply, map_one, h_rank]) have hp_mem : (p : 𝓞 E) ∈ u.asIdeal := hu ⟨1, h_trace_one⟩ obtain ⟨P, rfl⟩ := FinPlace.comap_surjective (algebraMap E (stepField χ)) u -- Since all traces lie in the prime downstairs, its extension divides the different. let extendedIdeal := (P.below E).asIdeal.map (algebraMap (𝓞 E) (𝓞 (stepField χ))) have h_map_dvd : extendedIdeal ∣ differentIdeal (𝓞 E) (𝓞 (stepField χ)) := (TauCeti.dvd_differentIdeal_iff_forall_intTrace_mem _ (P.below E).ne_bot extendedIdeal 1 (mul_one _)).2 fun x _ ↦ hu ⟨x, rfl⟩ have h_prime_dvd : P.asIdeal ∣ extendedIdeal := (liesOver_iff_dvd_map P.isPrime.ne_top).1 inferInstance exact not_dvd_differentIdeal_stepField χ (fun h_place ↦ h_unram h_place hp_mem) (h_prime_dvd.trans h_map_dvd) /-- Suppose that `p` is prime, `p • χ = 0` and `New.QZChar.symmetrize χ ≠ 0`. Then `New.QZChar.stepField χ` has degree `p` over `E`: the degree is the order of the image of `New.QZChar.symmetrize χ`, a nontrivial subgroup of the `p`-torsion of `ℚ/ℤ` (the image of `ZMod p`). -/ private lemma finrank_stepField {p : ℕ} (hp : Nat.Prime p) (hχ : p • χ = 0) (hχ_sym_ne : symmetrize χ ≠ 0) : Module.finrank E (stepField χ) = p := by have h_fact : Fact p.Prime := ⟨hp⟩ have hχ_apply (g : Gal(Ω/E)) : p • χ.val g = 0 := by simpa using congrFun (congrArg Subtype.val hχ) g have h_range : (toHom (symmetrize χ)).range ≤ (ofZMod p).toMultiplicative.range := by rintro _ ⟨g, rfl⟩ exact exists_ofZMod (a := χ.val g + χ.val (conjGal g)) (by simp [hχ_apply]) have h_dvd : (toHom (symmetrize χ)).ker.index ∣ p := calc (toHom (symmetrize χ)).ker.index _ = Nat.card (toHom (symmetrize χ)).range := index_ker _ _ ∣ Nat.card (ofZMod p).toMultiplicative.range := card_dvd_of_le h_range _ ∣ Nat.card (Multiplicative (ZMod p)) := card_range_dvd _ _ = p := Nat.card_zmod p have h_ne_one : (toHom (symmetrize χ)).ker.index ≠ 1 := by -- otherwise the kernel is everything, and `symmetrize χ` vanishes intro h_one refine hχ_sym_ne (Subtype.ext (funext fun g ↦ ?_)) have hg_ker : g ∈ (toHom (symmetrize χ)).ker := (index_eq_one.mp h_one).ge (mem_top g) exact (QZChar.mem_ker_iff_val_eq_zero (symmetrize χ) g).mp hg_ker rw [finrank_fixedFieldOf, (hp.dvd_iff_eq h_ne_one).mp h_dvd] /-- Let `E` be a CM field containing a primitive 5040th root of unity (`New.HasPrimitiveRoot5040`), and let `p` be prime. Write `New.QZChar.symmetrize χ` for the character `g ↦ χ g + χ gᶜ`, where `gᶜ` is the conjugate of `g` by complex conjugation. Suppose that (a) `p • χ = 0`, (b) `New.QZChar.symmetrize χ` is not zero, and (c) it kills the inertia groups at the places above `p`. Then the field `New.QZChar.stepField χ`, the fixed field of the kernel of `symmetrize χ`, has degree `p` over `E`. It is a step (`New.IsStep`: a CM field Galois of prime degree over `E`, with an integer of trace `1`) for the Hecke character `New.QZChar.ideleChar χ = exp (2πi χ ∘ Art)`. This character has open kernel, is trivial on `Eˣ`, and is `1` at `z z̄` exactly when `z` is a principal idele times a norm from the field. -/ lemma isStep_stepField [HasPrimitiveRoot5040 E] {p : ℕ} (hp : Nat.Prime p) (hχ : p • χ = 0) (hχ_sym_ne : symmetrize χ ≠ 0) (h_unram : ∀ {A : ClosurePlace} {u : FinPlace E}, IsPlaceOver A u → ↑p ∈ u.asIdeal → inertiaGroup Gal(Ω/E) A ≤ ker (symmetrize χ)) : IsStep (stepField χ) (ideleChar χ) ∧ Module.finrank E (stepField χ) = p := by have h_fact : Fact p.Prime := ⟨hp⟩ have h_rank : Module.finrank E (stepField χ) = p := finrank_stepField χ hp hχ hχ_sym_ne -- The trace on integers is onto, since the places above `p` are unramified. have h_trace : (intTrace (𝓞 E) (𝓞 (stepField χ))).range = ⊤ := range_intTrace_stepField_eq_top χ h_rank h_unram subst h_rank refine ⟨⟨?_, ?_, ?_, ?_⟩, rfl⟩ · -- the kernel of `ideleChar χ` contains that of `χ ∘ Art`, which is open exact isOpen_mono (expUnit.ker.ker_le_comap _) (continuous_iff_forall_isOpen_ker_comp.mp continuous_artinMap χ) · -- the Artin map kills principal ideles, total positivity being void in the CM field `E` simp [artinMap_principalIdele_eq_one_of_isTotallyPositive, isTotallyPositive_of_isTotallyComplex] · -- `ideleChar χ (z * star z)` is `expUnit` of `symmetrize χ` at the Artin symbol of `z`; this -- is `1` exactly on the norm group of `stepField χ` (`abelianLift_artinMap_eq_one_iff`) intro z have h_sym : ideleChar χ (z * star z) = expUnit (abelianLift (symmetrize χ) (artinMap Gal(Ω/E) z)) := by simp [← abelianLift_symmetrize] rw [h_sym, expUnit_eq_one_iff, abelianLift_artinMap_eq_one_iff (symmetrize χ)] simp [isTotallyPositive_of_isTotallyComplex] · -- an integer `c` with `intTrace c = 1` obtain ⟨c, hc⟩ := (eq_top_iff_one _).mp h_trace exact ⟨c, by simp [← algebraMap_intTrace (A := 𝓞 E), hc]⟩ end StepField end New /-! ## Lifting Weil data to CM extensions unramified at non-split places Weil data (`New.WeilData E`) on a CM field `E` consist of an element `j = -j̄` with positive imaginary part under the CM type `Φ` and with `(1 - j⁻¹) / 2` integral, a finite idele `α` such that `j α ᾱ` generates the inverse different, and a splitting character `υ` (`New.SplittingChar`) that is `-1` at the uniformisers of the places fixed by conjugation. -/ section WeilDataExtension open NumberField WithZero Valued Ideal IsDedekindDomain HeightOneSpectrum FiniteMultiplicity Finset New WeilData RingHom /-- Let the CM type of `L` restrict to that of `E` (`New.CMTypeOver E L`). Then the embedding `Φ u` of `L` into `ℂ` that the CM type chooses at the infinite place `u` extends the embedding chosen at the place of `E` below `u`. -/ lemma New.Φ_algebraMap_eq_Φ_comap {E L : Type} [Field E] [CMType E] [Field L] [Algebra E L] [h : CMTypeOver E L] (u : InfinitePlace L) (r : E) : Φ u (algebraMap E L r) = Φ (u.comap (algebraMap E L)) r := by have h_comp : (Φ u).comp (algebraMap E L) = Φ (u.comap (algebraMap E L)) := by simpa only [mk_Φ] using (h.eq_chosen_iff (Φ u)).mp (by rw [mk_Φ]) exact RingHom.congr_fun h_comp r /-- Let the CM type of `L` restrict to that of `E` (`New.CMTypeOver E L`), and let `w` be an infinite place of `E`. The embeddings `Φ u` chosen at the places `u` of `L` above `w` are exactly the embeddings of `L` that extend `Φ w`; so for `x` in `L` the product of the `Φ u x` is `Φ w` of the norm of `x` from `L` to `E`. -/ lemma New.prod_Φ_eq_Φ_norm {E L : Type} [Field E] [CMType E] [Field L] [Algebra E L] [h : CMTypeOver E L] (w : InfinitePlace E) (x : L) : ∏ u : InfinitePlace L with u.comap (algebraMap E L) = w, Φ u x = Φ w (Algebra.norm E x) := by algebraize [Φ w] -- with `ℂ` an `E`-algebra through `Φ w`, the norm is the product over the `E`-embeddings have h_norm : Φ w (Algebra.norm E x) = ∏ σ : L →ₐ[E] ℂ, σ x := Algebra.norm_eq_prod_embeddings E ℂ x rw [h_norm] have h_chosen (σ : L →ₐ[E] ℂ) : Φ (InfinitePlace.mk σ) = (σ : L →+* ℂ) := by rw [eq_comm, h.eq_chosen_iff] simp [algebraMap_toAlgebra] -- the bijection sends `u` to `Φ u` as an `E`-embedding, and an `E`-embedding `σ` to its place refine prod_bij' (fun u hu ↦ ⟨Φ u, fun r ↦ ?_⟩) (fun σ _ ↦ .mk σ) ?_ ?_ ?_ (fun σ _ ↦ AlgHom.toRingHom_injective (h_chosen σ)) ?_ · simp_all [algebraMap_toAlgebra, Φ_algebraMap_eq_Φ_comap] -- `Φ u` extends `Φ w` · simp · simp_all [algebraMap_toAlgebra] -- the place of an `E`-embedding lies above `w` · simp · simp /-- Let the CM type of `L` restrict to that of `E` (`New.CMTypeOver E L`), and let `E` carry a splitting character `υ` (`New.SplittingChar`: a unitary Hecke character with `υ x̄ = (υ x)⁻¹` that is `∏ x_τ / |x_τ|` on ideles whose finite part is a unit of `Ô`). Then `L` has a splitting character: `υ` composed with the norm of ideles from `L` to `E`, which at an infinite place `w` of `E` is the product of the components at the places of `L` above `w`. -/ lemma New.nonempty_splittingChar_of_cmTypeOver {E L : Type} [Field E] [CMType E] [Field L] [Algebra E L] [CMTypeOver E L] [SplittingChar E] : Nonempty (SplittingChar L) := by -- the norm of adeles: at an infinite place, the product over the places above it let Nm : 𝔸 L →* 𝔸 E := .prodMap (.pi fun w ↦ ∏ u with u.comap (algebraMap E L) = w, Pi.evalMonoidHom _ u) (adeleNorm E L) have hNm : Continuous Nm := by -- the finite part is the adele norm; the infinite part is a product of coordinate maps simp only [Nm, MonoidHom.coe_prodMap, continuous_prodMap_iff, continuous_adeleNorm, and_true, MonoidHom.pi, MonoidHom.finsetProd_apply, Pi.evalMonoidHom_apply, MonoidHom.coe_mk, OneHom.coe_mk] fun_prop refine ⟨{ υ := ⟨υ.val.comp ⟨Units.map Nm, hNm.units_map _⟩, fun y ⟨x, hx⟩ ↦ ?_⟩ υ_unit := fun y hy ↦ ?_ υ_star := fun y ↦ ?_ }⟩ · -- trivial on `Lˣ`, as the norm of a principal idele is principal refine υ.prop _ ⟨Algebra.norm E x, .symm ?_⟩ ext w <;> simp [Nm, ← hx, prod_Φ_eq_Φ_norm] · -- the value on ideles whose finite part is a unit of `Ô L` have h_unit_Nm : (Units.map Nm y).map (MonoidHom.snd (InfinitePlace E → ℂ) (𝔸f E)) ∈ (Ô E).units := by simp_all [Nm, adeleNorm_mem_Ô, Submonoid.mem_units_iff] change (υ.val (Units.map Nm y) : ℂ) = _ rw [υ_unit (Units.map Nm y) h_unit_Nm] -- the infinite places of `L`, grouped by the place of `E` below them simp [Nm, prod_fiberwise] · -- the norm commutes with conjugation have h_star : Units.map Nm (star y) = star (Units.map Nm y) := by ext <;> simp [Nm, adeleNorm_star] exact (congrArg υ.val h_star).trans (υ_star _) open IsCMField in /-- The different of a CM field `L` is invariant under complex conjugation: a finite place `u` and its conjugate `star u` have the same multiplicity in it. -/ lemma New.multiplicity_star_differentIdeal {L : Type} [Field L] [CMType L] (u : FinPlace L) : multiplicity (star u).asIdeal (differentIdeal ℤ (𝓞 L)) = multiplicity u.asIdeal (differentIdeal ℤ (𝓞 L)) := by -- Conjugation preserves the different, and transporting ideals preserves multiplicities. let e := (ringOfIntegersComplexConj L).toRingEquiv let σ := (complexConj L).toRingEquiv let eI : Ideal (𝓞 L) ≃* Ideal (𝓞 L) := { e.idealComapOrderIso.symm.toEquiv with map_mul' := Ideal.map_mul (e : 𝓞 L →+* 𝓞 L) } have hD : eI (differentIdeal ℤ (𝓞 L)) = differentIdeal ℤ (𝓞 L) := (RingEquiv.refl ℤ).map_differentIdeal_of_equiv (RingEquiv.refl ℚ) e σ (fun _ ↦ rfl) (fun x ↦ (coe_ringOfIntegersComplexConj L x).symm) (Subsingleton.elim _ _) have hu : eI u.asIdeal = (star u).asIdeal := by change Ideal.map (e : 𝓞 L →+* 𝓞 L) u.asIdeal = _ rw [Ideal.map_comap_of_equiv] ext x have hx : e.symm x = star x := e.symm_apply_eq.mpr (by change x = star (star x); simp) change e.symm x ∈ u.asIdeal ↔ star x ∈ u.asIdeal rw [hx] simpa [hu, hD] using (multiplicity_map_eq eI (a := u.asIdeal) (b := differentIdeal ℤ (𝓞 L))) /-- Let `E` carry Weil data and let the finite place `w` be fixed by complex conjugation. Then the log of the valuation of `j` at `w` is the multiplicity of `w` in the different of `E` minus twice the log of the valuation of `α` at `w` (this is the condition `self_dual` at `w`, where `α` and `star α` have the same order). -/ lemma New.WeilData.log_valuation_j_of_star_eq {E : Type} [Field E] [CMType E] [WeilData E] (w : FinPlace E) (hw_fix : star w = w) : (w.valuation E j).log = multiplicity w.asIdeal (differentIdeal ℤ (𝓞 E)) - 2 * (v (α.val w)).log := by have hα : v (α.val (star w)) = v (α.val w) := by rw [hw_fix] have h_ne : v ((algebraMap E (𝔸f E) j * α.val * star α.val : 𝔸f E) w) ≠ 0 := by rw [self_dual w] exact exp_ne_zero have h_log : (v ((algebraMap E (𝔸f E) j * α.val * star α.val : 𝔸f E) w)).log = (exp (multiplicity w.asIdeal (differentIdeal ℤ (𝓞 E)) : ℤ)).log := by rw [self_dual w] -- `log` turns the self-duality at `w` into a sum of orders; `star α` has the order of `α` at `w` have h_sum : (w.valuation E j).log + (v (α.val w)).log + (v (α.val w)).log = multiplicity w.asIdeal (differentIdeal ℤ (𝓞 E)) := by -- no factor vanishes, by `h_ne` have hα_ne : v (α.val w) ≠ 0 := by simp_all simpa [j_ne_zero, log_mul, hα, hα_ne] using h_log linarith /-- Let `L / E` be an extension of CM fields with compatible CM types, where `E` carries Weil data, and let the finite place `u` of `L` be fixed by complex conjugation and not divide the relative different ideal of `𝓞 L` over `𝓞 E`. Then the log of the valuation of `j` at `u` minus the multiplicity of `u` in the different of `L` is even: by the tower formula for differents it is the ramification index times the same difference at the place `w` below `u`, which is `-2` times the log of the valuation of `α` at `w` (`New.WeilData.log_valuation_j_of_star_eq`). -/ lemma New.WeilData.two_dvd_log_valuation_j_sub_multiplicity {E L : Type} [Field E] [CMType E] [Field L] [Algebra E L] [CMTypeOver E L] [WeilData E] (u : FinPlace L) (hu_fix : star u = u) (hu : ¬u.asIdeal ∣ differentIdeal (𝓞 E) (𝓞 L)) : 2 ∣ (u.valuation L (algebraMap E L j)).log - multiplicity u.asIdeal (differentIdeal ℤ (𝓞 L)) := by let w : FinPlace E := u.below E have hw_fix : star w = w := by rw [← below_star, hu_fix] have hj : (w.valuation E j).log = multiplicity w.asIdeal (differentIdeal ℤ (𝓞 E)) - 2 * (v (α.val w)).log := WeilData.log_valuation_j_of_star_eq w hw_fix have h_tower := TauCeti.multiplicity_differentIdeal_tower ℤ w u rw [multiplicity_eq_zero_of_not_dvd hu, zero_add] at h_tower refine ⟨-(u.asIdeal.ramificationIdx (𝓞 E) * (v (α.val w)).log), ?_⟩ rw [h_tower, ← w.valuation_liesOver L, log_pow, hj] push_cast ring /-- Let `L / E` be an extension of CM fields with compatible CM types, where `E` carries Weil data and `L` contains a primitive 5040th root of unity. Weil data consist of such a root of unity, an element `ȷ = −ȷ̄` with `Im τȷ > 0` and `(1 − ȷ⁻¹)/2` integral, a finite idele making the integers self-dual for the standard additive character, and a splitting character equal to `−1` at uniformisers of places fixed by conjugation. If no finite prime of `L` fixed by complex conjugation divides the relative different ideal of `𝓞 L` over `𝓞 E`, then `L` also carries Weil data. -/ lemma New.nonempty_weilData_of_not_dvd_differentIdeal {E L : Type} [Field E] [CMType E] [Field L] [Algebra E L] [h : CMTypeOver E L] [WeilData E] [HasPrimitiveRoot5040 L] (h_unram : ∀ u : FinPlace L, star u = u → ¬u.asIdeal ∣ differentIdeal (𝓞 E) (𝓞 L)) : Nonempty (WeilData L) := by -- Keep `j`, compose the splitting character with the norm, and choose a new idele `β`. With `g` a -- generator of the different, `s = j * g` has the same order at `u` and at `star u`, and an even -- order if `u = star u`; `β` cancels half of it at each of the two places, so `s * β * star β` -- has order `0` everywhere, which is the condition `self_dual`. The condition `υ_inert` holds -- for every splitting character, by class field theory for `L / L⁺`. -- `g`: an idele generating the different of `L` (`hg_val`: its order at each place) obtain ⟨-, -, -, g, -, hg_val, -⟩ := exists_reduction_and_idele_generator (E := L) (differentIdeal_ne_bot (A := ℤ)) obtain ⟨s, hs⟩ : IsUnit (algebraMap L (𝔸f L) (algebraMap E L j) * g.val) := by simp [j_ne_zero] have hs_ord (u : FinPlace L) : (v (s.val u)).log = (u.valuation L (algebraMap E L j)).log - multiplicity u.asIdeal (differentIdeal ℤ (𝓞 L)) := by simp [hs, hg_val, j_ne_zero, sub_eq_add_neg] have hs_star (u : FinPlace L) : (v (s.val (star u))).log = (v (s.val u)).log := by have hj : (star u).valuation L (algebraMap E L j) = u.valuation L (algebraMap E L j) := by simpa [← map_star_CM] using valuation_star u (algebraMap E L j) rw [hs_ord, hs_ord, hj, multiplicity_star_differentIdeal u] have hs_even (u : FinPlace L) (hu_fix : star u = u) : 2 ∣ (v (s.val u)).log := by rw [hs_ord] exact WeilData.two_dvd_log_valuation_j_sub_multiplicity u hu_fix (h_unram u hu_fix) -- an auxiliary order decides which of `u`, `star u` gets the larger half obtain ⟨h_linearOrder, -⟩ : ∃ _ : LinearOrder (FinPlace L), WellFoundedLT (FinPlace L) := exists_wellFoundedLT (FinPlace L) -- `log v` of `β` at `u`: `(1 - log v (s u)) / 2` if `u < star u` in the auxiliary order, else -- `(-log v (s u)) / 2` (integer division) let halfOrder (u : FinPlace L) : ℤ := ((if u < star u then 1 else 0) - (v (s.val u)).log) / 2 have h_half_eq_zero (u : FinPlace L) (h_one : v (s.val u) = 1) : halfOrder u = 0 := by simp only [halfOrder, h_one, log_one, sub_zero] split_ifs <;> omega obtain ⟨β, hβ⟩ : ∃ β : (𝔸f L)ˣ, ∀ u : FinPlace L, β.val u = ↑((uniformizer u)⁻¹ ^ halfOrder u) := exists_idele_eq_uniformizer_zpow halfOrder ((finite_setOf_valued_val_ne_one s).subset fun u h_ne_zero h_one ↦ h_ne_zero (h_half_eq_zero u h_one)) obtain ⟨h_splittingChar⟩ : Nonempty (SplittingChar L) := nonempty_splittingChar_of_cmTypeOver (E := E) have h_star_j : star (algebraMap E L j) = -algebraMap E L j := by simp [← map_star_CM] have h_im_pos (u : InfinitePlace L) : 0 < (Φ u (algebraMap E L j)).im := by simp [Φ_algebraMap_eq_Φ_comap, im_pos] have h_integral : IsIntegral ℤ ((1 - (algebraMap E L j)⁻¹) / 2) := by simpa [map_ofNat] using map_isIntegral_int (algebraMap E L) isIntegral_traceOne refine ⟨{ j := algebraMap E L j, α := β, self_dual u := ?_ star_j := h_star_j im_pos := h_im_pos isIntegral_traceOne := h_integral υ_inert := Cohomology.upsilon_atUniformizer_eq_neg_one }⟩ rw [← exp_log (x := v ((algebraMap L (𝔸f L) (algebraMap E L j) * β.val * star β.val) u)) (by simp [j_ne_zero, hβ]), exp_inj] -- `log v` of `j β β̄` at `u` is that of `j` plus the two halves at `u` and `star u` have h_log_eq : (v ((algebraMap L (𝔸f L) (algebraMap E L j) * β.val * star β.val : 𝔸f L) u)).log = (u.valuation L (algebraMap E L j)).log + halfOrder u + halfOrder (star u) := by simp [hβ, j_ne_zero] -- the two halves add up to `-(v (s u)).log`: exactly one gets the `1` if `u ≠ star u`, and the -- order is even if `u = star u` have h_halves : halfOrder u + halfOrder (star u) = -(v (s.val u)).log := by simp only [halfOrder, star_star, hs_star] rcases lt_trichotomy u (star u) with h | h | h · rw [ite_eq_left h, ite_eq_right (lt_asymm h)] omega · have := hs_even u h.symm rw [← h, ite_eq_right (lt_irrefl u)] omega · rw [ite_eq_right (lt_asymm h), ite_eq_left h] omega rw [h_log_eq] linarith [h_halves, hs_ord u] end WeilDataExtension /-! ## A CM step of prime degree with prescribed completion at a split place -/ section GrunwaldStep open New NumberField Valued QZChar /-- Let `A` be a place of the algebraic closure `Ω` (a valuation subring), `w` a finite place of `E`, `χ` a character of `E_wˣ` (`LocField w`) with values in `ℚ/ℤ`, `ν` a Galois character of `E` with `E' = stepField ν` the fixed field of the kernel of `symmetrize ν`, and `u` a finite place of `E'`. The predicate says that `E' / E` is a step (`New.IsStep`: CM, Galois of prime degree, an integer of trace `1`, for `ideleChar ν = exp (2πi ν ∘ Art)`) of degree `p` and `E'` has Weil data, that `u` is split, lies below `A` and is the only place of `E'` above `w`, and that under the local Artin map at `w` the character `ν` is trivial and `symmetrize ν` is `χ`. -/ structure New.GaloisRep.IsStepOfLocalChar {E : Type} [Field E] [EmbeddedNumberField E] [CMType E] {w : FinPlace E} (A : ClosurePlace) (χ : (LocField w)ˣ →* Multiplicative QZ) (p : ℕ) (ν : QZChar Gal(Ω/E)) (u : FinPlace (stepField ν)) : Prop where /-- The field `E'` has Weil data. -/ nonempty_weilData : Nonempty (WeilData (stepField ν)) /-- The extension `E' / E`, with the idele character of `ν`, is a step. -/ isStep : IsStep (stepField ν) (ideleChar ν) /-- The extension `E' / E` has degree `p`. -/ finrank_eq : Module.finrank E (stepField ν) = p /-- The place `u` is split. -/ isSplit : u.IsSplit /-- The place `u` is the only place of `E'` above `w`. -/ below_eq_iff (u' : FinPlace (stepField ν)) : u'.below E = w ↔ u' = u /-- The place `u` lies below `A`. -/ isPlaceOver : IsPlaceOver A u /-- Under the local Artin map at `w`, the character `ν` is trivial. -/ abelianLift_artinAt (x : (LocField w)ˣ) : abelianLift ν (artinAt Gal(Ω/E) w x) = 1 /-- Under the local Artin map at `w`, the character `symmetrize ν` is `χ`. -/ abelianLift_symmetrize_artinAt (x : (LocField w)ˣ) : abelianLift (symmetrize ν) (artinAt Gal(Ω/E) w x) = χ x /-- Let `χ` be a character of `E_wˣ` (`LocField w`) with values in `ℚ/ℤ` that is killed by `p` and kills the `(q - 1)`-th powers of units, `q = w.q` being the norm of `w`. If `w` lies above `p`, then `χ` kills the units of `E_w`, since `p` divides `q` and so is prime to `q - 1`. -/ lemma New.GaloisRep.apply_eq_one_of_natCast_mem_asIdeal {E : Type} [Field E] [NumberField E] {w : FinPlace E} {p : ℕ} (hp : p.Prime) (χ : (LocField w)ˣ →* Multiplicative QZ) (hχ_pow : ∀ x : (LocField w)ˣ, χ x ^ p = 1) (h_tame : ∀ x : (LocField w)ˣ, v x.val = 1 → χ (x ^ (w.q - 1)) = 1) (hpw : (p : 𝓞 E) ∈ w.asIdeal) (x : (LocField w)ˣ) (hx : v x.val = 1) : χ x = 1 := by have h_fact : Fact p.Prime := ⟨hp⟩ have h_dvd : p ∣ w.q := (w.natCast_mem_iff_dvd hpw).mp w.asIdeal.absNorm_mem have h_cop : p.Coprime (w.q - 1) := .of_dvd_left h_dvd (by simp) exact (pow_eq_one_iff_of_coprime h_cop).mp ⟨hχ_pow x, by rw [← map_pow, h_tame x hx]⟩ /-- The local behaviour of the Galois character `ν` of `E` that Grunwald's theorem gives in the proof of `New.GaloisRep.exists_isStepOfLocalChar`, for a character `χ` of `E_wˣ` (`LocField w`) and a number `p`: `ν` is killed by `p`; under the local Artin map at `w` it is trivial and `symmetrize ν` is `χ`; and it kills the local units at every finite place that is fixed by complex conjugation or lies above `p`. -/ private structure New.GaloisRep.IsGrunwaldChar {E : Type} [Field E] [EmbeddedNumberField E] [CMType E] (w : FinPlace E) (χ : (LocField w)ˣ →* Multiplicative QZ) (p : ℕ) (ν : QZChar Gal(Ω/E)) : Prop where /-- The character `ν` is killed by `p`. -/ nsmul_eq_zero : p • ν = 0 /-- Under the local Artin map at `w`, the character `ν` is trivial. -/ abelianLift_artinAt (x : (LocField w)ˣ) : abelianLift ν (artinAt Gal(Ω/E) w x) = 1 /-- Under the local Artin map at `w`, the character `symmetrize ν` is `χ`. -/ abelianLift_symmetrize_artinAt (x : (LocField w)ˣ) : abelianLift (symmetrize ν) (artinAt Gal(Ω/E) w x) = χ x /-- At a place `u` fixed by conjugation or above `p`, the character `ν` kills the local units. -/ abelianLift_artinMap_locIdele (u : FinPlace E) (x : (LocField u)ˣ) (hu : star u = u ∨ (p : 𝓞 E) ∈ u.asIdeal) (hx : v x.val = 1) : abelianLift ν (artinMap Gal(Ω/E) (locIdele u x)) = 1 /-- Let `w` be a split finite place of the CM field `E`, `p` a prime, and `χ` a character of `E_wˣ` killed by `p` that kills the `(w.q - 1)`-th powers of units (`E` also satisfies `New.HasPrimitiveRoot5040`). Then some Galois character of `E` has the local behaviour of `New.GaloisRep.IsGrunwaldChar`. -/ private lemma New.GaloisRep.exists_isGrunwaldChar {E : Type} [Field E] [EmbeddedNumberField E] [CMType E] [HasPrimitiveRoot5040 E] {w : FinPlace E} {p : ℕ} (hw : w.IsSplit) (hp : p.Prime) (χ : (LocField w)ˣ →* Multiplicative QZ) (hχ_pow : ∀ x : (LocField w)ˣ, χ x ^ p = 1) (h_tame : ∀ x : (LocField w)ˣ, v x.val = 1 → χ (x ^ (w.q - 1)) = 1) : ∃ ν : QZChar Gal(Ω/E), IsGrunwaldChar w χ p ν := by -- Grunwald's theorem for the character `ψ : b ↦ χ ((star b) w)` and the places `w`, `star w` and -- those above `p` gives `ν`. As `ψ` only sees the place `star w`, `ν` is trivial at `w`, and at -- the places `u = star u` (whose norm is not prime) and above `p` it kills the local units. have h_neZero : NeZero p := ⟨hp.ne_zero⟩ let ψ : (𝔸f E)ˣ →* Multiplicative QZ := .mk' (fun b ↦ χ (ideleAt w (star b))) (by simp) have hχ_open : χ.ker.IsOpen := isOpen_of_forall_pow_mem hp.ne_zero fun x ↦ by simpa using hχ_pow x let S : Set (FinPlace E) := insert (star w) (insert w {u | (p : 𝓞 E) ∈ u.asIdeal}) have hS : S.Finite := ((finite_natCast_mem p).insert w).insert (star w) obtain ⟨ν, hν, h_grun⟩ := grunwald hp hS ψ hχ_open.preimage_of_continuous fun b ↦ hχ_pow (ideleAt w (star b)) -- on ideles at `w` the character `ψ` is trivial, and `ψ ∘ star` is `χ` there have hν_w (x : (LocField w)ˣ) : abelianLift ν (artinAt Gal(Ω/E) w x) = 1 := by simpa [ψ, star_locIdele, hw.symm] using h_grun w x (.inl (by simp [S])) have h_sym_w (x : (LocField w)ˣ) : abelianLift (symmetrize ν) (artinAt Gal(Ω/E) w x) = χ x := by have h_conj : abelianLift ν (artinMap Gal(Ω/E) (star (locIdele w x))) = ψ (star (locIdele w x)) := by rw [star_locIdele, h_grun _ _ (.inl (by simp [S]))] simpa [ψ, hν_w, h_conj] using abelianLift_symmetrize ν (locIdele w x) have hν_unit (u : FinPlace E) (x : (LocField u)ˣ) (hu : star u = u ∨ (p : 𝓞 E) ∈ u.asIdeal) (hx : v x.val = 1) : abelianLift ν (artinMap Gal(Ω/E) (locIdele u x)) = 1 := by have h_place : u ∈ S ∨ ¬u.q.Prime ∧ v x.val = 1 := by rcases hu with h_fixed | h_above · exact .inr ⟨fun hq ↦ isSplit_of_q_prime hq h_fixed, hx⟩ · exact .inl (by simp [S, h_above]) rw [h_grun u x h_place] change χ (ideleAt w (star (locIdele u x))) = 1 rw [star_locIdele] by_cases hwu : w = star u · subst hwu have hpu : (p : 𝓞 E) ∈ u.asIdeal := hu.resolve_left fun h_fixed ↦ hw (by rw [h_fixed, h_fixed]) rw [ideleAt_locIdele] exact apply_eq_one_of_natCast_mem_asIdeal hp χ hχ_pow h_tame (by simpa using hpu) _ ((v_conjLoc rfl x.val).trans hx) · rw [ideleAt_locIdele_of_ne hwu, map_one] exact ⟨ν, hν, hν_w, h_sym_w, hν_unit⟩ /-- Let the Galois character `ν` of `E` have the local behaviour of `New.GaloisRep.IsGrunwaldChar`, and let the place `B` of `Ω` lie above a finite place `u` of `E` that is fixed by complex conjugation or lies above `p`. Then `symmetrize ν` is unramified at `B`: it kills the inertia group. The set of these places `u` is stable under `star`, and `ν` kills the local units at `u` and at `star u`. -/ private lemma New.GaloisRep.IsGrunwaldChar.inertiaGroup_le_ker_symmetrize {E : Type} [Field E] [EmbeddedNumberField E] [CMType E] {w : FinPlace E} {χ : (LocField w)ˣ →* Multiplicative QZ} {p : ℕ} {ν : QZChar Gal(Ω/E)} (hν : IsGrunwaldChar w χ p ν) {B : ClosurePlace} {u : FinPlace E} (hB : IsPlaceOver B u) (hu : star u = u ∨ (p : 𝓞 E) ∈ u.asIdeal) : inertiaGroup Gal(Ω/E) B ≤ ker (symmetrize ν) := by have hu_star : star (star u) = star u ∨ (p : 𝓞 E) ∈ (star u).asIdeal := hu.imp (fun h_fixed ↦ by rw [h_fixed, h_fixed]) fun h_above ↦ by simpa using h_above refine (hB.artinAt_units_trivial_iff_inertiaGroup_le (symmetrize ν)).mp fun x hx ↦ ?_ have hx_star : v (x.map (conjLoc (rfl : star u = star u)).toMonoidHom).val = 1 := by simpa using hx rw [← artinMap_locIdele, abelianLift_symmetrize, star_locIdele, hν.abelianLift_artinMap_locIdele u x hu hx, hν.abelianLift_artinMap_locIdele (star u) _ hu_star hx_star, one_mul] /-- Let `ν` be a character of `Gal(Ω/E)`, let the place `A` of `Ω` lie above the finite place `w` of `E`, and let `stepField ν` have prime degree `p` over `E`. If some `g₀` in the decomposition group of `A` has `symmetrize ν g₀ ≠ 1`, then exactly one place of `stepField ν` lies above `w`. -/ private lemma New.GaloisRep.exists_forall_below_eq_iff {E : Type} [Field E] [EmbeddedNumberField E] [CMType E] {w : FinPlace E} {A : ClosurePlace} {p : ℕ} {ν : QZChar Gal(Ω/E)} (hA : IsPlaceOver A w) (hp : p.Prime) (h_deg : Module.finrank E (stepField ν) = p) {g₀ : Gal(Ω/E)} (hg₀ : g₀ ∈ decompGroup Gal(Ω/E) A) (hg₀_ne : toHom (symmetrize ν) g₀ ≠ 1) : ∃ u₁ : FinPlace (stepField ν), ∀ u' : FinPlace (stepField ν), u'.below E = w ↔ u' = u₁ := by -- (number of places above `w`) * (index of the kernel in the decomposition group) = `p`, and -- `g₀` shows that the index is not `1` have h_index : (ker (symmetrize ν)).relIndex (decompGroup Gal(Ω/E) A) ≠ 1 := fun h_one ↦ hg₀_ne (Subgroup.relIndex_eq_one.mp h_one hg₀) have h_count : {u' : FinPlace (stepField ν) | u'.below E = w}.ncard = 1 := by have h_prime_mul : ({u' : FinPlace (stepField ν) | u'.below E = w}.ncard * (ker (symmetrize ν)).relIndex (decompGroup Gal(Ω/E) A)).Prime := by rwa [hA.ncard_above_mul_relIndex_eq_finrank (ker (symmetrize ν)), h_deg] rcases Nat.prime_mul_iff.mp h_prime_mul with ⟨-, h_index_eq_one⟩ | ⟨-, h_ncard_eq_one⟩ · exact absurd h_index_eq_one h_index · exact h_ncard_eq_one obtain ⟨u₁, h_set_eq⟩ : ∃ u₁ : FinPlace (stepField ν), {u' : FinPlace (stepField ν) | u'.below E = w} = {u₁} := Set.ncard_eq_one.mp h_count exact ⟨u₁, fun u' ↦ by simpa using Set.ext_iff.mp h_set_eq u'⟩ /-- Grunwald's theorem for CM extensions of prime degree. Let `E` be a CM field with Weil data. Let `w` be a split finite place of `E` (one that differs from its conjugate) lying below the place `A` of `Ω`. Let `χ ≠ 1` be a character of `E_wˣ` that is killed by the prime `p` and kills the `(q - 1)`-th powers of units, `q = w.q` being the norm of `w`. Then there are a Galois character `ν` of `E` and a place `u` of `stepField ν` (the fixed field of the kernel of `g ↦ ν g + ν gᶜ`) forming a step of degree `p` with local character `χ` at `w` (`New.GaloisRep.IsStepOfLocalChar`). This says that `stepField ν / E` is a step of degree `p`, `stepField ν` has Weil data, and `u` is split. -/ lemma New.GaloisRep.exists_isStepOfLocalChar {E : Type} [Field E] [EmbeddedNumberField E] [CMType E] [WeilData E] {w : FinPlace E} {A : ClosurePlace} {p : ℕ} (hw : w.IsSplit) (hA : IsPlaceOver A w) (hp : p.Prime) (χ : (LocField w)ˣ →* Multiplicative QZ) (hχ_ne : χ ≠ 1) (hχ_pow : ∀ x : (LocField w)ˣ, χ x ^ p = 1) (h_tame : ∀ x : (LocField w)ˣ, v x.val = 1 → χ (x ^ (w.q - 1)) = 1) : ∃ (ν : QZChar Gal(Ω/E)) (u : FinPlace (stepField ν)), IsStepOfLocalChar A χ p ν u := by -- Grunwald's theorem gives `ν` (`exists_isGrunwaldChar`). Then `symmetrize ν` is `χ` at `w` and -- unramified at the places `u = star u` and above `p`, which gives the step and the Weil data; -- only one place lies above `w`, since `symmetrize ν` is non-trivial there and the degree is -- prime. obtain ⟨ν, hν⟩ : ∃ ν : QZChar Gal(Ω/E), IsGrunwaldChar w χ p ν := exists_isGrunwaldChar hw hp χ hχ_pow h_tame -- hence `symmetrize ν` is unramified at these places, a set that is stable under `star` have h_unram {B : ClosurePlace} {u : FinPlace E} (hB : IsPlaceOver B u) (hu : star u = u ∨ (p : 𝓞 E) ∈ u.asIdeal) : inertiaGroup Gal(Ω/E) B ≤ ker (symmetrize ν) := hν.inertiaGroup_le_ker_symmetrize hB hu -- some `g₀` in the decomposition group of `A` has `symmetrize ν g₀ = χ x₀ ≠ 1` obtain ⟨x₀, hx₀⟩ : ∃ x₀ : (LocField w)ˣ, χ x₀ ≠ 1 := DFunLike.ne_iff.mp hχ_ne obtain ⟨g₀, hg₀, hg₀_eq⟩ : ∃ g₀ ∈ decompGroup Gal(Ω/E) A, toHom (symmetrize ν) g₀ = χ x₀ := (hA.range_abelianLift_comp_artinAt (symmetrize ν)).le ⟨x₀, hν.abelianLift_symmetrize_artinAt x₀⟩ have h_sym_g₀_ne : toHom (symmetrize ν) g₀ ≠ 1 := hg₀_eq.trans_ne hx₀ have h_sym_ne : symmetrize ν ≠ 0 := fun h_zero ↦ h_sym_g₀_ne (congrArg (fun s : QZChar Gal(Ω/E) ↦ toHom s g₀) h_zero) obtain ⟨u, hAu, hu_below⟩ : ∃ u : FinPlace (stepField ν), IsPlaceOver A u ∧ u.below E = w := hA.exists_above obtain ⟨h_step, h_deg⟩ : IsStep (stepField ν) (ideleChar ν) ∧ Module.finrank E (stepField ν) = p := isStep_stepField ν hp hν.nsmul_eq_zero h_sym_ne fun hB hu ↦ h_unram hB (.inr hu) -- `g₀` shows that the kernel does not contain the decomposition group; as the degree is prime, -- `u` is the only place above `w` obtain ⟨u₁, h_unique⟩ := exists_forall_below_eq_iff hA hp h_deg hg₀ h_sym_g₀_ne obtain rfl : u = u₁ := (h_unique u).mp hu_below have hu_split : u.IsSplit := fun hu_fix ↦ hw (by rw [← hu_below, ← below_star, hu_fix]) -- the relative different is prime to the places fixed by conjugation, where `symmetrize ν` is -- unramified have h_relDiff (u' : FinPlace (stepField ν)) (hu'_fix : star u' = u') : ¬u'.asIdeal ∣ differentIdeal (𝓞 E) (𝓞 (stepField ν)) := not_dvd_differentIdeal_stepField ν fun hB ↦ h_unram hB (.inl (by rw [← below_star, hu'_fix])) have h_data : Nonempty (WeilData (stepField ν)) := nonempty_weilData_of_not_dvd_differentIdeal h_relDiff exact ⟨ν, u, { nonempty_weilData := h_data, isStep := h_step, finrank_eq := h_deg, isSplit := hu_split, below_eq_iff := h_unique, isPlaceOver := hAu, abelianLift_artinAt := hν.abelianLift_artinAt, abelianLift_symmetrize_artinAt := hν.abelianLift_symmetrize_artinAt }⟩ /-- `New.GaloisRep.exists_isStepOfLocalChar` with `χ ≠ 1` given by a point `x₀` where `χ x₀ ≠ 1`. -/ lemma New.GaloisRep.exists_step_of_local_char {E : Type} [Field E] [EmbeddedNumberField E] [CMType E] {w : FinPlace E} {A : ClosurePlace} [WeilData E] {p : ℕ} (hw : w.IsSplit) (hA : IsPlaceOver A w) (hp : p.Prime) (χ : (LocField w)ˣ →* Multiplicative QZ) {x₀ : (LocField w)ˣ} (hx₀ : χ x₀ ≠ 1) (hχ_pow : ∀ x : (LocField w)ˣ, χ x ^ p = 1) (h_tame : ∀ x : (LocField w)ˣ, v x.val = 1 → χ (x ^ (w.q - 1)) = 1) : ∃ (ν : QZChar Gal(Ω/E)) (u : FinPlace (stepField ν)), IsStepOfLocalChar A χ p ν u := by exact exists_isStepOfLocalChar hw hA hp χ (DFunLike.ne_iff.mpr ⟨x₀, hx₀⟩) hχ_pow h_tame end GrunwaldStep