Contents
Lemma215.lean
Statement index · Original Lean file
1
/-2Copyright (c) 2026 The thesis-formalization contributors.3Released under Apache 2.0 license as described in the file LICENSE.4-/5import Mathlib67/-!8# Lemma 2.15 of Bhattacharya's thesis: the character/subfield correspondence910Let `K = ℚ(μ_n)` be the `n`-th cyclotomic field. For a subgroup `H` of the group11`𝒳(n)` of Dirichlet characters of level `n` the thesis defines1213 `H^⊥ = {σ ∈ Gal(ℚ(μ_n)/ℚ) : χ(σ) = 1 for all χ ∈ H}` (2.15)1415and, for a subfield `F` of `ℚ(μ_n)`,1617 `H_F = {χ ∈ 𝒳(n) : χ(σ) = 1 for all σ ∈ Gal(ℚ(μ_n)/F)}` (2.16)1819and proves that `H ↦ ℚ(μ_n)^{H^⊥}`, `H_F ↤ F` are mutually inverse bijections20(2.17): the analogue of the fundamental theorem of Galois theory for characters21of a finite abelian group (Washington, Propositions 3.3 and 3.4).2223Mathlib already contains the bijection24`IsCyclotomicExtension.Rat.intermediateFieldEquivSubgroupChar`, obtained by25composing the Galois correspondence, the isomorphism26`Gal(ℚ(μ_n)/ℚ) ≃* (ℤ/nℤ)ˣ`, and the perfect pairing between `(ℤ/nℤ)ˣ` and its27character group. This file packages that theorem in the form in which the thesis28uses it: the two subgroups (2.15) and (2.16), the two round trips (2.17), the29degree formula `#H_F = [F : ℚ]`, and the description of `H_F` by conductors when30`F = ℚ(μ_m)`.3132Everything here is checked: no `sorry`, no project axiom, no `native_decide`.33The hypotheses beyond `n ≠ 0` are `IsAbelianGalois ℚ K` (automatic for34cyclotomic fields, see `IsCyclotomicExtension.isAbelianGalois`) and the35Mathlib-standard `HasEnoughRootsOfUnity ℂ (Monoid.exponent (ZMod n)ˣ)`, which36holds in characteristic zero.37-/3839noncomputable section4041namespace Thesis4243open IntermediateField4445variable (n : ℕ) [NeZero n]46variable (K : Type*) [Field K] [NumberField K] [IsCyclotomicExtension {n} ℚ K]47variable [HasEnoughRootsOfUnity ℂ (Monoid.exponent (ZMod n)ˣ)]4849/-- The annihilator `H^⊥` of a subgroup of `𝒳(n)`, equation (2.15) of the thesis:50the Galois automorphisms on which every character of `H` takes the value `1`. -/51def charAnnihilator (H : Subgroup (DirichletCharacter ℂ n)) : Subgroup Gal(K/ℚ) :=52 (IsCyclotomicExtension.Rat.subgroupGalEquivSubgroupChar n K ℂ).symm (OrderDual.toDual H)5354/-- Membership in `H^⊥`, equation (2.15). -/55theorem mem_charAnnihilator_iff {H : Subgroup (DirichletCharacter ℂ n)} {σ : Gal(K/ℚ)} :56 σ ∈ charAnnihilator n K H ↔57 ∀ χ ∈ H, χ (IsCyclotomicExtension.Rat.galEquivZMod n K σ) = 1 :=58 IsCyclotomicExtension.Rat.mem_subgroupGalEquivSubgroupChar_symm_iff n K ℂ σ H5960variable [IsAbelianGalois ℚ K]6162/-- The characters `H_F` of a subfield `F ≤ ℚ(μ_n)`, equation (2.16) of the thesis:63the characters of level `n` that are trivial on `Gal(ℚ(μ_n)/F)`. -/64def fixingCharacters (F : IntermediateField ℚ K) : Subgroup (DirichletCharacter ℂ n) :=65 IsCyclotomicExtension.Rat.intermediateFieldEquivSubgroupChar n K ℂ F6667/-- The fixed field `ℚ(μ_n)^{H^⊥}` attached to a subgroup of characters. -/68def fixedFieldOfCharacters (H : Subgroup (DirichletCharacter ℂ n)) : IntermediateField ℚ K :=69 IntermediateField.fixedField (charAnnihilator n K H)7071/-- Membership in `H_F`, equation (2.16). -/72theorem mem_fixingCharacters_iff {F : IntermediateField ℚ K} {χ : DirichletCharacter ℂ n} :73 χ ∈ fixingCharacters n K F ↔74 ∀ σ : Gal(K/ℚ), σ ∈ F.fixingSubgroup →75 χ (IsCyclotomicExtension.Rat.galEquivZMod n K σ) = 1 :=76 IsCyclotomicExtension.Rat.mem_intermediateFieldEquivSubgroupChar_iff n K ℂ F χ7778/-- Characters of an intermediate field that is itself cyclotomic of level `m ∣ n` are79exactly the characters whose conductor divides `m`. -/80theorem mem_fixingCharacters_iff_conductor_dvd (F : IntermediateField ℚ K) {m : ℕ} [NeZero m]81 [IsGalois ℚ F] [IsCyclotomicExtension {m} ℚ F] (hdiv : m ∣ n)82 (χ : DirichletCharacter ℂ n) :83 χ ∈ fixingCharacters n K F ↔ χ.conductor ∣ m :=84 IsCyclotomicExtension.Rat.mem_intermediateFieldEquivSubgroupChar_iff_conductor_dvd85 n K ℂ F hdiv χ8687/-- The degree formula `#H_F = [F : ℚ]`. -/88theorem card_fixingCharacters (F : IntermediateField ℚ K) :89 Nat.card (fixingCharacters n K F) = Module.finrank ℚ F :=90 IsCyclotomicExtension.Rat.card_intermediateFieldEquivSubgroupChar n K ℂ F9192/-- The two character correspondences of Mathlib agree: the characters of `F` are the93annihilator of `Gal(ℚ(μ_n)/F)`. -/94theorem intermediateFieldEquivSubgroupChar_eq_subgroupGalEquiv (F : IntermediateField ℚ K) :95 IsCyclotomicExtension.Rat.intermediateFieldEquivSubgroupChar n K ℂ F =96 (IsCyclotomicExtension.Rat.subgroupGalEquivSubgroupChar n K ℂ F.fixingSubgroup).ofDual := by97 ext χ98 show χ ∈ fixingCharacters n K F ↔ _99 rw [mem_fixingCharacters_iff, IsCyclotomicExtension.Rat.mem_subgroupGalEquivSubgroupChar_iff]100101/-- The annihilator of `H_F` is `Gal(ℚ(μ_n)/F)`. -/102theorem charAnnihilator_fixingCharacters (F : IntermediateField ℚ K) :103 charAnnihilator n K (fixingCharacters n K F) = F.fixingSubgroup := by104 have h := intermediateFieldEquivSubgroupChar_eq_subgroupGalEquiv n K F105 unfold charAnnihilator fixingCharacters106 rw [h]107 simp108109/-- **Lemma 2.15, first round trip** (2.17): `H_{ℚ(μ_n)^{H^⊥}} = H`. -/110theorem fixingCharacters_fixedFieldOfCharacters (H : Subgroup (DirichletCharacter ℂ n)) :111 fixingCharacters n K (fixedFieldOfCharacters n K H) = H := by112 have h := intermediateFieldEquivSubgroupChar_eq_subgroupGalEquiv n K (fixedFieldOfCharacters n K H)113 have hA : (fixedFieldOfCharacters n K H).fixingSubgroup = charAnnihilator n K H :=114 IntermediateField.fixingSubgroup_fixedField _115 show IsCyclotomicExtension.Rat.intermediateFieldEquivSubgroupChar n K ℂ116 (fixedFieldOfCharacters n K H) = H117 rw [h, hA]118 unfold charAnnihilator119 simp120121/-- **Lemma 2.15, second round trip** (2.17): `ℚ(μ_n)^{H_F^⊥} = F`. -/122theorem fixedFieldOfCharacters_fixingCharacters (F : IntermediateField ℚ K) :123 fixedFieldOfCharacters n K (fixingCharacters n K F) = F := by124 unfold fixedFieldOfCharacters125 rw [charAnnihilator_fixingCharacters]126 exact IsGalois.fixedField_fixingSubgroup F127128end Thesis