Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import TauCeti.RepresentationTheory.AsAlgebraHom |
| 4 | import TauCeti.RepresentationTheory.Simple.Basic |
| 5 | import TauCeti.RepresentationTheory.CharacterTable.Values |
| 6 | public import Aesop.BuiltinRules |
| 7 | public import Mathlib.RepresentationTheory.Character |
| 8 | import Mathlib.Algebra.Module.StablyFree.Basic |
| 9 | import Mathlib.Algebra.Order.PUnit |
| 10 | import Mathlib.Analysis.CStarAlgebra.Classes |
| 11 | import Mathlib.LinearAlgebra.Matrix.FiniteDimensional |
| 12 | import Mathlib.RingTheory.Coalgebra.CoassocSimps |
| 13 | import Mathlib.RingTheory.Coalgebra.IsFrobenius |
| 14 | import Mathlib.RingTheory.Etale.Weakly |
| 15 | import Mathlib.RingTheory.Finiteness.ModuleFinitePresentation |
| 16 | import Mathlib.RingTheory.HopfAlgebra.Basic |
| 17 | import Mathlib.RingTheory.SimpleRing.Principal |
| 18 | import Mathlib.RingTheory.TotallySplit |
| 19 | import TauCeti.RepresentationTheory.CharacterTable.CentralCharacter |
| 20 | import TauCeti.RepresentationTheory.CharacterTable.Completeness |
| 21 | import TauCeti.RepresentationTheory.Unitary |
| 22 | public import Lib.Speed |
| 23 | |
| 24 | /-! |
| 25 | # Characters of finite groups: averages, virtual characters and central projections |
| 26 | |
| 27 | This file sets up the character theory of a finite group `G` that is used for the characters of |
| 28 | `GL n` over a finite field. From Wedderburn's theorem it derives criteria for irreducibility. |
| 29 | |
| 30 | ## Main definitions and results |
| 31 | |
| 32 | * `New.IsIrreducibleChar`: the characters of simple finite-dimensional complex representations. |
| 33 | * `New.virtualChars S G`: the `S`-span of the characters, a subalgebra of `G → ℂ`; for `S = ℤ` these |
| 34 | are the virtual characters, for `S = ℕ` the characters (`New.isChar_of_mem_virtualChars`). |
| 35 | * `New.IsCentralProj`: central idempotents e of the group algebra ℂ[H] of any group H. Their |
| 36 | coefficients are class functions; 1 − e, the image of e under a ring endomorphism of ℂ and tensor |
| 37 | products are again central idempotents. |
| 38 | * `New.IsClassFunction.isIrreducibleChar_of_classInner_eq_intCast`, |
| 39 | `New.IsClassFunction.mem_virtualChars`, `New.IsClassFunction.exists_eq_mul_groupAlgElem_mul`: |
| 40 | criteria for a class function `f` to be an irreducible character, for `f` to be a combination of |
| 41 | characters with coefficients in a given semiring, and for an element of `ℂ[G]` to be recovered |
| 42 | from its product with `New.groupAlgElem f`. |
| 43 | * `New.IsCentralProj.isChar_card_mul_coeff`: for a central idempotent `e` of `ℂ[G]`, the function |
| 44 | `g ↦ |G| · e(g)` is a character. Its pairing with any character is the rank of an idempotent, so a |
| 45 | natural number. It is the character of a representation of dimension at most `|G|` |
| 46 | (`New.IsCentralProj.exists_character_eq_and_finrank_le_card`), so the coefficients of `e` have |
| 47 | norm at most `1` (`New.IsCentralProj.norm_coeff_le_one`). |
| 48 | * `New.IsCentralProj.self_adjoint`, `New.IsCentralProj.sum_norm_sq_conv_le`: a central idempotent of |
| 49 | `ℂ[G]` acts self-adjointly for every `G`-invariant form that is sesquilinear for `σ⁻¹ ∘ conj ∘ σ`, |
| 50 | complex conjugation transported along an automorphism `σ` of `ℂ`. So it acts as an orthogonal |
| 51 | projection in every unitary representation. Hence convolution with it does not increase `ℓ²` |
| 52 | norms. |
| 53 | -/ |
| 54 | |
| 55 | @[expose] public section |
| 56 | |
| 57 | noncomputable section |
| 58 | |
| 59 | /-! |
| 60 | ## Averages, inner products, characters and group algebra elements |
| 61 | |
| 62 | The basic definitions: `New.finMean`, `New.classInner`, `New.groupAlgElem` (a function `f` as the |
| 63 | element `∑ g, f g • g` of the group algebra), `New.IsChar`, `New.IsClassFunction` and |
| 64 | `New.IsIrreducibleChar`. |
| 65 | -/ |
| 66 | |
| 67 | namespace New |
| 68 | |
| 69 | variable {G : Type*} [Group G] [Finite G] (f h : G → ℂ) |
| 70 | |
| 71 | /-- The average of a complex function f on a finite type G: the sum of its values divided by the |
| 72 | cardinality of G. -/ |
| 73 | def finMean : ℂ := finsum f / Nat.card G |
| 74 | |
| 75 | /-- The inner product ⟨f, h⟩ of complex functions on a finite set: the average over g of conj |
| 76 | f(g) · h(g). -/ |
| 77 | def classInner : ℂ := finMean fun g ↦ starRingEnd ℂ (f g) * h g |
| 78 | |
| 79 | /-- For a complex function f on a finite group G, the element Σ f(g)·g of the group algebra |
| 80 | ℂ[G]. -/ |
| 81 | @[simps] |
| 82 | def groupAlgElem : MonoidAlgebra ℂ G := ⟨Finsupp.equivFunOnFinite.symm f⟩ |
| 83 | |
| 84 | /-- The function f : G → ℂ is the character of a finite-dimensional complex representation |
| 85 | of G. -/ |
| 86 | def IsChar : Prop := ∃ V : FDRep ℂ G, V.character = f |
| 87 | |
| 88 | /-- The function f : G → ℂ is a class function: f(xgx⁻¹) = f(g) for all g, x in G. -/ |
| 89 | @[simp] |
| 90 | abbrev IsClassFunction : Prop := ∀ g x : G, f (x * g * x⁻¹) = f g |
| 91 | |
| 92 | /-- The function `f` is an irreducible character: the character of a simple finite-dimensional |
| 93 | complex representation of `G`. `New.IsClassFunction.isIrreducibleChar_of_classInner_eq_intCast` |
| 94 | gives a criterion. -/ |
| 95 | def IsIrreducibleChar : Prop := ∃ V : FDRep ℂ G, CategoryTheory.Simple V ∧ V.character = f |
| 96 | |
| 97 | end New |
| 98 | |
| 99 | namespace New |
| 100 | |
| 101 | /-! |
| 102 | ## Averages of complex functions on finite sets |
| 103 | |
| 104 | `New.finMean f` is the mean of a complex function on a finite type. |
| 105 | -/ |
| 106 | |
| 107 | section Average |
| 108 | |
| 109 | open ComplexConjugate Finset Fintype |
| 110 | |
| 111 | attribute [local instance low] Fintype.ofFinite |
| 112 | |
| 113 | variable {α β : Type*} {ι : Type*} [Finite α] [Finite β] {f : α → ℂ} {g : β → ℂ} |
| 114 | |
| 115 | omit [Finite α] in |
| 116 | /-- The finite average `finMean f` equals the sum over `α` divided by `Fintype.card α`. -/ |
| 117 | lemma finMean_eq [Fintype α] : finMean f = (∑ x : α, f x) / Fintype.card α := by |
| 118 | rw [finMean, finsum_eq_sum_of_fintype, Nat.card_eq_fintype_card] |
| 119 | |
| 120 | /-- Factoring out a scalar constant `c` from the finite average `finMean`. -/ |
| 121 | @[simp] |
| 122 | lemma finMean_const_mul (c : ℂ) : finMean (fun x : α ↦ c * f x) = c * finMean f := by |
| 123 | simp [finMean_eq, mul_div, mul_sum] |
| 124 | |
| 125 | /-- The finite average distributes over finite sums of functions. -/ |
| 126 | lemma finMean_sum (s : Finset ι) (f : ι → α → ℂ) : |
| 127 | finMean (fun x : α ↦ ∑ i ∈ s, f i x) = ∑ i ∈ s, finMean (f i) := by |
| 128 | simp [finMean_eq, s.sum_comm, sum_div] |
| 129 | |
| 130 | /-- The average of a constant function over a nonempty finite type is that constant. -/ |
| 131 | @[simp] |
| 132 | lemma finMean_const [Nonempty α] (c : ℂ) : finMean (fun _ : α ↦ c) = c := by |
| 133 | simp [finMean_eq] |
| 134 | |
| 135 | /-- Complex conjugation commutes with `finMean`. -/ |
| 136 | lemma finMean_conj : finMean (fun x : α ↦ conj (f x)) = conj (finMean f) := by |
| 137 | simp [finMean_eq] |
| 138 | |
| 139 | /-- A bijection `e : β ≃ α` preserving values identifies `finMean f` with `finMean g`. -/ |
| 140 | lemma finMean_equiv (e : β ≃ α) (hfg : ∀ x : β, f (e x) = g x) : finMean f = finMean g := by |
| 141 | simp [finMean_eq, ← hfg, card_congr e, Equiv.sum_comp] |
| 142 | |
| 143 | /-- Fubini: the average over a product is the iterated average. -/ |
| 144 | lemma finMean_prod (f : α × β → ℂ) : |
| 145 | finMean f = finMean fun x : α ↦ finMean fun y : β ↦ f (x, y) := by |
| 146 | simp only [finMean_eq, sum_prod_type, card_prod, Nat.cast_mul, ← sum_div, div_div, mul_comm] |
| 147 | |
| 148 | /-- Let `p : α →* β` be a surjective homomorphism of finite groups. Then the mean of |
| 149 | `f ∘ p` over `α` equals the mean of `f` over `β`. -/ |
| 150 | @[to_additive finMean_comp_surjective /-- Let `p : α →+ β` be a surjective homomorphism of finite |
| 151 | additive groups. Then the mean of `f ∘ p` over `α` equals the mean of `f` over `β`. -/] |
| 152 | lemma finMean_comp_surjective_mul [Group α] [Group β] (p : α →* β) (hp : Function.Surjective p) |
| 153 | (f : β → ℂ) : finMean (fun x : α ↦ f (p x)) = finMean f := by |
| 154 | -- `α` is in bijection with `β × ker p`, and `p` becomes the first projection |
| 155 | let e : α ≃ β × p.ker := |
| 156 | (Equiv.sigmaFiberEquiv p).symm.trans (.sigmaEquivProdOfEquiv (p.fiberEquivKerOfSurjective hp)) |
| 157 | calc |
| 158 | _ = finMean fun x : β × p.ker ↦ f x.1 := (finMean_equiv e fun _ ↦ rfl).symm |
| 159 | _ = finMean f := by simp_rw [finMean_prod, finMean_const] |
| 160 | |
| 161 | end Average |
| 162 | |
| 163 | /-! |
| 164 | ## Characters and the algebra of virtual characters |
| 165 | |
| 166 | * `New.IsChar.apply_inv`, `New.IsChar.isIntegral`, `New.IsChar.norm_apply_le` and `New.IsChar.star`: |
| 167 | basic arithmetic properties of character values, obtained from Mathlib |
| 168 | (`FDRep.isIntegral_character`) and Tau Ceti (`FDRep.conj_char`, `FDRep.norm_char_le_finrank`). |
| 169 | -/ |
| 170 | |
| 171 | section VirtualCharacters |
| 172 | |
| 173 | open ComplexConjugate Submodule LinearMap Finset |
| 174 | |
| 175 | attribute [local instance low] Fintype.ofFinite |
| 176 | |
| 177 | variable {S : Type*} [CommSemiring S] [Algebra S ℂ] |
| 178 | {G : Type*} [Group G] {χ ψ f : G → ℂ} |
| 179 | |
| 180 | /-! ### The algebra spanned by the characters -/ |
| 181 | |
| 182 | /-- The product of two characters is a character, that of the tensor product. -/ |
| 183 | lemma IsChar.mul (hχ : IsChar χ) (hψ : IsChar ψ) : IsChar (χ * ψ) := by |
| 184 | obtain ⟨V, rfl⟩ := hχ |
| 185 | obtain ⟨W, rfl⟩ := hψ |
| 186 | exact ⟨CategoryTheory.MonoidalCategory.tensorObj V W, FDRep.char_tensor V W⟩ |
| 187 | |
| 188 | lemma isChar_monoidHom (l : G →* ℂ) : IsChar l := |
| 189 | -- the one-dimensional representation in which `g` acts as multiplication by `l g` |
| 190 | ⟨.of (.comp MonoidHom.smulOneHom l), funext fun g ↦ Algebra.trace_self_apply (l g)⟩ |
| 191 | |
| 192 | variable (S G) in |
| 193 | /-- For a group G and a commutative semiring S with ℂ an S-algebra, the S-subalgebra of functions |
| 194 | G → ℂ spanned over S by the characters of G. -/ |
| 195 | def virtualChars : Subalgebra S (G → ℂ) := |
| 196 | (span S {f : G → ℂ | IsChar f}).toSubalgebra |
| 197 | -- the constant `1` is the trivial character |
| 198 | (subset_span (isChar_monoidHom 1)) |
| 199 | -- a product of characters is a character, and multiplication is bilinear |
| 200 | (BilinMap.apply_apply_mem_of_mem_span (span S {f : G → ℂ | IsChar f}) {f : G → ℂ | IsChar f} |
| 201 | {f : G → ℂ | IsChar f} (LinearMap.mul S (G → ℂ)) fun _ hχ _ hψ ↦ subset_span (hχ.mul hψ)) |
| 202 | |
| 203 | /-- The zero function is a character, that of the zero representation. -/ |
| 204 | lemma isChar_zero : IsChar (0 : G → ℂ) := |
| 205 | ⟨.of (Representation.trivial ℂ G PUnit), funext fun _ ↦ (trace ℂ PUnit).map_zero⟩ |
| 206 | |
| 207 | /-- The sum of two characters is a character, that of the direct sum. -/ |
| 208 | lemma IsChar.add (hχ : IsChar χ) (hψ : IsChar ψ) : IsChar (χ + ψ) := by |
| 209 | obtain ⟨V, rfl⟩ := hχ |
| 210 | obtain ⟨W, rfl⟩ := hψ |
| 211 | exact ⟨.of (.prod V.ρ W.ρ), funext fun g ↦ trace_prodMap' (V.ρ g) (W.ρ g)⟩ |
| 212 | |
| 213 | lemma isChar_of_mem_virtualChars (hf : f ∈ virtualChars ℕ G) : IsChar f := by |
| 214 | -- The characters form an additive submonoid, which is therefore its own `ℕ`-span. |
| 215 | let M : AddSubmonoid (G → ℂ) := ⟨⟨{χ : G → ℂ | IsChar χ}, IsChar.add⟩, isChar_zero⟩ |
| 216 | have h_span : f ∈ (span ℕ (M : Set (G → ℂ))).toAddSubmonoid := hf |
| 217 | rwa [span_nat_eq] at h_span |
| 218 | |
| 219 | /-! ### Properties of a character -/ |
| 220 | |
| 221 | lemma IsChar.comp (hχ : IsChar χ) {H : Type*} [Group H] (p : H →* G) : IsChar (χ ∘ p) := by |
| 222 | obtain ⟨V, rfl⟩ := hχ |
| 223 | exact ⟨.of (V.ρ.comp p), rfl⟩ |
| 224 | |
| 225 | lemma IsChar.mem_virtualChars (hχ : IsChar χ) : χ ∈ virtualChars S G := subset_span hχ |
| 226 | |
| 227 | lemma IsChar.isClassFunction (hχ : IsChar χ) : IsClassFunction χ := by |
| 228 | obtain ⟨V, rfl⟩ := hχ |
| 229 | exact V.char_conj |
| 230 | |
| 231 | lemma IsIrreducibleChar.isChar (hχ : IsIrreducibleChar χ) : IsChar χ := |
| 232 | hχ.imp fun _ h ↦ h.2 |
| 233 | |
| 234 | /-- The value of an irreducible character at the identity has positive real part. -/ |
| 235 | lemma IsIrreducibleChar.re_apply_one_pos (hχ : IsIrreducibleChar χ) : 0 < (χ 1).re := by |
| 236 | obtain ⟨V, hV, rfl⟩ := hχ |
| 237 | have : Nontrivial V := (FDRep.isIrreducible_of_simple V).nontrivial |
| 238 | simpa [FDRep.char_one] using (Module.finrank_pos (R := ℂ) (M := V)) |
| 239 | |
| 240 | variable [Finite G] |
| 241 | |
| 242 | lemma IsChar.apply_inv (hχ : IsChar χ) (g : G) : χ g⁻¹ = conj (χ g) := by |
| 243 | obtain ⟨V, rfl⟩ := hχ |
| 244 | exact (V.conj_char g).symm |
| 245 | |
| 246 | /-- The values of a character of a finite group are algebraic integers. -/ |
| 247 | lemma IsChar.isIntegral (hχ : IsChar χ) (g : G) : IsIntegral ℤ (χ g) := by |
| 248 | obtain ⟨V, rfl⟩ := hχ |
| 249 | exact V.isIntegral_character g |
| 250 | |
| 251 | /-- The norm of a character of a finite group is largest at the identity. -/ |
| 252 | lemma IsChar.norm_apply_le (hχ : IsChar χ) (g : G) : ‖χ g‖ ≤ ‖χ 1‖ := by |
| 253 | obtain ⟨V, rfl⟩ := hχ |
| 254 | simpa [FDRep.char_one] using V.norm_char_le_finrank g |
| 255 | |
| 256 | /-- The complex conjugate of a character is a character, that of the dual representation. -/ |
| 257 | lemma IsChar.star (hχ : IsChar χ) : IsChar fun g : G ↦ conj (χ g) := by |
| 258 | simp only [← hχ.apply_inv] |
| 259 | obtain ⟨V, rfl⟩ := hχ |
| 260 | exact ⟨.of (.dual V.ρ), funext fun g ↦ by simp⟩ |
| 261 | |
| 262 | /-- The inner product `classInner χ f` (the average of `conj (χ g) * f g`) of a character `χ` with |
| 263 | an `S`-linear combination `f` of characters lies in the image of `S` in `ℂ`. -/ |
| 264 | lemma IsChar.exists_classInner_eq (hχ : IsChar χ) (hf : f ∈ virtualChars S G) : |
| 265 | ∃ m : S, classInner χ f = algebraMap S ℂ m := by |
| 266 | -- Write `f = ∑ j, a j • ψ j` with characters `ψ j`. Each pairing is the dimension of the |
| 267 | -- space of equivariant maps from the representation for `χ` to the one for `ψ j`. |
| 268 | obtain ⟨n, a, ψ, rfl⟩ := mem_span_set'.1 hf |
| 269 | choose m hm using fun j : Fin n ↦ |
| 270 | show ∃ m : ℕ, classInner χ (ψ j) = m from by |
| 271 | obtain ⟨V, rfl⟩ := hχ |
| 272 | obtain ⟨W, hW⟩ := (ψ j).property |
| 273 | rw [← hW] |
| 274 | exact ⟨_, by simpa [classInner, finMean_eq, div_eq_inv_mul, V.conj_char, mul_comm] using |
| 275 | V.scalar_product_char_eq_finrank_equivariant W⟩ |
| 276 | use ∑ j : Fin n, a j * m j |
| 277 | calc classInner χ (∑ j : Fin n, a j • (ψ j : G → ℂ)) |
| 278 | = ∑ j : Fin n, algebraMap S ℂ (a j) * classInner χ (ψ j) := by |
| 279 | simp [classInner, mul_sum, finMean_sum, Algebra.smul_def, mul_left_comm] |
| 280 | _ = algebraMap S ℂ (∑ j : Fin n, a j * m j) := by simp [hm] |
| 281 | |
| 282 | omit [Finite G] in |
| 283 | /-- The pull-back along a homomorphism from a finite group of an `S`-linear combination of |
| 284 | characters is an `S`-linear combination of characters. -/ |
| 285 | lemma comp_mem_virtualChars (hf : f ∈ virtualChars S G) {H : Type*} [Group H] |
| 286 | (p : H →* G) : f ∘ p ∈ virtualChars S H := |
| 287 | -- precomposition with `p` is linear and maps characters to characters |
| 288 | mapsTo_span (f := funLeft S ℂ p) (s := {χ | IsChar χ}) (fun _ hχ ↦ IsChar.comp hχ p) hf |
| 289 | |
| 290 | omit [Finite G] in |
| 291 | lemma isClassFunction_of_mem_virtualChars (hf : f ∈ virtualChars S G) : IsClassFunction f := by |
| 292 | induction hf using span_induction with |
| 293 | | mem χ hχ => exact IsChar.isClassFunction hχ |
| 294 | | zero => simp |
| 295 | | add χ ψ _ _ hχ hψ => exact fun g x ↦ by simp [hχ g x, hψ g x] |
| 296 | | smul a χ _ hχ => exact fun g x ↦ by simp [hχ g x] |
| 297 | |
| 298 | end VirtualCharacters |
| 299 | |
| 300 | /-! |
| 301 | ## Central projections of group algebras and their tensor products |
| 302 | |
| 303 | * `New.piTensorElem`: the tensor product ⊗ x_i in ℂ[∏ G_i] of elements x_i of ℂ[G_i], for a finite |
| 304 | index type ι. If every x_i is a central idempotent, so is ⊗ x_i |
| 305 | (`New.IsCentralProj.piTensorElem`). |
| 306 | * `New.piTensorElem_apply_eq_zero`, `New.piTensorElem_mul_eq_zero`: a tensor product kills a vector, |
| 307 | or another tensor product, as soon as one factor does. |
| 308 | -/ |
| 309 | |
| 310 | section CentralProjections |
| 311 | |
| 312 | open MonoidAlgebra Finset Finsupp Representation Function |
| 313 | |
| 314 | attribute [local instance low] Fintype.ofFinite |
| 315 | |
| 316 | variable {ι : Type _} [Fintype ι] [DecidableEq ι] |
| 317 | {G : ι → Type _} [∀ i : ι, Group (G i)] [∀ i : ι, Finite (G i)] {H : Type*} [Group H] |
| 318 | {x : ∀ i : ι, ℂ[G i]} {V : Type*} [AddCommGroup V] [Module ℂ V] |
| 319 | (σ : Representation ℂ H V) {e : ℂ[H]} {ρ : Representation ℂ (∀ i : ι, G i) V} |
| 320 | |
| 321 | /-- A class function takes the same value on the products `a * b` and `b * a`. -/ |
| 322 | lemma IsClassFunction.apply_mul_comm {f : H → ℂ} (hf : IsClassFunction f) (a b : H) : |
| 323 | f (a * b) = f (b * a) := by |
| 324 | simpa [mul_assoc] using hf (b * a) a |
| 325 | |
| 326 | lemma IsClassFunction.commute (he : IsClassFunction e.coeff) (x : ℂ[H]) : Commute x e := by |
| 327 | ext g |
| 328 | simp only [coeff_mul_apply_left x e, coeff_mul_apply_right e x, he.apply_mul_comm g, mul_comm] |
| 329 | |
| 330 | /-- `e` is a central idempotent of the complex group algebra `ℂ[H]` of a group `H`: it is |
| 331 | idempotent and its coefficients form a class function. -/ |
| 332 | def IsCentralProj (e : ℂ[H]) : Prop := IsIdempotentElem e ∧ IsClassFunction e.coeff |
| 333 | |
| 334 | lemma IsCentralProj.isIdempotentElem (h : IsCentralProj e) : IsIdempotentElem e := h.left |
| 335 | |
| 336 | lemma IsCentralProj.isClassFunction (h : IsCentralProj e) : IsClassFunction e.coeff := h.right |
| 337 | |
| 338 | open scoped Classical in |
| 339 | /-- The multiplicative map sending a family `x i ∈ ℂ[G i]` to its tensor product in the group |
| 340 | algebra of the product of the `G i`: the coefficient at `s` is the product over `i` of the |
| 341 | coefficients of `x i` at `s i`. -/ |
| 342 | @[simps!] |
| 343 | noncomputable def piTensorElem : (∀ i : ι, ℂ[G i]) →* ℂ[∀ i : ι, G i] where |
| 344 | toFun x := groupAlgElem fun s : ∀ i : ι, G i ↦ ∏ i : ι, (x i).coeff (s i) |
| 345 | map_one' := by aesop (add simp [one_def, single_apply, prod_boole]) |
| 346 | map_mul' := by |
| 347 | -- the convolution at `s` factors over `ι`, as a product of sums is a sum over families |
| 348 | aesop (add simp [coeff_mul_apply_left, sum_fintype, prod_univ_sum, prod_mul_distrib]) |
| 349 | |
| 350 | /-- The tensor `1 ⊗ ⋯ ⊗ x ⊗ ⋯ ⊗ 1`, with `x` in place `i`, acts in a representation `ρ` of the |
| 351 | product of the groups `G j` as `x` does in the restriction of `ρ` to the factor `G i`. -/ |
| 352 | lemma asAlgebraHom_piTensorElem_mulSingle (i : ι) (x : ℂ[G i]) : |
| 353 | ρ.asAlgebraHom (piTensorElem (Pi.mulSingle i x)) = |
| 354 | asAlgebraHom (ρ.comp (MonoidHom.mulSingle G i)) x := by |
| 355 | classical |
| 356 | -- Both sides are sums over a group; compare them along the inclusion of `G i` in the product. |
| 357 | -- Every factor other than the one at `i` is a coefficient of `1`, so it is `1` or `0`. |
| 358 | have h_coeff (s : ∀ j : ι, G j) : (piTensorElem (Pi.mulSingle i x)).coeff s = |
| 359 | x.coeff (s i) * if ∀ j : ι, j ≠ i → s j = 1 then 1 else 0 := by |
| 360 | simp +contextual [prod_congr rfl, Fintype.prod_eq_mul_prod_compl i, Pi.mulSingle, one_def, |
| 361 | single_apply, prod_boole, eq_comm] |
| 362 | rw [asAlgebraHom_eq_sum, asAlgebraHom_eq_sum, |
| 363 | Fintype.sum_of_injective _ (Pi.mulSingle_injective i)] |
| 364 | · -- an element outside the image is nontrivial at some index other than `i` |
| 365 | intro s hs |
| 366 | have h_ne : ¬ ∀ j : ι, j ≠ i → s j = 1 := fun h_one ↦ |
| 367 | hs ⟨s i, update_eq_iff.2 ⟨rfl, fun j hj ↦ (h_one j hj).symm⟩⟩ |
| 368 | simp [h_coeff, h_ne] |
| 369 | · simp +contextual [h_coeff] |
| 370 | |
| 371 | /-- If the factor `x i` kills the vector `v` in the restriction of `ρ` to `G i`, then the tensor |
| 372 | product of the `x j` kills `v` in `ρ`. -/ |
| 373 | lemma piTensorElem_apply_eq_zero {v : V} (i : ι) |
| 374 | (hv : asAlgebraHom (ρ.comp (MonoidHom.mulSingle G i)) (x i) v = 0) : |
| 375 | ρ.asAlgebraHom (piTensorElem x) v = 0 := by |
| 376 | -- split off the i-th component of x, which acts first and kills v |
| 377 | have h_split : x = update x i 1 * Pi.mulSingle i (x i) := by |
| 378 | rw [Pi.mulSingle, ← update_mul, one_mul, mul_one, update_eq_self] |
| 379 | rw [h_split] |
| 380 | simp [asAlgebraHom_piTensorElem_mulSingle, hv] |
| 381 | |
| 382 | /-- Two tensor products multiply to zero as soon as their factors in one place `i` do. -/ |
| 383 | lemma piTensorElem_mul_eq_zero {y : (i : ι) → ℂ[G i]} (i : ι) (h_mul : x i * y i = 0) : |
| 384 | piTensorElem x * piTensorElem y = 0 := by |
| 385 | ext s |
| 386 | simpa [← map_mul] using |
| 387 | prod_eq_zero (f := fun j ↦ (x j * y j).coeff (s j)) (mem_univ i) (by simp [h_mul]) |
| 388 | |
| 389 | namespace IsCentralProj |
| 390 | |
| 391 | open scoped Classical in |
| 392 | lemma one_sub (h : IsCentralProj e) : IsCentralProj (1 - e) := |
| 393 | ⟨h.isIdempotentElem.one_sub, fun g x ↦ by |
| 394 | simp [h.isClassFunction g x, eq_comm, one_def, single_apply]⟩ |
| 395 | |
| 396 | /-- Applying a ring endomorphism `σ` of `ℂ` to the coefficients of a central idempotent `e` of |
| 397 | `ℂ[H]` (`H` any group) gives a central idempotent. -/ |
| 398 | lemma map (h : IsCentralProj e) (σ : ℂ →+* ℂ) : IsCentralProj (mapRingHom H σ e) := |
| 399 | ⟨h.isIdempotentElem.map (mapRingHom H σ), fun g x ↦ by simp [h.isClassFunction g x]⟩ |
| 400 | |
| 401 | lemma piTensorElem (h : ∀ i : ι, IsCentralProj (x i)) : IsCentralProj (New.piTensorElem x) := by |
| 402 | have h_idem : IsIdempotentElem x := funext fun i ↦ (h i).isIdempotentElem |
| 403 | exact ⟨h_idem.map New.piTensorElem, fun g s ↦ by simp [(h _).isClassFunction _ _]⟩ |
| 404 | |
| 405 | end IsCentralProj |
| 406 | |
| 407 | end CentralProjections |
| 408 | |
| 409 | /-! |
| 410 | ## Irreducibility criteria and expansion of class functions |
| 411 | |
| 412 | * `New.classInner_eq_sum_of_eq_sum`: Parseval's identity for the expansion of a class function. |
| 413 | * `New.IsChar.asAlgebraHom_groupAlgElem_eq_zero_iff`: `∑ g, conj (χ g) • g` acts as zero in `ρ` iff |
| 414 | `χ` is orthogonal to the character of `ρ`. `New.IsChar.asAlgebraHom_groupAlgElem_eq_zero` is a |
| 415 | sufficient condition for `∑ g, χ (i g * s) • g` to act as zero, `i` a group homomorphism. |
| 416 | -/ |
| 417 | |
| 418 | section IrreducibleCharacters |
| 419 | |
| 420 | open MonoidAlgebra Finset LinearMap ComplexConjugate Matrix Algebra Representation |
| 421 | |
| 422 | attribute [local instance low] Fintype.ofFinite |
| 423 | |
| 424 | variable {G H V : Type*} [Group G] [Finite G] [Group H] {χ f : G → ℂ} |
| 425 | [AddCommGroup V] [Module ℂ V] {ρ : Representation ℂ G V} |
| 426 | (Z : Type*) [CommSemiring Z] [Algebra Z ℂ] |
| 427 | |
| 428 | omit [Group G] in |
| 429 | /-- Parseval's identity: if `φ = ∑ i, ⟨χ i, φ⟩ • χ i` for the inner product `New.classInner`, then |
| 430 | `⟨φ, f⟩ = ∑ i, conj ⟨χ i, φ⟩ * ⟨χ i, f⟩`. -/ |
| 431 | lemma classInner_eq_sum_of_eq_sum {ι : Type*} [Fintype ι] {χ : ι → G → ℂ} {φ : G → ℂ} |
| 432 | (hφ : φ = ∑ i : ι, classInner (χ i) φ • χ i) (f : G → ℂ) : |
| 433 | classInner φ f = ∑ i : ι, conj (classInner (χ i) φ) * classInner (χ i) f := by |
| 434 | conv_lhs => rw [hφ, classInner] |
| 435 | simp [sum_mul, finMean_sum, mul_assoc, finMean_const_mul, ← classInner.eq_1] |
| 436 | |
| 437 | /-- Suppose `f = ∑ j, ⟨χ j, f⟩ • χ j` has norm `⟨f, f⟩ = 1` and `0 ≤ re (f 1)`. If the coefficient |
| 438 | `⟨χ i, f⟩` is a nonzero integer and `0 < re (χ i 1)`, then `f = χ i`. -/ |
| 439 | lemma eq_of_eq_sum_of_classInner_eq_intCast {ι : Type*} [Fintype ι] {χ : ι → G → ℂ} {i : ι} |
| 440 | {m : ℤ} (hf : f = ∑ j : ι, classInner (χ j) f • χ j) (h_norm : classInner f f = 1) |
| 441 | (hf_one : 0 ≤ (f 1).re) (hχ_one : 0 < (χ i 1).re) (hm : classInner (χ i) f = m) |
| 442 | (hm_ne : m ≠ 0) : f = χ i := by |
| 443 | -- The squared norms of the coefficients add up to `1`, so all others vanish and `m = ±1`. |
| 444 | have hm_sq : (1 : ℝ) ≤ ‖classInner (χ i) f‖ ^ 2 := by |
| 445 | simpa [hm] using mod_cast Int.one_le_abs hm_ne |
| 446 | have h_sum : ∑ j : ι, ‖classInner (χ j) f‖ ^ 2 = 1 := by |
| 447 | apply Complex.ofReal_injective |
| 448 | simpa [classInner_eq_sum_of_eq_sum hf f, Complex.conj_mul'] using h_norm |
| 449 | have h_other (j : ι) (hj : j ≠ i) : classInner (χ j) f = 0 := by |
| 450 | by_contra h_ne |
| 451 | have h_lt : ‖classInner (χ i) f‖ ^ 2 < ∑ k : ι, ‖classInner (χ k) f‖ ^ 2 := |
| 452 | single_lt_sum (f := fun k ↦ ‖classInner (χ k) f‖ ^ 2) hj (mem_univ i) (mem_univ j) |
| 453 | (by positivity) (by simp) |
| 454 | linarith |
| 455 | have hf_eq : f = (m : ℂ) • χ i := by |
| 456 | simpa +contextual [sum_eq_single i, h_other, hm] using hf |
| 457 | obtain rfl | hm_neg : m = 1 ∨ (m : ℝ) = -1 := by |
| 458 | simpa +contextual [sum_eq_single i, h_other, hm] using h_sum |
| 459 | · simpa using hf_eq |
| 460 | · have h_re : (f 1).re = -(χ i 1).re := by simp [hf_eq, hm_neg] |
| 461 | linarith |
| 462 | |
| 463 | /-- An irreducible character has norm `1` (Mathlib's `FDRep.char_orthonormal`). -/ |
| 464 | lemma IsIrreducibleChar.classInner_self (hχ : IsIrreducibleChar χ) : classInner χ χ = 1 := by |
| 465 | obtain ⟨V, hV, rfl⟩ := hχ |
| 466 | have h := FDRep.char_orthonormal V V |
| 467 | simp only [Nonempty.intro (CategoryTheory.Iso.refl V), ite_true] at h |
| 468 | rw [← h, classInner, finMean_eq, Nat.card_eq_fintype_card, div_eq_inv_mul] |
| 469 | exact congrArg _ (Finset.sum_congr rfl fun g _ ↦ by rw [← V.conj_char, mul_comm]) |
| 470 | |
| 471 | /-- For a finite group `G`, a simple finite-dimensional complex representation `W` of `G`, and |
| 472 | a class function `φ : G → ℂ` (`IsClassFunction φ`), there is a scalar `c : ℂ` such that |
| 473 | `∑ x : G, conj (W.character x) * φ (x * y) = c * W.character y` for every `y : G`. -/ |
| 474 | private lemma exists_sum_conj_character_mul_eq_mul (W : FDRep ℂ G) |
| 475 | [CategoryTheory.Simple W] {φ : G → ℂ} (hφ : IsClassFunction φ) : |
| 476 | ∃ c : ℂ, ∀ y : G, ∑ x : G, conj (W.character x) * φ (x * y) = c * W.character y := by |
| 477 | classical |
| 478 | have := FDRep.isIrreducible_of_simple W |
| 479 | have hφ_inv : IsClassFunction (fun t : G ↦ φ t⁻¹) := fun g x ↦ by |
| 480 | simpa [mul_assoc] using hφ g⁻¹ x |
| 481 | let z : Subalgebra.center ℂ ℂ[G] := |
| 482 | ⟨groupAlgElem fun t ↦ φ t⁻¹, Subalgebra.mem_center_iff.2 hφ_inv.commute⟩ |
| 483 | refine ⟨TauCeti.Representation.centralCharacter W.ρ z, fun y ↦ ?_⟩ |
| 484 | calc ∑ x : G, conj (W.character x) * φ (x * y) |
| 485 | = LinearMap.trace ℂ _ (asAlgebraHom W.ρ (z.val * single y 1)) := by |
| 486 | rw [asAlgebraHom_eq_sum, map_sum] |
| 487 | refine Fintype.sum_equiv (Equiv.inv G) _ _ fun x ↦ ?_ |
| 488 | have h_swap : φ (y * x) = φ (x * y) := hφ.apply_mul_comm y x |
| 489 | rw [W.conj_char] |
| 490 | simp [z, h_swap, FDRep.character, mul_comm] |
| 491 | _ = TauCeti.Representation.centralCharacter W.ρ z * W.character y := by |
| 492 | rw [map_mul, TauCeti.Representation.asAlgebraHom_center] |
| 493 | simp [FDRep.character, Module.End.mul_eq_comp] |
| 494 | |
| 495 | /-- A class function `φ` acts by a scalar in an irreducible representation; on characters this |
| 496 | reads `χ 1 * mean (conj χ · φ (· * y)) = ⟨χ, φ⟩ * χ y`. -/ |
| 497 | lemma IsIrreducibleChar.mul_classInner_translate (hχ : IsIrreducibleChar χ) {φ : G → ℂ} |
| 498 | (hφ : IsClassFunction φ) (y : G) : |
| 499 | χ 1 * finMean (fun t ↦ conj (χ t) * φ (t * y)) = classInner χ φ * χ y := by |
| 500 | classical |
| 501 | obtain ⟨V, hV, rfl⟩ := hχ |
| 502 | obtain ⟨c, h_translate⟩ : ∃ c : ℂ, ∀ y : G, |
| 503 | ∑ x : G, conj (V.character x) * φ (x * y) = c * V.character y := |
| 504 | exists_sum_conj_character_mul_eq_mul V hφ |
| 505 | have h_one := h_translate 1 |
| 506 | simp only [mul_one] at h_one |
| 507 | rw [classInner, finMean_eq, finMean_eq, h_translate y, h_one] |
| 508 | ring |
| 509 | |
| 510 | /-- A finite family `χ i` of irreducible characters of a finite group `G` in which every class |
| 511 | function expands. The brackets `⟨ , ⟩` denote the inner product `New.classInner`. -/ |
| 512 | structure IsExpansionFamily {ι : Type*} [Fintype ι] (χ : ι → G → ℂ) : Prop where |
| 513 | /-- Each `χ i` is an irreducible character. -/ |
| 514 | isIrreducibleChar (i : ι) : IsIrreducibleChar (χ i) |
| 515 | /-- A class function `φ` is the sum of the `⟨χ i, φ⟩ • χ i`. -/ |
| 516 | eq_sum {φ : G → ℂ} (hφ : IsClassFunction φ) : φ = ∑ i : ι, classInner (χ i) φ • χ i |
| 517 | |
| 518 | variable (G) in |
| 519 | /-- A finite group has a finite family of characters in which every class function expands. -/ |
| 520 | lemma exists_isExpansionFamily : ∃ (n : ℕ) (χ : Fin n → G → ℂ), IsExpansionFamily χ := by |
| 521 | classical |
| 522 | obtain ⟨d, ρ, hirr, hind, -⟩ := TauCeti.exists_irreducible_family_conjClasses ℂ G |
| 523 | have := hirr |
| 524 | let e : ConjClasses G ≃ Fin (Fintype.card (ConjClasses G)) := Fintype.equivFin (ConjClasses G) |
| 525 | let χ : Fin (Fintype.card (ConjClasses G)) → G → ℂ := fun i ↦ (ρ (e.symm i)).character |
| 526 | refine ⟨Fintype.card (ConjClasses G), χ, |
| 527 | fun i ↦ ⟨.of (ρ (e.symm i)), (FDRep.simple_iff_isIrreducible _).2 (hirr _), rfl⟩, |
| 528 | fun {φ} hφ ↦ funext fun g ↦ ?_⟩ |
| 529 | let Φ : TauCeti.ClassFunction ℂ G := ⟨φ, TauCeti.ClassFunction.mem_iff.2 hφ⟩ |
| 530 | have h_pair (i : Fin (Fintype.card (ConjClasses G))) : |
| 531 | TauCeti.ClassFunction.characterPairing |
| 532 | (TauCeti.ClassFunction.ofCharacter (ρ (e.symm i))) Φ = |
| 533 | classInner (χ i) φ := by |
| 534 | rw [TauCeti.ClassFunction.characterPairing_apply, classInner, finMean, |
| 535 | finsum_eq_sum_of_fintype, div_eq_inv_mul] |
| 536 | congr 1 |
| 537 | refine Fintype.sum_equiv (Equiv.inv G) _ _ fun x ↦ ?_ |
| 538 | simp [Φ, χ] |
| 539 | have hexp := TauCeti.ClassFunction.apply_eq_sum_characterPairing_mul_character ρ hind rfl Φ g |
| 540 | have hsum : ∑ i, classInner (χ i) φ * χ i g = |
| 541 | ∑ C, TauCeti.ClassFunction.characterPairing (TauCeti.ClassFunction.ofCharacter (ρ C)) Φ * |
| 542 | (ρ C).character g := |
| 543 | Fintype.sum_equiv e.symm _ _ fun i ↦ by simp [h_pair i, χ] |
| 544 | simpa [Φ, Finset.sum_apply] using hexp.trans hsum.symm |
| 545 | |
| 546 | /-- Let `f` and `I` be class functions on a finite group `G` with `⟨I, f⟩ ≠ 0`, `⟨f, f⟩ = 1` and |
| 547 | `0 ≤ re (f 1)`, where `⟨ , ⟩` is the inner product `New.classInner`. Suppose `⟨χ, f⟩` is an integer |
| 548 | for every character `χ` with `⟨χ, I⟩ ≠ 0` and `χ 1 * ⟨χ, I (· * y)⟩ = ⟨χ, I⟩ * χ y` for all `y`. |
| 549 | Then `f` is an irreducible character. -/ |
| 550 | lemma IsClassFunction.isIrreducibleChar_of_classInner_eq_intCast {I : G → ℂ} |
| 551 | (hf : IsClassFunction f) (hI : IsClassFunction I) (h_inner_ne : classInner I f ≠ 0) |
| 552 | (h_norm : classInner f f = 1) (h_re : 0 ≤ (f 1).re) |
| 553 | (h_int : ∀ χ : G → ℂ, IsChar χ → classInner χ I ≠ 0 → |
| 554 | (∀ y : G, χ 1 * classInner χ (fun x : G ↦ I (x * y)) = classInner χ I * χ y) → |
| 555 | ∃ m : ℤ, classInner χ f = m) : |
| 556 | IsIrreducibleChar f := by |
| 557 | -- Expand in irreducible characters `χ i`. Some `χ i` is orthogonal to neither `I` nor `f`; its |
| 558 | -- coefficient in `f` is a nonzero integer `m`, which forces `f = χ i`. |
| 559 | obtain ⟨n, χ, hχ⟩ := exists_isExpansionFamily G |
| 560 | rw [classInner_eq_sum_of_eq_sum (hχ.eq_sum hI)] at h_inner_ne |
| 561 | obtain ⟨i, -, hi⟩ := exists_ne_zero_of_sum_ne_zero h_inner_ne |
| 562 | obtain ⟨hI_ne, hf_ne⟩ : classInner (χ i) I ≠ 0 ∧ classInner (χ i) f ≠ 0 := by simpa using hi |
| 563 | have hχ_irr := hχ.isIrreducibleChar i |
| 564 | obtain ⟨m, hm⟩ := h_int (χ i) hχ_irr.isChar hI_ne (hχ_irr.mul_classInner_translate hI) |
| 565 | obtain rfl : f = χ i := eq_of_eq_sum_of_classInner_eq_intCast (hχ.eq_sum hf) h_norm h_re |
| 566 | hχ_irr.re_apply_one_pos hm (by simpa [hm] using hf_ne) |
| 567 | exact hχ_irr |
| 568 | |
| 569 | variable {Z} in |
| 570 | /-- Let `f` be a class function on a finite group `G`. If the inner product of every character with |
| 571 | `f` comes from the semiring `Z`, then `f` is a `Z`-combination of characters. -/ |
| 572 | lemma IsClassFunction.mem_virtualChars (hf : IsClassFunction f) |
| 573 | (h_coeff : ∀ χ : G → ℂ, IsChar χ → ∃ m : Z, classInner χ f = algebraMap Z ℂ m) : |
| 574 | f ∈ virtualChars Z G := by |
| 575 | -- Every coefficient of the expansion of `f` in characters comes from `Z`. |
| 576 | obtain ⟨n, χ, hχ⟩ := exists_isExpansionFamily G |
| 577 | rw [hχ.eq_sum hf] |
| 578 | refine sum_mem fun i _ ↦ ?_ |
| 579 | have hχ_char := (hχ.isIrreducibleChar i).isChar |
| 580 | obtain ⟨m, hm⟩ := h_coeff (χ i) hχ_char |
| 581 | simpa [hm] using Subalgebra.smul_mem _ hχ_char.mem_virtualChars m |
| 582 | |
| 583 | /-- Let `f` be a class function on a finite group `G`. Suppose `a ∈ ℂ[G]` acts as zero in every |
| 584 | finite-dimensional representation in which `New.groupAlgElem f = ∑ g, f g • g` acts as zero. Then |
| 585 | `a = u * New.groupAlgElem f * a` for some `u ∈ ℂ[G]`. -/ |
| 586 | lemma IsClassFunction.exists_eq_mul_groupAlgElem_mul (hf : IsClassFunction f) (a : ℂ[G]) |
| 587 | (ha : ∀ V : FDRep ℂ G, asAlgebraHom V.ρ (groupAlgElem f) = 0 → asAlgebraHom V.ρ a = 0) : |
| 588 | ∃ u : ℂ[G], a = u * groupAlgElem f * a := by |
| 589 | -- Wedderburn: `e` identifies `ℂ[G]` with a product of matrix algebras, and the `i`-th block of |
| 590 | -- `groupAlgElem f` is a scalar `c i`. Take for `u` the blockwise scalar `(c i)⁻¹`. |
| 591 | obtain ⟨n, d, hd, ⟨e⟩⟩ := IsSemisimpleRing.exists_algEquiv_pi_matrix_of_isAlgClosed ℂ ℂ[G] |
| 592 | have := hd |
| 593 | have (i : Fin n) := TauCeti.isIrreducible_blockRepresentation e i |
| 594 | let z : Subalgebra.center ℂ ℂ[G] := ⟨groupAlgElem f, Subalgebra.mem_center_iff.2 hf.commute⟩ |
| 595 | let c : Fin n → ℂ := fun i ↦ |
| 596 | TauCeti.Representation.centralCharacter (TauCeti.blockRepresentation e i) z |
| 597 | have hc (i : Fin n) : e (groupAlgElem f) i = algebraMap ℂ _ (c i) := by |
| 598 | have h := TauCeti.Representation.asAlgebraHom_center (TauCeti.blockRepresentation e i) z |
| 599 | simpa [z, c, TauCeti.asAlgebraHom_blockRepresentation, TauCeti.blockAlgHom_apply, |
| 600 | algebraMap_eq_smul_one] using congrArg Matrix.toLinAlgEquiv'.symm h |
| 601 | refine ⟨e.symm (c⁻¹ • 1), e.injective (funext fun i ↦ ?_)⟩ |
| 602 | by_cases hi : c i = 0 |
| 603 | · -- `groupAlgElem f` acts as zero on the `i`-th block, so `a` does too |
| 604 | have ha_zero : e a i = 0 := by |
| 605 | have h := ha (.of (TauCeti.blockRepresentation e i)) (by |
| 606 | simp [TauCeti.asAlgebraHom_blockRepresentation, TauCeti.blockAlgHom_apply, hc, hi]) |
| 607 | simpa [TauCeti.asAlgebraHom_blockRepresentation, TauCeti.blockAlgHom_apply] using |
| 608 | congrArg Matrix.toLinAlgEquiv'.symm h |
| 609 | simp [ha_zero] |
| 610 | · simp [hc, hi, algebraMap_eq_smul_one] |
| 611 | |
| 612 | /-- The trace of the group algebra element with coefficients `conj (χ g)`, divided by the order |
| 613 | of the group, is the inner product of `χ` with the character of the representation. -/ |
| 614 | lemma trace_asAlgebraHom_groupAlgElem_conj (χ : G → ℂ) : |
| 615 | trace ℂ V (ρ.asAlgebraHom (groupAlgElem (conj ∘ χ))) / Nat.card G = |
| 616 | classInner χ ρ.character := by |
| 617 | simp [asAlgebraHom_eq_sum, classInner, finMean, finsum_eq_sum_of_fintype, character] |
| 618 | |
| 619 | variable [Module.Finite ℂ V] |
| 620 | |
| 621 | /-- Let `i : G →* H` be a group homomorphism with `G` finite, `χ` a character of `H` and `s ∈ H`. |
| 622 | If the product of `χ ∘ i` with the character of a finite-dimensional representation `ρ` of `G` has |
| 623 | average zero, then `∑ g, χ (i g * s) • g` acts as zero in `ρ`. -/ |
| 624 | lemma IsChar.asAlgebraHom_groupAlgElem_eq_zero {χ : H → ℂ} (hχ : IsChar χ) (i : G →* H) (s : H) |
| 625 | (h_mean : finMean (χ ∘ i * ρ.character) = 0) : |
| 626 | ρ.asAlgebraHom (groupAlgElem fun x : G ↦ χ (i x * s)) = 0 := by |
| 627 | -- Let `τ` have character `χ`. The averaging projection of `(τ ∘ i) ⊗ ρ` has trace `0` by |
| 628 | -- `h_mean`, so it vanishes. |
| 629 | obtain ⟨τ, rfl⟩ := hχ |
| 630 | have h_trace : trace ℂ (TensorProduct ℂ τ V) (tprod (τ.ρ.comp i) ρ).averageMap = 0 := by |
| 631 | simpa [GroupAlgebra.average, trace_tensorProduct', FDRep.character, character, finMean, |
| 632 | finsum_eq_sum_of_fintype, -asAlgebraHom_sum_single_one] using h_mean |
| 633 | have h_avg : (tprod (τ.ρ.comp i) ρ).averageMap = 0 := |
| 634 | (isProj_averageMap _).isIdempotentElem.eq_zero_of_trace_eq_zero h_trace |
| 635 | -- Read this in `End τ ⊗ End V`, then apply `T : A ⊗ B ↦ trace (A * τ s) • B`. |
| 636 | have h_tensor : ∑ u : G, τ.ρ (i u) ⊗ₜ[ℂ] ρ u = 0 := by |
| 637 | apply (homTensorHomEquiv ℂ τ V τ V).injective |
| 638 | simpa [GroupAlgebra.average, -asAlgebraHom_sum_single_one] using h_avg |
| 639 | let T : TensorProduct ℂ (τ →ₗ[ℂ] τ) (V →ₗ[ℂ] V) →ₗ[ℂ] V →ₗ[ℂ] V := |
| 640 | TensorProduct.lift (lsmul ℂ (V →ₗ[ℂ] V) ∘ₗ trace ℂ τ ∘ₗ mulRight ℂ (τ.ρ s)) |
| 641 | calc ρ.asAlgebraHom (groupAlgElem fun x : G ↦ τ.character (i x * s)) |
| 642 | = T (∑ u : G, τ.ρ (i u) ⊗ₜ[ℂ] ρ u) := by simp [T, FDRep.character, asAlgebraHom_eq_sum] |
| 643 | _ = 0 := by rw [h_tensor, map_zero] |
| 644 | |
| 645 | /-- For a character `χ` and finite-dimensional `ρ`, the element `∑ g, conj (χ g) • g` acts as zero |
| 646 | in `ρ` iff `χ` is orthogonal to the character of `ρ` for the inner product `New.classInner`. -/ |
| 647 | lemma IsChar.asAlgebraHom_groupAlgElem_eq_zero_iff (h : IsChar χ) : |
| 648 | ρ.asAlgebraHom (groupAlgElem (conj ∘ χ)) = 0 ↔ classInner χ ρ.character = 0 := by |
| 649 | refine ⟨fun h_zero ↦ ?_, fun h_zero ↦ ?_⟩ |
| 650 | · rw [← trace_asAlgebraHom_groupAlgElem_conj χ, h_zero, map_zero, zero_div] |
| 651 | · -- `IsChar.asAlgebraHom_groupAlgElem_eq_zero` for the character `conj χ`, with `i` the identity |
| 652 | -- and `s = 1` |
| 653 | simpa [asAlgebraHom_eq_sum] using h.star.asAlgebraHom_groupAlgElem_eq_zero (i := .id G) (s := 1) |
| 654 | h_zero |
| 655 | |
| 656 | end IrreducibleCharacters |
| 657 | |
| 658 | end New |
| 659 | |
| 660 | /-! ## Integrality of central projections -/ |
| 661 | |
| 662 | section ProjectionCharacter |
| 663 | |
| 664 | open MonoidAlgebra LinearMap Representation Finset |
| 665 | |
| 666 | attribute [local instance low] Fintype.ofFinite |
| 667 | |
| 668 | variable {G : Type*} [Group G] [Finite G] {e : ℂ[G]} |
| 669 | |
| 670 | /-- If `e` is a central idempotent of the complex group algebra of a finite group `G`, then |
| 671 | `g ↦ |G| · e(g)`, with `e(g)` the coefficient of `g`, is the character of a finite-dimensional |
| 672 | representation of `G`. -/ |
| 673 | lemma New.IsCentralProj.isChar_card_mul_coeff (h : IsCentralProj e) : |
| 674 | IsChar fun g : G ↦ Nat.card G * e.coeff g := by |
| 675 | -- The pairing of |G|·e with a character χ is the trace of e on a representation with character |
| 676 | -- conj χ. As e acts there by an idempotent, this trace is a natural number, the rank. |
| 677 | -- A class function whose pairing with every character is in `ℕ` is an `ℕ`-combination of |
| 678 | -- characters, hence a character. |
| 679 | refine isChar_of_mem_virtualChars <| |
| 680 | IsClassFunction.mem_virtualChars (by simp [h.isClassFunction _ _]) fun χ hχ ↦ ?_ |
| 681 | obtain ⟨ρ, hρ⟩ := hχ.star |
| 682 | refine ⟨_, by simpa [classInner, finMean, finsum_eq_sum_of_fintype, ← congrFun hρ, |
| 683 | asAlgebraHom_eq_sum, FDRep.character, sum_div, mul_rotate', eq_natCast] using |
| 684 | (h.isIdempotentElem.map (asAlgebraHom ρ.ρ)).isProj_range.trace⟩ |
| 685 | |
| 686 | /-- If `e` is a central idempotent of the complex group algebra of a finite group `G`, then |
| 687 | `g ↦ |G| · e(g)`, with `e(g)` the coefficient of `g`, is the character of a representation of `G` of |
| 688 | dimension at most `|G|`. -/ |
| 689 | lemma New.IsCentralProj.exists_character_eq_and_finrank_le_card (h : IsCentralProj e) : |
| 690 | ∃ V : FDRep ℂ G, |
| 691 | V.character = (fun g : G ↦ Nat.card G * e.coeff g) ∧ |
| 692 | Module.finrank ℂ V ≤ Nat.card G := by |
| 693 | -- As `1 - e` is again a central idempotent, it gives a second representation. The two |
| 694 | -- dimensions, the values of the characters at the identity, add up to `|G|`. |
| 695 | obtain ⟨V, hV⟩ : IsChar fun g : G ↦ Nat.card G * e.coeff g := h.isChar_card_mul_coeff |
| 696 | obtain ⟨W, hW⟩ : IsChar fun g : G ↦ Nat.card G * (1 - e).coeff g := |
| 697 | h.one_sub.isChar_card_mul_coeff |
| 698 | have h_sum : (Module.finrank ℂ V + Module.finrank ℂ W : ℂ) = Nat.card G := |
| 699 | calc |
| 700 | _ = V.character 1 + W.character 1 := by rw [FDRep.char_one, FDRep.char_one] |
| 701 | _ = Nat.card G * (e.coeff 1 + (1 - e).coeff 1) := by rw [hV, hW, mul_add] |
| 702 | _ = Nat.card G := by simp |
| 703 | exact ⟨V, hV, Nat.le.intro (mod_cast h_sum)⟩ |
| 704 | |
| 705 | /-- The coefficients of a central idempotent of `ℂ[G]` have norm at most `1`. -/ |
| 706 | lemma New.IsCentralProj.norm_coeff_le_one (h : IsCentralProj e) (g : G) : ‖e.coeff g‖ ≤ 1 := by |
| 707 | obtain ⟨V, hV, h_dim⟩ := h.exists_character_eq_and_finrank_le_card |
| 708 | refine le_of_mul_le_mul_left (a := (Nat.card G : ℝ)) ?_ (Nat.cast_pos.2 Nat.card_pos) |
| 709 | calc (Nat.card G : ℝ) * ‖e.coeff g‖ = ‖V.character g‖ := by simp [hV] |
| 710 | _ ≤ ‖V.character 1‖ := IsChar.norm_apply_le ⟨V, rfl⟩ g |
| 711 | _ ≤ Nat.card G * 1 := by simpa [FDRep.char_one] using h_dim |
| 712 | |
| 713 | end ProjectionCharacter |
| 714 | |
| 715 | /-! ## Central projections as orthogonal projections -/ |
| 716 | |
| 717 | section CentralConvolution |
| 718 | |
| 719 | open LinearMap LinearIsometryEquiv |
| 720 | open scoped InnerProductSpace |
| 721 | |
| 722 | namespace New.IsCentralProj |
| 723 | |
| 724 | variable {G : Type*} [Group G] [Fintype G] {e : MonoidAlgebra ℂ G} |
| 725 | |
| 726 | /-- Let `ρ` be a representation of a finite group `G` on a complex vector space `V` and `σ` a field |
| 727 | automorphism of `ℂ`. Let `B` be a `G`-invariant form on `V`, linear in the second argument and |
| 728 | semilinear for `σ⁻¹ ∘ conj ∘ σ` in the first. Then a central idempotent `e` of `ℂ[G]` is |
| 729 | self-adjoint for `B`: `B (e x) y = B x (e y)`. -/ |
| 730 | lemma self_adjoint {V : Type*} [AddCommGroup V] [Module ℂ V] (ρ : Representation ℂ G V) |
| 731 | (he : IsCentralProj e) (σ : ℂ ≃+* ℂ) |
| 732 | (B : V →ₛₗ[(↑σ⁻¹ : ℂ →+* ℂ).comp ((starRingEnd ℂ).comp (σ : ℂ →+* ℂ))] V →ₗ[ℂ] ℂ) |
| 733 | (hB : ∀ (s : G) (x y : V), B (ρ s x) (ρ s y) = B x y) (x y : V) : |
| 734 | B (ρ.asAlgebraHom e x) y = B x (ρ.asAlgebraHom e y) := by |
| 735 | -- The coefficients of `σ e` are a character divided by `|G|`, so inversion conjugates them. |
| 736 | -- Expand both sides over `G` and match the term of `s` with the term of `s⁻¹`. |
| 737 | have h_coeff (s : G) : σ (e.coeff s⁻¹) = starRingEnd ℂ (σ (e.coeff s)) := by |
| 738 | simpa using (he.map σ).isChar_card_mul_coeff.apply_inv s |
| 739 | have h_adj (s : G) : B (ρ s x) y = B x (ρ s⁻¹ y) := by simp [← hB s x] |
| 740 | have h_term (s : G) : B ((e.coeff s • ρ s) x) y = B x ((e.coeff s⁻¹ • ρ s⁻¹) y) := by |
| 741 | simp [h_adj, ← h_coeff] |
| 742 | simp only [Representation.asAlgebraHom_eq_sum, LinearMap.sum_apply, map_sum] |
| 743 | exact Fintype.sum_equiv (.inv G) _ _ h_term |
| 744 | |
| 745 | /-- In a unitary representation, a central idempotent of the complex group algebra acts as an |
| 746 | orthogonal projection. -/ |
| 747 | lemma isSymmetricProjection {H : Type*} [Group H] [Fintype H] |
| 748 | {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℂ V] |
| 749 | {ρ : Representation ℂ H V} (hρ : ∀ (s : H) (x y : V), ⟪ρ s x, ρ s y⟫_ℂ = ⟪x, y⟫_ℂ) |
| 750 | {z : MonoidAlgebra ℂ H} (hz : IsCentralProj z) : |
| 751 | (ρ.asAlgebraHom z).IsSymmetricProjection := |
| 752 | ρ.isSymmetricProjection_asAlgebraHom hρ (fun s ↦ by |
| 753 | simpa using hz.isChar_card_mul_coeff.apply_inv s) hz.isIdempotentElem |
| 754 | |
| 755 | /-- Convolution with a central idempotent e of ℂ[G], along a homomorphism φ : G → H of finite |
| 756 | groups, is a contraction of ℓ²(H, V): ∑_s ‖∑_t e(t) f(φ(t)⁻¹ s)‖² ≤ ∑_s ‖f(s)‖². -/ |
| 757 | lemma sum_norm_sq_conv_le {V : Type*} [NormedAddCommGroup V] [InnerProductSpace ℂ V] |
| 758 | (he : IsCentralProj e) {H : Type*} [Group H] [Fintype H] (φ : G →* H) (f : H → V) : |
| 759 | ∑ s : H, ‖∑ t : G, e.coeff t • f ((φ t)⁻¹ * s)‖ ^ 2 ≤ ∑ s : H, ‖f s‖ ^ 2 := by |
| 760 | -- `G` acts on `ℓ²(H, V)` by left translation through `φ`, unitarily; so `e` acts as an orthogonal |
| 761 | -- projection, which does not increase the norm. |
| 762 | let L (t : G) : PiLp 2 (fun _ : H ↦ V) ≃ₗᵢ[ℂ] PiLp 2 fun _ : H ↦ V := |
| 763 | piLpCongrLeft 2 ℂ V (.mulLeft (φ t)) |
| 764 | let ρ : Representation ℂ G (PiLp 2 fun _ : H ↦ V) := |
| 765 | { toFun t := (L t).toLinearEquiv.toLinearMap |
| 766 | map_one' := by |
| 767 | ext f s |
| 768 | change f ((φ 1)⁻¹ * s) = f s |
| 769 | simp |
| 770 | map_mul' t u := by |
| 771 | ext f s |
| 772 | change f ((φ (t * u))⁻¹ * s) = f ((φ u)⁻¹ * ((φ t)⁻¹ * s)) |
| 773 | simp [mul_assoc] } |
| 774 | obtain ⟨K, _, hK : ρ.asAlgebraHom e = K.starProjection⟩ := |
| 775 | isSymmetricProjection_iff_eq_coe_starProjection.1 |
| 776 | (he.isSymmetricProjection (ρ := ρ) fun t ↦ (L t).inner_map_map) |
| 777 | have h_norm : ‖ρ.asAlgebraHom e (.toLp 2 f)‖ ≤ ‖WithLp.toLp 2 f‖ := by |
| 778 | simpa [hK] using K.norm_starProjection_apply_le _ |
| 779 | -- write both norms in coordinates and square |
| 780 | simpa (disch := positivity) [ρ, L, PiLp.norm_eq_of_L2, Representation.asAlgebraHom_eq_sum] |
| 781 | using h_norm |
| 782 | |
| 783 | end New.IsCentralProj |
| 784 | |
| 785 | end CentralConvolution |
| 786 | |
| 787 | end |