Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1: LeJEPA linear identifiability

Proved
LeJEPAWorldModel.lejepa_linear_identifiability

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

gaussian-measurehermite-polynomialsidentifiabilityself-supervised-learningworld-models

Consider the Gaussian world with 0<ρ<10<\rho<10<ρ<1. A positive pair is z∼N(0,IN)z\sim\mathcal N(0,I_N)z∼N(0,IN​) and z′=ρz+1−ρ2 ηz'=\rho z+\sqrt{1-\rho^2}\,\etaz′=ρz+1−ρ2​η, with η∼N(0,IN)\eta\sim\mathcal N(0,I_N)η∼N(0,IN​) independent of zzz. Let h:RN→RNh:\mathbb R^N\to\mathbb R^Nh:RN→RN be measurable with h(z)∼N(0,IN)h(z)\sim\mathcal N(0,I_N)h(z)∼N(0,IN​), and let L(h)=E∥h(z′)−h(z)∥2\mathcal L(h)=\mathbb E\|h(z')-h(z)\|^2L(h)=E∥h(z′)−h(z)∥2. Then:

  1. L(h)≥2(1−ρ)N\mathcal L(h)\ge2(1-\rho)NL(h)≥2(1−ρ)N;
  2. equality holds if and only if there is an orthogonal Q∈O(N)Q\in O(N)Q∈O(N) with h(z)=Qzh(z)=Qzh(z)=Qz for γN\gamma_NγN​-almost every zzz;
  3. at any such optimum, h(z′)∣h(z)∼N(ρ h(z),(1−ρ2)IN)h(z')\mid h(z)\sim\mathcal N\big(\rho\,h(z),(1-\rho^2)I_N\big)h(z′)∣h(z)∼N(ρh(z),(1−ρ2)IN​).

In words, any representation that satisfies both LeJEPA objectives recovers the latent variables up to a global rotation, together with their transition.

Formalization Note The identity h(z)=Qzh(z)=Qzh(z)=Qz is between random variables, so it is stated γN\gamma_NγN​-almost everywhere. Since h(z)∼N(0,IN)h(z)\sim\mathcal N(0,I_N)h(z)∼N(0,IN​), the conditional law in item 3 is equivalent to the statement that the pair (h(z),h(z′))(h(z),h(z'))(h(z),h(z′)) has the same joint law as (z,z′)(z,z')(z,z′). The Lean statement uses this joint-law form.

Preamble
import Mathlib
import Definitions.Def_LeJEPAWorldModel_Basic

open MeasureTheory ProbabilityTheory Filter Topology
open scoped ENNReal
Formal statement
namespace LeJEPAWorldModel

theorem lejepa_linear_identifiability (N : ℕ) (ρ : ℝ) (hρ0 : 0 < ρ) (hρ1 : ρ < 1)
    (h : (Fin N → ℝ) → Fin N → ℝ) (hmeas : Measurable h)
    (hlaw : (stdGaussian N).map h = stdGaussian N) :
    2 * (1 - ρ) * N ≤ alignLoss N ρ h ∧
    (alignLoss N ρ h = 2 * (1 - ρ) * N ↔
      ∃ Q ∈ Matrix.orthogonalGroup (Fin N) ℝ, ∀ᵐ z ∂stdGaussian N, h z = Q.mulVec z) ∧
    (alignLoss N ρ h = 2 * (1 - ρ) * N →
      (ouPairLaw N ρ).map (fun p => (h p.1, h p.2)) = ouPairLaw N ρ) := by sorry

end LeJEPAWorldModel
Source
Klindt, LeCun and Balestriero, When Does LeJEPA Learn a World Model?, arXiv:2605.26379v2 (2026), Section 4.1, Theorem 1, eqs. (1)-(3), p. 5; proof in Appendix A, pp. 19-22
Read-back

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

Fix a natural number NNN; the case N=0N = 0N=0 is allowed, and then R0\mathbb{R}^0R0 is a single point. Fix a real number ρ\rhoρ with

0<ρ<1.0 < \rho < 1 .0<ρ<1.

Let h:RN→RNh : \mathbb{R}^N \to \mathbb{R}^Nh:RN→RN be a Borel-measurable map. Let γN\gamma_NγN​ be the standard Gaussian on RN\mathbb{R}^NRN, the product of NNN copies of the one-dimensional normal law N(0,1)\mathcal{N}(0,1)N(0,1). The theorem assumes that hhh preserves γN\gamma_NγN​: if z∼γNz \sim \gamma_Nz∼γN​, then h(z)∼γNh(z) \sim \gamma_Nh(z)∼γN​, i.e. h#γN=γNh_{\#}\gamma_N = \gamma_Nh#​γN​=γN​. No other hypothesis is made on hhh. In particular, hhh is not assumed continuous, linear or invertible.

The pair law. Let πρ\pi_\rhoπρ​ be the joint law of (z,z′)(z, z')(z,z′) on RN×RN\mathbb{R}^N \times \mathbb{R}^NRN×RN, defined by:

  • zzz and η\etaη are independent, each with law γN\gamma_NγN​;
  • z′=ρz+1−ρ2 ηz' = \rho z + \sqrt{1-\rho^2}\,\etaz′=ρz+1−ρ2​η.

The alignment loss. Write ∥v∥2=∑i=1Nvi2\|v\|^2 = \sum_{i=1}^N v_i^2∥v∥2=∑i=1N​vi2​. The loss of hhh is the integral

Lρ(h)=E(z,z′)∼πρ[∥h(z′)−h(z)∥2].\mathcal{L}_\rho(h) = \mathbb{E}_{(z,z') \sim \pi_\rho}\big[\|h(z') - h(z)\|^2\big].Lρ​(h)=E(z,z′)∼πρ​​[∥h(z′)−h(z)∥2].

It is taken as a real-valued Bochner integral, so by convention it would equal 000 if the integrand were not integrable.

The three conclusions. Under these hypotheses, all of the following hold:

  1. Lower bound:
2(1−ρ) N  ≤  Lρ(h).2(1-\rho)\,N \;\le\; \mathcal{L}_\rho(h).2(1−ρ)N≤Lρ​(h).
  1. Characterization of equality: Lρ(h)=2(1−ρ)N\mathcal{L}_\rho(h) = 2(1-\rho)NLρ​(h)=2(1−ρ)N holds if and only if there is a real orthogonal N×NN \times NN×N matrix QQQ (so Q⊤Q=QQ⊤=INQ^\top Q = QQ^\top = I_NQ⊤Q=QQ⊤=IN​) such that
h(z)=Qzfor γN-almost every z∈RN.h(z) = Qz \quad \text{for } \gamma_N\text{-almost every } z \in \mathbb{R}^N .h(z)=Qzfor γN​-almost every z∈RN.
  1. Preservation of the pair law at equality: if Lρ(h)=2(1−ρ)N\mathcal{L}_\rho(h) = 2(1-\rho)NLρ​(h)=2(1−ρ)N, then the joint law of (h(z),h(z′))\big(h(z), h(z')\big)(h(z),h(z′)) for (z,z′)∼πρ(z,z') \sim \pi_\rho(z,z′)∼πρ​ equals πρ\pi_\rhoπρ​ itself.
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