Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Convexity of the n-period value functions fnf_nfn​

Proved
ServiceParts.BaseStock.f_convex

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

convexitydynamic-programminginventoryp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

In the model of Section 2.1 with lead time one period, for every horizon n≥1n \ge 1n≥1 the value function fnf_nfn​ defined by f1=Lf_1 = Lf1​=L and

fn(y)=min⁡u≥0{c u+L(y)+α∫0∞fn−1(y+u−x) g(x) dx}f_n(y) = \min_{u \ge 0}\Big\{ c\,u + L(y) + \alpha\int_0^\infty f_{n-1}(y+u-x)\,g(x)\,dx \Big\}fn​(y)=u≥0min​{cu+L(y)+α∫0∞​fn−1​(y+u−x)g(x)dx}

is a convex function of y∈Ry \in \mathbb Ry∈R.

This is the convexity part of property (c) in the Karlin–Scarf induction; it makes FnF_nFn​ nondecreasing, which is what turns the first-order condition into an order-up-to rule.

Formalization Note The book's property (c) also claims that fn′′f_n''fn′′​ exists everywhere except possibly at sn∗s_n^*sn∗​. That clause fails in general (for yyy below the level, fn′′f_n''fn′′​ equals L′′L''L′′, which jumps at y=0y = 0y=0 when g(0+)>0g(0^+) > 0g(0+)>0, e.g. for exponential demand), so only convexity is stated.

Preamble
import Mathlib
import Definitions.Def_ServiceParts_BaseStock_Model
import Definitions.Def_ServiceParts_BaseStock_Recursion

open MeasureTheory Set Filter Topology
Formal statement
namespace ServiceParts.BaseStock

/-- Section 2.1, p. 19: "Recall that fₙ(y) is a convex function." For every horizon n ≥ 1. -/
theorem f_convex (M : Model) (n : ℕ) (hn : 1 ≤ n) : ConvexOn ℝ univ (M.f n) := by sorry

end ServiceParts.BaseStock
Source
Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer 2005, DOI 10.1007/b138879, p. 19, Section 2.1, proof of Theorem 2 (property (c), convexity clause)
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