Lemma B.5 (as proved): lower bound for the cross-entropy loss and its equality case
ProvedNeuralCollapseUFM.ce_loss_lower_boundLet , , and , and let . Then
with equality if and only if for all and
This is a lower bound for the cross-entropy that is linear in the logits; it drives the proof of Theorem 3.1.
Formalization Note The paper states that equality holds "when" these conditions hold. Its proof shows both directions, and Lemma B.4 uses the "only if" direction, so the equivalence is stated.
import Mathlib import Definitions.Def_NeuralCollapseUFM_Basic open Matrix Filter Topology
namespace NeuralCollapseUFM
theorem ce_loss_lower_bound {K : ℕ} (hK : 2 ≤ K) (z : Fin K → ℝ) (k : Fin K) (c1 : ℝ)
(hc1 : 0 < c1) :
1 / (1 + c1) * ((∑ i, z i) - K * z k) / ((K : ℝ) - 1) + cTwo K c1 ≤ ceLoss z k ∧
(ceLoss z k = 1 / (1 + c1) * ((∑ i, z i) - K * z k) / ((K : ℝ) - 1) + cTwo K c1 ↔
(∀ i j, i ≠ k → j ≠ k → z i = z j) ∧
c1 = (((K : ℝ) - 1) * Real.exp (((∑ i, z i) - K * z k) / ((K : ℝ) - 1)))⁻¹) := by sorry
end NeuralCollapseUFMRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns a natural number with , an arbitrary real vector (the coordinates are indexed by the classes), an arbitrary class index , and an arbitrary real number with . Throughout, write
The cross-entropy loss of at label is defined as
which equals . The denominator is a nonempty sum of positive terms, so no degenerate logarithm arises.
The constant is defined as
Under the hypotheses and , both logarithm arguments are strictly positive.
The theorem asserts the conjunction of two claims.
- Lower bound. The following inequality holds:
Here , and , so the division is genuine.
- Equality characterization. The inequality in (1) holds with equality if and only if both of the following are true:
- all coordinates of other than the -th are equal, that is, for all with and ;
- equals the specific value
This value is always strictly positive and finite.
When , there is only one index , so the first equality condition holds automatically. In that case equality is characterized by the condition on alone.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.