Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Second Frobenius moment of an inverse-Wishart matrix: E∥(GGT)−1∥F2=r(k−1)(k−r)(k−r−1)(k−r−3)\mathbb E\|(GG^{\mathsf T})^{-1}\|_F^2=\frac{r(k-1)}{(k-r)(k-r-1)(k-r-3)}E∥(GGT)−1∥F2​=(k−r)(k−r−1)(k−r−3)r(k−1)​

Proved
GaussianMatrix.inverse_wishart_frobenius_moment

by tc · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

gaussian-matrixprobabilityrandom-matrix-theoryrandomized-numerical-linear-algebra

Let G∈Rr×kG\in\mathbb R^{r\times k}G∈Rr×k be a standard Gaussian matrix with r≤k−4r\le k-4r≤k−4. Then ∥(GGT)−1∥F2\|(GG^{\mathsf T})^{-1}\|_F^2∥(GGT)−1∥F2​ is integrable and

E ∥(GGT)−1∥F2=r(k−1)(k−r)(k−r−1)(k−r−3).\mathbb E\,\bigl\|(GG^{\mathsf T})^{-1}\bigr\|_F^2=\frac{r(k-1)}{(k-r)(k-r-1)(k-r-3)} .E​(GGT)−1​F2​=(k−r)(k−r−1)(k−r−3)r(k−1)​.

This is the squared Frobenius norm of the inverse-Wishart matrix W−1W^{-1}W−1, W=GGT∼Wishartr(k,I)W=GG^{\mathsf T}\sim\mathrm{Wishart}_r(k,I)W=GGT∼Wishartr​(k,I); it is the companion of the nuclear-norm second moment and follows from the second-order moments E[(W−1)ij(W−1)kl]\mathbb E[(W^{-1})_{ij}(W^{-1})_{kl}]E[(W−1)ij​(W−1)kl​] of the inverse-Wishart distribution. Since ∥(GGT)−1∥F2=∥G†(G†)T∥F2\|(GG^{\mathsf T})^{-1}\|_F^2=\|G^{\dagger}(G^{\dagger})^{\mathsf T}\|_F^2∥(GGT)−1∥F2​=∥G†(G†)T∥F2​, it controls the fourth moments of the singular values of G†G^{\dagger}G†.

Formalization Note. Mathlib's inverse is total (000 on the singular null set), which does not affect the integral; the conclusion is the conjunction of integrability and the identity.

Preamble
import Definitions.Def_GaussianMatrix_basic

open MeasureTheory ProbabilityTheory
open scoped Matrix
Formal statement
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 GaussianMatrix
Source
J. A. Tropp, R. J. Webber, *Randomized algorithms for low-rank matrix approximation: design, analysis, and applications*, 2023, https://arxiv.org/abs/2306.12418 (v1), Appendix B p. 51, Lemma B.2 (Inverse moment bounds), third formula: E∥(GG∗)−1∥F2=r(k−1)(k−r)(k−r−1)(k−r−3)\mathbb E\|(GG^*)^{-1}\|_F^2=\frac{r(k-1)}{(k-r)(k-r-1)(k-r-3)}E∥(GG∗)−1∥F2​=(k−r)(k−r−1)(k−r−3)r(k−1)​ for r≤k−4r\le k-4r≤k−4.
Read-back

What the Lean code literally says, in plain math · claude-fable-5-1

Throughout, μr,k\mu_{r,k}μr,k​ denotes the measure called gaussianMatrix r k: the product measure on the function space {0,…,r−1}×{0,…,k−1}→R\{0,\dots,r-1\}\times\{0,\dots,k-1\}\to\mathbb{R}{0,…,r−1}×{0,…,k−1}→R in which every one of the rkrkrk coordinates is an independent standard normal N(0,1)\mathcal N(0,1)N(0,1); it is a probability measure, and a sample GGG is viewed as the real r×kr\times kr×k matrix with entries GijG_{ij}Gij​. Matrix inversion (⋅)−1(\cdot)^{-1}(⋅)−1 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 ∥A∥F2:=∑i∑jAij2\|A\|_F^2 := \sum_i\sum_j A_{ij}^2∥A∥F2​:=∑i​∑j​Aij2​ for the bundle's frobSq.

Statement. Let r,kr,kr,k be natural numbers with r+4≤kr+4\le kr+4≤k, and let W=GG⊤W = GG^{\top}W=GG⊤ be the r×rr\times rr×r Gram matrix of a sample GGG. The theorem asserts the conjunction of:

  1. Integrability. The function G↦∥(GG⊤)−1∥F2=∑i=0r−1∑j=0r−1((GG⊤)−1)ij2G\mapsto \big\|(GG^{\top})^{-1}\big\|_F^{2} = \sum_{i=0}^{r-1}\sum_{j=0}^{r-1}\big((GG^{\top})^{-1}\big)_{ij}^{2}G↦​(GG⊤)−1​F2​=∑i=0r−1​∑j=0r−1​((GG⊤)−1)ij2​ is integrable with respect to μr,k\mu_{r,k}μr,k​.

  2. Value.

∫∥(GG⊤)−1∥F2  dμr,k(G)  =  r (k−1)(k−r) (k−r−1) (k−r−3),\int \big\|(GG^{\top})^{-1}\big\|_F^{2}\;d\mu_{r,k}(G) \;=\; \frac{r\,(k-1)}{(k-r)\,(k-r-1)\,(k-r-3)},∫​(GG⊤)−1​F2​dμr,k​(G)=(k−r)(k−r−1)(k−r−3)r(k−1)​,

with r,kr,kr,k cast to R\mathbb{R}R. Since k≥r+4k\ge r+4k≥r+4, the factors k−rk-rk−r, k−r−1k-r-1k−r−1, k−r−3k-r-3k−r−3 are all at least 111, so the denominator is positive.

Edge cases. The integral is Lean's real Bochner integral (which is 000 for non-integrable integrands; part 1 asserts integrability). On the null set where GG⊤GG^{\top}GG⊤ is singular, the inverse is the zero matrix and the integrand is 000. When r=0r=0r=0 the sum is empty, the integrand is identically 000, and the right-hand side is 000; the hypothesis is then 4≤k4\le k4≤k.

Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by tc · Oct 9, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me