Theorem 1 (as proved): closed-form global minimiser and minimal value of VICReg
ProvedSSLSpectralEmbedding.vicreg_closed_form_optimumLet be a relation matrix on samples, (the case is trivial), and . Consider the VICReg loss with and the squared variance term,
where . Let
with orthogonal and , and suppose . Then , the matrix whose -th column is times the -th column of , is a global minimiser of over , and
Formalization Note The paper states the result with no condition on . The hypothesis is the condition under which is real. Without it the value formula is false: for the complete graph with , , it gives , while the loss is nonnegative. The paper's further claim that any of the columns of give a local minimum is false and is not included.
import Mathlib import Definitions.Def_SSLSpectralEmbedding_Basic open Matrix
namespace SSLSpectralEmbedding
theorem vicreg_closed_form_optimum {N K : ℕ} (hKN : K ≤ N) (α γ : ℝ) (hα : 0 < α) (hγ : 0 ≤ γ)
(G : Matrix (Fin N) (Fin N) ℝ) (hG : IsRelationMatrix G)
(P : Matrix (Fin N) (Fin N) ℝ) (lam : Fin N → ℝ) (hP : IsDescEigendecomp (vicMat α γ G) P lam)
(hlam : ∀ k : Fin K, 0 ≤ lam (Fin.castLE hKN k)) :
(∀ Z : Matrix (Fin N) (Fin K) ℝ,
vicLossSq α α γ G (vicOpt P lam hKN) ≤ vicLossSq α α γ G Z) ∧
vicLossSq α α γ G (vicOpt P lam hKN) = α * (K - ∑ k : Fin K, lam (Fin.castLE hKN k) ^ 2) := by sorry
end SSLSpectralEmbeddingRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers (number of samples) and (embedding dimension) with . Let be real numbers with and . Embeddings are real matrices , where row , written , is the embedding of sample .
Let be a real relation matrix, meaning:
- is symmetric;
- every entry satisfies ;
- every diagonal entry is .
Derived matrices.
- The degree matrix is the diagonal matrix .
- The Laplacian is .
- The centring matrix is , the identity minus the matrix with every entry .
- For an matrix , the covariance is
This is a matrix, normalised by rather than .
Define the matrix
Eigendecomposition hypothesis. Let be a real matrix and a real vector such that:
- ;
- ;
- is non-increasing, that is, whenever .
Nothing forces and to be unique (for example, under repeated eigenvalues). The theorem applies to every such pair. Assume further that the first eigenvalues are nonnegative: for .
Candidate optimum. Define the matrix by
That is, consists of the first columns of , with column scaled by .
Loss. The loss used is the squared-variance VICReg loss with the covariance weight set equal to :
Both double sums run over ordered pairs. Each off-diagonal covariance entry therefore appears twice, as and , and each unordered sample pair appears twice in the last term.
Conclusion. The theorem asserts two things:
- For every real matrix , .
- The minimum value is
Edge cases.
- The case is allowed. Then has no columns, both sides of the inequality are , and the claimed value is .
- is permitted only together with . In that case is evaluated as by convention.
- Without the nonnegativity hypothesis, of a negative number would be taken to be . The hypothesis excludes this for the columns actually used.
- No hypothesis is placed on the sign of .
- No hypothesis requires to be nonzero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.