Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4 (as proved): bounded gradient and curvature of the empirical characteristic-function distance

Open
LeJEPA.ecfDistance_stability

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

fisher-informationmachine-learningself-supervised-learningstatistics

Let N≥1N\ge1N≥1, s>0s>0s>0, z∈RNz\in\mathbb{R}^Nz∈RN and i≤Ni\le Ni≤N. Write D^V(z)=∫e−s2t2∣φ^N(t)−e−t2/2∣2 dt\hat D_V(z)=\int e^{-s^2t^2}|\hat\varphi_N(t)-e^{-t^2/2}|^2\,dtD^V​(z)=∫e−s2t2∣φ^​N​(t)−e−t2/2∣2dt with φ^N(t)=1N∑jeitzj\hat\varphi_N(t)=\frac1N\sum_je^{itz_j}φ^​N​(t)=N1​∑j​eitzj​, viewed as a function of the single sample ziz_izi​. Then D^V\hat D_VD^V​ is differentiable in ziz_izi​ with

∣∂D^V∂zi∣≤4Ns2,\Big|\frac{\partial\hat D_V}{\partial z_i}\Big|\le\frac{4}{Ns^2},​∂zi​∂D^V​​​≤Ns24​,

and there is an absolute constant CCC such that D^V\hat D_VD^V​ is twice continuously differentiable in ziz_izi​ with

∣∂2D^V∂zi2∣≤CN⋅π2s3.\Big|\frac{\partial^2\hat D_V}{\partial z_i^2}\Big|\le\frac{C}{N}\cdot\frac{\sqrt\pi}{2s^3}.​∂zi2​∂2D^V​​​≤NC​⋅2s3π​​.

With s=1/σs=1/\sigmas=1/σ the first bound is 4σ2/N4\sigma^2/N4σ2/N.

Formalization Note This is the statement the proof in Appendix B.12 establishes, for the statistic D^V\hat D_VD^V​ without the factor NNN. Theorem 4 in Section 4.2.3 states the same bounds for the Epps–Pulley statistic EP=ND^VEP=N\hat D_VEP=ND^V​; for EPEPEP the first derivative is bounded by 4σ24\sigma^24σ2, not 4σ2/N4\sigma^2/N4σ2/N. With all NNN samples equal, the derivative of EPEPEP does not depend on NNN.

Preamble
import Mathlib
import Definitions.Def_LeJEPA_Basic

open MeasureTheory Matrix Filter Topology
open scoped ENNReal InnerProductSpace
Formal statement
namespace LeJEPA

theorem ecfDistance_stability :
    (∀ (N : ℕ) (hN : 0 < N) (s : ℝ) (hs : 0 < s) (z : Fin N → ℝ) (i : Fin N),
      DifferentiableAt ℝ (fun y => ecfDistance s (Function.update z i y)) (z i) ∧
      |deriv (fun y => ecfDistance s (Function.update z i y)) (z i)| ≤ 4 / (N * s ^ 2)) ∧
    ∃ C : ℝ, ∀ (N : ℕ) (hN : 0 < N) (s : ℝ) (hs : 0 < s) (z : Fin N → ℝ) (i : Fin N),
      ContDiff ℝ 2 (fun y => ecfDistance s (Function.update z i y)) ∧
      |deriv (deriv (fun y => ecfDistance s (Function.update z i y))) (z i)| ≤ C / N * (Real.sqrt Real.pi / (2 * s ^ 3)) := by sorry

end LeJEPA
Source
Balestriero and LeCun, LeJEPA: Provable and Scalable Self-Supervised Learning Without the Heuristics, arXiv:2511.08544v3 (2025), Section 4.2.3, Theorem 4, in the form established by its proof in Appendix B.12 (weight ws(t)=e−s2t2w_s(t)=e^{-s^2t^2}ws​(t)=e−s2t2, σ=1/s\sigma = 1/sσ=1/s)
Read-back

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

The statement is a conjunction of two claims about the empirical characteristic-function distance, viewed as a function of a single sample point.

