Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3: approximate recovery under Jacobian perturbation

Proved
DSReg.approximate_recovery

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

identifiabilityjacobian-sparsityjeparepresentation-learningsigned-permutation

Let the assumptions of Theorem 2 hold with d≥2d\ge2d≥2: μ\muμ is the law of zzz, ggg is differentiable μ\muμ-a.e. with measurable Jacobian DDD, h(z)=Qzh(z)=Qzh(z)=Qz μ\muμ-a.s. with Q∈O(d)Q\in O(d)Q∈O(d), and Structural Diversity and Functional no-cancellation hold. Assume also

ess sup⁡zmax⁡r∥Dr,:(z)∥2≤M<∞.\operatorname{ess\,sup}_z\max_r\|D_{r,:}(z)\|_2\le M<\infty.esssupz​rmax​∥Dr,:​(z)∥2​≤M<∞.

Let D^(z)=D(z)+E(z)\widehat D(z)=D(z)+E(z)D(z)=D(z)+E(z) with EEE measurable and ess sup⁡zmax⁡r∥Er,:(z)∥2≤ε\operatorname{ess\,sup}_z\max_r\|E_{r,:}(z)\|_2\le\varepsilonesssupz​maxr​∥Er,:​(z)∥2​≤ε, and for a threshold τ>ε\tau>\varepsilonτ>ε let

N^τ(R)=∣{(r,j):μ(∣(D^(z)Q⊤R⊤)rj∣>τ)>0}∣,R∈O(d).\widehat N_\tau(R)=\Big|\big\{(r,j):\mu\big(|(\widehat D(z)Q^\top R^\top)_{rj}|>\tau\big)>0\big\}\Big|,\qquad R\in O(d).Nτ​(R)=​{(r,j):μ(∣(D(z)Q⊤R⊤)rj​∣>τ)>0}​,R∈O(d).

If δ>0\delta>0δ>0 satisfies τ+ε<σ ρ∗(δ)\tau+\varepsilon<\sigma\,\rho^*(\delta)τ+ε<σρ∗(δ), then N^τ\widehat N_\tauNτ​ has a minimizer over O(d)O(d)O(d), and every minimizer R^\widehat RR satisfies

min⁡P∈SP(d)∥R^Q−P∥F<δ.\min_{P\in SP(d)}\|\widehat RQ-P\|_F<\delta.P∈SP(d)min​∥RQ−P∥F​<δ.

Formalization Note The essential-supremum bounds are written as almost-everywhere bounds. ρ∗(δ)\rho^*(\delta)ρ∗(δ) is an extended real that is +∞+\infty+∞ when Kδ=∅K_\delta=\emptysetKδ​=∅, and the condition τ+ε<σρ∗(δ)\tau+\varepsilon<\sigma\rho^*(\delta)τ+ε<σρ∗(δ) is read in the extended reals.

Preamble
import Mathlib
import Definitions.Def_DSReg_Basic

open MeasureTheory
Formal statement
namespace DSReg

