Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5: quantitative activity

Proved
DSReg.quantitative_activity

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 Functional no-cancellation and the bounded-rows condition ∥Dr,:(z)∥2≤M\|D_{r,:}(z)\|_2\le M∥Dr,:​(z)∥2​≤M for all rows rrr and μ\muμ-a.e. zzz. Let rrr be a row with Ir≠∅I_r\ne\emptysetIr​=∅, let c∈RIrc\in\mathbb{R}^{I_r}c∈RIr​ with ∥c∥2≤1\|c\|_2\le1∥c∥2​≤1, and set fc=∑i∈IrciDrif_c=\sum_{i\in I_r}c_iD_{ri}fc​=∑i∈Ir​​ci​Dri​. Then for every 0≤t<σr∥c∥20\le t<\sigma_r\|c\|_20≤t<σr​∥c∥2​,

μ(∣fc∣>t)≥σr2∥c∥22−t2M2>0.\mu\big(|f_c|>t\big)\ge\frac{\sigma_r^2\|c\|_2^2-t^2}{M^2}>0.μ(∣fc​∣>t)≥M2σr2​∥c∥22​−t2​>0.

Formalization Note ccc is a vector on [d][d][d] that vanishes off IrI_rIr​. The bounded-rows condition ess sup⁡zmax⁡r∥Dr,:(z)∥2≤M\operatorname{ess\,sup}_z\max_r\|D_{r,:}(z)\|_2\le Messsupz​maxr​∥Dr,:​(z)∥2​≤M is written as an almost-everywhere bound.

Preamble
import Mathlib
import Definitions.Def_DSReg_Basic

open MeasureTheory
Formal statement
namespace DSReg

theorem quantitative_activity {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)
    (hfnc : FunctionalNoCancellation μ (depJac g))
    (M : ℝ) (hM : ∀ᵐ z ∂μ, ∀ r, vecNorm (fun i => depJac g z r i) ≤ M)
    (r : Fin p) (hr : (activeRow μ (depJac g) r).Nonempty)
    (c : Fin d → ℝ) (hc : ∀ i, i ∉ activeRow μ (depJac g) r → c i = 0) (hc1 : vecNorm c ≤ 1)
    (t : ℝ) (ht0 : 0 ≤ t) (ht : t < sigmaRow μ (depJac g) r * vecNorm c) :
    (sigmaRow μ (depJac g) r ^ 2 * vecNorm c ^ 2 - t ^ 2) / M ^ 2 ≤
        (μ {z | t < |∑ i, c i * depJac g z r i|}).toReal ∧
      0 < (sigmaRow μ (depJac g) r ^ 2 * vecNorm c ^ 2 - t ^ 2) / M ^ 2 := 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 5, p. 22
Read-back

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

Setting. Let d,pd, pd,p be natural numbers and let μ\muμ be a probability measure on Rd\mathbb{R}^dRd. Let g:Rd→Rpg : \mathbb{R}^d \to \mathbb{R}^pg:Rd→Rp be any function. Its dependency Jacobian D(z)D(z)D(z) is the p×dp \times dp×d matrix

Dri(z)=∂gr∂zi(z),D_{ri}(z) = \frac{\partial g_r}{\partial z_i}(z),Dri​(z)=∂zi​∂gr​​(z),

the rrr-th component of the Fréchet derivative of ggg at zzz applied to the iii-th standard basis vector. At any point where ggg is not differentiable, this derivative is by convention the zero map, so D(z)=0D(z) = 0D(z)=0 there.

For a row r∈{1,…,p}r \in \{1,\dots,p\}r∈{1,…,p}, the active set is

Ir={ i∈{1,…,d}:μ({z:Dri(z)≠0})>0 }.I_r = \{\, i \in \{1,\dots,d\} : \mu(\{z : D_{ri}(z) \neq 0\}) > 0 \,\}.Ir​={i∈{1,…,d}:μ({z:Dri​(z)=0})>0}.

