Lemma 4: whitening reduction
ProvedDSReg.whitening_reductionLet and for an invertible . Then , the matrix
is orthogonal, and satisfies for every . Whitening therefore reduces any invertible linear ambiguity to an orthogonal one.
import Mathlib import Definitions.Def_DSReg_Basic open MeasureTheory
namespace DSReg
theorem whitening_reduction {d : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (hA : IsUnit A.det) :
covMat (stdGaussian d) (fun z => A.mulVec z) = A * A.transpose ∧
invSqrt (A * A.transpose) * A ∈ Matrix.orthogonalGroup (Fin d) ℝ ∧
∀ z : Fin d → ℝ, (invSqrt (covMat (stdGaussian d) (fun z => A.mulVec z))).mulVec (A.mulVec z) =
(invSqrt (A * A.transpose) * A).mulVec z := by sorry
end DSRegRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number and let be a real matrix whose determinant is invertible in , i.e. . For the hypothesis holds trivially, since the empty matrix has determinant , and every conclusion is about matrices.
Notation.
- is the standard Gaussian measure on : the product of copies of the real normal law , so the coordinates are independent standard normals.
- is the linear map .
- is the matrix with entries
The integrals are Lebesgue/Bochner integrals, with the convention that a non-integrable integrand has integral .
- For a real square matrix , denotes the continuous functional calculus applied to with the scalar function
Under the conventions used, for and , so for . By the functional-calculus convention, the result is the zero matrix if is not self-adjoint (symmetric) or if is not continuous on the spectrum of .
- is the real orthogonal group: matrices with and .
Assertion. The theorem asserts that the following three statements hold simultaneously.
- The covariance matrix of under equals :
- The matrix , with as defined above, is orthogonal:
- For every point (pointwise, not merely almost everywhere),
Here the left-hand side applies the inverse square root of the covariance matrix from item 1 to the vector . The right-hand side applies the matrix from item 2 to .
No further hypotheses are imposed on beyond .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.