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.Topology.Algebra.Group.Matrix |
| 4 | import TauCeti.Topology.Algebra.Group.Units |
| 5 | import TauCeti.Topology.Instances.Matrix |
| 6 | public import Lib.GLn.SchurModule.SchurOrthogonality |
| 7 | public import Lib.GLn.SchurModule.GramMatrix |
| 8 | public import Lib.General.LinearAlgebra.MatrixPolynomials |
| 9 | import Lib.DiscreteSeries.FlenstedJensen.PsiKTypes |
| 10 | import Lib.DiscreteSeries.Haar.TotalMass |
| 11 | import Lib.GLn.SchurModule.WeylKernel |
| 12 | |
| 13 | /-! |
| 14 | # Irreducibility under U(n)^Φ, polarisation and averaging of determinant polynomials |
| 15 | |
| 16 | The representations `New.conjWeylRep κ e` of the compact group U(n)^Φ are irreducible, and so is the |
| 17 | module `New.nablaFamily` of semi-invariant polynomials. |
| 18 | |
| 19 | ## Main definitions and results |
| 20 | |
| 21 | * `New.span_conjWeylRep_eq_top`, `New.mem_span_rowSubst_unitary`: irreducibility under U(n)^Φ, for |
| 22 | coordinate vectors and for semi-invariant polynomials. |
| 23 | * `New.exists_pairedDetProd_eq_sum_unitary`: for `card p < card n`, a product of determinants |
| 24 | `det (η τ k * Y τ)` is a combination of unitary translates of one product of powers of minors, |
| 25 | with coefficients independent of `Y`. |
| 26 | * `New.exists_forall_eq_mul_map_det_pow`: a linear form `M` that takes the unitary translates of a |
| 27 | polynomial `q` in square matrices to `t * ∏ τ, det (u τ) ^ c τ` has |
| 28 | `t = a * M (∏ τ, det (z τ) ^ c τ)`, with `a` depending only on `q` and `c`. |
| 29 | |
| 30 | Notions from other files: |
| 31 | * `New.conjWeylRep κ e`: the action of U(n)^Φ on the coordinate vectors `WeylIndex n κ → ℂ` by the |
| 32 | Schur matrices of the conjugate matrices, times the powers `e` of their determinants; |
| 33 | `USign (1 : n → ℤˣ)` is the unitary group U(n). |
| 34 | * `New.nablaFamily`: the module of Borel semi-invariant polynomials in rows (τ,a), coloured by τ, |
| 35 | whose weight has `κ τ h` columns of height `h` at τ, for the heights below |n_τ|. |
| 36 | * `New.rowSubst`: for matrices z_τ, the substitution f ↦ f(zy). |
| 37 | * `New.pairedDetProd`: the element ∏_τ ∏_k det(η_{τk} Y_τ) of a ℂ-algebra S, for n×p matrices Y_τ |
| 38 | over S and complex p×n matrices η_{τk}. |
| 39 | * `New.Rows.variableMinor`: the minor det(x_{τ,i(a),j(b)}) of the matrix of variables at τ, in rows |
| 40 | i and columns j. |
| 41 | |
| 42 | ## Relation to the literature |
| 43 | |
| 44 | Irreducibility under U(n) is part of the known theory of the contravariant form on Weyl's lattice. |
| 45 | See `Lib.GLn.SchurModule.SchurNorm`. |
| 46 | -/ |
| 47 | |
| 48 | @[expose] public section |
| 49 | |
| 50 | noncomputable section |
| 51 | |
| 52 | /-! |
| 53 | ## Irreducibility and polarisation of products of determinants |
| 54 | |
| 55 | Let `card p < card n`. A product of `d τ` maximal minors of each `n × p` matrix of variables lies in |
| 56 | the module `New.nablaFamily` whose diagram at `τ` has `d τ` columns of height `card p`. This module |
| 57 | is irreducible under U(n)^Φ, so the unitary translates of one product of powers of minors span it. |
| 58 | -/ |
| 59 | |
| 60 | section Polarisation |
| 61 | |
| 62 | open Matrix MvPolynomial Submodule Fintype ComplexOrder New.GL |
| 63 | |
| 64 | namespace New |
| 65 | |
| 66 | variable {Φ n : Type} [Fintype Φ] [DecidableEq Φ] [Fintype n] [DecidableEq n] {κ : Φ → ℕ → ℕ} |
| 67 | |
| 68 | /-- The representation `New.conjWeylRep κ e` of the product over `Φ` of copies of U(n) (`USign 1`), |
| 69 | acting on complex coordinate vectors `WeylIndex n κ → ℂ` (`WeylIndex n κ` indexes a basis of the |
| 70 | Weyl module below, whose dimension is `card (WeylIndex n κ)`) by the matrices `New.conjWeylMatrix`, |
| 71 | is irreducible: the translates of any non-zero vector `v` span the whole space. This is the Weyl |
| 72 | module with `κ τ h` columns of height `h` at `τ`, twisted by the powers `e` of the determinants. -/ |
| 73 | lemma span_conjWeylRep_eq_top (e : Φ → ℤ) {v : WeylIndex n κ → ℂ} (hv : v ≠ 0) : |
| 74 | span ℂ (Set.range fun x : Φ → USign (1 : n → ℤˣ) ↦ conjWeylRep κ e x v) = ⊤ := by |
| 75 | -- If `w` is outside the span, some linear form `f` kills all translates of `v` and has `f w ≠ 0`. |
| 76 | -- By Schur orthogonality `(dim ρ)⁻¹ ⟨v, v⟩ f w` is the integral of `f (ρ(x) v) ⟨v, ρ(x⁻¹) w⟩`. |
| 77 | refine eq_top_iff'.2 fun w ↦ by_contra fun hw ↦ ?_ |
| 78 | obtain ⟨f, hf_ne : f w ≠ 0, hf_ker⟩ := exists_le_ker_of_notMem hw |
| 79 | have h_kill (x : Φ → USign (1 : n → ℤˣ)) : f (conjWeylRep κ e x v) = 0 := |
| 80 | hf_ker (subset_span ⟨x, rfl⟩) |
| 81 | have h_norm : gramForm v v ≠ 0 := (weylGramOver_posDef.dotProduct_mulVec_pos hv).ne' |
| 82 | have h_zero : (card (WeylIndex n κ) : ℂ)⁻¹ * gramForm v v * f w = 0 := by |
| 83 | simp [-card_pi, ← schur_orthogonality e f v w v, h_kill] |
| 84 | simp [-card_pi, h_norm, hf_ne] at h_zero |
| 85 | |
| 86 | omit [DecidableEq Φ] in |
| 87 | /-- The module `New.nablaFamily` of Borel semi-invariant polynomials of weight `κ` is irreducible |
| 88 | under U(n)^Φ: if `f` is a non-zero member (a polynomial in `MatrixPoly (Σ _ : Φ, n) ℂ`, whose |
| 89 | variables are `X (⟨τ, i⟩, t)` with row `(τ, i)` and column `t : ℕ`), each member `g` is a linear |
| 90 | combination of the polynomials `y ↦ f (uᵀ y)` with `u` in U(n)^Φ = `Φ → USign 1`. Here |
| 91 | `New.rowSubst z f` is `y ↦ f (z y)`. |
| 92 | |
| 93 | This is Weyl's theorem that the highest weight modules of GL_n(ℂ) are irreducible under the compact |
| 94 | group U(n), for polynomial weights and products of copies of U(n). -/ |
| 95 | lemma mem_span_rowSubst_unitary {f g : MatrixPoly (Σ _ : Φ, n) ℂ} |
| 96 | (hf : f ∈ nablaFamily ℂ (fun _ : Φ ↦ n) κ) (hf_ne : f ≠ 0) |
| 97 | (hg : g ∈ nablaFamily ℂ (fun _ : Φ ↦ n) κ) : |
| 98 | g ∈ span ℂ (Set.range fun u : Φ → USign (1 : n → ℤˣ) ↦ |
| 99 | rowSubst (fun τ : Φ ↦ (u τ).val.valᵀ) f) := by |
| 100 | classical |
| 101 | -- `toPoly` maps the coordinate vectors onto `nablaFamily` and turns the action of `x` into |
| 102 | -- substitution of the transpose of the conjugate of `x`, which is again unitary. |
| 103 | rw [← range_toPoly] at hf hg |
| 104 | obtain ⟨v, rfl⟩ := hf |
| 105 | obtain ⟨w, rfl⟩ := hg |
| 106 | let bar : USign (1 : n → ℤˣ) →* USign (1 : n → ℤˣ) := U.map (starRingEnd ℂ) |
| 107 | have h_translate (x : Φ → USign (1 : n → ℤˣ)) : |
| 108 | toPoly (fun _ : Φ ↦ n) κ (conjWeylRep κ 0 x v) = |
| 109 | rowSubst (fun τ : Φ ↦ (bar (x τ)).val.valᵀ) (toPoly (fun _ : Φ ↦ n) κ v) := by |
| 110 | have h_rep : conjWeylRep κ 0 x v = schur κ (fun τ : Φ ↦ (bar (x τ)).val.val) *ᵥ v := by |
| 111 | simp [conjWeylRep, weylRep, bar, U.map] |
| 112 | rw [h_rep, toPoly_schur FitsRanks.refl] |
| 113 | simp [schurDetExp, detPow] |
| 114 | have hw : w ∈ span ℂ (Set.range fun x : Φ → USign (1 : n → ℤˣ) ↦ conjWeylRep κ 0 x v) := by |
| 115 | simp [span_conjWeylRep_eq_top 0 (ne_zero_of_map hf_ne)] |
| 116 | refine span_mono ?_ (apply_mem_span_image_of_mem_span (toPoly (fun _ : Φ ↦ n) κ) hw) |
| 117 | rintro _ ⟨-, ⟨x, rfl⟩, rfl⟩ |
| 118 | exact ⟨bar ∘ x, (h_translate x).symm⟩ |
| 119 | |
| 120 | variable {p : Type} [Fintype p] [DecidableEq p] {ι : Φ → Type} [∀ τ : Φ, Fintype (ι τ)] |
| 121 | |
| 122 | omit [DecidableEq Φ] [DecidableEq n] in |
| 123 | /-- An algebra map `φ` carries `pairedDetProd Y η`, the product over `τ` and `k` of the |
| 124 | `det (η τ k * Y τ)`, to the same product for the images of the matrices `Y τ` under `φ`. -/ |
| 125 | lemma map_pairedDetProd {S S' : Type} [CommRing S] [Algebra ℂ S] [CommRing S'] [Algebra ℂ S'] |
| 126 | (φ : S →ₐ[ℂ] S') (Y : Φ → n → p → S) (η : (τ : Φ) → ι τ → Matrix p n ℂ) : |
| 127 | φ (pairedDetProd Y η) = pairedDetProd (fun (τ : Φ) (i : n) (k : p) ↦ φ (Y τ i k)) η := by |
| 128 | simp [pairedDetProd, det_apply', Matrix.mul_apply] |
| 129 | |
| 130 | omit [DecidableEq Φ] [DecidableEq n] in |
| 131 | /-- Let `card p < card n` and let `Y τ` be the `n × p` matrix formed by the first `card p` columns |
| 132 | of the variables at `τ`, numbered by `equivFin p`. The product `pairedDetProd Y η` of the |
| 133 | `det (η τ k * Y τ)` lies in the module `New.nablaFamily` of Borel semi-invariants whose diagram at |
| 134 | `τ` has `card (ι τ)` columns of height `card p`. -/ |
| 135 | lemma pairedDetProd_mem_nablaFamily (hp : card p < card n) (η : (τ : Φ) → ι τ → Matrix p n ℂ) : |
| 136 | pairedDetProd (fun (τ : Φ) (i : n) (k : p) ↦ X (⟨τ, i⟩, (equivFin p k : ℕ))) η ∈ |
| 137 | nablaFamily ℂ (fun _ : Φ ↦ n) fun τ : Φ ↦ Pi.single (card p) (card (ι τ)) := by |
| 138 | -- By the Cauchy–Binet formula each factor is a combination of maximal minors of `Y τ`. |
| 139 | let Y (τ : Φ) (i : n) (k : p) : MatrixPoly (Σ _ : Φ, n) ℂ := X (⟨τ, i⟩, (equivFin p k : ℕ)) |
| 140 | have h_factor (τ : Φ) (c : Matrix p n ℂ) : |
| 141 | (c.map (algebraMap ℂ (MatrixPoly (Σ _ : Φ, n) ℂ)) * of (Y τ)).det ∈ |
| 142 | nabla ℂ (Sigma.fst (β := fun _ : Φ ↦ n)) |
| 143 | (∑ i ∈ Finset.range (card p), Finsupp.single (τ, i) 1) := by |
| 144 | have h_det : (c.map (algebraMap ℂ (MatrixPoly (Σ _ : Φ, n) ℂ)) * of (Y τ)).det = |
| 145 | (of fun s t : Fin (card p) ↦ ∑ i : n, c.submatrix (equivFin p).symm id s i • |
| 146 | X (R := ℂ) ((⟨τ, i⟩ : Σ _ : Φ, n), (t : ℕ))).det := by |
| 147 | rw [← det_submatrix_equiv_self (equivFin p).symm] |
| 148 | simp [Y, Matrix.mul_apply, smul_eq_C_mul, Matrix.submatrix] |
| 149 | rw [h_det, det_sum_smul_X] |
| 150 | exact sum_mem fun I _ ↦ smul_mem _ _ (minor_mem_nabla fun _ ↦ rfl) |
| 151 | have h_weight : |
| 152 | diagramWeight (rankAt fun _ : Φ ↦ n) (fun τ : Φ ↦ Pi.single (card p) (card (ι τ))) = |
| 153 | ∑ τ : Φ, ∑ _k : ι τ, ∑ i ∈ Finset.range (card p), Finsupp.single (τ, i) 1 := by |
| 154 | simp [diagramWeight, Pi.single_apply, hp] |
| 155 | rw [nablaFamily, h_weight] |
| 156 | -- Semi-invariants multiply and their weights add. |
| 157 | exact SetLike.prod_mem_graded _ _ _ fun τ _ ↦ |
| 158 | SetLike.prod_mem_graded _ _ _ fun k _ ↦ h_factor τ (η τ k) |
| 159 | |
| 160 | omit [DecidableEq Φ] [DecidableEq n] in |
| 161 | /-- Let `Y τ` be the `n × p` matrix formed by the first `card p` columns of the variables at `τ`, |
| 162 | numbered by `equivFin p`. The substitution `rowSubst z` of `z y` for `y` takes `pairedDetProd Y η`, |
| 163 | the product of the `det (η τ k * Y τ)`, to the product of the `det (η τ k * z τ * Y τ)`. -/ |
| 164 | lemma rowSubst_pairedDetProd_X (z : Φ → Matrix n n ℂ) (η : (τ : Φ) → ι τ → Matrix p n ℂ) : |
| 165 | rowSubst z (pairedDetProd (fun (τ : Φ) (i : n) (k : p) ↦ X (⟨τ, i⟩, (equivFin p k : ℕ))) η) = |
| 166 | pairedDetProd (fun (τ : Φ) (i : n) (k : p) ↦ X (⟨τ, i⟩, (equivFin p k : ℕ))) |
| 167 | fun (τ : Φ) (k : ι τ) ↦ η τ k * z τ := by |
| 168 | rw [map_pairedDetProd] |
| 169 | simp only [pairedDetProd, Matrix.map_mul, Matrix.mul_assoc] |
| 170 | congr! 4 |
| 171 | -- Entry by entry, the substitution takes the matrix `Y τ` of variables to `z τ * Y τ`. |
| 172 | ext : 2 |
| 173 | simp [rowSubst, Matrix.mul_apply, smul_eq_C_mul] |
| 174 | |
| 175 | omit [DecidableEq Φ] in |
| 176 | /-- Polarisation. Let `card p < card n`, and let `η₀` be the `p × n` matrix whose row `k` is the |
| 177 | standard basis vector at `r k`, for an injective `r`. For all complex `p × n` matrices `η τ k`, the |
| 178 | product `pairedDetProd Y η` of the `det (η τ k * Y τ)` is a finite combination of the products |
| 179 | `∏ τ, det (η₀ * (u τ)ᵀ * Y τ) ^ card (ι τ)` with `u τ` unitary (`USign 1` is U(n)). The |
| 180 | coefficients do not depend on the matrices `Y τ` or on the algebra `S` that holds their entries. -/ |
| 181 | theorem exists_pairedDetProd_eq_sum_unitary (hp : card p < card n) {r : p → n} |
| 182 | (hr : r.Injective) (η : (τ : Φ) → ι τ → Matrix p n ℂ) : |
| 183 | ∃ c : (Φ → USign (1 : n → ℤˣ)) →₀ ℂ, |
| 184 | ∀ (S : Type) [CommRing S] [Algebra ℂ S] (Y : Φ → n → p → S), |
| 185 | pairedDetProd Y η = |
| 186 | c.sum fun (u : Φ → USign (1 : n → ℤˣ)) (z : ℂ) ↦ z • pairedDetProd Y |
| 187 | fun (τ : Φ) (_ : ι τ) ↦ (1 : Matrix n n ℂ).submatrix r id * (u τ).val.valᵀ := by |
| 188 | classical |
| 189 | -- Prove the identity for matrices of variables, in the irreducible module `nablaFamily`; then put |
| 190 | -- `Y` in for the variables. |
| 191 | let P (ξ : (τ : Φ) → ι τ → Matrix p n ℂ) : MatrixPoly (Σ _ : Φ, n) ℂ := |
| 192 | pairedDetProd (fun (τ : Φ) (i : n) (k : p) ↦ X (⟨τ, i⟩, (equivFin p k : ℕ))) ξ |
| 193 | let η₀ (τ : Φ) (_ : ι τ) : Matrix p n ℂ := (1 : Matrix n n ℂ).submatrix r id |
| 194 | -- Substituting `Y τ` for the first `card p` columns of variables gives `P ξ ↦ pairedDetProd Y ξ`. |
| 195 | have h_eval {S : Type} [CommRing S] [Algebra ℂ S] (Y : Φ → n → p → S) : |
| 196 | ∃ φ : MatrixPoly (Σ _ : Φ, n) ℂ →ₐ[ℂ] S, |
| 197 | ∀ ξ : (τ : Φ) → ι τ → Matrix p n ℂ, φ (P ξ) = pairedDetProd Y ξ := by |
| 198 | let value : (Σ _ : Φ, n) × ℕ → S := fun (⟨τ, i⟩, t) ↦ |
| 199 | if ht : t < card p then Y τ i ((equivFin p).symm ⟨t, ht⟩) else 0 |
| 200 | exact ⟨aeval value, fun ξ ↦ by simp [P, value, map_pairedDetProd]⟩ |
| 201 | -- `P η₀` is not zero: its value at `η₀ᵀ` is `1`. |
| 202 | have h_ne : P η₀ ≠ 0 := by |
| 203 | obtain ⟨φ, hφ⟩ := h_eval fun (_ : Φ) (i : n) (k : p) ↦ (1 : Matrix n n ℂ) i (r k) |
| 204 | have h_frame : (1 : Matrix n n ℂ).submatrix r id * |
| 205 | (of fun (i : n) (k : p) ↦ (1 : Matrix n n ℂ) i (r k)) = 1 := by |
| 206 | ext |
| 207 | simp [Matrix.mul_apply, Matrix.one_apply, hr.eq_iff] |
| 208 | have h_one : φ (P η₀) = 1 := by simp [hφ, pairedDetProd, η₀, h_frame] |
| 209 | exact ne_zero_of_map (f := φ) (by simp [h_one]) |
| 210 | have h_subst (u : Φ → USign (1 : n → ℤˣ)) : |
| 211 | rowSubst (fun τ ↦ (u τ).val.valᵀ) (P η₀) = P fun τ k ↦ η₀ τ k * (u τ).val.valᵀ := |
| 212 | rowSubst_pairedDetProd_X _ η₀ |
| 213 | have h_span : P η ∈ span ℂ (Set.range fun u : Φ → USign (1 : n → ℤˣ) ↦ |
| 214 | rowSubst (fun τ ↦ (u τ).val.valᵀ) (P η₀)) := |
| 215 | mem_span_rowSubst_unitary (pairedDetProd_mem_nablaFamily hp η₀) h_ne |
| 216 | (pairedDetProd_mem_nablaFamily hp η) |
| 217 | obtain ⟨c, hc⟩ := Finsupp.mem_span_range_iff_exists_finsupp.1 h_span |
| 218 | refine ⟨c, fun S _ _ Y ↦ ?_⟩ |
| 219 | obtain ⟨φ, hφ⟩ := h_eval Y |
| 220 | simp only [← hφ, ← hc, map_finsuppSum, map_smul, h_subst, η₀] |
| 221 | |
| 222 | end New |
| 223 | |
| 224 | end Polarisation |
| 225 | |
| 226 | /-! |
| 227 | ## Averaging polynomials in square matrices |
| 228 | |
| 229 | A tuple `u` of unitary matrices carries a polynomial `q (z)` to `q (uᵀ z)`. |
| 230 | -/ |
| 231 | |
| 232 | section Averaging |
| 233 | |
| 234 | open Matrix MvPolynomial MeasureTheory New.GL New.Rows |
| 235 | |
| 236 | namespace New |
| 237 | |
| 238 | variable {Φ n : Type} [Fintype Φ] [Fintype n] [DecidableEq n] |
| 239 | |
| 240 | /-- The mean over U(n)^Φ (here `Φ → USign 1`), with a continuous weight `w`, of the translates |
| 241 | `q (uᵀ z)` of a polynomial `q` in square matrices `z τ` is a polynomial: there is one whose value |
| 242 | under each linear form `M` is the integral of `w u * M (q (uᵀ z))` for the Haar probability measure |
| 243 | `volume`. -/ |
| 244 | lemma exists_forall_map_eq_integral_translate (q : MvPolynomial (Φ × n × n) ℂ) |
| 245 | {w : (Φ → USign (1 : n → ℤˣ)) → ℂ} (hw : Continuous w) : |
| 246 | ∃ mean : MvPolynomial (Φ × n × n) ℂ, ∀ M : MvPolynomial (Φ × n × n) ℂ →ₗ[ℂ] ℂ, |
| 247 | M mean = ∫ u : Φ → USign (1 : n → ℤˣ), w u * |
| 248 | M (aeval (fun ((τ, j, k) : Φ × n × n) ↦ ∑ i : n, (u τ).val.val i j • X (τ, i, k)) q) := by |
| 249 | -- The coefficients of `q (uᵀ z)` are the values at `u` of the finitely many coefficients of the |
| 250 | -- generic translate `Q`; integrate each of them. |
| 251 | let Q : MvPolynomial (Φ × n × n) (MvPolynomial (Φ × n × n) ℂ) := |
| 252 | aeval (fun ((τ, j, k) : Φ × n × n) ↦ ∑ i : n, X (R := ℂ) (τ, i, j) • X (τ, i, k)) q |
| 253 | let φ (u : Φ → USign (1 : n → ℤˣ)) : MvPolynomial (Φ × n × n) ℂ →ₐ[ℂ] ℂ := |
| 254 | aeval fun ((τ, i, j) : Φ × n × n) ↦ (u τ).val.val i j |
| 255 | have h_expand (u : Φ → USign (1 : n → ℤˣ)) : |
| 256 | aeval (fun ((τ, j, k) : Φ × n × n) ↦ ∑ i : n, (u τ).val.val i j • X (R := ℂ) (τ, i, k)) q = |
| 257 | ∑ d ∈ Q.support, φ u (Q.coeff d) • monomial d 1 := |
| 258 | calc _ = mapAlgHom (φ u) Q := by simp [Q, φ, comp_aeval_apply, smul_eq_C_mul] |
| 259 | _ = ∑ d ∈ Q.support, φ u (Q.coeff d) • monomial d 1 := by |
| 260 | conv_lhs => rw [Q.as_sum, map_sum] |
| 261 | simp [smul_monomial] |
| 262 | refine ⟨∑ d ∈ Q.support, (∫ u, w u * φ u (Q.coeff d)) • monomial d 1, fun M ↦ ?_⟩ |
| 263 | have h_cont (d : Φ × n × n →₀ ℕ) : |
| 264 | Continuous fun u ↦ w u * φ u (Q.coeff d) * M (monomial d 1) := by |
| 265 | simp only [φ, aeval_def, eval₂_eq'] |
| 266 | fun_prop |
| 267 | simp only [h_expand, map_sum, map_smul, smul_eq_mul, Finset.mul_sum, ← mul_assoc, |
| 268 | ← integral_mul_const] |
| 269 | exact (integral_finsetSum Q.support fun d _ ↦ |
| 270 | (h_cont d).integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _)).symm |
| 271 | |
| 272 | /-- A polynomial `f` in square matrices whose value at `xᵀ` is `a * ∏ τ, det (x τ) ^ c τ` for all |
| 273 | `x` in U(n)^Φ = `Φ → USign 1` is `a * ∏ τ, det (z τ) ^ c τ`, where `det (z τ)` is |
| 274 | `variableMinor τ id id`. -/ |
| 275 | lemma eq_smul_det_pow_of_unitary (c : Φ → ℕ) {f : MvPolynomial (Φ × n × n) ℂ} {a : ℂ} |
| 276 | (hf : ∀ x : Φ → USign (1 : n → ℤˣ), |
| 277 | f.eval (fun ((τ, i, j) : Φ × n × n) ↦ (x τ).val.val j i) = |
| 278 | a * ∏ τ : Φ, (x τ).val.val.det ^ c τ) : |
| 279 | f = a • ∏ τ : Φ, variableMinor τ id id ^ c τ := by |
| 280 | -- The unitary group is Zariski dense. The value `evalMatrix x P` of `P` at `x` is the difference |
| 281 | -- of the two sides at `xᵀ`. |
| 282 | let P : MvPolynomial ((_ : Φ) × n × n) ℂ := |
| 283 | rename (fun ((τ, i, j) : Φ × n × n) ↦ ⟨τ, j, i⟩) (f - a • ∏ τ : Φ, variableMinor τ id id ^ c τ) |
| 284 | have h_unitary (g : Φ → Matrix n n ℂ) (hg : ∀ τ : Φ, (g τ)ᴴ * g τ = 1) : evalMatrix g P = 0 := by |
| 285 | have h_det (τ : Φ) : |
| 286 | (variableMinor τ id id).eval (fun ((σ, i, j) : Φ × n × n) ↦ g σ j i) = (g τ).det := by |
| 287 | simp [variableMinor, RingHom.map_det, ← det_transpose (g τ), transpose, Matrix.map] |
| 288 | have h_value : f.eval (fun ((σ, i, j) : Φ × n × n) ↦ g σ j i) = |
| 289 | a * ∏ τ : Φ, (g τ).det ^ c τ := by |
| 290 | simpa using hf fun τ ↦ U.of (by simp) (g τ) (by simp [hg]) |
| 291 | simp [P, eval_rename, Function.comp_def, h_det, h_value] |
| 292 | -- A polynomial that vanishes at all tuples of unitary matrices is zero. |
| 293 | refine MvPolynomial.funext fun z ↦ sub_eq_zero.1 ?_ |
| 294 | simpa [P, eval_rename, Function.comp_def] using |
| 295 | zariski_dense_unitary (fun τ : Φ ↦ of fun i j : n ↦ z (τ, j, i)) P h_unitary |
| 296 | |
| 297 | /-- Averaging over U(n)^Φ = `Φ → USign 1`. Let `q` be a polynomial in square matrices `z τ`. There |
| 298 | is a number `a` such that every linear form `M` with `M (q (uᵀ z)) = t * ∏ τ, det (u τ) ^ c τ` for |
| 299 | all unitary `u` has `t = a * M (∏ τ, det (z τ) ^ c τ)`. Here `t = M q`, by `u = 1`, and `det (z τ)` |
| 300 | is `variableMinor τ id id`. -/ |
| 301 | lemma exists_forall_eq_mul_map_det_pow (c : Φ → ℕ) (q : MvPolynomial (Φ × n × n) ℂ) : |
| 302 | ∃ a : ℂ, ∀ (M : MvPolynomial (Φ × n × n) ℂ →ₗ[ℂ] ℂ) (t : ℂ), |
| 303 | (∀ u : Φ → USign (1 : n → ℤˣ), |
| 304 | M (aeval (fun ((τ, j, k) : Φ × n × n) ↦ ∑ i : n, (u τ).val.val i j • X (τ, i, k)) q) = |
| 305 | t * ∏ τ : Φ, (u τ).val.val.det ^ c τ) → |
| 306 | t = a * M (∏ τ : Φ, variableMinor τ id id ^ c τ) := by |
| 307 | -- The mean of `χ u⁻¹ • q (uᵀ z)` over the group, with `χ u = ∏ τ, det (u τ) ^ c τ`, has value `t` |
| 308 | -- under `M`. Its value at a unitary `xᵀ` is `a * χ x`, so it is `a` times the product of |
| 309 | -- determinants. |
| 310 | let χ (u : Φ → USign (1 : n → ℤˣ)) : ℂ := ∏ τ : Φ, (u τ).val.val.det ^ c τ |
| 311 | have hχ_mul (u v : Φ → USign (1 : n → ℤˣ)) : χ (u * v) = χ u * χ v := by |
| 312 | simp [χ, mul_pow, Finset.prod_mul_distrib] |
| 313 | have hχ_inv (u : Φ → USign (1 : n → ℤˣ)) : χ u⁻¹ * χ u = 1 := by |
| 314 | simpa [χ] using (hχ_mul u⁻¹ u).symm |
| 315 | obtain ⟨mean, h_mean⟩ := |
| 316 | exists_forall_map_eq_integral_translate q (w := fun u ↦ χ u⁻¹) (by fun_prop) |
| 317 | let value (x : Φ → USign (1 : n → ℤˣ)) : MvPolynomial (Φ × n × n) ℂ →ₐ[ℂ] ℂ := |
| 318 | aeval fun ((τ, i, j) : Φ × n × n) ↦ (x τ).val.val j i |
| 319 | let a : ℂ := ∫ u, χ u⁻¹ * value u q |
| 320 | -- At the point `xᵀ` with `x` unitary use `uᵀ xᵀ = (x * u)ᵀ` and substitute `x * u` for `u`. |
| 321 | have h_point (x u : Φ → USign (1 : n → ℤˣ)) : value x (aeval |
| 322 | (fun ((τ, j, k) : Φ × n × n) ↦ ∑ i : n, (u τ).val.val i j • X (τ, i, k)) q) = |
| 323 | value (x * u) q := by |
| 324 | simp [value, comp_aeval_apply, Matrix.mul_apply, mul_comm] |
| 325 | have h_value (x : Φ → USign (1 : n → ℤˣ)) : value x mean = a * χ x := |
| 326 | calc value x mean = ∫ u, χ u⁻¹ * value (x * u) q := by |
| 327 | simpa only [AlgHom.toLinearMap_apply, h_point] using h_mean (value x).toLinearMap |
| 328 | _ = ∫ u, χ (x * u)⁻¹ * value (x * u) q * χ x := by |
| 329 | congr with u |
| 330 | simp only [_root_.mul_inv_rev, hχ_mul] |
| 331 | linear_combination -(χ u⁻¹ * value (x * u) q) * hχ_inv x |
| 332 | _ = a * χ x := by |
| 333 | rw [integral_mul_const, integral_mul_left_eq_self fun u ↦ χ u⁻¹ * value u q] |
| 334 | refine ⟨a, fun M t hM ↦ ?_⟩ |
| 335 | calc t = ∫ u, χ u⁻¹ * (t * χ u) := by simp [mul_left_comm _ t, hχ_inv] |
| 336 | _ = M mean := by simp only [h_mean, hM, χ] |
| 337 | _ = a * M (∏ τ : Φ, variableMinor τ id id ^ c τ) := by |
| 338 | simp [eq_smul_det_pow_of_unitary c h_value] |
| 339 | |
| 340 | end New |
| 341 | |
| 342 | end Averaging |
| 343 | |
| 344 | end |