Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 2: kkk pairs identify the rotation

Proved
PlatonicJEPA.k_pairs_identify_rotation

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

machine-learningplatonic-representation-hypothesisrepresentation-learningspectral-theory

(i) Every rotation of a whitened embedding is whitened, so no statistic of the first two moments of unpaired samples identifies the rotation between two modalities.

(ii) Suppose h1=Qh2h_1=Qh_2h1​=Qh2​ for some Q∈O(k)Q\in O(k)Q∈O(k), as for two minimisers in the setting of Theorem 1 and Proposition 1. If the embeddings h2(z1),…,h2(zn)h_2(z_1),\dots,h_2(z_n)h2​(z1​),…,h2​(zn​) of n≥kn\ge kn≥k world states span Rk\mathbb{R}^kRk, then QQQ is the unique minimiser over R∈O(k)R\in O(k)R∈O(k) of

∑i≤n∥h1(zi)−Rh2(zi)∥2\sum_{i\le n}\|h_1(z_i)-Rh_2(z_i)\|^2i≤n∑​∥h1​(zi​)−Rh2​(zi​)∥2

(orthogonal Procrustes).

Preamble
import Mathlib
import Definitions.Def_PlatonicJEPA_Basic

open MeasureTheory Filter Topology
Formal statement
namespace PlatonicJEPA

theorem k_pairs_identify_rotation {Z : Type*} [Fintype Z] [DecidableEq Z] {k : ℕ}
    (p : Z → ℝ) (h₁ h₂ : Z → Fin k → ℝ) :
    (∀ Q : Matrix.orthogonalGroup (Fin k) ℝ,
      IsWhitened p h₁ → IsWhitened p (fun z => rot Q (h₁ z))) ∧
    (∀ (Q : Matrix.orthogonalGroup (Fin k) ℝ), (∀ z, h₁ z = rot Q (h₂ z)) →
      ∀ (n : ℕ) (zs : Fin n → Z), k ≤ n →
        Submodule.span ℝ (Set.range fun i => h₂ (zs i)) = ⊤ →
        ∀ R : Matrix.orthogonalGroup (Fin k) ℝ,
          ((∀ R' : Matrix.orthogonalGroup (Fin k) ℝ,
              ∑ i, sqNorm (h₁ (zs i) - rot R (h₂ (zs i))) ≤
                ∑ i, sqNorm (h₁ (zs i) - rot R' (h₂ (zs i)))) ↔ R = Q)) := by sorry

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

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

Fix a finite set ZZZ (possibly empty, with decidable equality), a natural number kkk (possibly 000), an arbitrary real-valued function p:Z→Rp : Z \to \mathbb{R}p:Z→R, and two arbitrary maps h1,h2:Z→Rkh_1, h_2 : Z \to \mathbb{R}^kh1​,h2​:Z→Rk. Nothing is assumed about ppp: it need not be positive, need not sum to 111, and need not be a probability. Let O(k)O(k)O(k) denote the real orthogonal k×kk \times kk×k matrices, Q⊤Q=QQ⊤=IkQ^\top Q = Q Q^\top = I_kQ⊤Q=QQ⊤=Ik​. For Q∈O(k)Q \in O(k)Q∈O(k) and v∈Rkv \in \mathbb{R}^kv∈Rk, QvQvQv is the ordinary matrix–vector product, and ∥v∥2=∑i=1kvi2\|v\|^2 = \sum_{i=1}^k v_i^2∥v∥2=∑i=1k​vi2​ is the squared Euclidean norm.

Call a map h:Z→Rkh : Z \to \mathbb{R}^kh:Z→Rk whitened under ppp if both of the following hold:

∑z∈Zp(z) h(z)i=0for every i,\sum_{z \in Z} p(z)\, h(z)_i = 0 \quad \text{for every } i,z∈Z∑​p(z)h(z)i​=0for every i, ∑z∈Zp(z) h(z)i h(z)j=δijfor every i,j.\sum_{z \in Z} p(z)\, h(z)_i\, h(z)_j = \delta_{ij} \quad \text{for every } i, j.z∈Z∑​p(z)h(z)i​h(z)j​=δij​for every i,j.

Here the weights p(z)p(z)p(z) are the arbitrary real numbers above.

The theorem asserts the conjunction of two statements.

(1) Rotation invariance of whitening. For every Q∈O(k)Q \in O(k)Q∈O(k), if h1h_1h1​ is whitened under ppp, then the map z↦Q h1(z)z \mapsto Q\, h_1(z)z↦Qh1​(z) is also whitened under ppp. This part concerns only h1h_1h1​ and ppp; h2h_2h2​ plays no role.

(2) Identification of the rotation from finitely many points. Let Q∈O(k)Q \in O(k)Q∈O(k) satisfy h1(z)=Q h2(z)h_1(z) = Q\, h_2(z)h1​(z)=Qh2​(z) for every z∈Zz \in Zz∈Z. Such a QQQ exists only if h1h_1h1​ is an exact orthogonal transform of h2h_2h2​; otherwise this part is vacuous.

Then for every n∈Nn \in \mathbb{N}n∈N and every finite sequence z1,…,zn∈Zz_1, \dots, z_n \in Zz1​,…,zn​∈Z (repetitions allowed) satisfying both

  • k≤nk \le nk≤n, and
  • the vectors h2(z1),…,h2(zn)h_2(z_1), \dots, h_2(z_n)h2​(z1​),…,h2​(zn​) linearly span all of Rk\mathbb{R}^kRk,

and for every R∈O(k)R \in O(k)R∈O(k), the following equivalence holds:

(∀R′∈O(k): ∑i=1n∥h1(zi)−R h2(zi)∥2≤∑i=1n∥h1(zi)−R′ h2(zi)∥2)  ⟺  R=Q.\Big(\forall R' \in O(k):\ \sum_{i=1}^n \big\|h_1(z_i) - R\, h_2(z_i)\big\|^2 \le \sum_{i=1}^n \big\|h_1(z_i) - R'\, h_2(z_i)\big\|^2\Big) \iff R = Q.(∀R′∈O(k): i=1∑n​​h1​(zi​)−Rh2​(zi​)​2≤i=1∑n​​h1​(zi​)−R′h2​(zi​)​2)⟺R=Q.

In words, RRR is a global minimiser of the sum of squared residuals over all orthogonal matrices if and only if RRR equals QQQ. Hence QQQ is the unique orthogonal minimiser.

Several features of part (2) are worth noting:

  • It makes no use of ppp and does not assume that h1h_1h1​ or h2h_2h2​ is whitened.
  • The condition k≤nk \le nk≤n is implied by the spanning condition.
  • When k=0k = 0k=0, the space R0\mathbb{R}^0R0 is spanned by any family, including the empty one with n=0n = 0n=0. In that case O(0)O(0)O(0) has a single element, so the equivalence holds trivially.
  • If ZZZ is empty, only n=0n = 0n=0 is possible, and the spanning condition can then hold only when k=0k = 0k=0.
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