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 | import Mathlib.Algebra.Order.Star.Int |
| 4 | import Mathlib.Analysis.Fourier.AddCircleMulti |
| 5 | import Mathlib.Analysis.Matrix.Spectrum |
| 6 | import Mathlib.Data.Finset.CastCard |
| 7 | import Mathlib.LinearAlgebra.Matrix.Charpoly.Eigs |
| 8 | import Mathlib.LinearAlgebra.Matrix.Permutation |
| 9 | import Mathlib.RingTheory.PicardGroup |
| 10 | import Mathlib.Topology.Algebra.Group.Matrix |
| 11 | import Mathlib.Topology.UniformSpace.Uniformizable |
| 12 | public import Lib.DiscreteSeries.Holomorphic.MaximalCompactMinors |
| 13 | public import Lib.GLn.SchurModule.SchurMatrix |
| 14 | public import Lib.General.Groups.BesselGroups |
| 15 | import Lib.DiscreteSeries.FlenstedJensen.CasimirEigenfunction |
| 16 | import Lib.DiscreteSeries.FlenstedJensen.PsiKTypes |
| 17 | import Lib.DiscreteSeries.Haar.TotalMass |
| 18 | import Lib.DiscreteSeries.Holomorphic.HighestVectorExtension |
| 19 | import Lib.GLn.SchurModule.SchurOrthogonality |
| 20 | import Lib.GLn.SchurModule.WeylKernel |
| 21 | import Lib.General.LinearAlgebra.Eigenvalues |
| 22 | |
| 23 | /-! |
| 24 | # Laurent polynomials on the torus and Weyl's character and dimension formulas |
| 25 | |
| 26 | Let `ε : n → ℤˣ` be a family of signs and `K = New.maxCompactU ε` the group of unitary matrices in |
| 27 | the unitary group of `New.signMatrix ε`. Its Weyl group consists of the permutations `w` with |
| 28 | `ε ∘ w = ε`. Laurent polynomials are the elements of `ℂ[n → ℤ]`; they are evaluated on the diagonal |
| 29 | torus by `New.Orbital.torusEval`. |
| 30 | |
| 31 | ## Main definitions and results |
| 32 | |
| 33 | * `New.HCParam.rootProd l r`: the product `∏ (x_a - x_b)` over the pairs with `r (ε a) (ε b)` and |
| 34 | `l b < l a`, where `r` is `Eq` for the compact roots and `Ne` for the noncompact roots. |
| 35 | `New.Orbital.rootProd_mem_leadingMonomials` finds its top monomial, whose exponent |
| 36 | `New.HCParam.lowerCount l r a` counts such `b`. |
| 37 | * `New.Orbital.alternant`, `New.Orbital.IsWeylAntisymm`: the alternants `∑ sgn(w) x ^ (μ ∘ w)` over |
| 38 | the Weyl group, and functions of the exponent that are antisymmetric. |
| 39 | * `New.HCParam.kTypeChar`: the average over conjugation of the matrix coefficient |
| 40 | `New.weightMinors ν` (a product of principal minors), divided by `New.HCParam.kTypeNormSq ν`. |
| 41 | * `New.Orbital.weyl_character_kTypeChar`, `New.Orbital.weyl_denominator`: Weyl's character and |
| 42 | denominator formulas for `K`. The first joins |
| 43 | `New.Orbital.exists_kTypeChar_diagTorusK_eq_torusEval` (the character is a Laurent polynomial) and |
| 44 | `New.Orbital.torusEval_rootProd_mul_kTypeChar_eq_alternant` (the formula). |
| 45 | * `New.weyl_dimension_formula`: Weyl's dimension formula for `U(n)`. |
| 46 | * `New.Variety.trace_weylRep`: Weyl's character formula at a tuple `g` of invertible matrices with |
| 47 | distinct eigenvalues, reduced to the diagonal case `New.weyl_character` by conjugation. |
| 48 | |
| 49 | Notions from other files: |
| 50 | * `New.HCParam ε`: integer vectors `n → ℤ`, used as weights and as doubled parameters `l = 2λ`. |
| 51 | * `New.HCParam.lowestKType`: the integer vector `Λ = λ + ρ - 2ρ_c` for a parameter `l = 2λ`, the |
| 52 | highest weight of the lowest `K`-type. With all signs `1` one has `ρ_c = ρ`. |
| 53 | * `New.weylRep κ e`: the representation of `∏_τ GL(n_τ)` sending `g` to `∏_τ det(g_τ) ^ e_τ` times |
| 54 | the Schur matrix `New.schur κ g`. |
| 55 | |
| 56 | ## Relation to the literature |
| 57 | |
| 58 | Known result: Weyl character formula for U(n) and products of unitary groups. Here the formula for |
| 59 | `K` is deduced from the one for Schur modules at diagonal matrices (`New.weyl_character`): by |
| 60 | Schur's lemma, normalised means over conjugation of products of principal minors are traces of |
| 61 | twisted Schur modules. The dimension formula is obtained by a limit at 1, and the formula for |
| 62 | `∏_τ GL_a(ℂ)` at elements with distinct eigenvalues by diagonalisation. Source: H. Weyl, The |
| 63 | Classical Groups (1939), ch. VII; Fulton and Harris, Representation Theory (1991), Lectures 24-25. |
| 64 | |
| 65 | See also `Lib.DiscreteSeries.Character.FormalDegree`. |
| 66 | -/ |
| 67 | |
| 68 | @[expose] public section |
| 69 | |
| 70 | noncomputable section |
| 71 | |
| 72 | namespace New.Orbital |
| 73 | |
| 74 | /-! |
| 75 | ## Laurent polynomials on the torus, Weyl denominators and alternants |
| 76 | |
| 77 | `New.IsKDominant ε (-l) ν` says `ν j ≤ ν i` if `ε i = ε j` and `l j < l i`. `δ` is |
| 78 | `New.HCParam.lowerCount l Eq`, the top exponent of the product over the compact roots. |
| 79 | -/ |
| 80 | |
| 81 | section LaurentAlternants |
| 82 | |
| 83 | open Matrix Finset Int AddMonoidAlgebra UnitAddTorus AddCircle Equiv Function HCParam |
| 84 | |
| 85 | variable {n : Type} [Fintype n] [DecidableEq n] |
| 86 | |
| 87 | /-- For a tuple `x` of unit complex numbers, the algebra homomorphism from Laurent polynomials to |
| 88 | `ℂ` sending the monomial of exponent `γ` to `∏ x_a ^ γ_a`. -/ |
| 89 | def torusEval (x : n → Circle) : ℂ[n → ℤ] →ₐ[ℂ] ℂ := |
| 90 | lift ℂ ℂ (n → ℤ) |
| 91 | { toFun (γ : Multiplicative (n → ℤ)) := ∏ a : n, (x a : ℂ) ^ γ.toAdd a |
| 92 | map_one' := by simp |
| 93 | map_mul' := by simp [zpow_add₀, prod_mul_distrib] } |
| 94 | |
| 95 | omit [DecidableEq n] in |
| 96 | /-- The value of a Laurent polynomial `P` at `x` is the sum over the exponents `γ` of the |
| 97 | coefficient at `γ` times the monomial `∏ x_a ^ γ_a`. -/ |
| 98 | lemma torusEval_eq_sum (x : n → Circle) (P : ℂ[n → ℤ]) : |
| 99 | torusEval x P = P.coeff.sum fun (γ : n → ℤ) (c : ℂ) ↦ c * ∏ a : n, (x a : ℂ) ^ γ a := by |
| 100 | simp [torusEval, lift_apply'] |
| 101 | |
| 102 | /-- The finite set of pairs of indices `(a, b)` with `ε a = 1` and `ε b = -1`. -/ |
| 103 | def oppositePairs (ε : n → ℤˣ) : Finset (n × n) := |
| 104 | univ.filter (ε · = 1) ×ˢ univ.filter (ε · ≠ 1) |
| 105 | |
| 106 | omit [DecidableEq n] in |
| 107 | lemma mem_oppositePairs {ε : n → ℤˣ} {p : n × n} : |
| 108 | p ∈ oppositePairs ε ↔ ε p.1 = 1 ∧ ε p.2 ≠ 1 := by |
| 109 | simp [oppositePairs] |
| 110 | |
| 111 | /-- The Laurent polynomial `∑ sgn(w) x ^ (l ∘ w)`, summed over the permutations `w` that preserve |
| 112 | the signs `ε` (the Weyl group of `K`). -/ |
| 113 | def alternant (ε : n → ℤˣ) (l : n → ℤ) : ℂ[n → ℤ] := |
| 114 | ∑ w : Perm n, if ε ∘ w = ε then AddMonoidAlgebra.single (l ∘ w) w.sign else 0 |
| 115 | |
| 116 | /-- The function `t` on `ℤⁿ` is antisymmetric under the Weyl group of `K`: |
| 117 | `t (γ ∘ w) = sgn(w) t γ` for the permutations `w` preserving the signs `ε`. -/ |
| 118 | def IsWeylAntisymm (ε : n → ℤˣ) (t : (n → ℤ) → ℂ) : Prop := |
| 119 | ∀ w : Perm n, ε ∘ w = ε → ∀ γ : n → ℤ, t (γ ∘ w) = w.sign * t γ |
| 120 | |
| 121 | /-- The monoid of pairs `(a, P)`, where `P` is a Laurent polynomial with coefficient `1` at `x ^ a`, |
| 122 | all exponents `γ` of `P` are nonnegative, and every `γ` other than `a` has a lower level: |
| 123 | `l ⬝ᵥ γ < l ⬝ᵥ a`. -/ |
| 124 | def leadingMonomials (l : n → ℤ) : Submonoid (Multiplicative (n → ℤ) × ℂ[n → ℤ]) where |
| 125 | carrier := |
| 126 | {p : Multiplicative (n → ℤ) × ℂ[n → ℤ] | |
| 127 | p.2.coeff p.1.toAdd = 1 ∧ |
| 128 | ∀ γ : n → ℤ, p.2.coeff γ ≠ 0 → 0 ≤ γ ∧ (γ = p.1.toAdd ∨ l ⬝ᵥ γ < l ⬝ᵥ p.1.toAdd)} |
| 129 | mul_mem' {a b} := by |
| 130 | -- An exponent of the product is a sum of exponents of the factors. Levels add, so the sum of |
| 131 | -- the two top exponents arises in one way only and every other sum has a lower level. |
| 132 | have h_supp (γ : n → ℤ) (hγ : (a.2 * b.2).coeff γ ≠ 0) : |
| 133 | ∃ y : n → ℤ, a.2.coeff y ≠ 0 ∧ ∃ z : n → ℤ, b.2.coeff z ≠ 0 ∧ y + z = γ := by |
| 134 | simpa [mem_add] using a.2.support_coeff_mul_subset b.2 (Finsupp.mem_support_iff.2 hγ) |
| 135 | simp |
| 136 | grind [UniqueAdd, add_nonneg, coeff_mul_add_of_uniqueAdd, dotProduct_add, |
| 137 | dotProduct_add l a.1.toAdd b.1.toAdd] |
| 138 | one_mem' := by simp [← Finsupp.mem_support_iff] |
| 139 | |
| 140 | omit [DecidableEq n] in |
| 141 | lemma mem_leadingMonomials_iff (l : n → ℤ) {a : n → ℤ} {P : ℂ[n → ℤ]} : |
| 142 | (Multiplicative.ofAdd a, P) ∈ leadingMonomials l ↔ |
| 143 | P.coeff a = 1 ∧ ∀ γ : n → ℤ, P.coeff γ ≠ 0 → 0 ≤ γ ∧ (γ = a ∨ l ⬝ᵥ γ < l ⬝ᵥ a) := |
| 144 | Iff.rfl |
| 145 | |
| 146 | /-- If `l b < l a`, then `x_a` is the monomial of highest level `l ⬝ᵥ γ` of the binomial |
| 147 | `x_a - x_b`. -/ |
| 148 | lemma single_sub_single_mem_leadingMonomials (l : n → ℤ) {a b : n} (h_lt : l b < l a) : |
| 149 | (Multiplicative.ofAdd (Pi.single a 1), |
| 150 | (.single (Pi.single a 1) 1 - .single (Pi.single b 1) 1 : ℂ[n → ℤ])) ∈ leadingMonomials l := by |
| 151 | have h_level : l ⬝ᵥ Pi.single b 1 < l ⬝ᵥ Pi.single a 1 := by simpa using h_lt |
| 152 | refine (mem_leadingMonomials_iff l).2 |
| 153 | ⟨by simp [ne_of_apply_ne (l ⬝ᵥ ·) h_level.ne], fun γ hγ ↦ ?_⟩ |
| 154 | obtain rfl | rfl : γ = Pi.single a 1 ∨ γ = Pi.single b 1 := by |
| 155 | contrapose! hγ |
| 156 | simp [hγ.1.symm, hγ.2.symm] |
| 157 | · exact ⟨Pi.single_nonneg.2 zero_le_one, .inl rfl⟩ |
| 158 | · exact ⟨Pi.single_nonneg.2 zero_le_one, .inr h_level⟩ |
| 159 | |
| 160 | variable {ε : n → ℤˣ} (l : HCParam ε) (r : ℤˣ → ℤˣ → Prop) [DecidableRel r] |
| 161 | {ν : n → ℤ} {P Q : ℂ[n → ℤ]} (w : Perm n) |
| 162 | |
| 163 | /-- The Laurent polynomial `∏ (x_a - x_b)` over the pairs `(a, b)` with `r (ε a) (ε b)` and |
| 164 | `l b < l a`. It is a partial Weyl denominator (Vandermonde product) for the order given by `l`. -/ |
| 165 | def _root_.New.HCParam.rootProd : ℂ[n → ℤ] := |
| 166 | ∏ a : n, ∏ b : n with r (ε a) (ε b) ∧ l b < l a, |
| 167 | (.single (Pi.single a 1) 1 - .single (Pi.single b 1) 1) |
| 168 | |
| 169 | /-- The number of `b` with `r (ε a) (ε b)` and `l b < l a`. As a function of `a`, it is the exponent |
| 170 | of the product of the first terms `x_a` of the factors of `New.HCParam.rootProd l r`. -/ |
| 171 | def _root_.New.HCParam.lowerCount (a : n) : ℤ := (#{b : n | r (ε a) (ε b) ∧ l b < l a} : ℤ) |
| 172 | |
| 173 | omit [DecidableEq n] in |
| 174 | lemma _root_.New.HCParam.lowerCount_nonneg (a : n) : 0 ≤ l.lowerCount r a := |
| 175 | Nat.cast_nonneg _ |
| 176 | |
| 177 | omit [DecidableEq n] in |
| 178 | lemma _root_.New.HCParam.lowerCount_le_card (a : n) : l.lowerCount r a ≤ Fintype.card n := |
| 179 | Nat.cast_le.2 (card_le_univ _) |
| 180 | |
| 181 | /-! ### Top monomials, alternants and class functions -/ |
| 182 | |
| 183 | /-- Let the level `o` keep the strict order of `l`. Then `l.rootProd r`, the product of |
| 184 | `x_a - x_b` over `r (ε a) (ε b)` and `l b < l a`, is a polynomial whose only monomial of highest |
| 185 | level `o ⬝ᵥ γ` has exponent `l.lowerCount r` (the number of such `b`) and coefficient `1`. -/ |
| 186 | lemma rootProd_mem_leadingMonomials (o : n → ℤ) (h_order : ∀ a b : n, l b < l a → o b < o a) : |
| 187 | (Multiplicative.ofAdd (l.lowerCount r), l.rootProd r) ∈ leadingMonomials o := by |
| 188 | -- `l.rootProd r` is a product of binomials `x_a - x_b` with `o b < o a`, each with top monomial |
| 189 | -- `x_a`. The exponents of the `x_a` add up to `l.lowerCount r`, and `leadingMonomials o` is |
| 190 | -- closed under products. |
| 191 | have h_exponent : l.lowerCount r = |
| 192 | ∑ a : n, ∑ b : n with r (ε a) (ε b) ∧ l b < l a, (Pi.single a 1 : n → ℤ) := by |
| 193 | simp [pi_eq_sum_univ' (l.lowerCount r), lowerCount] |
| 194 | rw [h_exponent, rootProd] |
| 195 | simp_rw [ofAdd_sum, prod_mk_prod] |
| 196 | refine prod_mem fun a _ ↦ prod_mem fun b hb ↦ ?_ |
| 197 | obtain ⟨-, -, h_lt⟩ := mem_filter.1 hb |
| 198 | exact single_sub_single_mem_leadingMonomials o (h_order a b h_lt) |
| 199 | |
| 200 | /-- The value at `x` of `l.rootProd r` is the product of `x a - x b` over the pairs with |
| 201 | `r (ε a) (ε b)` and `l b < l a`. -/ |
| 202 | lemma torusEval_rootProd (x : n → Circle) : |
| 203 | torusEval x (l.rootProd r) = |
| 204 | ∏ a : n, ∏ b : n with r (ε a) (ε b) ∧ l b < l a, (x a - x b : ℂ) := by |
| 205 | simp [torusEval, rootProd, Pi.single_apply] |
| 206 | |
| 207 | /-- The product `l.rootProd r` of binomials `x_a - x_b` with `l b < l a` does not vanish at a point |
| 208 | of the torus with distinct coordinates. -/ |
| 209 | lemma torusEval_rootProd_ne_zero {x : n → Circle} (hx : Injective x) : |
| 210 | torusEval x (l.rootProd r) ≠ 0 := by |
| 211 | -- The value is a product of differences `x a - x b` with `l b < l a`, so `a ≠ b`. |
| 212 | rw [torusEval_rootProd] |
| 213 | exact prod_ne_zero_iff.2 fun a _ ↦ prod_ne_zero_iff.2 fun b hb ↦ |
| 214 | sub_ne_zero.2 (Circle.coe_injective.ne (hx.ne (by grind))) |
| 215 | |
| 216 | /-- The coefficient of `x ^ γ` in the alternant of `ν` is the sum of the signs of the permutations |
| 217 | `w` that preserve `ε` and satisfy `ν ∘ w = γ`. -/ |
| 218 | lemma alternant_apply (γ : n → ℤ) : |
| 219 | (alternant ε ν).coeff γ = ∑ w : Perm n, if ε ∘ w = ε ∧ ν ∘ w = γ then (w.sign : ℂ) else 0 := by |
| 220 | simp [alternant, ite_and, Finsupp.single_apply, sum_ite] |
| 221 | |
| 222 | /-- At a point `x` of the torus, the alternant of `ν` is the determinant of the matrix with |
| 223 | `(a, b)` entry `x a ^ ν b` if `ε a = ε b` and `0` otherwise. -/ |
| 224 | lemma torusEval_alternant (x : n → Circle) : |
| 225 | torusEval x (alternant ε ν) = |
| 226 | det (Matrix.of fun a b : n ↦ if ε a = ε b then (x a : ℂ) ^ ν b else 0) := by |
| 227 | calc torusEval x (alternant ε ν) |
| 228 | _ = ∑ w : Perm n, if ε ∘ w = ε then (w.sign : ℂ) * ∏ a : n, (x a : ℂ) ^ ν (w a) else 0 := by |
| 229 | simp [alternant, torusEval, apply_ite (lift ℂ ℂ (n → ℤ) _)] |
| 230 | _ = ∑ w : Perm n, (w.sign : ℂ) * ∏ a : n, if ε a = ε (w a) then (x a : ℂ) ^ ν (w a) else 0 := by |
| 231 | simp [prod_ite_zero, funext_iff, eq_comm] |
| 232 | _ = _ := by simp [← det_transpose (Matrix.of _), -transpose_of, det_apply'] |
| 233 | |
| 234 | section |
| 235 | |
| 236 | omit [DecidableEq n] |
| 237 | |
| 238 | @[fun_prop] |
| 239 | lemma continuous_torusEval : Continuous fun x : n → Circle ↦ torusEval x P := by continuity |
| 240 | |
| 241 | /-- A Laurent polynomial is determined by its values on the torus. -/ |
| 242 | lemma eq_of_torusEval_eq (h_eval : ∀ x : n → Circle, torusEval x P = torusEval x Q) : P = Q := by |
| 243 | -- On the unit torus the monomials are the characters `mFourier`, which are orthonormal in `L²`, |
| 244 | -- hence linearly independent. |
| 245 | have h_indep : LinearIndependent ℂ (mFourier (d := n)) := |
| 246 | orthonormal_mFourier.linearIndependent.of_comp _ |
| 247 | have h_value (R : ℂ[n → ℤ]) (t : UnitAddTorus n) : |
| 248 | Finsupp.linearCombination ℂ mFourier R.coeff t = torusEval (fun a ↦ (t a).toCircle) R := by |
| 249 | simp [torusEval_eq_sum, Finsupp.sum, Finsupp.linearCombination, mFourier, toCircle_zsmul] |
| 250 | exact ext (h_indep (ContinuousMap.ext fun t ↦ by rw [h_value, h_value, h_eval])) |
| 251 | |
| 252 | /-- Weierstrass approximation on a torus: Laurent polynomials are uniformly dense in the |
| 253 | continuous complex functions on (S¹)ⁿ. -/ |
| 254 | lemma denseRange_torusEval : |
| 255 | DenseRange fun P : ℂ[n → ℤ] ↦ ContinuousMap.mk fun x : n → Circle ↦ torusEval x P := by |
| 256 | -- Transport the density of the span of the characters `mFourier` on `UnitAddTorus n` along |
| 257 | -- the homeomorphism with `n → Circle`. |
| 258 | let φ : UnitAddTorus n ≃ₜ (n → Circle) := .piCongrRight fun _ ↦ homeomorphCircle (by simp) |
| 259 | let Φ : C(UnitAddTorus n, ℂ) ≃ₜ C(n → Circle, ℂ) := φ.arrowCongr (.refl ℂ) |
| 260 | -- The characters `mFourier` span a dense subspace. |
| 261 | refine (Φ.isDenseEmbedding.dense_image.2 fun _ ↦ span_mFourier_closure_eq_top.ge ⟨⟩).mono ?_ |
| 262 | rintro _ ⟨f, hf, rfl⟩ |
| 263 | obtain ⟨c, rfl⟩ := Finsupp.mem_span_range_iff_exists_finsupp.1 hf |
| 264 | -- The combination of characters with coefficients `c` becomes the Laurent polynomial `⟨c⟩`. |
| 265 | refine ⟨⟨c⟩, ContinuousMap.ext fun x ↦ ?_⟩ |
| 266 | obtain ⟨t, rfl⟩ := φ.surjective x |
| 267 | have h_apply (g : C(UnitAddTorus n, ℂ)) : Φ g (φ t) = g t := by simp [Φ, Homeomorph.arrowCongr] |
| 268 | rw [h_apply] |
| 269 | simp [φ, homeomorphCircle_apply, torusEval_eq_sum, Finsupp.sum, mFourier, toCircle_zsmul] |
| 270 | |
| 271 | /-- Permuting the coordinates of the point is the same as permuting the exponents of `P`. -/ |
| 272 | lemma torusEval_comp_perm (x : n → Circle) : |
| 273 | torusEval (x ∘ w) P = torusEval x ⟨P.coeff.equivMapDomain (w.arrowCongr 1)⟩ := by |
| 274 | have h_monomial (γ : n → ℤ) : ∏ a : n, (x (w a) : ℂ) ^ γ a = ∏ a : n, (x a : ℂ) ^ γ (w.symm a) := |
| 275 | Fintype.prod_equiv w _ _ (by simp) |
| 276 | simp [torusEval_eq_sum, h_monomial] |
| 277 | |
| 278 | /-- Permuting the variables by `w` multiplies the values of `P` on the torus by `c` exactly when |
| 279 | permuting the exponents by `w` multiplies the coefficients of `P` by `c`. -/ |
| 280 | lemma torusEval_comp_eq_mul_iff {c : ℂ} : |
| 281 | (∀ x : n → Circle, torusEval (x ∘ w) P = c * torusEval x P) ↔ |
| 282 | ∀ ν : n → ℤ, P.coeff (ν ∘ w) = c * P.coeff ν := by |
| 283 | -- Both sides say that `P` with its exponents permuted by `w` is `c • P`: the left side by |
| 284 | -- `torusEval_comp_perm` and `eq_of_torusEval_eq`, the right side coefficient by coefficient. |
| 285 | let P' : ℂ[n → ℤ] := ⟨P.coeff.equivMapDomain (w.arrowCongr 1)⟩ |
| 286 | have h_coeff (ν : n → ℤ) : P'.coeff ν = P.coeff (ν ∘ w) := rfl |
| 287 | calc (∀ x : n → Circle, torusEval (x ∘ w) P = c * torusEval x P) |
| 288 | _ ↔ ∀ x : n → Circle, torusEval x P' = torusEval x (c • P) := by simp [torusEval_comp_perm, P'] |
| 289 | _ ↔ P' = c • P := ⟨eq_of_torusEval_eq, fun h _ ↦ by rw [h]⟩ |
| 290 | _ ↔ ∀ ν : n → ℤ, P.coeff (ν ∘ w) = c * P.coeff ν := by |
| 291 | simp [← coeff_inj, Finsupp.ext_iff, h_coeff] |
| 292 | |
| 293 | end |
| 294 | |
| 295 | /-- Alternants are antisymmetric under the Weyl group of `K`: the coefficient of `x ^ γ` in |
| 296 | `alternant ε ν` is antisymmetric as a function of `γ`. -/ |
| 297 | lemma isWeylAntisymm_alternant : IsWeylAntisymm ε (alternant ε ν).coeff := by |
| 298 | -- By `torusEval_comp_eq_mul_iff` it is enough to permute `x`. This permutes the rows of the |
| 299 | -- determinant in `torusEval_alternant`, which multiplies it by `w.sign`. |
| 300 | intro w hw |
| 301 | refine (torusEval_comp_eq_mul_iff w).1 fun x ↦ ?_ |
| 302 | rw [torusEval_alternant, torusEval_alternant, ← det_permute] |
| 303 | congr with a b |
| 304 | simp [show ε (w a) = ε a from congrFun hw a] |
| 305 | |
| 306 | /-- Let `K = maxCompactU ε`, and let `diagTorusK x` be the diagonal matrix with entries `x`. If `f` |
| 307 | on the torus and `d` on `K` satisfy `d (y * diagTorusK x * y⁻¹) = f x` for all `y` and `x`, then `f` |
| 308 | is invariant under every permutation `w` of the coordinates that preserves the signs `ε`. -/ |
| 309 | lemma apply_comp_perm_of_conj_invariant {w : Perm n} (x : n → Circle) (hw : ε ∘ w = ε) |
| 310 | {d : maxCompactU ε → ℂ} {f : (n → Circle) → ℂ} |
| 311 | (h_inv : ∀ (y : maxCompactU ε) (x : n → Circle), d (y * diagTorusK x * y⁻¹) = f x) : |
| 312 | f (x ∘ w) = f x := by |
| 313 | -- The permutation matrix `y` of `w` lies in `maxCompactU ε` and conjugates `diagTorusK (x ∘ w)` |
| 314 | -- to `diagTorusK x`. |
| 315 | let g : GL n ℂ := permMatrixHom.toHomUnits w |
| 316 | have hw_apply (a : n) : ε (w a) = ε a := congrFun hw a |
| 317 | have h_form : (g : Matrix n n ℂ)ᴴ * signMatrix ε * g = signMatrix ε := by |
| 318 | simp [g, ← Matrix.ext_iff, signMatrix, diagonal, Matrix.mul_apply, sum_ite, hw_apply] |
| 319 | have h_unitary : (g : Matrix n n ℂ)ᴴ * 1 * g = 1 := by |
| 320 | simp [g, ← Matrix.ext_iff, Matrix.mul_apply, sum_ite, Matrix.one_apply] |
| 321 | let y : maxCompactU ε := |
| 322 | ⟨⟨g, mem_unitaryGroupOf_iff.2 h_form⟩, mem_unitaryGroupOf_iff.2 h_unitary⟩ |
| 323 | have h_conj : y * diagTorusK (x ∘ w) * y⁻¹ = diagTorusK x := by |
| 324 | ext |
| 325 | simp [y, g, diagTorus, ← map_inv, diagonal, Matrix.mul_apply, sum_ite] |
| 326 | rw [← h_inv y, h_conj, ← h_inv 1, one_mul, inv_one, mul_one] |
| 327 | |
| 328 | /-- For injective `l`, the product `l.rootProd Ne` of `x a - x b` over `ε a ≠ ε b` and `l b < l a` |
| 329 | (the positive noncompact roots) is, up to a sign that does not depend on `x`, the product of |
| 330 | `x a - x b` over the pairs `oppositePairs ε` with `ε a = 1`, `ε b = -1`. -/ |
| 331 | lemma torusEval_rootProd_noncompact {l : HCParam ε} (hl : l.Injective) (x : n → Circle) : |
| 332 | torusEval x (l.rootProd Ne) = |
| 333 | (∏ p ∈ oppositePairs ε, if l p.2 < l p.1 then 1 else -1) * |
| 334 | ∏ p ∈ oppositePairs ε, (x p.1 - x p.2 : ℂ) := by |
| 335 | -- A pair `(a, b)` with `ε a ≠ ε b` and `l b < l a` lies in `oppositePairs ε` or does so after a |
| 336 | -- swap, and the swap changes the sign of `x a - x b`. |
| 337 | let roots : Finset (n × n) := {p | ε p.1 ≠ ε p.2 ∧ l p.2 < l p.1} |
| 338 | have h_opp (a b : n) : ε a ≠ ε b ↔ (ε a = 1 ↔ ε b ≠ 1) := by |
| 339 | grind [units_eq_one_or (ε a), units_eq_one_or (ε b)] |
| 340 | calc torusEval x (l.rootProd Ne) |
| 341 | _ = ∏ p ∈ roots, (x p.1 - x p.2 : ℂ) := |
| 342 | (torusEval_rootProd l _ x).trans (prod_finset_product' roots univ _ (by simp [roots])).symm |
| 343 | _ = ∏ p ∈ oppositePairs ε, (if l p.2 < l p.1 then 1 else -1) * (x p.1 - x p.2 : ℂ) := by |
| 344 | refine prod_nbij' (fun p ↦ if ε p.1 = 1 then p else p.swap) |
| 345 | (fun p ↦ if l p.2 < l p.1 then p else p.swap) ?_ ?_ ?_ ?_ ?_ |
| 346 | -- Each of the five conditions is a case split on the signs and on the order of `l a`, `l b`. |
| 347 | all_goals |
| 348 | rintro ⟨a, b⟩ |
| 349 | grind [mem_oppositePairs] |
| 350 | _ = _ := prod_mul_distrib |
| 351 | |
| 352 | /-- For injective `l`, the values of the product `l.rootProd Ne` over the positive noncompact roots |
| 353 | are invariant under the permutations `w` of the coordinates that preserve the signs `ε`. -/ |
| 354 | lemma torusEval_rootProd_noncompact_comp {l : HCParam ε} {w : Perm n} (hl : l.Injective) |
| 355 | (hw : ε ∘ w = ε) (x : n → Circle) : |
| 356 | torusEval (x ∘ w) (l.rootProd Ne) = torusEval x (l.rootProd Ne) := by |
| 357 | -- In the formula `torusEval_rootProd_noncompact` the signs do not depend on `x`, and `w` permutes |
| 358 | -- the pairs of `oppositePairs ε`. |
| 359 | have hw_apply (a : n) : ε (w a) = ε a := congrFun hw a |
| 360 | have h_perm : ∏ p ∈ oppositePairs ε, ((x ∘ w) p.1 - (x ∘ w) p.2 : ℂ) = |
| 361 | ∏ p ∈ oppositePairs ε, (x p.1 - x p.2 : ℂ) := |
| 362 | prod_equiv (w.prodCongr w) (by simp [mem_oppositePairs, hw_apply]) (by simp) |
| 363 | rw [torusEval_rootProd_noncompact hl, torusEval_rootProd_noncompact hl, h_perm] |
| 364 | |
| 365 | /-! ### Antisymmetric functions and dominant weights -/ |
| 366 | |
| 367 | /-- Let `l` be injective and let `δ = l.lowerCount Eq` count, at `a`, the `b` with `ε a = ε b` and |
| 368 | `l b < l a`. For weights `ν` and `ν'` that are monotone in `l` on each class of `ε` (dominant), the |
| 369 | coefficient of the alternant of `ν + δ` at `ν' + δ` is `1` if `ν' = ν` and `0` otherwise. -/ |
| 370 | lemma alternant_coeff_of_isKDominant {l : HCParam ε} {ν ν' : n → ℤ} (hl : l.Injective) |
| 371 | (hν : IsKDominant ε (-l) ν) (hν' : IsKDominant ε (-l) ν') : |
| 372 | (alternant ε (ν + l.lowerCount Eq)).coeff (ν' + l.lowerCount Eq) = if ν' = ν then 1 else 0 := by |
| 373 | -- Both `ν + δ` and `ν' + δ` are strictly dominant, so `(ν + δ) ∘ w = ν' + δ` forces `w = 1`. |
| 374 | set δ : n → ℤ := l.lowerCount Eq |
| 375 | have h_strict {μ : n → ℤ} {i j : n} (hμ : IsKDominant ε (-l) μ) (hε : ε i = ε j) |
| 376 | (hji : l j < l i) : (μ + δ) j < (μ + δ) i := by |
| 377 | -- `δ j < δ i`: the indices below `j` are below `i`, and `j` is below `i` but not below itself. |
| 378 | exact add_lt_add_of_le_of_lt (hμ i j hε (neg_lt_neg hji)) (ofNat_lt.2 (card_lt_card |
| 379 | ((ssubset_iff_of_subset (by grind)).2 ⟨j, by simp [hε, hji], by simp⟩))) |
| 380 | rw [alternant_apply, sum_eq_single 1 (fun w _ h_ne ↦ ite_eq_right ?_) (by simp)] |
| 381 | · simp [comm] |
| 382 | rintro ⟨hw, h_eq⟩ |
| 383 | -- Let `i` be the moved index of largest `l`, and `w j = i`; `w i` and `j` are moved too. |
| 384 | obtain ⟨i, hi, h_max⟩ := w.support.exists_max_image l |
| 385 | (nonempty_of_ne_empty (mt Perm.support_eq_empty_iff.1 h_ne)) |
| 386 | obtain ⟨j, hj⟩ := w.surjective i |
| 387 | have hwi_ne : w i ≠ i := Perm.mem_support.1 hi |
| 388 | have hwi : l (w i) < l i := |
| 389 | (h_max (w i) (Perm.apply_mem_support.2 hi)).lt_of_ne (hl.ne hwi_ne) |
| 390 | have hji : l j < l i := (h_max j (by grind [Perm.mem_support])).lt_of_ne (hl.ne (by grind)) |
| 391 | apply lt_irrefl ((ν' + δ) i) |
| 392 | calc (ν' + δ) i = (ν + δ) (w i) := (congrFun h_eq i).symm |
| 393 | _ < (ν + δ) i := h_strict hν (congrFun hw i).symm hwi |
| 394 | _ = (ν' + δ) j := by rw [← h_eq, Function.comp_apply, hj] |
| 395 | _ < (ν' + δ) i := h_strict hν' (by simpa [hj] using congrFun hw j) hji |
| 396 | |
| 397 | /-- Let `l` be injective. Every exponent `γ` can be sorted by a permutation `w` that preserves the |
| 398 | signs `ε`: the exponent `γ ∘ w` is monotone in `l` on each class of `ε`. -/ |
| 399 | lemma exists_perm_comp_eq_and_apply_le_apply {l : HCParam ε} (hl : l.Injective) (γ : n → ℤ) : |
| 400 | ∃ w : Perm n, ε ∘ w = ε ∧ ∀ a b : n, ε a = ε b → l a ≤ l b → γ (w a) ≤ γ (w b) := by |
| 401 | -- Order the indices by `l` and let `w` make `γ ∘ w` lexicographically least. An inversion |
| 402 | -- could be removed by a swap, which makes `γ ∘ w` smaller. |
| 403 | let : LinearOrder n := LinearOrder.lift' l hl |
| 404 | obtain ⟨w, hw, h_min⟩ := exists_min_image {w : Perm n | ε ∘ w = ε} (fun w ↦ toLex (γ ∘ w)) |
| 405 | ⟨1, by simp⟩ |
| 406 | simp only [mem_filter_univ] at hw h_min |
| 407 | refine ⟨w, hw, fun a b hε hab ↦ not_lt.1 fun h_lt ↦ ?_⟩ |
| 408 | have h_swap : ε ∘ ⇑(w * swap a b) = ε := by |
| 409 | rw [Perm.coe_mul, ← comp_assoc, hw, comp_swap_eq_update] |
| 410 | simp [hε] |
| 411 | exact (h_min _ h_swap).not_gt (Pi.lex_desc (f := γ ∘ w) hab h_lt) |
| 412 | |
| 413 | omit [DecidableEq n] in |
| 414 | /-- Let `l` be injective and `γ` strictly monotone in `l` on each class of `ε`. Then |
| 415 | `γ - l.lowerCount Eq` is still monotone in `l` on each class (dominant); here `l.lowerCount Eq a` |
| 416 | counts the `b` with `ε a = ε b` and `l b < l a`. -/ |
| 417 | lemma isKDominant_sub_lowerCount {l : HCParam ε} (hl : l.Injective) {γ : n → ℤ} |
| 418 | (h_strict : ∀ a b : n, ε a = ε b → l a < l b → γ a < γ b) : |
| 419 | IsKDominant ε (-l) (γ - l.lowerCount Eq) := by |
| 420 | classical |
| 421 | intro i j hε hji |
| 422 | -- The indices `b` of the class with `l j ≤ l b < l i` have distinct values `γ b` in |
| 423 | -- `[γ j, γ i)`, so there are at most `γ i - γ j` of them. |
| 424 | let below (a : n) : Finset n := {b | ε a = ε b ∧ l b < l a} |
| 425 | replace hji : l j < l i := by simpa using hji |
| 426 | have h_maps : Set.MapsTo γ ↑(below i \ below j) ↑(Ico (γ j) (γ i)) := fun _ ↦ by grind |
| 427 | have h_injOn : Set.InjOn γ ↑(below i \ below j) := fun _ ↦ by grind |
| 428 | have h_card : #(below i \ below j) ≤ #(Ico (γ j) (γ i)) := |
| 429 | card_le_card_of_injOn γ h_maps h_injOn |
| 430 | have h_sdiff : (#(below i \ below j) : ℤ) = #(below i) - #(below j) := cast_card_sdiff (by grind) |
| 431 | have h_Ico : (#(Ico (γ j) (γ i)) : ℤ) = γ i - γ j := |
| 432 | card_Ico_of_le _ _ (h_strict j i hε.symm hji).le |
| 433 | change γ j - #(below j) ≤ γ i - #(below i) |
| 434 | lia |
| 435 | |
| 436 | /-- Let `l` be injective and let `l.lowerCount Eq a` count the `b` with `ε a = ε b` and `l b < l a`. |
| 437 | For every exponent `γ` there are an integer `s` and a weight `ν`, monotone in `l` on each class of |
| 438 | `ε` (dominant), such that `t γ = s * t (ν + l.lowerCount Eq)` for every function `t` that is |
| 439 | antisymmetric under the permutations preserving `ε`. -/ |
| 440 | lemma exists_sign_isKDominant {l : HCParam ε} (hl : l.Injective) (γ : n → ℤ) : |
| 441 | ∃ (s : ℤ) (ν : n → ℤ), IsKDominant ε (-l) ν ∧ |
| 442 | ∀ t : (n → ℤ) → ℂ, IsWeylAntisymm ε t → t γ = s * t (ν + l.lowerCount Eq) := by |
| 443 | by_cases! h_inj : ∃ i j : n, ε i = ε j ∧ γ i = γ j ∧ i ≠ j |
| 444 | · -- An odd element of the Weyl group fixes `γ`, so `t γ = -t γ`. |
| 445 | obtain ⟨i, j, hε, hγ, hij⟩ := h_inj |
| 446 | refine ⟨0, 0, by simp [IsKDominant], fun t ht ↦ ?_⟩ |
| 447 | have h_neg : t γ = -t γ := by |
| 448 | simpa [show γ ∘ swap i j = γ from funext (apply_swap_eq_self hγ), hij] using |
| 449 | ht (swap i j) (funext (apply_swap_eq_self hε)) γ |
| 450 | simpa using self_eq_neg.1 h_neg |
| 451 | -- Otherwise `γ` is injective on each class of `ε`, and sorting makes it strictly monotone. |
| 452 | obtain ⟨w, hw, h_mono⟩ := exists_perm_comp_eq_and_apply_le_apply hl γ |
| 453 | have h_strict (a b : n) (hε : ε a = ε b) (hab : l a < l b) : (γ ∘ w) a < (γ ∘ w) b := by |
| 454 | refine (h_mono a b hε hab.le).lt_of_ne fun h_eq ↦ hab.ne (congrArg l (w.injective ?_)) |
| 455 | exact h_inj (w a) (w b) ((congrFun hw a).trans (hε.trans (congrFun hw b).symm)) h_eq |
| 456 | refine ⟨w.sign, γ ∘ w - l.lowerCount Eq, isKDominant_sub_lowerCount hl h_strict, fun t ht ↦ ?_⟩ |
| 457 | rw [sub_add_cancel, ht w hw] |
| 458 | simp [← mul_assoc, ← cast_mul] |
| 459 | |
| 460 | end LaurentAlternants |
| 461 | |
| 462 | /-! ## Characters of K-types and Weyl's character formula for K -/ |
| 463 | |
| 464 | section WeylCharacterK |
| 465 | |
| 466 | open Matrix Finset Complex DiscreteSeries Equiv HCParam BlockTriangular |
| 467 | |
| 468 | variable {n : Type} [Fintype n] [DecidableEq n] {ε : n → ℤˣ} {l ν : HCParam (n := n) ε} |
| 469 | |
| 470 | /-- The continuous function `g ↦ (∫ y, New.weightMinors ν (y⁻¹ g y)) / ∫ k, |New.weightMinors ν k|²` |
| 471 | on `K`, for Haar measure of mass one. It is defined for every `ν`. If `l` is injective and `ν` is |
| 472 | dominant for the order of `l`, it is the character of highest weight `ν` on the torus (see |
| 473 | `New.Orbital.weyl_character_kTypeChar`). -/ |
| 474 | noncomputable def _root_.New.HCParam.kTypeChar (ν : HCParam ε) : C(maxCompactU ε, ℂ) where |
| 475 | toFun g := (∫ y : maxCompactU ε, weightMinors ν (y⁻¹ * g * y).val ∂haarK ε) / ν.kTypeNormSq |
| 476 | continuous_toFun := by |
| 477 | -- an integral over the compact group `maxCompactU ε` depends continuously on the parameter `g` |
| 478 | rw [← (haarK ε).restrict_univ] |
| 479 | exact (continuous_parametric_integral_of_continuous (by fun_prop (disch := |
| 480 | simp [GeneralLinearGroup.det_ne_zero])) |
| 481 | isCompact_univ).div_const _ |
| 482 | |
| 483 | omit [DecidableEq n] in |
| 484 | /-- Let `q τ` enumerate the block `{i | ε i = τ}` by increasing `l`, and let `ν` be dominant: |
| 485 | `ν j ≤ ν i` if `ε i = ε j` and `l j < l i`. Then on each block, read by decreasing `l`, the weight |
| 486 | `ν` is a constant `e τ` plus the partition `New.diagramWeight` of `κ`: its value at `(τ, k)` is the |
| 487 | sum of `κ τ h` for `k < h < N τ`, where `N τ = rankAt _ τ` is the size of the block. -/ |
| 488 | lemma exists_eq_const_add_partition (hν : IsKDominant ε (-l) ν) |
| 489 | (q : ∀ τ : ℤˣ, Fin (Fintype.card {i : n // ε i = τ}) ≃ {i : n // ε i = τ}) |
| 490 | (hq : ∀ (τ : ℤˣ) (a b : Fin (Fintype.card {i : n // ε i = τ})), |
| 491 | l (q τ a) < l (q τ b) ↔ a < b) : |
| 492 | ∃ (κ : ℤˣ → ℕ → ℕ) (e : ℤˣ → ℤ), |
| 493 | ∀ (τ : ℤˣ) (k : ℕ) (hk : k < Fintype.card {i : n // ε i = τ}), |
| 494 | ν (q τ (Fin.rev ⟨k, hk⟩)) = |
| 495 | e τ + diagramWeight (rankAt fun τ : ℤˣ ↦ {i : n // ε i = τ}) κ (τ, k) := by |
| 496 | -- `g τ` lists the values of `ν` on the block, and `κ τ` their successive differences. |
| 497 | let g (τ : ℤˣ) (k : ℕ) : ℤ := (List.ofFn fun i ↦ ν (q τ i.rev)).getD k 0 |
| 498 | let κ (τ : ℤˣ) (k : ℕ) : ℕ := (g τ (k - 1) - g τ k).toNat |
| 499 | let μ : ℤˣ × ℕ →₀ ℕ := diagramWeight (rankAt fun τ : ℤˣ ↦ {i : n // ε i = τ}) κ |
| 500 | -- `μ (τ, k)` is the sum of the later differences, which telescopes by induction on `k`. |
| 501 | refine ⟨κ, fun τ ↦ g τ 0 - μ (τ, 0), fun τ k hk ↦ ?_⟩ |
| 502 | have h_value (j : ℕ) (hj : j < Fintype.card {i : n // ε i = τ}) : |
| 503 | g τ j = ν (q τ (Fin.rev ⟨j, hj⟩)) := by simp [g, hj] |
| 504 | rw [← h_value k hk] |
| 505 | induction k with |
| 506 | | zero => ring |
| 507 | | succ k ih => |
| 508 | have hk' : k < Fintype.card {i : n // ε i = τ} := by omega |
| 509 | have h_sign : ε (q τ (Fin.rev ⟨k + 1, hk⟩)) = ε (q τ (Fin.rev ⟨k, hk'⟩)) := |
| 510 | (q τ _).property.trans (q τ _).property.symm |
| 511 | have h_lt : l (q τ (Fin.rev ⟨k + 1, hk⟩)) < l (q τ (Fin.rev ⟨k, hk'⟩)) := |
| 512 | (hq τ _ _).2 (Fin.rev_lt_rev.2 k.lt_succ_self) |
| 513 | have h_antitone : g τ (k + 1) ≤ g τ k := by |
| 514 | simpa [h_value, hk, hk'] using hν _ _ h_sign.symm (neg_lt_neg h_lt) |
| 515 | have h_succ : μ (τ, k) = μ (τ, k + 1) + κ τ (k + 1) := by |
| 516 | simp [μ, GL.diagramWeight_eq_succ_add _ τ k, rankAt, hk] |
| 517 | have h_step : (μ (τ, k) : ℤ) = μ (τ, k + 1) + (g τ k - g τ (k + 1)) := by |
| 518 | simp [h_succ, κ, h_antitone] |
| 519 | linarith [ih hk'] |
| 520 | |
| 521 | /-- On an element `k` of `K`, which is block diagonal for `ε`, the function `New.weightMinors ν` |
| 522 | (the product of determinant powers and principal minors with highest weight `ν`) is the product of |
| 523 | the same functions on the diagonal blocks of `k`. -/ |
| 524 | lemma prod_weightMinors_toSquareBlock (k : maxCompactU ε) : |
| 525 | ∏ τ : ℤˣ, weightMinors (fun i : {i : n // ε i = τ} ↦ ν i) |
| 526 | ((k : Matrix n n ℂ).toSquareBlock ε τ) = weightMinors ν (k : Matrix n n ℂ) := by |
| 527 | set A : Matrix n n ℂ := (k : Matrix n n ℂ) |
| 528 | have h_tri : A.BlockTriangular ε := |
| 529 | fun i j hij ↦ mem_blockDiagAlg.1 (mem_maxCompactU.1 k.property) i j hij.ne' |
| 530 | have h_det : A.det = ∏ τ : ℤˣ, (A.toSquareBlock ε τ).det := h_tri.det_fintype |
| 531 | have h_ne (τ : ℤˣ) : (A.toSquareBlock ε τ).det ≠ 0 := |
| 532 | prod_ne_zero_iff.1 (h_det.symm.trans_ne k.val.val.det_ne_zero) τ (mem_univ τ) |
| 533 | -- each minor of `A` is the product of the corresponding minors of the blocks |
| 534 | have h_minor (t : ℤ) : principalMinor A (t ≤ ν ·) = |
| 535 | ∏ τ : ℤˣ, principalMinor (A.toSquareBlock ε τ) (fun i ↦ t ≤ ν i.val) := by |
| 536 | have h_minor_tri : |
| 537 | (1 - diagonal (fun i : n ↦ if t ≤ ν i then (1 : ℂ) else 0) * (1 - A)).BlockTriangular ε := |
| 538 | blockTriangular_one.sub ((blockTriangular_diagonal _).mul (blockTriangular_one.sub h_tri)) |
| 539 | simp only [principalMinor_eq_det, h_minor_tri.det_fintype] |
| 540 | congr! 2 with τ |
| 541 | ext i j |
| 542 | simp [toSquareBlock_def, Matrix.one_apply, Subtype.ext_iff] |
| 543 | let N : ℤ := ∑ j : n, |ν j| |
| 544 | have h_bounds : ∀ i : n, -N ≤ ν i ∧ ν i ≤ N := neg_sum_abs_le_and_le_sum_abs ν |
| 545 | calc ∏ τ : ℤˣ, weightMinors (fun i : {i : n // ε i = τ} ↦ ν i) (A.toSquareBlock ε τ) |
| 546 | _ = (∏ τ : ℤˣ, (A.toSquareBlock ε τ).det) ^ (-N) * |
| 547 | ∏ t ∈ Ioc (-N) N, ∏ τ : ℤˣ, |
| 548 | principalMinor (A.toSquareBlock ε τ) (fun i ↦ t ≤ ν i.val) := by |
| 549 | simp_rw [weightMinors_eq_det_zpow_mul_prod (h_ne _) _ _ (h_bounds ·.val), prod_mul_distrib, |
| 550 | prod_zpow] |
| 551 | rw [prod_comm] |
| 552 | _ = A.det ^ (-N) * ∏ t ∈ Ioc (-N) N, principalMinor A (t ≤ ν ·) := by simp_rw [h_det, h_minor] |
| 553 | _ = weightMinors ν A := |
| 554 | (weightMinors_eq_det_zpow_mul_prod k.val.val.det_ne_zero _ _ h_bounds).symm |
| 555 | |
| 556 | /-- Let `ε` be signs on a finite type `n`, `K = U(diag ε) ∩ U(n)`, and `ν : HCParam ε` a parameter. |
| 557 | Let `R` be a continuous matrix representation of `K` on a finite index type `ι` whose only commuting |
| 558 | matrices are scalars. If `New.weightMinors ν` is a matrix coefficient `k ↦ w ⬝ᵥ R k *ᵥ v` of `R` for |
| 559 | vectors `v` and `w` on `ι`, then the normalised conjugation mean `New.HCParam.kTypeChar ν` equals |
| 560 | the trace of `R` at every element `k` of `K`. -/ |
| 561 | private lemma kTypeChar_eq_trace_of_coeff {ι : Type} [Fintype ι] [DecidableEq ι] |
| 562 | (R : maxCompactU ε →* Matrix ι ι ℂ) (h_cont : Continuous fun k : maxCompactU ε ↦ R k) |
| 563 | {v w : ι → ℂ} (h_coeff : ∀ k : maxCompactU ε, w ⬝ᵥ R k *ᵥ v = weightMinors ν k) |
| 564 | (h_comm : ∀ A : Matrix ι ι ℂ, (∀ k : maxCompactU ε, A * R k = R k * A) → |
| 565 | A ∈ Set.range (scalar ι)) : |
| 566 | ∀ k : maxCompactU ε, ν.kTypeChar k = (R k).trace := by |
| 567 | -- The mean `A` of `R g (v wᵀ) R g⁻¹` over `K` commutes with `R`, hence is a scalar `z`; |
| 568 | -- `h_mean L` says that `L A` is the mean of `L (R g (v wᵀ) R g⁻¹)` for a linear map `L`. |
| 569 | obtain ⟨A, hA, h_mean⟩ := |
| 570 | exists_intertwining_mean (haarK ε) R R (vecMulVec v w) (by fun_prop) |
| 571 | obtain ⟨z, rfl⟩ : A ∈ Set.range (scalar ι) := h_comm A hA |
| 572 | have h_one : w ⬝ᵥ v = 1 := by simpa using h_coeff 1 |
| 573 | -- Apply the functionals `X ↦ tr (X R k)` and `X ↦ wᵀ X v` to the mean; the second takes the |
| 574 | -- value `z` on the scalar, because `wᵀ v = weightMinors ν 1 = 1`. |
| 575 | have h_integral (k : maxCompactU ε) : |
| 576 | ∫ g, weightMinors ν (g⁻¹ * k * g).val ∂haarK ε = z * (R k).trace := by |
| 577 | have h_trace_conj (g : maxCompactU ε) : |
| 578 | (R g * vecMulVec v w * R g⁻¹ * R k).trace = weightMinors ν (g⁻¹ * k * g).val := by |
| 579 | rw [← h_coeff] |
| 580 | simp [mul_vecMulVec, vecMulVec_mul, ← dotProduct_mulVec, dotProduct_comm (_ *ᵥ _)] |
| 581 | simpa [h_trace_conj, ← smul_one_eq_diagonal] using |
| 582 | h_mean (traceLinearMap _ ℂ ℂ ∘ₗ .mulRight ℂ (R k)) |
| 583 | have h_norm : ν.kTypeNormSq = z := by |
| 584 | -- the functional `X ↦ wᵀ X v` |
| 585 | let coeffMap : Matrix ι ι ℂ →ₗ[ℂ] ℂ := |
| 586 | (dotProductBilin ℂ ℂ w).comp ((mulVecBilin ℂ ℂ).flip v) |
| 587 | have h_normSq (g : maxCompactU ε) : |
| 588 | coeffMap (R g * vecMulVec v w * R g⁻¹) = (‖weightMinors ν g‖ ^ 2 : ℝ) := by |
| 589 | simp [coeffMap, mul_vecMulVec, vecMulVec_mul, vecMulVec_mulVec, ← dotProduct_mulVec, |
| 590 | weightMinors_unitary_inv, conj_mul', h_coeff] |
| 591 | rw [kTypeNormSq, ← integral_complex_ofReal, |
| 592 | ← show coeffMap (scalar _ z) = z by simp [coeffMap, ← smul_one_eq_diagonal, h_one], |
| 593 | ← h_mean coeffMap] |
| 594 | simp [h_normSq] |
| 595 | exact fun k ↦ by simp [↓h_integral, ← h_norm, ne_of_gt, kTypeChar] |
| 596 | |
| 597 | /-- Suppose that, with respect to numberings `p τ` of the blocks `{i | ε i = τ}`, the weight `ν` is |
| 598 | a constant `e τ` plus the partition `New.diagramWeight` of `κ` (whose `k`th part is the sum of the |
| 599 | `κ τ h` with `k < h < #block`). Here `New.HCParam.kTypeChar ν` is the function `g ↦ (∫ y, |
| 600 | weightMinors ν (y⁻¹ g y)) / ∫ k, |weightMinors ν k|²` on `K = U(diag ε) ∩ U(n)`, for Haar measure of |
| 601 | mass one; for dominant `ν` it is the character of highest weight `ν`. The claim is that at the |
| 602 | diagonal matrix `diagTorusK x` with entries `x`, `kTypeChar ν` is the trace of `New.schur κ` (the |
| 603 | matrix of the Schur module of `κ`), twisted on each block by the power `e τ` of the determinant. -/ |
| 604 | lemma kTypeChar_diagTorusK_eq_trace_schur {κ : ℤˣ → ℕ → ℕ} {e : ℤˣ → ℤ} |
| 605 | (p : ∀ τ : ℤˣ, {i : n // ε i = τ} ≃ Fin (Fintype.card {i : n // ε i = τ})) |
| 606 | (hν : ∀ (τ : ℤˣ) (i : {i : n // ε i = τ}), |
| 607 | ν i = e τ + diagramWeight (rankAt fun τ : ℤˣ ↦ {i : n // ε i = τ}) κ (τ, p τ i)) |
| 608 | (x : n → Circle) : |
| 609 | ν.kTypeChar (diagTorusK x) = (∏ τ : ℤˣ, ∏ a : {i : n // ε i = τ}, (x a : ℂ) ^ e τ) * |
| 610 | (schur κ fun τ : ℤˣ ↦ diagonal fun a : {i : n // ε i = τ} ↦ (x a : ℂ)).trace := by |
| 611 | -- On `K = ∏ U(m τ)`, `weightMinors ν` is a matrix coefficient of the irreducible representation |
| 612 | -- `R`, a product of twisted Schur modules. By Schur's lemma `kTypeChar` is the trace of `R`. |
| 613 | let m (τ : ℤˣ) : Type := {i // ε i = τ} |
| 614 | -- `blocks k` is the family of the diagonal blocks of `k` |
| 615 | let toParabolic : maxCompactU ε →* parabolic (R := ℂ) ε := |
| 616 | .mk' (fun k ↦ ⟨k.1.1, fun i j hij ↦ mem_blockDiagAlg.1 (mem_maxCompactU.1 k.2) i j hij.ne'⟩) |
| 617 | fun _ _ ↦ rfl |
| 618 | let blocks : maxCompactU ε →* ∀ τ, GL (m τ) ℂ := |
| 619 | .pi fun τ ↦ (blockHom ε τ).comp toParabolic |
| 620 | let R : maxCompactU ε →* Matrix (WeylIndexFamily m κ) (WeylIndexFamily m κ) ℂ := |
| 621 | (weylRep κ e).comp blocks |
| 622 | obtain ⟨v, w, h_coeff⟩ : ∃ v w : WeylIndexFamily m κ → ℂ, |
| 623 | ∀ k : maxCompactU ε, w ⬝ᵥ R k *ᵥ v = weightMinors ν k := by |
| 624 | let u : WeylIndexFamily m κ → ℂ := weylEval m κ (permArray fun τ i ↦ (p τ i : ℕ)) |
| 625 | refine ⟨u, u ᵥ* weylGramOver, fun k ↦ ?_⟩ |
| 626 | rw [← dotProduct_mulVec, ← prod_weightMinors_toSquareBlock k] |
| 627 | refine (weylRep_coeff_eq_prod_weightMinors p (blocks k)).trans (prod_congr rfl fun τ _ ↦ ?_) |
| 628 | exact congrArg₂ weightMinors (funext fun i ↦ (hν τ i).symm) rfl |
| 629 | have h_cont : Continuous fun k : maxCompactU ε ↦ R k := by |
| 630 | simp [R, blocks, toParabolic, weylRep, Units.smul_def, blockHom, toSquareBlock_def] |
| 631 | -- `try` is needed as the discharger is run on other side conditions as well |
| 632 | fun_prop (disch := try exact fun k ↦ .inl (blocks k _).det_ne_zero) |
| 633 | have h_comm (A : Matrix (WeylIndexFamily m κ) (WeylIndexFamily m κ) ℂ) |
| 634 | (hA : ∀ k : maxCompactU ε, A * R k = R k * A) : |
| 635 | A ∈ Set.range (scalar (WeylIndexFamily m κ)) := |
| 636 | mem_range_scalar_of_commute_schur fun g hg ↦ by |
| 637 | obtain ⟨y, -, rfl⟩ := exists_maxCompactU_of_blocks g hg |
| 638 | -- the two sides differ from those of `A * R y = R y * A` by a nonzero scalar |
| 639 | simpa [R, weylRep, Units.smul_def, GeneralLinearGroup.det_ne_zero, zpow_ne_zero] using! hA y |
| 640 | have h_trace (k : maxCompactU ε) : ν.kTypeChar k = (R k).trace := |
| 641 | kTypeChar_eq_trace_of_coeff R h_cont h_coeff h_comm k |
| 642 | have h_blocks (τ : ℤˣ) : |
| 643 | (blocks (diagTorusK x) τ : Matrix (m τ) (m τ) ℂ) = diagonal fun a : m τ ↦ (x a : ℂ) := by |
| 644 | ext |
| 645 | simp [m, blocks, toParabolic, blockHom, toSquareBlock_def, diagTorus, diagonal_apply, |
| 646 | Subtype.val_inj] |
| 647 | rw [h_trace] |
| 648 | simp [R, weylRep, Units.smul_def, GeneralLinearGroup.val_det_apply, h_blocks, m, prod_zpow] |
| 649 | |
| 650 | omit [DecidableEq n] in |
| 651 | /-- If `q τ` enumerates the block of sign `τ` by increasing `l`, then the indices of this block at |
| 652 | which `l` is below `l (q τ j)` are the `q τ i` with `i < j`. -/ |
| 653 | lemma filter_lt_eq_map_Iio |
| 654 | (q : ∀ τ : ℤˣ, Fin (Fintype.card {i : n // ε i = τ}) ≃ {i : n // ε i = τ}) |
| 655 | (hq : ∀ (τ : ℤˣ) (a b : Fin (Fintype.card {i : n // ε i = τ})), |
| 656 | l (q τ a) < l (q τ b) ↔ a < b) |
| 657 | (τ : ℤˣ) (j : Fin (Fintype.card {i : n // ε i = τ})) : |
| 658 | ({b : n | τ = ε b ∧ l b < l (q τ j)} : Finset n) = (Iio j).map (q τ).asEmbedding := by |
| 659 | ext b |
| 660 | simp only [mem_filter, mem_univ, true_and, mem_map] |
| 661 | constructor |
| 662 | · rintro ⟨rfl, h_lt⟩ |
| 663 | exact ⟨(q (ε b)).symm ⟨b, rfl⟩, by simpa [← hq] using h_lt, by simp⟩ |
| 664 | · rintro ⟨i, hi, rfl⟩ |
| 665 | exact ⟨(q τ i).property.symm, (hq τ i j).2 (mem_Iio.1 hi)⟩ |
| 666 | |
| 667 | /-- If `q τ` enumerates the block of sign `τ` by increasing `l`, then on the torus the product over |
| 668 | the compact roots is the product over the blocks of Vandermonde determinants. -/ |
| 669 | lemma torusEval_rootProd_eq_prod_vandermonde |
| 670 | (q : ∀ τ : ℤˣ, Fin (Fintype.card {i : n // ε i = τ}) ≃ {i : n // ε i = τ}) |
| 671 | (hq : ∀ (τ : ℤˣ) (a b : Fin (Fintype.card {i : n // ε i = τ})), |
| 672 | l (q τ a) < l (q τ b) ↔ a < b) |
| 673 | (x : n → Circle) : |
| 674 | torusEval x (l.rootProd Eq) = |
| 675 | ∏ τ : ℤˣ, (vandermonde ((fun a : {i : n // ε i = τ} ↦ (x a : ℂ)) ∘ q τ)).det := by |
| 676 | rw [torusEval_rootProd, ← Fintype.prod_fiberwise ε] |
| 677 | congr with τ |
| 678 | calc ∏ a : {i : n // ε i = τ}, ∏ b : n with ε a = ε b ∧ l b < l a, (x a - x b : ℂ) |
| 679 | _ = ∏ j : Fin (Fintype.card {i : n // ε i = τ}), ∏ i ∈ Iio j, |
| 680 | (x (q τ j) - x (q τ i) : ℂ) := by |
| 681 | rw [← (q τ).prod_comp] |
| 682 | simp [(q τ _).property, filter_lt_eq_map_Iio q hq] |
| 683 | _ = ∏ i : Fin (Fintype.card {i : n // ε i = τ}), ∏ j ∈ Ioi i, |
| 684 | (x (q τ j) - x (q τ i) : ℂ) := prod_comm' (by simp) |
| 685 | _ = _ := (det_vandermonde _).symm |
| 686 | |
| 687 | /-- Let `l` be injective and `ν` dominant for the order of `l`. Enumerate each block `{i | ε i = τ}` |
| 688 | by increasing `l`, through `q τ`. Then on the block, read by decreasing `l`, the weight `ν` is a |
| 689 | constant `e τ` plus the partition `New.diagramWeight` of some `κ` (value at `(τ, k)`: the sum of |
| 690 | `κ τ h` for `k < h < rankAt _ τ`, the block size), and on the torus `New.HCParam.kTypeChar ν` is the |
| 691 | trace of `New.schur κ` twisted by the powers `e τ` of the determinants of the blocks. -/ |
| 692 | lemma exists_kTypeChar_diagTorusK_eq_trace_schur (hl : l.Injective) (hν : IsKDominant ε (-l) ν) : |
| 693 | ∃ (q : ∀ τ : ℤˣ, Fin (Fintype.card {i : n // ε i = τ}) ≃ {i : n // ε i = τ}) |
| 694 | (κ : ℤˣ → ℕ → ℕ) (e : ℤˣ → ℤ), |
| 695 | (∀ (τ : ℤˣ) (a b : Fin (Fintype.card {i : n // ε i = τ})), l (q τ a) < l (q τ b) ↔ a < b) ∧ |
| 696 | (∀ (τ : ℤˣ) (j : Fin (Fintype.card {i : n // ε i = τ})), |
| 697 | ν (q τ j) = e τ + diagramWeight (rankAt fun τ : ℤˣ ↦ {i : n // ε i = τ}) κ (τ, j.rev)) ∧ |
| 698 | ∀ x : n → Circle, ν.kTypeChar (diagTorusK x) = |
| 699 | (∏ τ : ℤˣ, ∏ a : {i : n // ε i = τ}, (x a : ℂ) ^ e τ) * |
| 700 | (schur κ fun τ : ℤˣ ↦ diagonal fun a : {i : n // ε i = τ} ↦ (x a : ℂ)).trace := by |
| 701 | let m (τ : ℤˣ) : Type := {i // ε i = τ} |
| 702 | have h_enum (τ : ℤˣ) : ∃ q : Fin (Fintype.card (m τ)) ≃ m τ, |
| 703 | ∀ a b : Fin (Fintype.card (m τ)), l (q a).val < l (q b).val ↔ a < b := |
| 704 | exists_equiv_fin_lt_iff (n := m τ) (hl.comp Subtype.val_injective) |
| 705 | choose q hq using h_enum |
| 706 | obtain ⟨κ, e, h_partition⟩ := exists_eq_const_add_partition hν q hq |
| 707 | have hν_q (τ : ℤˣ) (j : Fin (Fintype.card (m τ))) : |
| 708 | ν (q τ j).val = e τ + diagramWeight (rankAt m) κ (τ, j.rev) := by |
| 709 | simpa only [Fin.eta, Fin.rev_rev] using h_partition τ j.rev j.rev.isLt |
| 710 | -- `(q τ).symm.trans Fin.revPerm` numbers the block by decreasing `l`. |
| 711 | exact ⟨q, κ, e, hq, hν_q, kTypeChar_diagTorusK_eq_trace_schur |
| 712 | (fun τ ↦ (q τ).symm.trans Fin.revPerm) fun τ i ↦ by simpa using hν_q τ ((q τ).symm i)⟩ |
| 713 | |
| 714 | /-- If `l` is injective and `ν` is dominant for the order of `l`, then on the diagonal torus |
| 715 | `New.HCParam.kTypeChar ν` is given by a Laurent polynomial. -/ |
| 716 | lemma exists_kTypeChar_diagTorusK_eq_torusEval (hl : l.Injective) (hν : IsKDominant ε (-l) ν) : |
| 717 | ∃ P : AddMonoidAlgebra ℂ (n → ℤ), ∀ x : n → Circle, |
| 718 | ν.kTypeChar (diagTorusK x) = torusEval x P := by |
| 719 | -- The character is a twisted trace of `schur κ`, which on diagonal matrices is diagonal with |
| 720 | -- monomial entries. |
| 721 | obtain ⟨-, κ, e, -, -, h_char⟩ := exists_kTypeChar_diagTorusK_eq_trace_schur hl hν |
| 722 | let m (τ : ℤˣ) : Type := {i // ε i = τ} |
| 723 | let P : AddMonoidAlgebra ℂ (n → ℤ) := |
| 724 | ∑ i : WeylIndexFamily m κ, ∏ τ, ∏ a : m τ, .single (Pi.single a.1 (e τ + tableauWeight i τ a)) 1 |
| 725 | refine ⟨P, fun x ↦ ?_⟩ |
| 726 | have h_single (a : n) (c : ℤ) : torusEval x (.single (Pi.single a c) 1) = (x a : ℂ) ^ c := by |
| 727 | simp [torusEval, Pi.single_apply] |
| 728 | have h_value : torusEval x P = |
| 729 | ∑ i : WeylIndexFamily m κ, ∏ τ, ∏ a : m τ, (x a.val : ℂ) ^ (e τ + tableauWeight i τ a) := by |
| 730 | simp only [P, map_sum, map_prod, h_single] |
| 731 | rw [h_char, h_value, schur_diagonal, trace_diagonal, mul_sum] |
| 732 | simp only [zpow_add₀ (Circle.coe_ne_zero _), zpow_natCast, prod_mul_distrib, m] |
| 733 | |
| 734 | /-- Weyl's character formula for `K` at a point `x` of the torus. Let `l` be injective and `ν` |
| 735 | dominant for the order of `l`. The product of `x a - x b` over `ε a = ε b`, `l b < l a`, times |
| 736 | `New.HCParam.kTypeChar ν` at the diagonal matrix with entries `x`, is |
| 737 | `∑ sgn(w) x ^ ((ν + δ) ∘ w)`, where `δ a` is the number of such `b` and `w` runs over the |
| 738 | permutations preserving `ε`. -/ |
| 739 | lemma torusEval_rootProd_mul_kTypeChar_eq_alternant (hl : l.Injective) |
| 740 | (hν : IsKDominant ε (-l) ν) (x : n → Circle) : |
| 741 | torusEval x (l.rootProd Eq) * ν.kTypeChar (diagTorusK x) = |
| 742 | torusEval x (alternant ε (ν + l.lowerCount Eq)) := by |
| 743 | -- The character is a twisted trace of Schur modules, and `weyl_character` (the formula for |
| 744 | -- Schur modules of `GL`) applies to each block. |
| 745 | set δ : n → ℤ := l.lowerCount Eq |
| 746 | obtain ⟨q, κ, e, hq, hν_q, h_char⟩ := exists_kTypeChar_diagTorusK_eq_trace_schur hl hν |
| 747 | -- The alternant over the Weyl group of `K` is the determinant of a block diagonal matrix `Z`, |
| 748 | -- and the denominator is a product of Vandermonde determinants. |
| 749 | let Z : Matrix n n ℂ := of fun a b ↦ if ε a = ε b then (x a : ℂ) ^ (ν + δ) b else 0 |
| 750 | have h_tri : Z.BlockTriangular ε := fun a b hab ↦ ite_eq_right hab.ne' |
| 751 | have h_alt : torusEval x (alternant ε (ν + δ)) = ∏ τ : ℤˣ, (Z.toSquareBlock ε τ).det := |
| 752 | (torusEval_alternant x).trans h_tri.det_fintype |
| 753 | rw [torusEval_rootProd_eq_prod_vandermonde q hq, h_char, mul_rotate', weyl_character q, |
| 754 | ← prod_mul_distrib, h_alt] |
| 755 | -- In each block, move the factor `∏ a, x a ^ e τ` into the determinant and compare entries. |
| 756 | congr with τ |
| 757 | rw [← det_submatrix_equiv_self (q τ), ← (q τ).prod_comp, ← det_mul_column] |
| 758 | have hδ_q (j : Fin (Fintype.card {i : n // ε i = τ})) : δ (q τ j) = (j : ℤ) := by |
| 759 | simp [δ, lowerCount, (q τ j).property, filter_lt_eq_map_Iio q hq] |
| 760 | congr with i j |
| 761 | simp [toSquareBlock_def, Z, (q τ _).property, hν_q, hδ_q, zpow_add₀, pow_add, mul_assoc] |
| 762 | |
| 763 | /-- Weyl's character formula for `K`. Let `l` be injective and `ν` dominant for `K` in the order of |
| 764 | `l`: `ν b ≤ ν a` if `ε a = ε b` and `l b < l a` (this is `New.IsKDominant ε (-l) ν`). Let `χ x` be |
| 765 | `New.HCParam.kTypeChar ν` at the diagonal matrix with entries `x`. (a) `χ` is given by a Laurent |
| 766 | polynomial in `x`; (b) `∏ (x a - x b) * χ x = ∑ sgn(w) x ^ ((ν + δ) ∘ w)`, the product over |
| 767 | `ε a = ε b`, `l b < l a`, with `δ a` the number of such `b`, the sum over the permutations |
| 768 | preserving `ε`. -/ |
| 769 | lemma weyl_character_kTypeChar (hl : l.Injective) (hν : IsKDominant ε (-l) ν) : |
| 770 | (∃ P : AddMonoidAlgebra ℂ (n → ℤ), ∀ x : n → Circle, |
| 771 | ν.kTypeChar (diagTorusK x) = torusEval x P) ∧ |
| 772 | ∀ x : n → Circle, |
| 773 | torusEval x (l.rootProd Eq) * ν.kTypeChar (diagTorusK x) = |
| 774 | torusEval x (alternant ε (ν + l.lowerCount Eq)) := |
| 775 | ⟨exists_kTypeChar_diagTorusK_eq_torusEval hl hν, |
| 776 | torusEval_rootProd_mul_kTypeChar_eq_alternant hl hν⟩ |
| 777 | |
| 778 | /-- Weyl's denominator formula for `K`: for injective `l`, the product of `x a - x b` over |
| 779 | `ε a = ε b`, `l b < l a` is `∑ sgn(w) x ^ (δ ∘ w)` over the permutations `w` that preserve |
| 780 | `ε`, where `δ a` is the number of such `b`. -/ |
| 781 | lemma weyl_denominator (hl : l.Injective) : l.rootProd Eq = alternant ε (l.lowerCount Eq) := by |
| 782 | -- the case `ν = 0` of the character formula, where the character is `1` |
| 783 | refine eq_of_torusEval_eq fun x ↦ ?_ |
| 784 | have h_char : kTypeChar (0 : HCParam ε) (diagTorusK x) = 1 := by |
| 785 | simp [kTypeNormSq, kTypeChar, GeneralLinearGroup.det_ne_zero, Pi.zero_def] |
| 786 | simpa [h_char] using |
| 787 | torusEval_rootProd_mul_kTypeChar_eq_alternant (ν := 0) hl (by simp [IsKDominant]) x |
| 788 | |
| 789 | /-- Every element of the compact group `K` is conjugate in `K` to an element of the diagonal |
| 790 | torus. -/ |
| 791 | lemma exists_conj_diagTorusK (k : maxCompactU ε) : |
| 792 | ∃ (y : maxCompactU ε) (x : n → Circle), y * diagTorusK x * y⁻¹ = k := by |
| 793 | -- Write `k = exp X` with `X` block diagonal, and diagonalise the Hermitian blocks of `-I • X` |
| 794 | -- by unitary matrices; these assemble to the conjugating element `y`. |
| 795 | obtain ⟨X, hXk, hX⟩ := exists_expU_eq_maxCompactU k |
| 796 | set H : Matrix n n ℂ := -Complex.I • X.val with hH |
| 797 | have h_herm (t : ℤˣ) : (H.toSquareBlock ε t).IsHermitian := by |
| 798 | ext ⟨i, hi⟩ ⟨j, hj⟩ |
| 799 | simpa [hH, hi, hj, signMatrix, add_eq_zero_iff_eq_neg, field, toSquareBlock_def] using |
| 800 | congrFun (congrFun (X.property : X.valᴴ * signMatrix ε + signMatrix ε * X.val = 0) i) j |
| 801 | let U (t : ℤˣ) : Matrix {i // ε i = t} {i // ε i = t} ℂ := (h_herm t).eigenvectorUnitary.val |
| 802 | obtain ⟨y, hy, -⟩ := exists_maxCompactU_of_blocks U |
| 803 | fun t ↦ Unitary.coe_star_mul_self (h_herm t).eigenvectorUnitary |
| 804 | -- `θ i` is the eigenvalue with index `i` of the block that contains `i` |
| 805 | let θ (i : n) : ℝ := (h_herm (ε i)).eigenvalues ⟨i, rfl⟩ |
| 806 | let e : Matrix (Σ t : ℤˣ, {i // ε i = t}) (Σ t : ℤˣ, {i // ε i = t}) ℂ ≃+* Matrix n n ℂ := |
| 807 | reindexRingEquiv ℂ (sigmaFiberEquiv ε) |
| 808 | have h_spectral : H.toSquareBlock ε = |
| 809 | fun t ↦ U t * diagonal (fun i ↦ ((h_herm t).eigenvalues i : ℂ)) * star (U t) := |
| 810 | funext fun t ↦ (h_herm t).spectral_theorem |
| 811 | -- `H` is block diagonal, as `X` is, so it is recovered from its blocks |
| 812 | have h_recover : e (blockDiagonal' (H.toSquareBlock ε)) = H := by |
| 813 | refine e.eq_symm_apply.1 (ext fun ⟨s, i, hi⟩ ⟨t, j, hj⟩ ↦ ?_) |
| 814 | by_cases hst : s = t |
| 815 | · subst hst |
| 816 | simp [e, sigmaFiberEquiv, toSquareBlock_def] |
| 817 | · have h_off : X.val i j = 0 := mem_blockDiagAlg.1 hX i j (by rwa [hi, hj]) |
| 818 | simp [e, hH, sigmaFiberEquiv, blockDiagonal'_apply_ne, hst, h_off] |
| 819 | have h_eigenvalues : e (blockDiagonal' fun t ↦ diagonal fun i ↦ ((h_herm t).eigenvalues i : ℂ)) = |
| 820 | diagonal fun i ↦ (θ i : ℂ) := by |
| 821 | simp [e, θ, submatrix_diagonal_equiv, blockDiagonal'_diagonal] |
| 822 | -- on both sides the index of `i` within its block is `⟨i, rfl⟩` |
| 823 | exact fun i ↦ rfl |
| 824 | have hy_eq : e (blockDiagonal' U) = (y : Matrix n n ℂ) := hy.symm |
| 825 | have hy_star : e (blockDiagonal' fun t ↦ star (U t)) = (y : Matrix n n ℂ)⁻¹ := by |
| 826 | simp [e, hy, ↓maxCompactU.coe_inv, star_eq_conjTranspose] |
| 827 | have h_conj : H = |
| 828 | (y : Matrix n n ℂ) * diagonal (fun i ↦ (θ i : ℂ)) * (y : Matrix n n ℂ)⁻¹ := by |
| 829 | rw [← h_recover, h_spectral, blockDiagonal'_mul, blockDiagonal'_mul, map_mul, map_mul, hy_eq, |
| 830 | h_eigenvalues, hy_star] |
| 831 | have h_diag : (X : Matrix n n ℂ) = |
| 832 | (y : Matrix n n ℂ) * diagonal (fun i ↦ θ i * Complex.I) * (y : Matrix n n ℂ)⁻¹ := by |
| 833 | rw [show (X : Matrix n n ℂ) = Complex.I • H by simp [hH, smul_smul], h_conj, ← smul_mul_assoc, |
| 834 | ← mul_smul_comm, ← diagonal_smul] |
| 835 | simp [Pi.smul_def, mul_comm Complex.I] |
| 836 | -- exponentiate: `exp` commutes with conjugation and acts entrywise on a diagonal matrix |
| 837 | refine ⟨y, fun i ↦ Circle.exp (θ i), (Subtype.ext (Subtype.ext (Units.ext ?_))).symm⟩ |
| 838 | simp [← hXk, h_diag, exp_eq_exp_ℂ, ← Pi.exp_def, ← exp_diagonal, ← Matrix.exp_conj, diagTorus] |
| 839 | |
| 840 | end WeylCharacterK |
| 841 | |
| 842 | end New.Orbital |
| 843 | |
| 844 | /-! |
| 845 | ## Weyl's dimension formula for U(n) |
| 846 | |
| 847 | `New.weyl_dimension_formula` evaluates `Λ.kTypeNormSq = ∫ |New.weightMinors Λ k|² dk` over `U(n)` |
| 848 | (all signs `1`). In the classical theory this is the reciprocal of the dimension of the |
| 849 | representation of highest weight `Λ = λ - ρ`, where `ρ` is half the sum of the positive roots. |
| 850 | -/ |
| 851 | |
| 852 | section WeylDimension |
| 853 | |
| 854 | open Finset Complex Nat New Orbital AddCircle HCParam Matrix |
| 855 | /-- For an injective `l` with all signs `1`, the numbers `δ i = l.lowerCount Eq i` of the `j` with |
| 856 | `l j < l i` run through `0, …, n - 1`, so their Vandermonde product, taken in the order of `l`, is |
| 857 | `∏_{i < n} i !`. -/ |
| 858 | lemma New.HCParam.prod_prod_lowerCount_sub {n : Type} [Fintype n] |
| 859 | {l : HCParam (1 : n → ℤˣ)} (hl : l.Injective) : |
| 860 | ∏ i : n, ∏ j : n with l j < l i, ((l.lowerCount Eq i : ℂ) - l.lowerCount Eq j) = |
| 861 | ∏ i ∈ range (Fintype.card n), (i ! : ℂ) := by |
| 862 | obtain ⟨e, he⟩ := exists_equiv_fin_lt_iff hl |
| 863 | have h_map (a : Fin (Fintype.card n)) : |
| 864 | ({b | l b < l (e a)} : Finset n) = (Iio a).map e.toEmbedding := by |
| 865 | ext b |
| 866 | obtain ⟨c, rfl⟩ := e.surjective b |
| 867 | simp [he] |
| 868 | have h_count (a : Fin (Fintype.card n)) : l.lowerCount Eq (e a) = (a : ℤ) := by |
| 869 | simp [lowerCount, h_map] |
| 870 | have h_factorial (a : ℕ) : ∏ k ∈ range a, ((a : ℂ) - k) = a ! := by |
| 871 | rw [prod_range_natCast_sub, ← descFactorial_eq_prod_range, descFactorial_self] |
| 872 | calc _ = ∏ a : Fin (Fintype.card n), ∏ k ∈ range (a : ℕ), ((a : ℂ) - k) := by |
| 873 | simp [← e.prod_comp, h_map, h_count, ← Iio_eq_range, ← Fin.map_valEmbedding_Iio] |
| 874 | _ = _ := by simp only [h_factorial, Fin.prod_univ_eq_prod_range (fun i : ℕ ↦ (i ! : ℂ))] |
| 875 | |
| 876 | /-- Weyl's dimension formula for `U(n)`. Let `l = 2λ` be a parameter for all signs `1` (distinct |
| 877 | entries congruent to `n - 1` mod 2; the gap `h` plays no role as all signs are equal) and |
| 878 | `Λ = l.lowestKType = λ - ρ`. The number `Λ.kTypeNormSq` is the integral of `|New.weightMinors Λ k|²` |
| 879 | over `U(n)` for Haar measure of mass one, and `New.weylDimensionPoly l` is the product of `λᵢ - λⱼ` |
| 880 | over `λⱼ < λᵢ`, divided by `∏_{i < n} i !`. The statement says that the inverse of the former is |
| 881 | the latter. By Schur orthogonality the inverse of the former is the dimension of the representation |
| 882 | of highest weight `Λ` (compare `New.IsHCParam.prod_formalDegree`). -/ |
| 883 | lemma New.weyl_dimension_formula {n : Type} [Fintype n] [DecidableEq n] {l : HCParam (1 : n → ℤˣ)} |
| 884 | {h : ℕ} (h_gap : l.HasGap h) : |
| 885 | l.lowestKType.kTypeNormSq⁻¹ = weylDimensionPoly l := by |
| 886 | -- Compare the denominator formula and the character formula for `Λ` along two one-parameter |
| 887 | -- subgroups of the torus, divide by a power of `t` and let `t → 0`. |
| 888 | -- `δ i` counts the `j` with `l j < l i`; `x a t` has entries `exp (I t aᵢ)`; `χ ν` is the |
| 889 | -- character on the torus; `Δ` is the Vandermonde product in the order of `l`. |
| 890 | set Λ : HCParam (1 : n → ℤˣ) := l.lowestKType |
| 891 | let δ : n → ℤ := l.lowerCount Eq |
| 892 | let x (a : n → ℤ) (t : ℝ) (i : n) : Circle := Circle.exp t ^ a i |
| 893 | let χ (ν : HCParam (1 : n → ℤˣ)) (y : n → Circle) : ℂ := ν.kTypeChar (diagTorusK y) |
| 894 | let Δ (a : n → ℂ) : ℂ := ∏ i, ∏ j with l j < l i, (a i - a j) |
| 895 | have hΔ (y : n → Circle) : Orbital.torusEval y (l.rootProd Eq) = Δ (y ·) := by |
| 896 | simp [torusEval_rootProd, Δ] |
| 897 | -- Both sides are the determinant of `exp (I t (Λ + δ)ᵢ δⱼ)`, one of them transposed: the left by |
| 898 | -- the denominator formula, the right by the character formula. |
| 899 | have h_swap (t : ℝ) : Δ (x (Λ + δ) t ·) = Δ (x δ t ·) * χ Λ (x δ t) := by |
| 900 | rw [← hΔ, ← hΔ, |
| 901 | torusEval_rootProd_mul_kTypeChar_eq_alternant h_gap.injective h_gap.isKDominant_lowestKType, |
| 902 | weyl_denominator h_gap.injective, torusEval_alternant, torusEval_alternant, ← det_transpose] |
| 903 | simp [x, δ, Λ, transpose, zpow_comm] |
| 904 | -- Each factor `exp (I t aᵢ) - exp (I t aⱼ)`, divided by `t`, tends to `I (aᵢ - aⱼ)`. |
| 905 | have h_lim (a : n → ℤ) : Filter.Tendsto (fun t : ℝ ↦ (∏ i, (t : ℂ) ^ #{j | l j < l i})⁻¹ * |
| 906 | Δ (x a t ·)) (nhdsWithin 0 {0}ᶜ) (nhds ((∏ i, Complex.I ^ #{j | l j < l i}) * Δ (a ·))) := by |
| 907 | have h_exp (c : ℂ) : HasDerivAt (fun t : ℝ ↦ cexp (c * (t * Complex.I))) (c * Complex.I) 0 := by |
| 908 | simpa using (((hasDerivAt_id 0).ofReal_comp.mul_const Complex.I).const_mul c).cexp |
| 909 | have h_slope (i j : n) : Filter.Tendsto (fun t : ℝ ↦ (t : ℂ)⁻¹ * (x a t i - x a t j)) |
| 910 | (nhdsWithin 0 {0}ᶜ) (nhds (Complex.I * (a i - a j))) := by |
| 911 | simpa [exp_intCast_mul, mul_comm _ Complex.I, ← mul_sub, x] using |
| 912 | ((h_exp (a i)).sub (h_exp (a j))).tendsto_slope_zero |
| 913 | simpa [prod_mul_distrib] using |
| 914 | tendsto_finsetProd univ fun i _ ↦ tendsto_finsetProd {j | l j < l i} fun j _ ↦ h_slope i j |
| 915 | -- The limits of the two sides of `h_swap` agree, and at the identity `χ Λ 1 = Λ.kTypeNormSq⁻¹`. |
| 916 | have h_cont : Continuous fun t ↦ χ Λ (x δ t) := by fun_prop |
| 917 | have h_scaled : Filter.Tendsto |
| 918 | (fun t : ℝ ↦ (∏ i, (t : ℂ) ^ #{j | l j < l i})⁻¹ * Δ (x δ t ·) * χ Λ (x δ t)) |
| 919 | (nhdsWithin 0 {0}ᶜ) (nhds ((∏ i, Complex.I ^ #{j | l j < l i}) * Δ ((Λ + δ) ·))) := |
| 920 | (h_lim (Λ + δ)).congr fun t ↦ by rw [h_swap, mul_assoc] |
| 921 | have h_limit_eq : Δ (δ ·) * (Λ.kTypeNormSq : ℂ)⁻¹ = Δ ((Λ + δ) ·) := by |
| 922 | have h_id : χ Λ (x δ 0) = (Λ.kTypeNormSq : ℂ)⁻¹ := by |
| 923 | simp [χ, kTypeChar, x, diagTorusK, diagTorus] |
| 924 | -- cancel the powers of `I` |
| 925 | simpa [h_id, prod_eq_zero_iff, mul_assoc] using |
| 926 | tendsto_nhds_unique ((h_lim δ).mul h_cont.continuousWithinAt) h_scaled |
| 927 | -- `Λ + δ` differs from `l / 2` by the constant `(n - 1) / 2`. |
| 928 | have h_shift (i : n) : (2 * (Λ + δ) i + 1 : ℂ) = l i + Fintype.card n := by |
| 929 | have h_two : 2 * Λ i = l i - (#{j | l j < l i} - #{j | l i < l j}) := by |
| 930 | simpa [twoRho] using two_mul_lowestKType h_gap i |
| 931 | norm_cast |
| 932 | rw [Pi.add_apply, show δ i = #{j | l j < l i} by simp [δ, lowerCount], |
| 933 | ← card_lt_add_card_gt_add_one h_gap.injective i] |
| 934 | omega |
| 935 | -- `δ` is a permutation of `0, …, n - 1`, so its Vandermonde product is `∏ i !`. |
| 936 | rw [weylDimensionPoly, eq_div_iff (by positivity), ← ofReal_inj, mul_comm] |
| 937 | push_cast [← HCParam.prod_prod_lowerCount_sub h_gap.injective] |
| 938 | refine h_limit_eq.trans (prod_congr rfl fun i _ ↦ prod_congr rfl fun j _ ↦ ?_) |
| 939 | linear_combination (h_shift i - h_shift j) / 2 |
| 940 | |
| 941 | end WeylDimension |
| 942 | |
| 943 | /-! |
| 944 | ## Weyl's character formula at regular elements via Vandermonde determinants |
| 945 | |
| 946 | * `New.Variety.det_zpow_add`: a common integer shift of the exponents comes out of a generalised |
| 947 | Vandermonde determinant in nonzero numbers. |
| 948 | * `New.Variety.trace_weylRep`: the character formula at elements with distinct eigenvalues. |
| 949 | -/ |
| 950 | |
| 951 | section WeylTrace |
| 952 | |
| 953 | open Matrix Finset |
| 954 | |
| 955 | namespace New.Variety |
| 956 | |
| 957 | variable {a : ℕ} {ι : Type} [Fintype ι] |
| 958 | |
| 959 | /-- If the `r i` are nonzero, a common integer shift `d` of the exponents comes out of |
| 960 | `det (r i ^ (d + k j))` as the factor `(∏ r i) ^ d`. -/ |
| 961 | lemma det_zpow_add {K m : Type*} [Field K] [Fintype m] [DecidableEq m] |
| 962 | {r : m → K} (h_ne : ∀ i : m, r i ≠ 0) (d : ℤ) (k : m → ℤ) : |
| 963 | (of fun i j : m ↦ r i ^ (d + k j)).det = |
| 964 | univ.prod r ^ d * (of fun i j : m ↦ r i ^ k j).det := by |
| 965 | -- Row `i` has the factor `r i ^ d`. |
| 966 | simp only [zpow_add₀ (h_ne _), ← prod_zpow] |
| 967 | exact det_mul_column _ _ |
| 968 | |
| 969 | /-- Weyl's character formula: if each g_v in GL_a(ℂ) has distinct eigenvalues x_{v,i}, the trace of |
| 970 | `New.weylRep κ e` (the Schur module of κ twisted by the powers e_v of the determinants) at g times |
| 971 | ∏_v det(x_{v,i}^j) equals ∏_v det(x_{v,i}^(e_v + λ_{v,a−1−j} + j)), with 0 ≤ i, j < a, λ_{v,k} the |
| 972 | sum of the κ v h for k < h < a (`rankAt fun _ ↦ Fin a` gives every block the size a), and λ the |
| 973 | weight `New.diagramWeight` of κ. |
| 974 | |
| 975 | Known result: Weyl's character formula for GL_a. -/ |
| 976 | lemma trace_weylRep [DecidableEq ι] (κ : ι → ℕ → ℕ) (e : ι → ℤ) {g : ι → GL (Fin a) ℂ} |
| 977 | {x : ι → Fin a ↪ ℂ} (hg : ∀ (v : ι) (i : Fin a), (g v).val.charpoly.IsRoot (x v i)) : |
| 978 | (weylRep κ e g).trace * ∏ v : ι, (vandermonde (x v)).det = |
| 979 | ∏ v : ι, (of fun i j : Fin a ↦ |
| 980 | x v i ^ (e v + ↑(diagramWeight (rankAt fun _ : ι ↦ Fin a) κ (v, j.rev) + j))).det := by |
| 981 | -- diagonalise each `g v`; the trace is invariant under conjugation |
| 982 | have h_eigen (v : ι) : ∃ h : GL (Fin a) ℂ, h.val * diagonal (x v) = (g v).val * h.val := |
| 983 | isConj_diagonal_of_isRoot_charpoly (hg v) |
| 984 | choose h h_diag using h_eigen |
| 985 | have h_trace : (weylRep κ e g).trace = |
| 986 | (∏ v : ι, (univ.prod (x v)) ^ e v) * (schur κ fun v ↦ diagonal (x v)).trace := by |
| 987 | have h_conj (v : ι) : ((h⁻¹ * (g * h)) v).val = diagonal (x v) := by simp [← h_diag] |
| 988 | rw [← mul_inv_cancel_right g h, map_mul, trace_mul_comm, ← map_mul] |
| 989 | generalize h⁻¹ * (g * h) = g' at h_conj ⊢ |
| 990 | simp [weylRep, Units.smul_def, h_conj] |
| 991 | -- the formula for diagonal matrices, and the shift by `e v` in each determinant |
| 992 | have h_diagonal : (schur κ fun v : ι ↦ diagonal (x v)).trace * ∏ v : ι, (vandermonde (x v)).det = |
| 993 | ∏ v : ι, (of fun i j : Fin a ↦ |
| 994 | x v i ^ (diagramWeight (rankAt fun _ : ι ↦ Fin a) κ (v, j.rev) + j)).det := |
| 995 | weyl_character (fun _ : ι ↦ Equiv.refl (Fin a)) _ |
| 996 | rw [h_trace, mul_assoc, h_diagonal, ← prod_mul_distrib] |
| 997 | refine prod_congr rfl fun v _ ↦ ?_ |
| 998 | rw [det_zpow_add fun i ↦ |
| 999 | spectrum.ne_zero_of_mem_of_unit (mem_spectrum_of_isRoot_charpoly (hg v i))] |
| 1000 | norm_cast |
| 1001 | |
| 1002 | end New.Variety |
| 1003 | |
| 1004 | end WeylTrace |
| 1005 | |
| 1006 | end |