theorem approximate_recovery {d p : ℕ} (μ : Measure (Fin d → ℝ)) [IsProbabilityMeasure μ]
    (g : (Fin d → ℝ) → Fin p → ℝ) (hdiff : ∀ᵐ z ∂μ, DifferentiableAt ℝ g z)
    (hmeas : ∀ r i, Measurable fun z => depJac g z r i)
    (h : (Fin d → ℝ) → Fin d → ℝ) (hhm : Measurable h) (Q : Matrix (Fin d) (Fin d) ℝ)
    (hQ : Q ∈ Matrix.orthogonalGroup (Fin d) ℝ) (hh : ∀ᵐ z ∂μ, h z = Q.mulVec z)
    (hsd : StructuralDiversity (footprint μ (depJac g)))
    (hfnc : FunctionalNoCancellation μ (depJac g)) (hd : 2 ≤ d)
    (M : ℝ) (hM : ∀ᵐ z ∂μ, ∀ r, vecNorm (fun i => depJac g z r i) ≤ M)
    (E : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ) (hEm : ∀ r i, Measurable fun z => E z r i)
    (ε : ℝ) (hE : ∀ᵐ z ∂μ, ∀ r, vecNorm (fun i => E z r i) ≤ ε)
    (τ : ℝ) (hτ : ε < τ) (δ : ℝ) (hδ : 0 < δ)
    (hcond : ((τ + ε : ℝ) : EReal) < (sigmaMin μ (depJac g) : EReal) * rhoStar μ (depJac g) δ) :
    (∃ R ∈ Matrix.orthogonalGroup (Fin d) ℝ, ∀ R' ∈ Matrix.orthogonalGroup (Fin d) ℝ,
      threshCount μ (fun z => depJac g z + E z) Q τ R ≤
        threshCount μ (fun z => depJac g z + E z) Q τ R') ∧
    ∀ R ∈ Matrix.orthogonalGroup (Fin d) ℝ,
      (∀ R' ∈ Matrix.orthogonalGroup (Fin d) ℝ,
        threshCount μ (fun z => depJac g z + E z) Q τ R ≤
          threshCount μ (fun z => depJac g z + E z) Q τ R') →
      distSP (R * Q) < δ := by sorry

end DSReg
Source
Zheng, Klindt, Balestriero and Schölkopf, DSReg: Provably Recovering Individual World Latents without Reconstruction, arXiv:2610.09457v1 (2026), Section 3.3, Theorem 3, p. 7; proof in Appendix A.4, p. 23
Read-back

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

Setting. Fix natural numbers ddd and ppp with d≥2d \ge 2d≥2. Latent vectors zzz lie in Rd\mathbb{R}^dRd and observations lie in Rp\mathbb{R}^pRp. The following data are given.

  • μ\muμ is a probability measure on Rd\mathbb{R}^dRd. It is otherwise arbitrary and need not be Gaussian.
  • g:Rd→Rpg : \mathbb{R}^d \to \mathbb{R}^pg:Rd→Rp is differentiable at μ\muμ-almost every zzz.
  • D(z)D(z)D(z) is the dependency Jacobian, the p×dp \times dp×d matrix with entries Dri(z)=∂gr/∂zi(z)D_{ri}(z) = \partial g_r/\partial z_i(z)Dri​(z)=∂gr​/∂zi​(z). Here Dri(z)D_{ri}(z)Dri​(z) is the rrr-th component of the Fréchet derivative of ggg at zzz applied to the iii-th standard basis vector. By convention it is 000 at points where ggg is not differentiable. Every entry z↦Dri(z)z \mapsto D_{ri}(z)z↦Dri​(z) is assumed measurable.
  • h:Rd→Rdh : \mathbb{R}^d \to \mathbb{R}^dh:Rd→Rd is measurable, QQQ is a d×dd\times dd×d orthogonal matrix, and h(z)=Qzh(z) = Qzh(z)=Qz for μ\muμ-a.e. zzz. Neither hhh nor these two hypotheses appear in the conclusion; only QQQ does.
  • M∈RM \in \mathbb{R}M∈R satisfies the following: for μ\muμ-a.e. zzz, every row of D(z)D(z)D(z) has Euclidean norm at most MMM, that is (∑iDri(z)2)1/2≤M\big(\sum_i D_{ri}(z)^2\big)^{1/2} \le M(∑i​Dri​(z)2)1/2≤M for all rrr. Since μ\muμ is a probability measure, this forces M≥0M \ge 0M≥0. MMM does not appear in the conclusion.
  • E:Rd→Rp×dE : \mathbb{R}^d \to \mathbb{R}^{p\times d}E:Rd→Rp×d is a perturbation with measurable entries. For μ\muμ-a.e. zzz, every row satisfies (∑iEri(z)2)1/2≤ε\big(\sum_i E_{ri}(z)^2\big)^{1/2} \le \varepsilon(∑i​Eri​(z)2)1/2≤ε. This forces ε≥0\varepsilon \ge 0ε≥0.
  • The estimated Jacobian is D^(z)=D(z)+E(z)\hat D(z) = D(z) + E(z)D^(z)=D(z)+E(z).
  • τ\tauτ and δ\deltaδ are reals with ε<τ\varepsilon < \tauε<τ and δ>0\delta > 0δ>0.

Footprints and structural hypotheses. For each latent index iii, the footprint is

Si={ r∈[p]:μ{z:Dri(z)≠0}>0 }.S_i = \{\, r \in [p] : \mu\{z : D_{ri}(z) \neq 0\} > 0 \,\}.Si​={r∈[p]:μ{z:Dri​(z)=0}>0}.

For each row rrr, the active set is

Ir={ i∈[d]:r∈Si }.I_r = \{\, i \in [d] : r \in S_i \,\}.Ir​={i∈[d]:r∈Si​}.

The structural hypotheses are:

  • Structural Diversity: Si≠SjS_i \neq S_jSi​=Sj​ for all i≠ji \neq ji=j.
  • Functional no-cancellation: for every row rrr and every c∈Rdc \in \mathbb{R}^dc∈Rd with ci=0c_i = 0ci​=0 for all i∉Iri \notin I_ri∈/Ir​, if ∑iciDri(z)=0\sum_i c_i D_{ri}(z) = 0∑i​ci​Dri​(z)=0 for μ\muμ-a.e. zzz, then c=0c = 0c=0.

Constants. The constants entering the key inequality are defined as follows.

  • For each row rrr, the row Gram matrix is
(Gr)ii′=∫DriDri′ dμ.(G_r)_{ii'} = \int D_{ri} D_{ri'} \, d\mu.(Gr​)ii′​=∫Dri​Dri′​dμ.
  • For each row rrr,
σr=(inf⁡{ c⊤Grc:c∈Rd, ∥c∥2=1, ci=0 for i∉Ir })1/2,\sigma_r = \Big(\inf\big\{\, c^\top G_r c : c \in \mathbb{R}^d,\ \|c\|_2 = 1,\ c_i = 0 \text{ for } i \notin I_r \,\big\}\Big)^{1/2},σr​=(inf{c⊤Gr​c:c∈Rd, ∥c∥2​=1, ci​=0 for i∈/Ir​})1/2,

where the square root of a negative number is taken to be 000.

  • The overall constant is
σ=inf⁡{σr:Ir≠∅}.\sigma = \inf\{\sigma_r : I_r \neq \emptyset\}.σ=inf{σr​:Ir​=∅}.

If every IrI_rIr​ is empty, this infimum over an empty family is taken to be 000. In all cases σ≥0\sigma \ge 0σ≥0.

  • Let s∗=∑i=1d∣Si∣s^* = \sum_{i=1}^d |S_i|s∗=∑i=1d​∣Si​∣.
  • For a d×dd\times dd×d matrix UUU and a pair (r,j)(r,j)(r,j), let
vrj(U)=(∑i∈IrUij2)1/2.v_{rj}(U) = \Big(\sum_{i \in I_r} U_{ij}^2\Big)^{1/2}.vrj​(U)=(i∈Ir​∑​Uij2​)1/2.

This equals 000 when Ir=∅I_r = \emptysetIr​=∅.

  • ρ∗(U)\rho^*(U)ρ∗(U) is the (s∗+1)(s^*+1)(s∗+1)-th largest of the pdpdpd numbers vrj(U)v_{rj}(U)vrj​(U), sorted decreasingly with multiplicity. It is defined to be 000 if s∗+1>pds^* + 1 > pds∗+1>pd.
  • dist⁡SP(U)=min⁡P∥U−P∥F\operatorname{dist}_{SP}(U) = \min_P \|U - P\|_FdistSP​(U)=minP​∥U−P∥F​, where ∥⋅∥F\|\cdot\|_F∥⋅∥F​ is the Frobenius norm and PPP ranges over signed permutation matrices. A signed permutation matrix has Pij=siP_{ij} = s_iPij​=si​ if j=π(i)j = \pi(i)j=π(i) and 000 otherwise, for some permutation π\piπ and signs si∈{±1}s_i \in \{\pm 1\}si​∈{±1}.
  • The pattern margin is the extended-real number
ρ∗(δ)=inf⁡{ρ∗(U):U∈O(d), dist⁡SP(U)≥δ}.\rho^*(\delta) = \inf\{\rho^*(U) : U \in O(d),\ \operatorname{dist}_{SP}(U) \ge \delta\}.ρ∗(δ)=inf{ρ∗(U):U∈O(d), distSP​(U)≥δ}.

It equals +∞+\infty+∞ if no orthogonal UUU is at distance at least δ\deltaδ.

Key hypothesis. The hypothesis linking the constants is the strict inequality in the extended reals

τ+ε<σ⋅ρ∗(δ).\tau + \varepsilon < \sigma \cdot \rho^*(\delta).τ+ε<σ⋅ρ∗(δ).

Under extended-real arithmetic, 0⋅(+∞)=00 \cdot (+\infty) = 00⋅(+∞)=0 and σ⋅(+∞)=+∞\sigma\cdot(+\infty) = +\inftyσ⋅(+∞)=+∞ when σ>0\sigma > 0σ>0. So if the set of far-away orthogonal UUU is empty, the hypothesis holds exactly when σ>0\sigma > 0σ>0.

Thresholded count. For a d×dd \times dd×d matrix RRR, the thresholded count is

N^τ(R)=∣{(r,j)∈[p]×[d]:μ{z:∣(D^(z) Q⊤R⊤)rj∣>τ}>0}∣.\hat N_\tau(R) = \Big|\big\{(r,j) \in [p]\times[d] : \mu\{z : |(\hat D(z)\, Q^\top R^\top)_{rj}| > \tau\} > 0\big\}\Big|.N^τ​(R)=​{(r,j)∈[p]×[d]:μ{z:∣(D^(z)Q⊤R⊤)rj​∣>τ}>0}​.

Here D^(z)Q⊤R⊤\hat D(z) Q^\top R^\topD^(z)Q⊤R⊤ is evaluated at the same point zzz, with no change of variables.

Conclusion. The theorem asserts both of the following.

  1. There exists an orthogonal RRR minimizing N^τ\hat N_\tauN^τ​ over the orthogonal group O(d)O(d)O(d), that is, N^τ(R)≤N^τ(R′)\hat N_\tau(R) \le \hat N_\tau(R')N^τ​(R)≤N^τ​(R′) for all R′∈O(d)R' \in O(d)R′∈O(d).
  2. Every orthogonal RRR that minimizes N^τ\hat N_\tauN^τ​ over O(d)O(d)O(d) in this sense satisfies the strict inequality
dist⁡SP(RQ)<δ.\operatorname{dist}_{SP}(RQ) < \delta.distSP​(RQ)<δ.
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