Corollary 1: cross-entropy lower bound with norm-bounded weights
ProvedSupConGeometry.ce_loss_norm_bounded_weightsUnder the hypotheses of Theorem 1 (, , , , balanced ), let and suppose for every . Then
with equality if and only if there are such that
- (C1) for all ;
- (C2) form a -sphere-inscribed regular simplex;
- (C3-r) for all .
Formalization Note is implicit in the paper: its proof picks . For the equality claim fails, since attains the bound for every .
import Mathlib import Definitions.Def_SupConGeometry_Basic open Finset
namespace SupConGeometry
theorem ce_loss_norm_bounded_weights {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) (r : ℝ) (hr : 0 < r) (hW : ∀ y, ‖W y‖ ≤ r) :
Real.log (1 + ((K : ℝ) - 1) * Real.exp (-((K : ℝ) * ρ * r / ((K : ℝ) - 1)))) ≤
ceLoss Z W Y ∧
(ceLoss Z W Y =
Real.log (1 + ((K : ℝ) - 1) * Real.exp (-((K : ℝ) * ρ * r / ((K : ℝ) - 1)))) ↔
∃ ζ : Fin K → Rep h, (∀ n, Z n = ζ (Y n)) ∧ IsSphereInscribedRegularSimplex ζ ρ ∧
∀ y, W y = (r / ρ) • ζ y) := by sorry
end SupConGeometryRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix natural numbers with
Together these force . Work in with its standard Euclidean inner product and norm . The remaining data are:
- Radius. A real number .
- Points. A family with for every . The points need not be distinct, and they may lie strictly inside the ball.
- Weights. A family of weight vectors, thought of as the rows of a matrix .
- Labels. A labelling , with the label of .
- Weight bound. A real number such that each weight vector individually satisfies for every . This is a bound on each row separately, not on the Frobenius norm of .
Balanced labels. The labelling is assumed balanced, meaning that for every class ,
So divides and every class contains exactly points. In particular, every class is nonempty.
Cross-entropy loss. The loss is
Every denominator here is strictly positive and , so no junk values arise.
The constant. Set
which is well defined since .
Claim. The theorem asserts two things.
- Lower bound. .
- Equality case. holds if and only if there exist vectors satisfying all of the following:
-
(a) every point equals the vector of its class, for all ;
-
(b) the form a "sphere-inscribed regular simplex of radius ", meaning:
- ;
- for every ;
- there is a single real number with for all .
The value of is only asserted to exist; it is not specified in the statement.
-
(c) each weight vector is the corresponding rescaled, for every .
In particular, at equality every and every .
-
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.