Lemma 8: lower bound on the sum of inter-class inner products
ProvedSupConGeometry.supcon_repulsion_index_sumLet , , and let lie on the sphere of radius in , with labels . Then
with equality if and only if
- (Q5) , and
- (Q6) implies .
This is the step where the zero-mean and class-collapse conditions of the simplex arise.
Formalization Note The printed inner sum has the subscript , which is a typo for (the proof's first line uses ).
import Mathlib import Definitions.Def_SupConGeometry_Basic open Finset
namespace SupConGeometry
theorem supcon_repulsion_index_sum {N K h : ℕ} (hKh : K ≤ h + 1)
(ρ : ℝ) (hρ : 0 < ρ) (Z : Fin N → Rep h) (hZ : ∀ n, ‖Z n‖ = ρ) (Y : Fin N → Fin K) :
-(ρ ^ 2) * ∑ y, (labelCount Y y : ℝ) ^ 2 ≤
∑ y, ∑ n ∈ univ.filter (fun n => Y n = y), ∑ m ∈ univ.filter (fun m => Y m ≠ y),
inner ℝ (Z n) (Z m) ∧
(∑ y, ∑ n ∈ univ.filter (fun n => Y n = y), ∑ m ∈ univ.filter (fun m => Y m ≠ y),
inner ℝ (Z n) (Z m) = -(ρ ^ 2) * ∑ y, (labelCount Y y : ℝ) ^ 2 ↔
(∑ n, Z n = 0) ∧ ∀ n m : Fin N, Y n = Y m → Z n = Z m) := by sorry
end SupConGeometryRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be natural numbers, all implicit. They are subject only to the hypothesis
The other inputs are:
- Representation space. with its standard Euclidean inner product and norm .
- Radius. A real number with .
- Points. A family of points in , indexed by , with for every .
- Labels. An arbitrary labelling assigning each index a class .
- Class counts. For each class , write . A class may have count .
Define the cross-class sum
Each ordered pair with is counted exactly once, namely at . So this equals , a sum over ordered pairs of indices with different labels.
The theorem asserts the conjunction of two statements.
(1) Lower bound:
(2) Equality characterization:
On the right-hand side of (2):
- The sum runs over all instances, not over classes.
- The second condition says that all points sharing a label coincide.
- No assumption is made that the labels are balanced or that every class actually occurs.
Edge cases.
- Role of the hypotheses. The hypothesis bounds the number of available classes, not the number of classes actually used by . The radius enters only through the norm condition and the bound itself.
- . Both sides of (1) are . Both conditions on the right of (2) hold trivially, so the theorem holds trivially.
- . A labelling can exist only if .
- . The space contains only the zero vector, so is unsatisfiable unless . In that case the statement is again trivial.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.