Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 1: spectral JEPAs are unique up to rotation

Open
PlatonicJEPA.spectral_jepa_unique_up_to_rotation

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

machine-learningplatonic-representation-hypothesisrepresentation-learningspectral-theory

Let ℓ(a,b)=∥a−b∥2\ell(a,b)=\|a-b\|^2ℓ(a,b)=∥a−b∥2, let Ω\OmegaΩ whiten the embeddings, and let 1≤k<∣Z∣1\le k<|Z|1≤k<∣Z∣. Then the spectral objective has a minimiser, and its minimum is

min⁡Lπ=2∑i=1k(1−μi).\min L_\pi=2\sum_{i=1}^k(1-\mu_i).minLπ​=2i=1∑k​(1−μi​).

If μk>μk+1\mu_k>\mu_{k+1}μk​>μk+1​ (with μ∣Z∣:=−∞\mu_{|Z|}:=-\inftyμ∣Z∣​:=−∞), the minimisers are exactly the whitened embeddings hhh for which every coordinate p hi\sqrt{p}\,h_ip​hi​ lies in the span of the eigenvectors of KπK_\piKπ​ with eigenvalue at least μk\mu_kμk​. These are the rotations QΦπQ\Phi_\piQΦπ​, Q∈O(k)Q\in O(k)Q∈O(k), of the spectral embedding Φπ(z)=(v1(z),…,vk(z))/p(z)\Phi_\pi(z)=(v_1(z),\dots,v_k(z))/\sqrt{p(z)}Φπ​(z)=(v1​(z),…,vk​(z))/p(z)​, so any two minimisers differ by a rotation.

Formalization Note The paper's description "exactly QΦπQ\Phi_\piQΦπ​" is stated as the equivalent condition on the coordinates, which does not require choosing eigenvectors.

Preamble
import Mathlib
import Definitions.Def_PlatonicJEPA_Basic

open MeasureTheory Filter Topology
Formal statement
namespace PlatonicJEPA

