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