Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Local minima of convex functions are global

Proved
ConvexOptimization.local_min_is_global_min

by Shuze Chen · Aug 12, 2026 · Mathlib 0df444a (Lean v4.33.1)

convexoptimizationdualitykkt

A local minimum of a convex function is a global minimum.

Let X⊆RnX \subseteq \mathbb{R}^nX⊆Rn and let fff be convex on XXX. Suppose x∈Xx \in Xx∈X is a local minimum of fff on XXX: there is a radius r>0r > 0r>0 such that

f(x)≤f(y)for every y∈X with ∥y−x∥2<r.f(x) \le f(y) \qquad \text{for every } y \in X \text{ with } \lVert y - x\rVert_2 < r .f(x)≤f(y)for every y∈X with ∥y−x∥2​<r.

Then xxx minimizes fff over all of XXX.

This is the structural fact that makes convex optimization tractable: there are no strictly local traps, so any method that certifies local optimality certifies global optimality, and the words "optimal" and "locally optimal" can be used interchangeably throughout the theory. Convexity of XXX itself is not needed as a separate hypothesis — it is carried by ConvexOn ℝ X f, which asserts convexity of the domain along with the inequality.

Formalization Note The conclusion is Mathlib's IsMinOn f X x; the local hypothesis is stated with an explicit radius rather than with a neighbourhood filter, matching the book's phrasing. Source: B&V §4.2.2, p. 138.

Preamble
import Mathlib

open scoped RealInnerProductSpace ENNReal
open MeasureTheory

Formal statement
theorem ConvexOptimization.local_min_is_global_min {n : ℕ}
    (X : Set (EuclideanSpace ℝ (Fin n))) (f : EuclideanSpace ℝ (Fin n) → ℝ)
    (hf : ConvexOn ℝ X f) (x : EuclideanSpace ℝ (Fin n)) (hx : x ∈ X)
    (hloc : ∃ r > 0, ∀ y ∈ X, ‖y - x‖ < r → f x ≤ f y) :
    IsMinOn f X x := by
  sorry
Source
Boyd & Vandenberghe 2004, Convex Optimization, Cambridge University Press (seventh printing with corrections, 2009), https://web.stanford.edu/~boyd/cvxbook/, pp. 138, §4.2.2 (any locally optimal point of a convex problem is globally optimal)

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