Lemma 3.4: bounds on the sum of fourth powers of row and column norms
ProvedContrastiveDuality.norm_pow_four_boundsLet , let and let .
- If the embeddings are normalized so that for every , then
- If the dimensions are normalized so that for every , then
A norm constraint in one direction of the embedding matrix thus constrains the norms in the other direction.
Formalization Note The batch size and the embedding dimension are assumed positive, as they are in the paper's setting; the bounds divide by and by .
import Mathlib import Definitions.Def_ContrastiveDuality_Basic open MeasureTheory ProbabilityTheory Matrix
namespace ContrastiveDuality
theorem norm_pow_four_bounds {M N : ℕ} (hM : 0 < M) (hN : 0 < N)
(K : Matrix (Fin M) (Fin N) ℝ) (a : ℝ) :
((∀ i, colNorm K i = a) →
(N : ℝ) ^ 2 / M * a ^ 4 ≤ ∑ j, rowNorm K j ^ 4 ∧
∑ j, rowNorm K j ^ 4 ≤ (N : ℝ) ^ 2 * a ^ 4) ∧
((∀ j, rowNorm K j = a) →
(M : ℝ) ^ 2 / N * a ^ 4 ≤ ∑ i, colNorm K i ^ 4 ∧
∑ i, colNorm K i ^ 4 ≤ (M : ℝ) ^ 2 * a ^ 4) := by sorry
end ContrastiveDualityRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let and be natural numbers with and . Let be an arbitrary real matrix with rows (indexed by ) and columns (indexed by ). Let be an arbitrary real number; no sign condition is placed on .
The statement uses two kinds of norms, each the ordinary Euclidean norm with its non-negative square root:
- the norm of the -th column of :
- the norm of the -th row of :
Fourth powers of these norms are ordinary real powers. For example, . All fractions are real division, and the denominators and are nonzero.
The theorem asserts that both of the following implications hold.
- Equal column norms. Suppose for every column . Then
- Equal row norms. Suppose for every row . Then
Both inequalities in each conclusion are non-strict.
Edge cases:
- Negative . Column and row norms are always . So if , the hypothesis of each implication cannot be satisfied, and that implication holds vacuously.
- Sign of in the bounds. The bounds involve only , so they do not depend on the sign of .
- Zero . If , the hypothesis of either implication forces . All bounds then read .
- Case or . The hypotheses exclude empty matrices, but or is allowed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.