Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 6: uniform pattern margin

Proved
DSReg.uniform_pattern_margin

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

identifiabilityjacobian-sparsityjeparepresentation-learningsigned-permutation

Let x=g(z)x=g(z)x=g(z), with ggg differentiable μ\muμ-a.e. and measurable Jacobian DDD. Assume Structural Diversity and Functional no-cancellation with d≥2d\ge2d≥2. Let δ>0\delta>0δ>0 be such that Kδ={U∈O(d):min⁡P∈SP(d)∥U−P∥F≥δ}K_\delta=\{U\in O(d):\min_{P\in SP(d)}\|U-P\|_F\ge\delta\}Kδ​={U∈O(d):minP∈SP(d)​∥U−P∥F​≥δ} is nonempty. Then the pattern margin is positive:

ρ∗(δ)=min⁡U∈Kδρ∗(U)>0,\rho^*(\delta)=\min_{U\in K_\delta}\rho^*(U)>0,ρ∗(δ)=U∈Kδ​min​ρ∗(U)>0,

where ρ∗(U)\rho^*(U)ρ∗(U) is the (s∗+1)(s^*{+}1)(s∗+1)-th largest of the values vrj(U)=∥UIr,j∥2v_{rj}(U)=\|U_{I_r,j}\|_2vrj​(U)=∥UIr​,j​∥2​ and s∗=∑i∣Si∣s^*=\sum_i|\mathcal S_i|s∗=∑i​∣Si​∣.

Formalization Note ρ∗(δ)\rho^*(\delta)ρ∗(δ) is the infimum over KδK_\deltaKδ​, taken in the extended reals.

Preamble
import Mathlib
import Definitions.Def_DSReg_Basic

open MeasureTheory
Formal statement
namespace DSReg

theorem uniform_pattern_margin {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)
    (hsd : StructuralDiversity (footprint μ (depJac g)))
    (hfnc : FunctionalNoCancellation μ (depJac g)) (hd : 2 ≤ d)
    (δ : ℝ) (hδ : 0 < δ) (hK : ∃ U ∈ Matrix.orthogonalGroup (Fin d) ℝ, δ ≤ distSP U) :
    0 < rhoStar μ (depJac g) δ := 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 6, p. 22
Read-back

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

Setting. Fix natural numbers ddd and ppp, and assume d≥2d \ge 2d≥2. Let μ\muμ be a probability measure on Rd\mathbb{R}^dRd. It is arbitrary, not necessarily Gaussian, and is the law of the latent zzz. Let g:Rd→Rpg : \mathbb{R}^d \to \mathbb{R}^pg:Rd→Rp be any function. Its dependency Jacobian is the p×dp \times dp×d matrix-valued function D(z)D(z)D(z) with entries

Dri(z)=(Dg(z) ei)r,D_{ri}(z) = \bigl(Dg(z)\, e_i\bigr)_r ,Dri​(z)=(Dg(z)ei​)r​,

where Dg(z)Dg(z)Dg(z) is the Fréchet derivative of ggg at zzz and eie_iei​ is the iii-th standard basis vector. At any point where ggg is not differentiable, this derivative is taken to be zero, so D(z)=0D(z) = 0D(z)=0 there.

Derived objects. Several objects are built from DDD and μ\muμ:

  • Footprint of latent i∈{1,…,d}i \in \{1,\dots,d\}i∈{1,…,d}:
Si={ r∈{1,…,p}:μ({z:Dri(z)≠0})>0 }.S_i = \{\, r \in \{1,\dots,p\} : \mu(\{z : D_{ri}(z) \neq 0\}) > 0 \,\}.Si​={r∈{1,…,p}:μ({z:Dri​(z)=0})>0}.
  • Active set of observation row rrr:
Ir={ i:r∈Si }.I_r = \{\, i : r \in S_i \,\}.Ir​={i:r∈Si​}.
  • Population support size:
s∗=∑i=1d∣Si∣,s^* = \sum_{i=1}^d |S_i|,s∗=i=1∑d​∣Si​∣,

