Local minima of convex functions are global
ProvedConvexOptimization.local_min_is_global_minA local minimum of a convex function is a global minimum.
Let and let be convex on . Suppose is a local minimum of on : there is a radius such that
Then minimizes over all of .
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 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.
import Mathlib open scoped RealInnerProductSpace ENNReal open MeasureTheory
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
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Theorem. Let be any natural number (implicit; allowed), a set, and a function. Assume: (a) is convex on in the standard sense (this hypothesis includes the convexity of the set itself, together with the convexity inequality for between points of ); (b) ; (c) is a local minimizer of relative to , in the precise form: there exists (strictly positive) such that for every with one has (non-strict). The conclusion is that is a global minimizer of on : for every . No continuity or differentiability of is assumed, is a total function on all of (its values outside are unconstrained), and all minimality statements are non-strict inequalities.
Confirmed by the mission captain (proposal self-audit).