Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | import Mathlib.Algebra.Order.Star.Int |
| 4 | import Mathlib.LinearAlgebra.Matrix.FiniteDimensional |
| 5 | import Mathlib.RingTheory.PicardGroup |
| 6 | import Mathlib.Topology.Algebra.Group.Matrix |
| 7 | import TauCeti.Topology.Algebra.Group.Units |
| 8 | import TauCeti.Topology.Instances.Matrix |
| 9 | public import Lib.Adelic.Unitary.Defs |
| 10 | public import Lib.DiscreteSeries.FlenstedJensen.Defs |
| 11 | public import Lib.GLn.SchurModule.SchurMatrix |
| 12 | import Lib.Adelic.Witt.WittTheorem |
| 13 | import Lib.DiscreteSeries.FlenstedJensen.CasimirEigenfunction |
| 14 | import Lib.DiscreteSeries.FlenstedJensen.PsiKTypes |
| 15 | import Lib.DiscreteSeries.Haar.TotalMass |
| 16 | import Lib.GLn.SchurModule.GramMatrix |
| 17 | import Lib.GLn.SchurModule.WeylKernel |
| 18 | import Lib.General.LinearAlgebra.MinorProducts |
| 19 | |
| 20 | /-! |
| 21 | # Algebraic representations of GL(n) on unitary groups: Schur orthogonality |
| 22 | |
| 23 | A weight `(κ, e)` consists of the numbers `κ τ h` of columns of height `h` and an exponent `e τ` of |
| 24 | the determinant. Only the heights below `card n` enter the index type `New.WeylIndex n κ` and, for |
| 25 | square matrices, `New.schur`. `New.weylRep κ e g` is `∏ τ, det (g τ) ^ e τ` times `schur κ g`. These |
| 26 | representations are restricted to products of unitary groups `U(s)^Φ`. The file defines the |
| 27 | hermitian Gram form, which is invariant when all signs are `1` (`New.gramForm_conjWeylRep`, in |
| 28 | `Lib.GLn.SchurModule.SchurNorm`), and the highest vectors. |
| 29 | |
| 30 | ## Main definitions and results |
| 31 | |
| 32 | * `New.conjWeylMatrix`, `New.conjWeylRep`: the conjugate action of weight `(κ, e)`, as matrices and |
| 33 | as a representation: `g` acts by `New.weylRep κ e` at the entrywise complex conjugate of `g`. |
| 34 | `New.Space.weightRep` restricts this action to the rational points of a unitary group. |
| 35 | * `New.gramForm`: the hermitian form `ξ* G η` of the Gram matrix `G = weylGramOver`. |
| 36 | * `New.decreasingPosition`, `New.highestVector`: the order that a vector `l` puts on the rows, and |
| 37 | the evaluation vector at the frame of that order. |
| 38 | * `New.weylRep_coeff_eq_prod_weightMinors`: the matrix coefficient of `New.weylRep κ e` at a highest |
| 39 | vector is a product of the functions `New.weightMinors`, products of principal minors. |
| 40 | * `New.schur_orthogonality`: Schur's orthogonality relations on the compact group U(n)^Φ. |
| 41 | |
| 42 | Notions from other files: |
| 43 | * `New.schur`: The Schur matrix S_κ(z) of matrices z_τ of size n'_τ×n_τ. Row i holds chosen |
| 44 | coordinates of b'_i(zy) in the family b_j(y)·∏_τ det(y_τ)^{d_τ}. Here b'_i and b_j are the |
| 45 | standard basis polynomials in the rows n' and n, and d is given by `New.schurDetExp`. |
| 46 | * `New.WeylIndex`: The type of families of chosen standard fillings over the places, in the case |
| 47 | where the row type is the same finite type n at every place, that is |
| 48 | `WeylIndexFamily (fun _ ↦ n) κ`; `WeylIndexFamily` allows a row type n_τ at each place τ. |
| 49 | * `New.nablaBasis`: For a family i of chosen standard fillings, the polynomial b_i, the product over |
| 50 | the places τ of the minor products of the fillings i_τ. |
| 51 | * `New.weylEval`: For an array y, the vector of the values b_i(y). |
| 52 | * `New.weightMinors`: For a matrix `g` and integer weights `l`, the product over integers `t` of the |
| 53 | principal minor of `g` on `{i | t ≤ l i}`, each factor with `t ≤ 0` divided by `det g`. |
| 54 | |
| 55 | ## Relation to the literature |
| 56 | |
| 57 | Known; see `Lib.GLn.SchurModule.SchurNorm` and `Lib.GLn.SchurModule.MinorBasis` for sources. |
| 58 | -/ |
| 59 | |
| 60 | @[expose] public section |
| 61 | |
| 62 | noncomputable section |
| 63 | |
| 64 | /-! |
| 65 | ## The conjugate representation, Gram form and highest vector |
| 66 | |
| 67 | * `New.hcParameter`, `New.IsHCParam`: twice the Harish-Chandra parameter of a weight. |
| 68 | * `New.Exchange.schur_eq_one`: the Schur matrix when all columns have full height. |
| 69 | -/ |
| 70 | |
| 71 | section CompactRep |
| 72 | |
| 73 | open Matrix Finset Fintype |
| 74 | |
| 75 | namespace New |
| 76 | |
| 77 | variable {Φ n : Type} [Fintype Φ] [DecidableEq Φ] [Fintype n] [DecidableEq n] |
| 78 | {R : Type} [CommRing R] (κ : Φ → ℕ → ℕ) (e : Φ → ℤ) (l : Φ → n → ℤ) {s : n → ℤˣ} |
| 79 | |
| 80 | /-- The matrix representation of the product over places of the unitary groups of the diagonal |
| 81 | form of signs s: g acts by `New.weylRep` at the entrywise complex conjugate of g. -/ |
| 82 | abbrev conjWeylMatrix : |
| 83 | (Φ → USign s) →* Matrix (WeylIndexFamily (fun _ ↦ n) κ) (WeylIndexFamily (fun _ ↦ n) κ) ℂ := |
| 84 | (weylRep κ e).comp |
| 85 | (MonoidHom.pi |
| 86 | ((GeneralLinearGroup.map (starRingEnd ℂ)).comp <| |
| 87 | (USign s).subtype.comp <| Pi.evalMonoidHom _ ·)) |
| 88 | |
| 89 | /-- The complex linear representation of the product over places of the unitary groups of signs |
| 90 | s on coordinate vectors of weight κ, acting by the matrices `New.conjWeylMatrix`. -/ |
| 91 | def conjWeylRep : Representation ℂ (Φ → USign s) (WeylIndex n κ → ℂ) := |
| 92 | toLinAlgEquiv'.toMonoidHom.comp (conjWeylMatrix κ e) |
| 93 | |
| 94 | /-- The representation `New.conjWeylRep` acts on a coordinate vector as multiplication by the matrix |
| 95 | `New.conjWeylMatrix`. -/ |
| 96 | lemma conjWeylRep_apply (x : Φ → USign s) (v : WeylIndex n κ → ℂ) : |
| 97 | conjWeylRep κ e x v = conjWeylMatrix κ e x *ᵥ v := |
| 98 | rfl |
| 99 | |
| 100 | open NumberField Space in |
| 101 | /-- The representation of the rational unitary group U(J)(E) on coordinate vectors of weight |
| 102 | (κ, e), through its components at the infinite places and `New.conjWeylRep`. A component acts |
| 103 | through its entrywise conjugate, which for signs all 1 is its inverse transpose. -/ |
| 104 | @[simps! -isSimp apply] |
| 105 | def Space.weightRep {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 106 | (κ : InfinitePlace E → ℕ → ℕ) (e : InfinitePlace E → ℤ) {s : n → ℤˣ} |
| 107 | (V : Space E n s) : Representation ℂ (U V.J) (WeylIndex n κ → ℂ) := |
| 108 | (conjWeylRep κ e).comp ((MonoidHom.fst (InfinitePlace E → USign s) (Gf E n)).comp V.ratEmbed) |
| 109 | |
| 110 | /-! ### Highest vector and Harish-Chandra parameter -/ |
| 111 | |
| 112 | /-- For an integer vector l and an index i, the number of indices j with l_j > l_i. -/ |
| 113 | def decreasingPosition (l : n → ℤ) (i : n) : ℕ := #{j : n | l i < l j} |
| 114 | |
| 115 | /-- The complex evaluation vector of weight κ at the array with entry 1 in row a of block w |
| 116 | exactly in column #{j : l_w(j) > l_w(a)}, and 0 elsewhere. -/ |
| 117 | def highestVector : WeylIndex n κ → ℂ := weylEval _ κ |
| 118 | (permArray fun τ i ↦ decreasingPosition (l τ) i) |
| 119 | |
| 120 | /-- The integer 2μ_p + N − 1 − 2p, entry p (counted from 0) of twice the Harish-Chandra parameter |
| 121 | μ + ρ in rank N, where μ_p = e_w + Σ_{p<h<N} κ_w(h) is the highest weight at the place w; the sum is |
| 122 | `diagramWeight (fun _ ↦ N) κ (w, p)`. -/ |
| 123 | def hcParameter (N : ℕ) (w : Φ) (p : ℕ) : ℤ := |
| 124 | 2 * (e w + diagramWeight (fun _ ↦ N) κ (w, p)) + N - 1 - 2 * p |
| 125 | |
| 126 | /-- `l` lists twice the Harish-Chandra parameter of the weight `(κ, e)`, in some order: at each |
| 127 | place `w` the numbers `l w i` are distinct, and each of them is `hcParameter κ e (card n) w p` for |
| 128 | some position `p < card n`. As `hcParameter` is strictly decreasing in `p`, the position of `i` is |
| 129 | necessarily `decreasingPosition (l w) i`, the number of `j` with `l w i < l w j`. -/ |
| 130 | def IsHCParam : Prop := |
| 131 | ∀ w : Φ, |
| 132 | (l w).Injective ∧ ∀ i : n, ∃ p < Fintype.card n, l w i = hcParameter κ e (Fintype.card n) w p |
| 133 | |
| 134 | omit [DecidableEq n] in |
| 135 | /-- A bijection with `Fin k` that numbers the entries of `l` in decreasing order gives their |
| 136 | decreasing positions. The entries strictly above `l i` correspond to the positions before `e i`. -/ |
| 137 | lemma decreasingPosition_eq_of_bijective {l : n → ℤ} {k : ℕ} {e : n → Fin k} |
| 138 | (he : e.Bijective) (h_order : ∀ i j, l i < l j ↔ e j < e i) (i : n) : |
| 139 | decreasingPosition l i = e i := by |
| 140 | classical |
| 141 | rw [decreasingPosition, ← Fin.card_Iio (e i)] |
| 142 | exact card_bijective e he (by simp [h_order]) |
| 143 | |
| 144 | variable {κ} |
| 145 | |
| 146 | /-- The sesquilinear form (ξ,η) ↦ ξ* G η on complex coordinate vectors of weight κ, conjugate |
| 147 | linear in ξ, with G the integer Gram matrix. -/ |
| 148 | def gramForm : (WeylIndex n κ → ℂ) →ₗ⋆[ℂ] (WeylIndex n κ → ℂ) →ₗ[ℂ] ℂ := |
| 149 | (dotProductBilin ℂ ℂ).compl₂ weylGramOver.mulVecLin ∘ₛₗ (starLinearEquiv ℂ).toLinearMap |
| 150 | |
| 151 | omit [DecidableEq n] in |
| 152 | /-- The Gram form at `ξ` and `η` is `ξ* G η` for the Gram matrix `G = weylGramOver`. -/ |
| 153 | lemma gramForm_apply (ξ η : WeylIndex n κ → ℂ) : gramForm ξ η = star ξ ⬝ᵥ weylGramOver *ᵥ η := rfl |
| 154 | |
| 155 | omit [DecidableEq Φ] [DecidableEq n] in |
| 156 | /-- If all columns of `κ` have height `card n` (`κ τ k = 0` for `k ≠ card n`), every basis |
| 157 | polynomial `nablaBasis R _ κ j` is the empty product `1`. -/ |
| 158 | lemma Exchange.nablaBasis_eq_one (hκ : ∀ τ : Φ, ∀ k ≠ Fintype.card n, κ τ k = 0) |
| 159 | (j : WeylIndexFamily (fun _ : Φ ↦ n) κ) : |
| 160 | nablaBasis R (fun _ : Φ ↦ n) κ j = 1 := by |
| 161 | -- There is no column of height `h < card n`, so all the products of minors are empty. |
| 162 | have no_column (τ : Φ) (h : Fin (card n)) : IsEmpty (Fin (κ τ h)) := by |
| 163 | rw [hκ τ h h.isLt.ne] |
| 164 | infer_instance |
| 165 | simp [nablaBasis, tableauPoly, univ_eq_empty] |
| 166 | |
| 167 | /-- If all columns of `κ` have height `card n` (`κ τ k = 0` for `k ≠ card n`), the Schur matrix of |
| 168 | every tuple `z` of square matrices is the `1 × 1` identity matrix. -/ |
| 169 | lemma Exchange.schur_eq_one (hκ : ∀ τ : Φ, ∀ k ≠ Fintype.card n, κ τ k = 0) |
| 170 | (z : Φ → Matrix n n R) : schur κ z = 1 := by |
| 171 | -- Both sides expand the constant basis polynomial `1` in the same way. |
| 172 | have h_expansion (i : WeylIndexFamily (fun _ : Φ ↦ n) κ) : |
| 173 | ∑ j : WeylIndexFamily (fun _ : Φ ↦ n) κ, (1 : Matrix _ _ R) i j • |
| 174 | (nablaBasis R (fun _ : Φ ↦ n) κ j * |
| 175 | detPow R (fun _ : Φ ↦ n) (schurDetExp (fun _ : Φ ↦ n) (fun _ : Φ ↦ n) κ)) = |
| 176 | rowSubst z (nablaBasis R (fun _ : Φ ↦ n) κ i) := by |
| 177 | simp [nablaBasis_eq_one hκ, Matrix.one_apply] |
| 178 | exact GL.schur_eq_of_expansion h_expansion |
| 179 | |
| 180 | end New |
| 181 | |
| 182 | end CompactRep |
| 183 | |
| 184 | /-! |
| 185 | ## Matrix coefficients and Schur's orthogonality relations on U(n)^Φ |
| 186 | |
| 187 | * `New.exists_intertwining_mean`: averaging a matrix over a compact group gives an intertwiner. |
| 188 | -/ |
| 189 | |
| 190 | section SchurOrthogonality |
| 191 | |
| 192 | open MeasureTheory Matrix ComplexConjugate Finset Fintype Fin Norms.Operator New.GL |
| 193 | |
| 194 | namespace New |
| 195 | |
| 196 | variable {Φ n : Type} [Fintype Φ] [DecidableEq Φ] [Fintype n] [DecidableEq n] |
| 197 | {κ : Φ → ℕ → ℕ} {e : Φ → ℤ} {l : Φ → n → ℤ} {s : n → ℤˣ} |
| 198 | |
| 199 | /-- The index type `WeylIndex n κ` is never empty: it indexes the coordinates of a vector of norm |
| 200 | one. -/ |
| 201 | instance : Nonempty (WeylIndex n κ) := by |
| 202 | by_contra! h_empty |
| 203 | simpa [weylNormSq] using weylNormSq_weylEval_permArray (κ := κ) (rowEquivFin fun _ ↦ n) |
| 204 | |
| 205 | omit [DecidableEq Φ] [DecidableEq n] in |
| 206 | /-- For any integer labels `l w : n → ℤ` of the rows at each place `w`, `highestVector κ l` is the |
| 207 | complex evaluation vector of weight `κ` at the array whose block `w` has entry 1 in row `a` exactly |
| 208 | at column `#{j : l w j > l w a}`, and 0 elsewhere. This highest vector has real (integer) |
| 209 | coordinates: it is its own complex conjugate. -/ |
| 210 | lemma star_highestVector : star (highestVector κ l) = highestVector κ l := by |
| 211 | refine (star_weylEval _).trans ?_ |
| 212 | rcongr |
| 213 | simp [permArray] |
| 214 | |
| 215 | /-- The form `gramForm` is hermitian: swapping the arguments conjugates the value. -/ |
| 216 | lemma conj_gramForm (ξ η : WeylIndex n κ → ℂ) : conj (gramForm ξ η) = gramForm η ξ := |
| 217 | weylGramOver_posDef.1.star_dotProduct_mulVec_comm ξ η |
| 218 | |
| 219 | open ComplexOrder in |
| 220 | /-- The Gram form is non-degenerate: a vector is determined by its pairings with all vectors. -/ |
| 221 | lemma ext_gramForm_left {ξ η : WeylIndex n κ → ℂ} |
| 222 | (h : ∀ ζ : WeylIndex n κ → ℂ, gramForm ζ ξ = gramForm ζ η) : ξ = η := by |
| 223 | have h_self : star (ξ - η) ⬝ᵥ weylGramOver *ᵥ (ξ - η) = 0 := by |
| 224 | rw [← gramForm_apply, map_sub, h, sub_self] |
| 225 | by_contra h_ne |
| 226 | exact (weylGramOver_posDef.dotProduct_mulVec_pos (sub_ne_zero.2 h_ne)).ne' h_self |
| 227 | |
| 228 | omit [DecidableEq n] in |
| 229 | /-- For injective l, the position in decreasing order is a bijection onto {0, …, |n| − 1}, and |
| 230 | that for −l is the reversed one. -/ |
| 231 | lemma exists_equiv_decreasingPosition {l : n → ℤ} (hl : l.Injective) : |
| 232 | ∃ e : n ≃ Fin (Fintype.card n), ∀ a : n, |
| 233 | decreasingPosition l a = e a ∧ decreasingPosition (-l) a = (e a).rev := by |
| 234 | -- Enumerate `n` by `e` in the decreasing order of `l`; then `a` indices precede `e a` and |
| 235 | -- `card n - 1 - a` follow it. |
| 236 | obtain ⟨e, he⟩ : ∃ e : Fin (card n) ≃ n, ∀ a b, l (e b) < l (e a) ↔ a < b := by |
| 237 | simpa using exists_equiv_fin_lt_iff (neg_injective.comp hl) |
| 238 | refine ⟨e.symm, e.forall_congr_right.1 fun a ↦ ?_⟩ |
| 239 | simp [decreasingPosition, card_filter, ← e.sum_comp, filter_gt_eq_Iio, he, filter_lt_eq_Ioi, |
| 240 | Nat.sub_sub, add_comm 1] |
| 241 | |
| 242 | /-- For each vector `ξ`, the map `g ↦ conjWeylRep κ e g ξ` is continuous on the product of unitary |
| 243 | groups of signs `s`. -/ |
| 244 | @[fun_prop] |
| 245 | lemma continuous_conjWeylRep (ξ : WeylIndex n κ → ℂ) : |
| 246 | Continuous (conjWeylRep (s := s) κ e · ξ) := by |
| 247 | suffices Continuous fun x : Φ → USign s ↦ |
| 248 | (∏ τ, ((x τ : GL n ℂ).map (starRingEnd ℂ)).det ^ e τ) • |
| 249 | schur κ (fun τ ↦ (x τ : Matrix n n ℂ).map (starRingEnd ℂ)) *ᵥ ξ by |
| 250 | simpa [conjWeylRep, weylRep, smul_mulVec] using this |
| 251 | fun_prop |
| 252 | |
| 253 | /-- For matrix representations S, R of a compact group with a Haar measure ν and a matrix M such |
| 254 | that g ↦ S(g)MR(g⁻¹) is continuous, there is B with BR(y) = S(y)B for all y and ∫ L(S(g) M R(g⁻¹)) |
| 255 | dν = L(B) for every linear L. -/ |
| 256 | lemma exists_intertwining_mean {G : Type*} [Group G] [TopologicalSpace G] [IsTopologicalGroup G] |
| 257 | [CompactSpace G] [MeasurableSpace G] [BorelSpace G] (ν : Measure G) [Measure.IsHaarMeasure ν] |
| 258 | (S : G →* Matrix Φ Φ ℂ) (R : G →* Matrix n n ℂ) (M : Matrix Φ n ℂ) |
| 259 | (h_cont : Continuous fun g : G ↦ S g * M * R g⁻¹) : |
| 260 | ∃ B : Matrix Φ n ℂ, |
| 261 | (∀ y : G, B * R y = S y * B) ∧ |
| 262 | ∀ L : Matrix Φ n ℂ →ₗ[ℂ] ℂ, ∫ g : G, L (S g * M * R g⁻¹) ∂ν = L B := by |
| 263 | let B : Matrix Φ n ℂ := ∫ g, S g * M * R g⁻¹ ∂ν |
| 264 | -- Linear maps commute with the integral of a continuous function on a compact group. |
| 265 | have h_lin (L : Matrix Φ n ℂ →ₗ[ℂ] Matrix Φ n ℂ) : ∫ g, L (S g * M * R g⁻¹) ∂ν = L B := |
| 266 | L.toContinuousLinearMap.integral_comp_comm DiscreteSeries.integrable_of_compactSpace |
| 267 | refine ⟨B, fun y ↦ ?_, |
| 268 | fun L ↦ L.toContinuousLinearMap.integral_comp_comm DiscreteSeries.integrable_of_compactSpace⟩ |
| 269 | -- Substitute `y * g` for `g`: then `S y` comes out on the left and `R y⁻¹ * R y` cancels. |
| 270 | calc |
| 271 | B * R y = ∫ g, S g * M * R g⁻¹ * R y ∂ν := (h_lin (mulRightLinearMap _ ℂ (R y))).symm |
| 272 | _ = ∫ g, S (y * g) * M * R (y * g)⁻¹ * R y ∂ν := (integral_mul_left_eq_self _ y).symm |
| 273 | _ = ∫ g, S y * (S g * M * R g⁻¹) ∂ν := by simp [Matrix.mul_assoc, ← R.map_mul y⁻¹] |
| 274 | _ = S y * B := h_lin (mulLinearMap ℂ (S y)) |
| 275 | |
| 276 | /-- The function `weightMinors` for the weight `c + ∑ h ∈ t, k h • 1_{p < h}` at an invertible |
| 277 | matrix `x`: `x.det ^ c` times the product of the principal minors on `{i | p i < h}` to the powers |
| 278 | `k h`. -/ |
| 279 | lemma weightMinors_add_sum_ite {N : ℕ} (p : n → Fin N) {x : Matrix n n ℂ} (hx : x.det ≠ 0) (c : ℤ) |
| 280 | (k : Fin N → ℕ) (t : Finset (Fin N)) : |
| 281 | weightMinors (fun i : n ↦ c + ∑ h ∈ t, if p i < h then (k h : ℤ) else 0) x = |
| 282 | x.det ^ c * ∏ h ∈ t, principalMinor x (p · < h) ^ k h := by |
| 283 | induction t using cons_induction with |
| 284 | | empty => simp [weightMinors_const hx] |
| 285 | | cons h t ht ih => |
| 286 | -- The weight for `t` decreases along `p`, so by `weightMinors_add_ite` adding `k h` on |
| 287 | -- `{i | p i < h}` multiplies by the `k h`-th power of the principal minor on that set. |
| 288 | have h_anti (i j : n) (hi : p i < h) (hj : ¬p j < h) : |
| 289 | c + ∑ h' ∈ t, (if p j < h' then (k h' : ℤ) else 0) ≤ |
| 290 | c + ∑ h' ∈ t, if p i < h' then (k h' : ℤ) else 0 := by |
| 291 | gcongr |
| 292 | lia |
| 293 | simp [add_comm (ite ..), ← add_assoc, weightMinors_add_ite hx (k h).cast_nonneg h_anti, ht, ih] |
| 294 | ring |
| 295 | |
| 296 | /-- Let v be the evaluation vector of weight κ at the array `permArray` with entry 1 in row i of |
| 297 | block τ exactly in column p_τ(i), for bijections p_τ : n_τ ≃ Fin (rankAt n τ), so rankAt n |
| 298 | τ = |n_τ|. Let ρ = `New.weylRep` of weight (κ, e) and μ = `New.diagramWeight`. For g in ∏_τ GL(n_τ, |
| 299 | ℂ), the coefficient (v, ρ(g)v) for the bilinear Gram form is the product over τ of |
| 300 | `New.weightMinors` at g_τ for the weight i ↦ e_τ + μ(τ, p_τ(i)). -/ |
| 301 | lemma weylRep_coeff_eq_prod_weightMinors {n : Φ → Type} [∀ τ, Fintype (n τ)] |
| 302 | [∀ τ, DecidableEq (n τ)] (p : ∀ τ : Φ, n τ ≃ Fin (rankAt n τ)) (g : (τ : Φ) → GL (n τ) ℂ) : |
| 303 | let v := weylEval n κ (permArray fun (τ : Φ) (i : n τ) ↦ (p τ i : ℕ)) |
| 304 | v ⬝ᵥ weylGramOver *ᵥ weylRep κ e g *ᵥ v = |
| 305 | ∏ τ : Φ, weightMinors (fun i : n τ ↦ e τ + diagramWeight (rankAt n) κ ⟨τ, p τ i⟩) (g τ) := by |
| 306 | -- The coefficient is `∏ τ, det (g τ) ^ e τ` times the value of the highest weight polynomial |
| 307 | -- `highestPoly`, a product of powers of leading minors, at `g` read in the orderings `p`. The |
| 308 | -- right side takes the same shape by `weightMinors_add_sum_ite`. |
| 309 | simp [weylKernel, eval_rowSubst, minor, highestPoly, tableauPoly, diagramWeight, |
| 310 | RingHom.map_det, Units.smul_def, ← prod_mul_distrib, Finsupp.single_apply, ite_and, |
| 311 | sum_range (n := rankAt n _), weightMinors_add_sum_ite, weylRep, smul_mulVec, |
| 312 | GeneralLinearGroup.det_ne_zero] |
| 313 | congr! 4 with τ _ h |
| 314 | -- The leading `h × h` minor is, after transposing, the principal minor on `{i | p τ i < h}`. |
| 315 | let ε : Fin h ≃ {i // p τ i < h} := |
| 316 | (castLEquiv h.is_le').trans ((p τ).subtypeEquiv fun _ ↦ .rfl).symm |
| 317 | rw [← det_reindex_self ε, ← det_transpose] |
| 318 | congr with i j |
| 319 | simp [permArray, ε, val_eq_val] |
| 320 | |
| 321 | /-- Schur orthogonality for the representation ρ = `New.conjWeylRep` of weight (κ, e) of the compact |
| 322 | group U(n)^Φ: for f linear into ℂ and any vectors a, b, c, ∫ ⟨a, ρ(x⁻¹)b⟩ f(ρ(x)c) dx = (dim ρ)⁻¹ |
| 323 | ⟨a, c⟩ f(b), with ⟨·,·⟩ = `New.gramForm`, and dx the Haar measure `volume`, of total mass one. -/ |
| 324 | lemma schur_orthogonality (e : Φ → ℤ) (f : (WeylIndex n κ → ℂ) →ₗ[ℂ] ℂ) |
| 325 | (a b c : WeylIndex n κ → ℂ) : |
| 326 | ∫ x : Φ → USign (1 : n → ℤˣ), |
| 327 | f (conjWeylRep κ e x c) * gramForm a (conjWeylRep κ e x⁻¹ b) = |
| 328 | (Fintype.card (WeylIndex n κ) : ℂ)⁻¹ * gramForm a c * f b := by |
| 329 | -- Average the rank-one map `v ↦ gramForm a v • c` over the group. The mean `B` commutes with |
| 330 | -- the representation, so by Schur's lemma it is a scalar `z`; the trace determines `z`. |
| 331 | have h_cont : Continuous fun x : Φ → USign (1 : n → ℤˣ) ↦ |
| 332 | conjWeylMatrix κ e x * ((gramForm a).smulRight c).toMatrix' * conjWeylMatrix κ e x⁻¹ := by |
| 333 | -- Both factors are, by definition, products of determinant powers and Schur matrices. |
| 334 | simp only [MonoidHom.coe_comp, weylRep, MonoidHom.coe_mk, OneHom.coe_mk, Function.comp_apply, |
| 335 | MonoidHom.pi_apply, Pi.coe_evalMonoidHom] |
| 336 | fun_prop |
| 337 | obtain ⟨B, h_comm : ∀ y : Φ → USign (1 : n → ℤˣ), |
| 338 | B * conjWeylMatrix κ e y = conjWeylMatrix κ e y * B, h_mean⟩ := |
| 339 | exists_intertwining_mean volume (conjWeylMatrix κ e) (conjWeylMatrix κ e) |
| 340 | ((gramForm a).smulRight c).toMatrix' h_cont |
| 341 | -- For unitary `g`, each `(g τ).map conj` is unitary, and `conjWeylMatrix` there is a unit |
| 342 | -- multiple of `schur κ g`; so `B` commutes with `schur κ g`. |
| 343 | have h_commute (g : (τ : Φ) → Matrix n n ℂ) (hg : ∀ τ : Φ, (g τ)ᴴ * g τ = 1) : |
| 344 | Commute B (schur κ g) := by |
| 345 | have h_conj_unitary (τ : Φ) : |
| 346 | ((g τ).map conj)ᴴ * signMatrix (1 : n → ℤˣ) * (g τ).map conj = signMatrix 1 := by |
| 347 | simpa [← conjTranspose_map (conj : ℂ → ℂ) fun _ ↦ rfl, Matrix.map_mul] using |
| 348 | congrArg (Matrix.map · conj) (hg τ) |
| 349 | let u : Φ → USign (1 : n → ℤˣ) := fun τ ↦ U.of (by simp) ((g τ).map conj) (h_conj_unitary τ) |
| 350 | change B * schur κ g = schur κ g * B |
| 351 | simpa [u, smul_left_cancel_iff, weylRep, Function.comp_def] using h_comm u |
| 352 | obtain ⟨z, rfl⟩ : B ∈ Set.range (scalar _) := mem_range_scalar_of_commute_schur h_commute |
| 353 | -- The trace of the integrand is `gramForm a c` at every point, and the group has volume one. |
| 354 | have hz : gramForm a c = z * card (WeylIndex n κ) := by |
| 355 | simpa [trace_mul_cycle (weylRep κ e _), ← map_mul, ← trace_toLin'_eq, ← smul_one_eq_diagonal] |
| 356 | using h_mean (traceLinearMap _ ℂ ℂ) |
| 357 | calc |
| 358 | _ = z * f b := by |
| 359 | simpa [← smul_one_eq_diagonal, mul_comm, conjWeylRep] using |
| 360 | h_mean (f ∘ₗ toLin'.toLinearMap.flip b) |
| 361 | _ = _ := by simp [hz, inv_mul_eq_div, -Fintype.card_pi] |
| 362 | |
| 363 | /-- For integer labels `l w : n → ℤ` of the rows at each place `w`, `highestVector κ l` is the |
| 364 | complex evaluation vector of weight `κ` at the array whose block `w` has entry 1 in row `a` exactly |
| 365 | at column `#{j : l w j > l w a}`, and 0 elsewhere. If each `l w` is injective, this highest vector |
| 366 | v⁺ is a unit vector for `gramForm`, the form `(ξ, η) ↦ ξ* G η` with `G` the integer Gram matrix: |
| 367 | ⟨v⁺, v⁺⟩ = 1. -/ |
| 368 | lemma gramForm_highestVector_self (hl : ∀ w : Φ, (l w).Injective) : |
| 369 | gramForm (highestVector κ l) (highestVector κ l) = 1 := by |
| 370 | -- The highest vector is the evaluation at a permutation array, and these have norm one. |
| 371 | choose p hp using fun w : Φ ↦ exists_equiv_decreasingPosition (hl w) |
| 372 | simp [← coe_weylNormSq, highestVector, hp, weylNormSq_weylEval_permArray, gramForm_apply] |
| 373 | |
| 374 | end New |
| 375 | |
| 376 | end SchurOrthogonality |
| 377 | |
| 378 | end |