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.Order.CompletePartialOrder |
| 4 | import Mathlib.Algebra.Module.StablyFree.Basic |
| 5 | import Mathlib.Algebra.MvPolynomial.Coeff |
| 6 | import Mathlib.RingTheory.Coalgebra.IsFrobenius |
| 7 | import Mathlib.RingTheory.Etale.Weakly |
| 8 | import Mathlib.RingTheory.Finiteness.Lattice |
| 9 | import Mathlib.RingTheory.HopfAlgebra.Basic |
| 10 | import Mathlib.RingTheory.SimpleRing.Principal |
| 11 | import Mathlib.RingTheory.TotallySplit |
| 12 | import TauCeti.Algebra.BigOperators.ZPow |
| 13 | import TauCeti.RingTheory.MvPolynomial.Evaluation.Homogeneous |
| 14 | public import Lib.GLn.SchurModule.Basic |
| 15 | public import Lib.General.Groups.BesselGroups |
| 16 | |
| 17 | /-! |
| 18 | # An average on polynomials in the entries of a matrix |
| 19 | |
| 20 | Let `L` be a Levi subgroup of `GL_k`, `W` a local ring with large finite residue field, and |
| 21 | `ι : W → O` a ring map to a valuation domain of characteristic `0` in which the prime `p` is not a |
| 22 | unit. Let `ρ ∈ ℤ ^ k` weigh the indices, and call a monomial in the matrix entries *bad* if its row |
| 23 | weight exceeds a threshold. The file constructs an `O`-linear form `I` on polynomials in the matrix |
| 24 | entries (`New.Average.exists_isAverage`) that is invariant under conjugation by `L(W)`, vanishes |
| 25 | on bad monomials, and agrees modulo an ideal `J` with a power of `p` times evaluation at the matrix |
| 26 | `1` on every polynomial of small degree whose conjugates have no bad monomial modulo `J` |
| 27 | (`New.Average.IsAverage`, `New.Average.evalAtOne`). |
| 28 | |
| 29 | * `New.Average.exists_isAdjointWeight`: the multinomial coefficients of the monomials of |
| 30 | degree `< p ^ f` in `m` variables divide `p ^ (m f)` in `O`, and the quotients make the |
| 31 | substitutions by a matrix and by its transpose adjoint. |
| 32 | * `New.Average.eq_top_of_schurMap_eq_leviMonomialValues`: the points of `L(W)` span the Schur |
| 33 | algebra of `L` of degree `d`, which acts on `U = (O ^ k)^{⊗ d}`. |
| 34 | * `New.Average.dualOperator`: with the quotients above, a polynomial `ψ` gives an element `ψ♯` |
| 35 | of the Schur algebra. For `d < p ^ f` its trace on `U` is the scaled value at `1` of the part of |
| 36 | degree `d` of `ψ`, and conjugation of `ψ` becomes conjugation of `ψ♯`. |
| 37 | * `New.Average.averagePart`: in degree `d ≤ D` the form `I` is the trace of `ψ♯` on `U` minus its |
| 38 | trace on the submodule `U₊` (`New.Average.largeWeightSubmodule`) generated by the basis tensors of |
| 39 | large weight. |
| 40 | |
| 41 | All `k ^ 2` entries are variables; a monomial with an entry outside the blocks has `ψ♯ = 0`. |
| 42 | The row weight of a monomial `α` is `∑ α (i, j) • ρ i`; the column weight has `ρ j` in place of |
| 43 | `ρ i`. The Schur algebra is built on the transpose of the matrix of variables, so the row indices |
| 44 | of a monomial are the column indices of `ψ♯`, and no transpose appears in the rule for conjugation. |
| 45 | Transposing the variables gives the same statements with column weights, since `L(W)` is closed |
| 46 | under transposition. |
| 47 | |
| 48 | Notions from other files: |
| 49 | * `New.linSubst z`: for an `m × σ` matrix `z` over `R`, the `R`-algebra map from polynomials in |
| 50 | variables indexed by `σ` to those indexed by `m` that sends `X b` to `∑ t, z t b • X t`. |
| 51 | * `New.levi W τ`: the Levi subgroup of a labelling `τ` of the indices, made of the matrices in |
| 52 | `GL_k(W)` whose entry `(i, j)` vanishes whenever `τ i ≠ τ j`. |
| 53 | * `New.kroneckerPi A`: the Kronecker product of a family of matrices `A s`; its entry at `(β, α)` |
| 54 | is `∏ s, A s (β s) (α s)`. |
| 55 | * `New.fockPairing`: the bilinear form on polynomials for which monomials are orthogonal and |
| 56 | `⟨x ^ α, x ^ α⟩ = α!`. |
| 57 | |
| 58 | The average serves the map `Av` of `New.UpperBound.ElementaryDivisors.AveragingMap`. |
| 59 | |
| 60 | ## Relation to the literature |
| 61 | |
| 62 | Known result: the Schur algebra, and that group elements span it in degrees below the size of the |
| 63 | field. Here this is proved for Levi subgroups over local rings, in degrees `d` with `d + k` at most |
| 64 | the size of the residue field. Source: Green, Polynomial representations of GL_n, 1980; Benson–Doty, |
| 65 | Schur–Weyl duality over finite fields, 2009. |
| 66 | -/ |
| 67 | |
| 68 | @[expose] public section |
| 69 | |
| 70 | namespace New.Average |
| 71 | |
| 72 | open MvPolynomial Matrix IsLocalRing Finsupp Module LinearMap Submodule Finset Nat Fintype |
| 73 | |
| 74 | /-! ### Multinomial coefficients and adjoint substitutions -/ |
| 75 | |
| 76 | /-- Let the prime `p` be a non-unit of the valuation domain `O`. A binomial coefficient with upper |
| 77 | index `< p ^ f` divides `p ^ f` in `O`. -/ |
| 78 | lemma cast_choose_dvd_pow {O : Type} [CommRing O] [IsDomain O] [ValuationRing O] {p : ℕ} |
| 79 | (hp_prime : p.Prime) (hp : ¬IsUnit (p : O)) {f n m : ℕ} (h_lt : n + m < p ^ f) : |
| 80 | ((n + m).choose n : O) ∣ p ^ f := by |
| 81 | -- The coefficient `c` is a unit times `p ^ v`, where `v ≤ f` is its `p`-adic valuation. |
| 82 | set c : ℕ := (n + m).choose n |
| 83 | have h_coprime : p.Coprime (ordCompl[p] c) := |
| 84 | coprime_ordCompl hp_prime (choose_ne_zero le_self_add) |
| 85 | have h_unit : IsUnit ((ordCompl[p] c : ℕ) : O) := |
| 86 | notMem_maximalIdeal.1 (Ideal.IsPrime.notMem_of_isCoprime_of_mem h_coprime.cast hp) |
| 87 | have h_le : c.factorization p ≤ f := |
| 88 | calc c.factorization p ≤ log p (n + m) := factorization_choose_le_log |
| 89 | _ ≤ log p (p ^ f) := log_mono_right h_lt.le |
| 90 | _ = f := log_pow hp_prime.one_lt f |
| 91 | rw [← ordProj_mul_ordCompl_eq_self c p, cast_mul, cast_pow, h_unit.mul_right_dvd] |
| 92 | exact pow_dvd_pow (p : O) h_le |
| 93 | |
| 94 | /-- Let the prime `p` be a non-unit of the valuation domain `O`. A multinomial coefficient over `s` |
| 95 | of total degree `< p ^ f` divides `p ^ (#s * f)` in `O`. -/ |
| 96 | lemma cast_multinomial_dvd_pow {O : Type} [CommRing O] [IsDomain O] [ValuationRing O] {p : ℕ} |
| 97 | (hp_prime : p.Prime) (hp : ¬IsUnit (p : O)) {κ : Type*} {f : ℕ} (s : Finset κ) (α : κ → ℕ) |
| 98 | (h_lt : ∑ i ∈ s, α i < p ^ f) : (multinomial s α : O) ∣ p ^ (#s * f) := by |
| 99 | -- The coefficient is a product of `#s` binomial coefficients. |
| 100 | induction s using cons_induction with |
| 101 | | empty => simp |
| 102 | | cons a s ha ih => |
| 103 | rw [multinomial_cons, cast_mul, card_cons, Nat.add_one_mul, pow_add, mul_comm] |
| 104 | exact mul_dvd_mul (ih (by grind)) (cast_choose_dvd_pow hp_prime hp (by simpa using h_lt)) |
| 105 | |
| 106 | /-- Give the polynomials in the variables `σ` the bilinear form for which monomials are orthogonal |
| 107 | and `⟨x ^ α, x ^ α⟩ = η α`. The weights `η` are adjoint weights if, for every matrix `A`, the linear |
| 108 | substitutions of the variables (`linSubst`) by `A` and by `Aᵀ` are adjoint for this form. -/ |
| 109 | def IsAdjointWeight {O σ : Type} [CommRing O] [Fintype σ] (η : (σ →₀ ℕ) → O) : Prop := |
| 110 | ∀ (A : Matrix σ σ O) (α β : σ →₀ ℕ), |
| 111 | (linSubst A (monomial β 1)).coeff α * η α = η β * (linSubst Aᵀ (monomial α 1)).coeff β |
| 112 | |
| 113 | /-- The linear substitutions (`linSubst`) of the variables `σ` by a matrix `A` and by `Aᵀ` have |
| 114 | matrices in the monomial basis that are transposes of each other up to the factors |
| 115 | `α! = ∏ i, (α i)!`. This is their adjointness for `fockPairing`, the bilinear form with |
| 116 | `⟨x ^ α, x ^ α⟩ = α!`, written out for two monomials. -/ |
| 117 | lemma prod_factorial_mul_coeff_linSubst {O σ : Type} [CommRing O] [Fintype σ] (A : Matrix σ σ O) |
| 118 | (α β : σ →₀ ℕ) : |
| 119 | (∏ i : σ, (α i)! : ℕ) * (linSubst A (monomial β 1)).coeff α = |
| 120 | (∏ i : σ, (β i)! : ℕ) * (linSubst Aᵀ (monomial α 1)).coeff β := by |
| 121 | classical |
| 122 | have h_pairing (γ : σ →₀ ℕ) (g : MvPolynomial σ O) : |
| 123 | fockPairing O (monomial γ 1) g = (∏ i : σ, (γ i)! : ℕ) * g.coeff γ := by |
| 124 | simp [fockPairing_monomial, prod_fintype] |
| 125 | rw [← h_pairing, ← h_pairing, fockPairing_linSubst, fockPairing_comm] |
| 126 | |
| 127 | /-- A linear substitution of the variables preserves the degree: the image of the monomial `δ` has |
| 128 | no monomial `γ` of another degree. -/ |
| 129 | lemma coeff_linSubst_monomial_eq_zero {O σ : Type} [CommRing O] [Fintype σ] (B : Matrix σ σ O) |
| 130 | {γ δ : σ →₀ ℕ} (h_ne : ∑ i : σ, γ i ≠ ∑ i : σ, δ i) : |
| 131 | (linSubst B (monomial δ 1)).coeff γ = 0 := by |
| 132 | classical exact (Monomials.isHomogeneous_linSubst B |
| 133 | (⟨δ, by simp⟩ : Monomials σ (∑ i : σ, δ i))).coeff_eq_zero (by rwa [degree_eq_sum]) |
| 134 | |
| 135 | /-- Let `O` be a valuation domain of characteristic `0` in which the prime `p` is not a unit. There |
| 136 | are weights `η γ ∈ O` of the monomials in the variables `σ`, with |
| 137 | `p ^ (#σ * f) = multinomial γ * η γ` in degree `< p ^ f`, such that the symmetric bilinear form with |
| 138 | the diagonal values `η γ` is invariant in the sense that linear substitutions by a matrix and by its |
| 139 | transpose are adjoint for it (`IsAdjointWeight`). -/ |
| 140 | lemma exists_isAdjointWeight {O : Type} (σ : Type) [CommRing O] [Fintype σ] [IsDomain O] |
| 141 | [CharZero O] [ValuationRing O] {p : ℕ} (hp_prime : p.Prime) (hp : ¬IsUnit (p : O)) (f : ℕ) : |
| 142 | ∃ η : (σ →₀ ℕ) → O, |
| 143 | (∀ γ : σ →₀ ℕ, γ.degree < p ^ f → (p : O) ^ (Fintype.card σ * f) = γ.multinomial * η γ) ∧ |
| 144 | IsAdjointWeight η := by |
| 145 | classical |
| 146 | -- `η γ` is `p ^ (card σ * f)` over the multinomial coefficient in degree `< p ^ f`, else `0`. |
| 147 | have h_quot (γ : σ → ℕ) : ∃ c : O, |
| 148 | (if ∑ i, γ i < p ^ f then (p : O) ^ (card σ * f) else 0) = multinomial univ γ * c := by |
| 149 | split_ifs with h_lt |
| 150 | exacts [cast_multinomial_dvd_pow hp_prime hp univ γ h_lt, dvd_zero _] |
| 151 | choose (η : (σ → ℕ) → O) hη using h_quot |
| 152 | refine ⟨fun γ ↦ η γ, fun γ hγ ↦ ?_, fun A α β ↦ ?_⟩ |
| 153 | · rw [multinomial_eq_of_support_subset (subset_univ _), ← hη γ, ← degree_eq_sum, ite_eq_left hγ] |
| 154 | by_cases h_deg : ∑ i, α i = ∑ i, β i |
| 155 | · -- Multiply by the factorial of the common degree and use adjointness for the weights `α!`. |
| 156 | refine mul_left_cancel₀ (cast_ne_zero.2 (∑ i, α i).factorial_ne_zero) ?_ |
| 157 | calc ((∑ i, α i)! : O) * ((linSubst A (monomial β 1)).coeff α * η α) |
| 158 | = (∏ i, (α i)! : ℕ) * (linSubst A (monomial β 1)).coeff α * (multinomial univ α * η α) := by |
| 159 | rw [← multinomial_spec univ α, cast_mul]; ring |
| 160 | _ = (∏ i, (β i)! : ℕ) * (linSubst Aᵀ (monomial α 1)).coeff β * |
| 161 | (multinomial univ β * η β) := by |
| 162 | rw [prod_factorial_mul_coeff_linSubst, ← hη α, ← hη β, h_deg] |
| 163 | _ = (∑ i, α i)! * (η β * (linSubst Aᵀ (monomial α 1)).coeff β) := by |
| 164 | rw [h_deg, ← multinomial_spec univ β, cast_mul]; ring |
| 165 | · -- In different degrees both coefficients vanish. |
| 166 | simp [coeff_linSubst_monomial_eq_zero, h_deg, Ne.symm h_deg] |
| 167 | |
| 168 | /-! ### Conjugation and averages -/ |
| 169 | |
| 170 | /-- Conjugation of the generic matrix: the `O`-algebra map that substitutes `ι(a⁻¹) * X * ι(a)` for |
| 171 | `X`, so `X (i, j) ↦ ∑ s t, ι (a⁻¹ i s) * ι (a t j) • X (s, t)`. It is written as the linear |
| 172 | substitution `New.linSubst` by the Kronecker product of `ι(a⁻¹)ᵀ` and `ι(a)`, whose entry at |
| 173 | `((s, t), (i, j))` is that coefficient. -/ |
| 174 | noncomputable def conjSubst {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (ι : W →+* O) |
| 175 | (a : GL (Fin k) W) : |
| 176 | MvPolynomial (Fin k × Fin k) O →ₐ[O] MvPolynomial (Fin k × Fin k) O := |
| 177 | linSubst (a⁻¹.valᵀ.kroneckerMap (fun s t : W ↦ ι s * ι t) a.val) |
| 178 | |
| 179 | /-- Conjugation (`conjSubst`) by the diagonal matrix `diagGL u` with unit entries `u i` scales the |
| 180 | variable `X (i, j)` by `ι ((u i)⁻¹ * u j)`. -/ |
| 181 | lemma conjSubst_diagGL_X {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (ι : W →+* O) |
| 182 | (u : Fin k → Wˣ) (v : Fin k × Fin k) : |
| 183 | conjSubst ι (diagGL u) (X v) = |
| 184 | ι ((u v.1)⁻¹ * u v.2 : Wˣ) • (X v : MvPolynomial (Fin k × Fin k) O) := by |
| 185 | rw [conjSubst, ← map_inv diagGL, coe_diagGL, coe_diagGL] |
| 186 | simp [linSubst, sum_prod_type, diagonal_apply, apply_ite ι] |
| 187 | |
| 188 | /-- The form `ψ ↦ c * ψ(1)`: evaluation at the identity matrix, times `c`. -/ |
| 189 | noncomputable def evalAtOne {k : ℕ} {O : Type} [CommRing O] (c : O) : |
| 190 | Dual O (MvPolynomial (Fin k × Fin k) O) := |
| 191 | c • (aeval (vec (1 : Matrix (Fin k) (Fin k) O))).toLinearMap |
| 192 | |
| 193 | /-- The form `evalAtOne c` sends `ψ` to `c` times the value of `ψ` at the identity matrix. -/ |
| 194 | lemma evalAtOne_apply {k : ℕ} {O : Type} [CommRing O] (c : O) (ψ : MvPolynomial (Fin k × Fin k) O) : |
| 195 | evalAtOne c ψ = c * eval (vec (1 : Matrix (Fin k) (Fin k) O)) ψ := by |
| 196 | simp [evalAtOne] |
| 197 | |
| 198 | /-- Let `ι : W → O` be a map of commutative rings and `a ∈ GL_k(W)`. The substitution |
| 199 | `conjSubst ι a : X ↦ ι(a⁻¹) * X * ι(a)` of the matrix of variables does not change |
| 200 | `evalAtOne c ψ = c * ψ(1)`, because conjugation fixes the identity matrix. -/ |
| 201 | lemma evalAtOne_conjSubst {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (ι : W →+* O) (c : O) |
| 202 | (a : GL (Fin k) W) (ψ : MvPolynomial (Fin k × Fin k) O) : |
| 203 | evalAtOne c (conjSubst ι a ψ) = evalAtOne c ψ := by |
| 204 | have hev : (aeval (vec 1)).comp (conjSubst ι a) = aeval (vec (1 : Matrix (Fin k) (Fin k) O)) := by |
| 205 | ext ⟨i, j⟩ |
| 206 | calc _ = ∑ s : Fin k, ι (a⁻¹.val i s) * ι (a.val s j) := by |
| 207 | simp [conjSubst, linSubst, sum_prod_type, Matrix.one_apply] |
| 208 | _ = ι ((a⁻¹ * a).val i j) := by simp only [Units.val_mul, Matrix.mul_apply, map_sum, map_mul] |
| 209 | _ = _ := by simp [Matrix.one_apply, eq_comm] |
| 210 | simpa [evalAtOne] using congrArg (c * ·) (AlgHom.congr_fun hev ψ) |
| 211 | |
| 212 | /-- Let `ι : W → O` be a map of commutative rings, `u` a unit of `W`, and `a` the diagonal matrix |
| 213 | with entries `u ^ ρ i`. The substitution `conjSubst ι a : X ↦ ι(a⁻¹) * X * ι(a)` of the matrix of |
| 214 | variables multiplies the monomial `α` by `ι u ^ e`, where `e` is the column weight |
| 215 | `∑ α (i, j) • ρ j` less the row weight `∑ α (i, j) • ρ i`. -/ |
| 216 | lemma conjSubst_diagGL_zpow_monomial {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (ι : W →+* O) |
| 217 | (u : Wˣ) (ρ : Fin k → ℤ) (α : Fin k × Fin k →₀ ℕ) : |
| 218 | conjSubst ι (diagGL fun i : Fin k ↦ u ^ ρ i) (monomial α 1) = |
| 219 | (Units.map (ι : W →* O) u ^ (weight (fun v : Fin k × Fin k ↦ ρ v.2) α - |
| 220 | weight (fun v : Fin k × Fin k ↦ ρ v.1) α) : Oˣ).val • |
| 221 | (monomial α 1 : MvPolynomial (Fin k × Fin k) O) := by |
| 222 | set u' : Oˣ := Units.map (ι : W →* O) u |
| 223 | set e : ℤ := weight (fun v : Fin k × Fin k ↦ ρ v.2) α - weight (fun v : Fin k × Fin k ↦ ρ v.1) α |
| 224 | have h_factor (i j : Fin k) : ι ((u ^ ρ i)⁻¹ * u ^ ρ j : Wˣ) = (u' ^ (ρ j - ρ i) : Oˣ) := by |
| 225 | simp [u', _root_.zpow_sub, mul_comm, ← map_zpow] |
| 226 | have h_prod : ∏ v : Fin k × Fin k, (u' ^ (ρ v.2 - ρ v.1)) ^ α v = u' ^ e := by |
| 227 | simp [e, ← zpow_natCast, ← _root_.zpow_mul, Finset.prod_zpow_eq_zpow_sum, weight_eq_sum, |
| 228 | sub_mul, mul_comm (α _ : ℤ)] |
| 229 | simp only [monomial_eq, C_1, one_mul, prod_fintype _ _ fun _ ↦ pow_zero _, map_prod, map_pow, |
| 230 | conjSubst_diagGL_X, h_factor, smul_pow, prod_smul, ← h_prod, Units.coe_prod, |
| 231 | Units.val_pow_eq_pow_val] |
| 232 | |
| 233 | /-- Let `ι : W → O` be a ring map from a local ring to a domain of characteristic `0` in which |
| 234 | `p > 0` is not a unit. Let `levi W τ` be the group of the `a ∈ GL_k(W)` with `a i j = 0` whenever |
| 235 | the labels `τ i` and `τ j` differ, and let the linear form `I` on polynomials in the entries of a |
| 236 | matrix `X` be invariant under the substitutions `conjSubst ι a : X ↦ ι(a⁻¹) * X * ι(a)` for `a` in |
| 237 | this group. Then `I` vanishes on the monomials `α` whose row weight `∑ α (i, j) • ρ i` and column |
| 238 | weight `∑ α (i, j) • ρ j` differ. -/ |
| 239 | lemma apply_monomial_eq_zero_of_weight_ne {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] |
| 240 | [CommRing O] (τ : Fin k → ℕ) (ι : W →+* O) [IsDomain O] [CharZero O] {p : ℕ} (hp_pos : 0 < p) |
| 241 | (hp : ¬IsUnit (p : O)) (ρ : Fin k → ℤ) {I : Dual O (MvPolynomial (Fin k × Fin k) O)} |
| 242 | (hI : ∀ a ∈ levi W τ, ∀ ψ : MvPolynomial (Fin k × Fin k) O, I (conjSubst ι a ψ) = I ψ) |
| 243 | {α : Fin k × Fin k →₀ ℕ} |
| 244 | (hα : weight (fun v : Fin k × Fin k ↦ ρ v.1) α ≠ weight (fun v : Fin k × Fin k ↦ ρ v.2) α) : |
| 245 | I (monomial α 1) = 0 := by |
| 246 | -- Conjugation by `diag ((1 + p) ^ ρ i)` multiplies the monomial by `(1 + p) ^ e`, where `e` is |
| 247 | -- the column weight less the row weight, and `1 + p` is not a root of unity. |
| 248 | have h_unit : IsUnit (1 + p : W) := by |
| 249 | simpa using (isUnit_or_isUnit_one_sub_self (-p : W)).resolve_left |
| 250 | fun h ↦ hp (by simpa using h.map ι) |
| 251 | let u : Oˣ := Units.map ι h_unit.unit |
| 252 | have h_levi : diagGL (fun i : Fin k ↦ h_unit.unit ^ ρ i) ∈ levi W τ := fun i j hij ↦ by |
| 253 | simp [ne_of_apply_ne τ hij] |
| 254 | have h_order : ¬IsOfFinOrder u := fun h ↦ by |
| 255 | obtain ⟨m, hm_pos, hm⟩ := h.exists_pow_eq_one |
| 256 | have h_cast : (((1 + p) ^ m : ℕ) : O) = (1 : ℕ) := by simpa [u] using congrArg Units.val hm |
| 257 | exact (Nat.one_lt_pow hm_pos.ne' (by lia)).ne' (Nat.cast_injective h_cast) |
| 258 | let e : ℤ := weight (fun v : Fin k × Fin k ↦ ρ v.2) α - weight (fun v : Fin k × Fin k ↦ ρ v.1) α |
| 259 | have h_ne : (u ^ e : Oˣ).val ≠ 1 := fun h ↦ |
| 260 | h_order (isOfFinOrder_iff_zpow_eq_one.2 ⟨e, sub_ne_zero.2 hα.symm, Units.ext h⟩) |
| 261 | have h_inv : (u ^ e : Oˣ).val * I (monomial α 1) = I (monomial α 1) := by |
| 262 | rw [← smul_eq_mul, ← map_smul, ← conjSubst_diagGL_zpow_monomial, hI _ h_levi] |
| 263 | exact (mul_left_eq_self₀.1 h_inv).resolve_left h_ne |
| 264 | |
| 265 | /-- The linear form `I` on polynomials over `O` in the entries of a `k × k` matrix `X` is an average |
| 266 | for the Levi subgroup `L(W) = levi W τ` of the `a ∈ GL_k(W)` with `a i j = 0` whenever `τ i ≠ τ j`, |
| 267 | which acts by the substitutions `conjSubst ι a : X ↦ ι(a⁻¹) * X * ι(a)`. A monomial `α` is bad if |
| 268 | its row weight `∑ α (i, j) • ρ i` exceeds `t`; `c` scales the evaluation at the matrix `1`, and `D` |
| 269 | bounds the degree. If `W` is local and `O` is a domain of characteristic `0` in which some `p > 0` |
| 270 | is not a unit, then by invariance `I` also vanishes on the monomials whose row weight and column |
| 271 | weight differ (`apply_monomial_eq_zero_of_weight_ne`). -/ |
| 272 | structure IsAverage {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (τ : Fin k → ℕ) (ι : W →+* O) |
| 273 | (ρ : Fin k → ℤ) (t : ℤ) (c : O) (D : ℕ) |
| 274 | (I : Dual O (MvPolynomial (Fin k × Fin k) O)) : Prop where |
| 275 | /-- `I` is invariant under conjugation by `L(W)`. -/ |
| 276 | map_conjSubst : ∀ a ∈ levi W τ, ∀ ψ : MvPolynomial (Fin k × Fin k) O, I (conjSubst ι a ψ) = I ψ |
| 277 | /-- `I` vanishes on bad monomials. -/ |
| 278 | map_monomial_eq_zero : ∀ α : Fin k × Fin k →₀ ℕ, |
| 279 | t < weight (fun v : Fin k × Fin k ↦ ρ v.1) α → I (monomial α 1) = 0 |
| 280 | /-- If `ψ` has degree at most `D` and the bad monomials of all its conjugates have coefficients |
| 281 | in the ideal `J`, then `I ψ ≡ c * ψ(1)` modulo `J`. -/ |
| 282 | sub_evalAtOne_mem : ∀ (J : Ideal O) (ψ : MvPolynomial (Fin k × Fin k) O), ψ.totalDegree ≤ D → |
| 283 | (∀ a ∈ levi W τ, ∀ α : Fin k × Fin k →₀ ℕ, |
| 284 | t < weight (fun v : Fin k × Fin k ↦ ρ v.1) α → (conjSubst ι a ψ).coeff α ∈ J) → |
| 285 | I ψ - evalAtOne c ψ ∈ J |
| 286 | |
| 287 | /-- An `O`-linear form `l` on polynomials, applied entry by entry to a matrix `X`, commutes with |
| 288 | multiplication by constant matrices `A` and `B`. -/ |
| 289 | lemma map_C_mul_mul_C {O σ : Type} [CommRing O] [Fintype σ] {ν : Type*} (A B : Matrix σ σ O) |
| 290 | (X : Matrix σ σ (MvPolynomial ν O)) (l : Dual O (MvPolynomial ν O)) : |
| 291 | (A.map C * X * B.map C).map l = A * X.map l * B := by |
| 292 | ext i j |
| 293 | simp [mul_comm (∑ _, _), C_mul', Matrix.mul_apply] |
| 294 | |
| 295 | /-- Zariski density over local rings. Let the polynomial `g` over the local ring `W` be homogeneous |
| 296 | of degree `e` and take a unit value at some point `b₀`, and let `n + e ≤ Nat.card` of the residue |
| 297 | field of `W`. Let `γ` run over `Monomials σ n`, the exponent vectors of degree `n`, and let |
| 298 | `ι : W → O` be a ring map. Then the vectors `γ ↦ ι (b ^ γ)`, at the points `b` where `g (b)` is a |
| 299 | unit, span `Monomials σ n → O`: a submodule `V` that contains them is everything. -/ |
| 300 | lemma eq_top_of_eval_monomial {W O σ : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 301 | (ι : W →+* O) [Fintype σ] [DecidableEq σ] (n : ℕ) {e : ℕ} {g : MvPolynomial σ W} |
| 302 | (hg : g.IsHomogeneous e) (hW : n + e ≤ Nat.card (ResidueField W)) {b₀ : σ → W} |
| 303 | (hb₀ : IsUnit (eval b₀ g)) {V : Submodule O (Monomials σ n → O)} |
| 304 | (hV : ∀ b : σ → W, IsUnit (eval b g) → |
| 305 | (fun γ : Monomials σ n ↦ ι (eval b (monomial γ.val 1))) ∈ V) : V = ⊤ := by |
| 306 | -- Reindex exponents from `Monomials σ n` to `{γ // γ.degree = n}`. |
| 307 | let e_mon : Monomials σ n ≃ {γ : σ →₀ ℕ // γ.degree = n} := |
| 308 | Equiv.subtypeEquivRight fun γ ↦ by simp [mem_finsuppAntidiag, degree_eq_sum] |
| 309 | -- Transport functions along `e_mon` via `LinearEquiv.funCongrLeft`. |
| 310 | let L : ({γ : σ →₀ ℕ // γ.degree = n} → O) ≃ₗ[O] (Monomials σ n → O) := |
| 311 | LinearEquiv.funCongrLeft O O e_mon |
| 312 | -- Apply `span_range_prod_pow_eq_top` using `Nat.card ≤ Cardinal.mk`. |
| 313 | have h_span := hg.span_range_prod_pow_eq_top ι |
| 314 | ((Nat.cast_le.2 hW).trans (Cardinal.natCast_toNat_le _)) ⟨b₀, hb₀⟩ |
| 315 | -- Map the spanning set along `L` and reduce to `V`. |
| 316 | rw [← top_le_iff, ← LinearMap.range_eq_top.2 L.surjective, ← Submodule.map_top, ← h_span, |
| 317 | Submodule.map_span, Submodule.span_le] |
| 318 | rintro _ ⟨_, ⟨⟨b, hb⟩, rfl⟩, rfl⟩ |
| 319 | -- Each mapped generator evaluates `monomial γ.val 1` at `b` as `∏ i, b i ^ γ.val i`. |
| 320 | change (fun γ : Monomials σ n ↦ ι (∏ i, b i ^ γ.val i)) ∈ V |
| 321 | simpa [eval_monomial, prod_fintype] using hV b hb |
| 322 | |
| 323 | section SchurAlgebra |
| 324 | |
| 325 | /-- The generic block matrix of the labelling `τ` of the indices, transposed: the entry at `(i, j)` |
| 326 | is the variable `X (j, i)` if `τ i = τ j` and `0` otherwise. This is the index order of |
| 327 | `Matrix.vec`. -/ |
| 328 | noncomputable def leviGeneric {k : ℕ} (O : Type) [CommRing O] (τ : Fin k → ℕ) : |
| 329 | Matrix (Fin k) (Fin k) (MvPolynomial (Fin k × Fin k) O) := |
| 330 | of fun i j : Fin k ↦ C (if τ i = τ j then 1 else 0) * X (j, i) |
| 331 | |
| 332 | /-- The `d`-th tensor power of the generic block matrix `leviGeneric O τ`. -/ |
| 333 | noncomputable def leviTensor {k : ℕ} (O : Type) [CommRing O] (τ : Fin k → ℕ) (d : ℕ) : |
| 334 | Matrix (Fin d → Fin k) (Fin d → Fin k) (MvPolynomial (Fin k × Fin k) O) := |
| 335 | kroneckerPi fun _ : Fin d ↦ leviGeneric O τ |
| 336 | |
| 337 | /-- The map onto the Schur algebra of degree `d`: a linear form, given by its values on the |
| 338 | monomials of degree `d`, is applied to the entries of `leviTensor O τ d`. -/ |
| 339 | noncomputable def schurMap {k : ℕ} (O : Type) [CommRing O] (τ : Fin k → ℕ) (d : ℕ) : |
| 340 | (Monomials (Fin k × Fin k) d → O) →ₗ[O] Matrix (Fin d → Fin k) (Fin d → Fin k) O := |
| 341 | (Pi.basisFun O (Monomials (Fin k × Fin k) d)).constr O fun γ : Monomials (Fin k × Fin k) d ↦ |
| 342 | (leviTensor O τ d).map (·.coeff γ.val) |
| 343 | |
| 344 | /-- The values of the monomials of degree `d` at the point `a` of the Levi subgroup, mapped to `O` |
| 345 | by `ι`. The variable `X (j, i)` takes the value `a i j`, as in `Matrix.vec`. -/ |
| 346 | noncomputable def leviMonomialValues {k : ℕ} {W O : Type} [CommRing W] [CommRing O] |
| 347 | (τ : Fin k → ℕ) (ι : W →+* O) (d : ℕ) (a : levi W τ) : Monomials (Fin k × Fin k) d → O := |
| 348 | fun γ ↦ aeval (ι ∘ vec (a.val : Matrix (Fin k) (Fin k) W)) (monomial γ.val (1 : O)) |
| 349 | |
| 350 | /-- The coefficients of degree `d` of a polynomial, scaled by `η`: `ψ ↦ (γ ↦ coeff γ ψ * η γ)`. -/ |
| 351 | noncomputable def scaledCoeff {k : ℕ} {O : Type} [CommRing O] (η : (Fin k × Fin k →₀ ℕ) → O) |
| 352 | (d : ℕ) : |
| 353 | MvPolynomial (Fin k × Fin k) O →ₗ[O] Monomials (Fin k × Fin k) d → O := |
| 354 | pi fun γ : Monomials (Fin k × Fin k) d ↦ (lcoeff O γ.val).smulRight (η γ.val) |
| 355 | |
| 356 | /-- Polynomials as operators: the element `ψ♯` of the Schur algebra of degree `d` dual to the |
| 357 | polynomial `ψ`, a matrix that acts on `(O ^ k)^{⊗ d}`. For multi-indices `i, j : Fin d → Fin k` its |
| 358 | entry at `(i, j)` is `η α` times the coefficient in `ψ` of the monomial `α = ∏ l, X (j l, i l)` if |
| 359 | `τ (i l) = τ (j l)` for all `l`, and `0` otherwise. Only the part of degree `d` of `ψ` matters. -/ |
| 360 | noncomputable def dualOperator {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) |
| 361 | (η : (Fin k × Fin k →₀ ℕ) → O) (d : ℕ) : |
| 362 | MvPolynomial (Fin k × Fin k) O →ₗ[O] Matrix (Fin d → Fin k) (Fin d → Fin k) O := |
| 363 | schurMap O τ d ∘ₗ scaledCoeff η d |
| 364 | |
| 365 | /-- The map that sends `c` to the image of the basis tensor with indices `j` under the element |
| 366 | `schurMap O τ d c` of the Schur algebra. -/ |
| 367 | noncomputable def tensorOrbit {k : ℕ} (O : Type) [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 368 | (j : Fin d → Fin k) : (Monomials (Fin k × Fin k) d → O) →ₗ[O] (Fin d → Fin k) → O := |
| 369 | toLin'.toLinearMap.flip (Pi.single j 1) ∘ₗ schurMap O τ d |
| 370 | |
| 371 | /-- The submodule `U₊` of the `d`-th tensor power of `O ^ k` that is generated under the Schur |
| 372 | algebra by the basis tensors `j` whose weight `∑ l, ρ (j l)` exceeds `t`. -/ |
| 373 | noncomputable def largeWeightSubmodule {k : ℕ} (O : Type) [CommRing O] (τ : Fin k → ℕ) |
| 374 | (ρ : Fin k → ℤ) (t : ℤ) (d : ℕ) : Submodule O ((Fin d → Fin k) → O) := |
| 375 | ⨆ j : {j : Fin d → Fin k // t < ∑ l : Fin d, ρ (j l)}, range (tensorOrbit O τ j.val) |
| 376 | |
| 377 | /-- `largeWeightSubmodule` is a finite sum of images of finite modules. -/ |
| 378 | instance finite_largeWeightSubmodule {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 379 | (ρ : Fin k → ℤ) (t : ℤ) : |
| 380 | Module.Finite O (largeWeightSubmodule O τ ρ t d) := |
| 381 | inferInstanceAs (Module.Finite O (⨆ j : {j : Fin d → Fin k // t < ∑ l : Fin d, ρ (j l)}, |
| 382 | range (tensorOrbit O τ j.val) : Submodule O ((Fin d → Fin k) → O))) |
| 383 | |
| 384 | lemma tensorOrbit_apply {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 385 | (j : Fin d → Fin k) (c : Monomials (Fin k × Fin k) d → O) : |
| 386 | tensorOrbit O τ j c = schurMap O τ d c *ᵥ Pi.single j 1 := rfl |
| 387 | |
| 388 | /-- An element `schurMap O τ d c` of the Schur algebra maps a basis tensor `j` of weight |
| 389 | `∑ l, ρ (j l) > t` into `largeWeightSubmodule O τ ρ t d`, which such images generate. -/ |
| 390 | lemma schurMap_mulVec_single_mem_largeWeightSubmodule {k : ℕ} {O : Type} [CommRing O] |
| 391 | (τ : Fin k → ℕ) {d : ℕ} {ρ : Fin k → ℤ} {t : ℤ} {j : Fin d → Fin k} |
| 392 | (hj : t < ∑ l : Fin d, ρ (j l)) (c : Monomials (Fin k × Fin k) d → O) : |
| 393 | schurMap O τ d c *ᵥ Pi.single j 1 ∈ largeWeightSubmodule O τ ρ t d := |
| 394 | mem_iSup_of_mem ⟨j, hj⟩ ⟨c, rfl⟩ |
| 395 | |
| 396 | /-- The entry `(i, j)` of `leviTensor O τ d`, the `d`-th tensor power of the generic block matrix, |
| 397 | is the monomial `∏ l, X (j l, i l)` if `τ (i l) = τ (j l)` for all `l`, and zero otherwise. -/ |
| 398 | lemma leviTensor_apply {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 399 | (i j : Fin d → Fin k) : |
| 400 | leviTensor O τ d i j = monomial (∑ l : Fin d, single (j l, i l) 1) |
| 401 | (∏ l : Fin d, if τ (i l) = τ (j l) then 1 else 0) := by |
| 402 | simp only [leviTensor, leviGeneric, kroneckerPi, of_apply, C_mul_X_eq_monomial, monomial_sum_prod] |
| 403 | |
| 404 | lemma scaledCoeff_apply {k : ℕ} {O : Type} [CommRing O] {d : ℕ} (η : (Fin k × Fin k →₀ ℕ) → O) |
| 405 | (ψ : MvPolynomial (Fin k × Fin k) O) (γ : Monomials (Fin k × Fin k) d) : |
| 406 | scaledCoeff η d ψ γ = ψ.coeff γ.val * η γ.val := rfl |
| 407 | |
| 408 | lemma dualOperator_apply {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 409 | (η : (Fin k × Fin k →₀ ℕ) → O) (ψ : MvPolynomial (Fin k × Fin k) O) : |
| 410 | dualOperator τ η d ψ = schurMap O τ d (scaledCoeff η d ψ) := rfl |
| 411 | |
| 412 | /-- If `α` has a nonzero coefficient in the entry `(i, j)` of the tensor power `leviTensor O τ d` of |
| 413 | the generic block matrix, then the weight of `α` under `w` is `∑ l, w (j l, i l)`. -/ |
| 414 | lemma weight_eq_of_coeff_leviTensor_ne_zero {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) |
| 415 | {d : ℕ} (i j : Fin d → Fin k) (α : Fin k × Fin k →₀ ℕ) (w : Fin k × Fin k → ℤ) |
| 416 | (h_coeff : (leviTensor O τ d i j).coeff α ≠ 0) : |
| 417 | weight w α = ∑ l : Fin d, w (j l, i l) := by |
| 418 | obtain rfl : ∑ l : Fin d, single (j l, i l) 1 = α := by simp_all [leviTensor_apply] |
| 419 | simp [weight] |
| 420 | |
| 421 | lemma isHomogeneous_leviTensor {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 422 | (i j : Fin d → Fin k) : (leviTensor O τ d i j).IsHomogeneous d := by |
| 423 | simpa [leviTensor_apply] using isHomogeneous_monomial _ (by simp) |
| 424 | |
| 425 | /-- Let `T = leviTensor O τ d` be the `d`-th tensor power of the generic block matrix of `τ`, a |
| 426 | matrix of polynomials. The linear map `schurMap O τ d` sends the basis vector at a monomial `γ` of |
| 427 | degree `d` to the matrix of the coefficients of `γ` in the entries of `T`. It sends the vector of |
| 428 | values of a linear form `l` on these monomials to `T` with `l` applied to each entry. -/ |
| 429 | lemma schurMap_apply_monomial {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 430 | (l : Dual O (MvPolynomial (Fin k × Fin k) O)) : |
| 431 | schurMap O τ d (fun γ : Monomials (Fin k × Fin k) d ↦ l (monomial γ.val 1)) = |
| 432 | (leviTensor O τ d).map l := by |
| 433 | ext i j |
| 434 | have h_sum : ∑ γ : Monomials (Fin k × Fin k) d, |
| 435 | (leviTensor O τ d i j).coeff γ.val • monomial γ.val 1 = leviTensor O τ d i j := |
| 436 | sum_monomials_eq_of_isHomogeneous (isHomogeneous_leviTensor τ i j) |
| 437 | rw [Matrix.map_apply, ← h_sum] |
| 438 | simp [Matrix.sum_apply, schurMap, mul_comm] |
| 439 | |
| 440 | /-- Evaluation at `ι ∘ b` goes, in the Schur algebra, to the `d`-th tensor power of the generic |
| 441 | block matrix `leviGeneric W τ` evaluated at `b` and mapped to `O` by `ι`. -/ |
| 442 | lemma schurMap_aeval {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (τ : Fin k → ℕ) (ι : W →+* O) |
| 443 | {d : ℕ} (b : Fin k × Fin k → W) : |
| 444 | schurMap O τ d (fun γ : Monomials (Fin k × Fin k) d ↦ aeval (ι ∘ b) (monomial γ.val (1 : O))) = |
| 445 | kroneckerPi fun _ : Fin d ↦ ((leviGeneric W τ).map (eval b)).map ι := by |
| 446 | refine (schurMap_apply_monomial τ (aeval (ι ∘ b)).toLinearMap).trans ?_ |
| 447 | ext i j |
| 448 | simp [leviTensor, leviGeneric, kroneckerPi, apply_ite ι, apply_ite (eval _)] |
| 449 | |
| 450 | /-- The generic block matrix evaluated at a point `a` of the Levi subgroup is `a`. -/ |
| 451 | lemma leviGeneric_map_eval {k : ℕ} {W : Type} [CommRing W] (τ : Fin k → ℕ) (a : levi W τ) : |
| 452 | (leviGeneric W τ).map (eval (vec (a.val : Matrix (Fin k) (Fin k) W))) = a.val := by |
| 453 | ext i j |
| 454 | by_cases hij : τ i = τ j |
| 455 | · simp [leviGeneric, hij] |
| 456 | · simp [leviGeneric, hij, a.prop i j hij] |
| 457 | |
| 458 | /-- The image in the Schur algebra of a point `a` of the Levi subgroup (`leviMonomialValues` lists |
| 459 | the values of the monomials at `a`) is the `d`-th tensor power of `ι(a)`. -/ |
| 460 | lemma schurMap_leviMonomialValues {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (τ : Fin k → ℕ) |
| 461 | (ι : W →+* O) {d : ℕ} (a : levi W τ) : |
| 462 | schurMap O τ d (leviMonomialValues τ ι d a) = |
| 463 | kroneckerPi fun _ : Fin d ↦ (a.val : Matrix (Fin k) (Fin k) W).map ι := by |
| 464 | rw [← leviGeneric_map_eval τ a] |
| 465 | exact schurMap_aeval τ ι _ |
| 466 | |
| 467 | /-- The element `dualOperator τ η d (monomial α 1)` of the Schur algebra dual to the monomial `α` |
| 468 | has as entries the coefficients of `α` in the entries of the tensor power `leviTensor O τ d` of the |
| 469 | generic block matrix, times `η α`. -/ |
| 470 | lemma dualOperator_monomial {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 471 | (η : (Fin k × Fin k →₀ ℕ) → O) (α : Fin k × Fin k →₀ ℕ) : |
| 472 | dualOperator τ η d (monomial α 1) = (leviTensor O τ d).map (η α • lcoeff O α) := by |
| 473 | rw [← schurMap_apply_monomial, dualOperator_apply] |
| 474 | exact congrArg _ (funext fun γ ↦ by simp +contextual [scaledCoeff_apply, eq_comm]) |
| 475 | |
| 476 | /-- The operator `dualOperator τ η d (monomial α 1)` dual to the monomial `α` kills the basis tensor |
| 477 | `Pi.single j 1` unless the weight `∑ l, ρ (j l)` of `j` equals the weight of `α`. Here the weight of |
| 478 | `α` is `weight (fun v ↦ ρ v.1) α`. -/ |
| 479 | lemma dualOperator_monomial_mulVec_single_eq_zero {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) |
| 480 | {d : ℕ} (η : (Fin k × Fin k →₀ ℕ) → O) (ρ : Fin k → ℤ) {α : Fin k × Fin k →₀ ℕ} |
| 481 | {j : Fin d → Fin k} (h_ne : weight (fun v : Fin k × Fin k ↦ ρ v.1) α ≠ ∑ l : Fin d, ρ (j l)) : |
| 482 | dualOperator τ η d (monomial α 1) *ᵥ Pi.single j 1 = 0 := by |
| 483 | have h_zero (i : Fin d → Fin k) : (leviTensor O τ d i j).coeff α = 0 := |
| 484 | by_contra fun h ↦ h_ne (weight_eq_of_coeff_leviTensor_ne_zero τ i j α _ h) |
| 485 | ext i |
| 486 | simp [dualOperator_monomial, mulVec_single, h_zero] |
| 487 | |
| 488 | /-- The trace of the `d`-th tensor power of the generic block matrix is the `d`-th power of the sum |
| 489 | of the diagonal variables, written here as the linear form with coefficients the matrix `1`. -/ |
| 490 | lemma trace_leviTensor {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} : |
| 491 | (leviTensor O τ d).trace = |
| 492 | (∑ v : Fin k × Fin k, vec (1 : Matrix (Fin k) (Fin k) O) v • X v) ^ d := by |
| 493 | simp [leviTensor, leviGeneric, kroneckerPi, sum_pow', Matrix.trace, Matrix.one_apply, |
| 494 | sum_prod_type] |
| 495 | |
| 496 | /-- The matrix `dualOperator τ η d (monomial α 1)`, indexed by multi-indices `i, j : Fin d → Fin k`, |
| 497 | has the entry `η α` where `α` is the monomial `∏ l, X (j l, i l)` and `τ (i l) = τ (j l)` for all |
| 498 | `l`, and `0` elsewhere. If `α` has degree `d`, its trace is the multinomial coefficient of `α` times |
| 499 | `η α` times the value of the monomial at the matrix `1`. Otherwise it is zero. -/ |
| 500 | lemma trace_dualOperator_monomial {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 501 | (η : (Fin k × Fin k →₀ ℕ) → O) (α : Fin k × Fin k →₀ ℕ) : |
| 502 | (dualOperator τ η d (monomial α 1)).trace = |
| 503 | if degree α = d then evalAtOne (α.multinomial * η α) (monomial α 1) else 0 := by |
| 504 | have h_trace : (dualOperator τ η d (monomial α 1)).trace = |
| 505 | η α * (leviTensor O τ d).trace.coeff α := by |
| 506 | simp [dualOperator_monomial, Matrix.trace, Finset.mul_sum] |
| 507 | have h_coeff : (leviTensor O τ d).trace.coeff α = if degree α = d then |
| 508 | α.multinomial * eval (vec (1 : Matrix (Fin k) (Fin k) O)) (monomial α 1) else 0 := by |
| 509 | -- This is the multinomial theorem. |
| 510 | rw [trace_leviTensor, coeff_linearCombination_X_pow_of_fintype] |
| 511 | simp [eval_monomial, degree_apply, Finsupp.sum] |
| 512 | rw [h_trace, h_coeff, mul_ite, mul_zero, evalAtOne_apply, mul_left_comm, mul_assoc] |
| 513 | |
| 514 | /-- For `a` in the Levi subgroup, the entries `a⁻¹ s j` and `a i t` vanish off the blocks, so on |
| 515 | their product the conditions `τ i = τ j` and `τ t = τ s` agree. -/ |
| 516 | lemma ite_inv_mul_eq_of_mem_levi {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (τ : Fin k → ℕ) |
| 517 | (ι : W →+* O) {a : GL (Fin k) W} (ha : a ∈ levi W τ) (i j s t : Fin k) : |
| 518 | (if τ i = τ j then ι (a⁻¹.val s j) * ι (a.val i t) else 0) = |
| 519 | if τ t = τ s then ι (a⁻¹.val s j) * ι (a.val i t) else 0 := by |
| 520 | have h_inv : τ s ≠ τ j → a⁻¹.val s j = 0 := inv_mem ha s j |
| 521 | have h_val : τ i ≠ τ t → a.val i t = 0 := ha i t |
| 522 | grind |
| 523 | |
| 524 | /-- Let `a ∈ GL_k(W)` lie in the Levi subgroup `levi W τ`. Let `G = leviGeneric O τ` be the matrix |
| 525 | with the variable `X (j, i)` at `(i, j)` if `τ i = τ j` and `0` otherwise. The linear substitution |
| 526 | of the variables (`linSubst`) by the transpose of the Kronecker product of `ι(a⁻¹)ᵀ` and `ι(a)` |
| 527 | takes `G` to `ι(a) * G * ι(a⁻¹)`. -/ |
| 528 | lemma leviGeneric_map_linSubst_transpose {k : ℕ} {W O : Type} [CommRing W] [CommRing O] |
| 529 | (τ : Fin k → ℕ) (ι : W →+* O) {a : GL (Fin k) W} (ha : a ∈ levi W τ) : |
| 530 | (leviGeneric O τ).map (linSubst (a⁻¹.valᵀ.kroneckerMap (fun s t : W ↦ ι s * ι t) a.val)ᵀ) = |
| 531 | (a.val.map ι).map C * leviGeneric O τ * (a⁻¹.val.map ι).map C := by |
| 532 | ext1 i j |
| 533 | calc _ = ∑ s, ∑ t, (if τ i = τ j then ι (a⁻¹.val s j) * ι (a.val i t) else 0) • X (s, t) := by |
| 534 | by_cases hij : τ i = τ j <;> simp [leviGeneric, linSubst, sum_prod_type, hij] |
| 535 | _ = ∑ s, ∑ t, (if τ t = τ s then ι (a⁻¹.val s j) * ι (a.val i t) else 0) • X (s, t) := by |
| 536 | simp only [ite_inv_mul_eq_of_mem_levi τ ι ha i j] |
| 537 | _ = _ := by |
| 538 | simp [leviGeneric, Matrix.mul_apply, Finset.mul_sum, apply_ite, ← C_mul', mul_comm, |
| 539 | mul_left_comm] |
| 540 | |
| 541 | /-- Let `ψ♯ = dualOperator τ η d ψ` be the matrix on `(O ^ k)^{⊗ d}` whose entry at the |
| 542 | multi-indices `(i, j)` is `η α` times the coefficient in `ψ` of `α = ∏ l, X (j l, i l)` if |
| 543 | `τ (i l) = τ (j l)` for all `l`, and `0` otherwise. Assume `IsAdjointWeight η`: the linear |
| 544 | substitutions by a matrix and by its transpose are adjoint for the diagonal form with |
| 545 | `⟨x ^ α, x ^ α⟩ = η α`. Let `a ∈ GL_k(W)` have `a i j = 0` whenever `τ i ≠ τ j`. Then the |
| 546 | substitution `conjSubst ι a : X ↦ ι(a⁻¹) * X * ι(a)` in `ψ` conjugates `ψ♯` by |
| 547 | `schurMap O τ d (leviMonomialValues τ ι d a)`, which is the tensor power `ι(a)^{⊗ d}`. -/ |
| 548 | lemma dualOperator_conjSubst {k : ℕ} {W O : Type} [CommRing W] [CommRing O] (τ : Fin k → ℕ) |
| 549 | (ι : W →+* O) {d : ℕ} {η : (Fin k × Fin k →₀ ℕ) → O} (h_adj : IsAdjointWeight η) |
| 550 | (a : levi W τ) (ψ : MvPolynomial (Fin k × Fin k) O) : |
| 551 | dualOperator τ η d (conjSubst ι a.val ψ) = |
| 552 | schurMap O τ d (leviMonomialValues τ ι d a) * dualOperator τ η d ψ * |
| 553 | schurMap O τ d (leviMonomialValues τ ι d a⁻¹) := by |
| 554 | let P : Matrix (Fin d → Fin k) (Fin d → Fin k) O := schurMap O τ d (leviMonomialValues τ ι d a) |
| 555 | let P' : Matrix (Fin d → Fin k) (Fin d → Fin k) O := schurMap O τ d (leviMonomialValues τ ι d a⁻¹) |
| 556 | -- Both sides are linear in `ψ`, so it is enough to treat a monomial. |
| 557 | suffices h_lin : dualOperator τ η d ∘ₗ conjSubst ι a.val = |
| 558 | mulLeftRight O (P, P') ∘ₗ dualOperator τ η d from LinearMap.congr_fun h_lin ψ |
| 559 | refine linearMap_ext fun α ↦ ext_ring ?_ |
| 560 | let A : Matrix (Fin k × Fin k) (Fin k × Fin k) O := |
| 561 | a.val⁻¹.valᵀ.kroneckerMap (fun s t : W ↦ ι s * ι t) a.val.val |
| 562 | have h_factor : (leviGeneric O τ).map (linSubst Aᵀ) = |
| 563 | (a.val.val.map ι).map C * leviGeneric O τ * (a.val⁻¹.val.map ι).map C := |
| 564 | leviGeneric_map_linSubst_transpose τ ι a.prop |
| 565 | have h_tensor : (leviTensor O τ d).map (linSubst Aᵀ) = P.map C * leviTensor O τ d * P'.map C := |
| 566 | calc _ = kroneckerPi fun _ : Fin d ↦ (leviGeneric O τ).map (linSubst Aᵀ) := |
| 567 | (kroneckerPi_map (fun _ : Fin d ↦ leviGeneric O τ) (linSubst Aᵀ).toRingHom).symm |
| 568 | _ = _ := by |
| 569 | simp only [h_factor, P, P', schurMap_leviMonomialValues, leviTensor, ← kroneckerPi_map, |
| 570 | ← kroneckerPi_mul, InvMemClass.coe_inv] |
| 571 | -- Adjointness moves the substitution, transposed, onto the entries of `leviTensor`. |
| 572 | calc dualOperator τ η d (conjSubst ι a.val (monomial α 1)) |
| 573 | = (leviTensor O τ d).map ((η α • lcoeff O α) ∘ₗ (linSubst Aᵀ).toLinearMap) := by |
| 574 | rw [← schurMap_apply_monomial, dualOperator_apply] |
| 575 | congr 1 |
| 576 | ext γ |
| 577 | rw [scaledCoeff_apply, conjSubst] |
| 578 | exact h_adj A γ α |
| 579 | _ = P * dualOperator τ η d (monomial α 1) * P' := by |
| 580 | rw [dualOperator_monomial, ← map_C_mul_mul_C, ← h_tensor, Matrix.map_map, |
| 581 | LinearMap.coe_comp, AlgHom.coe_toLinearMap] |
| 582 | |
| 583 | /-- The product of two points of the Levi subgroup goes to the product of their images in the |
| 584 | Schur algebra of degree `d`, which are the tensor powers of their images under `ι`. -/ |
| 585 | lemma schurMap_leviMonomialValues_mul {k : ℕ} {W O : Type} [CommRing W] [CommRing O] |
| 586 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (a a' : levi W τ) : |
| 587 | schurMap O τ d (leviMonomialValues τ ι d (a * a')) = |
| 588 | schurMap O τ d (leviMonomialValues τ ι d a) * |
| 589 | schurMap O τ d (leviMonomialValues τ ι d a') := by |
| 590 | simp [schurMap_leviMonomialValues, ← kroneckerPi_mul] |
| 591 | |
| 592 | /-- The images of `a⁻¹` and `a` in the Schur algebra of degree `d` are inverse matrices. -/ |
| 593 | lemma schurMap_leviMonomialValues_inv_mul {k : ℕ} {W O : Type} [CommRing W] [CommRing O] |
| 594 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (a : levi W τ) : |
| 595 | schurMap O τ d (leviMonomialValues τ ι d a⁻¹) * schurMap O τ d (leviMonomialValues τ ι d a) = |
| 596 | 1 := by |
| 597 | simp [← schurMap_leviMonomialValues_mul, schurMap_leviMonomialValues τ ι 1] |
| 598 | |
| 599 | /-- The determinant of the generic block matrix is homogeneous of degree `k`. -/ |
| 600 | lemma isHomogeneous_det_leviGeneric {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) : |
| 601 | (leviGeneric O τ).det.IsHomogeneous k := by |
| 602 | rw [det_apply'] |
| 603 | refine .sum _ _ _ fun π _ ↦ .C_mul ?_ _ |
| 604 | simpa using IsHomogeneous.prod univ (fun i : Fin k ↦ leviGeneric O τ (π i) i) 1 |
| 605 | fun i _ ↦ isHomogeneous_C_mul_X _ (i, π i) |
| 606 | |
| 607 | /-- The points of the Levi subgroup `levi W τ` span the Schur algebra of degree `d`, if the residue |
| 608 | field of `W` is finite with at least `d + k` elements. A submodule `V` is `⊤` as soon as it contains |
| 609 | every `c` with the same `schurMap O τ d` image as some `leviMonomialValues τ ι d a`. -/ |
| 610 | lemma eq_top_of_schurMap_eq_leviMonomialValues {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] |
| 611 | [CommRing O] (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) |
| 612 | (V : Submodule O (Monomials (Fin k × Fin k) d → O)) |
| 613 | (hV : ∀ {c : Monomials (Fin k × Fin k) d → O} (a : levi W τ), |
| 614 | schurMap O τ d c = schurMap O τ d (leviMonomialValues τ ι d a) → c ∈ V) : |
| 615 | V = ⊤ := by |
| 616 | -- The block part of a matrix lies in the Levi subgroup if its determinant is a unit. |
| 617 | have h_unit_one : |
| 618 | IsUnit (eval (vec (1 : Matrix (Fin k) (Fin k) W)) (leviGeneric W τ).det) := by |
| 619 | simp [RingHom.map_det, show (leviGeneric W τ).map (eval (vec 1)) = 1 from |
| 620 | leviGeneric_map_eval τ 1] |
| 621 | refine eq_top_of_eval_monomial ι d (isHomogeneous_det_leviGeneric τ) hW h_unit_one |
| 622 | fun b hb ↦ ?_ |
| 623 | rw [RingHom.map_det, RingHom.mapMatrix_apply] at hb |
| 624 | let g : GL (Fin k) W := GeneralLinearGroup.mk'' ((leviGeneric W τ).map (eval b)) hb |
| 625 | have hg_levi : g ∈ levi W τ := by |
| 626 | intro i j hij |
| 627 | simp [g, leviGeneric, hij] |
| 628 | have h_point : schurMap O τ d (fun γ ↦ aeval (ι ∘ b) (monomial γ.val (1 : O))) = |
| 629 | schurMap O τ d (leviMonomialValues τ ι d ⟨g, hg_levi⟩) := |
| 630 | (schurMap_aeval τ ι b).trans (schurMap_leviMonomialValues τ ι ⟨g, hg_levi⟩).symm |
| 631 | simpa [eval_monomial, aeval_monomial] using hV ⟨g, hg_levi⟩ h_point |
| 632 | |
| 633 | /-- Let `levi W τ` be the group of the `a ∈ GL_k(W)` with `a i j = 0` whenever `τ i ≠ τ j`; the |
| 634 | matrix `schurMap O τ d (leviMonomialValues τ ι d a)` is the tensor power `ι(a)^{⊗ d}`. Let |
| 635 | `U₊ = largeWeightSubmodule O τ ρ t d ⊆ (O ^ k)^{⊗ d}` be generated, under the Schur algebra of this |
| 636 | group, by the basis tensors `j` with `∑ l, ρ (j l) > t`. If the residue field of `W` is finite with |
| 637 | at least `d + k` elements, the images of these tensors under the `ι(a)^{⊗ d}` already span `U₊`: it |
| 638 | lies in every submodule `N` that contains them. -/ |
| 639 | lemma largeWeightSubmodule_le_of_forall_leviMonomialValues {k : ℕ} {W O : Type} [CommRing W] |
| 640 | [IsLocalRing W] [CommRing O] (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} |
| 641 | (hW : d + k ≤ Nat.card (ResidueField W)) {ρ : Fin k → ℤ} {t : ℤ} |
| 642 | {N : Submodule O ((Fin d → Fin k) → O)} |
| 643 | (hN : ∀ (a : levi W τ) (j : Fin d → Fin k), t < ∑ l : Fin d, ρ (j l) → |
| 644 | schurMap O τ d (leviMonomialValues τ ι d a) *ᵥ Pi.single j 1 ∈ N) : |
| 645 | largeWeightSubmodule O τ ρ t d ≤ N := by |
| 646 | refine iSup_le fun ⟨j, hj⟩ ↦ range_le_iff_comap.2 ?_ |
| 647 | refine eq_top_of_schurMap_eq_leviMonomialValues τ ι hW (N.comap (tensorOrbit O τ j)) |
| 648 | fun {c} a hc ↦ ?_ |
| 649 | simpa only [mem_comap, tensorOrbit_apply, hc] using hN a j hj |
| 650 | |
| 651 | /-- The matrices `schurMap O τ d c`, for vectors `c` indexed by the monomials of degree `d` in the |
| 652 | entries of a `k × k` matrix, form the Schur algebra of the Levi subgroup whose blocks are the fibres |
| 653 | of `τ`. The submodule `largeWeightSubmodule O τ ρ t d` of `(O ^ k)^{⊗ d}` is spanned by the images |
| 654 | under these matrices of the basis tensors `j` with `∑ l, ρ (j l) > t`. If the residue field of `W` |
| 655 | is finite with at least `d + k` elements, each of these matrices keeps the submodule. -/ |
| 656 | lemma schurMap_mem_largeWeightSubmodule {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] |
| 657 | [CommRing O] (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) |
| 658 | (ρ : Fin k → ℤ) (t : ℤ) (c : Monomials (Fin k × Fin k) d → O) : |
| 659 | ∀ v ∈ largeWeightSubmodule O τ ρ t d, |
| 660 | (schurMap O τ d c).toLin' v ∈ largeWeightSubmodule O τ ρ t d := by |
| 661 | let U : Submodule O ((Fin d → Fin k) → O) := largeWeightSubmodule O τ ρ t d |
| 662 | -- The vectors `c` whose image in the Schur algebra preserves `U` form a submodule. |
| 663 | let S : Submodule O (Monomials (Fin k × Fin k) d → O) := |
| 664 | (U.compatibleMaps U).comap (toLin'.toLinearMap ∘ₗ schurMap O τ d) |
| 665 | -- By density twice, it is enough to multiply two points of the Levi subgroup. |
| 666 | have h_top : S = ⊤ := by |
| 667 | refine eq_top_of_schurMap_eq_leviMonomialValues τ ι hW S fun {c'} a hc' ↦ ?_ |
| 668 | change U ≤ U.comap (schurMap O τ d c').toLin' |
| 669 | rw [hc'] |
| 670 | refine largeWeightSubmodule_le_of_forall_leviMonomialValues τ ι hW fun a' j hj ↦ ?_ |
| 671 | rw [mem_comap, toLin'_apply, mulVec_mulVec, ← schurMap_leviMonomialValues_mul] |
| 672 | exact schurMap_mulVec_single_mem_largeWeightSubmodule τ hj (leviMonomialValues τ ι d (a * a')) |
| 673 | exact h_top.ge (mem_top (x := c)) |
| 674 | |
| 675 | /-- The action of the Schur algebra on `U₊ = largeWeightSubmodule O τ ρ t d`, the submodule of the |
| 676 | `d`-th tensor power of `O ^ k` that it generates from the basis tensors `j` of weight |
| 677 | `∑ l, ρ (j l) > t`. The vector `c` acts by the restriction of the matrix `schurMap O τ d c`; the |
| 678 | ring map `ι` and the bound `hW` serve only to show that this matrix keeps `U₊`. -/ |
| 679 | noncomputable def largeWeightRep {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 680 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 681 | (t : ℤ) : |
| 682 | (Monomials (Fin k × Fin k) d → O) →ₗ[O] End O (largeWeightSubmodule O τ ρ t d) where |
| 683 | toFun c := (schurMap O τ d c).toLin'.restrict (schurMap_mem_largeWeightSubmodule τ ι hW ρ t c) |
| 684 | map_add' := by simp [LinearMap.ext_iff, restrict_apply] |
| 685 | map_smul' := by simp [LinearMap.ext_iff, restrict_apply] |
| 686 | |
| 687 | lemma coe_largeWeightRep_apply {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 688 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 689 | (t : ℤ) (c : Monomials (Fin k × Fin k) d → O) (v : largeWeightSubmodule O τ ρ t d) : |
| 690 | (largeWeightRep τ ι hW ρ t c v : (Fin d → Fin k) → O) = schurMap O τ d c *ᵥ v.val := |
| 691 | rfl |
| 692 | |
| 693 | end SchurAlgebra |
| 694 | |
| 695 | section Trace |
| 696 | |
| 697 | /-- An endomorphism of a finite free module with values in `J` times the module has its trace in |
| 698 | the ideal `J`. -/ |
| 699 | lemma trace_mem_of_forall_mem_smul_top {O : Type*} [CommSemiring O] {M : Type*} [AddCommMonoid M] |
| 700 | [Module O M] [Free O M] [Module.Finite O M] {J : Ideal O} {f : End O M} |
| 701 | (hf : ∀ v : M, f v ∈ J • (⊤ : Submodule O M)) : trace O M f ∈ J := by |
| 702 | have h_dual (l : Dual O M) : J • (⊤ : Submodule O M) ≤ Submodule.comap l J := |
| 703 | smul_le.2 fun c hc v _ ↦ by simpa using J.mul_mem_right (l v) hc |
| 704 | let b := Free.chooseBasis O M |
| 705 | rw [trace_eq_matrix_trace O b] |
| 706 | exact J.sum_mem fun i _ ↦ by simpa [toMatrix_apply] using h_dual (b.coord i) (hf (b i)) |
| 707 | |
| 708 | /-- The trace on `U₊ = largeWeightSubmodule O τ ρ t d` of the operator `ψ♯ = dualOperator τ η d ψ`, |
| 709 | which keeps `U₊` because it lies in the Schur algebra (`schurMap_mem_largeWeightSubmodule`). -/ |
| 710 | noncomputable def largeWeightTrace {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 711 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 712 | (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) : Dual O (MvPolynomial (Fin k × Fin k) O) := |
| 713 | trace O (largeWeightSubmodule O τ ρ t d) ∘ₗ largeWeightRep τ ι hW ρ t ∘ₗ scaledCoeff η d |
| 714 | |
| 715 | /-- `largeWeightTrace` at `ψ` is the trace on `U₊ = largeWeightSubmodule O τ ρ t d` of the action |
| 716 | (`largeWeightRep`) of the vector `scaledCoeff η d ψ`, whose entries are the coefficients of degree |
| 717 | `d` of `ψ` times the weights `η`. -/ |
| 718 | lemma largeWeightTrace_apply {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 719 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 720 | (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) (ψ : MvPolynomial (Fin k × Fin k) O) : |
| 721 | largeWeightTrace τ ι hW ρ t η ψ = |
| 722 | trace O (largeWeightSubmodule O τ ρ t d) (largeWeightRep τ ι hW ρ t (scaledCoeff η d ψ)) := |
| 723 | rfl |
| 724 | |
| 725 | /-- The part of degree `d` of the average: the trace of `ψ♯ = dualOperator τ η d ψ` on the whole |
| 726 | tensor power `(O ^ k)^{⊗ d}` minus its trace on `U₊ = largeWeightSubmodule O τ ρ t d`. -/ |
| 727 | noncomputable def averagePart {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 728 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 729 | (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) : Dual O (MvPolynomial (Fin k × Fin k) O) := |
| 730 | traceLinearMap (Fin d → Fin k) O O ∘ₗ dualOperator τ η d - largeWeightTrace τ ι hW ρ t η |
| 731 | |
| 732 | lemma averagePart_apply {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 733 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 734 | (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) (ψ : MvPolynomial (Fin k × Fin k) O) : |
| 735 | averagePart τ ι hW ρ t η ψ = (dualOperator τ η d ψ).trace - largeWeightTrace τ ι hW ρ t η ψ := |
| 736 | rfl |
| 737 | |
| 738 | /-- Let the residue field of `W` be finite with at least `d + k` elements, and let the substitutions |
| 739 | by a matrix and by its transpose be adjoint for the diagonal form `⟨x ^ α, x ^ α⟩ = η α` |
| 740 | (`IsAdjointWeight`). Then `averagePart` does not change under the substitution |
| 741 | `conjSubst ι a : X ↦ ι(a⁻¹) * X * ι(a)`, for `a ∈ GL_k(W)` with `a i j = 0` whenever `τ i ≠ τ j`. -/ |
| 742 | lemma averagePart_conjSubst {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 743 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 744 | (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) (h_adj : IsAdjointWeight η) (a : levi W τ) |
| 745 | (ψ : MvPolynomial (Fin k × Fin k) O) : |
| 746 | averagePart τ ι hW ρ t η (conjSubst ι a.val ψ) = averagePart τ ι hW ρ t η ψ := by |
| 747 | -- The point `a` acts by an automorphism on the tensor power and on `U₊`, and both traces are |
| 748 | -- invariant under conjugation by it. |
| 749 | let u : End O (largeWeightSubmodule O τ ρ t d) := |
| 750 | largeWeightRep τ ι hW ρ t (leviMonomialValues τ ι d a) |
| 751 | let u' : End O (largeWeightSubmodule O τ ρ t d) := |
| 752 | largeWeightRep τ ι hW ρ t (leviMonomialValues τ ι d a⁻¹) |
| 753 | have h_conj : largeWeightRep τ ι hW ρ t (scaledCoeff η d (conjSubst ι a.val ψ)) = |
| 754 | u * largeWeightRep τ ι hW ρ t (scaledCoeff η d ψ) * u' := by |
| 755 | ext1 v |
| 756 | simp [Subtype.ext_iff, u, u', coe_largeWeightRep_apply, ← dualOperator_apply, |
| 757 | dualOperator_conjSubst τ ι h_adj, mul_assoc] |
| 758 | have h_inv : u' * u = 1 := by |
| 759 | ext1 v |
| 760 | simp [Subtype.ext_iff, u, u', coe_largeWeightRep_apply, schurMap_leviMonomialValues_inv_mul] |
| 761 | have h_whole : (dualOperator τ η d (conjSubst ι a.val ψ)).trace = |
| 762 | (dualOperator τ η d ψ).trace := by |
| 763 | rw [dualOperator_conjSubst τ ι h_adj, Matrix.trace_mul_cycle, |
| 764 | schurMap_leviMonomialValues_inv_mul, one_mul] |
| 765 | rw [averagePart_apply, averagePart_apply, h_whole, largeWeightTrace_apply, largeWeightTrace_apply, |
| 766 | h_conj, LinearMap.trace_mul_cycle, h_inv, one_mul] |
| 767 | |
| 768 | /-- If the row weight `∑ α (r, s) • ρ r` of the monomial `α` exceeds `t`, then the operator |
| 769 | `dualOperator τ η d (monomial α 1)` dual to `α` maps the whole `d`-th tensor power of `O ^ k` into |
| 770 | `largeWeightSubmodule O τ ρ t d`. -/ |
| 771 | lemma range_dualOperator_monomial_le {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 772 | (ρ : Fin k → ℤ) (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) {α : Fin k × Fin k →₀ ℕ} |
| 773 | (hα : t < weight (fun v : Fin k × Fin k ↦ ρ v.1) α) : |
| 774 | (dualOperator τ η d (monomial α 1)).toLin'.range ≤ largeWeightSubmodule O τ ρ t d := by |
| 775 | rw [range_toLin', span_le] |
| 776 | rintro _ ⟨j, rfl⟩ |
| 777 | rw [← mulVec_single_one] |
| 778 | by_cases hj : t < ∑ l : Fin d, ρ (j l) |
| 779 | · exact schurMap_mulVec_single_mem_largeWeightSubmodule τ hj _ |
| 780 | · rw [dualOperator_monomial_mulVec_single_eq_zero τ η ρ ((not_lt.1 hj).trans_lt hα).ne'] |
| 781 | exact zero_mem _ |
| 782 | |
| 783 | /-- Let `ψ♯ = dualOperator τ η d ψ` be the matrix on `U = (O ^ k)^{⊗ d}` whose entry at `(i, j)` is |
| 784 | `η α` times the coefficient in `ψ` of `α = ∏ l, X (j l, i l)` if `τ (i l) = τ (j l)` for all `l`, |
| 785 | and `0` otherwise. Let `U₊ = largeWeightSubmodule O τ ρ t d ⊆ U` be generated under the Schur |
| 786 | algebra by the basis tensors `j` of weight `∑ l, ρ (j l) > t`. If the coefficients in `ψ` of the |
| 787 | monomials `α` of row weight `∑ α (r, s) • ρ r > t` lie in the ideal `J`, then `ψ♯` maps every basis |
| 788 | tensor of weight `> t` into `J U₊`. -/ |
| 789 | lemma dualOperator_mulVec_single_mem_smul {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 790 | (ρ : Fin k → ℤ) (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) {J : Ideal O} |
| 791 | {ψ : MvPolynomial (Fin k × Fin k) O} |
| 792 | (hψ : ∀ α : Fin k × Fin k →₀ ℕ, t < weight (fun v : Fin k × Fin k ↦ ρ v.1) α → ψ.coeff α ∈ J) |
| 793 | {j : Fin d → Fin k} (hj : t < ∑ l : Fin d, ρ (j l)) : |
| 794 | dualOperator τ η d ψ *ᵥ Pi.single j 1 ∈ J • largeWeightSubmodule O τ ρ t d := by |
| 795 | have h_expand : dualOperator τ η d ψ *ᵥ Pi.single j 1 = |
| 796 | ∑ α ∈ ψ.support, ψ.coeff α • dualOperator τ η d (monomial α 1) *ᵥ Pi.single j 1 := by |
| 797 | conv_lhs => rw [ψ.as_sum, map_sum, sum_mulVec] |
| 798 | simp only [← smul_mulVec, ← map_smul, smul_eq_mul, mul_one] |
| 799 | rw [h_expand] |
| 800 | refine sum_mem fun α _ ↦ ?_ |
| 801 | by_cases hα : t < weight (fun v : Fin k × Fin k ↦ ρ v.1) α |
| 802 | · exact smul_mem_smul (hψ α hα) (schurMap_mulVec_single_mem_largeWeightSubmodule τ hj _) |
| 803 | · rw [dualOperator_monomial_mulVec_single_eq_zero τ η ρ ((not_lt.1 hα).trans_lt hj).ne, smul_zero] |
| 804 | exact zero_mem _ |
| 805 | |
| 806 | /-- Let `ψ♯ = dualOperator τ η d ψ` be the matrix on `U = (O ^ k)^{⊗ d}` whose entry at `(i, j)` is |
| 807 | `η α` times the coefficient in `ψ` of `α = ∏ l, X (j l, i l)` if `τ (i l) = τ (j l)` for all `l`, |
| 808 | and `0` otherwise. Let `U₊ = largeWeightSubmodule O τ ρ t d ⊆ U` be generated under the Schur |
| 809 | algebra by the basis tensors `j` with `∑ l, ρ (j l) > t`. Let the residue field of `W` be finite |
| 810 | with at least `d + k` elements, and let the substitutions by a matrix and by its transpose be |
| 811 | adjoint for the diagonal form `⟨x ^ α, x ^ α⟩ = η α` (`IsAdjointWeight`). Suppose that in all |
| 812 | conjugates `conjSubst ι a ψ = ψ(ι(a⁻¹) * X * ι(a))`, for `a ∈ GL_k(W)` with `a i j = 0` whenever |
| 813 | `τ i ≠ τ j`, the monomials `α` of row weight `∑ α (r, s) • ρ r > t` have their coefficients in the |
| 814 | ideal `J`. Then `ψ♯` maps `U₊` into `J U₊`. -/ |
| 815 | lemma dualOperator_mulVec_mem_smul {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 816 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 817 | (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) (h_adj : IsAdjointWeight η) {J : Ideal O} |
| 818 | {ψ : MvPolynomial (Fin k × Fin k) O} |
| 819 | (hψ : ∀ a ∈ levi W τ, ∀ α : Fin k × Fin k →₀ ℕ, |
| 820 | t < weight (fun v : Fin k × Fin k ↦ ρ v.1) α → (conjSubst ι a ψ).coeff α ∈ J) : |
| 821 | ∀ v ∈ largeWeightSubmodule O τ ρ t d, |
| 822 | dualOperator τ η d ψ *ᵥ v ∈ J • largeWeightSubmodule O τ ρ t d := by |
| 823 | let U : Submodule O ((Fin d → Fin k) → O) := largeWeightSubmodule O τ ρ t d |
| 824 | -- By density it is enough to treat the image of a basis tensor `j` of large weight under a point |
| 825 | -- `a` of the Levi subgroup. |
| 826 | suffices h_le : U ≤ (J • U).comap (dualOperator τ η d ψ).toLin' from fun v hv ↦ h_le hv |
| 827 | refine largeWeightSubmodule_le_of_forall_leviMonomialValues τ ι hW fun a j hj ↦ ?_ |
| 828 | let P : Matrix (Fin d → Fin k) (Fin d → Fin k) O := schurMap O τ d (leviMonomialValues τ ι d a) |
| 829 | -- `dualOperator τ η d ψ * P = P * dualOperator τ η d φ` for the conjugate `φ` of `ψ` by `a⁻¹`, |
| 830 | -- and `a` keeps `J U₊`. |
| 831 | have h_move : dualOperator τ η d ψ * P = P * dualOperator τ η d (conjSubst ι (a⁻¹).val ψ) := by |
| 832 | rw [dualOperator_conjSubst τ ι h_adj, inv_inv, ← mul_assoc, ← mul_assoc, |
| 833 | mul_eq_one_comm.1 (schurMap_leviMonomialValues_inv_mul τ ι a), one_mul] |
| 834 | have h_stable : (J • U).map P.toLin' ≤ J • U := by |
| 835 | rw [map_smul''] |
| 836 | exact smul_mono_right J (map_le_iff_le_comap.2 (schurMap_mem_largeWeightSubmodule τ ι hW ρ t _)) |
| 837 | rw [mem_comap, toLin'_apply, mulVec_mulVec, h_move, ← mulVec_mulVec] |
| 838 | exact h_stable (mem_map_of_mem |
| 839 | (dualOperator_mulVec_single_mem_smul τ ρ t η (hψ (a⁻¹).val (a⁻¹).prop) hj)) |
| 840 | |
| 841 | /-- Let `O` be a valuation domain. The submodule `largeWeightSubmodule O τ ρ t d` of the `d`-th |
| 842 | tensor power of `O ^ k`, generated under the Schur algebra by the basis tensors `j` of weight |
| 843 | `∑ l, ρ (j l) > t`, is finitely generated and torsion-free, hence free. -/ |
| 844 | lemma free_largeWeightSubmodule {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) {d : ℕ} |
| 845 | [IsDomain O] [ValuationRing O] (ρ : Fin k → ℤ) (t : ℤ) : |
| 846 | Free O (largeWeightSubmodule O τ ρ t d) := |
| 847 | have : Flat O (largeWeightSubmodule O τ ρ t d) := |
| 848 | Flat.flat_iff_torsion_eq_bot_of_isBezout.2 (isTorsionFree_iff_torsion_eq_bot.1 inferInstance) |
| 849 | free_of_flat_of_isLocalRing |
| 850 | |
| 851 | /-- Let `ψ♯ = dualOperator τ η d ψ` be the matrix on `U = (O ^ k)^{⊗ d}` whose entry at `(i, j)` is |
| 852 | `η α` times the coefficient in `ψ` of `α = ∏ l, X (j l, i l)` if `τ (i l) = τ (j l)` for all `l`, |
| 853 | and `0` otherwise. Let `U₊ ⊆ U` be generated under the Schur algebra by the basis tensors `j` with |
| 854 | `∑ l, ρ (j l) > t`; `averagePart` sends `ψ` to the trace of `ψ♯` on `U` minus its trace on `U₊`. |
| 855 | Let `O` be a valuation domain and let the residue field of `W` be finite with at least `d + k` |
| 856 | elements. Then `averagePart` vanishes on a monomial `α` of row weight `∑ α (r, s) • ρ r > t`, |
| 857 | because `α♯` has its image in `U₊`. -/ |
| 858 | lemma averagePart_monomial_eq_zero_of_lt {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] |
| 859 | [CommRing O] (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) |
| 860 | (ρ : Fin k → ℤ) (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) [IsDomain O] [ValuationRing O] |
| 861 | {α : Fin k × Fin k →₀ ℕ} (hα : t < weight (fun v : Fin k × Fin k ↦ ρ v.1) α) : |
| 862 | averagePart τ ι hW ρ t η (monomial α 1) = 0 := by |
| 863 | let U : Submodule O ((Fin d → Fin k) → O) := largeWeightSubmodule O τ ρ t d |
| 864 | have : Free O U := free_largeWeightSubmodule τ ρ t |
| 865 | have h_mem (v : (Fin d → Fin k) → O) : (dualOperator τ η d (monomial α 1)).toLin' v ∈ U := |
| 866 | range_dualOperator_monomial_le τ ρ t η hα (LinearMap.mem_range_self _ v) |
| 867 | let f : ((Fin d → Fin k) → O) →ₗ[O] U := |
| 868 | (dualOperator τ η d (monomial α 1)).toLin'.codRestrict U h_mem |
| 869 | have h_restrict : largeWeightRep τ ι hW ρ t (scaledCoeff η d (monomial α 1)) = f ∘ₗ U.subtype := |
| 870 | LinearMap.ext fun v ↦ Subtype.ext (coe_largeWeightRep_apply τ ι hW ρ t _ v) |
| 871 | rw [averagePart_apply, sub_eq_zero, eq_comm] |
| 872 | calc largeWeightTrace τ ι hW ρ t η (monomial α 1) = trace O U (f ∘ₗ U.subtype) := by |
| 873 | rw [largeWeightTrace_apply, h_restrict] |
| 874 | _ = trace O ((Fin d → Fin k) → O) (U.subtype ∘ₗ f) := trace_comp_comm' U.subtype f |
| 875 | _ = (dualOperator τ η d (monomial α 1)).trace := by |
| 876 | rw [subtype_comp_codRestrict, trace_toLin'_eq] |
| 877 | |
| 878 | /-- Let `ψ♯` be the matrix on `U = (O ^ k)^{⊗ d}` whose entry at `(i, j)` is `η α` times the |
| 879 | coefficient in `ψ` of `α = ∏ l, X (j l, i l)` if `τ (i l) = τ (j l)` for all `l`, and `0` otherwise. |
| 880 | Let `U₊ ⊆ U` be generated under the Schur algebra by the basis tensors `j` with `∑ l, ρ (j l) > t`. |
| 881 | Let the residue field of `W` be finite with at least `d + k` elements; then `ψ♯` keeps `U₊`, and |
| 882 | `largeWeightTrace` sends `ψ` to its trace there. Let `O` be a valuation domain, and let the |
| 883 | substitutions by a matrix and by its transpose be adjoint for the diagonal form |
| 884 | `⟨x ^ α, x ^ α⟩ = η α` (`IsAdjointWeight`). Suppose that in all conjugates |
| 885 | `conjSubst ι a ψ = ψ(ι(a⁻¹) * X * ι(a))`, for `a ∈ GL_k(W)` with `a i j = 0` whenever `τ i ≠ τ j`, |
| 886 | the monomials `α` of row weight `∑ α (r, s) • ρ r > t` have their coefficients in the ideal `J`. |
| 887 | Then this trace lies in `J`. -/ |
| 888 | lemma largeWeightTrace_mem {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 889 | (τ : Fin k → ℕ) (ι : W →+* O) {d : ℕ} (hW : d + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) |
| 890 | (t : ℤ) (η : (Fin k × Fin k →₀ ℕ) → O) [IsDomain O] [ValuationRing O] |
| 891 | (h_adj : IsAdjointWeight η) {J : Ideal O} {ψ : MvPolynomial (Fin k × Fin k) O} |
| 892 | (hψ : ∀ a ∈ levi W τ, ∀ α : Fin k × Fin k →₀ ℕ, |
| 893 | t < weight (fun v : Fin k × Fin k ↦ ρ v.1) α → (conjSubst ι a ψ).coeff α ∈ J) : |
| 894 | largeWeightTrace τ ι hW ρ t η ψ ∈ J := by |
| 895 | have : Free O (largeWeightSubmodule O τ ρ t d) := free_largeWeightSubmodule τ ρ t |
| 896 | refine trace_mem_of_forall_mem_smul_top fun v ↦ (mem_smul_top_iff ..).2 ?_ |
| 897 | exact dualOperator_mulVec_mem_smul τ ι hW ρ t η h_adj hψ v.val v.prop |
| 898 | |
| 899 | end Trace |
| 900 | |
| 901 | /-- The matrix `dualOperator τ η d ψ` on `(O ^ k)^{⊗ d}` has at `(i, j)` the entry `η α` times the |
| 902 | coefficient in `ψ` of `α = ∏ l, X (j l, i l)` if `τ (i l) = τ (j l)` for all `l`, and `0` otherwise. |
| 903 | If `c = multinomial α * η α` for all monomials `α` of degree at most `D` and `ψ` has degree at most |
| 904 | `D`, then the traces of these matrices for `d ≤ D` add up to `evalAtOne c ψ`, which is `c` times the |
| 905 | value of `ψ` at the matrix `1`. -/ |
| 906 | lemma sum_trace_dualOperator {k : ℕ} {O : Type} [CommRing O] (τ : Fin k → ℕ) |
| 907 | {η : (Fin k × Fin k →₀ ℕ) → O} {c : O} {D : ℕ} |
| 908 | (hc : ∀ α : Fin k × Fin k →₀ ℕ, degree α ≤ D → c = α.multinomial * η α) |
| 909 | {ψ : MvPolynomial (Fin k × Fin k) O} (h_deg : ψ.totalDegree ≤ D) : |
| 910 | ∑ d : Fin (D + 1), (dualOperator τ η d ψ).trace = evalAtOne c ψ := by |
| 911 | have h_monomial (α : Fin k × Fin k →₀ ℕ) (hα : degree α ≤ D) : ∑ d : Fin (D + 1), |
| 912 | (dualOperator τ η d (monomial α 1)).trace = evalAtOne c (monomial α 1) := by |
| 913 | rw [Fin.sum_univ_eq_sum_range fun d ↦ (dualOperator τ η d (monomial α 1)).trace] |
| 914 | simp [trace_dualOperator_monomial, hc α hα, hα] |
| 915 | have h_expand : ψ = ∑ α ∈ ψ.support, ψ.coeff α • monomial α 1 := by simp [smul_monomial] |
| 916 | rw [h_expand] |
| 917 | simp only [map_sum, map_smul, trace_sum, trace_smul, sum_comm (s := univ), ← Finset.smul_sum] |
| 918 | exact sum_congr rfl fun α hα ↦ by rw [h_monomial α ((le_totalDegree hα).trans h_deg)] |
| 919 | |
| 920 | /-- Let `O` be a valuation domain of characteristic `0` in which the prime `p` is not a unit, let |
| 921 | `ι : W → O` be a ring map from a local ring whose residue field is finite with at least `D + k` |
| 922 | elements, and let `D < p ^ f`. The matrices `a ∈ GL_k(W)` with `a i j = 0` whenever `τ i ≠ τ j` act |
| 923 | on polynomials in the entries of a `k × k` matrix `X` by the conjugation `X ↦ ι(a⁻¹) * X * ι(a)`. |
| 924 | For all weights `ρ` of the indices and every threshold `t` there is a linear form `I` on these |
| 925 | polynomials that is invariant under conjugation, vanishes on the monomials `α` of row weight |
| 926 | `∑ α (i, j) • ρ i > t`, and agrees modulo an ideal `J` with `p ^ (k² f) ψ(1)` on every `ψ` of degree |
| 927 | at most `D` whose conjugates have the coefficients of such monomials in `J` (`IsAverage`). -/ |
| 928 | theorem exists_isAverage {k : ℕ} {W O : Type} [CommRing W] [IsLocalRing W] [CommRing O] |
| 929 | (τ : Fin k → ℕ) (ι : W →+* O) [IsDomain O] [CharZero O] [ValuationRing O] {p : ℕ} |
| 930 | (hp_prime : p.Prime) (hp : ¬IsUnit (p : O)) (f : ℕ) {D : ℕ} (hD : D < p ^ f) |
| 931 | (hW : D + k ≤ Nat.card (ResidueField W)) (ρ : Fin k → ℤ) (t : ℤ) : |
| 932 | ∃ I : Dual O (MvPolynomial (Fin k × Fin k) O), |
| 933 | IsAverage τ ι ρ t ((p : O) ^ (k ^ 2 * f)) D I := by |
| 934 | -- `I` is the sum of the parts of degree `d ≤ D`, for the weights |
| 935 | -- `η γ = p ^ (k² f) / multinomial γ`. |
| 936 | obtain ⟨η, hη_mul, hη_adj : IsAdjointWeight η⟩ := |
| 937 | exists_isAdjointWeight (Fin k × Fin k) hp_prime hp f |
| 938 | have h_const (α : Fin k × Fin k →₀ ℕ) (hα : degree α ≤ D) : |
| 939 | (p : O) ^ (k ^ 2 * f) = α.multinomial * η α := by |
| 940 | simpa [sq] using hη_mul α (hα.trans_lt hD) |
| 941 | have h_card (d : Fin (D + 1)) : d + k ≤ Nat.card (ResidueField W) := by lia |
| 942 | refine ⟨∑ d : Fin (D + 1), averagePart τ ι (h_card d) ρ t η, fun a ha ψ ↦ ?_, fun α hα ↦ ?_, |
| 943 | fun J ψ h_deg hψ ↦ ?_⟩ |
| 944 | · simp [averagePart_conjSubst τ ι _ ρ t η hη_adj ⟨a, ha⟩] |
| 945 | · simp [averagePart_monomial_eq_zero_of_lt τ ι _ ρ t η hα] |
| 946 | · have h_diff : (∑ d : Fin (D + 1), averagePart τ ι (h_card d) ρ t η) ψ - |
| 947 | evalAtOne ((p : O) ^ (k ^ 2 * f)) ψ = |
| 948 | -∑ d : Fin (D + 1), largeWeightTrace τ ι (h_card d) ρ t η ψ := by |
| 949 | simp [averagePart_apply, sum_trace_dualOperator τ h_const h_deg] |
| 950 | rw [h_diff] |
| 951 | exact neg_mem (sum_mem fun d _ ↦ largeWeightTrace_mem τ ι (h_card d) ρ t η hη_adj hψ) |
| 952 | |
| 953 | end New.Average |