Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4: singular values evolve by σ˙k=ukTW˙vk\dot\sigma^k=u^{kT}\dot W v^kσ˙k=ukTW˙vk

Proved
DimensionalCollapse.singular_value_derivative

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

contrastive-learninggradient-flowinfonceself-supervised-learningsingular-values

Let W(s)∈Rd×dW(s)\in\mathbb{R}^{d\times d}W(s)∈Rd×d have, for all sss near ttt, a singular value decomposition W(s)=U(s) diag(σ1(s),…,σd(s)) V(s)⊤W(s)=U(s)\,\mathrm{diag}(\sigma^1(s),\dots,\sigma^d(s))\,V(s)^\topW(s)=U(s)diag(σ1(s),…,σd(s))V(s)⊤ with U(s),V(s)U(s),V(s)U(s),V(s) orthogonal and σk(s)≥0\sigma^k(s)\ge0σk(s)≥0, and suppose UUU, VVV and the σk\sigma^kσk are differentiable at ttt. Then for every kkk

σ˙k(t)=uk(t)⊤ W˙(t) vk(t),\dot\sigma^k(t)=u^{k}(t)^\top\,\dot W(t)\,v^k(t),σ˙k(t)=uk(t)⊤W˙(t)vk(t),

where uk,vku^k,v^kuk,vk are the kkk-th columns of UUU and VVV.

This is the singular-value part of the matrix-dynamics lemma of Arora et al. (2019).

Formalization Note The paper assumes a differentiable SVD implicitly; it is written as a hypothesis on a neighbourhood of ttt. The singular values are not required to be sorted or distinct, since the identity does not need it.

Preamble
import Mathlib
import Definitions.Def_DimensionalCollapse_Basic

open Matrix Filter Topology
Formal statement
namespace DimensionalCollapse

theorem singular_value_derivative {d : ℕ} (W U V : ℝ → Matrix (Fin d) (Fin d) ℝ)
    (sig : ℝ → Fin d → ℝ) (t : ℝ) (hsvd : IsDiffSVDAt W U V sig t) :
    ∀ k, deriv (fun s => sig s k) t =
      ∑ a, ∑ b, U t a k * deriv (fun s => W s a b) t * V t b k := by sorry

end DimensionalCollapse
Source
Jing, Vincent, LeCun and Tian, Understanding Dimensional Collapse in Contrastive Self-supervised Learning, ICLR 2022, arXiv:2110.09348v3, Appendix A, Lemma 4, eq. (12), p. 11
Read-back

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

Let d≥0d \ge 0d≥0 be a natural number, and let

W,  U,  V:R→Rd×dW,\; U,\; V : \mathbb{R} \to \mathbb{R}^{d\times d}W,U,V:R→Rd×d

be three arbitrary matrix-valued functions of a real parameter sss. Let σ:R→Rd\sigma : \mathbb{R} \to \mathbb{R}^dσ:R→Rd be an arbitrary vector-valued function, with components σk(s)\sigma_k(s)σk​(s) for k=1,…,dk = 1,\dots,dk=1,…,d. Fix a real number ttt. Write Wab(s)W_{ab}(s)Wab​(s), Uab(s)U_{ab}(s)Uab​(s), Vab(s)V_{ab}(s)Vab​(s) for matrix entries.

Hypothesis (differentiable SVD at ttt). There is a neighbourhood of ttt such that, for every sss in it, all of the following hold:

  • U(s)U(s)U(s) is an orthogonal matrix, i.e. U(s)⊤U(s)=U(s)U(s)⊤=IU(s)^\top U(s) = U(s) U(s)^\top = IU(s)⊤U(s)=U(s)U(s)⊤=I;
  • V(s)V(s)V(s) is an orthogonal matrix;
  • every entry is nonnegative: σk(s)≥0\sigma_k(s) \ge 0σk​(s)≥0 for all kkk;
  • the factorization holds:
W(s)=U(s) diag⁡(σ1(s),…,σd(s)) V(s)⊤.W(s) = U(s)\,\operatorname{diag}\big(\sigma_1(s),\dots,\sigma_d(s)\big)\,V(s)^\top .W(s)=U(s)diag(σ1​(s),…,σd​(s))V(s)⊤.

In addition, every entry function s↦Uab(s)s \mapsto U_{ab}(s)s↦Uab​(s), every entry function s↦Vab(s)s \mapsto V_{ab}(s)s↦Vab​(s), and every component s↦σk(s)s \mapsto \sigma_k(s)s↦σk​(s) is differentiable at the single point ttt.

Nothing else is assumed. In particular:

  • The values σk(s)\sigma_k(s)σk​(s) are not required to be sorted in any order.
  • They are not required to be distinct; repeated or zero values are allowed.
  • No differentiability of WWW is assumed separately. Differentiability is assumed only at ttt, not on the whole neighbourhood.

Conclusion. For every index k∈{1,…,d}k \in \{1,\dots,d\}k∈{1,…,d},

dds∣s=tσk(s)  =  ∑a=1d∑b=1dUak(t) dds∣s=tWab(s) Vbk(t).\frac{d}{ds}\Big|_{s=t} \sigma_k(s) \;=\; \sum_{a=1}^{d}\sum_{b=1}^{d} U_{ak}(t)\,\frac{d}{ds}\Big|_{s=t} W_{ab}(s)\,V_{bk}(t).dsd​​s=t​σk​(s)=a=1∑d​b=1∑d​Uak​(t)dsd​​s=t​Wab​(s)Vbk​(t).

Equivalently, σ˙k(t)=uk(t)⊤ W˙(t) vk(t)\dot\sigma_k(t) = u_k(t)^\top\,\dot W(t)\,v_k(t)σ˙k​(t)=uk​(t)⊤W˙(t)vk​(t), where uk(t)u_k(t)uk​(t) and vk(t)v_k(t)vk​(t) are the kkk-th columns of U(t)U(t)U(t) and V(t)V(t)V(t).

How the derivatives are read. Each derivative here is the ordinary one-variable derivative at ttt. By convention, this derivative is taken to be 000 whenever the function fails to be differentiable at ttt.

  • For each σk\sigma_kσk​, differentiability at ttt is a hypothesis.
  • For the entries WabW_{ab}Wab​, differentiability at ttt is not stated directly. It follows because, near ttt, WWW equals the product U diag⁡(σ) V⊤U\,\operatorname{diag}(\sigma)\,V^\topUdiag(σ)V⊤, and each factor is differentiable at ttt.

Degenerate case. When d=0d = 0d=0, there is no index kkk, and the statement holds trivially.

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