import Lib.GLn.SchurModule.MinorBasis import Lib.General.Groups.CongruenceSubgroups /-! # Schur matrices, the standard basis of ∇, its weights and the highest vector Polynomials are taken in the entries of an array y with rows (τ, a). Here κ_τ(h) is the number of columns of height h at the place τ; `New.rankAt n τ` = |n_τ|, and λ = `New.diagramWeight (rankAt n) κ` has λ(τ, k) = Σ_{k ?_ rcases isEmpty_or_nonempty Φ with hΦ | ⟨⟨τ⟩⟩ · -- With no place there is a single, empty product, equal to `1`. exact .of_subsingleton' default fun r h_zero ↦ by simpa [nablaBasis, univ_eq_empty, ← C_mul'] using h_zero let P : Type := MatrixPoly (n τ) R let split : MatrixPoly (Σ σ, n σ) R →ₐ[R] MatrixPoly (Σ σ : {σ // σ ≠ τ}, n σ) P := aeval fun (⟨σ, a⟩, j) ↦ if hσ : σ = τ then C (X ⟨cast (congrArg n hσ) a, j⟩) else X ⟨⟨⟨σ, hσ⟩, a⟩, j⟩ -- The factors at `τ` are independent over `R` by the choice of the standard set, the products -- over the other places are independent over the larger ring by induction. have h_card_lt : card {σ : Φ // σ ≠ τ} < k := (card_subtype_lt (x := τ) fun h_ne ↦ h_ne rfl).trans_eq hk have h_rest : LinearIndependent P (nablaBasis P (fun σ : {σ : Φ // σ ≠ τ} ↦ n σ) fun σ ↦ κ σ) := ih _ h_card_lt rfl -- `split` carries each basis product to the corresponding product of the two families. have h_split (i : WeylIndexFamily n κ) : split (nablaBasis R n κ i) = (tableauPoly R id (i τ).val : P) • nablaBasis P (fun σ : {σ : Φ // σ ≠ τ} ↦ n σ) (fun σ ↦ κ σ) (fun σ ↦ i σ) := by have h_ne (σ : {σ : Φ // σ ≠ τ}) : (σ : Φ) ≠ τ := σ.prop simp [P, split, nablaBasis, prod_eq_mul_prod_subtype_ne _ τ, h_ne, tableauPoly, minor, ← C_mul', RingHom.map_det, Matrix.map, AlgHom.map_det] have h_one : LinearIndependent R fun T : BasisTableau (n τ) (rankAt n τ) (κ τ) ↦ tableauPoly R id T.val := linearIndependent_basisTableau R refine .of_comp split.toLinearMap ((linearIndependent_equiv' (piSplitAt τ _) ?_).mpr (linearIndependent_smul h_one h_rest)) funext i exact (h_split i).symm omit [∀ τ : Φ, DecidableEq (n τ)] in /-- Over any commutative ring, the polynomial ∏_τ det(y_τ)^{e_τ} is a regular element (not a zero divisor) of the polynomial ring. -/ lemma isRegular_detPow {e : Φ → ℕ} : IsRegular (detPow R n e) := by -- The involution `y ↦ 1 - y` of the polynomial ring (`1` the array of identity matrices) gives -- the product of determinants the constant term `1`, so that its image in the power series -- ring is not a zero divisor. let reflect : MatrixPoly (Σ τ, n τ) R →ₐ[R] MatrixPoly (Σ τ, n τ) R := bind₁ (permArray (fun τ a ↦ rowEquivFin n τ a) - X) have h_reflect : Involutive reflect := fun f ↦ by simp [reflect, bind₁_bind₁, permArray] have h_inj : Injective ((coeToMvPowerSeries.algHom R).comp reflect) := (coe_injective _ R).comp h_reflect.injective rw [isRegular_iff_mem_nonZeroDivisors] refine mem_nonZeroDivisors_of_injective h_inj (MvPowerSeries.mem_nonZeroDivisors_of_constantCoeff ?_) -- The constant coefficient of the image is `1`. simp [reflect, map_pow, map_sub, detPow, minor, AlgHom.map_det, Matrix.map, permArray, ← Fin.ext_iff, RingHom.map_det, ← diagonal.eq_1] omit [Fintype Φ] [∀ τ : Φ, DecidableEq (n τ)] [∀ τ : Φ, Fintype (n' τ)] [∀ τ : Φ, DecidableEq (n' τ)] in /-- For I a tuple of |n_τ| rows of n'_τ, the substitution y ↦ zy sends the minor on rows I (determinant of the variables in rows (τ, I a) and columns 0, …, |n_τ|−1) to det(z_τ[I, ·]) times the minor on the rows of n_τ, both taken in the fixed enumeration `New.GL.rowEquivFin n τ` of n_τ. -/ lemma GL.rowSubst_minor (z : ∀ τ : Φ, Matrix (n' τ) (n τ) R) (τ : Φ) (I : Fin (Fintype.card (n τ)) → n' τ) : rowSubst z (minor R fun a : Fin (Fintype.card (n τ)) ↦ ⟨τ, I a⟩) = det ((z τ).submatrix I (rowEquivFin n τ).symm) • minor R fun a : Fin (Fintype.card (n τ)) ↦ ⟨τ, (rowEquivFin n τ).symm a⟩ := by -- The substitution multiplies the matrix of variables on the left by the rows `I` of `z τ`. simp [rowSubst, reindex_equiv (rowEquivFin n τ).symm, ← C_mul', minor, AlgHom.map_det, Matrix.map, RingHom.map_det, ← det_mul] -- Both sides are the determinant of the same matrix: once entrywise, once as a product. show (of fun (a b : Fin (Fintype.card (n τ))) ↦ ∑ c : Fin (Fintype.card (n τ)), C (z τ (I a) ((rowEquivFin n τ).symm c)) * X ((⟨τ, (rowEquivFin n τ).symm c⟩ : Σ σ : Φ, n σ), (b : ℕ))).det = ((of fun (a c : Fin (Fintype.card (n τ))) ↦ C (z τ (I a) ((rowEquivFin n τ).symm c))) * of fun (c b : Fin (Fintype.card (n τ))) ↦ X ((⟨τ, (rowEquivFin n τ).symm c⟩ : Σ σ : Φ, n σ), (b : ℕ))).det refine congrArg det (Matrix.ext fun a b ↦ ?_) rw [Matrix.mul_apply] simp /-- Substituting y ↦ g y, for square matrices g_τ of size n_τ, multiplies the product ∏_τ det(y_τ)^{e_τ} of determinants by the scalar ∏_τ det(g_τ)^{e_τ}. -/ @[simp] lemma rowSubst_detPow : rowSubst g (detPow R n e) = (∏ τ : Φ, (g τ).det ^ e τ) • detPow R n e := by simp [rowSubst_minor, mul_pow, detPow, ← C_mul', prod_mul_distrib] variable [DecidableEq Φ] /-- Consider polynomials over `R` in a matrix of variables whose rows, indexed by pairs (τ, row of `n τ`), are coloured by the place τ. Let f be a Borel semi-invariant (`nabla`) whose weight is `diagramWeight (rankAt n) κ` plus `e τ` at each column i < |n τ| of each place τ, i.e. the weight of `κ` with `e τ` further full-height columns at τ. Then f is an `R`-linear combination of the products `nablaBasis R n κ U * detPow R n e` over `U : WeylIndexFamily n κ`, where `detPow` is the product over τ of the `e τ`-th powers of the determinants of the block-τ variables in the first |n τ| columns. -/ lemma nabla_le_span_nablaBasis_mul_detPow (e : Φ → ℕ) : nabla R Sigma.fst (diagramWeight (rankAt n) κ + ∑ τ : Φ, e τ • ∑ i ∈ range (rankAt n τ), Finsupp.single (τ, i) 1) ≤ (Fintype.linearCombination R fun U : WeylIndexFamily n κ ↦ nablaBasis R n κ U * detPow R n e).range := by -- The weight is that of the columns of `κ` together with `e τ` further columns of full height at -- each `τ`, so the module lies in a span of products of minors on these columns. In a product -- the minors on the columns of `κ` expand in the standard ones, and a minor of full height is a -- multiple of the determinant. let J : Type := (Σ τ : Φ, Σ h : Fin (rankAt n τ), Fin (κ τ h)) ⊕ Σ τ : Φ, Fin (e τ) let colour : J → Φ := Sigma.fst ⊕ᵥ Sigma.fst let height : J → ℕ := (fun j ↦ j.snd.fst) ⊕ᵥ fun j ↦ rankAt n j.fst have h_weight : columnWeight colour height = diagramWeight (rankAt n) κ + ∑ τ : Φ, e τ • ∑ i ∈ range (rankAt n τ), Finsupp.single (τ, i) 1 := by simp_rw [← Fin.sum_const, ← Fintype.sum_sigma', diagramWeight_eq_columnWeight] exact sum_sum_type _ obtain ⟨ι, h_fintype, I, hI⟩ : ∃ (ι : Type) (_ : Fintype ι) (I : ι → ColouredTableau (fst : (Σ τ : Φ, n τ) → Φ) colour height), IsStdMinorFamily I := exists_isStdMinorFamily (m := Σ τ : Φ, n τ) fst colour height rw [← h_weight] refine (hI.nabla_le_span R).trans ?_ rw [span_le, Set.range_subset_iff] intro i -- The entries of the filling `I i` are the rows `⟨colour j, T j s⟩`. have h_rows (j : J) (s : Fin (height j)) : ∃ a : n (colour j), (sigmaSubtype (colour j)).symm a = I i j s := (sigmaSubtype (colour j)).symm.surjective (I i j s) choose T hT using h_rows have h_expand (τ : Φ) : ∃ a : BasisTableau (n τ) (rankAt n τ) (κ τ) → R, ∑ U : BasisTableau (n τ) (rankAt n τ) (κ τ), a U • tableauPoly R id U.val = tableauPoly R id fun h j ↦ T (.inl ⟨τ, h, j⟩) := exists_sum_basisTableau_smul_eq R _ choose a ha using h_expand -- A minor of full height is a multiple of the determinant (`rowSubst_minor` with `z = 1`). have h_full (j : Σ τ : Φ, Fin (e τ)) : ∃ b_j : R, (minor R fun s ↦ (⟨j.fst, T (.inr j) s⟩ : Σ τ : Φ, n τ)) = b_j • minor R fun s ↦ (⟨j.fst, (rowEquivFin n j.fst).symm s⟩ : Σ τ : Φ, n τ) := by refine ⟨det ((1 : Matrix (n j.fst) (n j.fst) R).submatrix (T (.inr j)) (rowEquivFin n j.fst).symm), ?_⟩ exact (rowSubst_one _).symm.trans (rowSubst_minor (R := R) (fun _ ↦ 1) j.fst (T (.inr j))) choose b hb using h_full -- Multiply all these expansions together. rw [← funext₂ hT] refine ⟨fun U ↦ (∏ j, b j) * ∏ τ, a τ (U τ), ?_⟩ have h_prod : (∏ τ : Φ, rename (Prod.map (Sigma.mk τ) id) (∑ U : BasisTableau (n τ) (rankAt n τ) (κ τ), a τ U • tableauPoly R id U.val)) * ∏ j : Σ τ : Φ, Fin (e τ), b j • minor R (fun s ↦ (⟨j.fst, (rowEquivFin n j.fst).symm s⟩ : Σ τ : Φ, n τ)) = (∏ τ : Φ, rename (Prod.map (Sigma.mk τ) id) (tableauPoly R id fun h j ↦ T (.inl ⟨τ, h, j⟩))) * ∏ j : Σ τ : Φ, Fin (e τ), minor R fun s ↦ (⟨j.fst, T (.inr j) s⟩ : Σ τ : Φ, n τ) := by simp only [ha, hb] -- The rows of the filling, as elements of the sigma type. have h_entry (τ : Φ) (t : n τ) : ((sigmaSubtype τ).symm t : Σ σ : Φ, n σ) = ⟨τ, t⟩ := rfl -- The left side of `h_prod` is the combination of the `nablaBasis R n κ U * detPow R n e` with -- the coefficients above, the right side the minor product of the filling, after unfolding `J`. -- `using!`: after simp the two sides differ only by `(id ∘ T j) s` against `T j s` inside a -- dependent pair, where simp does not rewrite. simpa [linearCombination_apply, ← Fin.prod_const, -prod_const, J, colour, height, nablaBasis, h_entry, rowEquivFin, minor, AlgHom.map_det, Matrix.map, detPow, Fintype.prod_sigma, minorProduct, tableauPoly, prod_univ_sum, prod_smul, sum_mul, smul_sum, ← mul_smul] using! h_prod /-- The map `New.GL.nablaCombination` κ, which sends coefficients to the linear combination of the basis minor products b_i, is injective. -/ lemma GL.nablaCombination_injective : Injective (nablaCombination (R := R) (n := n) κ) := linearIndependent_nablaBasis.fintypeLinearCombination_injective /-- The R-linear map `nablaCombination κ`, sending ξ to Σ_i ξ_i b_i with b_i the basis products of minors `nablaBasis` (indexed by families of chosen standard fillings), has range exactly `nablaFamily R n κ`. That is the module of Borel semi-invariant polynomials in rows (τ,a), coloured by τ, whose weight is the partition tuple built from κ using heights below |n_τ|, over any commutative ring R. -/ lemma range_nablaCombination : (nablaCombination κ).range = nablaFamily R n κ := by -- The basis products lie in `∇` (`prod_tableauPoly_mem_nabla`), and -- `nabla_le_span_nablaBasis_mul_detPow` with `e = 0` is the converse. refine le_antisymm ?_ ?_ · rw [nablaCombination, Fintype.range_linearCombination, span_le, Set.range_subset_iff] exact fun i ↦ prod_tableauPoly_mem_nabla · -- For `e = 0` the extra weight is `0` and `detPow R n 0 = 1`. simpa [nablaFamily, nablaCombination] using nabla_le_span_nablaBasis_mul_detPow (R := R) (n := n) (κ := κ) 0 /-- For f in ∇ = `New.nablaFamily`, the coordinates chosen by `invFun` of the linear combination map `New.GL.nablaCombination` give back f as a combination of the basis products b_i. -/ lemma sum_coords_nablaBasis {f : MatrixPoly (Sigma n) R} (hf : f ∈ nablaFamily R n κ) : ∑ i : WeylIndexFamily n κ, invFun (nablaCombination κ) f i • nablaBasis R n κ i = f := invFun_eq (range_nablaCombination.ge hf) /-- Over any commutative ring R and for any exponents e_τ, the polynomials b_i · ∏_τ det(y_τ)^{e_τ}, with b_i the basis minor products for κ, are linearly independent over R. -/ lemma GL.linearIndependent_nablaBasis_mul_detPow : LinearIndependent R fun i : WeylIndexFamily n κ ↦ nablaBasis R n κ i * detPow R n e := linearIndependent_nablaBasis.map_injOn (LinearMap.mulRight R (detPow R n e)) isRegular_detPow.right.injOn /-- If all coefficients of a combination of the basis products times `detPow R n e` lie in an additive subgroup `A` of `R`, then so do the coordinates of the combination. A consequence of the standard basis theorem for products of minors, stated for membership in an additive subgroup A and with a determinant-power factor. -/ lemma GL.coord_mem_of_coeff_mem (A : AddSubgroup R) (e : Φ → ℕ) {f : MatrixPoly (Σ τ : Φ, n τ) R} {x : WeylIndexFamily n κ → R} (h_sum : ∑ j : WeylIndexFamily n κ, x j • (nablaBasis R n κ j * detPow R n e) = f) (h_coeff : ∀ d : (Σ τ : Φ, n τ) × ℕ →₀ ℕ, f.coeff d ∈ A) (i : WeylIndexFamily n κ) : x i ∈ A := by -- `A` need not be an ideal, so pass to the ring `Q = ℤ ⊕ R ⧸ A` with `(R ⧸ A)² = 0`. The products -- have integer coefficients and stay independent over `Q`, and the classes of the `x j` form a -- linear relation among them. have h_int (S : Type) [CommRing S] (j : WeylIndexFamily n κ) (d : (Σ τ, n τ) × ℕ →₀ ℕ) : (nablaBasis S n κ j * detPow S n e).coeff d = ((nablaBasis ℤ n κ j * detPow ℤ n e).coeff d : ℤ) := by simpa using (nablaBasis ℤ n κ j * detPow ℤ n e).coeff_map (algebraMap ℤ S) d let Q : Type := TrivSqZeroExt ℤᵐᵒᵖ (TensorProduct ℤ ℤᵐᵒᵖ (R ⧸ A)) let φ : R ⧸ A → Q := TrivSqZeroExt.inrHom ℤᵐᵒᵖ _ ∘ TensorProduct.mk ℤ ℤᵐᵒᵖ (R ⧸ A) 1 have h_rel : ∑ j, φ (x j) • (nablaBasis Q n κ j * detPow Q n e) = 0 := by ext1 d -- The class of `f.coeff d` in `R ⧸ A` is zero; expand `f` by `h_sum` and apply `φ`. have h_class : ((f.coeff d : R) : R ⧸ A) = 0 := (QuotientAddGroup.eq_zero_iff _).mpr (h_coeff d) simpa [φ, Q, ← h_sum, coeff_sum, h_int R, h_int Q, ← zsmul_eq_mul'] using congrArg φ h_class have h_zero : φ (x i) = 0 := linearIndependent_iff.mp (linearIndependent_nablaBasis_mul_detPow e) (fun j ↦ φ (x j)) h_rel i -- `φ` is injective: its value at `x i` is zero only if the class of `x i` is. have h_class_zero : ((x i : R) : R ⧸ A) = 0 := by simpa [φ, Q, TrivSqZeroExt.ext_iff] using h_zero exact (QuotientAddGroup.eq_zero_iff _).mp h_class_zero /-! ### Characterisation of Schur matrices and diagonal matrices -/ omit [Fintype Φ] [DecidableEq Φ] [∀ τ : Φ, DecidableEq (n τ)] in /-- A family of row types fits itself: no height lies strictly between |n_τ| and |n_τ|. -/ @[simp] lemma FitsRanks.refl : FitsRanks n n κ := by grind omit [Fintype Φ] [DecidableEq Φ] [∀ τ : Φ, DecidableEq (n τ)] in /-- For equal row families no extra power of the determinants occurs. -/ @[simp] lemma schurDetExp_self : schurDetExp n n κ = 0 := funext (by simp [schurDetExp]) /-- Let M be a matrix whose row i gives coordinates of b'_i(zy) in the family b_j(y)·∏_τ det(y_τ)^{d_τ}, with b, b' the basis products `New.nablaBasis` for the rows n and n' and d = `New.schurDetExp`. Then M is the Schur matrix S_κ(z): the family is linearly independent, so these coordinates are unique. -/ lemma GL.schur_eq_of_expansion {M : Matrix (WeylIndexFamily n' κ) (WeylIndexFamily n κ) R} {z : ∀ τ : Φ, Matrix (n' τ) (n τ) R} (h_expand : ∀ i : WeylIndexFamily n' κ, ∑ j : WeylIndexFamily n κ, M i j • (nablaBasis R n κ j * detPow R n (schurDetExp n n' κ)) = rowSubst z (nablaBasis R n' κ i)) : schur κ z = M := by -- Row `i` of either matrix holds coordinates of the same polynomial in an independent family. funext i apply (linearIndependent_nablaBasis_mul_detPow _).fintypeLinearCombination_injective exact (sum_schur_smul_eq_rowSubst_of_exists κ z i ⟨M i, h_expand i⟩).trans (h_expand i).symm /-- The Schur matrix of diagonal matrices diag(x_τ) is diagonal; its entry at i is the product of x_τ over all entries of the fillings i_τ. -/ @[local simp] lemma schur_diagonal_eq_prod : schur κ (fun τ : Φ ↦ diagonal (x τ)) = diagonal fun i : WeylIndexFamily n κ ↦ ∏ τ : Φ, ∏ h : Fin (rankAt n τ), ∏ j : Fin (κ τ h), ∏ s : Fin h, x τ ((i τ).val h j s) := by -- Each minor of `b_i` is multiplied by the product of the `x` over its rows, and the -- determinant factor is trivial. refine schur_eq_of_expansion fun i ↦ ?_ simp [diagonal, nablaBasis, rowSubst, ← prod_mul_distrib, tableauPoly, minor, detPow, ← C_mul', ← det_mul_column, AlgHom.map_det, Matrix.map] /-- Weyl's character formula over ℂ, for polynomial weights and with the Vandermonde denominator cleared. Let e_τ enumerate the a_τ rows at each place τ, let x_τ be complex numbers indexed by these rows, and let λ = `New.diagramWeight`, so λ(τ, k) = Σ_{k 1, and column multiplicities k with k(1) = a and k(h) = 0 for 1 < h < |m|: the shape is one row of length a. `New.WeylIndexFamily` indexes the basis `nablaBasis` b, and S_k(z) (`New.schur`) is the matrix whose row i holds chosen coordinates of b_i(z y) in the family b_j(y)·det(y)^d. Let q : σ ≃ m be a bijection. Then there is a bijection φ from these basis indices to the exponents of degree a in σ (`New.Monomials`) such that, for all complex c and square z, c^a·S_k(z)_{ij} is the (φ j, φ i) entry of the a-th symmetric power `New.symPowMatrix` of c·zᵀ reindexed along q. -/ lemma exists_equiv_schur_one_row_eq_symPowMatrix {a : ℕ} {m σ : Type} [Fintype m] [DecidableEq m] [Fintype σ] [DecidableEq σ] {k : ℕ → ℕ} (q : σ ≃ m) (h_card : 1 < Fintype.card m) (h_k_eq : ∀ i : ℕ, i > 0 → i < Fintype.card m → k i = if i = 1 then a else 0) : ∃ φ : WeylIndexFamily (fun _ : Unit ↦ m) (fun () ↦ k) ≃ Monomials σ a, ∀ (c : ℂ) (z : Matrix m m ℂ) (i j : WeylIndexFamily (fun _ : Unit ↦ m) fun _ : Unit ↦ k), c ^ a * schur (fun () ↦ k) (fun _ ↦ z) i j = symPowMatrix a (c • zᵀ.submatrix q q) (φ j) (φ i) := by -- Only columns of height `1` count, so each basis vector is a monomial of degree `a` in the -- first column of variables, and all such monomials occur. In this basis `schur` is the matrix -- of a linear substitution on forms of degree `a`. have h_size : ∑ h ∈ range (card m), h * k h = a := by grind [sum_eq_ite 1] have h_monomial (i : WeylIndexFamily (fun _ : Unit ↦ m) fun () ↦ k) : ∃ d : Monomials σ a, nablaBasis ℂ (fun _ ↦ m) (fun () ↦ k) i = bind₁ (fun b ↦ X (⟨(), q b⟩, 0)) (monomial d 1) := by -- The exponent of `b` is the number of entries of the filling equal to `q b`. refine ⟨⟨∑ h, ∑ j, ∑ s, Finsupp.single (q.symm ((i ()).val h j s)) 1, ?_⟩, ?_⟩ · -- its degree is the number of boxes, `a` simp [sum_comm (γ := σ), ← h_size, sum_range, mul_comm] -- Unfolded, the left side is the product of the minors of the columns, the right side the -- product of the variables `X (entry, 0)` over all entries. simp [nablaBasis, monomial_sum_one, ← X.eq_1, tableauPoly, minor] -- Compare column by column, by the height of the column: minors of size `0` and `1` are the -- products of their variables, and there are no columns of height at least `2`. congr! with ⟨_ | _ | _⟩ · -- height `0`: the empty determinant and the empty product simp [univ_eq_empty] · -- height `1`: a `1 × 1` determinant simp · -- height at least `2`: `k h = 0` by `h_k_eq` grind [cases Fin] choose φ hφ using h_monomial -- Distinct basis vectors are distinct monomials. have h_inj : Function.Injective φ := fun i j h_eq ↦ (linearIndependent_nablaBasis (R := ℂ)).injective (by rw [hφ, hφ, h_eq]) have h_surj : Function.Surjective φ := by rintro ⟨d, hd⟩ -- A monomial of degree `a` in the first column is semi-invariant of the right weight. have h_mem : bind₁ (fun b ↦ X (⟨(), q b⟩, 0)) (monomial d 1) ∈ nablaFamily ℂ (fun _ ↦ m) fun () ↦ k := by -- Only columns of height `1` count, `k 1 = a` of them: the weight is `a` at `((), 0)`. simp_all [mem_nabla, monomial_eq, borelMul, mul_pow, prod_pow_eq_pow_sum, prod_mul_distrib, diagramWeight] rw [sum_eq_ite 1] · simp [h_card, h_k_eq 1 one_pos h_card, mul_comm] · intro h h_mem_range h_ne_one rcases Nat.eq_zero_or_pos h with h_zero | h_pos · simp [h_zero] · simp [h_k_eq h h_pos (mem_range.mp h_mem_range), h_ne_one] -- so it is a combination `Σ_i c_i b_i` of the basis vectors, which are the monomials `φ i`. by_contra h_miss obtain ⟨c, h_sum⟩ : ∃ c : (WeylIndexFamily (fun _ : Unit ↦ m) fun () ↦ k) → ℂ, ∑ i, c i • nablaBasis ℂ (fun _ ↦ m) (fun () ↦ k) i = bind₁ (fun b ↦ X (⟨(), q b⟩, 0)) (monomial d 1) := ⟨_, sum_coords_nablaBasis h_mem⟩ -- Rename the variable `(q b, 0)` back to `b` and take the coefficient of `d`: it is `0` on the -- left, where no `φ i` is `d`, and `1` on the right. have h_coeff : (rename (fun x : ((_ : Unit) × m) × ℕ ↦ q.symm x.1.snd) (∑ i, c i • nablaBasis ℂ (fun _ ↦ m) (fun () ↦ k) i)).coeff d = (rename (fun x : ((_ : Unit) × m) × ℕ ↦ q.symm x.1.snd) (bind₁ (fun b ↦ X (⟨(), q b⟩, 0)) (monomial d 1))).coeff d := by rw [h_sum] have h_ne : ∀ i, (φ i : σ →₀ ℕ) ≠ d := fun i h_eq ↦ h_miss ⟨i, Subtype.ext h_eq⟩ -- With the coefficients computed, `h_coeff` reads `0 = 1`. simp [hφ, rename_bind₁, h_ne] at h_coeff have h_bij : Function.Bijective φ := ⟨h_inj, h_surj⟩ refine ⟨.ofBijective φ h_bij, ?_⟩ intro c z i j -- The scalar `c` comes out of the Schur matrix as `c ^ a` (`schur_smul`). have h_scalar : c ^ a * schur (fun () ↦ k) (fun _ ↦ z) i j = schur (fun () ↦ k) (fun () ↦ c • z) i j := by simp [schur_smul, h_size] rw [h_scalar] -- By `schur_eq_of_expansion`, the Schur matrix is the matrix that expands the substituted basis. apply congrFun₂ (schur_eq_of_expansion fun i ↦ ?_) let f : MvPolynomial σ ℂ := linSubst (c • zᵀ.submatrix q q) (monomial (φ i).1 1) have h_expand : ∑ β : Monomials σ a, f.coeff β • monomial β 1 = f := sum_monomials_eq_of_isHomogeneous ((φ i).isHomogeneous_linSubst _) -- Substitute the first column of variables into this expansion of `f`. have h_subst : bind₁ (fun b ↦ X ((⟨(), q b⟩ : Σ _ : Unit, m), 0)) (∑ β : Monomials σ a, f.coeff β • monomial β 1) = bind₁ (fun b ↦ X ((⟨(), q b⟩ : Σ _ : Unit, m), 0)) f := by rw [h_expand] -- Reindex the sum over monomials by the bijection `φ`. rw [← h_bij.sum_comp (fun β : Monomials σ a ↦ f.coeff β • monomial (β : σ →₀ ℕ) 1)] at h_subst simpa [f, hφ, monomial_eq, reindex_equiv q, symPowMatrix, linSubst, rowSubst] using h_subst end New /-! ## Continuity of Schur matrices -/ /-- Over a topological ring R, the Schur matrix S_κ(g) = `New.schur κ g` of a family g of square matrices g_τ of size n_τ is continuous in g: by base change (`New.schur_map`) each of its entries is a polynomial in the entries of g. -/ @[fun_prop] lemma New.continuous_schur {Φ : Type} {n : Φ → Type} {κ : Φ → ℕ → ℕ} {R : Type} [Fintype Φ] [DecidableEq Φ] [∀ τ : Φ, Fintype (n τ)] [∀ τ : Φ, DecidableEq (n τ)] [CommRing R] [TopologicalSpace R] [IsTopologicalRing R] : Continuous (schur κ : (∀ τ : Φ, Matrix (n τ) (n τ) R) → Matrix (WeylIndexFamily n κ) (WeylIndexFamily n κ) R) := by -- By base change (`schur_map`), the entries of `schur κ g` are the polynomial entries of the -- Schur matrix of the generic matrices `GL.genericMatrixAt R n`, evaluated at the entries of `g`. have h_eval (g : ∀ τ : Φ, Matrix (n τ) (n τ) R) : (schur κ (GL.genericMatrixAt R n)).map (GL.evalMatrix g) = schur κ g := by simp [← schur_map .refl] refine .congr (continuous_matrix fun i j ↦ ?_) h_eval simp only [Matrix.map_apply, MvPolynomial.eval_eq] fun_prop