Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 8, eq. (10) — closed form of the distance to degeneracy for a polytope

Proved
SPOBounds.Polyhedral.nu_formula

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

distance-to-degeneracyp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1polytopepredict-then-optimize

Let EEE be a finite-dimensional real normed space with dual norm ∥⋅∥∗\|\cdot\|_*∥⋅∥∗​, let v1,…,vK∈Ev_1,\dots,v_K\in Ev1​,…,vK​∈E be pairwise distinct, and let S=conv{v1,…,vK}S=\mathrm{conv}\{v_1,\dots,v_K\}S=conv{v1​,…,vK​} be not a singleton. Let w∗w^*w∗ be any optimization oracle for SSS, i.e. w∗(c^)∈arg⁡min⁡w∈Sc^⊤ww^*(\hat c)\in\arg\min_{w\in S}\hat c^\top ww∗(c^)∈argminw∈S​c^⊤w for every cost vector c^\hat cc^. Then for every cost vector c^\hat cc^ the distance to degeneracy is

νS(c^)=min⁡j: vj≠w∗(c^){c^⊤(vj−w∗(c^))∥vj−w∗(c^)∥}.\nu_S(\hat c)=\min_{j:\,v_j\ne w^*(\hat c)}\Big\{\frac{\hat c^\top(v_j-w^*(\hat c))}{\|v_j-w^*(\hat c)\|}\Big\}.νS​(c^)=j:vj​=w∗(c^)min​{∥vj​−w∗(c^)∥c^⊤(vj​−w∗(c^))​}.

The distance to degeneracy is thus computable from one call to the oracle and KKK evaluations; this is what makes the margin SPO loss of the paper usable for polyhedral feasible regions.

Formalization Note The minimum is stated with IsLeast over the finite set of values indexed by {j:vj≠w∗(c^)}\{j : v_j\ne w^*(\hat c)\}{j:vj​=w∗(c^)}; this set is nonempty because SSS is not a singleton, and the denominators are nonzero on it. The numerator uses c^\hat cc^ as a functional on EEE, the denominator is the primal norm of EEE, and νS\nu_SνS​ is measured in the operator (dual) norm. The oracle is arbitrary, including one that returns a non-vertex optimal solution when c^\hat cc^ is degenerate.

Preamble
import Mathlib
import Definitions.Def_SPOBounds_Shared_Degeneracy
Formal statement
namespace SPOBounds.Polyhedral

/-- Theorem 8, eq. (10), arXiv:1905.11488v3, p. 25: if `S = conv{v_1, …, v_K}` (distinct `v_i`)
is not a singleton, then for every optimization oracle `w*` and every cost vector `ĉ`,
`ν_S(ĉ) = min_{j : v_j ≠ w*(ĉ)} ĉᵀ(v_j − w*(ĉ)) / ‖v_j − w*(ĉ)‖`
(the minimum over a nonempty finite index set, stated as `IsLeast`). -/
theorem nu_formula {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
    [FiniteDimensional ℝ E]
    {K : ℕ} (v : Fin K → E) (hv : Function.Injective v)
    (S : Set E) (hS : S = convexHull ℝ (Set.range v)) (hSnt : S.Nontrivial)
    (w : StrongDual ℝ E → E) (hw : ∀ c : StrongDual ℝ E, w c ∈ S ∧ ∀ x ∈ S, c (w c) ≤ c x)
    (chat : StrongDual ℝ E) :
    IsLeast ((fun j => chat (v j - w chat) / ‖v j - w chat‖) '' {j | v j ≠ w chat})
      (SPOBounds.Shared.nu S chat) := by sorry

end SPOBounds.Polyhedral
Source
El Balghiti, Elmachtoub, Grigas, Tewari, Generalization Bounds in the Predict-then-Optimize Framework, arXiv:1905.11488v3, p. 25, Theorem 8, eq. (10)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting.

  • EEE is a finite-dimensional real normed vector space, and E∗E^*E∗ is its space of continuous linear functionals.
  • KKK is a natural number, and v1,…,vK∈Ev_1,\dots,v_K \in Ev1​,…,vK​∈E are pairwise distinct. No lower bound on KKK is stated.
  • S⊆ES \subseteq ES⊆E is assumed equal to conv⁡{v1,…,vK}\operatorname{conv}\{v_1,\dots,v_K\}conv{v1​,…,vK​}.
  • SSS is assumed nontrivial: it contains at least two distinct points.
  • w∗:E∗→Ew^* : E^* \to Ew∗:E∗→E is any function such that, for every c∈E∗c \in E^*c∈E∗, w∗(c)∈Sw^*(c) \in Sw∗(c)∈S and c(w∗(c))≤c(x)c(w^*(c)) \le c(x)c(w∗(c))≤c(x) for all x∈Sx \in Sx∈S. So w∗w^*w∗ selects a minimizer of ccc over SSS for every ccc.
  • c^∈E∗\hat c \in E^*c^∈E∗ is arbitrary.

Claim. The theorem states that νS(c^)\nu_S(\hat c)νS​(c^) is the least element of the set

{c^(vj−w∗(c^))∥vj−w∗(c^)∥  :  j∈{1,…,K}, vj≠w∗(c^)}.\left\{ \frac{\hat c\bigl(v_j - w^*(\hat c)\bigr)}{\|v_j - w^*(\hat c)\|} \;:\; j \in \{1,\dots,K\},\ v_j \ne w^*(\hat c) \right\}.{∥vj​−w∗(c^)∥c^(vj​−w∗(c^))​:j∈{1,…,K}, vj​=w∗(c^)}.

That is, both of the following hold:

  • νS(c^)\nu_S(\hat c)νS​(c^) equals one of these ratios, for some jjj with vj≠w∗(c^)v_j \ne w^*(\hat c)vj​=w∗(c^);
  • νS(c^)\nu_S(\hat c)νS​(c^) is at most every such ratio.

Here νS(c^)\nu_S(\hat c)νS​(c^) is the value of an imported definition, SPOBounds.Shared.nu, applied to SSS and c^\hat cc^. Its code is not included in this declaration, so its meaning cannot be expanded here. The claim holds for every admissible selector w∗w^*w∗. So the minimum on the right must be the same for every choice of minimizer w∗(c^)w^*(\hat c)w∗(c^).

Degenerate cases.

  • Denominators. Every denominator in the set is nonzero, because only indices with vj≠w∗(c^)v_j \ne w^*(\hat c)vj​=w∗(c^) are included. No division by zero occurs.
  • Size of KKK. Nontriviality of SSS rules out K=0K = 0K=0, where S=∅S = \emptysetS=∅, and K=1K = 1K=1, where SSS is a single point. So K≥2K \ge 2K≥2. At most one vertex can equal w∗(c^)w^*(\hat c)w∗(c^), so the index set is nonempty.
  • Zero functional. If c^=0\hat c = 0c^=0, every ratio is 000, and the claim is νS(0)=0\nu_S(0) = 0νS​(0)=0.
  • Selector. The hypothesis on w∗w^*w∗ constrains its value at every functional, not only at c^\hat cc^. It is a condition on the whole selector function.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me