Theorem B.3 (as proved): linear probe error in terms of
ProvedSpectralContrastive.probe_error_eigen_boundConsider the finite data model with , let , and let be the eigenvalues of the normalized Laplacian of the augmentation graph. Assume and . Let minimize the population spectral contrastive loss over all functions. Then for every labeling function there is a linear head with such that
and every argmax prediction (any tie-breaking) satisfies
Formalization Note The paper prints the constants and in front of . The proof establishes and : summing eq. (26) over counts every edge with twice, so eq. (27) holds with in place of . The statement here carries the proved constants. The hypotheses and are those of Lemma B.6, which the proof uses. The hypothesis is the domain of the printed norm bound . The head is the transpose of the paper's .
import Mathlib import Definitions.Def_SpectralContrastive_Basic open Matrix
namespace SpectralContrastive
theorem probe_error_eigen_bound {Xbar X : Type*} [Fintype Xbar] [Fintype X] [DecidableEq X]
{k r : ℕ} (P : Xbar → ℝ) (A : Xbar → X → ℝ) (hM : IsAugModel P A) (y : Xbar → Fin r)
(hk : 1 ≤ k) (hkN : k + 1 ≤ Fintype.card X)
(hl : 0 < lapEig (augWeight P A) (k + 1)) (hlk : lapEig (augWeight P A) k < 1)
(f : X → Fin k → ℝ) (hf : ∀ f' : X → Fin k → ℝ, scLoss P A f ≤ scLoss P A f')
(yhat : X → Fin r) :
∃ B : Matrix (Fin k) (Fin r) ℝ,
frobNorm B ≤ 1 / (1 - lapEig (augWeight P A) k) ∧
probeSqLoss P A y f B ≤
2 * cutWeight (augWeight P A) yhat / lapEig (augWeight P A) (k + 1) +
4 * labelDisagree P A y yhat ∧
∀ g : X → Fin r, IsProbePred f B g →
labelDisagree P A y g ≤
4 * cutWeight (augWeight P A) yhat / lapEig (augWeight P A) (k + 1) +
8 * labelDisagree P A y yhat := by sorry
end SpectralContrastiveRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Fix finite types (natural data) and (augmented data), and natural numbers (representation dimension) and (number of classes). Let
- , and
- a real number for each and .
Model hypothesis. These form a finite augmentation model:
- for all , and ;
- for all , and for every ;
- every has some with and .
In particular is nonempty. Let be an arbitrary labelling. Its existence forces .
The augmentation graph. Its weights are
and the degrees are . The normalized adjacency matrix is , and the normalized Laplacian is , an real matrix.
denotes the -th entry () of the list of real roots of the characteristic polynomial of . These roots are counted with multiplicity and sorted in increasing order. is defined to be if exceeds the number of real roots, and is read as index .
Remaining hypotheses.
- and .
- and .
The representation. is any map that globally minimizes the spectral contrastive loss over all maps . That is, for every , where
If no global minimizer exists, the statement is vacuous.
The comparison labelling. is an arbitrary labelling of augmented data. Define:
- the cut weight , summed over ordered pairs;
- for any , the disagreement .
Conclusion. There exists a real matrix such that all three of the following hold.
- The Frobenius norm of satisfies
- The squared loss of the linear head against one-hot labels satisfies
- Consider every that is an argmax prediction of on , meaning for all and all , with ties broken in any way. Every such satisfies
The bounds concern the per-augmentation classifier and the squared loss. No statement is made about the ensembled prediction on natural data or about the linear probe error.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.