Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3: nuisance costs alignment

Open
PlatonicJEPA.nuisance_costs_alignment

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

machine-learningplatonic-representation-hypothesisrepresentation-learningspectral-theory

Let f1f_1f1​ and f2f_2f2​ be centred, whitened encoders of two modalities into Rk\mathbb{R}^kRk, k≥1k\ge1k≥1, written em(z,ν)e_m(z,\nu)em​(z,ν) on observations of state zzz with nuisance ν∼qm\nu\sim q_mν∼qm​, the state and the nuisances being independent. Over paired observations (x1,x2)(x_1,x_2)(x1​,x2​) of one world state with independent nuisances, for every Q∈O(k)Q\in O(k)Q∈O(k),

E ∥Qf1(x1)−f2(x2)∥2≥2k(1−min⁡mρ(fm)),E\,\|Qf_1(x_1)-f_2(x_2)\|^2\ge2k\Big(1-\min_m\rho(f_m)\Big),E∥Qf1​(x1​)−f2​(x2​)∥2≥2k(1−mmin​ρ(fm​)),

and ρ(fm)=1\rho(f_m)=1ρ(fm​)=1 if and only if fm(x)f_m(x)fm​(x) is a function of the world state alone.

Preamble
import Mathlib
import Definitions.Def_PlatonicJEPA_Basic

open MeasureTheory Filter Topology
Formal statement
namespace PlatonicJEPA

theorem nuisance_costs_alignment {Z N₁ N₂ : Type*} [Fintype Z] [DecidableEq Z] [Fintype N₁]
    [Fintype N₂] {k : ℕ} (hk : 1 ≤ k)
    (p : Z → ℝ) (hp : ∀ z, 0 < p z) (hp1 : ∑ z, p z = 1)
    (q₁ : N₁ → ℝ) (hq₁ : ∀ ν, 0 < q₁ ν) (hq₁1 : ∑ ν, q₁ ν = 1)
    (q₂ : N₂ → ℝ) (hq₂ : ∀ ν, 0 < q₂ ν) (hq₂1 : ∑ ν, q₂ ν = 1)
    (e₁ : Z → N₁ → Fin k → ℝ) (e₂ : Z → N₂ → Fin k → ℝ)
    (he₁ : IsWhitenedObs p q₁ e₁) (he₂ : IsWhitenedObs p q₂ e₂) :
    (∀ Q : Matrix.orthogonalGroup (Fin k) ℝ,
      2 * k * (1 - min (rho p q₁ e₁) (rho p q₂ e₂)) ≤
        ∑ z, ∑ ν₁, ∑ ν₂, p z * q₁ ν₁ * q₂ ν₂ * sqNorm (rot Q (e₁ z ν₁) - e₂ z ν₂)) ∧
    (rho p q₁ e₁ = 1 ↔ ∀ z ν ν', e₁ z ν = e₁ z ν') ∧
    (rho p q₂ e₂ = 1 ↔ ∀ z ν ν', e₂ z ν = e₂ z ν') := by sorry

end PlatonicJEPA
Source
Balestriero and LeCun, Proving and Improving the Platonic Representation Hypothesis with JEPAs, arXiv:2610.39302v1 (2026), Section 2.3, Theorem 3, eq. (4), p. 5; proof in Appendix A.4
Read-back

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

The statement concerns the following objects:

  • Spaces. A finite set ZZZ of world states with decidable equality, two finite nuisance sets N1N_1N1​ and N2N_2N2​, and a natural number kkk with k≥1k \ge 1k≥1. The embedding space is Rk\mathbb{R}^kRk, with ∥v∥2=∑i=1kvi2\|v\|^2 = \sum_{i=1}^k v_i^2∥v∥2=∑i=1k​vi2​.
  • Probabilities. ppp is a function on ZZZ with p(z)>0p(z) > 0p(z)>0 for every zzz and ∑zp(z)=1\sum_z p(z) = 1∑z​p(z)=1. For j=1,2j = 1, 2j=1,2, qjq_jqj​ is a function on NjN_jNj​ with qj(ν)>0q_j(\nu) > 0qj​(ν)>0 for every ν\nuν and ∑νqj(ν)=1\sum_\nu q_j(\nu) = 1∑ν​qj​(ν)=1. These normalisations force ZZZ, N1N_1N1​ and N2N_2N2​ to be non-empty.
  • Encoders. For j=1,2j = 1, 2j=1,2, ej:Z×Nj→Rke_j : Z \times N_j \to \mathbb{R}^kej​:Z×Nj​→Rk is an arbitrary function, written ej(z,ν)e_j(z,\nu)ej​(z,ν). No relation between e1e_1e1​ and e2e_2e2​ is assumed, other than that both are tied to the same ppp.

