Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2: kernel mismatch bounds misalignment

Open
PlatonicJEPA.kernel_mismatch_bounds_misalignment

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

machine-learningplatonic-representation-hypothesisrepresentation-learningspectral-theory

Let π1,π2\pi_1,\pi_2π1​,π2​ share the marginal ppp, let 1≤k1\le k1≤k and k+1<∣Z∣k+1<|Z|k+1<∣Z∣, and let Φ1,Φ2\Phi_1,\Phi_2Φ1​,Φ2​ be spectral embeddings of π1,π2\pi_1,\pi_2π1​,π2​ (spectral minimisers: orthonormal top-kkk eigenvectors, any choice if Kπ1K_{\pi_1}Kπ1​​ has ties). Let δ=μk−μk+1>0\delta=\mu_k-\mu_{k+1}>0δ=μk​−μk+1​>0 be the eigengap of Kπ2K_{\pi_2}Kπ2​​. Then

min⁡Q∈O(k)(Ep∥Φ1(z)−QΦ2(z)∥2)1/2≤22δmin⁡(k ∥Kπ1−Kπ2∥2, ∥Kπ1−Kπ2∥F).\min_{Q\in O(k)}\Big(E_p\|\Phi_1(z)-Q\Phi_2(z)\|^2\Big)^{1/2}\le\frac{2\sqrt2}{\delta}\min\big(\sqrt k\,\|K_{\pi_1}-K_{\pi_2}\|_2,\ \|K_{\pi_1}-K_{\pi_2}\|_F\big).Q∈O(k)min​(Ep​∥Φ1​(z)−QΦ2​(z)∥2)1/2≤δ22​​min(k​∥Kπ1​​−Kπ2​​∥2​, ∥Kπ1​​−Kπ2​​∥F​).

Formalization Note The case k=∣Z∣−1k=|Z|-1k=∣Z∣−1, where μk+1=−∞\mu_{k+1}=-\inftyμk+1​=−∞ and the right side is 000, is not included.

Preamble
import Mathlib
import Definitions.Def_PlatonicJEPA_Basic

open MeasureTheory Filter Topology
Formal statement
namespace PlatonicJEPA

theorem kernel_mismatch_bounds_misalignment {Z : Type*} [Fintype Z] [DecidableEq Z] {k : ℕ}
    (p : Z → ℝ) (π₁ π₂ : Z → Z → ℝ) (h₁π : IsPairLaw p π₁) (h₂π : IsPairLaw p π₂)
    (hk : 1 ≤ k) (hkZ : k + 1 < Fintype.card Z) (hgap : eigs p π₂ (k + 1) < eigs p π₂ k)
    (Φ₁ Φ₂ : Z → Fin k → ℝ) (hΦ₁ : IsSpectralMin p π₁ Φ₁) (hΦ₂ : IsSpectralMin p π₂ Φ₂) :
    ∃ Q : Matrix.orthogonalGroup (Fin k) ℝ,
      Real.sqrt (∑ z, p z * sqNorm (Φ₁ z - rot Q (Φ₂ z))) ≤
        2 * Real.sqrt 2 / (eigs p π₂ k - eigs p π₂ (k + 1)) *
          min (Real.sqrt k * specNorm (kerMat p π₁ - kerMat p π₂))
            (frobNorm (kerMat p π₁ - kerMat p π₂)) := by sorry

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

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