a natural number with 0≤s∗≤pd0 \le s^* \le pd0≤s∗≤pd.

  • Column mass. For a d×dd\times dd×d matrix UUU, a row rrr and a column jjj:
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 is the Euclidean norm of the entries of column jjj of UUU in the rows indexed by IrI_rIr​. It equals 000 when Ir=∅I_r = \emptysetIr​=∅.

  • Pattern value ρ∗(U)\rho^*(U)ρ∗(U). Arrange the pdpdpd numbers vrj(U)v_{rj}(U)vrj​(U), for (r,j)∈{1,…,p}×{1,…,d}(r,j) \in \{1,\dots,p\}\times\{1,\dots,d\}(r,j)∈{1,…,p}×{1,…,d}, in decreasing order, counting repetitions. Then ρ∗(U)\rho^*(U)ρ∗(U) is the (s∗+1)(s^*+1)(s∗+1)-th entry of this list. By convention ρ∗(U)=0\rho^*(U)=0ρ∗(U)=0 if s∗+1>pds^*+1 > pds∗+1>pd.
  • Distance to signed permutations:
dist⁡SP(U)=min⁡P∥U−P∥F.\operatorname{dist}_{SP}(U) = \min_{P} \|U - P\|_F .distSP​(U)=Pmin​∥U−P∥F​.

Here ∥A∥F=(∑i,jAij2)1/2\|A\|_F = (\sum_{i,j} A_{ij}^2)^{1/2}∥A∥F​=(∑i,j​Aij2​)1/2, and PPP ranges over the finite set of d×dd\times dd×d signed permutation matrices. These are matrices with Pij=siP_{ij} = s_iPij​=si​ if j=π(i)j = \pi(i)j=π(i) and Pij=0P_{ij} = 0Pij​=0 otherwise, for some permutation π\piπ and signs si∈{+1,−1}s_i \in \{+1,-1\}si​∈{+1,−1}.

  • Pattern margin, valued in the extended reals:
ρ∗(δ)=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)≥δ}.

Here O(d)O(d)O(d) is the set of real orthogonal d×dd\times dd×d matrices, those with U⊤U=UU⊤=IU^\top U = UU^\top = IU⊤U=UU⊤=I. The margin is +∞+\infty+∞ if this set is empty.

Hypotheses. The statement assumes all of the following:

  1. ggg is differentiable at μ\muμ-almost every zzz.
  2. Every entry z↦Dri(z)z \mapsto D_{ri}(z)z↦Dri​(z) is a measurable function. No integrability is assumed.
  3. Structural Diversity: Si≠SjS_i \neq S_jSi​=Sj​ for all i≠ji \neq ji=j.
  4. Functional no-cancellation. For every row rrr, take any coefficient vector 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μ-almost every zzz, then c=0c = 0c=0. For rows with Ir=∅I_r = \emptysetIr​=∅ this condition holds automatically.
  5. δ\deltaδ is a real number with δ>0\delta > 0δ>0.
  6. There exists at least one orthogonal UUU with dist⁡SP(U)≥δ\operatorname{dist}_{SP}(U) \ge \deltadistSP​(U)≥δ. This guarantees that the set in the definition of ρ∗(δ)\rho^*(\delta)ρ∗(δ) is nonempty, so that ρ∗(δ)<+∞\rho^*(\delta) < +\inftyρ∗(δ)<+∞ is possible. The hypothesis implicitly restricts δ\deltaδ to be no larger than the largest distance any orthogonal matrix can have from the signed permutations.

Conclusion. The statement asserts

ρ∗(δ)>0\rho^*(\delta) > 0ρ∗(δ)>0

as an extended real number. In other words, the infimum of ρ∗(U)\rho^*(U)ρ∗(U) over all orthogonal UUU at Frobenius distance at least δ\deltaδ from every signed permutation matrix is strictly positive. This is a uniform lower bound, not merely positivity of each individual ρ∗(U)\rho^*(U)ρ∗(U).

The statement does not assert any explicit value or formula for this lower bound. The noise model, estimated Jacobians, thresholds and the Gaussian law do not appear in it.

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