Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 3.14 — the calibration function controls the minimizer sets, and Eq. (3.16)

Proved
SupportVectorMachines.Calibration.lemma_3_14_properties_of_calibration_function

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

machine-learningprobabilitystatistics

This is Lemma 3.14 (Properties of the calibration function) of Steinwart & Christmann, Support Vector Machines (Springer 2008, p. 58), the basic toolkit for the calibration function, and the result Theorem 3.17's own proof cites directly ("By part i) of Lemma 3.14...").

Let Ltar,LsurL_{\mathrm{tar}}, L_{\mathrm{sur}}Ltar​,Lsur​ be losses and QQQ a distribution on the label space. For all x∈Xx \in Xx∈X and ε∈[0,∞]\varepsilon \in [0,\infty]ε∈[0,∞]:

  1. MLsur,Q,x(δmax⁡(ε,Q,x))⊆MLtar,Q,x(ε)M_{L_{\mathrm{sur}},Q,x}(\delta_{\max}(\varepsilon,Q,x)) \subseteq M_{L_{\mathrm{tar}},Q,x}(\varepsilon)MLsur​,Q,x​(δmax​(ε,Q,x))⊆MLtar​,Q,x​(ε).
  2. MLsur,Q,x(δ)⊈MLtar,Q,x(ε)M_{L_{\mathrm{sur}},Q,x}(\delta) \not\subseteq M_{L_{\mathrm{tar}},Q,x}(\varepsilon)MLsur​,Q,x​(δ)⊆MLtar​,Q,x​(ε) whenever δ>δmax⁡(ε,Q,x)\delta > \delta_{\max}(\varepsilon,Q,x)δ>δmax​(ε,Q,x).
  3. If CLtar,Q,x∗<∞C^*_{L_{\mathrm{tar}},Q,x} < \inftyCLtar​,Q,x∗​<∞ and CLsur,Q,x∗<∞C^*_{L_{\mathrm{sur}},Q,x} < \inftyCLsur​,Q,x∗​<∞, then for every t∈Rt \in \mathbb Rt∈R (Eq. (3.16)),
δmax⁡(CLtar,Q,x(t)−CLtar,Q,x∗, Q, x)≤CLsur,Q,x(t)−CLsur,Q,x∗.\delta_{\max}\big(C_{L_{\mathrm{tar}},Q,x}(t) - C^*_{L_{\mathrm{tar}},Q,x},\, Q,\, x\big) \le C_{L_{\mathrm{sur}},Q,x}(t) - C^*_{L_{\mathrm{sur}},Q,x}.δmax​(CLtar​,Q,x​(t)−CLtar​,Q,x∗​,Q,x)≤CLsur​,Q,x​(t)−CLsur​,Q,x∗​.

Parts 1-2 together show δmax⁡(ε,Q,x)\delta_{\max}(\varepsilon,Q,x)δmax​(ε,Q,x) is literally the largest δ\deltaδ for which the surrogate's δ\deltaδ-approximate minimizers are trapped inside the target's ε\varepsilonε-approximate minimizers; Eq. (3.16) is the pointwise inequality that, once integrated over xxx, will later yield inequalities between excess risks.

Formalization Note No IsProbabilityMeasure Q hypothesis is added: re-reading the proof (p. 59) directly, no step uses QQQ having total mass 111, only the inner-risk machinery, which is well-defined for any measure — a disclosed, harmless generalization, the same kind the 01-loss-functions mission made for Lemma 2.23's convexity hypothesis.

Preamble
import Mathlib
import Definitions.Def_SupportVectorMachines_Calibration_Loss
import Definitions.Def_SupportVectorMachines_Calibration_InnerRisks
import Definitions.Def_SupportVectorMachines_Calibration_CalibrationFunction

open MeasureTheory
Formal statement
namespace SupportVectorMachines.Calibration

/-- Lemma 3.14 (Properties of the calibration function), p. 58: for all `x ∈ X` and
`ε ∈ [0,∞]`: i) `M_{Lsur,Q,x}(δmax(ε,Q,x)) ⊆ M_{Ltar,Q,x}(ε)`; ii) `M_{Lsur,Q,x}(δ) ⊄
M_{Ltar,Q,x}(ε)` whenever `δ > δmax(ε,Q,x)`; and, if `C*_{Ltar,Q,x} < ∞` and `C*_{Lsur,Q,x} < ∞`,
Eq. (3.16): for all `t ∈ ℝ`,
`δmax(C_{Ltar,Q,x}(t) - C*_{Ltar,Q,x}, Q, x) ≤ C_{Lsur,Q,x}(t) - C*_{Lsur,Q,x}`. -/
theorem lemma_3_14_properties_of_calibration_function {X : Type*} (Ltar Lsur : Loss X)
    (Q : Measure ℝ) (x : X) (ε : ENNReal) :
    (approxMinimizers Lsur Q x (calibrationFunction Ltar Lsur Q x ε) ⊆
        approxMinimizers Ltar Q x ε) ∧
    (∀ δ : ENNReal, calibrationFunction Ltar Lsur Q x ε < δ →
      ¬ (approxMinimizers Lsur Q x δ ⊆ approxMinimizers Ltar Q x ε)) ∧
    (minInnerRisk Ltar Q x < ⊤ → minInnerRisk Lsur Q x < ⊤ →
      ∀ t : ℝ, calibrationFunction Ltar Lsur Q x
          (innerRisk Ltar Q x t - minInnerRisk Ltar Q x) ≤
        innerRisk Lsur Q x t - minInnerRisk Lsur Q x) := by sorry

end SupportVectorMachines.Calibration
Source
Steinwart & Christmann, Support Vector Machines, Springer 2008, p. 58, Lemma 3.14, Eq. (3.16)
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