Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (17): positive definiteness of K(t)K(t)K(t) in the aligned eigenbasis

Proved
SSLWithoutPairs.alignment_condition_modes

by Xeroth · Nov 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

byoleigenspace-alignmentgradient-flowlinear-networksself-supervised-learning

Let αp>0\alpha_p>0αp​>0, η≥0\eta\ge0η≥0, and suppose the eigenspaces are aligned: Wp=Udiag⁡[pj]U⊤W_p=U\operatorname{diag}[p_j]U^\topWp​=Udiag[pj​]U⊤ and F=Udiag⁡[sj]U⊤F=U\operatorname{diag}[s_j]U^\topF=Udiag[sj​]U⊤ for an orthogonal UUU, on the invariant parabola sj=αp−1pj2s_j=\alpha_p^{-1}p_j^2sj​=αp−1​pj2​. With Δj=pj[τ−(1+σ2)pj]−η\Delta_j=p_j[\tau-(1+\sigma^2)p_j]-\etaΔj​=pj​[τ−(1+σ2)pj​]−η, the matrix KKK of eq. (9) is positive definite if and only if, for every jjj,

Δj<12[αp(1+σ2)sj+η].\Delta_j<\tfrac12\big[\alpha_p(1+\sigma^2)s_j+\eta\big].Δj​<21​[αp​(1+σ2)sj​+η].

This is the second of the two criteria of Section 3.2. The first, Δj>0\Delta_j>0Δj​>0, is needed for pjp_jpj​ to grow.

Formalization Note The invariance sj=αp−1pj2s_j=\alpha_p^{-1}p_j^2sj​=αp−1​pj2​ is kept as a hypothesis because the paper states it, although the equivalence does not use it.

Preamble
import Mathlib
import Definitions.Def_SSLWithoutPairs_Basic

open MeasureTheory ProbabilityTheory Filter Topology Matrix
Formal statement
namespace SSLWithoutPairs

theorem alignment_condition_modes {d : ℕ} (αp σ η τ : ℝ) (hαp : 0 < αp) (hη : 0 ≤ η)
    (U : Matrix.orthogonalGroup (Fin d) ℝ) (p s : Fin d → ℝ) (hinv : ∀ j, s j = αp⁻¹ * p j ^ 2) :
    (alignK αp σ η τ
        ((U : Matrix (Fin d) (Fin d) ℝ) * diagonal s * (U : Matrix (Fin d) (Fin d) ℝ)ᵀ)
        ((U : Matrix (Fin d) (Fin d) ℝ) * diagonal p * (U : Matrix (Fin d) (Fin d) ℝ)ᵀ)).PosDef ↔
      ∀ j, modeDelta σ η τ (p j) < (αp * (1 + σ ^ 2) * s j + η) / 2 := by sorry

end SSLWithoutPairs
Source
Tian, Chen and Ganguli, Understanding Self-Supervised Learning Dynamics without Contrastive Pairs, arXiv:2102.06810v4 (2021), Section 3.2, eq. (17), p. 7
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Fix a dimension d∈Nd \in \mathbb{N}d∈N (d=0d = 0d=0 is allowed) and real parameters αp,σ,η,τ\alpha_p, \sigma, \eta, \tauαp​,σ,η,τ, subject only to

  • αp>0\alpha_p > 0αp​>0, and
  • η≥0\eta \ge 0η≥0.

The parameters σ\sigmaσ and τ\tauτ are arbitrary reals. σ\sigmaσ enters only through σ2\sigma^2σ2, and τ\tauτ may have any sign.

Let UUU be any real orthogonal d×dd \times dd×d matrix, so U⊤U=UU⊤=IdU^\top U = U U^\top = I_dU⊤U=UU⊤=Id​. Let p=(p1,…,pd)p = (p_1,\dots,p_d)p=(p1​,…,pd​) and s=(s1,…,sd)s = (s_1,\dots,s_d)s=(s1​,…,sd​) be real vectors satisfying, for every jjj,

sj=pj2αp.s_j = \frac{p_j^2}{\alpha_p}.sj​=αp​pj2​​.

This hypothesis can be satisfied for every ppp: it simply fixes sss in terms of ppp, and forces every sj≥0s_j \ge 0sj​≥0. Form the symmetric matrices

F=U diag(s1,…,sd) U⊤,Wp=U diag(p1,…,pd) U⊤,F = U\,\mathrm{diag}(s_1,\dots,s_d)\,U^\top, \qquad W_p = U\,\mathrm{diag}(p_1,\dots,p_d)\,U^\top,F=Udiag(s1​,…,sd​)U⊤,Wp​=Udiag(p1​,…,pd​)U⊤,

and from them the matrix

K=(1+σ2)[αp2F+Wp2−τ1+σ2Wp]+32η Id.K = (1+\sigma^2)\Big[\tfrac{\alpha_p}{2} F + W_p^2 - \tfrac{\tau}{1+\sigma^2} W_p\Big] + \tfrac{3}{2}\eta\, I_d .K=(1+σ2)[2αp​​F+Wp2​−1+σ2τ​Wp​]+23​ηId​.

Since 1+σ2≥11+\sigma^2 \ge 11+σ2≥1, the division here is never by zero.

For a real number qqq, define

Δ(q)=q [τ−(1+σ2)q]−η.\Delta(q) = q\,\big[\tau - (1+\sigma^2) q\big] - \eta .Δ(q)=q[τ−(1+σ2)q]−η.

Assertion. The theorem states that KKK is positive definite if and only if, for every index j∈{1,…,d}j \in \{1,\dots,d\}j∈{1,…,d},

Δ(pj)  <  αp(1+σ2) sj+η2.\Delta(p_j) \;<\; \frac{\alpha_p (1+\sigma^2)\, s_j + \eta}{2}.Δ(pj​)<2αp​(1+σ2)sj​+η​.

Here "positive definite" means that KKK is symmetric and x⊤Kx>0x^\top K x > 0x⊤Kx>0 for every nonzero x∈Rdx \in \mathbb{R}^dx∈Rd. The inequality is strict, and the statement is a two-way equivalence.

Edge cases.

  • When d=0d = 0d=0, both sides hold trivially: the empty matrix counts as positive definite, and the condition over indices is vacuous.
  • No assumption is placed on the sign of τ\tauτ, on ppp, or on τ2−4η(1+σ2)\tau^2 - 4\eta(1+\sigma^2)τ2−4η(1+σ2).
Human review
  • Endorsed by Shuze Chen · Nov 24, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 24, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me