Theorem 3.3: equivalence of the sample-contrastive and dimension-contrastive criteria
ProvedContrastiveDuality.contrastive_dualityLet be an embedding matrix for a batch of size and embedding dimension , with no further assumption. Then the sample-contrastive criterion and the dimension-contrastive criterion satisfy
The two criteria therefore differ only by the fourth powers of the row and column norms of , which is the precise sense in which the paper calls them equivalent up to row and column normalization.
Formalization Note The paper's verbal claim that the criteria are "equivalent up to row and column normalization" is formalised as the identity (3), which is the mathematical content of the theorem.
import Mathlib import Definitions.Def_ContrastiveDuality_Basic open MeasureTheory ProbabilityTheory Matrix
namespace ContrastiveDuality
theorem contrastive_duality {M N : ℕ} (K : Matrix (Fin M) (Fin N) ℝ) :
nonContrastiveCriterion K + ∑ j, rowNorm K j ^ 4 =
contrastiveCriterion K + ∑ i, colNorm K i ^ 4 := by sorry
end ContrastiveDualityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
For arbitrary natural numbers and (both may be ) and an arbitrary real matrix with entries , rows indexed by and columns indexed by , the statement asserts the following identity of real numbers. There are no further hypotheses.
Row and column norms. Here is the Euclidean norm of the -th row and is the Euclidean norm of the -th column:
Since each radicand is nonnegative, the fourth powers are just the squares of these sums of squares:
The two criteria. For a square matrix , denotes the matrix with the same diagonal entries as and zeros elsewhere. is the squared Frobenius norm, the sum of the squares of all entries.
The dimension-contrastive criterion is
This is the sum of the squared off-diagonal entries of the Gram matrix of the rows.
The sample-contrastive criterion is
This is the sum of the squared off-diagonal entries of the Gram matrix of the columns.
Degenerate cases. If or , every sum involved is empty or consists of zero terms, and both sides reduce to .
Not used. The uniform sphere measure defined in the accompanying definitions file does not appear in this statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.