Theorem 3(b) — the SPO loss is Lipschitz-like away from degeneracy
ProvedSPOBounds.Margin.spo_loss_lipschitz_likeLet be a finite-dimensional real normed space with dual norm , and let be nonempty, compact, convex and not a singleton. Let be any optimization oracle for , and suppose satisfies the strength property with parameter . Then for every fixed cost vector and all ,
where the right-hand side is read as when the minimum is zero.
The SPO loss is discontinuous at degenerate predictions; this result quantifies its regularity away from them.
Formalization Note Stated multiplied out: , equivalent to the displayed form when the minimum is positive and trivially true when it is zero.
import Mathlib import Definitions.Def_SPOBounds_Margin_Model import Definitions.Def_SPOBounds_Margin_Degeneracy
namespace SPOBounds.Margin
/-- **Theorem 3(b)** (arXiv:1905.11488v3, p. 16). Under the strength property with parameter
`μ > 0` (nonempty, compact, convex, non-singleton `S`, any oracle `w`), for every fixed cost
vector `c` and all `ĉ₁, ĉ₂`,
`|ℓ_SPO(ĉ₁, c) − ℓ_SPO(ĉ₂, c)| ≤ (‖c‖_* / (μ · min{ν_S(ĉ₁), ν_S(ĉ₂)})) ‖ĉ₁ − ĉ₂‖_*`,
stated multiplied out (the paper reads the right-hand side as `+∞` when the minimum is `0`). -/
theorem spo_loss_lipschitz_like {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
[FiniteDimensional ℝ E]
(S : Set E) (hS : S.Nonempty) (hSc : IsCompact S) (hSv : Convex ℝ S) (hSnt : S.Nontrivial)
(w : StrongDual ℝ E → E) (hw : IsOracle S w)
(μ : ℝ) (hμ : 0 < μ) (hstr : StrengthProperty S μ w)
(c c₁ c₂ : StrongDual ℝ E) :
μ * min (nu S c₁) (nu S c₂) * |spoLoss w c₁ c - spoLoss w c₂ c| ≤
‖c‖ * ‖c₁ - c₂‖ := by sorry
end SPOBounds.Margin
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite-dimensional real normed space and its dual with the operator norm . Assume:
- is nonempty, compact and convex, and contains two distinct points.
- is an oracle for : for every , minimizes over .
- is a real number satisfying the strength property: for all and ,
Here is the operator-norm distance from to the set of cost vectors with two distinct minimizers on .
The SPO loss is .
Conclusion. For all :
Note that .
Degenerate cases.
- Distance to degeneracy is zero. If or (for example, if either is the zero functional), the left side is and the claim is trivial.
- Zero cost vector or equal predictions. If or , both sides are .
- No division. The statement is multiplied out, so no division by zero occurs. has dimension at least .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.