Theorem 2.1 (Fundamental Theorem of Weingarten Calculus) —
ProvedWeingartenCalc.Fundamental.theorem_2_1Let be a compact Hausdorff topological group with Haar probability measure , and let be a continuous unitary representation on , with matrix elements in the standard orthonormal basis. Fix , and let be a basis of the space of -invariant tensors
Let be the matrix of coordinates of the in the product basis , and let be the Weingarten matrix, the inverse of the Gram matrix of the . Then for all multi-indices the Weingarten integral
is given by
This converts the computation of polynomial integrals over a compact group into invariant theory plus a matrix inversion: every Haar integral of a polynomial in the matrix elements of is a linear combination of the .
Formalization Note The hypotheses on are linear independence and . Corrected: the paper writes "a basis of "; the same paragraph calls the "the basic invariants", and with a basis of all of the right side would be the identity matrix, so the basis is of . The statement holds for every (for both sides equal ), while the paper takes positive. is with its standard basis, indices are 0-based, is the conjugate transpose, and is Mathlib's matrix inverse, a genuine inverse by linear independence.
import Mathlib import Definitions.Def_WeingartenCalc_Fundamental_TensorPower open MeasureTheory Matrix
namespace WeingartenCalc.Fundamental
theorem theorem_2_1
{G : Type*} [Group G] [TopologicalSpace G] [IsTopologicalGroup G] [CompactSpace G]
[T2Space G] [MeasurableSpace G] [BorelSpace G] (μ : Measure G) [μ.IsHaarMeasure]
[IsProbabilityMeasure μ] {N : ℕ} (U : G →* Matrix.unitaryGroup (Fin N) ℂ)
(hU : Continuous U) (d : ℕ)
{m : ℕ} (a : Fin m → ((Fin d → Fin N) → ℂ)) (ha : LinearIndependent ℂ a)
(hspan : Submodule.span ℂ (Set.range a) = invariants U d)
(i j : Fin d → Fin N) :
∫ g, ∏ x : Fin d, (U g : Matrix (Fin N) (Fin N) ℂ) (i x) (j x) ∂μ
= ∑ x : Fin m, ∑ y : Fin m,
coordMatrix a i x * weingartenMatrix a x y * (coordMatrix a)ᴴ y j := by sorry
end WeingartenCalc.Fundamental
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.