Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.8 — first-order optimality on a convex set

Proved
ModernOnlineLearning.OGD.theorem_2_8

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-optimizationfirst-order-optimalityp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let VVV be a nonempty convex subset of a real inner-product space, let x⋆∈Vx^\star\in Vx⋆∈V, and let fff be convex and differentiable on an open set containing VVV. Then

x⋆∈argmin⁡x∈Vf(x)⟺⟨∇f(x⋆),y−x⋆⟩≥0for every y∈V.x^\star\in\operatorname*{argmin}_{x\in V}f(x)\quad\Longleftrightarrow\quad\langle\nabla f(x^\star),y-x^\star\rangle\ge0\quad\text{for every }y\in V.x⋆∈x∈Vargmin​f(x)⟺⟨∇f(x⋆),y−x⋆⟩≥0for every y∈V.

This condition characterizes constrained minima through feasible first-order directions and is used to analyze Euclidean projection.

Formalization Note The ambient space is a complete real inner-product space; the chapter's proof is dimension independent.

Preamble
import Mathlib
Formal statement
namespace ModernOnlineLearning.OGD

/-- Orabona, Theorem 2.8, p. 11: first-order condition for a differentiable
convex function on a convex feasible set. -/
theorem theorem_2_8 {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]
    [CompleteSpace E] (V : Set E) (hV : V.Nonempty) (hconv : Convex ℝ V)
    (f : E → ℝ) (xstar : E) (hx : xstar ∈ V)
    (hopen : ∃ U : Set E, IsOpen U ∧ V ⊆ U ∧ ConvexOn ℝ U f ∧ DifferentiableOn ℝ f U) :
    (∀ y ∈ V, f xstar ≤ f y) ↔
      ∀ y ∈ V, 0 ≤ inner ℝ (gradient f xstar) (y - xstar) := by sorry

end ModernOnlineLearning.OGD
Source
Orabona, arXiv:1912.13213v10, Theorem 2.8, p. 11
Human review
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 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