module import Mathlib.FieldTheory.Galois.Profinite import Mathlib.Topology.Sheaves.Presheaf public import Lib.ClassField.Local.ArtinMap import Lib.ClassField.Global.AlbertBrauerHasseNoether import Lib.ClassField.Global.ArtinMap import Lib.ClassField.Global.ArtinReciprocity /-! # Surjectivity of the Artin map, Hasse's norm theorem and norm groups of cyclic extensions Global class field theory for cyclic extensions of a number field `K`, deduced from the reciprocity law, the second inequality `New.second_inequality` and `New.albert_brauer_hasse_noether`. * `New.artinMap_surjective`: the Artin map from the finite ideles onto `Γ^ab` is surjective. * `New.exists_isProGalois_ker_of_isCyclic`: a cyclic extension `L/K` is cut out by a character. * `New.hasse_norm`: Hasse's norm theorem, for totally positive elements. * `New.index_ker_abelianLift_comp_artinMap`, `New.abelianLift_artinMap_eq_one_iff`: if `χ` cuts out `L`, the kernel of `χ ∘ artinMap` has index `[L : K]` and consists of totally positive elements of `Kˣ` times norms from `L`. Notions from other files: * `New.Ω` is an algebraic closure of `ℚ`, and `New.EmbeddedNumberField K` is a number field `K` with an embedding in `Ω`. `New.IsProGalois Γ K Ω` says that `Γ` is the profinite Galois group of `Ω/K`. * `New.artinMap Γ` is the global Artin map from the finite ideles `(𝔸f K)ˣ` of `K` to the topological abelianisation `Γ^ab` of `Γ`, chosen so that a character takes at `artinMap Γ a` the product of its values at the local Artin symbols of the components of `a`. * A `χ : New.QZChar Γ` is a continuous character `Γ → ℚ/ℤ`; `New.QZChar.toHom χ` and `New.QZChar.abelianLift χ` are its multiplicative forms on `Γ` and `Γ^ab`. "`χ` cuts out `L`" is the instance `IsProGalois (ker χ) L Ω`, with `New.QZChar.ker`. * `New.IsTotallyPositive x`: every ring homomorphism `K → ℝ` sends `x` to a positive number. ## Relation to the literature Known; see `Lib.ClassField.Global.AlbertBrauerHasseNoether` for sources. -/ @[expose] public section namespace New open Subgroup QZChar QuotientGroup Set Module Function IsScalarTower Algebra variable (Γ : Type) {K L : Type} [Group Γ] [TopologicalSpace Γ] [Field K] [EmbeddedNumberField K] [MulSemiringAction Γ Ω] [IsProGalois Γ K Ω] (χ : QZChar Γ) [Field L] [EmbeddedNumberField L] [Algebra K L] open Pointwise in /-- The image of the global Artin map from the finite ideles of `K` to `Γ^ab` is closed. -/ lemma isClosed_range_artinMap : IsClosed (artinMap (K := K) Γ).range.carrier := by -- `H` is open and contains the totally positive principal ideles, so it has finite index; -- thus the range is a finite union of translates of the compact image of the unit ideles. let H : Subgroup (𝔸f K)ˣ := idelesUnitOff ∅ ⊔ (artinMap Γ).ker have hH_fin : H.FiniteIndex := finiteIndex_idele_subgroup_of_isOpen H (isOpen_mono le_sup_left (isOpen_idelesUnitOff _)) fun x hx ↦ mem_sup_right (artinMap_principalIdele_eq_one_of_isTotallyPositive hx) let C : Set (TopologicalAbelianization Γ) := artinMap Γ '' idelesUnitOff (K := K) ∅ have h_compact : IsCompact C := isCompact_idelesUnitOff_empty.image (by fun_prop) have h_range : (artinMap (K := K) Γ).range.carrier = ⋃ q : (𝔸f K)ˣ ⧸ H, artinMap Γ q.out • C := by change range (artinMap (K := K) Γ) = _ simp [← image_univ, H, C, univ_eq_iUnion_smul H, image_iUnion, image_smul_distrib, ← coe_map, Subgroup.map_sup] rw [h_range] exact (isCompact_iUnion fun q : (𝔸f K)ˣ ⧸ H ↦ h_compact.smul (artinMap Γ q.out)).isClosed /-- The global Artin map from the finite ideles of `K` to the topological abelianisation `Γ^ab` of the absolute Galois group `Γ` of `K` is surjective. A consequence of Artin's global reciprocity law. -/ lemma artinMap_surjective : Surjective (artinMap (K := K) Γ) := by -- The range of `artinMap` is closed, so by duality (`mem_of_forall_abelianLift`) it suffices to -- show that a character `ψ` killing it is trivial. In the fixed field of `ker ψ` every prime -- splits completely, and counting primes of degree one shows that this field is `K`. intro σ rw [← MonoidHom.mem_range] refine mem_of_forall_abelianLift (isClosed_range_artinMap Γ) σ fun ψ hψ ↦ ?_ let U : Subgroup Γ := ker ψ let F : IntermediateField K Ω := fixedFieldOf U suffices h_index : U.index = 1 by have h_top : U = ⊤ := index_eq_one.mp h_index obtain ⟨g, rfl⟩ : ∃ g : Γ, (g : TopologicalAbelianization Γ) = σ := QuotientGroup.mk_surjective σ rw [abelianLift_mk, ← QZChar.toHom_apply, ← MonoidHom.mem_ker] exact h_top.ge (mem_top g) -- `ψ` kills every local symbol, so all decomposition groups lie in `U` and every `v` splits. have h_count (v : FinPlace K) : {w : FinPlace F | w.below K = v ∧ w.q = v.q}.ncard = finrank K F := by have h_dec : decompGroup Γ (placeOver v) ≤ U := (v.isPlaceOver_placeOver.artinAt_trivial_iff_decompGroup_le ψ).mp fun x ↦ hψ (artinAt Γ v x) (MonoidHom.mem_range.mpr ⟨locIdele v x, artinMap_locIdele v x⟩) have h_same_q (w : FinPlace F) (hw : w.below K = v) : w.q = v.q := (v.isPlaceOver_placeOver.q_eq_and_comap_ne_self_of_decompGroup_le h_dec w hw).1 rw [← v.isPlaceOver_placeOver.ncard_above_eq_finrank_of_decompGroup_le (L := F) h_dec] congr! with w exact and_iff_left_of_imp (h_same_q w) -- The family `v ↦ #{places of F over v with the same norm}` has density `1` -- (`hasPrimeDensity_card_degree_one`); by `h_count` it is the constant `[F : K]`, so -- `[F : K] ≤ 1`. have h_re_le : (finrank K F : ℂ).re ≤ (1 : ℂ).re := (hasPrimeDensity_const (K := K) (finrank K F : ℂ)).re_le_re (hasPrimeDensity_card_degree_one F 1) (.of_forall fun v _ ↦ by simp [h_count v]) -- The degree `[F : K]` is the index of `U` (`finrank_fixedFieldOf`). have h_le : finrank K F ≤ 1 := by simpa using h_re_le exact (finrank_fixedFieldOf U).symm.trans (h_le.antisymm finrank_pos) variable {Γ} [IsScalarTower K L Ω] [hχ : IsProGalois (ker χ) L Ω] [IsGalois K L] /-- Let L/K be a cyclic extension of number fields inside an algebraic closure Ω of ℚ. There is a continuous character χ : Gal(Ω/K) → ℚ/ℤ whose kernel acts on Ω as the Galois group of Ω/L. -/ lemma exists_isProGalois_ker_of_isCyclic (h_cyc : IsCyclic Gal(L/K)) : ∃ χ : QZChar Gal(Ω/K), IsProGalois (ker χ) L Ω := by -- Pull back a faithful character `ψ` of the cyclic group `Gal(L/K)` along restriction `φ`. let φ : Gal(Ω/K) →ₜ* Gal(L/K) := ⟨AlgEquiv.restrictNormalHom L, continuous_of_equivariant_emb (algebraMap L Ω) fun g x ↦ g.restrictNormal_commutes L x⟩ obtain ⟨ψ, hψ⟩ : ∃ ψ : QZChar Gal(L/K), ker ψ = ⊥ := exists_ker_eq_of_isCyclic ⟨⊥, by simp⟩ (quotientBot.isCyclic.mpr h_cyc) refine ⟨comap φ ψ, .of_fixingSubgroup_eq (K := K) ?_⟩ change _ = (ker ψ).comap φ.toMonoidHom rw [hψ, MonoidHom.comap_bot] exact (AlgEquiv.ker_restrictNormalHom (F := K) (K₁ := Ω) L).symm omit [EmbeddedNumberField K] [EmbeddedNumberField L] in variable [NumberField K] [NumberField L] in /-- Hasse's norm theorem. Let `L / K` be a cyclic extension of number fields. A totally positive `x` in `K` that is a local norm (a limit of norms from `L` in the completion `LocField v` of `K` at `v`) at every finite place `v` is a norm. A case of the Hasse norm theorem, with x assumed totally positive, which is stronger than being a local norm at each real place. -/ lemma hasse_norm [IsCyclic Gal(L/K)] (x : Kˣ) (h_loc : ∀ v : FinPlace K, algebraMap K (LocField v) x ∈ closure (range fun y : L ↦ algebraMap K (LocField v) (Algebra.norm K y))) (hx_pos : IsTotallyPositive x.val) : ∃ z : Lˣ, z.map (Algebra.norm K) = x := by -- Embed `L` in `Ω` and let `χ` cut it out. Then `x` is a norm exactly when the symbol `(χ, x)` -- vanishes in the Brauer group, which by Albert–Brauer–Hasse–Noether -- (`albert_brauer_hasse_noether`) can be checked place by place; total positivity takes care of -- the real places. algebraize [Ω.fieldEmb L, (Ω.fieldEmb L).comp (algebraMap K L)] obtain ⟨χ, hχ⟩ := exists_isProGalois_ker_of_isCyclic (K := K) (L := L) inferInstance -- `α` is the symbol `(χ, x)` in the Brauer group. set α : (unitsModule Gal(Ω/K)).H2 := cyclicClass (unitsModule Gal(Ω/K)).ρ χ (DiscreteUnits.ofBase Gal(Ω/K) Ω (Additive.ofMul x)) obtain ⟨U, hU_conj, hU_res⟩ : ∃ U : OpenSubgroup Gal(Ω/K), (∀ c : Gal(Ω/K), IsComplexConj c → c ∈ U) ∧ (unitsModule Gal(Ω/K)).resH2 U α = 0 := hx_pos.exists_resH2_cyclicClass_eq_zero (χ := χ) -- At a finite place `v` the symbol vanishes since `x` is a limit of norms in `K_v`. have h_dec {A : ClosurePlace} {v : FinPlace K} (hv : IsPlaceOver A v) : (unitsModule Gal(Ω/K)).resH2 (decompGroup Gal(Ω/K) A) α = 0 := hv.abelianLift_artinAt_eq_one_iff.mp (abelianLift_artinAt_eq_one_of_mem_closure (h_loc v)) have hα_zero : α = 0 := albert_brauer_hasse_noether α h_dec U hU_conj hU_res exact (cyclicClass_eq_zero_iff_norm (J := hχ) x).mp hα_zero omit [IsGalois K L] in /-- If the kernel of `χ` is the Galois group of `Ω / L`, then the kernel of `χ ∘ artinMap` has index `[L : K]` in the finite ideles of `K`. -/ lemma index_ker_abelianLift_comp_artinMap : ((abelianLift χ).comp (artinMap Γ)).ker.index = finrank K L := by -- The index of `(abelianLift χ).ker` is unchanged by pulling back along the surjection -- `artinMap Γ`, and along the quotient map from `Γ`, where the kernel becomes the group `ker χ` -- fixing `L`. calc _ = (abelianLift χ).ker.index := index_comap_of_surjective _ (artinMap_surjective _) _ = (ker χ).index := (index_comap_of_surjective _ (mk'_surjective _)).symm _ = finrank K L := (eq_fixingSubgroup_of_isProGalois (Γ := Γ) (L := L)).right /-- The norm group of the extension `L / K` cut out by `χ`: a finite idele `a` of `K` is killed by `χ ∘ artinMap` exactly when it is a totally positive element of `Kˣ` times the norm of a finite idele of `L`. A case of the Artin reciprocity law. -/ lemma abelianLift_artinMap_eq_one_iff (a : (𝔸f K)ˣ) : abelianLift χ (artinMap Γ a) = 1 ↔ ∃ (x : Kˣ) (y : (𝔸f L)ˣ), IsTotallyPositive x.val ∧ a = principalIdele x * Units.map (adeleNorm K L) y := by -- Let `W` be the group generated by the totally positive elements and the norms from `L`. It lies -- in the kernel of `χ ∘ artinMap`, which has index `[L : K]`, while the second inequality -- (`second_inequality`) bounds the index of `W` by `[L : K]`. Hence the two groups are equal. let P : Subgroup Kˣ := ⨅ φ : K →+* ℝ, (Units.posSubgroup ℝ).comap (Units.map φ) have h_mem_P (x : Kˣ) : x ∈ P ↔ IsTotallyPositive x.val := mem_iInf let W : Subgroup (𝔸f K)ˣ := P.map principalIdele ⊔ (Units.map (adeleNorm K L)).range have hW_open : IsOpen (W : Set (𝔸f K)ˣ) := isOpen_mono le_sup_right (isOpen_range_finite_idele_norm K L) have hW_pos (x : Kˣ) (hx : IsTotallyPositive x.val) : principalIdele x ∈ W := mem_sup_left ⟨x, (h_mem_P x).mpr hx, rfl⟩ have hW_norm (y : (𝔸f L)ˣ) : Units.map (adeleNorm K L) y ∈ W := mem_sup_right ⟨y, rfl⟩ -- `hW_fin` is used below as an instance, by `index_strictAnti`. obtain ⟨(hW_fin : W.FiniteIndex), (hW_index : W.index ≤ finrank K L), -⟩ := second_inequality L hW_open hW_pos hW_norm -- `N` is the kernel of `χ ∘ artinMap`. Reciprocity puts the totally positive elements in it, -- norm compatibility the norms. let N : Subgroup (𝔸f K)ˣ := ((abelianLift χ).comp (artinMap Γ)).ker have h_pos_le : P.map principalIdele ≤ N := by rintro _ ⟨x, hx, rfl⟩ simp [N, artinMap_principalIdele_eq_one_of_isTotallyPositive ((h_mem_P x).mp hx)] have h_norm_le : (Units.map (adeleNorm K L)).range ≤ N := by rintro _ ⟨y, rfl⟩ exact abelianLift_artinMap_adeleNorm y -- A strict inclusion `W < N` would make the index of `N` smaller than `[L : K]`. have hW_eq : W = N := by refine eq_of_le_of_not_lt (sup_le h_pos_le h_norm_le) fun hlt ↦ ?_ have h_lt : N.index < W.index := index_strictAnti hlt have h_ker_index : N.index = finrank K L := index_ker_abelianLift_comp_artinMap χ omega -- Membership in `W`, written out, is the right side. change a ∈ N ↔ _ rw [← hW_eq] simp [W, mem_sup, h_mem_P, eq_comm] end New