Whitening hypothesis. Each eje_jej​ is assumed centred and whitened under the product law p(z) qj(ν)p(z)\,q_j(\nu)p(z)qj​(ν) on Z×NjZ \times N_jZ×Nj​. That is, for all coordinates a,b∈{1,…,k}a, b \in \{1,\dots,k\}a,b∈{1,…,k}:

∑z∑νp(z) qj(ν) ej(z,ν)a=0,∑z∑νp(z) qj(ν) ej(z,ν)a ej(z,ν)b=δab.\sum_{z}\sum_{\nu} p(z)\,q_j(\nu)\,e_j(z,\nu)_a = 0, \qquad \sum_{z}\sum_{\nu} p(z)\,q_j(\nu)\,e_j(z,\nu)_a\,e_j(z,\nu)_b = \delta_{ab}.z∑​ν∑​p(z)qj​(ν)ej​(z,ν)a​=0,z∑​ν∑​p(z)qj​(ν)ej​(z,ν)a​ej​(z,ν)b​=δab​.

This hypothesis can only hold if Z×NjZ \times N_jZ×Nj​ has at least k+1k+1k+1 elements. If ∣Z∣⋅∣Nj∣≤k|Z|\cdot|N_j| \le k∣Z∣⋅∣Nj​∣≤k, no such eje_jej​ exists and the theorem is vacuous.

The quantity ρj\rho_jρj​. Define the conditional mean

mj(z)=∑νqj(ν) ej(z,ν)∈Rk,m_j(z) = \sum_\nu q_j(\nu)\, e_j(z,\nu) \in \mathbb{R}^k,mj​(z)=ν∑​qj​(ν)ej​(z,ν)∈Rk,

and the k×kk \times kk×k matrix

(Cj)ab=∑zp(z) mj(z)a mj(z)b.(C_j)_{ab} = \sum_z p(z)\, m_j(z)_a\, m_j(z)_b.(Cj​)ab​=z∑​p(z)mj​(z)a​mj​(z)b​.

Then

ρj=1k∑λλ,\rho_j = \frac{1}{k}\sum_{\lambda} \sqrt{\lambda},ρj​=k1​λ∑​λ​,

where the sum runs over the real roots λ\lambdaλ of the characteristic polynomial of CjC_jCj​, counted with multiplicity. The square root of a negative number is taken to be 000. Since CjC_jCj​ is symmetric positive semidefinite, its kkk roots are real and non-negative, so ρj=tr⁡(Cj1/2)/k\rho_j = \operatorname{tr}(C_j^{1/2})/kρj​=tr(Cj1/2​)/k.

Conclusion. Under these hypotheses, all three of the following hold.

  1. For every orthogonal matrix Q∈Rk×kQ \in \mathbb{R}^{k\times k}Q∈Rk×k (that is, Q⊤Q=IQ^\top Q = IQ⊤Q=I):
2k (1−min⁡(ρ1,ρ2))  ≤  ∑z∈Z∑ν1∈N1∑ν2∈N2p(z) q1(ν1) q2(ν2) ∥Q e1(z,ν1)−e2(z,ν2)∥2.2k\,\bigl(1 - \min(\rho_1,\rho_2)\bigr) \;\le\; \sum_{z\in Z}\sum_{\nu_1\in N_1}\sum_{\nu_2\in N_2} p(z)\,q_1(\nu_1)\,q_2(\nu_2)\,\bigl\|Q\,e_1(z,\nu_1) - e_2(z,\nu_2)\bigr\|^2.2k(1−min(ρ1​,ρ2​))≤z∈Z∑​ν1​∈N1​∑​ν2​∈N2​∑​p(z)q1​(ν1​)q2​(ν2​)​Qe1​(z,ν1​)−e2​(z,ν2​)​2.

The right-hand side is the expected squared distance between the rotated first embedding and the second embedding. Here a single state z∼pz \sim pz∼p is shared, and the nuisances ν1∼q1\nu_1 \sim q_1ν1​∼q1​ and ν2∼q2\nu_2 \sim q_2ν2​∼q2​ are drawn independently.

  1. ρ1=1\rho_1 = 1ρ1​=1 if and only if e1(z,ν)=e1(z,ν′)e_1(z,\nu) = e_1(z,\nu')e1​(z,ν)=e1​(z,ν′) for all z∈Zz \in Zz∈Z and all ν,ν′∈N1\nu, \nu' \in N_1ν,ν′∈N1​, i.e. e1e_1e1​ does not depend on its nuisance argument.

  2. ρ2=1\rho_2 = 1ρ2​=1 if and only if e2(z,ν)=e2(z,ν′)e_2(z,\nu) = e_2(z,\nu')e2​(z,ν)=e2​(z,ν′) for all z∈Zz \in Zz∈Z and all ν,ν′∈N2\nu, \nu' \in N_2ν,ν′∈N2​.

When NjN_jNj​ has a single element, the right-hand side of item 2 (respectively 3) holds trivially, so ρj=1\rho_j = 1ρj​=1 is asserted in that case.

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