Theorem 3.2.11:
ProvedMuirheadMST.wishart_inv_projectionLet with and positive definite, and let be a matrix of rank . Then
Inverting a Wishart matrix, projecting onto directions and inverting again gives a Wishart matrix with fewer degrees of freedom. Special cases include the law for and the chi-square law of (Muirhead, Theorem 3.2.12).
Formalization Note Matrix inverses are Mathlib's ⁻¹ (zero for a singular matrix); for the matrices inverted are invertible almost surely.
import Mathlib import Definitions.Def_MuirheadMST_Wishart import Definitions.Def_MuirheadMST_WishartBlocks open MeasureTheory ProbabilityTheory
namespace MuirheadMST
theorem wishart_inv_projection (m n k : ℕ) (hmn : m ≤ n) (S : Matrix (Fin m) (Fin m) ℝ)
(hS : S.PosDef) (C : Matrix (Fin k) (Fin m) ℝ) (hC : C.rank = k) :
(wishart m n S).map (fun A => Matrix.of.symm ((C * (Matrix.of A)⁻¹ * C.transpose)⁻¹)) =
wishart k (n - m + k) (C * S⁻¹ * C.transpose)⁻¹ := by sorry
end MuirheadMSTRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Variables and hypotheses. are natural numbers with . is a positive definite real matrix in Mathlib's sense (symmetric, for ). is a real matrix of rank exactly (dimension of the column space), which forces . No other assumptions; is allowed, and forces .
The Wishart measure. is a measure on all real arrays (product σ-algebra, non-symmetric arrays included): draw independent rows with Mathlib's multivariate Gaussian law of mean and covariance (the point mass at if is not positive semidefinite); is the law of the Gram array .
The claim. With Mathlib's matrix inverse (the zero matrix when is singular) and mapping arrays to arrays,
an equality of measures on ; is the pushforward (formally the zero measure if were not a.e.-measurable).
Edge cases. is never truncated since . If is singular, is the zero array (for ); the map is defined on every array with the same inverse convention. On the right, is genuine and is positive definite (full row rank), so no zero-inverse junk enters. For both sides are measures on a one-point space and the statement says their total masses agree.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.