Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Claim 15.5: the Soft-SVM problem (15.4) with slacks is equivalent to regularized hinge-loss minimization (15.5): the optimal slacks are the hinge losses

Proved
UnderstandingML.soft_svm_slack_equivalence

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

hinge-losssoft-svmsupport-vector-machines

Claim 15.5. Equation (15.4) and Equation (15.5) are equivalent: for fixed (w,b)(w, b)(w,b) the best feasible assignment of the slack variables is ξi=ℓhinge((w,b),(xi,yi))\xi_i = \ell_{hinge}((w,b), (x_i, y_i))ξi​=ℓhinge​((w,b),(xi​,yi​)).

Formally: every feasible slack vector has 1m∑iξi≥LShinge((w,b))\frac1m\sum_i \xi_i \ge L^{hinge}_S((w,b))m1​∑i​ξi​≥LShinge​((w,b)), and the hinge losses form a feasible slack vector; hence the two problems have the same value and the same minimizers (w,b)(w, b)(w,b).

Preamble
import Definitions.Def_UnderstandingML_SVM

open MeasureTheory
open scoped InnerProductSpace
Formal statement
namespace UnderstandingML

/-- **Claim 15.5** (p. 207). Equation (15.4) and Equation (15.5) are equivalent: for fixed
`(w, b)`, the best feasible slack is `ξᵢ = ℓ_hinge((w, b), (xᵢ, yᵢ))`. Stated as: every feasible
slack vector has `(1/m) ∑ ξᵢ ≥ L^hinge_S((w, b))`, and the hinge losses form a feasible slack
vector (whose average is `L^hinge_S((w, b))`), so the two minimization problems have the same
value and the same minimizers `(w, b)`. -/
theorem soft_svm_slack_equivalence {d m : ℕ} (x : Fin m → Vec d) (y : Fin m → ℝ) :
    (∀ (w : Vec d) (b : ℝ) (ξ : Fin m → ℝ), SoftSVMFeasible x y w b ξ →
      (∑ i, hingeLossAffine w b (x i, y i)) / m ≤ (∑ i, ξ i) / m) ∧
    ∀ (w : Vec d) (b : ℝ),
      SoftSVMFeasible x y w b (fun i ↦ hingeLossAffine w b (x i, y i)) := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §15.2 p. 207, Claim 15.5 with its proof
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me