Lemma 2: is a difference of two PSD matrices
ProvedDimensionalCollapse.X_difference_of_psdFor inputs and any linear model , with the softmax weights computed from , , the matrix is a difference of two positive semidefinite matrices:
Here is a weighted covariance of the data and a weighted covariance of the augmentation, so the strength of the augmentation decides whether is positive definite.
Formalization Note is taken in the form of Appendix B.2; see the note on eqs. (4)–(5).
import Mathlib import Definitions.Def_DimensionalCollapse_Basic open Matrix Filter Topology
namespace DimensionalCollapse
theorem X_difference_of_psd {N n d : ℕ} (x x' : Fin N → Fin n → ℝ)
(W : Matrix (Fin d) (Fin n) ℝ) :
Xmat x x' W = Sigma0 x x' W - Sigma1 x x' W ∧
(Sigma0 x x' W).PosSemidef ∧ (Sigma1 x x' W).PosSemidef := by sorry
end DimensionalCollapseRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
For any natural numbers , any two families of vectors and , and any real matrix , three things hold simultaneously:
There are no further hypotheses. The statement is claimed for every choice of data and every , including , and .
Embeddings and weights. All three matrices depend on only through the weights , which are computed from the embeddings
Write for the squared Euclidean norm. For each , define
The "negatives" here come from the same (unprimed) family as . Then set
Since contains a strictly positive term, there is no division by zero. Each lies in , and for each .
When , all embeddings are the zero vector, so every . When , .
The three matrices. All three are .
Three details of these definitions:
- In , the second inner sum uses the weight , with the indices transposed.
- In , the double sum ranges over all pairs, including . Those terms are zero because , even though is the positive-pair weight.
- Outer products are of the form , with indexing rows and indexing columns.
Meaning of "positive semidefinite". Here means both:
- is symmetric, and
- for every .
Degenerate cases.
- If , all three matrices are the zero matrix.
- If , they are empty matrices.
- If , one has .
What the statement does not involve. It refers to no gradient, no loss, and no relation between and any gradient matrix. It is purely an identity and positivity claim about these explicitly defined matrices.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.