Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 6 (as proved): second-order expansion as α→0\alpha\to0α→0

Proved
NeuralCollapseCE.small_alpha_expansion

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

cross-entropyjensen-inequalityneural-collapsesimplex-etfuniform-distribution-on-sphere

Let u1,…,unu_1,\dots,u_nu1​,…,un​ be unit vectors in Rd\mathbb{R}^dRd and U=∑jujU=\sum_{j}u_jU=∑j​uj​. As α→0\alpha\to0α→0,

∑i=1nlog⁡(∑j=1neα⟨ui,uj⟩)=nlog⁡n+αn∥U∥2+α22n∑i,j=1n⟨ui,uj⟩2−α22n2∑i=1n⟨ui,U⟩2+O(α3).\sum_{i=1}^n\log\Big(\sum_{j=1}^ne^{\alpha\langle u_i,u_j\rangle}\Big)=n\log n+\frac{\alpha}{n}\|U\|^2+\frac{\alpha^2}{2n}\sum_{i,j=1}^n\langle u_i,u_j\rangle^2-\frac{\alpha^2}{2n^2}\sum_{i=1}^n\langle u_i,U\rangle^2+\mathcal O(\alpha^3).i=1∑n​log(j=1∑n​eα⟨ui​,uj​⟩)=nlogn+nα​∥U∥2+2nα2​i,j=1∑n​⟨ui​,uj​⟩2−2n2α2​i=1∑n​⟨ui​,U⟩2+O(α3).

The leading terms form an effective energy close to the frame potential of Benedetto and Fickus, with a strong incentive for U=0U=0U=0.

Formalization Note The printed Proposition 6 has α22n\frac{\alpha^2}{2n}2nα2​ in front of the last sum; its proof (Section 6) produces α22n2\frac{\alpha^2}{2n^2}2n2α2​, which is the correct coefficient (for n=2n=2n=2, u1=u2u_1=u_2u1​=u2​ the printed version leaves an error of order α2\alpha^2α2). The statement is the one the proof establishes. O(α3)\mathcal O(\alpha^3)O(α3) is Landau's big-O as α→0\alpha\to0α→0 for the fixed configuration.

Preamble
import Mathlib
import Definitions.Def_NeuralCollapseCE_Basic

open MeasureTheory Filter Topology Asymptotics
Formal statement
namespace NeuralCollapseCE

theorem small_alpha_expansion {n d : ℕ} (u : Fin n → Vec d) (hu : IsUnitConfig u) :
    (fun α : ℝ =>
      ∑ i, Real.log (∑ j, Real.exp (α * inner ℝ (u i) (u j))) -
        ((n : ℝ) * Real.log n + α / n * ‖∑ i, u i‖ ^ 2 +
          α ^ 2 / (2 * n) * ∑ i, ∑ j, (inner ℝ (u i) (u j)) ^ 2 -
          α ^ 2 / (2 * (n : ℝ) ^ 2) * ∑ i, (inner ℝ (u i) (∑ j, u j)) ^ 2))
      =O[𝓝 0] (fun α : ℝ => α ^ 3) := by sorry

end NeuralCollapseCE
Source
Lu and Steinerberger, Neural collapse with cross-entropy loss, arXiv:2012.08465v2 (2021), Section 1.4, Proposition 6, p. 4; proof in Section 6, p. 15 (coefficient of the last term as in the proof)
Read-back

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

Let n,dn, dn,d be natural numbers, and let u=(u1,…,un)u = (u_1, \dots, u_n)u=(u1​,…,un​) be an nnn-tuple of vectors in Rd\mathbb{R}^dRd with the Euclidean norm ∥⋅∥\|\cdot\|∥⋅∥ and inner product ⟨⋅,⋅⟩\langle \cdot, \cdot \rangle⟨⋅,⋅⟩. The only hypothesis is that uuu is a unit configuration: ∥ui∥=1\|u_i\| = 1∥ui​∥=1 for every i=1,…,ni = 1, \dots, ni=1,…,n. No other condition is imposed on uuu or on nnn and ddd. There is no lower bound on nnn or ddd, and the vectors may coincide.

For a real parameter α\alphaα, define the error function

E(α)  =  ∑i=1nlog⁡ ⁣(∑j=1neα⟨ui,uj⟩)  −  T(α),E(\alpha) \;=\; \sum_{i=1}^n \log\!\Big(\sum_{j=1}^n e^{\alpha \langle u_i, u_j\rangle}\Big) \;-\; T(\alpha),E(α)=i=1∑n​log(j=1∑n​eα⟨ui​,uj​⟩)−T(α),

where T(α)T(\alpha)T(α) is the following quadratic polynomial in α\alphaα:

T(α)  =  nlog⁡n  +  αn ∥∑i=1nui∥2  +  α22n∑i=1n∑j=1n⟨ui,uj⟩2  −  α22n2∑i=1n⟨ui,∑j=1nuj⟩2.T(\alpha) \;=\; n \log n \;+\; \frac{\alpha}{n}\,\Big\|\sum_{i=1}^n u_i\Big\|^2 \;+\; \frac{\alpha^2}{2n} \sum_{i=1}^n \sum_{j=1}^n \langle u_i, u_j\rangle^2 \;-\; \frac{\alpha^2}{2n^2} \sum_{i=1}^n \Big\langle u_i, \sum_{j=1}^n u_j \Big\rangle^2 .T(α)=nlogn+nα​​i=1∑n​ui​​2+2nα2​i=1∑n​j=1∑n​⟨ui​,uj​⟩2−2n2α2​i=1∑n​⟨ui​,j=1∑n​uj​⟩2.

The inner sum ∑j=1n\sum_{j=1}^n∑j=1n​ inside each logarithm runs over all jjj, including j=ij = ij=i. There is no −1-1−1 shift in the exponent, and no "1+1 +1+" term.

The theorem asserts that E(α)=O(α3)E(\alpha) = O(\alpha^3)E(α)=O(α3) as α→0\alpha \to 0α→0. Precisely, there exist a constant CCC and a neighbourhood UUU of 000 in R\mathbb{R}R such that

∣E(α)∣≤C ∣α∣3for all α∈U.|E(\alpha)| \le C\,|\alpha|^3 \quad \text{for all } \alpha \in U.∣E(α)∣≤C∣α∣3for all α∈U.

Several points about the scope of this claim:

  • The neighbourhood UUU contains α=0\alpha = 0α=0 itself, so the claim includes E(0)=0E(0) = 0E(0)=0.
  • The constant CCC and the neighbourhood UUU may depend on nnn, ddd and uuu. No uniformity in these is asserted.
  • Only the behaviour near α=0\alpha = 0α=0 is asserted. Nothing is claimed for α\alphaα away from 000.

Degenerate cases:

  • n=0n = 0n=0. All sums are empty and equal 000. The formalisation uses the conventions log⁡0=0\log 0 = 0log0=0 and division by 000 equals 000, so nlog⁡nn \log nnlogn, α/n\alpha/nα/n, α2/(2n)\alpha^2/(2n)α2/(2n) and α2/(2n2)\alpha^2/(2n^2)α2/(2n2) all evaluate to 000. Hence E≡0E \equiv 0E≡0 and the claim is trivial.
  • d=0d = 0d=0 and n≥1n \ge 1n≥1. There are no unit vectors in R0\mathbb{R}^0R0, so the hypothesis cannot be satisfied and the statement is vacuous.
  • Logarithms. For n≥1n \ge 1n≥1, each argument of log⁡\loglog in EEE is strictly positive, so no junk values of the logarithm arise there.
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 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