Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4: whitening reduction

Proved
DSReg.whitening_reduction

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

identifiabilityjacobian-sparsityjeparepresentation-learningsigned-permutation

Let z∼N(0,Id)z\sim N(0,I_d)z∼N(0,Id​) and h(z)=Azh(z)=Azh(z)=Az for an invertible A∈Rd×dA\in\mathbb{R}^{d\times d}A∈Rd×d. Then Cov⁡(h)=AA⊤\operatorname{Cov}(h)=AA^\topCov(h)=AA⊤, the matrix

Q~=(AA⊤)−1/2A\tilde Q=(AA^\top)^{-1/2}AQ~​=(AA⊤)−1/2A

is orthogonal, and W=Cov⁡(h)−1/2W=\operatorname{Cov}(h)^{-1/2}W=Cov(h)−1/2 satisfies Wh(z)=Q~zWh(z)=\tilde QzWh(z)=Q~​z for every zzz. Whitening therefore reduces any invertible linear ambiguity to an orthogonal one.

Preamble
import Mathlib
import Definitions.Def_DSReg_Basic

open MeasureTheory
Formal statement
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 DSReg
Source
Zheng, Klindt, Balestriero and Schölkopf, DSReg: Provably Recovering Individual World Latents without Reconstruction, arXiv:2610.09457v1 (2026), Appendix A.4, Lemma 4, p. 21
Read-back

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

Let d≥0d \ge 0d≥0 be a natural number and let AAA be a real d×dd \times dd×d matrix whose determinant is invertible in R\mathbb{R}R, i.e. det⁡A≠0\det A \neq 0detA=0. For d=0d = 0d=0 the hypothesis holds trivially, since the empty matrix has determinant 111, and every conclusion is about 0×00 \times 00×0 matrices.

Notation.

  • γd\gamma_dγd​ is the standard Gaussian measure on Rd\mathbb{R}^dRd: the product of ddd copies of the real normal law N(0,1)N(0,1)N(0,1), so the coordinates are independent standard normals.
  • hA(z)=Azh_A(z) = AzhA​(z)=Az is the linear map Rd→Rd\mathbb{R}^d \to \mathbb{R}^dRd→Rd.
  • Cov⁡γd(hA)\operatorname{Cov}_{\gamma_d}(h_A)Covγd​​(hA​) is the d×dd\times dd×d matrix with entries
Cov⁡γd(hA)ij=∫((Az)i−∫(Ay)i dγd(y))((Az)j−∫(Ay)j dγd(y)) dγd(z).\operatorname{Cov}_{\gamma_d}(h_A)_{ij} = \int \Big((Az)_i - \int (Ay)_i \, d\gamma_d(y)\Big)\Big((Az)_j - \int (Ay)_j \, d\gamma_d(y)\Big)\, d\gamma_d(z).Covγd​​(hA​)ij​=∫((Az)i​−∫(Ay)i​dγd​(y))((Az)j​−∫(Ay)j​dγd​(y))dγd​(z).

The integrals are Lebesgue/Bochner integrals, with the convention that a non-integrable integrand has integral 000.

  • For a real square matrix SSS, S−1/2S^{-1/2}S−1/2 denotes the continuous functional calculus applied to SSS with the scalar function
ϕ(x)=1x.\phi(x) = \frac{1}{\sqrt{x}}.ϕ(x)=x​1​.

Under the conventions used, x=0\sqrt{x} = 0x​=0 for x≤0x \le 0x≤0 and 1/0=01/0 = 01/0=0, so ϕ(x)=0\phi(x) = 0ϕ(x)=0 for x≤0x \le 0x≤0. By the functional-calculus convention, the result is the zero matrix if SSS is not self-adjoint (symmetric) or if ϕ\phiϕ is not continuous on the spectrum of SSS.

  • O(d)O(d)O(d) is the real orthogonal group: matrices UUU with U⊤U=IU^\top U = IU⊤U=I and UU⊤=IU U^\top = IUU⊤=I.

Assertion. The theorem asserts that the following three statements hold simultaneously.

  1. The covariance matrix of AzAzAz under γd\gamma_dγd​ equals AA⊤AA^\topAA⊤:
Cov⁡γd(hA)=AA⊤.\operatorname{Cov}_{\gamma_d}(h_A) = A A^\top.Covγd​​(hA​)=AA⊤.
  1. The matrix (AA⊤)−1/2A(AA^\top)^{-1/2} A(AA⊤)−1/2A, with (⋅)−1/2(\cdot)^{-1/2}(⋅)−1/2 as defined above, is orthogonal:
(AA⊤)−1/2A∈O(d).(AA^\top)^{-1/2} A \in O(d).(AA⊤)−1/2A∈O(d).
  1. For every point z∈Rdz \in \mathbb{R}^dz∈Rd (pointwise, not merely almost everywhere),
(Cov⁡γd(hA))−1/2(Az)=((AA⊤)−1/2A) z.\big(\operatorname{Cov}_{\gamma_d}(h_A)\big)^{-1/2} (Az) = \big((AA^\top)^{-1/2} A\big)\, z.(Covγd​​(hA​))−1/2(Az)=((AA⊤)−1/2A)z.

Here the left-hand side applies the inverse square root of the covariance matrix from item 1 to the vector AzAzAz. The right-hand side applies the matrix from item 2 to zzz.

No further hypotheses are imposed on AAA beyond det⁡A≠0\det A \neq 0detA=0.

Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me