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 Mathlib.Analysis.CStarAlgebra.Matrix |
| 4 | import Mathlib.Algebra.Module.StablyFree.Basic |
| 5 | import Mathlib.Algebra.Order.Star.Int |
| 6 | import Mathlib.AlgebraicTopology.FundamentalGroupoid.SimplyConnected |
| 7 | import Mathlib.Analysis.Analytic.Polynomial |
| 8 | import Mathlib.Analysis.CStarAlgebra.Exponential |
| 9 | import Mathlib.Analysis.Convex.Contractible |
| 10 | import Mathlib.LinearAlgebra.Matrix.FiniteDimensional |
| 11 | import Mathlib.RingTheory.Etale.Weakly |
| 12 | import Mathlib.RingTheory.SimpleRing.Principal |
| 13 | import Mathlib.RingTheory.TotallySplit |
| 14 | public import Lib.GLn.SchurModule.TensorModel |
| 15 | import Lib.GLn.SchurModule.SchurMatrix |
| 16 | import Lib.General.Analysis.HolomorphicIntegrals |
| 17 | import Lib.General.Groups.CongruenceSubgroups |
| 18 | |
| 19 | /-! |
| 20 | # The Weyl kernel and its Gram matrix: the hook number bound, positivity, Schur's lemma |
| 21 | |
| 22 | This file studies the reproducing kernel `K(x, y) = f(yᵀ x)` (`New.weylKernel`), where |
| 23 | `f = New.highestPoly` is the product of leading principal minors. `G = New.weylGram` is the integer |
| 24 | Gram matrix of `K` in the basis `b_i = New.nablaBasis` (products of minors) of the semi-invariants |
| 25 | `New.nablaFamily`. The hook number `New.hookNumber κ N = ⟨f, f⟩ = f(∂) f(0)` is the Fock pairing |
| 26 | of `f` with itself. It is positive and at most `(L ^ L) ^ 3` when the diagrams have at most `L` |
| 27 | boxes in total (`New.hookNumber_pos`, `New.hookNumber_le`). This file also proves that the unitary |
| 28 | group is Zariski dense, and derives Schur's lemma for the Schur matrices. |
| 29 | |
| 30 | ## Main definitions and results |
| 31 | |
| 32 | * `New.toPoly_weylEval`, `New.toPoly_schur`: `New.toPoly`, `ξ ↦ ∑ (G ξ)_i b_i`, sends the vector |
| 33 | `ev_y = (b_i(y))` (`New.weylEval`) to `K(·, y)`. It turns the Schur matrix of `z` into |
| 34 | substitution of `zᵀ`, applied after multiplying by the determinant powers `New.detPow` with |
| 35 | exponents `New.schurDetExp`. |
| 36 | * `New.fillingMatrix_transpose_mul_self`: `G` is the matrix of the form restricted from tensors. |
| 37 | Hence `G` is symmetric, positive definite, and makes the Schur matrices of `g` and `gᵀ` adjoint |
| 38 | (`New.weylGram_isSymm`, `New.weylGramOver_posDef`, `New.weylGramOver_mul_schur`). |
| 39 | * `New.mem_range_scalar_of_commute_schur`: a matrix that commutes with `New.schur κ g` for all |
| 40 | unitary `g` is scalar. |
| 41 | |
| 42 | Notions from other files: |
| 43 | * `New.WeylIndexFamily n κ`: families that choose, for each place `τ`, a standard filling with rows |
| 44 | `n τ`; they index the basis `b_i`. |
| 45 | * `New.schur κ z`: the Schur matrix `S_κ(z)` of matrices `z τ` of size `n' τ × n τ`. Row `i` |
| 46 | holds the coordinates of `b'_i(z y)` in the products `b_j(y) · ∏_τ det(y_τ)^{d_τ}`, where `b'` is |
| 47 | the basis for the rows `n'` and `d = New.schurDetExp n n' κ`. |
| 48 | |
| 49 | ## Relation to the literature |
| 50 | |
| 51 | Known; see `Lib.GLn.SchurModule.SchurNorm` and `Lib.GLn.Dual` for sources. |
| 52 | -/ |
| 53 | |
| 54 | @[expose] public section |
| 55 | |
| 56 | /-! |
| 57 | ## Positivity and a bound for the hook number |
| 58 | |
| 59 | * `New.hookNumber_pos`, `New.hookNumber_le`: the hook number is positive, and at most |
| 60 | `(L ^ L) ^ 3` when the diagrams have at most `L` boxes in total. |
| 61 | -/ |
| 62 | |
| 63 | section Hook |
| 64 | |
| 65 | open MvPolynomial Finset Matrix Finsupp Nat RingHom |
| 66 | |
| 67 | namespace New |
| 68 | |
| 69 | variable {Φ : Type} [Fintype Φ] {κ : Φ → ℕ → ℕ} {N : Φ → ℕ} {L : ℕ} |
| 70 | |
| 71 | /-- The hook number, the Fock pairing of `New.highestPoly ℤ κ N` with itself, is positive. -/ |
| 72 | @[simp] |
| 73 | lemma hookNumber_pos : 0 < hookNumber κ N := by |
| 74 | -- `highestPoly ℤ κ N` is nonzero, since its value at the identity array is `1`. |
| 75 | have h_eval : eval (permArray fun τ (i : Fin (N τ)) ↦ (i : ℕ)) (highestPoly ℤ κ N) = 1 := by |
| 76 | simp [highestPoly, tableauPoly, minor, map_det, Matrix.map, permArray, Fin.val_inj, |
| 77 | ← diagonal.eq_1] |
| 78 | have h_ne : highestPoly ℤ κ N ≠ 0 := fun h_zero ↦ by simp [h_zero] at h_eval |
| 79 | -- Over `ℤ` conjugation is trivial, so `fockPairing_star_self_pos` is the claim. |
| 80 | have h_star : MvPolynomial.map (starRingEnd ℤ) (highestPoly ℤ κ N) = highestPoly ℤ κ N := |
| 81 | MvPolynomial.ext _ _ fun d ↦ by simp |
| 82 | simpa only [hookNumber, h_star] using fockPairing_star_self_pos h_ne |
| 83 | |
| 84 | /-- The hook number `hookNumber κ N` is nonzero. -/ |
| 85 | @[simp] |
| 86 | lemma hookNumber_ne_zero : hookNumber κ N ≠ 0 := hookNumber_pos.ne' |
| 87 | |
| 88 | /-- The product of the factorials `(a i)!` over a finite set `s` is at most the factorial of the |
| 89 | sum of the `a i`. -/ |
| 90 | lemma prod_factorial_le_factorial_sum {ι : Type} (s : Finset ι) (a : ι → ℕ) : |
| 91 | ∏ i ∈ s, (a i)! ≤ (∑ i ∈ s, a i)! := |
| 92 | le_of_dvd (factorial_pos _) (prod_factorial_dvd_factorial_sum s a) |
| 93 | |
| 94 | /-- Two monomials with coefficients `± 1` have Fock pairing at most `d !`, where `d` is the degree |
| 95 | of the first. -/ |
| 96 | lemma fockPairing_monomial_monomial_le {σ : Type} (α β : σ →₀ ℕ) (ε ε' : ℤˣ) : |
| 97 | fockPairing ℤ (monomial α (ε : ℤ)) (monomial β (ε' : ℤ)) ≤ (α.degree)! := by |
| 98 | classical |
| 99 | have h_factorial : (α.prod fun _ a ↦ a !) ≤ (α.degree)! := |
| 100 | prod_factorial_le_factorial_sum α.support α |
| 101 | have h_unit : (ε : ℤ) * ε' ≤ 1 := Int.le_of_dvd one_pos (ε.isUnit.mul ε'.isUnit).dvd |
| 102 | have h_coeff : (ε : ℤ) * (monomial β (ε' : ℤ)).coeff α ≤ 1 := by grind [coeff_monomial] |
| 103 | grw [fockPairing_monomial, h_coeff, mul_one, h_factorial] |
| 104 | |
| 105 | /-- Take at each place `τ` a filling `T τ` with `κ τ h` columns of height `h` for `h < N τ`, and |
| 106 | multiply the minors of all columns. If the degree `∑ τ, ∑ h < N τ, h * κ τ h` of this product is at |
| 107 | most `L`, then its Fock pairing with itself is at most `L ^ (3 * L)`. -/ |
| 108 | lemma fockPairing_tableauPoly_le {n : Φ → Type} (T : ∀ τ : Φ, Tableau (n τ) (N τ) (κ τ)) |
| 109 | (h_degree : ∑ τ : Φ, ∑ h ∈ range (N τ), h * κ τ h ≤ L) : |
| 110 | fockPairing ℤ (∏ τ : Φ, tableauPoly ℤ (Sigma.mk τ) (T τ)) |
| 111 | (∏ τ : Φ, tableauPoly ℤ (Sigma.mk τ) (T τ)) ≤ (L : ℤ) ^ (3 * L) := by |
| 112 | classical |
| 113 | -- Expand each minor over permutations. The product becomes a sum of signed monomials of degree |
| 114 | -- `d`, one for each choice `s : S` of a permutation for every column, and `card S ≤ d !`. |
| 115 | let S : Type := ∀ (τ : Φ) (h : Fin (N τ)), Fin (κ τ h) → Equiv.Perm (Fin h) |
| 116 | let α (s : S) : (Σ τ : Φ, n τ) × ℕ →₀ ℕ := |
| 117 | ∑ τ : Φ, ∑ h : Fin (N τ), ∑ j : Fin (κ τ h), ∑ i : Fin h, single (⟨τ, T τ h j (s τ h j i)⟩, i) 1 |
| 118 | let ε (s : S) : ℤˣ := ∏ τ : Φ, ∏ h : Fin (N τ), ∏ j : Fin (κ τ h), (s τ h j).sign |
| 119 | let d : ℕ := ∑ τ : Φ, ∑ h : Fin (N τ), κ τ h * h |
| 120 | have h_expand : |
| 121 | ∏ τ : Φ, tableauPoly ℤ (Sigma.mk τ) (T τ) = ∑ s : S, monomial (α s) (ε s : ℤ) := by |
| 122 | simp_rw [tableauPoly, minor, det_apply, prod_univ_sum, prod_smul, of_apply, X, |
| 123 | ← monomial_sum_one, smul_monomial] |
| 124 | simp [α, ε, S, Units.smul_def] |
| 125 | have h_degree_eq (s : S) : (α s).degree = d := by simp [α, d] |
| 126 | have h_card : Fintype.card S ≤ d ! := by |
| 127 | -- the product over all columns of (height)! is at most the factorial of the sum of the heights |
| 128 | let height : (Σ (τ : Φ) (h : Fin (N τ)), Fin (κ τ h)) → ℕ := fun ⟨_, h, _⟩ ↦ h |
| 129 | simpa [S, height, Fintype.card_perm, Fintype.prod_sigma, Fintype.sum_sigma] using |
| 130 | prod_factorial_le_factorial_sum univ height |
| 131 | have h_d_le : d ≤ L := by simpa only [d, sum_range, mul_comm] using h_degree |
| 132 | rw [h_expand] |
| 133 | calc |
| 134 | _ = ∑ s : S, ∑ t : S, fockPairing ℤ (monomial (α s) (ε s : ℤ)) (monomial (α t) (ε t : ℤ)) := by |
| 135 | simp_rw [LinearMap.map_sum₂, map_sum] |
| 136 | _ ≤ ∑ _s : S, ∑ _t : S, (d ! : ℤ) := by |
| 137 | gcongr with s _ t |
| 138 | grw [fockPairing_monomial_monomial_le, h_degree_eq] |
| 139 | _ = Fintype.card S * (Fintype.card S * (d ! : ℤ)) := by simp |
| 140 | _ ≤ (d ! : ℤ) ^ 3 := by grw [h_card, h_card, pow_three] |
| 141 | _ ≤ ((L : ℤ) ^ L) ^ 3 := by grw [h_d_le, factorial_le_pow, cast_pow] |
| 142 | _ = (L : ℤ) ^ (3 * L) := by rw [← pow_mul, mul_comm] |
| 143 | |
| 144 | /-- Suppose the diagrams with `κ τ h` columns of height `h < N τ` have at most `L` boxes in total, |
| 145 | that is, Σ_τ Σ_{h<N τ} h·κ τ h ≤ L. Then `hookNumber κ N` is at most `(L ^ L) ^ 3`. Here |
| 146 | `hookNumber κ N` is the integer ⟨f,f⟩ = f(∂)f(0), where f is the product over places τ and heights |
| 147 | h < N τ of the leading principal h×h minors raised to the power κ τ h. -/ |
| 148 | lemma hookNumber_le (h_degree : ∑ τ : Φ, ∑ h ∈ range (N τ), h * κ τ h ≤ L) : |
| 149 | hookNumber κ N ≤ ((L : ℤ) ^ L) ^ 3 := by |
| 150 | -- `highestPoly ℤ κ N` is the product of minors for the fillings `T` with `i` in row `i`. |
| 151 | let T : ∀ τ : Φ, Tableau (Fin (N τ)) (N τ) (κ τ) := fun _ h _ ↦ Fin.castLE h.is_le' |
| 152 | rw [← pow_mul, mul_comm, hookNumber, highestPoly] |
| 153 | exact fockPairing_tableauPoly_le T h_degree |
| 154 | |
| 155 | end New |
| 156 | |
| 157 | end Hook |
| 158 | |
| 159 | /-! |
| 160 | ## The kernel and the Gram matrix |
| 161 | |
| 162 | Linear identities are tested on the vectors `weylEval n κ y` (`New.GL.ext_weylEval`). An array `y` |
| 163 | has rows `(τ, a)` and columns in `ℕ`; `New.diagramWeight` is the partition with `κ τ h` columns of |
| 164 | height `h`. |
| 165 | -/ |
| 166 | |
| 167 | section Gram |
| 168 | |
| 169 | open MvPolynomial Module New «GL» ComplexOrder Sigma Function Fintype Equiv Finset Matrix |
| 170 | |
| 171 | variable {Φ : Type} |
| 172 | {R S : Type _} [CommRing R] [CommRing S] [Fintype Φ] [DecidableEq Φ] |
| 173 | {n n' : Φ → Type} [∀ τ : Φ, Fintype (n τ)] [∀ τ : Φ, DecidableEq (n τ)] |
| 174 | [∀ τ : Φ, Fintype (n' τ)] [∀ τ : Φ, DecidableEq (n' τ)] {κ : Φ → ℕ → ℕ} |
| 175 | (e : ∀ τ : Φ, n τ ≃ Fin (rankAt n τ)) (φ : R →+* S) |
| 176 | (N : Φ → ℕ) (ι : ∀ τ : Φ, n τ ⊕ Unit ≃ n' τ) (g : ∀ τ : Φ, Matrix (n τ) (n τ) R) |
| 177 | (ξ η : WeylIndexFamily n κ → R) (s : Φ → R) (y : (Σ τ : Φ, n τ) × ℕ → R) |
| 178 | |
| 179 | namespace New.GL |
| 180 | |
| 181 | /-! ### Evaluation vectors and the kernel -/ |
| 182 | |
| 183 | /-- For an array `y` and enumerations `e τ` of the rows, the square matrix at the place `τ` with |
| 184 | `(a, b)` entry `y((τ, a), e τ b)`: the columns of block `τ` numbered below `|n τ|`. -/ |
| 185 | def squarePart (τ : Φ) : Matrix (n τ) (n τ) R := of fun a b : n τ ↦ y (⟨τ, a⟩, e τ b) |
| 186 | |
| 187 | /-- Every evaluation vector `ev_y` is the image of the evaluation vector at the permutation array |
| 188 | of `e` under the Schur matrix of the square part `New.GL.squarePart e y` of `y`. -/ |
| 189 | lemma schur_squarePart_mulVec : |
| 190 | schur κ (squarePart e y) *ᵥ weylEval n κ (permArray fun (τ : Φ) (i : n τ) ↦ (e τ i : ℕ)) = |
| 191 | weylEval n κ y := by |
| 192 | -- `squarePart e y` times the permutation array `permArray e` agrees with `y` in the columns below |
| 193 | -- `rankAt n τ`, the only ones that the basis minors read. |
| 194 | set w : (Σ τ : Φ, n τ) × ℕ → R := permArray fun (τ : Φ) (i : n τ) ↦ (e τ i : ℕ) |
| 195 | have h_frame : schur κ (squarePart e y) *ᵥ weylEval n κ w = |
| 196 | weylEval n κ fun ⟨⟨τ, i⟩, k⟩ ↦ ∑ a : n τ, squarePart e y τ i a * w (⟨τ, a⟩, k) := by |
| 197 | simpa only [schurDetExp_self, detPow_zero, map_one, one_smul] using |
| 198 | schur_mulVec_weylEval (FitsRanks.refl (κ := κ)) (squarePart e y) w |
| 199 | have h_agree (τ : Φ) (i : n τ) (k : ℕ) (hk : k < rankAt n τ) : |
| 200 | ∑ a : n τ, squarePart e y τ i a * w (⟨τ, a⟩, k) = y (⟨τ, i⟩, k) := by |
| 201 | lift k to Fin (rankAt n τ) using hk |
| 202 | simp [squarePart, w, permArray, Fin.val_inj, ← eq_symm_apply] |
| 203 | rw [h_frame] |
| 204 | ext i |
| 205 | simp (disch := omega) only [weylEval, nablaBasis, tableauPoly, minor, map_prod, RingHom.map_det, |
| 206 | RingHom.mapMatrix_apply, Matrix.map, of_apply, eval_X, Function.comp_apply, h_agree] |
| 207 | |
| 208 | /-- Two linear maps `L`, `L'` into a free module over a domain are equal if they agree on the |
| 209 | evaluation vectors `weylEval n κ y`. It is enough to take the arrays `y` whose entries lie in an |
| 210 | infinite set `s` and at which `detPow R n d`, the product of the powers `d τ` of the determinants |
| 211 | of the square blocks, does not vanish. -/ |
| 212 | lemma ext_weylEval [IsDomain R] {M : Type*} [AddCommGroup M] [Module R M] [Module.Free R M] |
| 213 | {L L' : (WeylIndexFamily n κ → R) →ₗ[R] M} {s : Set R} (d : Φ → ℕ) |
| 214 | (h_agree : ∀ y : (Σ τ : Φ, n τ) × ℕ → R, (∀ p : (Σ τ : Φ, n τ) × ℕ, y p ∈ s) → |
| 215 | eval y (detPow R n d) ≠ 0 → L (weylEval n κ y) = L' (weylEval n κ y)) |
| 216 | (hs_infinite : s.Infinite) : L = L' := by |
| 217 | -- As `M` is free, it suffices to compare `ℓ (L eᵢ)` and `ℓ (L' eᵢ)` for linear forms `ℓ`. |
| 218 | ext i |
| 219 | refine eval_apply_injective R (LinearMap.ext fun ℓ ↦ ?_) |
| 220 | -- These are the coefficients of two combinations `P L`, `P L'` of the independent `b_j * D`, with |
| 221 | -- `D = detPow R n d`, which agree at every `y` with entries in the infinite set `s`: by |
| 222 | -- `h_agree` if `D y ≠ 0`, and trivially if `D y = 0`. |
| 223 | let P (F : (WeylIndexFamily n κ → R) →ₗ[R] M) : MatrixPoly (Σ τ : Φ, n τ) R := |
| 224 | ∑ j : WeylIndexFamily n κ, ℓ (F (Pi.single j 1)) • (nablaBasis R n κ j * detPow R n d) |
| 225 | have h_value (F : (WeylIndexFamily n κ → R) →ₗ[R] M) (y : (Σ τ : Φ, n τ) × ℕ → R) : |
| 226 | eval y (P F) = ℓ (F (weylEval n κ y)) * eval y (detPow R n d) := by |
| 227 | rw [pi_eq_sum_univ' (weylEval n κ y)] |
| 228 | simp [P, ← mul_assoc, sum_mul, mul_comm _ (ℓ _), weylEval] |
| 229 | have h_poly : P L = P L' := funext_set (fun _ ↦ s) (fun _ ↦ hs_infinite) fun y hy ↦ by |
| 230 | by_cases hD : eval y (detPow R n d) = 0 |
| 231 | · simp [h_value, hD] |
| 232 | · rw [h_value, h_value, h_agree y (fun p ↦ hy p (Set.mem_univ p)) hD] |
| 233 | exact (linearIndependent_nablaBasis_mul_detPow d).eq_coords_of_eq h_poly i |
| 234 | |
| 235 | section |
| 236 | |
| 237 | omit [DecidableEq Φ] [∀ τ : Φ, DecidableEq (n τ)] |
| 238 | |
| 239 | /-- Mapping the coefficients of the kernel `weylKernel n κ y` along a ring homomorphism `φ` gives |
| 240 | the kernel at the array `φ ∘ y`. -/ |
| 241 | lemma map_weylKernel : MvPolynomial.map φ (weylKernel n κ y) = weylKernel n κ (φ ∘ y) := by |
| 242 | simp [weylKernel, rowSubst, map_aeval_eq_aeval_map_map, -map_aeval, ← C_mul'] |
| 243 | |
| 244 | /-- `f(yᵀ x)` as a polynomial in `x`: the product of the leading minors of `yᵀ x`. -/ |
| 245 | lemma rowSubst_highestPoly : |
| 246 | rowSubst (fun τ : Φ ↦ of fun (i : Fin (N τ)) (a : n τ) ↦ y (⟨τ, a⟩, i)) (highestPoly R κ N) = |
| 247 | ∏ τ : Φ, ∏ h ∈ range (N τ), |
| 248 | (of fun s t : Fin h ↦ ∑ a : n τ, y (⟨τ, a⟩, s) • X (⟨τ, a⟩, ↑t)).det ^ κ τ h := by |
| 249 | simp [highestPoly, prod_range, rowSubst, tableauPoly, minor, AlgHom.map_det, Matrix.map] |
| 250 | |
| 251 | /-- The kernel is symmetric in `x` and `y`: `K(·, y)` is the generic kernel, whose coefficients are |
| 252 | polynomials in the variables for `y`, with `y` put in for its variables `x`, and the coefficient |
| 253 | variables kept as the new variables. -/ |
| 254 | lemma weylKernel_symm : |
| 255 | weylKernel n κ y = MvPolynomial.eval (C ∘ y) |
| 256 | (weylKernel n κ (X : (Σ τ : Φ, n τ) × ℕ → MatrixPoly (Σ τ : Φ, n τ) R)) := by |
| 257 | simp [weylKernel, rowSubst_highestPoly, ← C_mul', mul_comm, RingHom.map_det, Matrix.map] |
| 258 | -- The minors of `yᵀ X` and `Xᵀ y` are determinants of transposed matrices. |
| 259 | refine prod_congr rfl fun τ _ ↦ prod_congr rfl fun k _ ↦ ?_ |
| 260 | exact congrArg (fun M ↦ M ^ κ τ k) (det_transpose _).symm |
| 261 | |
| 262 | end |
| 263 | |
| 264 | omit [DecidableEq Φ] [∀ τ : Φ, DecidableEq (n τ)] in |
| 265 | /-- Multiplying `y` on the right by the upper triangular part of `b` scales the kernel `K(·, y)` |
| 266 | by `∏ b(τ, i, i) ^ λ(τ, i)`, with `λ = New.diagramWeight (rankAt n) κ`. -/ |
| 267 | lemma weylKernel_borelMul (b : Φ × ℕ × ℕ → R) : |
| 268 | weylKernel n κ (borelMul fst b y) = |
| 269 | ((diagramWeight (rankAt n) κ).prod fun (p : Φ × ℕ) (k : ℕ) ↦ b (p.1, p.2, p.2) ^ k) • |
| 270 | weylKernel n κ y := by |
| 271 | -- By symmetry of the kernel, `weylKernel n κ y` is the generic kernel `K` with `y` put in for its |
| 272 | -- polynomial variables, and in these variables `K` is semi-invariant. |
| 273 | let A : Type _ := MatrixPoly (Σ τ : Φ, n τ) R |
| 274 | let K : MatrixPoly (Σ τ : Φ, n τ) A := weylKernel n κ (X : (Σ τ : Φ, n τ) × ℕ → A) |
| 275 | have h_semi : aeval (borelMul fst (C ∘ b) (C ∘ y) : (Σ τ : Φ, n τ) × ℕ → A) K = |
| 276 | ((diagramWeight (rankAt n) κ).prod fun p k ↦ C (b (p.1, p.2, p.2)) ^ k) * aeval (C ∘ y) K := |
| 277 | mem_nabla.mp (weylKernel_mem_nablaFamily X) A (C ∘ b) (C ∘ y) |
| 278 | have h_C_borelMul : |
| 279 | (borelMul fst (C ∘ b) (C ∘ y) : (Σ τ : Φ, n τ) × ℕ → A) = C ∘ borelMul fst b y := |
| 280 | funext fun x ↦ by simp [borelMul] |
| 281 | simp only [MvPolynomial.aeval_eq_eval, h_C_borelMul] at h_semi |
| 282 | simpa [K, ← C_mul', map_finsuppProd, weylKernel_symm (R := R), comp_def] using h_semi |
| 283 | |
| 284 | omit [(τ : Φ) → DecidableEq (n τ)] in |
| 285 | /-- For a vector ξ of the Weyl module over a commutative ring `R` and an array `y` over `R`, the |
| 286 | value at `y` of the polynomial `toPoly n κ ξ = Σ_i (Gξ)_i b_i` equals ev_yᵀ G ξ. Here the b_i are |
| 287 | the basis products of minors `nablaBasis`, indexed by `WeylIndexFamily n κ`, and |
| 288 | ev_y = `weylEval n κ y` is the vector of values b_i(y). G is the integer Gram matrix `weylGram`, the |
| 289 | coefficients of the generic kernel in the products b_i(x) b_j(y), mapped into `R`. -/ |
| 290 | @[simp ←] |
| 291 | lemma eval_toPoly : MvPolynomial.eval y (toPoly n κ ξ) = weylEval n κ y ⬝ᵥ weylGramOver *ᵥ ξ := by |
| 292 | simp [toPoly, mul_comm, linearCombination_apply, dotProduct, weylEval] |
| 293 | |
| 294 | omit [(τ : Φ) → DecidableEq (n τ)] in |
| 295 | /-- The combination of the basis minor products `b_i` with coefficients `weylGramOver *ᵥ ξ` is |
| 296 | the polynomial `toPoly n κ ξ`. -/ |
| 297 | lemma nablaCombination_weylGramOver_mulVec : |
| 298 | nablaCombination κ (weylGramOver *ᵥ ξ) = toPoly n κ ξ := rfl |
| 299 | |
| 300 | /-- For square matrices `g τ` and scalars `s τ`, the block diagonal matrix `diag(g τ, s τ)`, |
| 301 | reindexed by `n' τ` through the bijection `ι τ : n τ ⊕ Unit ≃ n' τ`. -/ |
| 302 | noncomputable def blockScalar (τ : Φ) : Matrix (n' τ) (n' τ) R := |
| 303 | ((g τ).fromBlocks 0 0 (diagonal fun _ ↦ s τ)).reindex (ι τ) (ι τ) |
| 304 | |
| 305 | omit [DecidableEq Φ] in |
| 306 | /-- The weight at `(τ, i)` is the weight at `(τ, i + 1)` plus `κ τ (i + 1)` when `i + 1 < N τ`: |
| 307 | the columns of height `i + 1` are counted at `i` but not at `i + 1`. -/ |
| 308 | @[grind =] |
| 309 | lemma diagramWeight_eq_succ_add (τ : Φ) (i : ℕ) : |
| 310 | diagramWeight N κ (τ, i) = |
| 311 | diagramWeight N κ (τ, i + 1) + if i + 1 < N τ then κ τ (i + 1) else 0 := by |
| 312 | grind [diagramWeight_apply, =_ Ico_add_one_left_eq_Ioo, sum_eq_sum_Ico_succ_bot, Ico_eq_empty] |
| 313 | |
| 314 | /-- The kernel `weylKernel n κ y` is the polynomial f(yᵀx) in x, with f the product of leading |
| 315 | minors; here y is the permutation array of `e` (entry 1 at row (τ,a), column `e τ a`, else 0). If |
| 316 | `g τ a b = 0` whenever `e τ a < e τ b`, substituting x ↦ g x in the kernel (`rowSubst g`) scales it |
| 317 | by `∏ g τ a a ^ λ(τ, e τ a)`, with `λ = New.diagramWeight (rankAt n) κ`. -/ |
| 318 | lemma rowSubst_weylKernel_permArray (hg_tri : ∀ τ : Φ, (g τ)ᵀ.BlockTriangular (e τ)) : |
| 319 | rowSubst g (weylKernel n κ (permArray fun (τ : Φ) (i : n τ) ↦ (e τ i : ℕ))) = |
| 320 | (∏ τ : Φ, ∏ a : n τ, g τ a a ^ diagramWeight (rankAt n) κ (τ, e τ a)) • |
| 321 | weylKernel n κ (permArray fun (τ : Φ) (i : n τ) ↦ (e τ i : ℕ)) := by |
| 322 | -- Substituting `g` multiplies the array on the right by the triangular array `t` of the entries |
| 323 | -- of `g` in the numbering `e`; by `weylKernel_borelMul` this scales the kernel by a monomial in |
| 324 | -- the diagonal entries. In the product defining `t` the condition selects at most one factor. |
| 325 | let t x := ∏ τ, ∏ a, ∏ b, if x = (τ, (e τ a : ℕ), (e τ b : ℕ)) then g τ b a else 1 |
| 326 | trans weylKernel n κ (borelMul fst t (permArray fun τ i ↦ (e τ i : ℕ))) |
| 327 | · rw [weylKernel, rowSubst_rowSubst, weylKernel] |
| 328 | congr 2 |
| 329 | -- Entrywise, `borelMul` keeps only the entries on one side of the diagonal; the others vanish. |
| 330 | simpa +instances [t, funext_iff, ← ext_iff, (e _).surjective.forall, borelMul, permArray, |
| 331 | Fin.val_inj, ite_and, Matrix.mul_apply] using fun τ a b (hab : e τ a < e τ b) ↦ hg_tri τ hab |
| 332 | · rw [weylKernel_borelMul] |
| 333 | congr 1 |
| 334 | simp [t, ← prod_pow, Finsupp.prod_finsetProd_comm, ← and_assoc, |
| 335 | ← Prod.ext_iff (y := (_, _)), ite_and, Fin.val_inj] |
| 336 | -- Outside the support of the weight the exponent is zero. |
| 337 | exact prod_congr rfl fun τ _ ↦ prod_congr rfl fun a _ ↦ ite_eq_right_iff.2 fun h ↦ by simp [h] |
| 338 | |
| 339 | omit [Fintype Φ] [DecidableEq Φ] [∀ τ : Φ, DecidableEq (n τ)] [∀ τ : Φ, DecidableEq (n' τ)] in |
| 340 | /-- If `n' τ` is in bijection with `n τ ⊕ Unit` for every `τ`, then the cardinality `rankAt n' τ` |
| 341 | is `rankAt n τ + 1`. -/ |
| 342 | lemma rankAt_eq_succ (ι : ∀ τ : Φ, n τ ⊕ Unit ≃ n' τ) (τ : Φ) : rankAt n' τ = rankAt n τ + 1 := by |
| 343 | simp [← card_congr (ι τ)] |
| 344 | |
| 345 | end «GL» |
| 346 | |
| 347 | /-! ### The kernel formula -/ |
| 348 | |
| 349 | /-- The polynomial attached by the Gram matrix to the evaluation vector ev_y is the kernel x ↦ |
| 350 | f(yᵀx), f the highest weight product of leading minors. -/ |
| 351 | @[simp] |
| 352 | lemma toPoly_weylEval : toPoly n κ (weylEval n κ y) = weylKernel n κ y := by |
| 353 | -- Expand the generic kernel `K` in the basis, with coefficients `c i` in `A = ℤ[Y]`; expand the |
| 354 | -- `c i` in the basis again, which gives the Gram matrix; then specialise `Y` to `y`. |
| 355 | let A : Type := MatrixPoly (Σ τ : Φ, n τ) ℤ |
| 356 | let K : MatrixPoly (Σ τ : Φ, n τ) A := weylKernel n κ (X : (Σ τ : Φ, n τ) × ℕ → A) |
| 357 | let c : WeylIndexFamily n κ → A := invFun (nablaCombination κ) K |
| 358 | have hK : ∑ i, c i • nablaBasis A n κ i = K := |
| 359 | sum_coords_nablaBasis (weylKernel_mem_nablaFamily X) |
| 360 | -- The monomial coefficients of `K` are semi-invariant in `Y` (`weylKernel_borelMul`), hence so is |
| 361 | -- `c i`: the coordinates lie in any subgroup that holds all coefficients. |
| 362 | have h_coeff (d : (Σ τ : Φ, n τ) × ℕ →₀ ℕ) : K.coeff d ∈ (nablaFamily ℤ n κ).toAddSubgroup := by |
| 363 | simp [A, K, mem_nabla, aeval_eq_eval₂Hom, ← coeff_map, map_weylKernel, weylKernel_borelMul, |
| 364 | comp_def] |
| 365 | have hc (i : WeylIndexFamily n κ) : c i ∈ nablaFamily ℤ n κ := |
| 366 | coord_mem_of_coeff_mem _ 0 (by simpa [detPow_zero] using hK) h_coeff i |
| 367 | have h_gram (i : WeylIndexFamily n κ) : ∑ j, weylGram n κ i j • nablaBasis ℤ n κ j = c i := |
| 368 | sum_coords_nablaBasis (hc i) |
| 369 | -- Put `y` in for the variables `Y` of the coefficients. |
| 370 | have hK_at_y : ∑ i, aeval y (c i) • nablaBasis R n κ i = weylKernel n κ y := by |
| 371 | simpa [A, K, map_weylKernel, ← C_mul', comp_def] using congrArg (mapAlgHom (aeval y)) hK |
| 372 | have hc_at_y (i : WeylIndexFamily n κ) : |
| 373 | aeval y (c i) = (weylGramOver *ᵥ weylEval n κ y) i := by |
| 374 | simp [← h_gram, ← eval_map, aeval_def, mulVec, dotProduct, weylEval] |
| 375 | simp [← hK_at_y, hc_at_y, toPoly, linearCombination_apply] |
| 376 | |
| 377 | /-- The Gram matrix `New.weylGram` does not depend on the labelling of the places: for a bijection |
| 378 | `p` from `Φ` to `Ψ`, the Gram matrix of `(n, κ)` is that of the data transported to `Ψ`, with rows |
| 379 | and columns reindexed along `p`. -/ |
| 380 | lemma GL.weylGram_eq_submatrix {Ψ : Type} [Fintype Ψ] [DecidableEq Ψ] (κ : Φ → ℕ → ℕ) (p : Φ ≃ Ψ) : |
| 381 | weylGram n κ = |
| 382 | (weylGram (fun σ : Ψ ↦ n (p.symm σ)) fun σ : Ψ ↦ κ (p.symm σ)).submatrix |
| 383 | (p.piCongrLeft' fun τ : Φ ↦ BasisTableau (n τ) (rankAt n τ) (κ τ)) |
| 384 | (p.piCongrLeft' fun τ : Φ ↦ BasisTableau (n τ) (rankAt n τ) (κ τ)) := by |
| 385 | -- Compare the two matrices on the vectors `weylEval n κ y`, through the injective |
| 386 | -- `nablaCombination κ`. For `Φ` this gives the kernel at `y` (`toPoly_weylEval`); for `Ψ` the |
| 387 | -- same after renaming the variables. |
| 388 | let e : (Σ σ, n (p.symm σ)) × ℕ → (Σ τ, n τ) × ℕ := Prod.map p.symm.sigmaCongrLeft id |
| 389 | -- Renaming the variables by `e` sends each basis product for `Ψ` to the one for `Φ`. |
| 390 | have h_basis (i : WeylIndexFamily (fun σ ↦ n (p.symm σ)) fun σ ↦ κ (p.symm σ)) : |
| 391 | rename e (nablaBasis ℤ (fun σ ↦ n (p.symm σ)) (fun σ ↦ κ (p.symm σ)) i) = |
| 392 | nablaBasis ℤ n κ |
| 393 | ((p.piCongrLeft' fun τ ↦ BasisTableau (n τ) (rankAt n τ) (κ τ)).symm i) := by |
| 394 | simp [nablaBasis, tableauPoly, minor, e, AlgHom.map_det, Matrix.map, reindex_equiv p.symm] |
| 395 | refine toLin'.injective (ext_weylEval 0 (fun y _ _ ↦ ?_) Set.infinite_univ) |
| 396 | refine nablaCombination_injective ((toPoly_weylEval y).trans ?_) |
| 397 | have h_eval (i : WeylIndexFamily (fun σ ↦ n (p.symm σ)) fun σ ↦ κ (p.symm σ)) : |
| 398 | eval (y ∘ e) (nablaBasis ℤ (fun σ ↦ n (p.symm σ)) (fun σ ↦ κ (p.symm σ)) i) = |
| 399 | eval y (nablaBasis ℤ n κ |
| 400 | ((p.piCongrLeft' fun τ ↦ BasisTableau (n τ) (rankAt n τ) (κ τ)).symm i)) := by |
| 401 | rw [← eval_rename, h_basis] |
| 402 | have h := congrArg (rename (R := ℤ) e) |
| 403 | (toPoly_weylEval (κ := fun σ ↦ κ (p.symm σ)) (y ∘ e)).symm |
| 404 | simp [toPoly, rowSubst, e, weylKernel, highestPoly, reindex_equiv p.symm, |
| 405 | reindex_equiv (p.piCongrLeft' _).symm, tableauPoly, minor, AlgHom.map_det, Matrix.map, |
| 406 | linearCombination_apply, mulVec, dotProduct, weylEval, h_basis, h_eval] at h ⊢ |
| 407 | exact h |
| 408 | |
| 409 | omit [∀ τ : Φ, DecidableEq (n τ)] in |
| 410 | /-- Mapping the coefficients of `toPoly n κ ξ` along a ring homomorphism `φ` gives the polynomial |
| 411 | `toPoly n κ (φ ∘ ξ)`. -/ |
| 412 | @[simp] |
| 413 | lemma map_toPoly : MvPolynomial.map φ (toPoly n κ ξ) = toPoly n κ (φ ∘ ξ) := by |
| 414 | simp [toPoly, ← C_mul', linearCombination_apply, mulVec, dotProduct] |
| 415 | |
| 416 | /-! ### The form restricted from tensors -/ |
| 417 | |
| 418 | omit [∀ τ : Φ, DecidableEq (n τ)] in |
| 419 | /-- The kernel at `y` is the pairing of the tensor of `y` with the tensor of the variables. -/ |
| 420 | lemma weylKernel_eq_sum_fillingPoly (y : (Σ τ : Φ, n τ) × ℕ → R) : |
| 421 | weylKernel n κ y = ∑ T : ColumnFilling n κ, eval y (fillingPoly R T) • fillingPoly R T := by |
| 422 | -- the Cauchy–Binet formula for one leading minor of `yᵀ x` |
| 423 | let m (τ : Φ) (h : ℕ) (I : IncreasingMap (rankAt n τ) h) : MatrixPoly (Σ τ : Φ, n τ) R := |
| 424 | minor R (Sigma.mk τ ∘ (rowEquivFin n τ).symm ∘ I.val) |
| 425 | have hminor (τ : Φ) (h : ℕ) : |
| 426 | (of fun s t : Fin h ↦ ∑ a : n τ, y (⟨τ, a⟩, s) • X (⟨τ, a⟩, ↑t)).det = |
| 427 | ∑ I : IncreasingMap (rankAt n τ) h, eval y (m τ h I) • m τ h I := by |
| 428 | refine (det_sum_smul_X τ (of fun s a ↦ y (⟨τ, a⟩, s))).trans (sum_congr rfl fun I _ ↦ ?_) |
| 429 | rw [← det_transpose] |
| 430 | simp only [m, minor, RingHom.map_det] |
| 431 | congr 2 |
| 432 | exact Matrix.ext fun s t ↦ by simp |
| 433 | simp_rw [weylKernel, rowSubst_highestPoly, prod_range, ← Fin.prod_const, hminor, Fintype.prod_sum] |
| 434 | refine sum_congr rfl fun T _ ↦ ?_ |
| 435 | simp [prod_smul, fillingPoly, tableauPoly, m, fillingRows, comp_def] |
| 436 | |
| 437 | /-- Let F = `fillingMatrix n κ` be the integral matrix of the embedding of the Weyl module into |
| 438 | tensors, whose row `T` holds the coordinates of the product of minors of `T` in the standard basis. |
| 439 | Then FᵀF = `weylGram n κ`: the Gram matrix is that of the form on tensors for which the basis |
| 440 | tensors are orthonormal, restricted to the Weyl module. -/ |
| 441 | lemma fillingMatrix_transpose_mul_self : |
| 442 | (fillingMatrix n κ)ᵀ * fillingMatrix n κ = weylGram n κ := by |
| 443 | -- Compare the polynomials of both matrices applied to an evaluation vector: each is the kernel. |
| 444 | refine toLin'.injective |
| 445 | (ext_weylEval 0 (fun y _ _ ↦ nablaCombination_injective ?_) Set.infinite_univ) |
| 446 | have h_int : weylGramOver (R := ℤ) = weylGram n κ := Matrix.ext fun i j ↦ by simp |
| 447 | have h_gram : nablaCombination κ (weylGram n κ *ᵥ weylEval n κ y) = weylKernel n κ y := by |
| 448 | rw [← h_int, nablaCombination_weylGramOver_mulVec, toPoly_weylEval] |
| 449 | rw [toLin'_apply, toLin'_apply, h_gram, weylKernel_eq_sum_fillingPoly, ← mulVec_mulVec, |
| 450 | ← fillingMatrixOver_int, nablaCombination_transpose_mulVec] |
| 451 | simp only [fillingMatrixOver_mulVec_weylEval] |
| 452 | |
| 453 | /-- The Gram matrix `weylGramOver` over `R`, which is the integer matrix `New.weylGram` mapped into |
| 454 | `R`, equals FᵀF. Here F = `fillingMatrixOver R n κ` is the integer matrix `fillingMatrix` mapped |
| 455 | into `R`. Thus the Gram matrix is that of the form restricted from tensors. -/ |
| 456 | lemma weylGramOver_eq_transpose_mul : |
| 457 | (weylGramOver : Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) R) = |
| 458 | (fillingMatrixOver R n κ)ᵀ * fillingMatrixOver R n κ := by |
| 459 | rw [weylGramOver, ← fillingMatrix_transpose_mul_self] |
| 460 | exact Matrix.map_mul (f := Int.castRingHom R) |
| 461 | |
| 462 | /-- The integer Gram matrix `weylGram n κ` is symmetric. Its entries are the chosen coefficients of |
| 463 | the generic kernel `weylKernel n κ` in the products b_i(x) b_j(y) of the basis minor products |
| 464 | b = `nablaBasis`, indexed by `WeylIndexFamily n κ`. -/ |
| 465 | lemma weylGram_isSymm : (weylGram n κ).IsSymm := by |
| 466 | rw [← fillingMatrix_transpose_mul_self, IsSymm, transpose_mul, transpose_transpose] |
| 467 | |
| 468 | /-- The Gram matrix `weylGram n κ` of the Weyl module, indexed by `WeylIndexFamily n κ` and with |
| 469 | entries mapped into `ℂ` (`weylGramOver`), is positive definite. It is the Gram matrix of the |
| 470 | restriction to the Weyl module of the form on tensors for which the standard basis tensors are |
| 471 | orthonormal (see `fillingMatrix_transpose_mul_self`). -/ |
| 472 | lemma weylGramOver_posDef : |
| 473 | (weylGramOver : Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) ℂ).PosDef := by |
| 474 | -- The form is restricted from tensors along a real matrix `F` with a left inverse. |
| 475 | let F : Matrix (ColumnFilling n κ) (WeylIndexFamily n κ) ℂ := fillingMatrixOver ℂ n κ |
| 476 | obtain ⟨Q, hQ⟩ := exists_fillingMatrix_leftInverse (n := n) (κ := κ) |
| 477 | have h_left : Q.map (Int.cast : ℤ → ℂ) * F = 1 := |
| 478 | (Matrix.map_mul (f := Int.castRingHom ℂ)).symm.trans (by simp [hQ]) |
| 479 | have h_inj : Injective F.mulVec := LeftInverse.injective (g := (Q.map Int.cast).mulVec) fun ξ ↦ by |
| 480 | rw [mulVec_mulVec, h_left, one_mulVec] |
| 481 | have h_real : Fᵀ = Fᴴ := Matrix.ext fun i T ↦ by simp [F] |
| 482 | rw [weylGramOver_eq_transpose_mul, h_real] |
| 483 | exact PosDef.conjTranspose_mul_self F h_inj |
| 484 | |
| 485 | /-- For a family `g` of square matrices `g τ`, let `G = weylGramOver` be the integer Gram matrix |
| 486 | `New.weylGram` for rows `n` and column counts `κ`, mapped into `R` and indexed by |
| 487 | `WeylIndexFamily n κ`. Let `schur κ g` be the Schur matrix S_κ(g) of `g` acting on the Weyl module. |
| 488 | Then G·S_κ(g) = S_κ(gᵀ)ᵀ·G, so the Schur matrices of `g` and of the transposes `(g τ)ᵀ` are adjoint |
| 489 | for the form with Gram matrix G. -/ |
| 490 | lemma weylGramOver_mul_schur : |
| 491 | weylGramOver * schur κ g = (schur κ fun τ : Φ ↦ (g τ)ᵀ)ᵀ * weylGramOver := by |
| 492 | -- Adjointness is inherited from the action on tensors. |
| 493 | let F : Matrix (ColumnFilling n κ) (WeylIndexFamily n κ) R := fillingMatrixOver R n κ |
| 494 | calc weylGramOver * schur κ g |
| 495 | _ = Fᵀ * (minorsMatrix κ g * F) := by |
| 496 | rw [weylGramOver_eq_transpose_mul, Matrix.mul_assoc, fillingMatrixOver_mul_schur] |
| 497 | _ = (minorsMatrix κ (fun τ : Φ ↦ (g τ)ᵀ) * F)ᵀ * F := by |
| 498 | rw [minorsMatrix_transpose, transpose_mul, transpose_transpose, Matrix.mul_assoc] |
| 499 | _ = (schur κ fun τ : Φ ↦ (g τ)ᵀ)ᵀ * weylGramOver := by |
| 500 | rw [← fillingMatrixOver_mul_schur, transpose_mul, weylGramOver_eq_transpose_mul, |
| 501 | Matrix.mul_assoc] |
| 502 | |
| 503 | /-! ### Schur matrices and substitution -/ |
| 504 | |
| 505 | omit [(τ : Φ) → DecidableEq (n' τ)] in |
| 506 | /-- If the ranks fit `κ`, then `c ᵥ* S_κ(z) = x` if and only if the substitution `y ↦ z y` sends |
| 507 | `Σ_i c_i b'_i` to `(Σ_j x_j b_j) · ∏_τ det(y_τ)^{d_τ}`, with `d = New.schurDetExp n n' κ`. -/ |
| 508 | lemma GL.vecMul_schur_eq_iff (h_fits : FitsRanks n n' κ) (z : ∀ τ : Φ, Matrix (n' τ) (n τ) R) |
| 509 | {c : WeylIndexFamily n' κ → R} {x : WeylIndexFamily n κ → R} : |
| 510 | c ᵥ* schur κ z = x ↔ |
| 511 | rowSubst z (nablaCombination κ c) = |
| 512 | nablaCombination κ x * detPow R n (schurDetExp n n' κ) := by |
| 513 | have h_subst : rowSubst z (nablaCombination κ c) = |
| 514 | nablaCombination κ (c ᵥ* schur κ z) * detPow R n (schurDetExp n n' κ) := by |
| 515 | simp [← sum_schur_smul_nablaBasis h_fits, vecMul_eq_sum, sum_mul, linearCombination_apply] |
| 516 | -- The determinant factor cancels, and `nablaCombination κ` is injective. |
| 517 | rw [h_subst, isRegular_detPow.right.eq_iff, nablaCombination_injective.eq_iff] |
| 518 | |
| 519 | omit [DecidableEq Φ] [∀ τ : Φ, DecidableEq (n τ)] [∀ τ : Φ, DecidableEq (n' τ)] in |
| 520 | /-- For a commutative ring `R`, finite index type `Φ`, row families `n` and `n'`, column counts `κ` |
| 521 | satisfying `FitsRanks n n' κ`, and an array `y` of size `(Σ τ, n τ) × ℕ` over `R`, the product over |
| 522 | places `τ` and heights `k < rankAt n' τ` of the leading `k × k` minors of `yᵀ X` raised to `κ τ k` |
| 523 | equals `D(y) • (weylKernel n κ y * D)`, where `X` is the matrix of polynomial indeterminates and |
| 524 | `D = detPow R n (schurDetExp n n' κ)`. -/ |
| 525 | private lemma prod_det_pow_eq_eval_smul_weylKernel_mul (h_fits : FitsRanks n n' κ) : |
| 526 | ∏ τ : Φ, ∏ k ∈ range (rankAt n' τ), |
| 527 | (of fun s t : Fin k ↦ ∑ a : n τ, y (⟨τ, a⟩, s) • X (⟨τ, a⟩, ↑t)).det ^ κ τ k = |
| 528 | (detPow R n (schurDetExp n n' κ)).eval y • |
| 529 | (weylKernel n κ y * detPow R n (schurDetExp n n' κ)) := by |
| 530 | -- The minors of `yᵀ x` of size below `rankAt n τ` give the kernel in rank `n`, the minor of size |
| 531 | -- `rankAt n τ` is `det y * det x`, and the larger ones have exponent `0` by `h_fits`. |
| 532 | simp only [smul_eq_C_mul, detPow, minor, map_prod, map_pow, RingHom.map_det, weylKernel, |
| 533 | rowSubst_highestPoly, ← prod_mul_distrib] |
| 534 | congr with τ |
| 535 | -- split the product at `k = rankAt n τ`; the factors after that one are `1` |
| 536 | rw [← prod_range_mul_prod_Ico _ (h_fits τ).1, schurDetExp, mul_left_comm, ← mul_pow, |
| 537 | (Ico ..).prod_eq_ite (rankAt n τ) (by simp_all [FitsRanks, Ne.lt_of_le']), |
| 538 | ← (C.mapMatrix _).det_transpose, ← det_mul] |
| 539 | simp [-det_mul, ← (equivFin (n τ)).symm.sum_comp, Matrix.map] |
| 540 | rfl |
| 541 | |
| 542 | /-- Let `R` be a domain of characteristic zero, and assume `FitsRanks n n' κ`: at each place τ, |
| 543 | |n_τ| ≤ |n'_τ| and `κ τ h = 0` for |n_τ| < h < |n'_τ|. For a family `z τ` of `n' τ × n τ` matrices |
| 544 | and a Weyl module vector ξ, the polynomial `toPoly n' κ` of S_κ(z)ξ, where S_κ(z) = `schur κ z` is |
| 545 | the Schur matrix, is x ↦ (ξ̂·D)(zᵀx). Here ξ̂ = `toPoly n κ ξ` = Σ_i (Gξ)_i b_i (G the Gram matrix, |
| 546 | b_i the basis minor products), and D = ∏_τ det_τ^{d_τ}, with det_τ the determinant of the variables |
| 547 | in block τ and its first |n_τ| columns. The exponent is d_τ = `schurDetExp n n' κ τ`, equal to |
| 548 | `κ τ |n_τ|` if |n_τ| < |n'_τ| and 0 otherwise. -/ |
| 549 | @[simp] |
| 550 | lemma toPoly_schur (h_fits : FitsRanks n n' κ) [IsDomain R] [CharZero R] |
| 551 | (z : (τ : Φ) → Matrix (n' τ) (n τ) R) (ξ : WeylIndexFamily n κ → R) : |
| 552 | toPoly n' κ (schur κ z *ᵥ ξ) = |
| 553 | rowSubst (fun τ : Φ ↦ (z τ)ᵀ) (toPoly n κ ξ * detPow R n (schurDetExp n n' κ)) := by |
| 554 | -- Both sides are linear in `ξ`, so by `ext_weylEval` take `ξ = ev_y` with `D y ≠ 0`, and multiply |
| 555 | -- by `D y`: the left side becomes the kernel at `z y`, that is `highestPoly` of rank `n'` at |
| 556 | -- `yᵀ zᵀ x`. |
| 557 | let D : MatrixPoly (Σ τ : Φ, n τ) R := detPow R n (schurDetExp n n' κ) |
| 558 | have h_minors (y : (Σ τ : Φ, n τ) × ℕ → R) : |
| 559 | ∏ τ : Φ, ∏ k ∈ range (rankAt n' τ), |
| 560 | (of fun s t : Fin k ↦ ∑ a : n τ, y (⟨τ, a⟩, s) • X (⟨τ, a⟩, ↑t)).det ^ κ τ k = |
| 561 | D.eval y • (weylKernel n κ y * D) := |
| 562 | prod_det_pow_eq_eval_smul_weylKernel_mul y h_fits |
| 563 | suffices h_lin : toPoly n' κ ∘ₗ toLin' (schur κ z) = |
| 564 | (rowSubst fun τ ↦ (z τ)ᵀ).toLinearMap ∘ₗ LinearMap.mulRight R D ∘ₗ toPoly n κ from |
| 565 | LinearMap.congr_fun h_lin ξ |
| 566 | refine ext_weylEval (schurDetExp n n' κ) (fun y _ (hy : D.eval y ≠ 0) ↦ ?_) Set.infinite_univ |
| 567 | change toPoly n' κ (schur κ z *ᵥ weylEval n κ y) = |
| 568 | rowSubst (fun τ ↦ (z τ)ᵀ) (toPoly n κ (weylEval n κ y) * D) |
| 569 | rw [← smul_right_inj hy, ← map_smul, ← map_smul, schur_mulVec_weylEval h_fits, toPoly_weylEval, |
| 570 | toPoly_weylEval, ← h_minors, ← rowSubst_highestPoly, rowSubst_rowSubst, weylKernel] |
| 571 | simp [mul_comm (z ..)] |
| 572 | rfl |
| 573 | |
| 574 | variable [IsDomain R] [CharZero R] |
| 575 | |
| 576 | /-- Over a domain of characteristic zero, the map sending a coordinate vector ξ to the |
| 577 | polynomial ∑ (Gξ)_i b_i, G the Gram matrix, is injective. -/ |
| 578 | lemma toPoly_injective : Function.Injective (toPoly (R := R) n κ) := by |
| 579 | -- The integer `det G` is not zero, since `G` is positive definite over `ℂ`. |
| 580 | have h_int : (weylGram n κ).det ≠ 0 := by |
| 581 | simpa [weylGramOver, ← Int.cast_det] using (weylGramOver_posDef (n := n) (κ := κ)).det_pos.ne' |
| 582 | have h_det : (weylGramOver : Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) R).det ≠ 0 := by |
| 583 | rwa [weylGramOver, ← Int.cast_det, Int.cast_ne_zero] |
| 584 | refine (injective_iff_map_eq_zero _).2 fun ξ hξ ↦ |
| 585 | eq_zero_of_mulVec_eq_zero h_det (nablaCombination_injective ?_) |
| 586 | rw [nablaCombination_weylGramOver_mulVec, hξ, map_zero] |
| 587 | |
| 588 | /-- Let `toPoly n κ` be the map on the Weyl module `WeylIndexFamily n κ → ℂ` sending ξ to Σ_i (Gξ)_i |
| 589 | b_i. Here G is the Gram matrix `weylGramOver` (the integer matrix `New.weylGram` mapped into ℂ), and |
| 590 | b_i = `nablaBasis ℂ n κ i` are the basis minor products. Over ℂ, its range is exactly the module |
| 591 | `New.nablaFamily ℂ n κ` of Borel semi-invariant polynomials of the weight given by κ. -/ |
| 592 | lemma range_toPoly : (toPoly n κ).range = nablaFamily ℂ n κ := |
| 593 | -- The Gram matrix is invertible, so the range is that of `nablaCombination κ`, the span of the |
| 594 | -- basis. |
| 595 | ((toLinearEquiv' _ weylGramOver_posDef.isUnit.invertible).range_comp _).trans |
| 596 | range_nablaCombination |
| 597 | |
| 598 | end New |
| 599 | |
| 600 | end Gram |
| 601 | |
| 602 | /-! |
| 603 | ## Zariski density of the unitary group and Schur's lemma |
| 604 | |
| 605 | `New.weylEval n κ y` is the vector of the values at the array `y` of the basis minor products. |
| 606 | -/ |
| 607 | |
| 608 | section SchurLemma |
| 609 | |
| 610 | namespace New |
| 611 | |
| 612 | open MvPolynomial Matrix «GL» RingHom Function |
| 613 | |
| 614 | variable {Φ : Type} {K : Type _} [Field K] [CharZero K] [Fintype Φ] |
| 615 | {n : Φ → Type} [∀ τ : Φ, Fintype (n τ)] [∀ τ : Φ, DecidableEq (n τ)] {κ : Φ → ℕ → ℕ} |
| 616 | |
| 617 | section Density |
| 618 | |
| 619 | open Complex Norms.L2Operator NormedSpace ComplexStarModule |
| 620 | |
| 621 | /-- For a complex polynomial P in the entries of a family of square matrices, its value |
| 622 | `evalMatrix g P` at the family `g` is an entire function of `g`. -/ |
| 623 | lemma GL.analyticOnNhd_evalMatrix {P : MvPolynomial ((τ : Φ) × n τ × n τ) ℂ} : |
| 624 | AnalyticOnNhd ℂ (fun g : ∀ τ : Φ, Matrix (n τ) (n τ) ℂ ↦ evalMatrix g P) ⊤ := |
| 625 | -- `evalMatrix g P` is `P` evaluated at the entries of `g`, which are linear functions of `g`. |
| 626 | .eval_linearMap ⟨⟨_, by tauto⟩, by tauto⟩ P |
| 627 | |
| 628 | /-- The unitary group is Zariski dense. Let P be a complex polynomial in the entries of a family |
| 629 | of square matrices `g τ`, and write `evalMatrix g P` for its value at `g`. If P vanishes at every |
| 630 | family of unitary matrices (`(g τ)ᴴ * g τ = 1` for all τ), then it vanishes at every family x. -/ |
| 631 | lemma GL.zariski_dense_unitary (x : (τ : Φ) → Matrix (n τ) (n τ) ℂ) |
| 632 | (P : MvPolynomial ((τ : Φ) × n τ × n τ) ℂ) |
| 633 | (hP : ∀ g : ∀ τ : Φ, Matrix (n τ) (n τ) ℂ, (∀ τ : Φ, (g τ)ᴴ * g τ = 1) → evalMatrix g P = 0) : |
| 634 | evalMatrix x P = 0 := by |
| 635 | -- `P` is entire and `exp` is a submersion at `0`, so it is enough that `P` vanish at each |
| 636 | -- `exp y`. |
| 637 | -- The entire function `s ↦ P (exp (I • (s • -ℜ y + ℑ y)))` vanishes for real `s`, where the |
| 638 | -- exponential is unitary, hence everywhere; and at `s = I` the exponent is `y`. |
| 639 | refine eq_zero_of_submersion analyticOnNhd_evalMatrix hasStrictFDerivAt_exp_zero (by bound) |
| 640 | (.of_forall fun y ↦ ?_) x |
| 641 | let path (s : ℂ) : ∀ τ : Φ, Matrix (n τ) (n τ) ℂ := I • (s • (-ℜ y).val + ℑ y) |
| 642 | have h_entire : AnalyticOnNhd ℂ (fun s : ℂ ↦ evalMatrix (NormedSpace.exp (path s)) P) Set.univ := |
| 643 | analyticOnNhd_evalMatrix.comp (fun _ _ ↦ .comp (exp_analytic _) (f := path) (by fun_prop)) |
| 644 | (by simp) |
| 645 | -- at real `s` the exponent is skew-adjoint, so its exponential is unitary |
| 646 | have h_real (t : ℝ) : evalMatrix (NormedSpace.exp (path t)) P = 0 := |
| 647 | hP _ (congrFun (Unitary.star_mul_self_of_mem (selfAdjoint.expUnitary (t • -ℜ y + ℑ y)).prop)) |
| 648 | -- The real points accumulate at `0`, so the identity theorem applies. |
| 649 | have h_zero : (fun s : ℂ ↦ evalMatrix (NormedSpace.exp (path s)) P) = fun _ ↦ 0 := |
| 650 | h_entire.eq_of_frequently_eq analyticOnNhd_const |
| 651 | (((hasDerivAt_id 0).ofReal_comp.tendsto_nhdsNE one_ne_zero).frequently (.of_forall h_real)) |
| 652 | simpa [path, smul_smul, realPart_add_I_smul_imaginaryPart] using congrFun h_zero I |
| 653 | |
| 654 | end Density |
| 655 | |
| 656 | variable [DecidableEq Φ] |
| 657 | |
| 658 | /-- Over a field `K` of characteristic zero, let `v₀` be the frame vector of the enumerations `e`, |
| 659 | the evaluation vector at the permutation array of `e`. Two linear maps that agree on |
| 660 | `schur κ g *ᵥ v₀` for all tuples `g` of invertible matrices are equal. |
| 661 | |
| 662 | So the translates of the frame vector under the product of general linear groups span the module. |
| 663 | The reason is duality: they are the evaluation vectors at invertible arrays, and a polynomial that |
| 664 | vanishes on invertible matrices is zero. |
| 665 | |
| 666 | In other words, the frame vector is cyclic for the product of the general linear groups. -/ |
| 667 | lemma GL.ext_schur_weylEval (e : ∀ τ : Φ, n τ ≃ Fin (rankAt n τ)) |
| 668 | {M : Type*} [AddCommGroup M] [Module K M] {L L' : (WeylIndexFamily n κ → K) →ₗ[K] M} |
| 669 | (h_agree : ∀ g : ∀ τ : Φ, GL (n τ) K, |
| 670 | L (schur κ (fun τ : Φ ↦ (g τ).val) *ᵥ |
| 671 | weylEval n κ (permArray fun (τ : Φ) (i : n τ) ↦ (e τ i : ℕ))) = |
| 672 | L' (schur κ (fun τ : Φ ↦ (g τ).val) *ᵥ |
| 673 | weylEval n κ (permArray fun (τ : Φ) (i : n τ) ↦ (e τ i : ℕ)))) : L = L' := by |
| 674 | -- By `ext_weylEval` it suffices to treat the vectors `weylEval n κ y` with `detPow K n 1`, the |
| 675 | -- product of the determinants of the square blocks, non-zero at `y`. Such a vector is |
| 676 | -- `schur κ g` applied to the frame vector, with `g = squarePart e y` invertible. |
| 677 | refine ext_weylEval 1 (fun y _ hy ↦ ?_) Set.infinite_univ |
| 678 | have h_unit (τ : Φ) : IsUnit (squarePart e y τ) := by |
| 679 | -- After renumbering rows and columns, its determinant is the factor of `detPow` at `τ`. |
| 680 | apply (isUnit_submatrix_equiv (rowEquivFin n τ).symm (e τ).symm).1 |
| 681 | simp_all [squarePart, detPow, minor, det_apply, isUnit_iff_isUnit_det, Finset.prod_eq_zero_iff] |
| 682 | rw [← schur_squarePart_mulVec e y] |
| 683 | exact h_agree fun τ ↦ (h_unit τ).unit |
| 684 | |
| 685 | /-- Schur's lemma for the unitary group: a complex matrix `T` that commutes with `schur κ g` for |
| 686 | every tuple `g` of unitary matrices is a scalar matrix. |
| 687 | |
| 688 | A form of Weyl's theorem on irreducibility of the complex Schur module: the commutant of the Schur |
| 689 | matrices of all tuples of unitary matrices consists of scalars. -/ |
| 690 | lemma mem_range_scalar_of_commute_schur {T : Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) ℂ} |
| 691 | (hT : ∀ g : (τ : Φ) → Matrix (n τ) (n τ) ℂ, |
| 692 | (∀ τ : Φ, (g τ)ᴴ * g τ = 1) → Commute T (schur κ g)) : |
| 693 | T ∈ Set.range (scalar (WeylIndexFamily n κ)) := by |
| 694 | classical |
| 695 | -- The frame vector `v` spans the highest weight space, which `T` preserves, so `T v = c • v`. |
| 696 | -- The translates of `v` are then eigenvectors for the same `c`, and they span the whole space. |
| 697 | let v : WeylIndexFamily n κ → ℂ := weylEval n κ (permArray fun τ i ↦ (rowEquivFin n τ i : ℕ)) |
| 698 | -- The entries of the commutator are polynomials in `g`, and unitary tuples are Zariski dense. |
| 699 | have h_comm (g : ∀ τ : Φ, Matrix (n τ) (n τ) ℂ) : |
| 700 | schur κ g *ᵥ T *ᵥ v = T *ᵥ schur κ g *ᵥ v := by |
| 701 | ext i |
| 702 | simpa +contextual [Ring.lie_def, ↓map_mulVec, Matrix.map_sub, (hT ..).eq, comp_def, |
| 703 | ← mulVec_mulVec, sub_eq_zero, sub_mulVec] using! |
| 704 | zariski_dense_unitary (n := n) g ((⁅schur κ (genericMatrixAt ℂ n), T.map C⁆ *ᵥ C ∘ v) i) |
| 705 | -- The diagonal tuple `D` with `2` at `(τ, a)` and `1` elsewhere scales coordinate `i` by |
| 706 | -- `2 ^ tableauWeight i τ a`, and `v`, hence `T v`, by `2` to the highest weight. |
| 707 | have h_weight (i : WeylIndexFamily n κ) (hi : (T *ᵥ v) i ≠ 0) (τ : Φ) (a : n τ) : |
| 708 | tableauWeight i τ a = diagramWeight (rankAt n) κ (τ, rowEquivFin n τ a) := by |
| 709 | let D (σ : Φ) : Matrix (n σ) (n σ) ℂ := diagonal fun b ↦ if σ = τ ∧ b ≍ a then 2 else 1 |
| 710 | let m : ℕ := diagramWeight (rankAt n) κ (τ, rowEquivFin n τ a) |
| 711 | have hD : schur κ D *ᵥ v = (2 : ℂ) ^ m • v := toPoly_injective (by |
| 712 | simp [v, D, m, rowSubst_weylKernel_permArray, ite_and, blockTriangular_diagonal]) |
| 713 | have h_norm : ‖(schur κ D *ᵥ T *ᵥ v) i‖ = ‖(T *ᵥ (2 : ℂ) ^ m • v) i‖ := by rw [h_comm, hD] |
| 714 | simp_all [D, m, schur_diagonal, ite_and, mulVec_diagonal, mulVec_smul] |
| 715 | -- As the `b_i` are independent, a linear form `φ` on polynomials has the values `(T v)_i` on |
| 716 | -- them. It sees only the highest weight, so on the `b_i` it is `c` times evaluation at the frame. |
| 717 | obtain ⟨L, hL⟩ : ∃ L : MatrixPoly (Σ τ : Φ, n τ) ℂ →ₗ[ℂ] WeylIndexFamily n κ → ℂ, |
| 718 | L ∘ₗ nablaCombination κ = .id := |
| 719 | LinearMap.exists_leftInverse_of_injective _ (LinearMap.ker_eq_bot.2 nablaCombination_injective) |
| 720 | let φ : MatrixPoly (Σ τ : Φ, n τ) ℂ →ₗ[ℂ] ℂ := dotProductBilin ℂ ℂ (T *ᵥ v) ∘ₗ L |
| 721 | have hφ (i : WeylIndexFamily n κ) : φ (nablaBasis ℂ n κ i) = (T *ᵥ v) i := by |
| 722 | simpa [φ] using congrArg (dotProduct (T *ᵥ v)) (LinearMap.congr_fun hL (Pi.single i 1)) |
| 723 | let c : ℂ := φ (weylKernel n κ (permArray fun τ i ↦ (rowEquivFin n τ i : ℕ))) |
| 724 | have h_eigen : T *ᵥ v = c • v := by |
| 725 | ext i |
| 726 | rw [← hφ] |
| 727 | exact map_nablaBasis_eq_map_weylKernel_mul_weylEval (rowEquivFin n) i φ fun hi τ a ↦ |
| 728 | (h_weight i (by rwa [← hφ]) τ a).ge |
| 729 | have h_translate (g : ∀ τ : Φ, Matrix (n τ) (n τ) ℂ) : |
| 730 | T *ᵥ schur κ g *ᵥ v = c • schur κ g *ᵥ v := by rw [← h_comm, h_eigen, mulVec_smul] |
| 731 | refine ⟨c, toLin'.injective (ext_schur_weylEval (rowEquivFin n) fun g ↦ ?_)⟩ |
| 732 | simpa [v, ← mulVec_mulVec] using (h_translate fun τ ↦ (g τ).val).symm |
| 733 | |
| 734 | end New |
| 735 | |
| 736 | end SchurLemma |