module import Mathlib.Topology.Algebra.Group.Units import Mathlib.Topology.Connected.Separation import Mathlib.Topology.Separation.CompletelyRegular public import Lib.ClassField.Local.ArtinMap import TauCeti.NumberTheory.RamificationInertia.Galois /-! # The global Artin map: product of local symbols, continuity, splitting and norms Γ is the Galois group of an algebraic closure Ω of a number field K (`New.IsProGalois`), and `New.QZChar.abelianLift χ` is a continuous character χ : Γ → ℚ/ℤ seen on Γ^ab, written multiplicatively. `New.artinAt` and `New.artinMap` are the local and global Artin maps with values in Γ^ab; `New.decompGroup` and `New.inertiaGroup` are the decomposition and inertia groups of a valuation subring A. * `New.IsPlaceOver.range_abelianLift_comp_artinAt`, `New.IsPlaceOver.artinAt_units_trivial_iff_inertiaGroup_le`: the local symbols at v give the values of χ on the decomposition group; those of units vanish iff χ kills inertia. * `New.IsPlaceOver.q_eq_and_comap_ne_self_of_decompGroup_le`: v splits completely in a Galois extension L of K whose group Gal(Ω/L) contains the decomposition group. * `New.abelianLift_artinMap_eq_finprod`: the global symbol is the product of the local symbols. * `New.continuous_artinMap`: the global Artin map is continuous. * `New.artinMap_map_adeleNorm`: the Artin maps of K and of an extension L are compatible with the norm. Notions from other files: * `New.IsPlaceOver A v`: the valuation subring A of Ω lies over the finite place v of K. * `New.ideleAt v a` is the component at v of a finite idele a; `New.locIdele v x` is the finite idele with component x at v and 1 elsewhere; `New.idelesUnitOff S` is the group of finite ideles that are units at every place outside S. ## Relation to the literature Known; see `Lib.ClassField.Global.AlbertBrauerHasseNoether` for sources. -/ @[expose] public section namespace New open Module QZChar Set FinPlace IsGalois open scoped Pointwise in /-- Pulling back a finite place applies the inverse pointwise action to its prime ideal. -/ private lemma inverse_smul_asIdeal {K L : Type*} [Field K] [Field L] [Algebra K L] (u : FinPlace L) (σ : Gal(L/K)) : σ⁻¹ • u.asIdeal = (u.comap σ).asIdeal := by rw [Ideal.pointwise_smul_eq_comap] let ρ := MulSemiringAction.toRingAut Gal(L/K) (NumberField.RingOfIntegers L) change u.asIdeal.comap (ρ σ⁻¹)⁻¹ = u.asIdeal.comap (ρ σ) rw [map_inv, inv_inv] variable {Γ K : Type} [Group Γ] [TopologicalSpace Γ] [Field K] [EmbeddedNumberField K] /-- g lies in the kernel of χ exactly when `abelianLift χ` kills the class of g. -/ private lemma QZChar.mem_ker_iff_abelianLift_eq_one [IsTopologicalGroup Γ] (χ : QZChar Γ) (g : Γ) : g ∈ ker χ ↔ abelianLift χ (g : TopologicalAbelianization Γ) = 1 := Iff.rfl namespace IsPlaceOver /- `A` is a place of `Ω` over the finite place `v` of `K` (hypothesis `h`), `χ` a character of `Γ`, `L ⊂ Ω` a finite Galois extension of `K`, and `U` the subgroup Gal(Ω/L) of `Γ`. -/ variable {A : ClosurePlace} {v : FinPlace K} (χ : QZChar Γ) {L : Type*} [Field L] [EmbeddedNumberField L] [Algebra K L] (h : IsPlaceOver A v) [MulSemiringAction Γ Ω] [G : IsProGalois Γ K Ω] (U : Subgroup Γ) [IsGalois K L] [IsScalarTower K L Ω] [Fact U.IsOpen] [IsProGalois U L Ω] include h /-! ### One place: splitting and the local symbol -/ /-- Let `L / K` be Galois with `U = Gal(Ω/L)`, and let `A` be a place of `Ω` over `v`. The number of places of `L` over `v` times the index of `U ⊓ D` in the decomposition group `D` of `A` is `[L : K]`. -/ lemma ncard_above_mul_relIndex_eq_finrank : {u : FinPlace L | u.below K = v}.ncard * U.relIndex (decompGroup Γ A) = finrank K L := by -- For the place `u` of `L` under `A` the index is `e f`, and `e f g = n`. obtain ⟨u, hu, rfl⟩ := h.exists_above (L := L) obtain ⟨-, -, h_index : U.relIndex (decompGroup Γ A) = u.asIdeal.ramificationIdx (NumberField.RingOfIntegers K) * u.asIdeal.inertiaDeg (NumberField.RingOfIntegers K)⟩ := h.ramification_in_tower U hu rw [h_index, u.ncard_mul_ramificationIdx_mul_inertiaDeg] variable {U} /-- A finite place whose decomposition group lies in `U = Gal(Ω/L)` has `[L : K]` places above it in `L`. -/ lemma ncard_above_eq_finrank_of_decompGroup_le (h_dec : decompGroup Γ A ≤ U) : {u : FinPlace L | u.below K = v}.ncard = finrank K L := by simpa only [Subgroup.relIndex_eq_one.mpr h_dec, mul_one] using h.ncard_above_mul_relIndex_eq_finrank (L := L) U open scoped Pointwise in /-- Let `L / K` be Galois with `U = Gal(Ω/L)`, and let `A` be a place of `Ω` over `v` whose decomposition group lies in `U`. Then `v` splits completely: a place `u` of `L` over `v` has the residue cardinality of `v`, and no nontrivial element of `Gal(L/K)` fixes `u`. -/ lemma q_eq_and_comap_ne_self_of_decompGroup_le (h_dec : decompGroup Γ A ≤ U) (u : FinPlace L) (hu : u.below K = v) : u.q = v.q ∧ ∀ σ : Gal(L/K), σ ≠ 1 → u.comap σ ≠ u := by -- A trivial relative decomposition group means there are as many primes as automorphisms. have h_card : (v.asIdeal.primesOver (NumberField.RingOfIntegers L)).ncard = Nat.card Gal(L/K) := by rw [← FinPlace.ncard_above_eq_ncard_primesOver, IsGaloisGroup.card_eq_finrank Gal(L/K) K L] exact h.ncard_above_eq_finrank_of_decompGroup_le (L := L) h_dec have : u.asIdeal.LiesOver v.asIdeal := by rw [← hu] infer_instance refine ⟨?_, fun σ hσ h_fix ↦ hσ ?_⟩ · have h_f := ((Ideal.ncard_primesOver_eq_natCard_iff_of_isGaloisGroup Gal(L/K) v.asIdeal).mp h_card).2 rw [Ideal.inertiaDegIn_eq_inertiaDeg _ u Gal(L/K)] at h_f simp [← hu, ← (u.below K).asIdeal.absNorm_pow_inertiaDeg, h_f] · have h_bot : MulAction.stabilizer Gal(L/K) u.asIdeal = ⊥ := (Ideal.ncard_primesOver_eq_natCard_iff_stabilizer_eq_bot Gal(L/K) v.asIdeal u.asIdeal).mp h_card have h_mem : σ⁻¹ ∈ MulAction.stabilizer Gal(L/K) u.asIdeal := by rw [MulAction.mem_stabilizer_iff, inverse_smul_asIdeal] exact congrArg IsDedekindDomain.HeightOneSpectrum.asIdeal h_fix simpa [h_bot] using h_mem /-- Let `A` be a place of `Ω` over `v`. The values of a character `χ` on the local symbols at `v` are its values on the decomposition group of `A`. -/ lemma range_abelianLift_comp_artinAt : ((abelianLift χ).comp (New.artinAt Γ v)).range = (decompGroup Γ A).map (toHom χ) := by apply le_antisymm · -- The local symbol of `x` is the class of some `g` in the decomposition group. rintro _ ⟨x, rfl⟩ obtain ⟨g, hg⟩ := QuotientGroup.mk_surjective (localArtin Γ A v x) refine ⟨g, g.property, ?_⟩ rw [MonoidHom.comp_apply, h.artinAt_eq_of_localArtin_eq hg.symm] rfl · -- Match the character value at `g` by a local Artin symbol. rintro _ ⟨g, hg, rfl⟩ obtain ⟨x, s, hx, h_val⟩ := h.exists_localArtin_eq_of_isLocallyConstant ((IsLocallyConstant.iff_continuous _).2 (QZChar.continuous_val χ)) hg refine ⟨x, ?_⟩ rw [MonoidHom.comp_apply, h.artinAt_eq_of_localArtin_eq hx] exact congrArg Multiplicative.ofAdd h_val /-- Let `A` be a place of `Ω` over `v`. A character `χ` kills all local symbols at `v` exactly when it is trivial on the decomposition group of `A`. -/ lemma artinAt_trivial_iff_decompGroup_le : (∀ x : (LocField v)ˣ, abelianLift χ (New.artinAt Γ v x) = 1) ↔ decompGroup Γ A ≤ ker χ := by simp [← Subgroup.map_eq_bot_iff, ← h.range_abelianLift_comp_artinAt, Subgroup.eq_bot_iff_forall] /-- Let `A` be a place of `Ω` over `v`. A character `χ` kills the local symbols of the units of `K_v` exactly when it is trivial on the inertia group of `A`. This is one side of the mutual annihilation of unramified classes (Milne, Arithmetic Duality Theorems, I.2.6), for global characters. -/ lemma artinAt_units_trivial_iff_inertiaGroup_le : (∀ x : (LocField v)ˣ, Valued.v x.val = 1 → abelianLift χ (New.artinAt Γ v x) = 1) ↔ inertiaGroup Γ A ≤ ker χ := by -- The symbols of the units are exactly the classes of the elements of the inertia group. refine ⟨fun h_unit g hg ↦ ?_, fun h_ine x hx ↦ ?_⟩ · -- An element of the inertia group is the symbol of a unit. obtain ⟨x, hx_unit, hx_art⟩ := h.exists_localArtin_eq_of_mem_inertiaGroup hg rw [mem_ker_iff_abelianLift_eq_one, ← h.artinAt_eq_of_localArtin_eq hx_art] exact h_unit x hx_unit · -- The symbol of a unit is the class of an element `g` of inertia, which `χ` kills. obtain ⟨g, hg_ine, hg_art⟩ := h.exists_mem_inertiaGroup_localArtin_eq (Γ := Γ) hx rw [h.artinAt_eq_of_localArtin_eq hg_art, ← mem_ker_iff_abelianLift_eq_one] exact h_ine hg_ine /-- The local symbol of an unramified character. Let `A` be a place of `Ω` over `v`, let `χ` be trivial on the inertia group of `A`, and let `φ` be a Frobenius element at `A`. Then `χ` takes the local symbol at `v` of `x ∈ Kˣ` to `(v.valuation K x).log • χ φ`, that is `-(ord_v x • χ φ)` where `ord_v x = -(v.valuation K x).log`. This is a form of the local reciprocity map in the unramified case (Serre, Local Fields). Uniformisers go to geometric Frobenius, hence the minus sign. -/ lemma abelianLift_artinAt_of_inertiaGroup_le_ker (h_unr : inertiaGroup Γ A ≤ ker χ) {φ : Γ} (hφ : IsFrob A v.q φ) (x : Kˣ) : abelianLift χ (New.artinAt Γ v (ideleAt v (principalIdele x))) = Multiplicative.ofAdd ((v.valuation K x).log • χ.val φ) := by let ψ := comap (subgroupIncl (decompGroup Γ A)) χ rw [h.abelianLift_artinAt] simpa [ideleAt, ψ, QZChar.comap, subgroupIncl] using h.abelianLift_localArtin_of_unramified ψ (fun g hg ↦ h_unr hg) (φ := ⟨φ, hφ.left⟩) hφ (ideleAt v (principalIdele x)) end IsPlaceOver /-! ### The global Artin map -/ /- `χ` is a character of `Γ` and `L` a number field over `K`. -/ variable (χ : QZChar Γ) {L : Type} [Field L] [EmbeddedNumberField L] [Algebra K L] [MulSemiringAction Γ Ω] [G : IsProGalois Γ K Ω] /-- Let `χ` be a character of the Galois group `Γ` of `Ω` over the number field `K`. A finite idele `a` of `K` close enough to `1` is a unit at every place, and `χ` kills all local symbols of `a`. -/ lemma QZChar.eventually_artinAt_eq_one : ∀ᶠ a : (𝔸f K)ˣ in nhds 1, a ∈ idelesUnitOff ∅ ∧ ∀ v : FinPlace K, abelianLift χ (artinAt Γ v (ideleAt v a)) = 1 := by -- Only finitely many places ramify for `χ`; at these the condition is open, and at the others -- it holds for every unit idele. have h_open := (finite_ramified (isOpen_ker χ)).isOpen_biInter fun v _ ↦ IsOpen.preimage (by fun_prop : Continuous (ideleAt v)) (continuous_iff_forall_isOpen_ker_comp.mp (continuous_hom_locField_units (artinAt Γ v)) χ) filter_upwards [((isOpen_idelesUnitOff ∅).inter h_open).mem_nhds (by simp)] with a ⟨hu, hr⟩ refine ⟨hu, fun v ↦ ?_⟩ by_cases hv : ∀ A : ClosurePlace, IsPlaceOver A v → inertiaGroup Γ A ≤ ker χ · exact (v.isPlaceOver_placeOver.artinAt_units_trivial_iff_inertiaGroup_le χ).2 (hv _ v.isPlaceOver_placeOver) _ (mem_idelesUnitOff.1 hu v (notMem_empty v)) · exact mem_iInter₂.1 hr v hv /-- For a finite idele `a`, the character `χ` kills its local Artin symbols outside a finite set of places. At almost all places, `χ` is unramified and the component of `a` is a unit. -/ lemma QZChar.finite_mulSupport_artinAt (a : (𝔸f K)ˣ) : (Function.mulSupport fun v : FinPlace K ↦ abelianLift χ (artinAt Γ v (ideleAt v a))).Finite := by have h_unr : ∀ᶠ v : FinPlace K in .cofinite, inertiaGroup Γ (placeOver v) ≤ ker χ := (finite_ramified (isOpen_ker χ)).mono fun v hv ↦ hv _ (FinPlace.isPlaceOver_placeOver v) exact (h_unr.and (finite_setOf_valued_val_ne_one a)).mono fun v ⟨hv, h_unit⟩ ↦ (v.isPlaceOver_placeOver.artinAt_units_trivial_iff_inertiaGroup_le χ).mpr hv _ h_unit /-- A character `χ` of `Γ` takes the global Artin symbol of a finite idele `a` to the product over the finite places `v` of its values on the local symbols of the components of `a`. -/ @[local simp] lemma abelianLift_artinMap_eq_finprod (χ : QZChar Γ) (a : (𝔸f K)ˣ) : abelianLift χ (artinMap Γ a) = ∏ᶠ v : FinPlace K, abelianLift χ (artinAt Γ v (ideleAt v a)) := by -- The product is multiplicative in `χ` and in `a`, so by Pontryagin duality -- (`exists_hom_abelianLift_eq`) it comes from a homomorphism. let F (a : (𝔸f K)ˣ) (χ : QZChar Γ) : Multiplicative QZ := ∏ᶠ v : FinPlace K, abelianLift χ (artinAt Γ v (ideleAt v a)) have h_add (a : (𝔸f K)ˣ) (χ ξ : QZChar Γ) : F a (χ + ξ) = F a χ * F a ξ := by refine (finprod_congr fun v ↦ ?_).trans (finprod_mul_distrib (finite_mulSupport_artinAt χ a) (finite_mulSupport_artinAt ξ a)) -- On the class of `g` both sides are `χ g + ξ g`, by definition. exact (artinAt Γ v _).inductionOn fun _ ↦ rfl have h_mul (a b : (𝔸f K)ˣ) (χ : QZChar Γ) : F (a * b) χ = F a χ * F b χ := by simpa [F] using finprod_mul_distrib (finite_mulSupport_artinAt χ a) (finite_mulSupport_artinAt χ b) have h_hom : ∃ f : (𝔸f K)ˣ →* TopologicalAbelianization Γ, ∀ (χ : QZChar Γ) (a : (𝔸f K)ˣ), abelianLift χ (f a) = F a χ := exists_hom_abelianLift_eq (.mk' (fun a ↦ .mk' (F a.toMul) (h_add _)) fun a b ↦ AddMonoidHom.ext (h_mul _ _)) -- `artinMap` is a chosen homomorphism with this property. exact abelianLift_artinMap_eq_finprod_of_exists Γ h_hom χ a /-- The global Artin map on the finite ideles of `K` is continuous. -/ @[fun_prop] lemma continuous_artinMap : Continuous (artinMap Γ) := by -- For each character `χ` the kernel of `χ ∘ artinMap` contains the neighbourhood of `1` given by -- `eventually_artinAt_eq_one`. refine continuous_iff_forall_isOpen_ker_comp.mpr fun χ ↦ Subgroup.isOpen_of_mem_nhds _ (g := 1) ?_ filter_upwards [eventually_artinAt_eq_one (K := K) χ] with a ⟨_, h_local⟩ -- By the product formula `χ (Art a)` is a product of local values that are all `1`. simp [h_local] /-- The global Artin symbol of the idele with component `x` at `v` and `1` elsewhere is the local symbol of `x` at `v`. -/ @[simp] lemma artinMap_locIdele (v : FinPlace K) (x : (LocField v)ˣ) : artinMap Γ (locIdele v x) = artinAt Γ v x := -- In the product formula only the factor at `v` can differ from `1`. abelianization_ext fun χ ↦ by simp_all [finprod_eq_single _ v] /-- Norm compatibility of the Artin map. Let `L / K` be an extension of number fields embedded in `Ω`, let `Γ` and `Γ'` be their absolute Galois groups (topological groups acting on `Ω`), let `j` be an endomorphism of `Ω` that extends `K → L`, and let `j` carry the action of `g ∈ Γ` to that of `g' ∈ Γ'`. If the Artin symbol of the finite idele `y` of `L` is the class of `g'`, then the Artin symbol of the norm of `y` to `K` is the class of `g`. -/ lemma artinMap_map_adeleNorm {Γ' : Type} [Group Γ'] [TopologicalSpace Γ'] [MulSemiringAction Γ' Ω] [IsProGalois Γ' L Ω] {y : (𝔸f L)ˣ} {g : Γ} {g' : Γ'} (hy : artinMap Γ' y = g') (j : Ω →+* Ω) (hj : ∀ x : K, j (algebraMap K Ω x) = algebraMap L Ω (algebraMap K L x)) (hg : ∀ z : Ω, j (g • z) = g' • j z) : artinMap Γ (y.map (adeleNorm K L)) = g := by -- Both `a ↦ χ (Art (N a))` and `a ↦ χ (φ (Art a))` are continuous homomorphisms, where `φ` is -- the restriction along `j`; they agree on ideles with one component, hence everywhere -- (`mem_of_locIdele_mem`). obtain ⟨φ, hφ⟩ : ∃ φ : Γ' →ₜ* Γ, ∀ (s : Γ') (z : Ω), j (φ s • z) = s • j z := exists_galois_restrict Γ Γ' j fun s x ↦ by rw [hj, smul_algebraMap] -- `φ g'` and `g` act in the same way on `Ω`. obtain rfl : φ g' = g := G.faithful.1 fun z ↦ j.injective ((hφ g' z).trans (hg z).symm) refine abelianization_ext fun χ ↦ ?_ let H : Subgroup (𝔸f L)ˣ := ((abelianLift χ).comp ((artinMap Γ).comp (Units.map (adeleNorm K L)))).eqLocus ((abelianLift (comap φ χ)).comp (artinMap Γ')) -- Both homomorphisms are continuous. have H_closed : IsClosed H.carrier := by refine isClosed_eq ?_ ?_ <;> simp only [MonoidHom.coe_comp] <;> fun_prop have loc_mem (w : FinPlace L) (x : (LocField w)ˣ) : locIdele w x ∈ H := by have hw : IsPlaceOver (placeOver w) w := w.isPlaceOver_placeOver obtain ⟨s, hs⟩ := QuotientGroup.mk_surjective (localArtin Γ' (placeOver w) w x) have hv : IsPlaceOver ((placeOver w).comap j) (w.below K) := by simp [IsPlaceOver, hj, comap_apply_lt_one_iff, ← hw _] -- Local norm compatibility: the norm of `x` has symbol `φ s` if `x` has symbol `s`. have h_norm : artinMap Γ ((locIdele w x).map (adeleNorm K L)) = φ s := by rw [adeleNorm_locIdele, artinMap_locIdele] exact hv.artinAt_eq_of_localArtin_eq ((hw.isNormCompatible φ.toMonoidHom j hφ hj).localArtin_localNorm hs.symm) -- So both homomorphisms take the value `χ (φ s)`. refine (congrArg (abelianLift χ) h_norm).trans ?_ simp [hw.artinAt_eq_of_localArtin_eq hs.symm, abelianLift_mk, QZChar.comap] have hy_mem : y ∈ H := mem_of_locIdele_mem H_closed fun w ↦ loc_mem w (ideleAt w y) calc abelianLift χ (artinMap Γ (y.map (adeleNorm K L))) = abelianLift (comap φ χ) (artinMap Γ' y) := hy_mem _ = abelianLift χ (φ g') := congrArg (abelianLift (comap φ χ)) hy omit [Algebra K L] in /-- Let `e : L ≃+* K`. Suppose `j` extends `e.symm` and `j (g • z) = h • j z` for every `z`. If the Artin symbol of `x` over `L` is the class of `h`, then the Artin symbol over `K` of `x.map (adeleMap e.toRingHom).toMonoidHom` is the class of `g`. -/ lemma artinMap_map_equiv {Δ : Type} [Group Δ] [TopologicalSpace Δ] [MulSemiringAction Δ Ω] [IsProGalois Δ L Ω] (e : L ≃+* K) {x : (𝔸f L)ˣ} {g : Γ} {h : Δ} (hx : artinMap Δ x = h) (j : Ω →+* Ω) (hj : ∀ a : K, j (algebraMap K Ω a) = algebraMap L Ω (e.symm a)) (hg : ∀ z : Ω, j (g • z) = h • j z) : artinMap Γ (x.map (adeleMap e.toRingHom).toMonoidHom) = g := by let : Algebra K L := e.symm.toRingHom.toAlgebra -- The degree-one norm inverts the inclusion induced by the inverse isomorphism. have back : finAdeleIncl K L (adeleMap e.toRingHom x.val) = x.val := adeleMap_ringEquiv_symm_apply_apply e x.val have norm : x.map (adeleNorm K L) = x.map (adeleMap e.toRingHom).toMonoidHom := by apply Units.ext change adeleNorm K L x.val = adeleMap e.toRingHom x.val conv_lhs => rw [← back, adeleNorm_finAdeleIncl] rw [finrank_of_bijective_algebraMap e.symm.bijective, pow_one] rw [← norm] exact artinMap_map_adeleNorm hx j hj hg end New