Second Frobenius moment of an inverse-Wishart matrix:
ProvedGaussianMatrix.inverse_wishart_frobenius_momentLet be a standard Gaussian matrix with . Then is integrable and
This is the squared Frobenius norm of the inverse-Wishart matrix , ; it is the companion of the nuclear-norm second moment and follows from the second-order moments of the inverse-Wishart distribution. Since , it controls the fourth moments of the singular values of .
Formalization Note. Mathlib's inverse is total ( on the singular null set), which does not affect the integral; the conclusion is the conjunction of integrability and the identity.
import Definitions.Def_GaussianMatrix_basic open MeasureTheory ProbabilityTheory open scoped Matrix
namespace GaussianMatrix
theorem inverse_wishart_frobenius_moment {r k : ℕ} (hrk : r + 4 ≤ k) :
Integrable (fun G : Fin r → Fin k → ℝ => frobSq (Matrix.of G * (Matrix.of G)ᵀ)⁻¹)
(gaussianMatrix r k) ∧
∫ G, frobSq (Matrix.of G * (Matrix.of G)ᵀ)⁻¹ ∂(gaussianMatrix r k)
= (r : ℝ) * ((k : ℝ) - 1)
/ (((k : ℝ) - r) * ((k : ℝ) - r - 1) * ((k : ℝ) - r - 3)) := by sorry
end GaussianMatrixRead-back
What the Lean code literally says, in plain math · claude-fable-5-1
Throughout, denotes the measure called gaussianMatrix r k: the product measure on the function space in which every one of the coordinates is an independent standard normal ; it is a probability measure, and a sample is viewed as the real matrix with entries . Matrix inversion is Mathlib's total inverse on square real matrices: it is the usual inverse when the determinant is nonzero and is the zero matrix otherwise. Write for the bundle's frobSq.
Statement. Let be natural numbers with , and let be the Gram matrix of a sample . The theorem asserts the conjunction of:
-
Integrability. The function is integrable with respect to .
-
Value.
with cast to . Since , the factors , , are all at least , so the denominator is positive.
Edge cases. The integral is Lean's real Bochner integral (which is for non-integrable integrands; part 1 asserts integrability). On the null set where is singular, the inverse is the zero matrix and the integrand is . When the sum is empty, the integrand is identically , and the right-hand side is ; the hypothesis is then .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.