Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.2: balance of WWW and HHH at critical points

Proved
NeuralCollapseUFM.critical_point_balance

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

cross-entropyneural-collapsesimplex-etfstrict-saddleunconstrained-feature-model

Let K≥2K\ge2K≥2, n≥1n\ge1n≥1 and λW,λH,λb>0\lambda_W,\lambda_H,\lambda_b>0λW​,λH​,λb​>0, and let (W,H,b)(W,H,b)(W,H,b) be a critical point of the objective fff of (14). Then

W⊤W=λHλWHH⊤andρ:=∥W∥F2=λHλW∥H∥F2.W^\top W=\frac{\lambda_H}{\lambda_W}HH^\top\qquad\text{and}\qquad\rho:=\|W\|_F^2=\frac{\lambda_H}{\lambda_W}\|H\|_F^2.W⊤W=λW​λH​​HH⊤andρ:=∥W∥F2​=λW​λH​​∥H∥F2​.

This balance between the classifier and the features is used in the proofs of Theorems 3.1 and 3.2.

Formalization Note "Critical point" means that every directional derivative of fff at (W,H,b)(W,H,b)(W,H,b) vanishes, which is the same as ∇f(W,H,b)=0\nabla f(W,H,b)=0∇f(W,H,b)=0 because fff is smooth.

Preamble
import Mathlib
import Definitions.Def_NeuralCollapseUFM_Basic

open Matrix Filter Topology
Formal statement
namespace NeuralCollapseUFM

theorem critical_point_balance {K d n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n)
    (lamW lamH lamb : ℝ) (hW : 0 < lamW) (hH : 0 < lamH) (hb : 0 < lamb)
    (x : Params K d n) (hx : IsCriticalPoint (objective lamW lamH lamb) x) :
    x.1ᵀ * x.1 = (lamH / lamW) • (x.2.1 * x.2.1ᵀ) ∧
      frobSq x.1 = lamH / lamW * frobSq x.2.1 := by sorry

end NeuralCollapseUFM
Source
Zhu, Ding, Zhou, Li, You, Sulam and Qu, A Geometric Analysis of Neural Collapse with Unconstrained Features, arXiv:2105.02375v1 (2021), Appendix B.2, Lemma B.2, eq. (16), p. 31
Read-back

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

Let K,d,nK, d, nK,d,n be natural numbers with K≥2K \ge 2K≥2 and n≥1n \ge 1n≥1. The dimension ddd is unrestricted and may be 000. Let λW,λH,λb\lambda_W, \lambda_H, \lambda_bλW​,λH​,λb​ be real numbers with

λW>0,λH>0,λb>0.\lambda_W > 0, \qquad \lambda_H > 0, \qquad \lambda_b > 0.λW​>0,λH​>0,λb​>0.

Let x=(W,H,b)x = (W, H, b)x=(W,H,b) be an arbitrary parameter triple, where:

  • W∈RK×dW \in \mathbb{R}^{K \times d}W∈RK×d has rows w1,…,wK∈Rdw^1, \dots, w^K \in \mathbb{R}^dw1,…,wK∈Rd;
  • H∈Rd×(K×n)H \in \mathbb{R}^{d \times (K \times n)}H∈Rd×(K×n) has columns indexed by pairs (k,i)(k,i)(k,i) with k∈{1,…,K}k \in \{1,\dots,K\}k∈{1,…,K} and i∈{1,…,n}i \in \{1,\dots,n\}i∈{1,…,n}; column (k,i)(k,i)(k,i) is a vector hk,i∈Rdh_{k,i} \in \mathbb{R}^dhk,i​∈Rd;
  • b∈RKb \in \mathbb{R}^Kb∈RK.

The objective is

f(W,H,b)=1Kn∑k=1K∑i=1nLCE(Whk,i+b,  k)+λW2∥W∥F2+λH2∥H∥F2+λb2∥b∥22.f(W,H,b) = \frac{1}{Kn}\sum_{k=1}^{K}\sum_{i=1}^{n} L_{\mathrm{CE}}\big(W h_{k,i} + b,\; k\big) + \frac{\lambda_W}{2}\|W\|_F^2 + \frac{\lambda_H}{2}\|H\|_F^2 + \frac{\lambda_b}{2}\|b\|_2^2 .f(W,H,b)=Kn1​k=1∑K​i=1∑n​LCE​(Whk,i​+b,k)+2λW​​∥W∥F2​+2λH​​∥H∥F2​+2λb​​∥b∥22​.

Its terms are defined as follows:

  • For z∈RKz \in \mathbb{R}^Kz∈RK, the cross-entropy is LCE(z,k)=−log⁡ ⁣(ezk/∑j=1Kezj)L_{\mathrm{CE}}(z,k) = -\log\!\big(e^{z_k} / \sum_{j=1}^K e^{z_j}\big)LCE​(z,k)=−log(ezk​/∑j=1K​ezj​).
  • ∥A∥F2\|A\|_F^2∥A∥F2​ is the sum of the squares of all entries of AAA.
  • ∥b∥22=∑jbj2\|b\|_2^2 = \sum_j b_j^2∥b∥22​=∑j​bj2​.
  • Since Kn≥2Kn \ge 2Kn≥2, the prefactor 1/(Kn)1/(Kn)1/(Kn) is a genuine division and not a junk value.

The hypothesis is that xxx is a critical point of fff, in the following specific sense. For every direction Δ=(ΔW,ΔH,Δb)\Delta = (\Delta_W, \Delta_H, \Delta_b)Δ=(ΔW​,ΔH​,Δb​) in the same parameter space, the one-variable function

t↦f(x+tΔ)t \mapsto f(x + t\Delta)t↦f(x+tΔ)

is differentiable at t=0t = 0t=0 with derivative 000. This is a condition on directional derivatives along every line through xxx; it is not stated as vanishing of a full (Fréchet) gradient.

Under these assumptions, the theorem asserts both of the following:

W⊤W=λHλW HH⊤(an equality of d×d matrices),W^{\top} W = \frac{\lambda_H}{\lambda_W}\, H H^{\top} \quad \text{(an equality of } d \times d \text{ matrices)},W⊤W=λW​λH​​HH⊤(an equality of d×d matrices), ∥W∥F2=λHλW ∥H∥F2.\|W\|_F^2 = \frac{\lambda_H}{\lambda_W}\, \|H\|_F^2 .∥W∥F2​=λW​λH​​∥H∥F2​.

Edge cases and unused hypotheses:

  • The hypothesis λb>0\lambda_b > 0λb​>0 is assumed but does not appear in either conclusion.
  • When d=0d = 0d=0, both conclusions hold trivially. Both sides of the first equation are the empty 0×00 \times 00×0 matrix, and both Frobenius norms are 000.
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