Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Dependency supports, Structural Diversity and the DSReg support criterion

Definition
DSReg_Basic

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

identifiabilityjacobian-sparsityjeparepresentation-learningsigned-permutation

Objects of Sections 2-3 and Appendix A of Zheng, Klindt, Balestriero and Schölkopf (2026).

  1. Latents, observations, law. The world latent is z∈Rdz\in\mathbb{R}^dz∈Rd with law μ\muμ, a probability measure on Rd\mathbb{R}^dRd (the standard Gaussian N(0,Id)N(0,I_d)N(0,Id​) under Theorem 1). An observation is x=g(z)∈Rpx=g(z)\in\mathbb{R}^px=g(z)∈Rp. The standard Gaussian is μ=⨂i=1dN(0,1)\mu=\bigotimes_{i=1}^d N(0,1)μ=⨂i=1d​N(0,1).
  2. Signed permutations and recovery (Definition 1). A d×dd\times dd×d matrix UUU is a signed permutation if there are a permutation π\piπ and signs si∈{±1}s_i\in\{\pm1\}si​∈{±1} with Uij=siU_{ij}=s_iUij​=si​ for j=π(i)j=\pi(i)j=π(i) and Uij=0U_{ij}=0Uij​=0 otherwise. A representation z^=h^(z)\hat z=\hat h(z)z^=h^(z) recovers the individual world latents if, for some such π,s\pi,sπ,s, z^i=sizπ(i)\hat z_i=s_iz_{\pi(i)}z^i​=si​zπ(i)​ μ\muμ-almost surely for every iii.
  3. Dependency Jacobian and supports (Section 3.2). D(z)=∂x/∂zD(z)=\partial x/\partial zD(z)=∂x/∂z is the p×dp\times dp×d Jacobian of ggg. A scalar function is active if it is nonzero on a set of positive μ\muμ measure. The a.e. support of a vector function vvv is supp⁡μ(v)={r:vr active}\operatorname{supp}_\mu(v)=\{r: v_r\text{ active}\}suppμ​(v)={r:vr​ active}. The footprint of latent ziz_izi​ is Si={r:Dri active}\mathcal S_i=\{r: D_{ri}\text{ active}\}Si​={r:Dri​ active}, the active set of row rrr is Ir={i:r∈Si}I_r=\{i: r\in\mathcal S_i\}Ir​={i:r∈Si​}, and the support count of a matrix function MMM is ∥M(⋅)∥0,μ=∣{(r,i):Mri active}∣\|M(\cdot)\|_{0,\mu}=|\{(r,i): M_{ri}\text{ active}\}|∥M(⋅)∥0,μ​=∣{(r,i):Mri​ active}∣.
  4. Assumptions 1 and 2. Structural Diversity: Si≠Sj\mathcal S_i\ne\mathcal S_jSi​=Sj​ for i≠ji\ne ji=j. Functional no-cancellation: for every row rrr, ∑i∈IrciDri=0\sum_{i\in I_r}c_iD_{ri}=0∑i∈Ir​​ci​Dri​=0 μ\muμ-a.e. forces ci=0c_i=0ci​=0 for all i∈Iri\in I_ri∈Ir​.
  5. DSReg criterion (eq. 3). Under the premise h(z)=Qzh(z)=Qzh(z)=Qz with Q∈O(d)Q\in O(d)Q∈O(d), the candidate latents z~=Rh(z)\tilde z=Rh(z)z~=Rh(z), R∈O(d)R\in O(d)R∈O(d), determine z=Q⊤R⊤z~z=Q^\top R^\top\tilde zz=Q⊤R⊤z~. The candidate Jacobian ∂x/∂z~\partial x/\partial\tilde z∂x/∂z~ is the Jacobian of z~↦g(Q⊤R⊤z~)\tilde z\mapsto g(Q^\top R^\top\tilde z)z~↦g(Q⊤R⊤z~) at z~=RQz\tilde z=RQzz~=RQz, viewed as a function of zzz. RRR is a support minimizer if R∈O(d)R\in O(d)R∈O(d) minimizes ∥∂x/∂z~∥0,μ\|\partial x/\partial\tilde z\|_{0,\mu}∥∂x/∂z~∥0,μ​ over O(d)O(d)O(d).
  6. Structural conditions (Proposition 1), on sets S1,…,Sd⊆[p]\mathcal S_1,\dots,\mathcal S_d\subseteq[p]S1​,…,Sd​⊆[p]. Intersection form: every kkk has a nonempty Ck⊆[p]\mathcal C_k\subseteq[p]Ck​⊆[p] with ⋂r∈Ck{i:r∈Si}={k}\bigcap_{r\in\mathcal C_k}\{i:r\in\mathcal S_i\}=\{k\}⋂r∈Ck​​{i:r∈Si​}={k}. Overlap-rank form: ∣⋃j∈CSj∣−rank⁡(MC)>∣Sk∣|\bigcup_{j\in\mathcal C}\mathcal S_j|-\operatorname{rank}(M^{\mathcal C})>|\mathcal S_k|∣⋃j∈C​Sj​∣−rank(MC)>∣Sk​∣ for all C⊆[d]\mathcal C\subseteq[d]C⊆[d] with ∣C∣≥2|\mathcal C|\ge2∣C∣≥2 and all k∈Ck\in\mathcal Ck∈C, where MrjC=1M^{\mathcal C}_{rj}=1MrjC​=1 exactly when j∈Cj\in\mathcal Cj∈C, r∈Sjr\in\mathcal S_jr∈Sj​ and r∈Sj′r\in\mathcal S_{j'}r∈Sj′​ for some other j′∈Cj'\in\mathcal Cj′∈C. Non-Inclusion: Si⊈Sj\mathcal S_i\not\subseteq\mathcal S_jSi​⊆Sj​ for i≠ji\ne ji=j. Structural Variability: ∣Si△Sj∣≥2|\mathcal S_i\triangle\mathcal S_j|\ge2∣Si​△Sj​∣≥2 for i≠ji\ne ji=j.
  7. Whitening (Lemma 4). Cov⁡(h)ij=E[(hi−Ehi)(hj−Ehj)]\operatorname{Cov}(h)_{ij}=E[(h_i-Eh_i)(h_j-Eh_j)]Cov(h)ij​=E[(hi​−Ehi​)(hj​−Ehj​)], and S−1/2S^{-1/2}S−1/2 is the inverse square root of a symmetric matrix by spectral calculus.
  8. Constants of Theorem 3 (Appendix A.4). ∥⋅∥2\|\cdot\|_2∥⋅∥2​ is the Euclidean norm and ∥⋅∥F\|\cdot\|_F∥⋅∥F​ the Frobenius norm. Gr=[⟨Dri,Dri′⟩L2(μ)]i,i′∈IrG_r=[\langle D_{ri},D_{ri'}\rangle_{L^2(\mu)}]_{i,i'\in I_r}Gr​=[⟨Dri​,Dri′​⟩L2(μ)​]i,i′∈Ir​​, σr=λmin⁡(Gr)1/2\sigma_r=\lambda_{\min}(G_r)^{1/2}σr​=λmin​(Gr​)1/2, σ=min⁡{σr:Ir≠∅}\sigma=\min\{\sigma_r:I_r\ne\emptyset\}σ=min{σr​:Ir​=∅}. vrj(U)=∥UIr,j∥2v_{rj}(U)=\|U_{I_r,j}\|_2vrj​(U)=∥UIr​,j​∥2​, s∗=∑i∣Si∣s^*=\sum_i|\mathcal S_i|s∗=∑i​∣Si​∣, ρ∗(U)\rho^*(U)ρ∗(U) is the (s∗+1)(s^*{+}1)(s∗+1)-th largest of the pdpdpd values vrj(U)v_{rj}(U)vrj​(U), 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​≥δ}, and ρ∗(δ)=min⁡U∈Kδρ∗(U)\rho^*(\delta)=\min_{U\in K_\delta}\rho^*(U)ρ∗(δ)=minU∈Kδ​​ρ∗(U), which is +∞+\infty+∞ when Kδ=∅K_\delta=\emptysetKδ​=∅. For an estimated Jacobian D^\widehat DD and threshold τ\tauτ, N^τ(R)=∣{(r,j):μ(∣(D^(z)Q⊤R⊤)rj∣>τ)>0}∣\widehat N_\tau(R)=|\{(r,j):\mu(|(\widehat D(z)Q^\top R^\top)_{rj}|>\tau)>0\}|Nτ​(R)=∣{(r,j):μ(∣(D(z)Q⊤R⊤)rj​∣>τ)>0}∣.

Formalization Note Vectors in Rn\mathbb{R}^nRn are functions Fin n→R\mathrm{Fin}\,n\to\mathbb{R}Finn→R and rotations are elements of Mathlib's orthogonal group. Dri(z)D_{ri}(z)Dri​(z) is the Fréchet derivative of ggg at zzz applied to the iii-th basis vector, read at coordinate rrr. The paper assumes ggg differentiable μ\muμ-a.e. with measurable Jacobian, and each statement carries these as hypotheses. Functional no-cancellation quantifies over coefficient vectors on all of [d][d][d] that vanish off IrI_rIr​. λmin⁡(Gr)\lambda_{\min}(G_r)λmin​(Gr​) is written as the minimum of c⊤Grcc^\top G_rcc⊤Gr​c over unit vectors ccc supported on IrI_rIr​. ρ∗(δ)\rho^*(\delta)ρ∗(δ) is an infimum in the extended reals, so it equals +∞+\infty+∞ on an empty KδK_\deltaKδ​. The inverse square root uses Mathlib's continuous functional calculus with x↦x−1/2x\mapsto x^{-1/2}x↦x−1/2.

Definition code
import Mathlib

/-!
Zheng, Klindt, Balestriero and Schölkopf, *DSReg: Provably Recovering Individual World Latents
without Reconstruction*, arXiv:2610.09457v1 (2026): signed-permutation identifiability
(Section 2), dependency Jacobians, dependency supports and footprints, Structural Diversity,
Functional no-cancellation and the DSReg support criterion (Section 3.2), the structural
conditions of Proposition 1 (Section 3.2), and the constants of the support pattern used by
Theorem 3 (Section 3.3 and Appendix A.4).

Latents `z` live in `ℝ^d`, written `Fin d → ℝ`, observations `x = g(z)` in `ℝ^p`, written
`Fin p → ℝ`; `μ` is the law of `z`. Matrices are `Matrix (Fin a) (Fin b) ℝ` and rotations are
elements of `Matrix.orthogonalGroup (Fin d) ℝ`.
-/

open MeasureTheory

noncomputable section

namespace DSReg

/-- Theorem 1 and Lemma 4 (Section 2, p. 3; Appendix A.4, p. 21): the standard Gaussian law
`N(0, I_d)` of the world latent `z`, with independent standard normal coordinates. -/
def stdGaussian (d : ℕ) : Measure (Fin d → ℝ) :=
  Measure.pi fun _ => ProbabilityTheory.gaussianReal 0 1

/-- Euclidean norm `‖v‖₂ = (∑ᵢ vᵢ²)^{1/2}` of a vector (used for rows `D_{r,:}`, `E_{r,:}` and
coefficient vectors in Theorem 3 and Lemma 5, Section 3.3 and Appendix A.4). -/
def vecNorm {n : ℕ} (v : Fin n → ℝ) : ℝ := Real.sqrt (∑ i, v i ^ 2)

/-- Frobenius norm `‖A‖_F = (∑ᵢⱼ Aᵢⱼ²)^{1/2}` (Theorem 3, Section 3.3, p. 7). -/
def frobNorm {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ) : ℝ :=
  Real.sqrt (∑ i, ∑ j, A i j ^ 2)

/-- Definition 1 and Theorem 2 (Sections 2-3.2): `U` is a signed permutation matrix, i.e. there
are a permutation `π` and signs `sᵢ ∈ {±1}` with `U_{ij} = sᵢ` if `j = π(i)` and `0` otherwise,
so that `(U z)ᵢ = sᵢ z_{π(i)}`. -/
def IsSignedPerm {d : ℕ} (U : Matrix (Fin d) (Fin d) ℝ) : Prop :=
  ∃ σ : Equiv.Perm (Fin d), ∃ s : Fin d → ℝ, (∀ i, s i = 1 ∨ s i = -1) ∧
    ∀ i j, U i j = if j = σ i then s i else 0

/-- Definition 1 (Section 2, p. 2): the representation `ẑ = zhat(z)` recovers the individual
world latents (is signed-permutation identifiable): for some permutation `π` of `[d]` and signs
`s₁, …, s_d ∈ {±1}`, `ẑᵢ = sᵢ z_{π(i)}` `μ`-almost surely for every `i ∈ [d]`. -/
def RecoversLatents {d : ℕ} (μ : Measure (Fin d → ℝ)) (zhat : (Fin d → ℝ) → Fin d → ℝ) : Prop :=
  ∃ σ : Equiv.Perm (Fin d), ∃ s : Fin d → ℝ, (∀ i, s i = 1 ∨ s i = -1) ∧
    ∀ i, ∀ᵐ z ∂μ, zhat z i = s i * z (σ i)

/-- Section 3.2, p. 4: the dependency Jacobian `D(z) = ∂x/∂z` of `x = g(z)`, the `p × d` matrix
with entries `D_{ri}(z) = ∂g_r/∂z_i (z)` (Mathlib's Fréchet derivative applied to the `i`-th basis
vector; the paper assumes `g` differentiable `μ`-a.e.). -/
def depJac {d p : ℕ} (g : (Fin d → ℝ) → Fin p → ℝ) (z : Fin d → ℝ) : Matrix (Fin p) (Fin d) ℝ :=
  fun r i => fderiv ℝ g z (Pi.single i 1) r

/-- Section 3.2, p. 4: a scalar function of the latent is *active* when it is nonzero on a set of
positive `μ` measure. -/
def IsActive {d : ℕ} (μ : Measure (Fin d → ℝ)) (f : (Fin d → ℝ) → ℝ) : Prop :=
  0 < μ {z | f z ≠ 0}

/-- Lemma 2 (Appendix A.2, p. 17): the a.e. support
`supp_μ(v) = {r : v_r(z) ≠ 0 on a set of positive μ measure}` of a vector-valued function. -/
def aeSupport {d p : ℕ} (μ : Measure (Fin d → ℝ)) (v : (Fin d → ℝ) → Fin p → ℝ) : Set (Fin p) :=
  {r | IsActive μ (fun z => v z r)}

/-- Section 3.2, p. 4: the dependency footprint
`S_i = {r : D_{ri}(z) ≠ 0 on a set of positive μ measure}` of latent `zᵢ`, for a matrix-valued
function `D` (in the paper, the dependency Jacobian). -/
def footprint {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ)
    (i : Fin d) : Set (Fin p) :=
  aeSupport μ (fun z r => D z r i)

/-- Assumption 2 (Section 3.2, p. 5): the active set `I_r = {i : D_{ri}(z) ≠ 0 on a set of
positive μ measure}` of observation row `r`, i.e. `{i : r ∈ S_i}`. -/
def activeRow {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ)
    (r : Fin p) : Set (Fin d) :=
  {i | r ∈ footprint μ D i}

/-- Section 3.2, p. 4: the support count `‖M(·)‖_{0,μ} = |{(r,i) : M_{ri}(z) ≠ 0 on a set of
positive μ measure}|` of a matrix-valued function `M`. -/
def supportCount {d p : ℕ} (μ : Measure (Fin d → ℝ))
    (M : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ) : ℕ :=
  Set.ncard {x : Fin p × Fin d | IsActive μ (fun z => M z x.1 x.2)}

/-- Assumption 1 (Structural Diversity, Section 3.2, p. 4), stated on footprints
`S_1, …, S_d`: they are pairwise distinct, `S_i ≠ S_j` for all `i ≠ j`. -/
def StructuralDiversity {d p : ℕ} (S : Fin d → Set (Fin p)) : Prop :=
  ∀ i j, i ≠ j → S i ≠ S j

/-- Assumption 2 (Functional no-cancellation, Section 3.2, p. 5): for each row `r`, if
`∑_{i ∈ I_r} cᵢ D_{ri}(z) = 0` for `μ`-a.e. `z` then `cᵢ = 0` for all `i ∈ I_r`. Coefficient
vectors are indexed by `[d]` and required to vanish off `I_r`. -/
def FunctionalNoCancellation {d p : ℕ} (μ : Measure (Fin d → ℝ))
    (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ) : Prop :=
  ∀ (r : Fin p) (c : Fin d → ℝ), (∀ i, i ∉ activeRow μ D r → c i = 0) →
    (∀ᵐ z ∂μ, ∑ i, c i * D z r i = 0) → ∀ i, c i = 0

/-- Lemma 1 and eq. (3) (Section 3.2, p. 5): the Jacobian `∂x/∂z̃` of the observation with
respect to the candidate latents `z̃ = R h(z) = R Q z`, evaluated at the point corresponding to
`z`. Under the premise `h(z) = Q z`, the candidate latents determine `z = Qᵀ Rᵀ z̃`, so `x` as a
function of `z̃` is `z̃ ↦ g(Qᵀ Rᵀ z̃)`, differentiated at `z̃ = R Q z`. -/
def candJac {d p : ℕ} (g : (Fin d → ℝ) → Fin p → ℝ) (Q R : Matrix (Fin d) (Fin d) ℝ)
    (z : Fin d → ℝ) : Matrix (Fin p) (Fin d) ℝ :=
  depJac (fun w => g ((Q.transpose * R.transpose).mulVec w)) ((R * Q).mulVec z)

/-- Eq. (3) (Section 3.2, p. 5): `R` minimizes the DSReg support criterion
`min_{R ∈ O(d)} ‖∂x/∂z̃‖_{0,μ}`, `z̃ = R h(z)`, over the orthogonal group. -/
def IsSupportMinimizer {d p : ℕ} (μ : Measure (Fin d → ℝ)) (g : (Fin d → ℝ) → Fin p → ℝ)
    (Q R : Matrix (Fin d) (Fin d) ℝ) : Prop :=
  R ∈ Matrix.orthogonalGroup (Fin d) ℝ ∧
    ∀ R' ∈ Matrix.orthogonalGroup (Fin d) ℝ,
      supportCount μ (candJac g Q R) ≤ supportCount μ (candJac g Q R')

/-- Proposition 1 (1), Structural Sparsity, intersection form (Section 3.2, p. 6): for every
`k ∈ [d]` there is a nonempty set `C_k` of observed variables with
`⋂_{r ∈ C_k} {i ∈ [d] : r ∈ S_i} = {k}`. -/
def SSIntersection {d p : ℕ} (S : Fin d → Set (Fin p)) : Prop :=
  ∀ k : Fin d, ∃ C : Set (Fin p), C.Nonempty ∧ (⋂ r ∈ C, {i : Fin d | r ∈ S i}) = {k}

open Classical in
/-- Proposition 1 (2) (Section 3.2, p. 6): the binary matrix `M^C` with `M^C_{rj} = 1` exactly
when `j ∈ C`, `r ∈ S_j` and `r ∈ S_{j'}` for some other `j' ∈ C`, and `0` otherwise. -/
def overlapMat {d p : ℕ} (S : Fin d → Set (Fin p)) (C : Finset (Fin d)) :
    Matrix (Fin p) (Fin d) ℝ :=
  fun r j => if j ∈ C ∧ r ∈ S j ∧ ∃ j' ∈ C, j' ≠ j ∧ r ∈ S j' then 1 else 0

/-- Proposition 1 (2), Structural Sparsity, overlap-rank form (Section 3.2, p. 6): for every
`C ⊆ [d]` with `|C| ≥ 2` and every `k ∈ C`, `|⋃_{j ∈ C} S_j| - rank(M^C) > |S_k|` (computed in
the integers; the rank is the rank over `ℝ`). -/
def SSOverlapRank {d p : ℕ} (S : Fin d → Set (Fin p)) : Prop :=
  ∀ C : Finset (Fin d), 2 ≤ C.card → ∀ k ∈ C,
    (((⋃ j ∈ C, S j).ncard : ℤ) - ((overlapMat S C).rank : ℤ)) > ((S k).ncard : ℤ)

/-- Proposition 1 (3), Non-Inclusion (Section 3.2, p. 6): `S_i ⊄ S_j` for all `i ≠ j`. -/
def NonInclusion {d p : ℕ} (S : Fin d → Set (Fin p)) : Prop :=
  ∀ i j, i ≠ j → ¬ S i ⊆ S j

/-- Proposition 1 (4), Structural Variability (Section 3.2, p. 6): `|S_i △ S_j| ≥ 2` for all
`i ≠ j`. -/
def StructuralVariability {d p : ℕ} (S : Fin d → Set (Fin p)) : Prop :=
  ∀ i j, i ≠ j → 2 ≤ (symmDiff (S i) (S j)).ncard

/-- Lemma 4 (Appendix A.4, p. 21): the covariance matrix `Cov(h)` of `h(z)` under `μ`,
`Cov(h)_{ij} = E[(hᵢ - E hᵢ)(hⱼ - E hⱼ)]`. -/
def covMat {d : ℕ} (μ : Measure (Fin d → ℝ)) (h : (Fin d → ℝ) → Fin d → ℝ) :
    Matrix (Fin d) (Fin d) ℝ :=
  fun i j => ∫ z, (h z i - ∫ y, h y i ∂μ) * (h z j - ∫ y, h y j ∂μ) ∂μ

/-- Lemma 4 (Appendix A.4, p. 21): the inverse square root `S^{-1/2}` of a symmetric matrix,
by the continuous functional calculus `x ↦ x^{-1/2}` on its spectrum. -/
def invSqrt {d : ℕ} (S : Matrix (Fin d) (Fin d) ℝ) : Matrix (Fin d) (Fin d) ℝ :=
  cfc (fun x : ℝ => (Real.sqrt x)⁻¹) S

/-- Appendix A.4, p. 22 ("Constants of the support pattern"): the row Gram matrix
`G_r = [⟨D_{ri}, D_{ri'}⟩_{L²(μ)}]`, written on all of `[d] × [d]`; the paper uses its
`I_r × I_r` block. -/
def rowGram {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ)
    (r : Fin p) : Matrix (Fin d) (Fin d) ℝ :=
  fun i i' => ∫ z, D z r i * D z r i' ∂μ

/-- Appendix A.4, p. 22: `σ_r = λ_min(G_r)^{1/2}`, the square root of the smallest eigenvalue of
the `I_r × I_r` Gram block, written as the minimum of the Rayleigh quotient `cᵀ G_r c` over unit
vectors `c` supported on `I_r`. -/
def sigmaRow {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ)
    (r : Fin p) : ℝ :=
  Real.sqrt (⨅ c : {c : Fin d → ℝ // (∀ i, i ∉ activeRow μ D r → c i = 0) ∧ vecNorm c = 1},
    ∑ i, ∑ i', c.1 i * rowGram μ D r i i' * c.1 i')

/-- Section 3.3, p. 7 and Appendix A.4, p. 22: `σ = min{σ_r : I_r ≠ ∅}`. -/
def sigmaMin {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ) :
    ℝ :=
  ⨅ r : {r : Fin p // (activeRow μ D r).Nonempty}, sigmaRow μ D r.1

/-- Appendix A.4, p. 22: `v_{rj}(U) = ‖U_{I_r, j}‖₂`, the norm of the part of column `j` of `U`
in the rows `I_r` (zero when `I_r = ∅`). -/
def colMass {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ)
    (U : Matrix (Fin d) (Fin d) ℝ) (r : Fin p) (j : Fin d) : ℝ :=
  Real.sqrt (∑ i, (activeRow μ D r).indicator (fun i => U i j ^ 2) i)

/-- Section 3.3, p. 7 and Appendix A.4, p. 22: the population minimum `s* = ∑ᵢ |S_i|`. -/
def sStar {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ) : ℕ :=
  ∑ i, (footprint μ D i).ncard

/-- Theorem 3 and Appendix A.4, p. 22: the distance `min_{P ∈ SP(d)} ‖U - P‖_F` from `U` to the
set `SP(d)` of signed permutation matrices. -/
def distSP {d : ℕ} (U : Matrix (Fin d) (Fin d) ℝ) : ℝ :=
  ⨅ P : {P : Matrix (Fin d) (Fin d) ℝ // IsSignedPerm P}, frobNorm (U - P.1)

/-- Appendix A.4, p. 22: `ρ*(U)`, the `(s*+1)`-th largest of the `pd` values `v_{rj}(U)`
(the values sorted in decreasing order with multiplicity, read at index `s*`; `0` if `s*+1 > pd`,
which the paper's hypotheses exclude). -/
def rhoStarU {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ)
    (U : Matrix (Fin d) (Fin d) ℝ) : ℝ :=
  (((Finset.univ : Finset (Fin p × Fin d)).val.map (fun x => colMass μ D U x.1 x.2)).sort
    (· ≥ ·)).getD (sStar μ D) 0

/-- Section 3.3, p. 7 and Appendix A.4, p. 22: the pattern margin
`ρ*(δ) = min_{U ∈ K_δ} ρ*(U)` over `K_δ = {U ∈ O(d) : min_{P ∈ SP(d)} ‖U - P‖_F ≥ δ}`, with
`ρ*(δ) = +∞` when `K_δ = ∅` (an infimum in the extended reals). -/
def rhoStar {d p : ℕ} (μ : Measure (Fin d → ℝ)) (D : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ)
    (δ : ℝ) : EReal :=
  ⨅ (U : Matrix (Fin d) (Fin d) ℝ) (_ : U ∈ Matrix.orthogonalGroup (Fin d) ℝ ∧ δ ≤ distSP U),
    (rhoStarU μ D U : EReal)

/-- Theorem 3 (Section 3.3, p. 7): the thresholded count
`N̂_τ(R) = |{(r,j) : μ(|(D̂(z) Qᵀ Rᵀ)_{rj}| > τ) > 0}|` for an estimated Jacobian `D̂`. -/
def threshCount {d p : ℕ} (μ : Measure (Fin d → ℝ))
    (Dhat : (Fin d → ℝ) → Matrix (Fin p) (Fin d) ℝ) (Q : Matrix (Fin d) (Fin d) ℝ) (τ : ℝ)
    (R : Matrix (Fin d) (Fin d) ℝ) : ℕ :=
  Set.ncard {x : Fin p × Fin d |
    0 < μ {z | τ < |(Dhat z * Q.transpose * R.transpose) x.1 x.2|}}

end DSReg
Source
Zheng, Klindt, Balestriero and Schölkopf, DSReg: Provably Recovering Individual World Latents without Reconstruction, arXiv:2610.09457v1 (2026), Section 2 (Definition 1), Section 3.2 (Assumptions 1-2, eq. (3), Proposition 1), Section 3.3 (Theorem 3), Appendix A.2-A.4 (Lemmas 2 and 4, constants of the support pattern), pp. 2-7, 17-23
Read-back

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

Throughout, ddd and ppp are arbitrary natural numbers, possibly 000. A latent is a vector z∈Rdz \in \mathbb{R}^dz∈Rd and an observation is a vector in Rp\mathbb{R}^pRp. Indices run over [d]={1,…,d}[d] = \{1,\dots,d\}[d]={1,…,d} or [p][p][p].

Whenever μ\muμ appears, it is an arbitrary measure on Rd\mathbb{R}^dRd. It is not assumed to be a probability measure, finite, or of any special form. "μ(A)\mu(A)μ(A)" for a set AAA that need not be measurable means its outer measure. "For μ\muμ-a.e. zzz" means the set of zzz where the property fails has μ\muμ-measure 000; if μ=0\mu = 0μ=0, every such statement holds trivially.

None of the definitions below assumes measurability, integrability or differentiability of the functions involved, except where this is stated explicitly.


stdGaussian. For each ddd, this is the product measure on Rd\mathbb{R}^dRd whose ddd coordinate factors are each the one-dimensional normal law with mean 000 and variance 111:

γd=⨂i=1dN(0,1).\gamma_d = \bigotimes_{i=1}^{d} \mathcal{N}(0,1).γd​=i=1⨂d​N(0,1).

The coordinates are therefore independent standard normals. When d=0d = 0d=0, R0\mathbb{R}^0R0 is a single point and γ0\gamma_0γ0​ is the unit point mass.


vecNorm. For v∈Rnv \in \mathbb{R}^nv∈Rn (any nnn, including n=0n=0n=0, where the value is 000):

∥v∥2=(∑i=1nvi2)1/2.\|v\|_2 = \Big(\sum_{i=1}^n v_i^2\Big)^{1/2}.∥v∥2​=(i=1∑n​vi2​)1/2.

frobNorm. For a real m×nm \times nm×n matrix AAA (any m,nm, nm,n; the empty matrix has norm 000):

∥A∥F=(∑i=1m∑j=1nAij2)1/2.\|A\|_F = \Big(\sum_{i=1}^m \sum_{j=1}^n A_{ij}^2\Big)^{1/2}.∥A∥F​=(i=1∑m​j=1∑n​Aij2​)1/2.

IsSignedPerm. A real d×dd\times dd×d matrix UUU is called a signed permutation matrix if there exist a permutation σ\sigmaσ of [d][d][d] and signs s1,…,sd∈{+1,−1}s_1,\dots,s_d \in \{+1,-1\}s1​,…,sd​∈{+1,−1} such that, for all i,ji,ji,j,

Uij={siif j=σ(i),0otherwise.U_{ij} = \begin{cases} s_i & \text{if } j = \sigma(i),\\ 0 & \text{otherwise.}\end{cases}Uij​={si​0​if j=σ(i),otherwise.​

Row iii thus has its single nonzero entry sis_isi​ in column σ(i)\sigma(i)σ(i). For d=0d=0d=0, the empty matrix qualifies vacuously.


RecoversLatents. Given a measure μ\muμ on Rd\mathbb{R}^dRd and an arbitrary map z^:Rd→Rd\hat z : \mathbb{R}^d \to \mathbb{R}^dz^:Rd→Rd, the statement "z^\hat zz^ recovers the latents under μ\muμ" means the following. There exist a single permutation σ\sigmaσ of [d][d][d] and signs s1,…,sd∈{±1}s_1,\dots,s_d \in \{\pm1\}s1​,…,sd​∈{±1} such that, for every i∈[d]i \in [d]i∈[d],

z^(z)i=si zσ(i)for μ-a.e. z.\hat z(z)_i = s_i\, z_{\sigma(i)} \quad \text{for } \mu\text{-a.e. } z.z^(z)i​=si​zσ(i)​for μ-a.e. z.

The exceptional null set may depend on iii. Since there are finitely many iii, this is equivalent to a single null set. No measurability of z^\hat zz^ is required. If μ=0\mu = 0μ=0, every z^\hat zz^ satisfies this. For d=0d=0d=0, it holds trivially.


depJac. For an arbitrary map g:Rd→Rpg : \mathbb{R}^d \to \mathbb{R}^pg:Rd→Rp and a point zzz, D(z)D(z)D(z) is the real p×dp\times dp×d matrix with entries

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

Here 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. Where ggg is differentiable at zzz, this is the partial derivative ∂gr/∂zi(z)\partial g_r/\partial z_i(z)∂gr​/∂zi​(z). Where ggg is not differentiable at zzz, the derivative is taken to be 000, so D(z)D(z)D(z) is the zero matrix. No differentiability assumption is built in.


IsActive. A function f:Rd→Rf : \mathbb{R}^d \to \mathbb{R}f:Rd→R is active for μ\muμ if

μ({z:f(z)≠0})>0.\mu\big(\{z : f(z) \neq 0\}\big) > 0.μ({z:f(z)=0})>0.

aeSupport. For v:Rd→Rpv : \mathbb{R}^d \to \mathbb{R}^pv:Rd→Rp, the a.e. support is the set of output indices whose coordinate function is active:

supp⁡μ(v)={r∈[p]:μ({z:vr(z)≠0})>0}.\operatorname{supp}_\mu(v) = \big\{ r \in [p] : \mu(\{z : v_r(z) \neq 0\}) > 0 \big\}.suppμ​(v)={r∈[p]:μ({z:vr​(z)=0})>0}.

footprint. For an arbitrary matrix-valued function D:Rd→Rp×dD : \mathbb{R}^d \to \mathbb{R}^{p\times d}D:Rd→Rp×d (not necessarily a Jacobian) and a column index i∈[d]i \in [d]i∈[d], the footprint of iii is

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

These are the rows in which column iii of DDD is nonzero on a set of positive measure.


activeRow. For DDD as above and a row r∈[p]r \in [p]r∈[p], the active set of row rrr is

Ir={i∈[d]:r∈Si}={i:μ({z:Dri(z)≠0})>0}.I_r = \{ i \in [d] : r \in S_i \} = \big\{ i : \mu(\{z : D_{ri}(z)\neq 0\}) > 0\big\}.Ir​={i∈[d]:r∈Si​}={i:μ({z:Dri​(z)=0})>0}.

supportCount. For M:Rd→Rp×dM : \mathbb{R}^d \to \mathbb{R}^{p\times d}M:Rd→Rp×d, the support count is the number of index pairs whose entry function is active:

∥M∥0,μ=#{(r,i)∈[p]×[d]:μ({z:Mri(z)≠0})>0}.\|M\|_{0,\mu} = \#\big\{ (r,i) \in [p]\times[d] : \mu(\{z : M_{ri}(z)\neq 0\}) > 0 \big\}.∥M∥0,μ​=#{(r,i)∈[p]×[d]:μ({z:Mri​(z)=0})>0}.

It is a natural number between 000 and pdpdpd.


StructuralDiversity. For an arbitrary family S1,…,SdS_1,\dots,S_dS1​,…,Sd​ of subsets of [p][p][p], Structural Diversity means Si≠SjS_i \neq S_jSi​=Sj​ whenever i≠ji \neq ji=j.

At most one of the sets may be empty, and distinctness is the only requirement. As used in the other definitions, the SiS_iSi​ would be footprints, but this definition accepts any family.


FunctionalNoCancellation. For μ\muμ and D:Rd→Rp×dD : \mathbb{R}^d \to \mathbb{R}^{p\times d}D:Rd→Rp×d, with IrI_rIr​ the active sets above, this means the following. For every row r∈[p]r\in[p]r∈[p] and every coefficient vector c∈Rdc \in \mathbb{R}^dc∈Rd with ci=0c_i = 0ci​=0 for all i∉Iri \notin I_ri∈/Ir​:

if∑i=1dci Dri(z)=0  for μ-a.e. z,thenci=0  for all i∈[d].\text{if}\quad \sum_{i=1}^d c_i\, D_{ri}(z) = 0 \ \text{ for } \mu\text{-a.e. } z, \qquad\text{then}\quad c_i = 0 \ \text{ for all } i\in[d].ifi=1∑d​ci​Dri​(z)=0  for μ-a.e. z,thenci​=0  for all i∈[d].

Equivalently, for each rrr, the functions {Dri}i∈Ir\{D_{ri}\}_{i\in I_r}{Dri​}i∈Ir​​ are linearly independent modulo μ\muμ-null sets. Rows with Ir=∅I_r = \emptysetIr​=∅ impose no condition. If μ=0\mu = 0μ=0, all IrI_rIr​ are empty and the condition holds trivially.


candJac. Take an arbitrary map g:Rd→Rpg:\mathbb{R}^d\to\mathbb{R}^pg:Rd→Rp and arbitrary real d×dd\times dd×d matrices Q,RQ, RQ,R; no orthogonality is assumed here. For each z∈Rdz\in\mathbb{R}^dz∈Rd, D~(z)\tilde D(z)D~(z) is the dependency Jacobian (as in depJac, with zero junk value at non-differentiable points) of the map

w  ↦  g(Q⊤R⊤w),w \;\mapsto\; g\big(Q^{\top} R^{\top} w\big),w↦g(Q⊤R⊤w),

evaluated at the point w=RQzw = RQzw=RQz. If ggg is differentiable at Q⊤R⊤RQzQ^\top R^\top R Q zQ⊤R⊤RQz, the chain rule gives

D~(z)=Dg(Q⊤R⊤RQz) Q⊤R⊤.\tilde D(z) = Dg\big(Q^\top R^\top R Q z\big)\, Q^\top R^\top.D~(z)=Dg(Q⊤R⊤RQz)Q⊤R⊤.

That point equals zzz when Q⊤R⊤RQ=IQ^\top R^\top R Q = IQ⊤R⊤RQ=I, for example when QQQ and RRR are orthogonal. Otherwise, the matrix is the derivative of the composite map if that map happens to be differentiable at RQzRQzRQz, and the zero matrix if it is not.


IsSupportMinimizer. For μ\muμ, ggg, an arbitrary d×dd\times dd×d matrix QQQ and a d×dd\times dd×d matrix RRR, "RRR is a support minimizer" means both of the following:

  • RRR is orthogonal (R⊤R=RR⊤=IR^\top R = R R^\top = IR⊤R=RR⊤=I);
  • for every orthogonal R′R'R′,  ∥D~R∥0,μ≤∥D~R′∥0,μ\ \|\tilde D_{R}\|_{0,\mu} \le \|\tilde D_{R'}\|_{0,\mu} ∥D~R​∥0,μ​≤∥D~R′​∥0,μ​.

Here D~R\tilde D_RD~R​ denotes the function z↦z\mapstoz↦ candJac(g,Q,R)(z)(g,Q,R)(z)(g,Q,R)(z) above, and ∥⋅∥0,μ\|\cdot\|_{0,\mu}∥⋅∥0,μ​ is the support count with respect to μ\muμ in the variable zzz. Thus RRR attains the minimum of the support count over the orthogonal group O(d)O(d)O(d). No function hhh appears, and nothing ties QQQ to any representation.


SSIntersection. For a family S1,…,Sd⊆[p]S_1,\dots,S_d \subseteq [p]S1​,…,Sd​⊆[p], this means: for every k∈[d]k\in[d]k∈[d] there is a nonempty set C⊆[p]C\subseteq[p]C⊆[p] with

⋂r∈C{i∈[d]:r∈Si}={k}.\bigcap_{r\in C} \{ i \in [d] : r \in S_i \} = \{k\}.r∈C⋂​{i∈[d]:r∈Si​}={k}.

Equivalently, kkk is the only index iii with C⊆SiC \subseteq S_iC⊆Si​. In particular, C⊆SkC \subseteq S_kC⊆Sk​, and every SkS_kSk​ is nonempty. If d≥1d \ge 1d≥1, this requires p≥1p \ge 1p≥1. For d=0d=0d=0, it holds vacuously.


overlapMat. For a family S1,…,Sd⊆[p]S_1,\dots,S_d\subseteq[p]S1​,…,Sd​⊆[p] and a subset C⊆[d]C\subseteq[d]C⊆[d], MCM^CMC is the real p×dp\times dp×d matrix with

MrjC={1if j∈C, r∈Sj, and r∈Sj′ for some j′∈C with j′≠j,0otherwise.M^C_{rj} = \begin{cases} 1 & \text{if } j\in C,\ r\in S_j, \text{ and } r \in S_{j'} \text{ for some } j'\in C \text{ with } j'\neq j,\\ 0 & \text{otherwise.}\end{cases}MrjC​={10​if j∈C, r∈Sj​, and r∈Sj′​ for some j′∈C with j′=j,otherwise.​

SSOverlapRank. For a family S1,…,Sd⊆[p]S_1,\dots,S_d\subseteq[p]S1​,…,Sd​⊆[p], this means: for every C⊆[d]C\subseteq[d]C⊆[d] with ∣C∣≥2|C|\ge 2∣C∣≥2 and every k∈Ck\in Ck∈C,

∣⋃j∈CSj∣−rank⁡R(MC)  >  ∣Sk∣.\Big|\bigcup_{j\in C} S_j\Big| - \operatorname{rank}_{\mathbb{R}}\big(M^C\big) \;>\; |S_k|.​j∈C⋃​Sj​​−rankR​(MC)>∣Sk​∣.

The inequality is strict, is computed in the integers (so negative left-hand sides are possible), and the rank is over R\mathbb{R}R. If d≤1d\le 1d≤1, there is no such CCC and the condition holds vacuously.


NonInclusion. For a family S1,…,Sd⊆[p]S_1,\dots,S_d\subseteq[p]S1​,…,Sd​⊆[p], this means Si⊈SjS_i\not\subseteq S_jSi​⊆Sj​ for all i≠ji\neq ji=j. Since ∅\emptyset∅ is contained in every set, this forces every SiS_iSi​ to be nonempty when d≥2d\ge 2d≥2.


StructuralVariability. For a family S1,…,Sd⊆[p]S_1,\dots,S_d\subseteq[p]S1​,…,Sd​⊆[p], this means ∣Si △ Sj∣≥2|S_i \,\triangle\, S_j| \ge 2∣Si​△Sj​∣≥2 for all i≠ji\neq ji=j, where △\triangle△ is the symmetric difference.


covMat. For μ\muμ and an arbitrary h:Rd→Rdh:\mathbb{R}^d\to\mathbb{R}^dh:Rd→Rd, Cov⁡(h)\operatorname{Cov}(h)Cov(h) is the d×dd\times dd×d matrix with

Cov⁡(h)ij=∫(hi(z)−∫hi dμ)(hj(z)−∫hj dμ) dμ(z).\operatorname{Cov}(h)_{ij} = \int \Big(h_i(z) - \int h_i\,d\mu\Big)\Big(h_j(z) - \int h_j\,d\mu\Big)\,d\mu(z).Cov(h)ij​=∫(hi​(z)−∫hi​dμ)(hj​(z)−∫hj​dμ)dμ(z).

Every integral of a non-integrable function is taken to be 000, both inner and outer. μ\muμ is not required to be a probability measure, so this coincides with the usual covariance only when μ\muμ is a probability measure and the relevant integrability holds.


invSqrt. For a real d×dd\times dd×d matrix SSS, S−1/2S^{-1/2}S−1/2 is obtained by applying to SSS the real function

x↦{x−1/2x>0,0x≤0x \mapsto \begin{cases} x^{-1/2} & x > 0,\\ 0 & x \le 0\end{cases}x↦{x−1/20​x>0,x≤0​

through the continuous functional calculus. Concretely:

  • If SSS is symmetric, then S−1/2=∑λϕ(λ)PλS^{-1/2} = \sum_\lambda \phi(\lambda) P_\lambdaS−1/2=∑λ​ϕ(λ)Pλ​, summing over eigenvalues λ\lambdaλ of SSS with spectral projections PλP_\lambdaPλ​, where ϕ\phiϕ is the function above. Eigenvalues that are ≤0\le 0≤0 are sent to 000.
  • If SSS is not symmetric, the result is the zero matrix.

rowGram. For μ\muμ, D:Rd→Rp×dD:\mathbb{R}^d\to\mathbb{R}^{p\times d}D:Rd→Rp×d and a row rrr, GrG_rGr​ is the full d×dd\times dd×d matrix with

(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).

Entries whose integrand is not integrable are 000.


sigmaRow. For μ\muμ, DDD and a row rrr, with IrI_rIr​ and GrG_rGr​ as above:

σr= inf⁡{c⊤Gr c : c∈Rd, ci=0 for i∉Ir, ∥c∥2=1} .\sigma_r = \sqrt{\ \inf\Big\{ c^\top G_r\, c \ :\ c\in\mathbb{R}^d,\ c_i = 0 \text{ for } i\notin I_r,\ \|c\|_2 = 1 \Big\}\ }.σr​= inf{c⊤Gr​c : c∈Rd, ci​=0 for i∈/Ir​, ∥c∥2​=1} ​.

The infimum is a real infimum. When Ir≠∅I_r\neq\emptysetIr​=∅, the feasible set is a compact sphere and the infimum is attained. It equals the smallest eigenvalue of the Ir×IrI_r\times I_rIr​×Ir​ block of GrG_rGr​, a symmetric matrix.

Two edge cases:

  • If Ir=∅I_r=\emptysetIr​=∅, there is no feasible ccc and the infimum of the empty set is 000, so σr=0\sigma_r = 0σr​=0.
  • If the infimum is negative (possible only if GrG_rGr​ fails to be positive semidefinite, e.g. through zero junk integrals), the square root of a negative number is taken to be 000.

sigmaMin.

σ=inf⁡{σr:r∈[p], Ir≠∅},\sigma = \inf\{ \sigma_r : r\in[p],\ I_r\neq\emptyset\},σ=inf{σr​:r∈[p], Ir​=∅},

a minimum over finitely many rows. If no row has a nonempty active set, the index set is empty and σ=0\sigma = 0σ=0.


colMass. For μ\muμ, DDD, a d×dd\times dd×d matrix UUU, a row r∈[p]r\in[p]r∈[p] and a column j∈[d]j\in[d]j∈[d]:

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 Ir⊆[d]I_r\subseteq[d]Ir​⊆[d]. It is 000 when Ir=∅I_r=\emptysetIr​=∅.


sStar. For μ\muμ and DDD, with footprints SiS_iSi​:

s∗=∑i=1d∣Si∣.s^* = \sum_{i=1}^d |S_i|.s∗=i=1∑d​∣Si​∣.

This equals the number of pairs (r,i)(r,i)(r,i) for which DriD_{ri}Dri​ is active, i.e. ∥D∥0,μ\|D\|_{0,\mu}∥D∥0,μ​, and lies between 000 and pdpdpd.


distSP. For a real d×dd\times dd×d matrix UUU:

dist⁡SP(U)=min⁡P∥U−P∥F,\operatorname{dist}_{SP}(U) = \min_{P} \|U - P\|_F,distSP​(U)=Pmin​∥U−P∥F​,

taken over all signed permutation matrices PPP (a finite nonempty set). For d=0d=0d=0, the value is 000.


rhoStarU. For μ\muμ, DDD and a d×dd\times dd×d matrix UUU, list the pdpdpd numbers vrj(U)v_{rj}(U)vrj​(U), (r,j)∈[p]×[d](r,j)\in[p]\times[d](r,j)∈[p]×[d], with multiplicity, sorted in non-increasing order. ρ∗(U)\rho^*(U)ρ∗(U) is the (s∗+1)(s^*+1)(s∗+1)-th entry of this list, i.e. the (s∗+1)(s^*+1)(s∗+1)-th largest value.

If s∗+1>pds^*+1 > pds∗+1>pd, which happens exactly when s∗=pds^* = pds∗=pd (every entry of DDD active), the value is 000.


rhoStar. For μ\muμ, DDD and any real δ\deltaδ, the value ρ∗(δ)\rho^*(\delta)ρ∗(δ) lies in the extended reals:

ρ∗(δ)=inf⁡{ρ∗(U) : U∈O(d), dist⁡SP(U)≥δ}.\rho^*(\delta) = \inf\big\{ \rho^*(U) \ :\ U \in O(d),\ \operatorname{dist}_{SP}(U) \ge \delta \big\}.ρ∗(δ)=inf{ρ∗(U) : U∈O(d), distSP​(U)≥δ}.

It is +∞+\infty+∞ when no orthogonal UUU satisfies dist⁡SP(U)≥δ\operatorname{dist}_{SP}(U)\ge\deltadistSP​(U)≥δ. δ\deltaδ is not restricted. For δ≤0\delta \le 0δ≤0, the set includes every orthogonal matrix, including the signed permutations themselves.


threshCount. For μ\muμ, an arbitrary function D^:Rd→Rp×d\hat D:\mathbb{R}^d\to\mathbb{R}^{p\times d}D^:Rd→Rp×d, arbitrary d×dd\times dd×d matrices QQQ and RRR, and any real τ\tauτ:

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

The inequality >τ>\tau>τ is strict, and no orthogonality of QQQ or RRR is assumed. If τ<0\tau<0τ<0, the set inside μ\muμ is all of Rd\mathbb{R}^dRd. In that case the count is pdpdpd when μ≠0\mu \neq 0μ=0 and 000 when μ=0\mu = 0μ=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