Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 13.5: λ‖w‖² is 2λ-strongly convex; strongly convex + convex is strongly convex; a minimizer u of a λ-strongly convex f has f(w) − f(u) ≥ (λ/2)‖w − u‖²

Proved
UnderstandingML.strongly_convex_lemma

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

convexitystrong-convexity

Lemma 13.5. (1) The function f(w)=λ∥w∥2f(w) = \lambda\|w\|^2f(w)=λ∥w∥2 is 2λ2\lambda2λ-strongly convex. (2) If fff is λ\lambdaλ-strongly convex and ggg is convex, then f+gf + gf+g is λ\lambdaλ-strongly convex. (3) If fff is λ\lambdaλ-strongly convex and uuu is a minimizer of fff, then for any www, f(w)−f(u)≥λ2∥w−u∥2f(w) - f(u) \ge \frac\lambda2\|w - u\|^2f(w)−f(u)≥2λ​∥w−u∥2.

Formally: with Mathlib's StrongConvexOn Set.univ, for every real λ\lambdaλ.

Preamble
import Definitions.Def_UnderstandingML_Convex

open MeasureTheory
open scoped InnerProductSpace
Formal statement
namespace UnderstandingML

/-- **Lemma 13.5** (p. 175). (1) The function `f(w) = λ‖w‖²` is `2λ`-strongly convex. (2) If `f` is
`λ`-strongly convex and `g` is convex, then `f + g` is `λ`-strongly convex. (3) If `f` is
`λ`-strongly convex and `u` is a minimizer of `f`, then for any `w`,
`f(w) − f(u) ≥ (λ/2)‖w − u‖²`. Strong convexity is Mathlib's `StrongConvexOn` (Definition
13.4). -/
theorem strongly_convex_lemma {d : ℕ} :
    (∀ lam : ℝ, StrongConvexOn Set.univ (2 * lam) (fun w : Vec d ↦ lam * ‖w‖ ^ 2)) ∧
    (∀ (lam : ℝ) (f g : Vec d → ℝ), StrongConvexOn Set.univ lam f → ConvexOn ℝ Set.univ g →
      StrongConvexOn Set.univ lam (f + g)) ∧
    ∀ (lam : ℝ) (f : Vec d → ℝ) (u : Vec d), StrongConvexOn Set.univ lam f →
      (∀ w, f u ≤ f w) → ∀ w, lam / 2 * ‖w - u‖ ^ 2 ≤ f w - f u := by sorry

end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §13.3 p. 175, Lemma 13.5 with its proof
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me