Theorem 2: kernel mismatch bounds misalignment
OpenPlatonicJEPA.kernel_mismatch_bounds_misalignmentLet share the marginal , let and , and let be spectral embeddings of (spectral minimisers: orthonormal top- eigenvectors, any choice if has ties). Let be the eigengap of . Then
Formalization Note The case , where and the right side is , is not included.
import Mathlib import Definitions.Def_PlatonicJEPA_Basic open MeasureTheory Filter Topology
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 PlatonicJEPARead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite set (with decidable equality) of size , and let be a natural number. Let and be functions such that both and form a pair law. Here " is a pair law" means all of the following:
- for every , and ;
- and for all ;
- for every .
So and are two symmetric joint laws on with the same marginal .
For such a , the normalised adjacency is the real matrix
Its eigenvalues are defined as the real roots of the characteristic polynomial of , counted with multiplicity and sorted in decreasing order. Indexing starts at , so is the -th largest root. Any index beyond the number of roots would be set to , but every index used here is at most . Since is symmetric, it has real roots.
The hypotheses on and on the spectrum are:
- and , i.e. ;
- a strict spectral gap for only: .
No gap condition is imposed on .
Next, let be maps such that is a spectral minimiser for and is a spectral minimiser for . A map is a spectral minimiser for when both of the following hold:
- is whitened under : for all coordinates ,
- minimises the prediction loss
over all whitened maps. That is, for every that is whitened under .
Here is the Euclidean norm on . Nothing further is assumed about , such as uniqueness or an explicit relation to eigenvectors.
The theorem asserts that there exists a real orthogonal matrix such that
The norms on the right are defined as follows:
- is the supremum of over all with . This is the Euclidean operator (spectral) norm.
- 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 and the difference of the two normalised adjacency matrices.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.