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.Matrix.Order |
| 5 | import Mathlib.LinearAlgebra.Matrix.Integer |
| 6 | import Mathlib.RingTheory.SimpleRing.Principal |
| 7 | import Mathlib.RingTheory.TotallySplit |
| 8 | import Mathlib.Tactic.Monotonicity.Lemmas |
| 9 | import Mathlib.Topology.Sheaves.Presheaf |
| 10 | public import Lib.General.LinearAlgebra.IntegralLattices |
| 11 | public import Lib.GLn.SchurModule.TensorModel |
| 12 | import Lib.GLn.SchurModule.SchurMatrix |
| 13 | import Lib.GLn.SchurModule.WeylKernel |
| 14 | |
| 15 | /-! |
| 16 | # Fock pairing, Hermitian norm and Cartan products for the Gram matrix of the Weyl kernel |
| 17 | |
| 18 | This file uses the Fock pairing `⟨P, Q⟩ = P(∂) Q (0)` (`New.fockPairing`) and Schur's lemma to show |
| 19 | that the Gram matrix `G = New.weylGram` times the matrix of the Fock pairings of the basis |
| 20 | `b_i = New.nablaBasis` (products of minors) of the semi-invariants `New.nablaFamily` is the hook |
| 21 | number `New.hookNumber κ N = ⟨f, f⟩`, the Fock pairing of `f = New.highestPoly` with itself. |
| 22 | It treats weights with one row at each place. It defines the squared |
| 23 | norm `New.weylNormSq ξ = re (ξ* G ξ)` and builds a tight frame of integral vectors. It shows that |
| 24 | this norm is submultiplicative under Cartan multiplication of polynomials of weights `κ` and `κ'`, |
| 25 | and defines the products of determinants `New.pairedDetProd`. |
| 26 | |
| 27 | ## Main definitions and results |
| 28 | |
| 29 | * `New.weylGram_mul_fockPairing`, `New.fockPairing_toPoly_nablaBasis`: by Schur's lemma, `G` times |
| 30 | the matrix of the Fock pairings `⟨b_i, b_j⟩` is the hook number `New.hookNumber`. |
| 31 | * `New.GL.comulMatrix`: the matrix `C`, in the bases `New.nablaBasis`, of multiplication of |
| 32 | polynomials of weights `κ` and `κ'` into those of weight `κ + κ'`; |
| 33 | `New.GL.vecMul_comulMatrix_eq_iff`: acting on row vectors, `C` multiplies polynomials; |
| 34 | `New.GL.comulMatrix_mulVec_weylEval`: acting on columns, it sends an evaluation vector to a tensor |
| 35 | product of two. |
| 36 | * `New.GL.comulMatrix_isometry`, `New.GL.comulMatrix_equivariant`, `New.GL.hasLeftInv_comulMatrix`: |
| 37 | `C` is an isometry for the Gram matrices, intertwines the Schur matrices, and has a left inverse |
| 38 | over `ℤ`. |
| 39 | |
| 40 | Notions from other files: |
| 41 | * `New.WeylIndexFamily n κ`: families that choose, for each place `τ`, a standard filling with rows |
| 42 | `n τ`; they index the basis `b_i`. |
| 43 | * `New.schur κ z`: the Schur matrix `S_κ(z)` of matrices `z τ` of size `n' τ × n τ`. Row `i` |
| 44 | holds the coordinates of `b'_i(z y)` in the products `b_j(y) · ∏_τ det(y_τ)^{d_τ}`, where `b'` is |
| 45 | the basis for the rows `n'` and `d = New.schurDetExp n n' κ`. |
| 46 | * `New.mem_range_scalar_of_commute_schur` (`Lib.GLn.SchurModule.WeylKernel`): Schur's lemma, a |
| 47 | matrix that commutes with `New.schur κ g` for all unitary `g` is scalar. |
| 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 | ## The Fock form and the Gram matrix |
| 58 | |
| 59 | A vector `ξ` pairs with a polynomial `P = ∑ c_k b_k` in two ways, by `ξ(P) = ∑ ξ_k c_k` and by the |
| 60 | Fock pairing `⟨ξ̂, P⟩` with `ξ̂ = New.toPoly n κ ξ`. By Schur's lemma the two are proportional, and |
| 61 | the factor is the hook number. |
| 62 | -/ |
| 63 | |
| 64 | section FockForm |
| 65 | |
| 66 | namespace New |
| 67 | |
| 68 | open MvPolynomial «GL» Fintype Finset Matrix |
| 69 | |
| 70 | variable {Φ : Type} {R : Type _} [CommRing R] [Fintype Φ] [DecidableEq Φ] |
| 71 | {n : Φ → Type} [∀ τ : Φ, Fintype (n τ)] [∀ τ : Φ, DecidableEq (n τ)] {κ : Φ → ℕ → ℕ} |
| 72 | (ξ η : WeylIndexFamily n κ → R) |
| 73 | |
| 74 | omit [∀ τ : Φ, DecidableEq (n τ)] in |
| 75 | /-- The Fock pairing of the polynomial Σ_i (Gξ)_i b_i attached to ξ with b_k is the coordinate k of |
| 76 | HᵀGξ, where G is the Gram matrix and H the integer matrix of the Fock pairings ⟨b_i, b_j⟩. -/ |
| 77 | lemma fockPairing_toPoly_nablaBasis_eq_mulVec (k : WeylIndexFamily n κ) : |
| 78 | fockPairing R (toPoly n κ ξ) (nablaBasis R n κ k) = |
| 79 | (((of fun i j : WeylIndexFamily n κ ↦ |
| 80 | fockPairing ℤ (nablaBasis ℤ n κ i) (nablaBasis ℤ n κ j))ᵀ * weylGram n κ).map |
| 81 | (Int.cast : ℤ → R) *ᵥ ξ) k := by |
| 82 | have h_entry (i : WeylIndexFamily n κ) : |
| 83 | (fockPairing ℤ (nablaBasis ℤ n κ i) (nablaBasis ℤ n κ k) : R) = |
| 84 | fockPairing R (nablaBasis R n κ i) (nablaBasis R n κ k) := by |
| 85 | simpa using map_fockPairing (Int.castRingHom R) (nablaBasis ℤ n κ i) (nablaBasis ℤ n κ k) |
| 86 | rw [map_mul_intCast, ← mulVec_mulVec, ← nablaCombination_weylGramOver_mulVec] |
| 87 | simp [Fintype.linearCombination_apply, mulVec.eq_1 _ (weylGramOver *ᵥ ξ), dotProduct, h_entry, |
| 88 | mul_comm] |
| 89 | |
| 90 | omit [DecidableEq Φ] in |
| 91 | /-- The kernel at the permutation array of the row numbering `rowEquivFin` is the product of the |
| 92 | leading minors with the rows renamed, so its Fock pairing with itself is the hook number. -/ |
| 93 | lemma fockPairing_weylKernel_permArray_self : |
| 94 | fockPairing R (weylKernel n κ (permArray fun (τ : Φ) (i : n τ) ↦ (rowEquivFin n τ i : ℕ))) |
| 95 | (weylKernel n κ (permArray fun (τ : Φ) (i : n τ) ↦ (rowEquivFin n τ i : ℕ))) = |
| 96 | hookNumber κ (rankAt n) := by |
| 97 | let p (τ : Φ) : Matrix (Fin (rankAt n τ)) (n τ) R := |
| 98 | of fun i a ↦ permArray (fun (σ : Φ) (b : n σ) ↦ (rowEquivFin n σ b : ℕ)) (⟨τ, a⟩, i) |
| 99 | have h_orth (τ : Φ) : p τ * (p τ)ᵀ = 1 := by |
| 100 | ext i j |
| 101 | rw [Matrix.mul_apply, ← (rowEquivFin n τ).symm.sum_comp] |
| 102 | simp [p, permArray, Fin.val_inj, Matrix.one_apply, eq_comm] |
| 103 | let f : MatrixPoly (Σ τ : Φ, Fin (rankAt n τ)) R := highestPoly R κ (rankAt n) |
| 104 | calc fockPairing R (rowSubst p f) (rowSubst p f) |
| 105 | _ = fockPairing R f f := by |
| 106 | simp only [fockPairing_rowSubst p, rowSubst_rowSubst, h_orth, rowSubst_one] |
| 107 | _ = hookNumber κ (rankAt n) := by |
| 108 | simpa [f, hookNumber] using (map_fockPairing (Int.castRingHom R) (highestPoly ℤ κ (rankAt n)) |
| 109 | (highestPoly ℤ κ (rankAt n))).symm |
| 110 | |
| 111 | /-- Let `n` be the family of row types and `κ` the weight, and let `T` be a complex matrix on |
| 112 | `WeylIndexFamily n κ` whose product with a vector `ξ` has `k`-th coordinate equal to the Fock |
| 113 | pairing of `toPoly n κ ξ` with `nablaBasis ℂ n κ k`, for every `ξ` and `k`. Then `T` commutes with |
| 114 | the Schur matrix `schur κ g` of every tuple `g` of square matrices. -/ |
| 115 | private lemma mul_schur_comm_of_mulVec_eq |
| 116 | {T : Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) ℂ} |
| 117 | (hT : ∀ (ξ : WeylIndexFamily n κ → ℂ) (k : WeylIndexFamily n κ), |
| 118 | (T *ᵥ ξ) k = fockPairing ℂ (toPoly n κ ξ) (nablaBasis ℂ n κ k)) |
| 119 | (g : ∀ τ : Φ, Matrix (n τ) (n τ) ℂ) : T * schur κ g = schur κ g * T := by |
| 120 | -- Both Fock pairings make `schur κ g` adjoint to the substitution by `g`. |
| 121 | refine ext_iff_mulVec.2 fun ξ ↦ funext fun k ↦ ?_ |
| 122 | have h_expand : rowSubst g (nablaBasis ℂ n κ k) = |
| 123 | ∑ j : WeylIndexFamily n κ, schur κ g k j • nablaBasis ℂ n κ j := by |
| 124 | simp [← sum_schur_smul_nablaBasis FitsRanks.refl, detPow] |
| 125 | calc ((T * schur κ g) *ᵥ ξ) k |
| 126 | _ = fockPairing ℂ (rowSubst (fun τ : Φ ↦ (g τ)ᵀ) (toPoly n κ ξ)) (nablaBasis ℂ n κ k) := by |
| 127 | simp [← mulVec_mulVec, hT, toPoly_schur FitsRanks.refl, detPow] |
| 128 | _ = fockPairing ℂ (toPoly n κ ξ) (rowSubst g (nablaBasis ℂ n κ k)) := |
| 129 | fockPairing_rowSubst _ _ _ |
| 130 | _ = ((schur κ g * T) *ᵥ ξ) k := by |
| 131 | simp [h_expand, ← hT, ← mulVec_mulVec, mulVec.eq_1 (schur κ g), dotProduct] |
| 132 | |
| 133 | /-- The Gram matrix `weylGram n κ` has as entries the integer coefficients of the generic kernel |
| 134 | `weylKernel` in the products b_i(x)·b_j(y), where b = `nablaBasis` are the basis minor products. It |
| 135 | times the matrix of Fock pairings ⟨b_i,b_j⟩ = b_i(∂)b_j(0) equals the hook number |
| 136 | `hookNumber κ (rankAt n)` times the identity matrix. -/ |
| 137 | lemma weylGram_mul_fockPairing : |
| 138 | (weylGram n κ * of fun i j : WeylIndexFamily n κ ↦ |
| 139 | fockPairing ℤ (nablaBasis ℤ n κ i) (nablaBasis ℤ n κ j)) = |
| 140 | hookNumber κ (rankAt n) • 1 := by |
| 141 | -- Over `ℂ` let `T` be the map with `⟨ξ̂, P⟩ = (T ξ)(P)`. Both pairings make the Schur matrix of |
| 142 | -- `g` adjoint to the substitution `P ↦ P(g ·)`, so `T` commutes with it and is a scalar `c`. |
| 143 | let H : Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) ℤ := |
| 144 | of fun i j : WeylIndexFamily n κ ↦ fockPairing ℤ (nablaBasis ℤ n κ i) (nablaBasis ℤ n κ j) |
| 145 | let T : Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) ℂ := (Hᵀ * weylGram n κ).map Int.cast |
| 146 | have hT (ξ : WeylIndexFamily n κ → ℂ) (k : WeylIndexFamily n κ) : |
| 147 | (T *ᵥ ξ) k = fockPairing ℂ (toPoly n κ ξ) (nablaBasis ℂ n κ k) := |
| 148 | (fockPairing_toPoly_nablaBasis_eq_mulVec ξ k).symm |
| 149 | have h_comm (g : ∀ τ : Φ, Matrix (n τ) (n τ) ℂ) : T * schur κ g = schur κ g * T := |
| 150 | mul_schur_comm_of_mulVec_eq hT g |
| 151 | obtain ⟨c, hc⟩ : T ∈ Set.range (scalar (WeylIndexFamily n κ)) := |
| 152 | mem_range_scalar_of_commute_schur fun g _ ↦ h_comm g |
| 153 | -- The frame vector `v` has the polynomial `K` with `v(K) = 1` and `⟨K, K⟩` the hook number. |
| 154 | let w : (Σ τ : Φ, n τ) × ℕ → ℂ := permArray fun (τ : Φ) (i : n τ) ↦ (rowEquivFin n τ i : ℕ) |
| 155 | let v : WeylIndexFamily n κ → ℂ := weylEval n κ w |
| 156 | have h_const : (hookNumber κ (rankAt n) : ℂ) = c := |
| 157 | calc (hookNumber κ (rankAt n) : ℂ) |
| 158 | _ = fockPairing ℂ (toPoly n κ v) (nablaCombination κ (weylGramOver *ᵥ v)) := by |
| 159 | rw [nablaCombination_weylGramOver_mulVec, toPoly_weylEval, |
| 160 | fockPairing_weylKernel_permArray_self] |
| 161 | _ = (T *ᵥ v) ⬝ᵥ weylGramOver *ᵥ v := by |
| 162 | simp [Fintype.linearCombination_apply, hT, dotProduct, mul_comm] |
| 163 | _ = c * eval w (weylKernel n κ w) := by |
| 164 | rw [← toPoly_weylEval, eval_toPoly, ← hc] |
| 165 | simp [v] |
| 166 | _ = c := by rw [eval_weylKernel_permArray, mul_one] |
| 167 | -- This is an identity of integer matrices; transpose it, using that `G` is symmetric. |
| 168 | have h_int : Hᵀ * weylGram n κ = hookNumber κ (rankAt n) • 1 := by |
| 169 | refine map_injective (Int.cast_injective (α := ℂ)) (hc.symm.trans ?_) |
| 170 | simp [← h_const, Matrix.map_intCast, diagonal_intCast] |
| 171 | simpa [weylGram_isSymm.eq] using congrArg transpose h_int |
| 172 | |
| 173 | /-- Let ξ be a vector of the Weyl module `WeylIndexFamily n κ → R` over any commutative ring `R`, |
| 174 | and let `toPoly n κ ξ` be its polynomial Σ_i (Gξ)_i b_i. Here G is the Gram matrix `weylGramOver` |
| 175 | and b_i = `nablaBasis R n κ i` are the basis minor products. For each index k, the Fock pairing |
| 176 | ⟨P,Q⟩ = P(∂)Q(0) of `toPoly n κ ξ` with b_k equals `hookNumber κ (rankAt n)` times the coordinate |
| 177 | ξ_k. -/ |
| 178 | @[simp] |
| 179 | lemma fockPairing_toPoly_nablaBasis (k : WeylIndexFamily n κ) : |
| 180 | fockPairing R (toPoly n κ ξ) (nablaBasis R n κ k) = hookNumber κ (rankAt n) * ξ k := by |
| 181 | rw [fockPairing_toPoly_nablaBasis_eq_mulVec, ← weylGram_isSymm.eq, ← transpose_mul, |
| 182 | weylGram_mul_fockPairing] |
| 183 | simp [Matrix.map_intCast, mulVec_diagonal] |
| 184 | |
| 185 | /-- For vectors ξ, η of the Weyl module over a commutative ring `R` (functions on |
| 186 | `WeylIndexFamily n κ`), the Fock pairing ⟨P,Q⟩ = P(∂)Q(0) of the polynomials |
| 187 | `toPoly n κ ξ = Σ_i (Gξ)_i b_i` and `toPoly n κ η` equals the hook number times ξᵀ G η. Here the b_i |
| 188 | are the basis products of minors `nablaBasis`, indexed by `WeylIndexFamily n κ`. G is the integer |
| 189 | Gram matrix `weylGram`, the coefficients of the generic kernel `weylKernel` in the products b_i(x) |
| 190 | b_j(y), mapped into `R`. The hook number is ⟨f,f⟩, where f is the product over places τ of the |
| 191 | leading principal h×h minors raised to κ_τ(h), for h < |n_τ|. -/ |
| 192 | @[simp] |
| 193 | lemma fockPairing_toPoly_toPoly : |
| 194 | fockPairing R (toPoly n κ ξ) (toPoly n κ η) = |
| 195 | hookNumber κ (rankAt n) * ξ ⬝ᵥ weylGramOver *ᵥ η := by |
| 196 | simp [← nablaCombination_weylGramOver_mulVec η, mul_rotate', linearCombination_apply, dotProduct, |
| 197 | mul_sum] |
| 198 | |
| 199 | /-- The orthogonal projection of an integral tensor `v` to the Weyl module becomes integral after |
| 200 | multiplication by the hook number: some integral vector has the same pairings with the Weyl module |
| 201 | as that multiple of `v`. -/ |
| 202 | lemma exists_weylGram_mulVec_eq_hookNumber_smul (v : ColumnFilling n κ → ℤ) : |
| 203 | ∃ η : WeylIndexFamily n κ → ℤ, |
| 204 | weylGram n κ *ᵥ η = hookNumber κ (rankAt n) • ((fillingMatrix n κ)ᵀ *ᵥ v) := by |
| 205 | -- The matrix of Fock pairings is the hook number times the inverse of the Gram matrix. |
| 206 | refine ⟨(of fun i j ↦ fockPairing ℤ (nablaBasis ℤ n κ i) (nablaBasis ℤ n κ j)) *ᵥ |
| 207 | (fillingMatrix n κ)ᵀ *ᵥ v, ?_⟩ |
| 208 | rw [mulVec_mulVec, weylGram_mul_fockPairing, smul_mulVec, one_mulVec] |
| 209 | |
| 210 | end New |
| 211 | |
| 212 | end FockForm |
| 213 | |
| 214 | /-! |
| 215 | ## Weights with one row at each place |
| 216 | |
| 217 | If only columns of height one occur, with `κ τ 1` of them at `τ`, the basis polynomials are |
| 218 | monomials in the first columns `z_τ` of variables. |
| 219 | -/ |
| 220 | |
| 221 | section OneRow |
| 222 | |
| 223 | namespace New |
| 224 | |
| 225 | open MvPolynomial Finset Matrix Nat |
| 226 | |
| 227 | variable {Φ R : Type} [Fintype Φ] {n : Φ → Type} [∀ τ : Φ, Fintype (n τ)] {κ : Φ → ℕ → ℕ} |
| 228 | |
| 229 | /-- The exponent of the monomial `∏ z_τ ^ α_τ`, where `z_τ` is the first column of variables at |
| 230 | `τ`. -/ |
| 231 | noncomputable def firstColumnExponent (α : ∀ τ : Φ, n τ → ℕ) : ((τ : Φ) × n τ) × ℕ →₀ ℕ := |
| 232 | (Finsupp.equivFunOnFinite.symm fun x : (τ : Φ) × n τ ↦ α x.1 x.2).embDomain |
| 233 | (Function.Embedding.sectL ((τ : Φ) × n τ) 0) |
| 234 | |
| 235 | /-- A product over the exponent `firstColumnExponent α` runs over the variables in the first |
| 236 | columns. -/ |
| 237 | lemma prod_firstColumnExponent {M : Type} [CommMonoid M] (α : ∀ τ : Φ, n τ → ℕ) |
| 238 | (f : ((τ : Φ) × n τ) × ℕ → ℕ → M) (hf : ∀ x : ((τ : Φ) × n τ) × ℕ, f x 0 = 1) : |
| 239 | (firstColumnExponent α).prod f = ∏ τ : Φ, ∏ b : n τ, f (⟨τ, b⟩, 0) (α τ b) := by |
| 240 | rw [firstColumnExponent, Finsupp.prod_embDomain, Finsupp.prod_fintype _ _ fun x ↦ hf _, |
| 241 | Fintype.prod_sigma] |
| 242 | rfl |
| 243 | |
| 244 | variable [∀ τ : Φ, DecidableEq (n τ)] |
| 245 | |
| 246 | /-- Suppose only columns of height at most one occur (`κ τ h = 0` for 1 < h < `N τ`). Then the |
| 247 | product over τ of the polynomials `tableauPoly` of the fillings `T τ` (products of minors on the |
| 248 | rows given by the columns' entries) is a monomial in the first column of variables at each τ. Its |
| 249 | exponent at (τ, b) is the number of height-one columns of `T τ` with entry b. -/ |
| 250 | lemma prod_tableauPoly_one_row [CommRing R] {N : Φ → ℕ} (hN : ∀ τ : Φ, 1 < N τ) |
| 251 | (hκ : ∀ (τ : Φ) (h : ℕ), 1 < h → h < N τ → κ τ h = 0) |
| 252 | (T : ∀ τ : Φ, Tableau (n τ) (N τ) (κ τ)) : |
| 253 | ∏ τ : Φ, tableauPoly (m := (τ : Φ) × n τ) R (Sigma.mk τ) (T τ) = |
| 254 | monomial (firstColumnExponent fun τ b ↦ #{j | T τ ⟨1, hN τ⟩ j (0 : Fin 1) = b}) 1 := by |
| 255 | rw [monomial_eq, C_1, one_mul, prod_firstColumnExponent _ _ fun x ↦ pow_zero _] |
| 256 | refine prod_congr rfl fun τ _ ↦ ?_ |
| 257 | rw [tableauPoly, Fintype.prod_eq_single ⟨1, hN τ⟩] |
| 258 | · -- A minor of size one is a variable; sort the columns of height one by their entry. |
| 259 | simp [minor, ← prod_fiberwise' univ (fun j ↦ T τ ⟨1, hN τ⟩ j (0 : Fin 1)) |
| 260 | fun b ↦ (X (⟨τ, b⟩, 0) : MatrixPoly ((τ : Φ) × n τ) R)] |
| 261 | · -- Minors of size zero are `1`, and there are no columns of height above one. |
| 262 | rintro ⟨_ | _ | h, h_lt⟩ h_ne |
| 263 | · simp [minor] |
| 264 | · exact (h_ne rfl).elim |
| 265 | · exact prod_eq_one fun j _ ↦ (Fin.cast (hκ τ (h + 2) (by omega) h_lt) j).elim0 |
| 266 | |
| 267 | /-- The hook number of a weight with one row at each place is the product of the factorials of the |
| 268 | row lengths. -/ |
| 269 | lemma hookNumber_one_row [DecidableEq Φ] {N : Φ → ℕ} (hN : ∀ τ : Φ, 1 < N τ) |
| 270 | (hκ : ∀ (τ : Φ) (h : ℕ), 1 < h → h < N τ → κ τ h = 0) : |
| 271 | hookNumber κ N = (∏ τ : Φ, (κ τ 1)! : ℕ) := by |
| 272 | rw [hookNumber, highestPoly, prod_tableauPoly_one_row hN hκ, fockPairing_monomial, |
| 273 | prod_firstColumnExponent _ _ fun _ ↦ by simp, coeff_monomial, ite_eq_left rfl] |
| 274 | simp only [mul_one, cast_prod] |
| 275 | refine prod_congr rfl fun τ _ ↦ ?_ |
| 276 | rw [Fintype.prod_eq_single (Fin.castLE (hN τ).le 0) fun b hb ↦ by simp [hb.symm]] |
| 277 | simp |
| 278 | |
| 279 | variable [DecidableEq Φ] [Field R] [CharZero R] |
| 280 | |
| 281 | end New |
| 282 | |
| 283 | end OneRow |
| 284 | |
| 285 | /-! |
| 286 | ## The Hermitian norm |
| 287 | |
| 288 | * `New.weylNormSq`: the squared norm `re (ξ* G ξ)` of a complex coordinate vector `ξ`. |
| 289 | * `New.GL.weylNormSq_weylEval_permArray`: the evaluation vector `New.weylEval` at the permutation |
| 290 | array of enumerations of the rows has norm `1`. |
| 291 | * `New.GL.exists_tightFrame`: the hook number times the orthogonal projections of the basis tensors |
| 292 | to the Weyl module form a tight frame of integral vectors; `New.GL.card_columnFilling_le` bounds |
| 293 | the number of basis tensors. |
| 294 | -/ |
| 295 | |
| 296 | namespace New |
| 297 | |
| 298 | open MvPolynomial Matrix Complex ComplexOrder |
| 299 | |
| 300 | variable {Φ : Type} {R : Type} [CommRing R] [Fintype Φ] [DecidableEq Φ] |
| 301 | {n : Φ → Type} [∀ τ : Φ, Fintype (n τ)] [∀ τ : Φ, DecidableEq (n τ)] |
| 302 | {κ : Φ → ℕ → ℕ} (ξ : WeylIndexFamily n κ → ℂ) |
| 303 | |
| 304 | /-- For a complex coordinate vector ξ, the real part of ξ* G ξ, where G is the integer Gram |
| 305 | matrix. It is the squared norm of ξ for the Hermitian form of G, which is positive definite. -/ |
| 306 | noncomputable def weylNormSq : ℝ := |
| 307 | re (star ξ ⬝ᵥ (weylGram n κ).map (Int.cast : ℤ → ℂ) *ᵥ ξ) |
| 308 | |
| 309 | @[simp] |
| 310 | lemma weylNormSq_nonneg : 0 ≤ weylNormSq ξ := weylGramOver_posDef.posSemidef.re_dotProduct_nonneg ξ |
| 311 | |
| 312 | omit [(τ : Φ) → DecidableEq (n τ)] in |
| 313 | lemma weylNormSq_smul (t : ℂ) : weylNormSq (t • ξ) = ‖t‖ ^ 2 * weylNormSq ξ := by |
| 314 | simp [weylNormSq, mulVec_smul, ← mul_assoc, mul_conj', sq] |
| 315 | |
| 316 | omit [(τ : Φ) → DecidableEq (n τ)] in |
| 317 | /-- The squared Gram norm of `σ ∘ (t • ξ)` is `‖σ t‖ ^ 2` times that of `σ ∘ ξ`, for multiplicative |
| 318 | `σ`. -/ |
| 319 | @[simp] |
| 320 | lemma weylNormSq_comp_smul {F : Type*} [FunLike F ℂ ℂ] [MulHomClass F ℂ ℂ] (σ : F) (t : ℂ) : |
| 321 | weylNormSq (σ ∘ (t • ξ)) = ‖σ t‖ ^ 2 * weylNormSq (σ ∘ ξ) := by |
| 322 | have h_comp : σ ∘ (t • ξ) = σ t • (σ ∘ ξ) := funext fun i ↦ map_mul σ t (ξ i) |
| 323 | rw [h_comp, weylNormSq_smul] |
| 324 | |
| 325 | namespace «GL» |
| 326 | |
| 327 | /-- Cauchy–Schwarz for the Hermitian form of a positive definite complex matrix M: |
| 328 | `‖x* M y‖ ^ 2 ≤ re (y* M y) * re (x* M x)`. -/ |
| 329 | lemma posDef_cauchy_schwarz {ι : Type*} [Fintype ι] {M : Matrix ι ι ℂ} (h_posDef : PosDef M) |
| 330 | (x y : ι → ℂ) : |
| 331 | ‖star x ⬝ᵥ M *ᵥ y‖ ^ 2 ≤ (star y ⬝ᵥ M *ᵥ y).re * (star x ⬝ᵥ M *ᵥ x).re := by |
| 332 | -- the Cauchy–Schwarz inequality of the inner product `⟪u, v⟫ = u* M v` that `M` defines |
| 333 | have h_cs := h_posDef.star_dotProduct_mulVec_mul_le x y |
| 334 | rw [eq_re_of_ofReal_le (h_posDef.posSemidef.dotProduct_mulVec_nonneg x), |
| 335 | eq_re_of_ofReal_le (h_posDef.posSemidef.dotProduct_mulVec_nonneg y)] at h_cs |
| 336 | simpa [mul_conj', mul_comm, ← ofReal_pow, ← ofReal_mul, real_le_real] using h_cs |
| 337 | |
| 338 | /-- As a complex number, the squared Gram norm `weylNormSq ξ` is `ξ* G ξ` itself: its imaginary part |
| 339 | is zero because G is positive semidefinite. -/ |
| 340 | lemma coe_weylNormSq : weylNormSq ξ = star ξ ⬝ᵥ weylGramOver *ᵥ ξ := |
| 341 | (eq_re_of_ofReal_le (weylGramOver_posDef.posSemidef.dotProduct_mulVec_nonneg ξ)).symm |
| 342 | |
| 343 | omit [DecidableEq Φ] [∀ τ : Φ, DecidableEq (n τ)] in |
| 344 | /-- The complex conjugate of the evaluation vector at y (the values `b_i y` of the basis minor |
| 345 | products) is the evaluation vector at the conjugate array, since the `b_i` have integer |
| 346 | coefficients. -/ |
| 347 | lemma star_weylEval (y : ((τ : Φ) × n τ) × ℕ → ℂ) : |
| 348 | star (weylEval n κ y) = weylEval n κ (star y) := by |
| 349 | ext i |
| 350 | simp [weylEval, map_eval, Function.comp_def, Pi.star_def] |
| 351 | |
| 352 | /-- For enumerations `e τ` of the rows, the evaluation vector at the permutation array of e (entry |
| 353 | 1 at row `(τ, a)` and column `e τ a`, and 0 elsewhere) has Gram norm 1. -/ |
| 354 | lemma weylNormSq_weylEval_permArray (e : ∀ τ : Φ, n τ ≃ Fin (rankAt n τ)) : |
| 355 | weylNormSq (weylEval n κ (permArray e)) = 1 := by |
| 356 | -- The array `y = permArray e` is real, so the vector is its own conjugate; its Gram form is the |
| 357 | -- kernel at `y` evaluated at `y`, which is `1`. |
| 358 | set y : ((τ : Φ) × n τ) × ℕ → ℂ := permArray e with hy_def |
| 359 | have h_star : star (weylEval n κ y) = weylEval n κ y := by |
| 360 | rw [star_weylEval] |
| 361 | congr 1 |
| 362 | ext x |
| 363 | simp [hy_def, permArray, apply_ite] |
| 364 | have h_form : star (weylEval n κ y) ⬝ᵥ weylGramOver *ᵥ weylEval n κ y = 1 := by |
| 365 | rw [h_star, ← eval_toPoly, toPoly_weylEval] |
| 366 | exact eval_weylKernel_permArray e |
| 367 | change re (star (weylEval n κ y) ⬝ᵥ weylGramOver *ᵥ weylEval n κ y) = 1 |
| 368 | rw [h_form, one_re] |
| 369 | |
| 370 | /-- A tight frame of integral vectors. Let `hk` be the hook number and `⟨ξ, ξ'⟩ = ξ* G ξ'` the form |
| 371 | of the Gram matrix. There are integral vectors `η T`, one for each basis tensor `T` |
| 372 | (`New.ColumnFilling`), with `∑ T, ⟨η T, ξ⟩ η T = hk² ξ` for all `ξ` and of norm at most `hk`. -/ |
| 373 | lemma exists_tightFrame : ∃ η : ColumnFilling n κ → WeylIndexFamily n κ → ℤ, |
| 374 | (∀ ξ : WeylIndexFamily n κ → ℂ, |
| 375 | ∑ T : ColumnFilling n κ, (star (Int.cast ∘ η T) ⬝ᵥ weylGramOver *ᵥ ξ) • (Int.cast ∘ η T) = |
| 376 | (hookNumber κ (rankAt n) : ℂ) ^ 2 • ξ) ∧ |
| 377 | ∀ T : ColumnFilling n κ, |
| 378 | weylNormSq (Int.cast ∘ η T) ≤ (hookNumber κ (rankAt n) : ℝ) ^ 2 := by |
| 379 | -- Take for `η T` the hook number times the orthogonal projection of `T` to the Weyl module. |
| 380 | -- With `F` the embedding into tensors and `G = Fᵀ F`, this means `G (η T) = hk Fᵀ T`, so |
| 381 | -- `⟨η T, ξ⟩` is `hk` times the coordinate `T` of the tensor `F ξ`. |
| 382 | classical |
| 383 | set hk : ℤ := hookNumber κ (rankAt n) |
| 384 | let F : Matrix (ColumnFilling n κ) (WeylIndexFamily n κ) ℂ := fillingMatrixOver ℂ n κ |
| 385 | have h_exists (T : ColumnFilling n κ) : |
| 386 | ∃ η : WeylIndexFamily n κ → ℤ, weylGram n κ *ᵥ η = hk • fillingMatrix n κ T := by |
| 387 | simpa [hk, row] using exists_weylGram_mulVec_eq_hookNumber_smul (Pi.single T 1) |
| 388 | choose η hη using h_exists |
| 389 | refine ⟨η, fun ξ ↦ ?_, fun T ↦ ?_⟩ |
| 390 | · have h_gram (T : ColumnFilling n κ) : weylGramOver *ᵥ (Int.cast ∘ η T) = (hk : ℂ) • F T := by |
| 391 | funext i |
| 392 | simpa [F, mulVec, dotProduct] using congrArg (Int.cast : ℤ → ℂ) (congrFun (hη T) i) |
| 393 | have h_pair (T : ColumnFilling n κ) : |
| 394 | star (Int.cast ∘ η T) ⬝ᵥ weylGramOver *ᵥ ξ = hk * F T ⬝ᵥ ξ := by |
| 395 | have h_real : star (Int.cast ∘ η T : WeylIndexFamily n κ → ℂ) = Int.cast ∘ η T := |
| 396 | funext fun i ↦ by simp |
| 397 | rw [h_real, dotProduct_mulVec, ← mulVec_transpose, (weylGram_isSymm.map _).eq, h_gram, |
| 398 | smul_dotProduct, smul_eq_mul] |
| 399 | refine mulVec_injective_iff_isUnit.2 weylGramOver_posDef.isUnit ?_ |
| 400 | calc weylGramOver *ᵥ ∑ T : ColumnFilling n κ, |
| 401 | (star (Int.cast ∘ η T) ⬝ᵥ weylGramOver *ᵥ ξ) • (Int.cast ∘ η T : WeylIndexFamily n κ → ℂ) |
| 402 | _ = ∑ T : ColumnFilling n κ, (hk * F T ⬝ᵥ ξ) • (hk : ℂ) • F T := by |
| 403 | simp only [mulVec_sum, mulVec_smul, h_pair, h_gram] |
| 404 | _ = (hk : ℂ) ^ 2 • Fᵀ *ᵥ F *ᵥ ξ := by |
| 405 | rw [mulVec_transpose, vecMul_eq_sum, Finset.smul_sum] |
| 406 | simp only [smul_smul, mul_right_comm (hk : ℂ), ← sq, mulVec] |
| 407 | _ = weylGramOver *ᵥ ((hk : ℂ) ^ 2 • ξ) := by |
| 408 | rw [mulVec_smul, mulVec_mulVec, ← weylGramOver_eq_transpose_mul] |
| 409 | · -- The squared norm is `hk * w T` and also `w ⬝ᵥ w ≥ w T ^ 2`, for the tensor `w` of `η T`. |
| 410 | let w : ColumnFilling n κ → ℤ := fillingMatrix n κ *ᵥ η T |
| 411 | have h_coord : η T ⬝ᵥ weylGram n κ *ᵥ η T = hk * w T := by |
| 412 | rw [hη, dotProduct_smul, smul_eq_mul, dotProduct_comm] |
| 413 | rfl |
| 414 | have h_sum : η T ⬝ᵥ weylGram n κ *ᵥ η T = w ⬝ᵥ w := by |
| 415 | rw [← fillingMatrix_transpose_mul_self, ← mulVec_mulVec, dotProduct_mulVec, vecMul_transpose] |
| 416 | have h_single : w T * w T ≤ w ⬝ᵥ w := |
| 417 | Finset.single_le_sum (fun S _ ↦ mul_self_nonneg (w S)) (Finset.mem_univ T) |
| 418 | have h_le : η T ⬝ᵥ weylGram n κ *ᵥ η T ≤ hk ^ 2 := by linarith [sq_nonneg (hk - w T)] |
| 419 | simpa [weylNormSq, dotProduct, mulVec] using (Int.cast_le (R := ℝ)).2 h_le |
| 420 | |
| 421 | omit [DecidableEq Φ] [∀ τ : Φ, DecidableEq (n τ)] in |
| 422 | /-- If all ranks are at most `t ≥ 1` and the diagrams have at most `L` boxes in total, there are at |
| 423 | most `t ^ L` basis tensors (`New.ColumnFilling`). -/ |
| 424 | lemma card_columnFilling_le {t L : ℕ} (ht : 1 ≤ t) (h_rank : ∀ τ : Φ, rankAt n τ ≤ t) |
| 425 | (h_degree : ∑ τ : Φ, ∑ h ∈ Finset.range (rankAt n τ), h * κ τ h ≤ L) : |
| 426 | Nat.card (ColumnFilling n κ) ≤ t ^ L := by |
| 427 | have h_column (τ : Φ) (h : ℕ) : Nat.card (IncreasingMap (rankAt n τ) h) ≤ t ^ h := by |
| 428 | grw [Finite.card_subtype_le, Nat.card_fun, Nat.card_fin, Nat.card_fin, h_rank] |
| 429 | calc Nat.card (ColumnFilling n κ) |
| 430 | _ = ∏ τ : Φ, ∏ h : Fin (rankAt n τ), Nat.card (IncreasingMap (rankAt n τ) h) ^ κ τ h := by |
| 431 | simp only [Nat.card_pi, Finset.prod_const, Finset.card_fin] |
| 432 | _ ≤ t ^ ∑ τ : Φ, ∑ h ∈ Finset.range (rankAt n τ), h * κ τ h := by |
| 433 | grw [h_column] |
| 434 | simp only [← pow_mul, Finset.prod_pow_eq_pow_sum, Finset.sum_range, le_refl] |
| 435 | _ ≤ t ^ L := Nat.pow_le_pow_right ht h_degree |
| 436 | |
| 437 | /-- If the integral Weyl Gram matrix satisfies `G B = h • 1`, then every semi-invariant `f` |
| 438 | of the given weight has `h • f` in the image of `toPoly`. -/ |
| 439 | lemma exists_toPoly_eq_smul_of_weylGram_mul {h : ℤ} |
| 440 | {B : Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) ℤ} |
| 441 | (hB : weylGram n κ * B = h • 1) {f : MatrixPoly (Sigma n) R} (hf : f ∈ nablaFamily R n κ) : |
| 442 | ∃ ζ : WeylIndexFamily n κ → R, toPoly n κ ζ = h • f := by |
| 443 | obtain ⟨c, rfl⟩ := range_nablaCombination.ge hf |
| 444 | refine ⟨B.map (↑) *ᵥ c, ?_⟩ |
| 445 | rw [← nablaCombination_weylGramOver_mulVec, mulVec_mulVec, ← map_mul_intCast, hB] |
| 446 | simp [Matrix.map_intCast, ← Int.cast_smul_eq_zsmul R] |
| 447 | |
| 448 | /-- Over any commutative ring, let f be a Borel semi-invariant of the weight given by κ |
| 449 | (`New.nablaFamily`). Then the hook number times f is `toPoly n κ ζ` for some coordinate vector ζ, |
| 450 | where `New.toPoly` sends ζ to `∑ i, (G ζ) i • b i` (G the Gram matrix, b the basis minor |
| 451 | products). -/ |
| 452 | lemma exists_toPoly_eq_hookNumber_smul {f : MatrixPoly (Sigma n) R} (hf : f ∈ nablaFamily R n κ) : |
| 453 | ∃ ζ : WeylIndexFamily n κ → R, toPoly n κ ζ = hookNumber κ (rankAt n) • f := by |
| 454 | exact exists_toPoly_eq_smul_of_weylGram_mul weylGram_mul_fockPairing hf |
| 455 | |
| 456 | end «GL» |
| 457 | |
| 458 | end New |
| 459 | |
| 460 | /-! |
| 461 | ## Cartan multiplication and norms of products |
| 462 | |
| 463 | `New.WeylIndexFamily n κ` indexes the basis, and `New.weylEval n κ y` is the vector of values of the |
| 464 | basis at `y`. The tensor product `(p, q) ↦ a p * b q` is written `(vecMulVec b a).vec`, since |
| 465 | `Matrix.vec` swaps the two indices. |
| 466 | -/ |
| 467 | |
| 468 | section Cartan |
| 469 | |
| 470 | open Matrix Kronecker SetLike |
| 471 | |
| 472 | namespace New.GL |
| 473 | |
| 474 | variable {Φ R : Type} [CommRing R] [Fintype Φ] [DecidableEq Φ] |
| 475 | {n : Φ → Type} [∀ τ : Φ, Fintype (n τ)] [∀ τ : Φ, DecidableEq (n τ)] {κ κ' : Φ → ℕ → ℕ} |
| 476 | |
| 477 | variable (R n κ κ') in |
| 478 | /-- The matrix of multiplication: row `(p, q)` holds the integer coordinates of the product of the |
| 479 | basis elements `nablaBasis ℤ n κ p` and `nablaBasis ℤ n κ' q` in the basis for `κ + κ'`, cast to |
| 480 | `R`. -/ |
| 481 | noncomputable def comulMatrix : |
| 482 | Matrix (WeylIndexFamily n κ × WeylIndexFamily n κ') (WeylIndexFamily n (κ + κ')) R := |
| 483 | of fun (p, q) k ↦ |
| 484 | (Function.invFun (nablaCombination (κ + κ')) (nablaBasis ℤ n κ p * nablaBasis ℤ n κ' q) k : ℤ) |
| 485 | |
| 486 | /-- The multiplication matrix sends the evaluation vector at `y` for `κ + κ'` to the tensor product |
| 487 | of those for `κ` and `κ'`: the right side is `(p, q) ↦ weylEval n κ' y q * weylEval n κ y p`. -/ |
| 488 | lemma comulMatrix_mulVec_weylEval (y : (Σ τ : Φ, n τ) × ℕ → R) : |
| 489 | comulMatrix R n κ κ' *ᵥ weylEval n (κ + κ') y = |
| 490 | (vecMulVec (weylEval n κ' y) (weylEval n κ y)).vec := by |
| 491 | -- Expand the product of two basis elements in the basis for `κ + κ'` over `ℤ`, then map to `R` |
| 492 | -- and evaluate at `y`. |
| 493 | funext ⟨p, q⟩ |
| 494 | have h_mem : nablaBasis ℤ n κ p * nablaBasis ℤ n κ' q ∈ nablaFamily ℤ n (κ + κ') := by |
| 495 | rw [nablaFamily, diagramWeight_add] |
| 496 | exact mul_mem_graded prod_tableauPoly_mem_nabla prod_tableauPoly_mem_nabla |
| 497 | have h_expand : ∑ k : WeylIndexFamily n (κ + κ'), comulMatrix ℤ n κ κ' (p, q) k • |
| 498 | nablaBasis ℤ n (κ + κ') k = nablaBasis ℤ n κ p * nablaBasis ℤ n κ' q := |
| 499 | sum_coords_nablaBasis h_mem |
| 500 | simpa [comulMatrix, mulVec, dotProduct, weylEval, vecMulVec_apply, mul_comm] using |
| 501 | congrArg (fun P ↦ (P.map (algebraMap ℤ R)).eval y) h_expand |
| 502 | |
| 503 | variable [IsDomain R] [Infinite R] |
| 504 | |
| 505 | /-- Work over an infinite domain, and let `a ⊗ b` be the row vector `(vecMulVec b a).vec`, with |
| 506 | entry `b q * a p` at `(p, q)`. Then `a ⊗ b` times the multiplication matrix is `x` exactly when the |
| 507 | product of the polynomials with coordinates `a` (basis for `κ`) and `b` (basis for `κ'`) has |
| 508 | coordinates `x` (basis for `κ + κ'`). -/ |
| 509 | lemma vecMul_comulMatrix_eq_iff {a : WeylIndexFamily n κ → R} {b : WeylIndexFamily n κ' → R} |
| 510 | {x : WeylIndexFamily n (κ + κ') → R} : |
| 511 | (vecMulVec b a).vec ᵥ* comulMatrix R n κ κ' = x ↔ |
| 512 | nablaCombination κ a * nablaCombination κ' b = nablaCombination (κ + κ') x := by |
| 513 | -- Both sides say that the polynomials agree at every `y`: pair with `weylEval n (κ + κ') y` and |
| 514 | -- use `comulMatrix_mulVec_weylEval`. |
| 515 | have h_eval_product (y : ((τ : Φ) × n τ) × ℕ → R) : |
| 516 | MvPolynomial.eval y |
| 517 | (nablaCombination (κ + κ') ((vecMulVec b a).vec ᵥ* comulMatrix R n κ κ')) = |
| 518 | MvPolynomial.eval y (nablaCombination κ a * nablaCombination κ' b) := by |
| 519 | simp [comulMatrix_mulVec_weylEval, ← weylEval.eq_1, Fintype.linearCombination, |
| 520 | ← dotProduct.eq_1, |
| 521 | ← dotProduct_mulVec, mul_comm (a ⬝ᵥ _), vec_dotProduct_vec, mul_vecMulVec, vecMulVec_mulVec] |
| 522 | rw [← nablaCombination_injective.eq_iff, MvPolynomial.funext_iff, MvPolynomial.funext_iff] |
| 523 | simp only [h_eval_product] |
| 524 | |
| 525 | /-- Over an infinite domain, the multiplication matrix `C` is an isometry for the Gram forms: |
| 526 | `Cᵀ (G κ ⊗ G κ') C = G (κ + κ')`, where `G` is the Gram matrix `weylGram` mapped into `R`. -/ |
| 527 | lemma comulMatrix_isometry : |
| 528 | (comulMatrix R n κ κ')ᵀ * ((weylGram n κ).map (Int.cast : ℤ → R) ⊗ₖ |
| 529 | (weylGram n κ').map (Int.cast : ℤ → R) * comulMatrix R n κ κ') = weylGramOver := by |
| 530 | -- Test on the evaluation vectors, which `C` sends to tensor products |
| 531 | -- (`comulMatrix_mulVec_weylEval`). |
| 532 | refine toLin'.injective (ext_weylEval 0 (fun y _ _ ↦ ?_) Set.infinite_univ) |
| 533 | -- The kernel for `κ + κ'` is the product of the kernels for `κ` and `κ'`. |
| 534 | simp [comulMatrix_mulVec_weylEval, vecMul_comulMatrix_eq_iff, |
| 535 | nablaCombination_weylGramOver_mulVec, |
| 536 | pow_add, kronecker_mulVec_vec, mul_vecMulVec, vecMulVec_mul, vecMul_transpose, |
| 537 | mulVec_transpose, weylKernel, highestPoly, tableauPoly, Finset.prod_mul_distrib] |
| 538 | |
| 539 | /-- Over an infinite domain, the multiplication matrix `C` is equivariant: for the Schur matrices |
| 540 | `S` of a family `g` of square matrices, `(S κ g ⊗ S κ' g) C = C * S (κ + κ') g`. -/ |
| 541 | lemma comulMatrix_equivariant (g : ∀ τ : Φ, Matrix (n τ) (n τ) R) : |
| 542 | schur κ g ⊗ₖ schur κ' g * comulMatrix R n κ κ' = |
| 543 | comulMatrix R n κ κ' * schur (κ + κ') g := by |
| 544 | -- Test on the evaluation vectors, which `C` sends to tensor products |
| 545 | -- (`comulMatrix_mulVec_weylEval`). |
| 546 | refine toLin'.injective (ext_weylEval 0 (fun y _ _ ↦ ?_) Set.infinite_univ) |
| 547 | simp [comulMatrix_mulVec_weylEval, schur_mulVec_weylEval_of_schurDetExp_eq_zero, |
| 548 | kronecker_mulVec_vec, |
| 549 | mul_vecMulVec, vecMulVec_mul, vecMul_transpose] |
| 550 | |
| 551 | /-- The integer matrix whose row (p, q) lists the coordinates of the product of the basis minor |
| 552 | products b_p for κ and b_q for κ', in the basis for κ + κ', has an integer left inverse. -/ |
| 553 | lemma hasLeftInv_comulMatrix : HasLeftInv (comulMatrix ℤ n κ κ') := by |
| 554 | -- A basis tableau for `κ + κ'` splits into its first `κ` and last `κ'` columns of each height. |
| 555 | -- `f k` and `g k` are the minor products of these columns; `f k * g k` is the basis element. |
| 556 | let f (k : WeylIndexFamily n (κ + κ')) : MatrixPoly ((τ : Φ) × n τ) ℤ := |
| 557 | ∏ τ : Φ, tableauPoly ℤ (Sigma.mk τ) |
| 558 | (fun h j ↦ (k τ).val h (Fin.castAdd _ j) : Tableau (n τ) (rankAt n τ) (κ τ)) |
| 559 | let g (k : WeylIndexFamily n (κ + κ')) : MatrixPoly ((τ : Φ) × n τ) ℤ := |
| 560 | ∏ τ : Φ, tableauPoly ℤ (Sigma.mk τ) |
| 561 | (fun h j ↦ (k τ).val h (Fin.natAdd _ j) : Tableau (n τ) (rankAt n τ) (κ' τ)) |
| 562 | have hf (k : WeylIndexFamily n (κ + κ')) : f k ∈ nablaFamily ℤ n κ := prod_tableauPoly_mem_nabla |
| 563 | have hg (k : WeylIndexFamily n (κ + κ')) : g k ∈ nablaFamily ℤ n κ' := prod_tableauPoly_mem_nabla |
| 564 | have hfg (k : WeylIndexFamily n (κ + κ')) : f k * g k = nablaBasis ℤ n (κ + κ') k := by |
| 565 | simp [f, g, nablaBasis, Fin.prod_univ_add, tableauPoly, Finset.prod_mul_distrib] |
| 566 | -- Row `k` of the left inverse is the tensor product of the coordinates of the two factors. |
| 567 | refine ⟨fun k ↦ (vecMulVec (Function.invFun (nablaCombination κ') (g k)) |
| 568 | (Function.invFun (nablaCombination κ) (f k))).vec, |
| 569 | ext_row fun k ↦ vecMul_comulMatrix_eq_iff.mpr ?_⟩ |
| 570 | simp [Fintype.linearCombination_apply, ↓sum_coords_nablaBasis, hf, hg, hfg, Matrix.one_apply] |
| 571 | |
| 572 | /-- Let ξ, η, ζ be complex vectors of the Weyl modules of weights κ, κ' and κ+κ'. Assume the |
| 573 | polynomial of ζ is the product of those of ξ and η, where the polynomial `toPoly` of a vector ξ is |
| 574 | Σ_i (Gξ)_i b_i, with G the integer Gram matrix and b_i the basis minor products. Then |
| 575 | `weylNormSq ζ ≤ weylNormSq ξ * weylNormSq η`, where `weylNormSq ξ` is the real part of ξ* G ξ, the |
| 576 | squared norm for the positive definite Hermitian form of G. -/ |
| 577 | lemma _root_.New.weylNormSq_le_mul_of_toPoly_eq {ξ : WeylIndexFamily n κ → ℂ} |
| 578 | {η : WeylIndexFamily n κ' → ℂ} {ζ : WeylIndexFamily n (κ + κ') → ℂ} |
| 579 | (h_toPoly_eq : toPoly n (κ + κ') ζ = toPoly n κ ξ * toPoly n κ' η) : |
| 580 | weylNormSq ζ ≤ weylNormSq ξ * weylNormSq η := by |
| 581 | -- Cauchy–Schwarz for the form `B = G κ ⊗ G κ'` on `C *ᵥ ζ` and `v = ξ ⊗ η`: their pairing is |
| 582 | -- `weylNormSq ζ` by `h_toPoly_eq`, and `C` is an isometry by `comulMatrix_isometry`. |
| 583 | let C := comulMatrix ℂ n κ κ' |
| 584 | let B := (weylGram n κ).map (Int.cast : ℤ → ℂ) ⊗ₖ (weylGram n κ').map (Int.cast : ℤ → ℂ) |
| 585 | let v : WeylIndexFamily n κ × WeylIndexFamily n κ' → ℂ := (vecMulVec η ξ).vec |
| 586 | have hC_real : Cᴴ = Cᵀ := by |
| 587 | ext i j |
| 588 | simp [C, comulMatrix] |
| 589 | -- The hypothesis in coordinates: multiplication sends `G ξ ⊗ G η` to `G ζ`. |
| 590 | have h_coord : (vecMulVec (weylGramOver *ᵥ η) (weylGramOver *ᵥ ξ)).vec ᵥ* C = weylGramOver *ᵥ ζ := |
| 591 | vecMul_comulMatrix_eq_iff.mpr h_toPoly_eq.symm |
| 592 | have h_tensorVec : B *ᵥ v = (vecMulVec (weylGramOver *ᵥ η) (weylGramOver *ᵥ ξ)).vec := by |
| 593 | simp [B, v, vecMul_transpose _ ξ, kronecker_mulVec_vec, mul_vecMulVec, vecMulVec_mul] |
| 594 | have h_pair : star (C *ᵥ ζ) ⬝ᵥ B *ᵥ v = weylNormSq ζ := by |
| 595 | rw [h_tensorVec] |
| 596 | simp [star_mulVec, ← dotProduct_mulVec, h_coord, ← coe_weylNormSq, hC_real, mulVec_transpose] |
| 597 | have h_tensor : (star v ⬝ᵥ B *ᵥ v).re = weylNormSq η * weylNormSq ξ := by |
| 598 | rw [h_tensorVec] |
| 599 | simp [v, ← coe_weylNormSq, ↓map_vecMulVec_star, star_vec, vec_dotProduct_vec, |
| 600 | vecMulVec_mul_vecMulVec, mul_comm] |
| 601 | have h_isom : (star (C *ᵥ ζ) ⬝ᵥ B *ᵥ (C *ᵥ ζ)).re = weylNormSq ζ := by |
| 602 | simp [B, C, star_mulVec, ← dotProduct_mulVec, hC_real, mulVec_mulVec, comulMatrix_isometry, |
| 603 | ← coe_weylNormSq] |
| 604 | have h_sq : weylNormSq ζ ^ 2 ≤ weylNormSq η * weylNormSq ξ * weylNormSq ζ := by |
| 605 | simpa only [h_pair, h_tensor, h_isom, Complex.norm_real, Real.norm_eq_abs, sq_abs] using |
| 606 | posDef_cauchy_schwarz (M := B) (weylGramOver_posDef.kronecker weylGramOver_posDef) (C *ᵥ ζ) v |
| 607 | -- Cancel one factor `weylNormSq ζ`; if it is not positive, the right side is still nonnegative. |
| 608 | nlinarith [mul_nonneg (weylNormSq_nonneg ξ) (weylNormSq_nonneg η)] |
| 609 | |
| 610 | end New.GL |
| 611 | |
| 612 | end Cartan |
| 613 | |
| 614 | /-! |
| 615 | ## Products of determinants |
| 616 | |
| 617 | * `New.pairedDetProd`: the product of the determinants `det (η τ k * Y τ)`, with one matrix `Y τ` |
| 618 | for each `τ : Φ`. |
| 619 | -/ |
| 620 | |
| 621 | namespace New |
| 622 | |
| 623 | open Matrix |
| 624 | |
| 625 | variable {Φ n a S : Type} [Fintype Φ] [Fintype n] [CommRing S] [Algebra ℂ S] [Fintype a] |
| 626 | [DecidableEq a] {ι : Φ → Type} [∀ τ : Φ, Fintype (ι τ)] |
| 627 | (Y : Φ → n → a → S) (η : ∀ τ : Φ, ι τ → Matrix a n ℂ) |
| 628 | |
| 629 | /-- The element ∏_τ ∏_k det(η_{τk} Y_τ) of the ℂ-algebra S, for n×a matrices Y_τ over S and |
| 630 | complex a×n matrices η_{τk}. -/ |
| 631 | noncomputable def pairedDetProd : S := |
| 632 | ∏ τ : Φ, ∏ k : ι τ, ((η τ k).map (algebraMap ℂ S) * of (Y τ)).det |
| 633 | |
| 634 | end New |