Theorem 1 (as proved): cross-entropy lower bound and its equality case for
ProvedSupConGeometry.ce_loss_lower_boundLet with and , let , and let with , with balanced labels . Let have rows . Then
If moreover , equality holds if and only if there are such that
- (C1) for all ;
- (C2) form a -sphere-inscribed regular simplex;
- (C3) there is with for all .
Formalization Note The paper states the equality characterisation for every . It fails at : then equals the bound for every , while (C3) is impossible. The proof's case " gives " contradicts (S2). The statement is what the proof establishes: the bound for all and the characterisation for . and are implicit in the factors and .
import Mathlib import Definitions.Def_SupConGeometry_Basic open Finset
namespace SupConGeometry
theorem ce_loss_lower_bound {N K h : ℕ} (hK : 2 ≤ K) (hKh : K ≤ h + 1) (hN : 0 < N)
(ρ : ℝ) (hρ : 0 < ρ) (Z : Fin N → Rep h) (hZ : ∀ n, ‖Z n‖ ≤ ρ) (W : Fin K → Rep h)
(Y : Fin N → Fin K) (hY : IsBalanced Y) :
Real.log (1 + ((K : ℝ) - 1) *
Real.exp (-(ρ * (Real.sqrt K / ((K : ℝ) - 1)) * frobNorm W))) ≤ ceLoss Z W Y ∧
(W ≠ 0 →
(ceLoss Z W Y = Real.log (1 + ((K : ℝ) - 1) *
Real.exp (-(ρ * (Real.sqrt K / ((K : ℝ) - 1)) * frobNorm W))) ↔
∃ ζ : Fin K → Rep h, (∀ n, Z n = ζ (Y n)) ∧ IsSphereInscribedRegularSimplex ζ ρ ∧
∃ ρW : ℝ, 0 < ρW ∧ ∀ y, W y = (ρW / ρ) • ζ y)) := by sorry
end SupConGeometryRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers and work in with the standard Euclidean inner product and norm . Assume
- , the number of classes;
- , so in particular ;
- , the number of points.
The data are:
- a real number ;
- an arbitrary family of points in with for every . This is an inequality, so points strictly inside the ball are allowed.
- an arbitrary family of vectors in , thought of as the rows of a weight matrix. It is unconstrained and may be zero.
- a labelling with each .
The labelling is assumed balanced: for every class ,
So divides , and every class has exactly members.
Quantities used.
- The cross-entropy loss is
- The Frobenius norm of is
- The bound quantity is
Since , no division by zero occurs anywhere in these expressions.
Claim. Under these hypotheses, two statements hold.
- Lower bound. For all such :
When this reads .
-
Equality characterization, only when . Here means that not every is the zero vector. For such , equality holds if and only if there exist vectors satisfying all of the following:
- for every , so all points with the same label coincide;
- ;
- for every ;
- there is a real number such that for all . No value of is prescribed; it is only required to be common to all pairs.
- there is a real number with for every . No relation between and is stated explicitly.
For the statement says nothing about when equality holds.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.