module public import Mathlib.LinearAlgebra.Lagrange public import Mathlib.LinearAlgebra.Semisimple public import Mathlib.RingTheory.Henselian public import Mathlib.RingTheory.RegularLocalRing.Defs import Mathlib.Algebra.AffineMonoid.UniqueSums import Mathlib.Algebra.Module.StablyFree.Basic import Mathlib.Algebra.Polynomial.Degree.IsMonicOfDegree import Mathlib.LinearAlgebra.Eigenspace.Zero import TauCeti.LinearAlgebra.Matrix.GeneralLinearGroup.Card import Mathlib.RingTheory.Artinian.Instances import Mathlib.RingTheory.Coalgebra.CoassocSimps public import Lib.LocalGL.Green.HallAlgebra import Lib.General.LinearAlgebra.MatrixPolynomials import Lib.General.NumberTheory.FrobeniusOrbits /-! # Cuspidal class functions on GL_n over a finite field: μ, supports, values, inner products Let `k` be a finite field. `New.Hall k` is the ring of functions on the similarity classes `New.SimClass k` of endomorphisms over `k`, with the parabolic induction product. In it, 𝟙 = `New.Hall.constOne` is the constant function 1, μ = `New.Hall.moebius` is its inverse, and C_η = `New.Hall.greenCuspidal k η`. The file proves that C_η is cuspidal and that cuspidal functions vanish off classes whose characteristic polynomial is a power of an irreducible polynomial. It computes μ and C_η at multiplication by a field generator, and writes the inner product of C_η with B·μ as a mean over the units of a field extension. ## Main definitions and results * `New.Hall.crapo_complementation`, `New.Hall.isSemisimple_of_moebius_ne_zero`: μ is a Möbius function on the lattice of stable subspaces, so it vanishes off semisimple classes. * `New.Hall.greenCuspidal_mul_constOne`, `New.Hall.isCuspidal_greenCuspidal`: C_η ∗ 𝟙 = −β_η, and C_η is cuspidal. * `New.Hall.IsCuspidal.exists_charpoly_eq_pow`: a cuspidal function vanishes at the class of `g` unless the characteristic polynomial of `g` is a power of an irreducible one. * `New.greenCuspidal_simClassOf_eq_mul`: the value of `New.Hall.greenCuspidal k η` at the class of `g` depends on `η` only at the elements whose Frobenius orbit gives all eigenvalues of `g`. * `New.rankInner_greenCuspidal_mulMoebius`: the inner product on GL_{[L:k]}(k) of C_η (`New.Hall.greenCuspidal`) with B·μ (`New.Hall.mulMoebius`) is the mean over z ∈ L^× of conj η(φz) times B at multiplication by z. Notions from other files: * `New.Hall.IsCuspidal`: F is cuspidal when its average over block triangular endomorphisms with diagonal blocks a, b vanishes whenever both a and b have nonzero dimension. * `New.Hall.brauerLift`: The class function β_η sending an endomorphism to the sum of η over the roots in K of its characteristic polynomial, counted with multiplicity. * `New.Hall.greenCuspidal`: The class function C_η = (β_η·μ) ∗ 𝟙: the pointwise product of the eigenvalue sum β_η with the inverse μ of 𝟙, multiplied in the induction product by the constant function 𝟙. ## Relation to the literature Known result: Brauer lift is a virtual character; cuspidal times Steinberg is induced from a torus. Brauer induction is not used here. The character induced from the Coxeter torus is instead divided by the Steinberg character, read as a Möbius function on semisimple classes compatibly with the Galois action, and only the vanishing half of Crapo's theorem is used. Source: Green 1955, Thm 1; T. A. Springer, Sém. Bourbaki 441 (1973/74), 1.1-1.7; R. Carter, Finite groups of Lie type (1985), for Steinberg times a torus character; P. Hall's lemma, D. Krasula, arXiv 2403.05656, Lemma 23, and H. Crapo's complementation theorem, for the vanishing of the Möbius number off semisimple modules. See also `Lib.LocalGL.Green.TauFunctions`. -/ @[expose] public section /-! ## Crapo's lemma, the inverse μ of 𝟙, and cuspidality of C_η -/ namespace New.Hall open Module Finset StableSubspace Submodule LinearMap ComplexConjugate End Polynomial open scoped Classical in /-- The corollary to Theorem 3 of H. H. Crapo, *The Möbius function of a lattice*, specialized to a finite modular lattice. The sum condition makes `μ X` equal to `μ ⊥` times the Möbius function of the interval `[⊥, X]`. If `μ ⊤ ≠ 0`, every element has a complement. -/ lemma crapo_complementation {L : Type*} [Lattice L] [BoundedOrder L] [IsModularLattice L] [Fintype L] {μ : L → ℂ} (h_sum : ∀ X ≠ ⊥, ∑ U : L with U ≤ X, μ U = 0) (h_ne : μ ⊤ ≠ 0) (W : L) : IsComplemented W := by -- Take `C` maximal among the elements disjoint from `W`; we show that `W ⊔ C = ⊤`. obtain ⟨C, hC, h_max⟩ : ∃ C : L, Maximal (Disjoint W) C := exists_maximal_of_wellFoundedGT (Disjoint W) ⟨⊥, disjoint_bot_right⟩ refine ⟨C, hC, codisjoint_iff_le_sup.mpr ?_⟩ by_contra h_top apply h_ne -- By induction on `U`, `μ U = 0` unless `U ≤ W ⊔ C`. suffices h_vanish : ∀ U : L, ¬U ≤ W ⊔ C → μ U = 0 from h_vanish ⊤ h_top intro U hU induction U using WellFoundedLT.induction with | ind U ih => ?_ -- If `U ⊓ (W ⊔ C) = ⊥` then `W` is disjoint from `C ⊔ U` (modularity), so `U ≤ C` by maximality. have meet_ne : U ⊓ (W ⊔ C) ≠ ⊥ := by grind [disjoint_iff, le_sup_left, le_sup_right, hC.disjoint_sup_right_of_disjoint_sup_left (c := U)] -- The sums of `μ` below `U` and below `U ⊓ (W ⊔ C)` vanish; by `ih` their difference is `μ U`. have h_sub : ({A | A ≤ U ⊓ (W ⊔ C)} : Finset L) ⊆ ({A | A ≤ U} : Finset L) := by grind [le_inf_iff] rw [← h_sum U (ne_bot_of_le_ne_bot meet_ne inf_le_left), ← sum_sdiff h_sub, h_sum _ meet_ne, sum_eq_single U] · rw [add_zero] · -- an `A < U` outside `U ⊓ (W ⊔ C)` is not below `W ⊔ C`, so `μ A = 0` by `ih` grind [Ne.lt_of_le, le_inf_iff] · -- `U` itself lies in the difference, as `¬U ≤ W ⊔ C` grind [le_inf_iff] variable {k V K : Type*} [Field k] [Finite k] [AddCommGroup V] [Module k V] [Module.Finite k V] {g : End k V} {o : SimClass k} (B : Hall k) [Field K] [Algebra k K] (η : K → ℂ) /-! ### The inverse of the constant function -/ /-- `μ` is inverse to `New.Hall.constOne`; at `g` this reads: the sum of `μ (g|W)` over the stable subspaces `W` is `1` in dimension `0` and `0` otherwise. -/ lemma moebius_mul_constOne : moebius * constOne = (1 : Hall k) := by grind [isUnit_constOne] /-- At the class of `g`, the sum of `μ (g|W)` over the `g`-stable subspaces `W` is the value of the unit `1` of `New.Hall k` at the class of `g`. -/ lemma sum_moebius_simClassOf_endOnSub : ∑ W : StableSubspace g, moebius (simClassOf W.endOnSub) = (1 : Hall k) (simClassOf g) := by rw [← moebius_mul_constOne] simp [mul_simClassOf, finsum_eq_sum_of_fintype] /-- An endomorphism at whose class `μ` does not vanish is semisimple. -/ lemma isSemisimple_of_moebius_ne_zero (h_mu_ne : moebius (simClassOf g) ≠ 0) : g.IsSemisimple := by classical -- Apply `crapo_complementation` to the (modular, finite) lattice of `g`-stable subspaces, with -- the function `U ↦ μ (simClassOf (endOnSub U))`: every stable subspace has a stable complement. have h_modular : IsModularLattice g.invtSubmodule := ⟨fun y ↦ sup_inf_le_assoc_of_le (y : Submodule k V)⟩ let fintype_invt : Fintype g.invtSubmodule := fintypeStableSubspace refine isSemisimple_iff'.mpr (crapo_complementation (μ := fun U ↦ moebius (simClassOf (endOnSub U))) (fun X hX ↦ ?_) ?_) · -- The sum over `U ≤ X` is that of `sum_moebius_simClassOf_endOnSub` for `endOnSub X`, which is -- `0` for `X ≠ ⊥`; `sum_comap` matches the stable subspaces of `X` with the stable `U ≤ X`. have h_subtype : ∀ v : (X : Submodule k V), (X : Submodule k V).subtype (endOnSub X v) = g ((X : Submodule k V).subtype v) := by aesop have h_reindex (F : StableSubspace (endOnSub X) → ℂ) : ∑ W, F W = ∑ U : StableSubspace g, if (U : Submodule k V) ≤ X then F (comap (X : Submodule k V).subtype h_subtype U) else 0 := by simpa [sum_filter] using sum_comap (g := endOnSub X) (X : Submodule k V).subtype h_subtype F -- The sum of the statement, over `g.invtSubmodule`, is the same sum over `StableSubspace g`. change ∑ U ∈ univ.filter fun U : StableSubspace g ↦ U.val ≤ X.val, moebius (simClassOf U.endOnSub) = 0 simpa +contextual [hX, h_reindex, sum_filter] using sum_moebius_simClassOf_endOnSub (g := endOnSub X) · -- The restriction of `g` to `⊤` is similar to `g`. have h_top : simClassOf (endOnSub (⊤ : g.invtSubmodule)) = simClassOf g := simClassOf_eq_of_equiv topEquiv fun _ ↦ rfl rwa [h_top] /-- The Möbius value of an orbit of dimension 0 is 1. -/ @[simp] lemma moebius_eq_one_of_dim_eq_zero (h_dim : o.dim = 0) : moebius o = 1 := by simpa [h_dim] using congrFun (moebius_mul_constOne (k := k)) o /-- Let μ (`moebius`) be the inverse of the constant class function 1 for the parabolic-induction product on similarity classes over the finite field k. For any class function `B`, the average of the pointwise product `B μ` over the block triangular endomorphisms with diagonal blocks `a`, `b` is `μ a * μ b * B (b ⊕ a)`. Here `b ⊕ a` is the block diagonal map of the chosen representatives of `b` and `a`. -/ @[simp↓] lemma blockAverage_mulMoebius (a b : SimClass k) : B.mulMoebius.blockAverage a b = moebius a * moebius b * B (simClassOf (b.out.snd.prodMap a.out.snd)) := by -- First `δ moebius = moebius ⊗ moebius` for `δ = blockAverage`: cancel the unit `constOne` in -- each of the two variables. By the Mackey formula `blockAverage_mul` and `δ 𝟙 = 𝟙 ⊗ 𝟙`, the left -- side becomes `δ (moebius * 𝟙) = δ 1`; this and the right side `(moebius * 𝟙) ⊗ (moebius * 𝟙)` -- are `1 ⊗ 1`. have delta_eq : blockAverage moebius a = moebius a • moebius := by refine isUnit_constOne.mul_right_cancel (ext fun _ y ↦ ?_) let F : Hall k := fun c ↦ (blockAverage moebius c * constOne : Hall k) (simClassOf y) let F' : Hall k := fun c ↦ (moebius c • moebius * constOne : Hall k) (simClassOf y) suffices key : F * constOne = F' * constOne from congrFun (isUnit_constOne.mul_right_cancel key) a ext _ x have h_mackey : (moebius * constOne).blockAverage (simClassOf x) (simClassOf y) = ∑ A : StableSubspace x, (moebius.blockAverage (simClassOf A.endOnSub) * constOne.blockAverage (simClassOf A.endOnQuot)) (simClassOf y) := blockAverage_mul moebius constOne x y simp_all [F, F', blockAverage_simClassOf, ite_and, ← mul_sum, mul_simClassOf, finsum_eq_sum_of_fintype, sum_moebius_simClassOf_endOnSub] -- So it suffices that `B` agrees at a block triangular map and at `b ⊕ a` whenever `moebius` does -- not vanish at the former. have h_mu_ab : moebius a * moebius b = moebius.blockAverage a b := by simp [delta_eq] rw [h_mu_ab, blockAverage, blockAverage, mul_comm, ← finMean_const_mul] congr! 2 with x simp only [mul_eq_mul_right_iff, or_iff_not_imp_right] intro h_ne -- Then that map, say `g`, is semisimple, so the second factor has a stable complement `C`. have h_inv_prod : (⊥ : Submodule k (Fin b.out.fst → k)).prod ⊤ ∈ invtSubmodule (blockTriangularEnd a.out.snd b.out.snd x) := fun v ↦ by aesop obtain ⟨C, C_inv, hC⟩ : ∃ C : Submodule k ((Fin b.out.fst → k) × (Fin a.out.fst → k)), C ∈ invtSubmodule (blockTriangularEnd a.out.snd b.out.snd x) ∧ IsCompl ((⊥ : Submodule k (Fin b.out.fst → k)).prod ⊤) C := isSemisimple_iff.mp (isSemisimple_of_moebius_ne_zero h_ne) _ h_inv_prod -- As `C` is stable, the projection `p` onto `⊥ × ⊤` along `C` satisfies `p ∘ g ∘ p = p ∘ g`. have proj_comm : projection _ C hC ∘ₗ blockTriangularEnd a.out.snd b.out.snd x ∘ₗ projection _ C hC = projection _ C hC ∘ₗ blockTriangularEnd a.out.snd b.out.snd x := (isIdempotentElem_projection hC).ker_mem_invtSubmodule_iff.mp (by simpa using C_inv) have proj_mem : ∀ v, projection _ C hC v ∈ (⊥ : Submodule k (Fin b.out.fst → k)).prod ⊤ := projection_apply_mem hC -- The first coordinate, paired with the projection `p`, conjugates `g` to `b ⊕ a`. refine congrArg B (simClassOf_eq_of_equiv (.ofInjectiveEndo (.prod (fst k (Fin b.out.fst → k) (Fin a.out.fst → k)) (snd k (Fin b.out.fst → k) (Fin a.out.fst → k) ∘ₗ projection _ _ hC)) ?_) ?_) · -- the map is injective simp_all [injective_iff_map_eq_zero, Prod.ext_iff, mem_prod, DFunLike.ext_iff, projection_apply_of_mem_left] · -- and it conjugates the block triangular map to `b ⊕ a`; `↓`: membership in `⊥.prod ⊤` has -- to be split before the other lemmas act simp_all [Prod.ext_iff, ↓mem_prod, DFunLike.ext_iff, projection_apply_of_mem_left] /-- `μ` takes real values: each value is its own complex conjugate. -/ @[simp] lemma conj_moebius : ∀ c : SimClass k, conj (moebius c) = moebius c := by -- The values of `constOne` and `1` are real, so `conj moebius` is an inverse of `constOne` as -- well. let μ' : Hall k := fun c ↦ conj (moebius c) have h_inv : μ' * constOne = moebius * constOne := ext fun _ y ↦ by simp [μ', ← map_sum, mul_simClassOf, finsum_eq_sum_of_fintype, sum_moebius_simClassOf_endOnSub] exact congrFun (isUnit_constOne.mul_right_cancel h_inv) /-- Pointwise multiplication by the real-valued Möbius function can be moved from the first argument of the rank inner product to the second. -/ lemma rankInner_mulMoebius_left (m : ℕ) (F H : Hall k) : rankInner m F.mulMoebius H = rankInner m F H.mulMoebius := by simp [rankInner, mul_right_comm, mul_assoc] /-! ### The cuspidal function attached to `η` -/ /-- The induction product of `New.Hall.greenCuspidal k η` with the constant function `New.Hall.constOne` is minus the eigenvalue sum `New.Hall.brauerLift k η`. -/ @[simp] lemma greenCuspidal_mul_constOne : greenCuspidal k η * constOne = -brauerLift k η := by -- It suffices that `greenCuspidal k η = -(moebius * brauerLift k η)`; multiply by `constOne`. suffices greenCuspidal k η + moebius * brauerLift k η = 0 by grind [moebius_mul_constOne] ext _ g -- `β = brauerLift k η` is additive, `β (g|W) + β (g|V/W) = β g`, so the sum factors as -- `β g * ∑ W, moebius (g|W) = 0`. trans brauerLift k η (simClassOf g) * ∑ W : StableSubspace g, moebius (simClassOf W.endOnSub) · simp [← sum_add_distrib, mul_sum, greenCuspidal, mul_simClassOf, finsum_eq_sum_of_fintype] refine sum_congr rfl fun W _ ↦ ?_ simp [← charpoly_endOnSub_mul_endOnQuot _ W, field, charpoly_monic, Monic.ne_zero, aroots_mul] · simp +contextual [← g.charpoly_natDegree, sum_moebius_simClassOf_endOnSub, charpoly_monic] /-- The value of `New.Hall.greenCuspidal k η` in dimension zero is zero. -/ lemma greenCuspidal_eq_zero_of_dim_lt_one (c : SimClass k) : c.dim < 1 → greenCuspidal k η c = 0 := by simp_all [eq_simClassOf_zero_of_dim_eq_zero, greenCuspidal] /-- `New.Hall.greenCuspidal k η` is cuspidal: its block averages vanish when both blocks have positive size. -/ lemma isCuspidal_greenCuspidal : (greenCuspidal k η).IsCuspidal := by intro a b ha hb -- Write `δ = blockAverage`, `β = brauerLift k η`. By the Mackey formula `blockAverage_mul`, -- `δ C_η = δ (β moebius) * δ 𝟙`, a sum over stable subspaces of `a` and of `b`. rw [← simClassOf_out a, ← simClassOf_out b, greenCuspidal, blockAverage_mul] -- By `blockAverage_mulMoebius` and additivity of `β`, -- `δ (β moebius) = β moebius ⊗ moebius + moebius ⊗ β moebius`. Each of the two parts has a factor -- `∑ W, moebius (c|W) = 1 c` with `c = a` or `c = b`, which is `0` as `c.dim ≠ 0`. -- `-simClassOf_out`: otherwise `simp` undoes the first rewrite, which wrote `a`, `b` as classes simp_all [blockAverage, -simClassOf_out, charpoly_prodMap, mul_add, ← mul_sum, ← sum_mul, mul_assoc, mul_simClassOf, finsum_eq_sum_of_fintype, charpoly_monic, Monic.ne_zero, aroots_mul, sum_add_distrib, sum_moebius_simClassOf_endOnSub] end New.Hall namespace New /-! ## Supports of cuspidal class functions Idea: the Fitting decomposition for an irreducible factor of the characteristic polynomial makes all block triangular maps with the two given diagonal blocks similar. -/ section CuspidalSupport open Polynomial Hall LinearMap Module Multiset Submodule StableSubspace variable {k K V : Type*} [Field k] [Finite k] [Field K] [Algebra k K] (η η' : K → ℂ) [AddCommGroup V] [Module k V] [Module.Finite k V] {g : End k V} omit [Finite k] in /-- If `P(g)` is nilpotent, with `P` monic irreducible, the characteristic polynomial of `g` is a power of `P`. -/ lemma charpoly_eq_pow_of_isNilpotent {P : k[X]} (hP_irred : Irreducible P) (hP_monic : Monic P) (h_nilp : IsNilpotent (aeval g P)) : charpoly g = P ^ (finrank k V / P.natDegree) := by -- `charpoly g` divides `(charpoly P(g)).comp P`, and `charpoly P(g) = X ^ finrank k V` have h_dvd : charpoly g ∣ P ^ finrank k V := by -- `↓`: `aeval_algHom_apply` has to act before `toMatrixAlgEquiv` is unfolded simpa [↓aeval_algHom_apply, toMatrixAlgEquiv, h_nilp.charpoly_eq_X_pow_finrank] using charpoly_dvd_charpoly_aeval_comp (Y := g.toMatrixAlgEquiv (finBasis k V)) P -- a monic divisor of a power of the prime `P` is a power of `P`; compare degrees obtain ⟨j, -, hj⟩ : ∃ j ≤ finrank k V, Associated (charpoly g) (P ^ j) := (dvd_prime_pow hP_irred.prime _).mp h_dvd have h_eq : charpoly g = P ^ j := eq_of_monic_of_associated (charpoly_monic g) (hP_monic.pow j) hj have h_deg : finrank k V = j * P.natDegree := by rw [← charpoly_natDegree g, h_eq, natDegree_pow] rw [h_eq, h_deg, Nat.mul_div_cancel _ hP_irred.natDegree_pos] /-- Let `F` be a cuspidal element of `Hall k`, the complex-valued functions on similarity classes of endomorphisms of finite-dimensional `k`-spaces. Cuspidal means that the average of `F` over block triangular endomorphisms with diagonal blocks `a`, `b` vanishes whenever both blocks have nonzero dimension. If `F` does not vanish at the similarity class of `g`, then the characteristic polynomial of `g` is `P ^ j` for some irreducible `P ∈ k[X]` and some `j`. -/ lemma Hall.IsCuspidal.exists_charpoly_eq_pow {F : Hall k} (h_cusp : IsCuspidal F) (hF_ne : F (simClassOf g) ≠ 0) : ∃ (P : k[X]) (j : ℕ), Irreducible P ∧ charpoly g = P ^ j := by -- Let `P` be an irreducible factor of the characteristic polynomial of `g`, and `C` the Fitting -- component `ker P(g) ^ N`. Every block triangular map with diagonal blocks `g|C`, `g|V/C` is -- conjugate to `g`. As `F` is cuspidal, `F g ≠ 0` forces a block to be empty; it is not `C`, -- since `P(g)` is not invertible, so `P(g) ^ N = 0`. by_cases h_unit : IsUnit (charpoly g) · exact ⟨X, 0, irreducible_X, g.charpoly_monic.eq_one_of_isUnit h_unit⟩ obtain ⟨P, hP_monic, hP_irred, hdvd⟩ := (g.toMatrixAlgEquiv (Free.chooseBasis k V)).charpoly.exists_monic_irreducible_factor h_unit have not_unit : ¬IsUnit (aeval g P) := by simpa [aeval_algHom_apply] using fun h_inv ↦ hP_irred.dvd_iff_not_isCoprime.mp hdvd (isUnit_aeval_iff_isCoprime.mp h_inv).symm obtain ⟨N, hN, hN₀⟩ := ((aeval g P).eventually_isCompl_ker_pow_range_pow.and (Filter.eventually_ne_atTop 0)).exists have comm (Y : End k V) (hY : ∀ x : V, Y (g x) = g (Y x)) (x : V) : Y ((aeval g P ^ N) x) = (aeval g P ^ N) (Y x) := LinearMap.congr_fun ((Algebra.commute_of_mem_adjoin_singleton_of_commute (aeval_mem_adjoin_singleton k g) (LinearMap.ext hY : Commute Y g)).pow_right N).eq x let C : StableSubspace g := ⟨ker (aeval g P ^ N), by simp +contextual [← comm g]⟩ -- The Sylvester map `y ↦ a y - y b` (`a = g|C`, `b = g|V/C`) is injective: an intertwiner `y` -- commutes with `P(g) ^ N` and takes values in `C`, so it kills `range (P(g) ^ N)`. let sylvester : End k ((_ ⧸ C.val) →ₗ[k] C.val) := C.endOnSub.compRight k - lcomp k _ C.endOnQuot have sylvester_inj : Function.Injective sylvester := by refine (injective_iff_map_eq_zero _).mpr fun y hy ↦ linearMap_qext _ <| ext_on_codisjoint hN.codisjoint ((ker_mkQ _).ge.trans (ker_le_ker_comp _ y)) ?_ rintro _ ⟨v, rfl⟩ refine Subtype.ext ((comm (C.val.subtype ∘ₗ y ∘ₗ mkQ _) (fun x ↦ ?_) v).trans (y _).prop) exact (congrArg Subtype.val (LinearMap.congr_fun (sub_eq_zero.mp hy) ⟦x⟧)).symm -- So it is surjective, and a solution `y` of `a y - y b = x` conjugates -- `blockTriangularEnd a b x` into `g`. have cls_blk (x : (V ⧸ C.val) →ₗ[k] C.val) : simClassOf (blockTriangularEnd C.endOnSub C.endOnQuot x) = simClassOf g := by obtain ⟨y, rfl⟩ := surjective_of_injective sylvester_inj x refine simClassOf_eq_of_equiv (.skewProd (quotKerEquivRange _) 1 y ≪≫ₗ prodEquivOfIsCompl _ _ hN.symm) ?_ simp [Submodule.Quotient.forall, sylvester, endOnSub, endOnQuot, C, comm g (fun _ ↦ rfl)] intros abel -- The block average of `F` at `(a, b)` is thus `F g ≠ 0`, forcing `C = ⊤` (`C = ⊥` is excluded). refine ⟨P, _, hP_irred, charpoly_eq_pow_of_isNilpotent hP_irred hP_monic ⟨N, ?_⟩⟩ -- `↓`: `finrank_eq_zero` has to act before the dimension facts are simplified further simpa [C, cls_blk, hF_ne, not_unit, hN₀, blockAverage_simClassOf, ← isUnit_iff_ker_eq_bot, finrank_zero_iff, ↓finrank_eq_zero] using h_cusp (simClassOf C.endOnSub) (simClassOf C.endOnQuot) /-- Let k be a finite field, `q = |k|`, `d = finrank k V`, and let `greenCuspidal k η` be the class function (β_η·μ) ∗ 𝟙, where β_η is the eigenvalue sum of η, μ is the inverse of the constant function 𝟙 for the parabolic-induction product ∗, and β_η·μ is pointwise. Suppose `η'` is `a` times `η` at every `z` in `K` with `z ^ q ^ d = z` whose Frobenius orbit `z, z ^ q, …, z ^ q ^ (d - 1)` lists the eigenvalues of `g` in `K`. Then the value of `greenCuspidal` at the class of `g` for `η'` is `a` times the value for `η`. -/ lemma greenCuspidal_simClassOf_eq_mul {a : ℂ} (h_scale : ∀ z : K, g.charpoly.aroots K = Multiset.map (fun i : ℕ ↦ z ^ Nat.card k ^ i) (Multiset.range (finrank k V)) → z ^ Nat.card k ^ finrank k V = z → a * η z = η' z) : greenCuspidal k η' (simClassOf g) = a * greenCuspidal k η (simClassOf g) := by -- If the two sides differ, some `greenCuspidal k θ (simClassOf g)` is nonzero. Then `charpoly g` -- is a power of an irreducible `P`, and every eigenvalue of `g` satisfies `h_scale`. by_cases! h_zero : ∀ θ : K → ℂ, greenCuspidal k θ (simClassOf g) = 0 · simp [h_zero] obtain ⟨θ, hθ⟩ : ∃ θ : K → ℂ, greenCuspidal k θ (simClassOf g) ≠ 0 := h_zero obtain ⟨P, j, hP, hg⟩ : ∃ (P : k[X]) (j : ℕ), Irreducible P ∧ charpoly g = P ^ j := (isCuspidal_greenCuspidal θ).exists_charpoly_eq_pow hθ -- By `aroots_pow_eq_frobenius_orbit`, the roots of `P ^ j` are the Frobenius orbit of any one -- root `z`. have h_root (z : K) (hz : aeval z g.charpoly = 0) : a * η z = η' z := by grind [aroots_pow_eq_frobenius_orbit, pow_ne_zero, charpoly_natDegree] -- `greenCuspidal k η` reads `η` only at eigenvalues of restrictions to stable subspaces `W`. have h_terms (W : StableSubspace g) (z : K) (hz : z ∈ (charpoly W.endOnSub).aroots K) : η' z = a * η z := by -- `z` is a root of `charpoly (g|W)`, a factor of `charpoly g` obtain ⟨-, hz_root⟩ : charpoly W.endOnSub ≠ 0 ∧ aeval z (charpoly W.endOnSub) = 0 := mem_aroots.mp hz refine (h_root z ?_).symm rw [← charpoly_endOnSub_mul_endOnQuot _ W, map_mul, hz_root, zero_mul] suffices h_sum_eq : ∑ W : StableSubspace g, (Multiset.map (fun x ↦ η' x) ((charpoly W.endOnSub).aroots K)).sum * moebius (simClassOf W.endOnSub) = ∑ W : StableSubspace g, (Multiset.map (fun x ↦ a * η x) ((charpoly W.endOnSub).aroots K)).sum * moebius (simClassOf W.endOnSub) by simpa [greenCuspidal, mul_simClassOf, mulMoebius, Finset.mul_sum, ← mul_assoc, ← sum_map_mul_left, finsum_eq_sum_of_fintype] using h_sum_eq refine Finset.sum_congr rfl fun W _ ↦ ?_ rw [Multiset.map_congr rfl (h_terms W)] end CuspidalSupport /-! ## Values of μ and C_η at multiplication by a field generator Let z generate a finite extension F = k[z] of k; class functions are evaluated at multiplication by z. -/ section CuspidalAtScalars open Module Matrix Finset Hall Polynomial Fintype Algebra minpoly Lagrange Submodule StableSubspace GeneralLinearGroup attribute [local instance low] Fintype.ofFinite variable {k K F V : Type*} [Field k] [Finite k] [Field K] [Algebra k K] [Field F] [Finite F] [Algebra k F] (z : PowerBasis k F) [AddCommGroup V] [Module k V] [Module F V] [IsScalarTower k F V] [Module.Finite k V] [Module.Finite F V] /-- The order of GL_n(k), for a finite field k with q elements, is the product of q^i (q^{i+1} − 1) over 0 ≤ i < n, as an identity in any commutative ring. -/ lemma card_GL_eq_prod {n R : Type*} [Fintype n] [DecidableEq n] [CommRing R] : Nat.card (GL n k) = ∏ i ∈ range (Fintype.card n), (Nat.card k ^ i * (Nat.card k ^ (i + 1) - 1) : R) := by have h_card : Nat.card (GL n k) = Nat.card (GL (Fin (card n)) k) := Nat.card_congr (Units.mapEquiv (reindexRingEquiv k (equivFin n)).toMulEquiv).toEquiv rw [h_card, TauCeti.natCard_GL_fin k] push_cast [Nat.cast_sub (Nat.one_le_pow _ _ (Nat.card_pos (α := k)))] rw [prod_mul_distrib, prod_pow_eq_pow_sum, sum_range_id, Nat.choose_two_right] open Classical in /-- Let `g` be an endomorphism of a finite space `V` and `U ≠ V` a `g`-stable subspace. The sum of μ at the classes of `g` on `V/W`, over the `g`-stable subspaces `W ⊇ U`, is `0`. -/ private lemma sum_moebius_endOnQuot_eq_zero_of_ne_top {g : Module.End k V} (U : StableSubspace g) (hU : (U : Submodule k V) ≠ ⊤) : ∑ W : StableSubspace g with (U : Submodule k V) ≤ W.val, moebius (simClassOf W.endOnQuot) = 0 := by -- The stable subspaces above `U` are those of `V/U`, so this sum is -- `(constOne * moebius)(V/U) = 0`. have h_mkQ_comm (x : V) : (U : Submodule k V).mkQ (g x) = U.endOnQuot ((U : Submodule k V).mkQ x) := rfl have h_quo : ∑ W : StableSubspace g with (U : Submodule k V).mkQ.ker ≤ W.val, moebius (simClassOf W.endOnQuot) = (constOne * moebius : Hall k) (simClassOf U.endOnQuot) := by refine (sum_comap (U : Submodule k V).mkQ (g' := U.endOnQuot) h_mkQ_comm _).trans ?_ simp [mul_simClassOf, finsum_eq_sum_of_fintype] rw [mul_comm constOne, moebius_mul_constOne] at h_quo simpa [hU, finrank_zero_iff] using h_quo /-- Let `F = k[z]` be a finite field extension of the finite field `k`, given by a power basis `z`, and let `Q` be the number of elements of `F`. Let `V` be an `F`-space of dimension `d`, let `N = ∏_{0≤i rwa [Set.mem_singleton_iff.mp ha] | algebraMap r => simp | add a b _ _ ha hb => simp [add_smul, ha, hb] | mul a b _ _ ha hb => simp [mul_smul, ha, hb] -- The `F`-linear automorphisms of `V` are the `k`-linear ones that commute with `z.gen`. let restrictScalarsEquiv : LinearMap.GeneralLinearGroup F V ≃ {e : V ≃ₗ[k] V // ∀ x, e (z.gen • x) = z.gen • e x} := .mk (fun g ↦ ⟨g.toLinearEquiv.restrictScalars k, by simp⟩) fun ⟨f, hf⟩ ↦ .ofLinearEquiv { f with map_smul' := h_F_linear f hf } have h_card : Nat.card (GL (Fin (finrank F V)) F) = Nat.card {e : V ≃ₗ[k] V // ∀ x, e (z.gen • x) = z.gen • e x} := Nat.card_congr ((toLin' (finBasis F V)).toEquiv.trans restrictScalarsEquiv) obtain ⟨m, hm⟩ : ∃ m : ℕ, finrank F V = m + 1 := Nat.exists_eq_add_one.mpr finrank_pos -- With `N = (∏_{i