LocalClassFieldTheory.finsum_character_ramificationLayerWeight
Summing a subgroup's order over characters nontrivial on it gives the group order times the subgroup order minus one.
Source context 8 commands
Surrounding namespaces, section variables, and local commands at this declaration.
@[expose] public section
open scoped IsMulCommutative
open ValuationTheory.DiscreteValuationField
open ValuationTheory.DiscreteValuationField.ValuedExtension
open RamificationTheory.HilbertRamification.Higher
namespace LocalClassFieldTheory
universe u v w x
open scoped Classical inLean source · full declaration
theorem finsum_character_ramificationLayerWeight
(G M : Type*) [CommGroup G] [Finite G] [CommMonoid M]
[HasEnoughRootsOfUnity M (Monoid.exponent G)] (H : Subgroup G) :
(∑ᶠ χ : G →* Mˣ, (if H ≤ χ.ker then 0 else Nat.card H)) =
Nat.card G * (Nat.card H - 1) := by
classical
let : Fintype (G →* Mˣ) := Fintype.ofFinite _
let A := (MonoidHom.domRestrictHom H Mˣ).ker
have hA (χ : G →* Mˣ) : χ ∈ A ↔ H ≤ χ.ker := by
change MonoidHom.domRestrictHom H Mˣ χ = 1 ↔ H ≤ χ.ker
constructor
· intro h x hx
exact DFunLike.congr_fun h ⟨x, hx⟩
· intro h
apply MonoidHom.ext
intro x
exact h x.2
have hterm (χ : G →* Mˣ) : (if H ≤ χ.ker then 0 else Nat.card H) =
if χ ∉ A then Nat.card H else 0 := by
by_cases h : χ ∈ A
· rw [ite_eq_left ((hA χ).mp h), ite_eq_right (not_not.mpr h)]
· rw [ite_eq_right (fun hk => h ((hA χ).mpr hk)), ite_eq_left h]
let s := Finset.univ.filter (fun χ : G →* Mˣ => χ ∉ A)
have hs : s.card = Nat.card (G →* Mˣ) - Nat.card A := by
calc
s.card = Fintype.card {χ : G →* Mˣ // χ ∉ A} := (Fintype.card_subtype _).symm
_ = Nat.card (G →* Mˣ) - Nat.card A := by
rw [Fintype.card_subtype_compl]
simp only [Nat.card_eq_fintype_card]
calc
(∑ᶠ χ : G →* Mˣ, (if H ≤ χ.ker then 0 else Nat.card H)) = s.card * Nat.card H := by
rw [finsum_eq_sum_of_fintype]
simp_rw [hterm]
rw [← Finset.sum_filter, Finset.sum_const, nsmul_eq_mul]
rfl
_ = (Nat.card G - Nat.card (G ⧸ H)) * Nat.card H := by
rw [hs, CommGroup.card_monoidHom_of_hasEnoughRootsOfUnity G M,
CommGroup.card_domRestrictHom_ker M H]
_ = Nat.card G * (Nat.card H - 1) := by
have hcard := H.card_eq_card_quotient_mul_card_subgroup
rw [Nat.sub_mul, ← hcard, Nat.mul_sub_one]