Let ZZZ be a finite set (with decidable equality) of size ∣Z∣|Z|∣Z∣, and let kkk be a natural number. Let p:Z→Rp : Z \to \mathbb{R}p:Z→R and π1,π2:Z×Z→R\pi_1, \pi_2 : Z \times Z \to \mathbb{R}π1​,π2​:Z×Z→R be functions such that both (p,π1)(p,\pi_1)(p,π1​) and (p,π2)(p,\pi_2)(p,π2​) form a pair law. Here "(p,π)(p,\pi)(p,π) is a pair law" means all of the following:

  • p(z)>0p(z) > 0p(z)>0 for every zzz, and ∑zp(z)=1\sum_z p(z) = 1∑z​p(z)=1;
  • π(z,z′)≥0\pi(z,z') \ge 0π(z,z′)≥0 and π(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.

So π1\pi_1π1​ and π2\pi_2π2​ are two symmetric joint laws on Z×ZZ\times ZZ×Z with the same marginal ppp.

For such a π\piπ, the normalised adjacency is the Z×ZZ\times ZZ×Z real matrix

Kπ(z,z′)=π(z,z′)p(z) p(z′).K_\pi(z,z') = \frac{\pi(z,z')}{\sqrt{p(z)\,p(z')}}.Kπ​(z,z′)=p(z)p(z′)​π(z,z′)​.

Its eigenvalues μ0(π)≥μ1(π)≥μ2(π)≥⋯\mu_0(\pi) \ge \mu_1(\pi) \ge \mu_2(\pi) \ge \cdotsμ0​(π)≥μ1​(π)≥μ2​(π)≥⋯ are defined as the real roots of the characteristic polynomial of KπK_\piKπ​, counted with multiplicity and sorted in decreasing order. Indexing starts at 000, so μk\mu_kμk​ is the (k+1)(k{+}1)(k+1)-th largest root. Any index beyond the number of roots would be set to 000, but every index used here is at most k+1<∣Z∣k+1 < |Z|k+1<∣Z∣. Since KπK_\piKπ​ is symmetric, it has ∣Z∣|Z|∣Z∣ real roots.

The hypotheses on kkk and on the spectrum are:

  • 1≤k1 \le k1≤k and k+1<∣Z∣k+1 < |Z|k+1<∣Z∣, i.e. ∣Z∣≥k+2|Z| \ge k+2∣Z∣≥k+2;
  • a strict spectral gap for π2\pi_2π2​ only: μk+1(π2)<μk(π2)\mu_{k+1}(\pi_2) < \mu_k(\pi_2)μk+1​(π2​)<μk​(π2​).

No gap condition is imposed on π1\pi_1π1​.

Next, let Φ1,Φ2:Z→Rk\Phi_1, \Phi_2 : Z \to \mathbb{R}^kΦ1​,Φ2​:Z→Rk be maps such that Φ1\Phi_1Φ1​ is a spectral minimiser for (p,π1)(p,\pi_1)(p,π1​) and Φ2\Phi_2Φ2​ is a spectral minimiser for (p,π2)(p,\pi_2)(p,π2​). A map h:Z→Rkh : Z\to\mathbb{R}^kh:Z→Rk is a spectral minimiser for (p,π)(p,\pi)(p,π) when both of the following hold:

  1. hhh is whitened under ppp: 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​.
  1. hhh minimises the prediction loss
Pπ(h)=∑z,z′π(z,z′) ∥h(z)−h(z′)∥2\mathcal{P}_\pi(h) = \sum_{z,z'} \pi(z,z')\,\|h(z)-h(z')\|^2Pπ​(h)=z,z′∑​π(z,z′)∥h(z)−h(z′)∥2

over all whitened maps. That is, Pπ(h)≤Pπ(h′)\mathcal{P}_\pi(h) \le \mathcal{P}_\pi(h')Pπ​(h)≤Pπ​(h′) for every h′:Z→Rkh' : Z\to\mathbb{R}^kh′:Z→Rk that is whitened under ppp.

Here ∥⋅∥\|\cdot\|∥⋅∥ is the Euclidean norm on Rk\mathbb{R}^kRk. Nothing further is assumed about Φ1,Φ2\Phi_1,\Phi_2Φ1​,Φ2​, such as uniqueness or an explicit relation to eigenvectors.

The theorem asserts that there exists a k×kk\times kk×k real orthogonal matrix QQQ such that

∑z∈Zp(z) ∥Φ1(z)−Q Φ2(z)∥2  ≤  22μk(π2)−μk+1(π2)⋅min⁡(k ∥Kπ1−Kπ2∥op, ∥Kπ1−Kπ2∥F).\sqrt{\sum_{z\in Z} p(z)\,\bigl\|\Phi_1(z) - Q\,\Phi_2(z)\bigr\|^2} \;\le\; \frac{2\sqrt{2}}{\mu_k(\pi_2) - \mu_{k+1}(\pi_2)}\cdot \min\Bigl(\sqrt{k}\,\bigl\|K_{\pi_1}-K_{\pi_2}\bigr\|_{\mathrm{op}},\ \bigl\|K_{\pi_1}-K_{\pi_2}\bigr\|_{F}\Bigr).z∈Z∑​p(z)​Φ1​(z)−QΦ2​(z)​2​≤μk​(π2​)−μk+1​(π2​)22​​⋅min(k​​Kπ1​​−Kπ2​​​op​, ​Kπ1​​−Kπ2​​​F​).

The norms on the right are defined as follows:

  • ∥A∥op\|A\|_{\mathrm{op}}∥A∥op​ is the supremum of ∑z(Av)(z)2\sqrt{\sum_z (Av)(z)^2}∑z​(Av)(z)2​ over all v∈RZv\in\mathbb{R}^Zv∈RZ with ∑zv(z)2≤1\sum_z v(z)^2 \le 1∑z​v(z)2≤1. This is the Euclidean operator (spectral) norm.
  • ∥A∥F=∑z,z′A(z,z′)2\|A\|_F = \sqrt{\sum_{z,z'} A(z,z')^2}∥A∥F​=∑z,z′​A(z,z′)2​ is the Frobenius norm.

The denominator is strictly positive by the gap hypothesis, so no division by zero occurs. The bound involves only the eigenvalues of Kπ2K_{\pi_2}Kπ2​​ and the difference of the two normalised adjacency matrices.

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