Expected squared Frobenius norm of a pseudo-inverted Gaussian matrix:
ProvedGaussianMatrix.pinv_frobenius_momentLet be a standard Gaussian matrix with , and let be its pseudoinverse. Then is integrable and
In the notation of Halko–Martinsson–Tropp, is and the right-hand side reads : this is the inverse moment that enters the expected Frobenius error bound of the randomized SVD, and more generally every expected-error bound for Gaussian sketching with oversampling.
Formalization Note. is pinvR, which is on the null set where is singular; the conclusion is the conjunction of integrability and the identity. No lower bound on is needed ( gives ).
import Definitions.Def_GaussianMatrix_basic open MeasureTheory ProbabilityTheory open scoped Matrix
namespace GaussianMatrix
theorem pinv_frobenius_moment {r k : ℕ} (hrk : r + 2 ≤ k) :
Integrable (fun G : Fin r → Fin k → ℝ => frobSq (pinvR (Matrix.of G))) (gaussianMatrix r k) ∧
∫ G, frobSq (pinvR (Matrix.of G)) ∂(gaussianMatrix r k) = (r : ℝ) / ((k : ℝ) - r - 1) := 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. For an matrix , write
a real matrix (this is the bundle's pinvR); when is singular, is the zero matrix. The bundle's frobSq of a matrix is (the squared Frobenius norm), a sum over all entries.
Statement. Let be natural numbers with . The theorem asserts the conjunction of:
-
Integrability. The function is integrable with respect to .
-
Value.
where , are cast to real numbers and by the hypothesis, so the division is ordinary.
Edge cases. The integral is the real Bochner integral (which would be for a non-integrable integrand, but integrability is asserted in part 1). When the inner sum is empty, so the integrand is identically , and the right-hand side is ; the hypothesis is then . The sum in frobSq runs over the index set of (not ).
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.