Lemma B.4: when the lower bound of Lemma B.3 is attained
ProvedNeuralCollapseUFM.ce_risk_lower_bound_attainedUnder the assumptions of Lemma B.3 (, , , a critical point of , , ), the lower bound
is attained if and only if all of the following hold:
- ;
- for some ;
- for all ;
- for all , ;
- ;
- .
These are the equality conditions (a)-(e) of the proof of Theorem 3.1.
import Mathlib import Definitions.Def_NeuralCollapseUFM_Basic open Matrix Filter Topology
namespace NeuralCollapseUFM
theorem ce_risk_lower_bound_attained {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) :
ceRisk (logits x.1 x.2.1 x.2.2) =
-(frobSq x.1) / ((1 + c1) * ((K : ℝ) - 1)) * Real.sqrt (lamW / (lamH * n)) + cTwo K c1 ↔
(∀ k l, Real.sqrt (sqNorm (x.1 k)) = Real.sqrt (sqNorm (x.1 l))) ∧
(∃ b0 : ℝ, x.2.2 = fun _ => b0) ∧
(∀ i, (1 / (K : ℝ)) • (∑ j, fun r => x.2.1 r (j, i)) = 0) ∧
(∀ k i, Real.sqrt (lamW / (lamH * n)) • x.1 k = fun r => x.2.1 r (k, i)) ∧
x.1 * x.1ᵀ = (frobSq x.1 / ((K : ℝ) - 1)) • (1 - (1 / (K : ℝ)) • onesMat K) ∧
c1 = (((K : ℝ) - 1) *
Real.exp (-(frobSq x.1 / ((K : ℝ) - 1)) * Real.sqrt (lamW / (lamH * n))))⁻¹ := by sorry
end NeuralCollapseUFMRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be natural numbers with and . The feature dimension is unrestricted and may be . Let be real numbers with
Let be an arbitrary parameter triple:
- , with rows ;
- , whose columns are indexed by pairs with and ; column is written ;
- .
Let be any real number with .
Definitions used. For a logit vector and a class , the cross-entropy loss is
The logit matrix is , whose column is . The averaged risk is
The objective is
where is the sum of squared entries and is the sum of squared coordinates.
The constant is
Write for the all-ones matrix and for the identity matrix.
Hypothesis. is a critical point of in the following directional sense. For every direction in the parameter space, the real function is differentiable at with derivative . Nothing requires to be a local or global minimizer.
Conclusion. The following equation holds
if and only if all six of the following conditions hold simultaneously:
- All rows of have the same Euclidean norm: for all classes .
- The bias is a constant vector: there is a real with . No condition such as is imposed.
- For every sample index , the average of the features across classes vanishes:
- Every feature is a fixed multiple of its class's classifier row: for all ,
- The Gram matrix of has the form
- The constant equals a specific value determined by :
Remarks on the literal content.
- is universally quantified. Condition 6 is part of the right-hand side, so for a fixed the equivalence can only have a true right-hand side for the single value of named in condition 6. For every other , the statement asserts that the displayed equation fails.
- All logarithms and the inverse in condition 6 have strictly positive arguments, because and .
- When (or more generally when ), we have . In that case:
- the left-hand equation reads ;
- conditions 1, 3, 4 and 5 hold automatically when and ;
- condition 6 reads .
- The hypothesis is assumed, but condition 2 permits any constant bias .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.