Theorem 1.10 — a function is convex iff its Hessian is positive semidefinite
ProvedShorNonsmooth.Subdiff.convex_iff_hessian_posSemidefconvex-analysishessianp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1
Let be twice continuously differentiable, with Hessian at . Then is convex if and only if is positive semidefinite at every point:
This is the classical second-order test for convexity.
Formalization Note is written as the second Fréchet derivative applied twice, fderiv ℝ (fderiv ℝ f) x v v; twice continuous differentiability is ContDiff ℝ 2 f.
Preamble
import Mathlib
Formal statement
namespace ShorNonsmooth.Subdiff
/-- Shor (1985), p. 11, Theorem 1.10: a twice continuously differentiable function `f` on `E_n`
is convex if and only if its Hessian `H(x)` is positive semidefinite at every point `x`, i.e.
`(H(x) v, v) = D²f(x)(v, v) ≥ 0` for all `x` and `v`. -/
theorem convex_iff_hessian_posSemidef {n : ℕ} (f : EuclideanSpace ℝ (Fin n) → ℝ)
(hf : ContDiff ℝ 2 f) :
ConvexOn ℝ Set.univ f ↔ ∀ x v : EuclideanSpace ℝ (Fin n), 0 ≤ fderiv ℝ (fderiv ℝ f) x v v := by sorry
end ShorNonsmooth.Subdiff
Source
Shor, Minimization Methods for Non-Differentiable Functions, Springer 1985, p. 11, Theorem 1.10
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.