Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.3: lower bound for the cross-entropy term at critical points

Proved
NeuralCollapseUFM.ce_risk_lower_bound

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, N=nKN=nKN=nK and λW,λH,λb>0\lambda_W,\lambda_H,\lambda_b>0λW​,λH​,λb​>0. Let (W,H,b)(W,H,b)(W,H,b) be a critical point of fff in (14), let ρ=∥W∥F2\rho=\|W\|_F^2ρ=∥W∥F2​, and let c1>0c_1>0c1​>0, with c2c_2c2​ as in Lemma B.5. Then

g(WH+b1⊤)≥−ρ(1+c1)(K−1)λWλHn+c2.g(WH+b1^\top)\ge-\frac{\rho}{(1+c_1)(K-1)}\sqrt{\frac{\lambda_W}{\lambda_Hn}}+c_2.g(WH+b1⊤)≥−(1+c1​)(K−1)ρ​λH​nλW​​​+c2​.

Together with λW2∥W∥F2+λH2∥H∥F2=λWρ\frac{\lambda_W}2\|W\|_F^2+\frac{\lambda_H}2\|H\|_F^2=\lambda_W\rho2λW​​∥W∥F2​+2λH​​∥H∥F2​=λW​ρ at critical points, this gives the lower bound ξ(ρ)\xi(\rho)ξ(ρ) on fff used for Theorem 3.1.

Preamble
import Mathlib
import Definitions.Def_NeuralCollapseUFM_Basic

open Matrix Filter Topology
Formal statement
namespace NeuralCollapseUFM

theorem ce_risk_lower_bound {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) (c1 : ℝ)
    (hc1 : 0 < c1) :
    -(frobSq x.1) / ((1 + c1) * ((K : ℝ) - 1)) * Real.sqrt (lamW / (lamH * n)) + cTwo K c1 ≤
      ceRisk (logits x.1 x.2.1 x.2.2) := 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.3, eq. (19), p. 32
Read-back

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

Setting. Let K,d,nK, d, nK,d,n be natural numbers with K≥2K \ge 2K≥2 and n≥1n \ge 1n≥1. The feature dimension ddd is unrestricted, so d=0d = 0d=0 is allowed. 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.

A parameter point is a triple x=(W,H,b)x = (W, H, b)x=(W,H,b) consisting of:

  • a real matrix W∈RK×dW \in \mathbb{R}^{K \times d}W∈RK×d, whose rows w1,…,wKw^1, \dots, w^Kw1,…,wK are indexed by classes;
  • a real matrix H∈Rd×(K×n)H \in \mathbb{R}^{d \times (K \times n)}H∈Rd×(K×n), whose columns hk,i∈Rdh_{k,i} \in \mathbb{R}^dhk,i​∈Rd are 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} (so there are N=KnN = KnN=Kn columns);
  • a vector b∈RKb \in \mathbb{R}^Kb∈RK.

Definitions used.

  • The cross-entropy of a vector z∈RKz \in \mathbb{R}^Kz∈RK with label kkk is
LCE(z,k)=−log⁡ ⁣(ezk∑j=1Kezj).L_{\mathrm{CE}}(z, k) = -\log\!\left( \frac{e^{z_k}}{\sum_{j=1}^K e^{z_j}} \right).LCE​(z,k)=−log(∑j=1K​ezj​ezk​​).
  • The logit matrix is Z=WH+b1⊤∈RK×(K×n)Z = WH + b\mathbf{1}^\top \in \mathbb{R}^{K \times (K\times n)}Z=WH+b1⊤∈RK×(K×n). Its column (k,i)(k,i)(k,i) is zk,i=Whk,i+bz_{k,i} = W h_{k,i} + bzk,i​=Whk,i​+b.
  • The averaged cross-entropy risk is
g(Z)=1Kn∑k=1K∑i=1nLCE(zk,i,k).g(Z) = \frac{1}{Kn} \sum_{k=1}^K \sum_{i=1}^n L_{\mathrm{CE}}(z_{k,i}, k).g(Z)=Kn1​k=1∑K​i=1∑n​LCE​(zk,i​,k).
  • The objective is
f(W,H,b)=g(WH+b1⊤)+λW2∥W∥F2+λH2∥H∥F2+λb2∥b∥22,f(W,H,b) = g(WH + b\mathbf{1}^\top) + \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)=g(WH+b1⊤)+2λW​​∥W∥F2​+2λH​​∥H∥F2​+2λb​​∥b∥22​,

where ∥⋅∥F2\|\cdot\|_F^2∥⋅∥F2​ is the sum of squared entries and ∥b∥22=∑jbj2\|b\|_2^2 = \sum_j b_j^2∥b∥22​=∑j​bj2​.

Hypotheses.

  • The point xxx is a critical point of fff in the following 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.
  • Additionally, c1c_1c1​ is an arbitrary real number with c1>0c_1 > 0c1​>0. No other relation between c1c_1c1​ and the remaining data is assumed.

Constant. Define

c2=11+c1log⁡((1+c1)(K−1))+c11+c1log⁡ ⁣(1+c1c1).c_2 = \frac{1}{1+c_1}\log\big((1+c_1)(K-1)\big) + \frac{c_1}{1+c_1}\log\!\left(\frac{1+c_1}{c_1}\right).c2​=1+c1​1​log((1+c1​)(K−1))+1+c1​c1​​log(c1​1+c1​​).

Because K≥2K \ge 2K≥2 and c1>0c_1 > 0c1​>0, both logarithms have positive arguments. Likewise (1+c1)(K−1)>0(1+c_1)(K-1) > 0(1+c1​)(K−1)>0 and λW/(λHn)>0\lambda_W/(\lambda_H n) > 0λW​/(λH​n)>0, so no division-by-zero or negative-square-root conventions arise.

Conclusion. The theorem asserts the lower bound

−∥W∥F2(1+c1)(K−1)⋅λWλH n  +  c2  ≤  g(WH+b1⊤).-\frac{\|W\|_F^2}{(1+c_1)(K-1)} \cdot \sqrt{\frac{\lambda_W}{\lambda_H\, n}} \;+\; c_2 \;\le\; g\big(WH + b\mathbf{1}^\top\big).−(1+c1​)(K−1)∥W∥F2​​⋅λH​nλW​​​+c2​≤g(WH+b1⊤).

This is a non-strict inequality. Its right-hand side is only the cross-entropy part of the objective, without the regularization terms.

Points to note.

  • The bound must hold simultaneously for every c1>0c_1 > 0c1​>0.
  • The parameter λb\lambda_bλb​ enters only through the critical-point hypothesis. Apart from requiring λb>0\lambda_b > 0λb​>0, it does not appear in the conclusion.
  • In the degenerate case d=0d = 0d=0, the matrices WWW and HHH are empty, so ∥W∥F2=0\|W\|_F^2 = 0∥W∥F2​=0 and every logit column equals bbb. The claim then reduces to c2≤g(b1⊤)c_2 \le g(b\mathbf{1}^\top)c2​≤g(b1⊤) at critical points.
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