All norms ∥⋅∥\|\cdot\|∥⋅∥ below are Euclidean, ∥v∥=(∑ivi2)1/2\|v\| = \big(\sum_i v_i^2\big)^{1/2}∥v∥=(∑i​vi2​)1/2.

Hypotheses. The theorem assumes:

  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.
  3. Functional no-cancellation holds for DDD under μ\muμ. 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 ∑i=1dciDri(z)=0\sum_{i=1}^d c_i D_{ri}(z) = 0∑i=1d​ci​Dri​(z)=0 for μ\muμ-a.e. zzz, then c=0c = 0c=0.
  4. A real number MMM is given such that, for μ\muμ-a.e. zzz, every row of D(z)D(z)D(z) satisfies ∥(Dr1(z),…,Drd(z))∥≤M\|(D_{r1}(z),\dots,D_{rd}(z))\| \le M∥(Dr1​(z),…,Drd​(z))∥≤M.
    • No sign condition is imposed on MMM.
    • If M<0M < 0M<0, this hypothesis cannot hold, since μ\muμ is a probability measure.
  5. A fixed row rrr is given with Ir≠∅I_r \neq \emptysetIr​=∅.
  6. A vector c∈Rdc \in \mathbb{R}^dc∈Rd is given with ci=0c_i = 0ci​=0 for all i∉Iri \notin I_ri∈/Ir​ and ∥c∥≤1\|c\| \le 1∥c∥≤1.
  7. A real number ttt is given with 0≤t<σr∥c∥0 \le t < \sigma_r \|c\|0≤t<σr​∥c∥.
    • This forces σr>0\sigma_r > 0σr​>0 and c≠0c \neq 0c=0.

The constant σr\sigma_rσr​. It is defined in three steps:

  • The Gram matrix GrG_rGr​ has entries
(Gr)ii′=∫Dri(z) Dri′(z) dμ(z),(G_r)_{ii'} = \int D_{ri}(z)\, D_{ri'}(z)\, d\mu(z),(Gr​)ii′​=∫Dri​(z)Dri′​(z)dμ(z),

where a non-integrable integrand would by convention give the value 000.

  • Take the infimum
λr=inf⁡{∑i,i′ui(Gr)ii′ui′  :  u∈Rd, ui=0 for i∉Ir, ∥u∥=1},\lambda_r = \inf\Big\{ \sum_{i,i'} u_i (G_r)_{ii'} u_{i'} \;:\; u \in \mathbb{R}^d,\ u_i = 0 \text{ for } i \notin I_r,\ \|u\| = 1 \Big\},λr​=inf{i,i′∑​ui​(Gr​)ii′​ui′​:u∈Rd, ui​=0 for i∈/Ir​, ∥u∥=1},

taken in the reals. By convention, an empty or unbounded-below set would give infimum 000.

  • Set σr=λr\sigma_r = \sqrt{\lambda_r}σr​=λr​​, where the square root of a negative number is taken to be 000.

Conclusion. Write

κ=σr2∥c∥2−t2M2,\kappa = \frac{\sigma_r^2 \|c\|^2 - t^2}{M^2},κ=M2σr2​∥c∥2−t2​,

where division by 000 yields 000 by convention. The theorem asserts both of the following:

κ  ≤  μ({z:∣∑i=1dciDri(z)∣>t})andκ>0.\kappa \;\le\; \mu\Big(\Big\{ z : \Big|\sum_{i=1}^d c_i D_{ri}(z)\Big| > t \Big\}\Big) \qquad\text{and}\qquad \kappa > 0 .κ≤μ({z:​i=1∑d​ci​Dri​(z)​>t})andκ>0.

The measure on the left is a finite number, because μ\muμ is a probability measure. The inequality ∣⋅∣>t|\cdot| > t∣⋅∣>t inside the set is strict. Only M2M^2M2 enters the formula, so the sign of MMM plays no role there. The positivity claim κ>0\kappa > 0κ>0 in particular requires M≠0M \neq 0M=0 under the division convention.

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