Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.12 — the subdifferential of ∑aifi\sum a_i f_i∑ai​fi​ (ai≥0a_i \ge 0ai​≥0) is ∑aiGfi(x0)\sum a_i G_{f_i}(x_0)∑ai​Gfi​​(x0​)

Proved
ShorNonsmooth.Subdiff.subdifferential_nonneg_combination

by mikedeng1 · Oct 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

convex-analysisp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1subgradientsum-rule

Let f1,…,fkf_1, \dots, f_kf1​,…,fk​ be convex functions on EnE_nEn​, let a1,…,ak≥0a_1, \dots, a_k \ge 0a1​,…,ak​≥0, and let

f(x)=∑i=1kaifi(x).f(x) = \sum_{i=1}^k a_i f_i(x).f(x)=i=1∑k​ai​fi​(x).

Then fff is convex, and for every point x0x_0x0​ its subdifferential consists of exactly the vectors of the form

g(x0)=∑i=1kaigi(x0),gi(x0)∈Gfi(x0),g(x_0) = \sum_{i=1}^k a_i g_i(x_0), \qquad g_i(x_0) \in G_{f_i}(x_0),g(x0​)=i=1∑k​ai​gi​(x0​),gi​(x0​)∈Gfi​​(x0​),

i.e. Gf(x0)={∑i=1kaigi:gi∈Gfi(x0), i=1,…,k}G_f(x_0) = \{\sum_{i=1}^k a_i g_i : g_i \in G_{f_i}(x_0),\ i = 1,\dots,k\}Gf​(x0​)={∑i=1k​ai​gi​:gi​∈Gfi​​(x0​), i=1,…,k}.

This is the sum rule (Moreau–Rockafellar) for finite-valued convex functions on EnE_nEn​: every subgradient of a nonnegative combination is obtained by combining subgradients of the pieces.

Formalization Note The conclusion is an equality of sets, both inclusions. The index set is Fin k; for k=0k = 0k=0 the function is 000 and both sides are {0}\{0\}{0}. The book prints gi(x0)∈Gfi(x)g_i(x_0) \in G_{f_i}(x)gi​(x0​)∈Gfi​​(x), a misprint for Gfi(x0)G_{f_i}(x_0)Gfi​​(x0​).

Preamble
import Mathlib
import Definitions.Def_ShorNonsmooth_Subdiff_Subdifferential
Formal statement
namespace ShorNonsmooth.Subdiff

/-- Shor (1985), p. 13, Theorem 1.12: let `f(x) = ∑_{i=1}^k a_i f_i(x)` with `a_i ≥ 0` and each
`f_i` convex on `E_n`. Then `f` is convex, and its subdifferential at any point `x₀` consists of
exactly the vectors `∑_{i=1}^k a_i g_i` with `g_i ∈ G_{f_i}(x₀)` (formula (1.7); the book prints
`G_{f_i}(x)` for `G_{f_i}(x₀)`). -/
theorem subdifferential_nonneg_combination {n k : ℕ} (a : Fin k → ℝ) (ha : ∀ i, 0 ≤ a i)
    (f : Fin k → EuclideanSpace ℝ (Fin n) → ℝ) (hf : ∀ i, ConvexOn ℝ Set.univ (f i)) :
    ConvexOn ℝ Set.univ (fun x => ∑ i, a i * f i x) ∧
      ∀ x₀ : EuclideanSpace ℝ (Fin n),
        subdifferential Set.univ (fun x => ∑ i, a i * f i x) x₀ =
          {g | ∃ gs : Fin k → EuclideanSpace ℝ (Fin n),
            (∀ i, gs i ∈ subdifferential Set.univ (f i) x₀) ∧ g = ∑ i, a i • gs i} := by sorry

end ShorNonsmooth.Subdiff
Source
Shor, Minimization Methods for Non-Differentiable Functions, Springer 1985, p. 13, Theorem 1.12 (formula (1.7))
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 2, 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