Theorem 2 (as proved): constrained VICReg is solved by rescaled Laplacian Eigenmaps
ProvedSSLSpectralEmbedding.vicreg_constrained_recovers_laplacian_eigenmapsLet be a relation matrix on samples whose degree matrix is isotropic, with , as for the graph of views of each sample (). Let and , . A Laplacian-Eigenmaps solution is a minimiser of over with and columns of zero mean. Then:
- a Laplacian-Eigenmaps solution exists;
- for every Laplacian-Eigenmaps solution , the rescaled matrix satisfies , and
where is the VICReg loss of eq. (2) with its hinge variance term.
So the constrained VICReg problem is solved by Laplacian Eigenmaps, and play no role.
Formalization Note The printed theorem evaluates at itself. Because is normalised by , its covariance is , so it does not satisfy the constraint unless . The proof (Appendix A.8) works "up to a rescaling" with . The statement uses that rescaling, and it assumes , which the proof uses. The minimum is written as " for every feasible " together with feasibility of . The hypothesis is necessary: for , scaling a feasible up keeps it feasible and sends to .
import Mathlib import Definitions.Def_SSLSpectralEmbedding_Basic open Matrix
namespace SSLSpectralEmbedding
theorem vicreg_constrained_recovers_laplacian_eigenmaps {N K : ℕ} (hKN : K + 1 ≤ N)
(α β γ : ℝ) (hα : 0 < α) (hβ : 0 < β) (hγ : 0 ≤ γ)
(G : Matrix (Fin N) (Fin N) ℝ) (hG : IsRelationMatrix G)
(c : ℝ) (hc : 0 < c) (hdeg : ∀ i, ∑ j, G i j = c) :
(∃ Z : Matrix (Fin N) (Fin K) ℝ, IsLESolution G Z) ∧
∀ ZLE : Matrix (Fin N) (Fin K) ℝ, IsLESolution G ZLE →
varTerm (Real.sqrt (c * N) • ZLE) = 0 ∧ covTerm (Real.sqrt (c * N) • ZLE) = 0 ∧
∀ Z : Matrix (Fin N) (Fin K) ℝ, varTerm Z = 0 → covTerm Z = 0 →
vicLoss α β γ G (Real.sqrt (c * N) • ZLE) ≤ invTerm γ G Z := by sorry
end SSLSpectralEmbeddingRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers (samples) and (embedding dimension) with . Fix real numbers with , , .
Let be a relation matrix:
- symmetric, ;
- entrywise nonnegative, ;
- zero on the diagonal, .
Assume further that there is a real such that every row of sums to :
Because the diagonal is zero and , these hypotheses force . They can be satisfied, for example, by for all . The value is allowed, in which case every matrix with columns is empty.
Notation from the definitions.
- The degree matrix is . Under the hypothesis, .
- The graph Laplacian is .
- The centring matrix is .
- For , with -th row , the covariance is , normalised by .
The loss terms are:
where the double sum runs over all ordered pairs. The VICReg loss, which uses the hinge variance term, is
Note that exactly when for every . This is an inequality, not an equality. Similarly, exactly when all off-diagonal entries of vanish.
Laplacian-Eigenmaps solution. A matrix is called an LE solution for if it satisfies three conditions:
- , which here means ;
- every column of sums to ;
- for every that also satisfies conditions 1 and 2,
Assertion. Under all the hypotheses above, both of the following hold.
(i) Existence. There exists at least one LE solution for .
(ii) Properties of every LE solution. Let be any LE solution, and set . Then:
- , that is, for all ;
- ;
- for every with and ,
In this last comparison, ranges over all real matrices meeting only those two vanishing conditions. No column-mean or constraint is imposed on .
The right-hand side is only the invariance term of . By the first two bullet points, the left-hand side equals . As a result, and enter the inequality only as coefficients of terms that are zero. The hypothesis is not otherwise used in the statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.