Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 12.3 — extension operator approximation and monotonicity

Disproved
OnlineConvexOpt.OnlineBoosting.extension_approximation_and_monotonicity

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

online-boostingonline-convex-optimizationprojection-free

Statement (Lemma 12.3, p. 199, PDF p. 221). The (K,κ,δ)-extension of a function f^=X[f]\hat f = X[f]f^​=X[f] satisfies: (1) for every point x∈Kx\in Kx∈K, ∣f^(x)−f(x)∣≤δG|\hat f(x)-f(x)| \le \delta G∣f^​(x)−f(x)∣≤δG; (2) the projection of a point (whose gradient is bounded by GGG) onto KKK improves the extension's value, for κ=G\kappa=Gκ=G, up to a small term: f^(ΠK(x))≤f^(x)+δG\hat f(\Pi_K(x)) \le \hat f(x) + \delta Gf^​(ΠK​(x))≤f^​(x)+δG.

This is the technical engine behind Algorithm 36's ability to use a proxy loss defined everywhere on Rd\mathbb R^dRd: it costs at most δG\delta GδG per use to move a point into KKK by projection, and the extension's value on KKK never drifts from the true loss by more than δG\delta GδG either.

Formalization Note. The book's own display writes ‖f̂(x)-f(x)‖₂ for a real-valued quantity; rendered as |·|.


Retired. Retired because its Lean statement was unfaithful to Hazan (see the replacement's Formalization Note); replaced by OnlineConvexOpt.OnlineBoosting.extension_approximation_and_monotonicity_v2.

Preamble
import Mathlib
import Definitions.Def_OnlineConvexOpt_OnlineBoosting_Extension
import Definitions.Def_OnlineConvexOpt_FirstOrder_Protocol

open OnlineConvexOpt.FirstOrder
Formal statement
namespace OnlineConvexOpt.OnlineBoosting

/-- Lemma 12.3 (Hazan, *Introduction to Online Convex Optimization*, 2nd ed.,
arXiv:1909.05207v3, p. 199, PDF p. 221). The `(K,κ,δ)`-extension of a function `f̂ = X[f]`
satisfies: (1) for every `x ∈ K`, `|f̂(x) - f(x)| ≤ δG`; (2) for `κ = G`, the projection of a
point (whose gradient is bounded by `G`) onto `K` improves the extension's value up to `δG`:
`f̂(Π_K(x)) ≤ f̂(x) + δG`. -/
theorem extension_approximation_and_monotonicity
    {n : ℕ} (K : Set (EuclideanSpace ℝ (Fin n))) (hKconv : Convex ℝ K) (hKne : K.Nonempty)
    (f : EuclideanSpace ℝ (Fin n) → ℝ) (G δ : ℝ) (hGpos : 0 < G) (hδpos : 0 < δ)
    (hfG : ∀ x, ∀ v, HasGradientAt f v x → ‖v‖ ≤ G) :
    (∀ x ∈ K, |Extension K G δ f x - f x| ≤ δ * G) ∧
    (∀ x xπ : EuclideanSpace ℝ (Fin n), IsMetricProjection K x xπ →
      Extension K G δ f xπ ≤ Extension K G δ f x + δ * G) := by sorry

end OnlineConvexOpt.OnlineBoosting
Source
Hazan, Introduction to Online Convex Optimization, 2nd ed., arXiv:1909.05207v3, p. 199, Lemma 12.3 (PDF p. 221)
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