Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2.1 property 3 — Gf(x)=0G_f(x) = 0Gf​(x)=0 iff xxx minimizes fff

Proved
ProxNewton.Inexact.compGradStep_eq_zero_iff

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

composite-optimizationoptimality-conditionsp2o-batch-p200ap2o-gran-per-chapterp2o-plan-paperp2o-v1proximal-newton

Let g:Rn→Rg:\mathbb R^n\to\mathbb Rg:Rn→R be convex and continuously differentiable with ∇g\nabla g∇g Lipschitz continuous with constant L1≥0L_1\ge0L1​≥0, and let hhh be a proper closed convex function with domain DDD. Write f=g+hf = g + hf=g+h and Gf(x)=x−prox⁡h(x−∇g(x))G_f(x) = x - \operatorname{prox}_h(x - \nabla g(x))Gf​(x)=x−proxh​(x−∇g(x)) for the composite gradient step with unit step length. Then for every x∈Rnx\in\mathbb R^nx∈Rn,

Gf(x)=0  ⟺  x minimizes f,G_f(x) = 0 \iff x \text{ minimizes } f,Gf​(x)=0⟺x minimizes f,

that is, x∈Dx \in Dx∈D and f(x)≤f(y)f(x)\le f(y)f(x)≤f(y) for all y∈Dy\in Dy∈D.

The length of Gf(x)G_f(x)Gf​(x) therefore measures optimality of xxx in the composite setting, generalizing the condition ∇g(x)=0\nabla g(x) = 0∇g(x)=0 for smooth problems.

Formalization Note GfG_fGf​ is compGradStep g D h 1. The hypotheses are the standing assumptions of §2 (p. 3); the Lipschitz constant is carried because §2 assumes it.

Preamble
import Mathlib
import Definitions.Def_ProxNewton_Inexact_CompositeStep
import Definitions.Def_ProxNewton_Inexact_Standing
Formal statement
namespace ProxNewton.Inexact

open scoped RealInnerProductSpace

/-- §2.1, property 3 of the composite gradient step (p. 4): under the standing assumptions of §2,
`Gf(x) = 0` if and only if `x` minimizes `f = g + h`. -/
theorem compGradStep_eq_zero_iff {n : ℕ} (g : EuclideanSpace ℝ (Fin n) → ℝ)
    (D : Set (EuclideanSpace ℝ (Fin n))) (h : EuclideanSpace ℝ (Fin n) → ℝ) (L1 : ℝ)
    (hg : ContDiff ℝ 1 g) (hgconv : ConvexOn ℝ Set.univ g) (hL1 : 0 ≤ L1)
    (hlip : ∀ x y, ‖gradient g x - gradient g y‖ ≤ L1 * ‖x - y‖)
    (hh : IsProperClosedConvex D h) (x : EuclideanSpace ℝ (Fin n)) :
    compGradStep g D h 1 x = 0 ↔ IsMinimizer g D h x := by sorry

end ProxNewton.Inexact
Source
Lee, Sun & Saunders, Proximal Newton-type methods for minimizing composite functions, arXiv:1206.1623v13, p. 4, §2.1, property 3 of the composite gradient step
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me