Objects involved.

  • NNN is a natural number (the sample size) and sss is a real number (the bandwidth).
  • z=(z1,…,zN)∈RNz = (z_1,\dots,z_N) \in \mathbb{R}^Nz=(z1​,…,zN​)∈RN is a sample of real numbers.
  • The empirical characteristic function is
φ^z(t)=1N∑j=1Ne itzj,t∈R.\hat\varphi_z(t) = \frac{1}{N}\sum_{j=1}^{N} e^{\,i t z_j}, \qquad t \in \mathbb{R}.φ^​z​(t)=N1​j=1∑N​eitzj​,t∈R.
  • The standard Gaussian characteristic function is φG(t)=e−t2/2\varphi_G(t) = e^{-t^2/2}φG​(t)=e−t2/2.
  • The distance is
D^s(z)=∫Re−s2t2 ∣φ^z(t)−φG(t)∣2 dt,\hat D_s(z) = \int_{\mathbb{R}} e^{-s^2 t^2}\,\bigl|\hat\varphi_z(t) - \varphi_G(t)\bigr|^2\,dt,D^s​(z)=∫R​e−s2t2​φ^​z​(t)−φG​(t)​2dt,

where ∣⋅∣|\cdot|∣⋅∣ is the complex modulus. By convention, this integral would be assigned the value 000 if the integrand were not integrable.

  • For an index i∈{1,…,N}i \in \{1,\dots,N\}i∈{1,…,N}, let fs,z,i:R→Rf_{s,z,i}:\mathbb{R}\to\mathbb{R}fs,z,i​:R→R be the function
fs,z,i(y)=D^s(z1,…,zi−1, y, zi+1,…,zN).f_{s,z,i}(y) = \hat D_s(z_1,\dots,z_{i-1},\,y,\,z_{i+1},\dots,z_N).fs,z,i​(y)=D^s​(z1​,…,zi−1​,y,zi+1​,…,zN​).

That is, the iii-th sample point is replaced by yyy and all others are held fixed. All derivatives below are ordinary one-variable derivatives of fs,z,if_{s,z,i}fs,z,i​, evaluated at the original point y=ziy = z_iy=zi​.

Claim 1 (first-derivative bound). Take any natural number NNN with N>0N > 0N>0, any real s>0s > 0s>0, any z∈RNz \in \mathbb{R}^Nz∈RN, and any index iii. Then fs,z,if_{s,z,i}fs,z,i​ is differentiable at ziz_izi​, and

∣fs,z,i′(zi)∣≤4Ns2.\bigl|f_{s,z,i}'(z_i)\bigr| \le \frac{4}{N s^2}.​fs,z,i′​(zi​)​≤Ns24​.

Claim 2 (second-derivative bound). There exists a single real constant CCC with the following property. Take any N>0N > 0N>0, any s>0s > 0s>0, any z∈RNz \in \mathbb{R}^Nz∈RN, and any index iii. Then:

  • fs,z,if_{s,z,i}fs,z,i​ is twice continuously differentiable on all of R\mathbb{R}R;
  • its second derivative satisfies
∣fs,z,i′′(zi)∣≤CN⋅π2s3.\bigl|f_{s,z,i}''(z_i)\bigr| \le \frac{C}{N}\cdot\frac{\sqrt{\pi}}{2 s^3}.​fs,z,i′′​(zi​)​≤NC​⋅2s3π​​.

Notes on the quantifiers.

  • CCC is chosen once, before NNN, sss, zzz and iii. It may not depend on any of them.
  • The statement places no sign or size restriction on CCC and gives no explicit value for it; only its existence is asserted. Because the left-hand side is nonnegative, any witness must make the right-hand side nonnegative.
  • The hypotheses N>0N > 0N>0 and s>0s > 0s>0 exclude the empty sample and a zero or negative bandwidth. Hence neither bound involves division by zero.
  • N=1N = 1N=1 is allowed, in which case zzz is a single point.
  • The sample points zjz_jzj​ are arbitrary reals. They may repeat and need not come from any distribution.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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