Theorem 3.8: main theorem for population pretraining data
OpenSpectralContrastive.main_population_boundThere is a universal constant with the following property. Consider the finite data model with labels , let the representation dimension satisfy , and suppose Assumption 3.6 holds for some : some classifier has . Let minimize the population spectral contrastive loss over all . Then:
- If ,
- If Assumption 3.5 holds, i.e. for some , and , then
The linear probe error of the representation learned from the population spectral contrastive loss is therefore controlled by the ratio of class separation to the squared internal connectivity of the augmentation graph.
Formalization Note The paper writes , where hides universal constant factors and logarithmic factors in . The statement uses the form the proof establishes, , with one universal constant quantified before all data. The hypothesis class of Assumption 3.7 plays no role once is a global minimizer, so it is omitted. The hypothesis excludes division by zero, where the paper's bound is infinite.
import Mathlib import Definitions.Def_SpectralContrastive_Basic open Matrix
namespace SpectralContrastive
theorem main_population_bound :
∃ C : ℝ, ∀ (Xbar X : Type) [Fintype Xbar] [Fintype X] [DecidableEq X] (r k : ℕ)
(P : Xbar → ℝ) (A : Xbar → X → ℝ), IsAugModel P A → 2 * r ≤ k →
∀ (y : Xbar → Fin r) (α : ℝ), 0 < α → (∃ g : X → Fin r, labelDisagree P A y g ≤ α) →
∀ f : X → Fin k → ℝ, (∀ f' : X → Fin k → ℝ, scLoss P A f ≤ scLoss P A f') →
(0 < sparsestPartition (augWeight P A) (k / 2) →
linearProbeError P A y f ≤
C * (α / sparsestPartition (augWeight P A) (k / 2) ^ 2) * Real.log k) ∧
(∀ (m : ℕ) (ρ : ℝ), 0 < ρ → ρ ≤ sparsestPartition (augWeight P A) (m + 1) → 2 * m < k →
linearProbeError P A y f ≤ C * (α / ρ ^ 2) * Real.log k) := by sorry
end SpectralContrastiveRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement asserts that there is a single real constant (no sign or size constraint is stated) such that the following holds for every instance of the data described below. is chosen once and does not depend on any of the objects that follow.
Data and hypotheses.
-
Natural and augmented data. Let (natural data) and (augmented data) be arbitrary finite types, with equality on decidable.
-
Dimensions. Let be natural numbers with .
-
Data model. Let and , writing . Assume they form an augmentation model:
- for all , and ;
- for all , and for every ;
- every has some with and .
These conditions force and to be nonempty.
-
Labels. Let be a labelling. Since , this forces and hence .
-
Accuracy parameter. Let be real, and assume some satisfies
- Representation. Let be a global minimizer, over all maps , of the spectral contrastive loss
The statement does not itself assert that such a minimizer exists; if none exists, the claim is vacuous for that data.
Auxiliary notions.
The graph on has edge weights and degrees
Every degree satisfies under the hypotheses.
For , the conductance is
with the convention that a quotient with denominator equals .
For , the sparsest -partition value is the infimum, over all surjective labellings (partitions of into nonempty blocks ), of . Its edge cases are:
- when no such surjection exists ( or ), the infimum is over an empty family and takes the value ;
- always, since the single block has no outgoing weight.
The linear probe error is the infimum over all real matrices of . Here is the largest value of
over all pairs such that:
- is some index maximizing the coordinates of ;
- is some index maximizing over .
This means every tie-breaking choice is taken into account.
Conclusion. Both of the following hold, where is floor division and is the natural logarithm of as a real number:
- If , then
- For every natural number and every real with and ,
For this case is vacuous, because . It is also vacuous whenever , because then .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.