theorem spectral_jepa_unique_up_to_rotation {Z : Type*} [Fintype Z] [DecidableEq Z] {k : ℕ}
    (p : Z → ℝ) (π : Z → Z → ℝ) (hπ : IsPairLaw p π) (hk : 1 ≤ k) (hkZ : k < Fintype.card Z) :
    (∃ h : Z → Fin k → ℝ, IsSpectralMin p π h) ∧
    (∀ h : Z → Fin k → ℝ, IsSpectralMin p π h →
      predLoss π h = 2 * ∑ i ∈ Finset.Icc 1 k, (1 - eigs p π i)) ∧
    ((k + 1 < Fintype.card Z → eigs p π (k + 1) < eigs p π k) →
      (∀ h : Z → Fin k → ℝ, IsSpectralMin p π h ↔
        (IsWhitened p h ∧ ∀ i : Fin k, (fun z => Real.sqrt (p z) * h z i) ∈ topSpace p π k)) ∧
      (∀ h h' : Z → Fin k → ℝ, IsSpectralMin p π h → IsSpectralMin p π h' →
        ∃ Q : Matrix.orthogonalGroup (Fin k) ℝ, ∀ z, h' z = rot Q (h z))) := by sorry

end PlatonicJEPA
Source
Balestriero and LeCun, Proving and Improving the Platonic Representation Hypothesis with JEPAs, arXiv:2610.39302v1 (2026), Section 2.1, Proposition 1, p. 3
Read-back

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

Let ZZZ be a finite set (with decidable equality), and let kkk be a natural number. Let p:Z→Rp : Z \to \mathbb{R}p:Z→R and π:Z×Z→R\pi : Z \times Z \to \mathbb{R}π:Z×Z→R be arbitrary real-valued functions. Embeddings are maps h:Z→Rkh : Z \to \mathbb{R}^kh:Z→Rk, with coordinates hi(z)h_i(z)hi​(z) for i∈{0,…,k−1}i \in \{0, \dots, k-1\}i∈{0,…,k−1}.

Hypotheses.

  1. (p,π)(p, \pi)(p,π) is a pair law. This means all of the following hold:
    • p(z)>0p(z) > 0p(z)>0 for every zzz;
    • ∑zp(z)=1\sum_z p(z) = 1∑z​p(z)=1;
    • π(z,z′)≥0\pi(z, z') \ge 0π(z,z′)≥0 for all z,z′z, z'z,z′;
    • π(z,z′)=π(z′,z)\pi(z, z') = \pi(z', z)π(z,z′)=π(z′,z) for all z,z′z, z'z,z′;
    • ∑z′π(z,z′)=p(z)\sum_{z'} \pi(z, z') = p(z)∑z′​π(z,z′)=p(z) for every zzz.
  2. 1≤k1 \le k1≤k.
  3. k<∣Z∣k < |Z|k<∣Z∣, strictly.

Notions used.

  • Whitened. hhh is whitened under ppp if, for all coordinates i,ji, ji,j,
∑zp(z) hi(z)=0and∑zp(z) hi(z) hj(z)=δij.\sum_z p(z)\, h_i(z) = 0 \quad\text{and}\quad \sum_z p(z)\, h_i(z)\, h_j(z) = \delta_{ij}.z∑​p(z)hi​(z)=0andz∑​p(z)hi​(z)hj​(z)=δij​.
  • Prediction loss. This is the real number
Lπ(h)=∑z,z′π(z,z′) ∥h(z)−h(z′)∥2,\mathcal{L}_\pi(h) = \sum_{z, z'} \pi(z, z')\, \lVert h(z) - h(z') \rVert^2,Lπ​(h)=z,z′∑​π(z,z′)∥h(z)−h(z′)∥2,

where ∥⋅∥2\lVert\cdot\rVert^2∥⋅∥2 is the squared Euclidean norm on Rk\mathbb{R}^kRk.

  • Spectral minimiser. hhh is a spectral minimiser if hhh is whitened and Lπ(h)≤Lπ(h′)\mathcal{L}_\pi(h) \le \mathcal{L}_\pi(h')Lπ​(h)≤Lπ​(h′) for every whitened h′h'h′. Comparison is only against whitened competitors.
  • Normalised adjacency. KKK is the Z×ZZ \times ZZ×Z matrix
Kzz′=π(z,z′)p(z) p(z′).K_{z z'} = \frac{\pi(z, z')}{\sqrt{p(z)\, p(z')}}.Kzz′​=p(z)p(z′)​π(z,z′)​.
  • Eigenvalue list. μ0≥μ1≥μ2≥⋯\mu_0 \ge \mu_1 \ge \mu_2 \ge \cdotsμ0​≥μ1​≥μ2​≥⋯ is defined as follows. Take the real roots of the characteristic polynomial of KKK, counted with multiplicity, and sort them in non-increasing order. If iii is at least the number of such roots, set μi:=0\mu_i := 0μi​:=0.
  • Top space. Tk⊆RZT_k \subseteq \mathbb{R}^ZTk​⊆RZ is the linear span of the union of the eigenspaces ker⁡(K−μI)\ker(K - \mu I)ker(K−μI) over all real μ\muμ with μ≥μk\mu \ge \mu_kμ≥μk​. These are the eigenvectors whose eigenvalue is at least μk\mu_kμk​.
  • Orthogonal matrices. O(k)O(k)O(k) is the group of real k×kk \times kk×k matrices QQQ with Q⊤Q=QQ⊤=IQ^\top Q = Q Q^\top = IQ⊤Q=QQ⊤=I.

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

(a) Existence. There exists a spectral minimiser h:Z→Rkh : Z \to \mathbb{R}^kh:Z→Rk.

(b) Value of the minimum. Every spectral minimiser hhh satisfies

Lπ(h)=2∑i=1k(1−μi).\mathcal{L}_\pi(h) = 2 \sum_{i=1}^{k} \bigl(1 - \mu_i\bigr).Lπ​(h)=2i=1∑k​(1−μi​).

The sum runs over the indices 1,…,k1, \dots, k1,…,k; it excludes μ0\mu_0μ0​ and includes μk\mu_kμk​.

(c) Conditional characterisation. Assume the following gap condition:

if k+1<∣Z∣, then μk+1<μk.\text{if } k + 1 < |Z|, \text{ then } \mu_{k+1} < \mu_k.if k+1<∣Z∣, then μk+1​<μk​.

This condition is automatically satisfied when k+1=∣Z∣k + 1 = |Z|k+1=∣Z∣. Note that it compares μk+1\mu_{k+1}μk+1​ with μk\mu_kμk​. Under this assumption, both of the following hold.

  • (c1) Characterisation. For every h:Z→Rkh : Z \to \mathbb{R}^kh:Z→Rk, hhh is a spectral minimiser if and only if both of these hold:
    • hhh is whitened;
    • for each coordinate i∈{0,…,k−1}i \in \{0, \dots, k-1\}i∈{0,…,k−1}, the vector (p(z) hi(z))z∈Z\bigl(\sqrt{p(z)}\, h_i(z)\bigr)_{z \in Z}(p(z)​hi​(z))z∈Z​ lies in TkT_kTk​.
  • (c2) Uniqueness up to rotation. For any two spectral minimisers h,h′h, h'h,h′, there exists Q∈O(k)Q \in O(k)Q∈O(k) such that
h′(z)=Q h(z)for every z∈Z.h'(z) = Q\, h(z) \quad \text{for every } z \in Z.h′(z)=Qh(z)for every z∈Z.

If the gap condition fails, part (c) asserts nothing. Parts (a) and (b) do not depend on the gap condition.

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