import Lib.Adelic.Unitary.Defs import Lib.GLn.SchurModule.TensorModel import Lib.Shimura.ComplexTheta.AppellHumbertData /-! # The Weyl kernel and its Gram matrix: the hook number bound, positivity, Schur's lemma This file studies the reproducing kernel `K(x, y) = f(yᵀ x)` (`New.weylKernel`), where `f = New.highestPoly` is the product of leading principal minors. `G = New.weylGram` is the integer Gram matrix of `K` in the basis `b_i = New.nablaBasis` (products of minors) of the semi-invariants `New.nablaFamily`. The hook number `New.hookNumber κ N = ⟨f, f⟩ = f(∂) f(0)` is the Fock pairing of `f` with itself. It is positive and at most `(L ^ L) ^ 3` when the diagrams have at most `L` boxes in total (`New.hookNumber_pos`, `New.hookNumber_le`). This file also proves that the unitary group is Zariski dense, and derives Schur's lemma for the Schur matrices. ## Main definitions and results * `New.toPoly_weylEval`, `New.toPoly_schur`: `New.toPoly`, `ξ ↦ ∑ (G ξ)_i b_i`, sends the vector `ev_y = (b_i(y))` (`New.weylEval`) to `K(·, y)`. It turns the Schur matrix of `z` into substitution of `zᵀ`, applied after multiplying by the determinant powers `New.detPow` with exponents `New.schurDetExp`. * `New.fillingMatrix_transpose_mul_self`: `G` is the matrix of the form restricted from tensors. Hence `G` is symmetric, positive definite, and makes the Schur matrices of `g` and `gᵀ` adjoint (`New.weylGram_isSymm`, `New.weylGramOver_posDef`, `New.weylGramOver_mul_schur`). * `New.mem_range_scalar_of_commute_schur`: a matrix that commutes with `New.schur κ g` for all unitary `g` is scalar. Notions from other files: * `New.WeylIndexFamily n κ`: families that choose, for each place `τ`, a standard filling with rows `n τ`; they index the basis `b_i`. * `New.schur κ z`: the Schur matrix `S_κ(z)` of matrices `z τ` of size `n' τ × n τ`. Row `i` holds the coordinates of `b'_i(z y)` in the products `b_j(y) · ∏_τ det(y_τ)^{d_τ}`, where `b'` is the basis for the rows `n'` and `d = New.schurDetExp n n' κ`. ## Relation to the literature Known; see `Lib.GLn.SchurModule.SchurNorm` and `Lib.GLn.Dual` for sources. -/ /-! ## Positivity and a bound for the hook number * `New.hookNumber_pos`, `New.hookNumber_le`: the hook number is positive, and at most `(L ^ L) ^ 3` when the diagrams have at most `L` boxes in total. -/ section Hook open MvPolynomial Finset Matrix Finsupp Nat RingHom namespace New variable {Φ : Type} [Fintype Φ] {κ : Φ → ℕ → ℕ} {N : Φ → ℕ} {L : ℕ} /-- The hook number, the Fock pairing of `New.highestPoly ℤ κ N` with itself, is positive. -/ @[simp] lemma hookNumber_pos : 0 < hookNumber κ N := by -- `highestPoly ℤ κ N` is nonzero, since its value at the identity array is `1`. have h_eval : eval (permArray fun τ (i : Fin (N τ)) ↦ (i : ℕ)) (highestPoly ℤ κ N) = 1 := by simp [highestPoly, tableauPoly, minor, map_det, Matrix.map, permArray, Fin.val_inj, ← diagonal.eq_1] have h_ne : highestPoly ℤ κ N ≠ 0 := fun h_zero ↦ by simp [h_zero] at h_eval -- Over `ℤ` conjugation is trivial, so `fockPairing_star_self_pos` is the claim. have h_star : MvPolynomial.map (starRingEnd ℤ) (highestPoly ℤ κ N) = highestPoly ℤ κ N := MvPolynomial.ext _ _ fun d ↦ by simp simpa only [hookNumber, h_star] using fockPairing_star_self_pos h_ne @[simp] lemma hookNumber_ne_zero : hookNumber κ N ≠ 0 := hookNumber_pos.ne' lemma prod_factorial_le_factorial_sum {ι : Type} (s : Finset ι) (a : ι → ℕ) : ∏ i ∈ s, (a i)! ≤ (∑ i ∈ s, a i)! := le_of_dvd (factorial_pos _) (prod_factorial_dvd_factorial_sum s a) /-- Two monomials with coefficients `± 1` have Fock pairing at most `d !`, where `d` is the degree of the first. -/ lemma fockPairing_monomial_monomial_le {σ : Type} (α β : σ →₀ ℕ) (ε ε' : ℤˣ) : fockPairing ℤ (monomial α (ε : ℤ)) (monomial β (ε' : ℤ)) ≤ (α.degree)! := by classical have h_factorial : (α.prod fun _ a ↦ a !) ≤ (α.degree)! := prod_factorial_le_factorial_sum α.support α have h_unit : (ε : ℤ) * ε' ≤ 1 := Int.le_of_dvd one_pos (ε.isUnit.mul ε'.isUnit).dvd have h_coeff : (ε : ℤ) * (monomial β (ε' : ℤ)).coeff α ≤ 1 := by grind [coeff_monomial] grw [fockPairing_monomial, h_coeff, mul_one, h_factorial] /-- Take at each place `τ` a filling `T τ` with `κ τ h` columns of height `h` for `h < N τ`, and multiply the minors of all columns. If the degree `∑ τ, ∑ h < N τ, h * κ τ h` of this product is at most `L`, then its Fock pairing with itself is at most `L ^ (3 * L)`. -/ lemma fockPairing_tableauPoly_le {n : Φ → Type} (T : ∀ τ : Φ, Tableau (n τ) (N τ) (κ τ)) (h_degree : ∑ τ : Φ, ∑ h ∈ range (N τ), h * κ τ h ≤ L) : fockPairing ℤ (∏ τ : Φ, tableauPoly ℤ (Sigma.mk τ) (T τ)) (∏ τ : Φ, tableauPoly ℤ (Sigma.mk τ) (T τ)) ≤ (L : ℤ) ^ (3 * L) := by classical -- Expand each minor over permutations. The product becomes a sum of signed monomials of degree -- `d`, one for each choice `s : S` of a permutation for every column, and `card S ≤ d !`. let S : Type := ∀ (τ : Φ) (h : Fin (N τ)), Fin (κ τ h) → Equiv.Perm (Fin h) let α (s : S) : (Σ τ : Φ, n τ) × ℕ →₀ ℕ := ∑ τ : Φ, ∑ h : Fin (N τ), ∑ j : Fin (κ τ h), ∑ i : Fin h, single (⟨τ, T τ h j (s τ h j i)⟩, i) 1 let ε (s : S) : ℤˣ := ∏ τ : Φ, ∏ h : Fin (N τ), ∏ j : Fin (κ τ h), (s τ h j).sign let d : ℕ := ∑ τ : Φ, ∑ h : Fin (N τ), κ τ h * h have h_expand : ∏ τ : Φ, tableauPoly ℤ (Sigma.mk τ) (T τ) = ∑ s : S, monomial (α s) (ε s : ℤ) := by simp_rw [tableauPoly, minor, det_apply, prod_univ_sum, prod_smul, of_apply, X, ← monomial_sum_one, smul_monomial] simp [α, ε, S, Units.smul_def] have h_degree_eq (s : S) : (α s).degree = d := by simp [α, d] have h_card : Fintype.card S ≤ d ! := by -- the product over all columns of (height)! is at most the factorial of the sum of the heights let height : (Σ (τ : Φ) (h : Fin (N τ)), Fin (κ τ h)) → ℕ := fun ⟨_, h, _⟩ ↦ h simpa [S, d, height, Fintype.card_perm, Fintype.prod_sigma, Fintype.sum_sigma] using prod_factorial_le_factorial_sum univ height have h_d_le : d ≤ L := by simpa only [d, sum_range, mul_comm] using h_degree rw [h_expand] calc _ = ∑ s : S, ∑ t : S, fockPairing ℤ (monomial (α s) (ε s : ℤ)) (monomial (α t) (ε t : ℤ)) := by simp_rw [LinearMap.map_sum₂, map_sum] _ ≤ ∑ _s : S, ∑ _t : S, (d ! : ℤ) := by gcongr with s _ t grw [fockPairing_monomial_monomial_le, h_degree_eq] _ = Fintype.card S * (Fintype.card S * (d ! : ℤ)) := by simp _ ≤ (d ! : ℤ) ^ 3 := by grw [h_card, h_card, pow_three] _ ≤ ((L : ℤ) ^ L) ^ 3 := by grw [h_d_le, factorial_le_pow, cast_pow] _ = (L : ℤ) ^ (3 * L) := by rw [← pow_mul, mul_comm] /-- Suppose the diagrams with `κ τ h` columns of height `h < N τ` have at most `L` boxes in total, that is, Σ_τ Σ_{h