Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter V, Theorem 4 — red-tape penalty: constant stock level at the last, absolute minimum of ψ

Proved
BellmanDP.Inventory.red_tape_constant_stock_level

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

dynamic-programminginventoryp2o-batch-b23bp2o-gran-per-chapterp2o-plan-bookp2o-v1

Add to the proportional penalty a fixed "red-tape" cost q≥0q \ge 0q≥0 for every stock-out:

f(x)=min⁡y≥x[k(y−x)+a(∫y∞[p(s−y)+q]φ(s) ds+f(0)∫y∞φ(s) ds+∫0yf(y−s)φ(s) ds)].f(x) = \min_{y\ge x}\Big[k(y-x) + a\Big(\int_y^\infty [p(s-y)+q]\varphi(s)\,ds + f(0)\int_y^\infty\varphi(s)\,ds + \int_0^y f(y-s)\varphi(s)\,ds\Big)\Big].f(x)=y≥xmin​[k(y−x)+a(∫y∞​[p(s−y)+q]φ(s)ds+f(0)∫y∞​φ(s)ds+∫0y​f(y−s)φ(s)ds)].

Assume the conditions of Theorem 1 (k,p>0k, p > 0k,p>0; φ>0\varphi > 0φ>0 on (0,∞)(0,\infty)(0,∞), ∫0∞φ=1\int_0^\infty\varphi = 1∫0∞​φ=1, finite mean; 0<a<10 < a < 10<a<1; ap>kap > kap>k) and let

ψ(y)=ky+a[∫y∞[p(s−y)+q]φ(s) ds−k∫0y(y−s)φ(s) ds].\psi(y) = ky + a\Big[\int_y^\infty [p(s-y)+q]\varphi(s)\,ds - k\int_0^y (y-s)\varphi(s)\,ds\Big].ψ(y)=ky+a[∫y∞​[p(s−y)+q]φ(s)ds−k∫0y​(y−s)φ(s)ds].

Suppose xˉ≥0\bar x \ge 0xˉ≥0 is an absolute minimizer of ψ\psiψ on [0,∞)[0,\infty)[0,∞) and that ψ\psiψ has no later minimum: ψ\psiψ is nondecreasing on [xˉ,∞)[\bar x,\infty)[xˉ,∞). Then the equation has exactly one solution among measurable functions bounded on [0,∞)[0,\infty)[0,∞), and for every x≥0x \ge 0x≥0 its minimum is attained at

y=xˉ  if 0≤x≤xˉ,y=x  if x≥xˉ.y = \bar x \ \text{ if } 0 \le x \le \bar x, \qquad y = x \ \text{ if } x \ge \bar x.y=xˉ  if 0≤x≤xˉ,y=x  if x≥xˉ.

Unlike the case q=0q = 0q=0, the critical-level equation need not have a unique root; the constant-stock-level policy survives when its last minimum is the global one.

Formalization Note The book's hypothesis "the last minimum of ψ\psiψ is the absolute minimum in 0≤y≤∞0 \le y \le \infty0≤y≤∞" is read as: xˉ\bar xxˉ minimizes ψ\psiψ on [0,∞)[0,\infty)[0,∞) and ψ\psiψ is monotone nondecreasing on [xˉ,∞)[\bar x,\infty)[xˉ,∞). Since ψ\psiψ is continuous and tends to +∞+\infty+∞, a last local minimizer that is a global minimizer satisfies this. The book states no condition on qqq; q≥0q \ge 0q≥0 (a cost) is assumed. The bracket of (6), unbalanced in print, is closed at the end.

Preamble
import Mathlib
import Definitions.Def_BellmanDP_Inventory_Model

open MeasureTheory Filter Topology
Formal statement
namespace BellmanDP.Inventory

/-- Bellman, *Dynamic Programming*, Ch. V, § 9, Theorem 4, p. 171. Under the assumptions of
Theorem 1 on `a, k, p, φ` and `q ≥ 0`, suppose `x̄ ≥ 0` is an absolute minimizer of
`ψ(y) = ky + a [∫_y^∞ [p(s − y) + q] φ(s) ds − k ∫_0^y (y − s) φ(s) ds]` on `[0, ∞)` and that
`ψ` has no later minimum (it is monotone nondecreasing on `[x̄, ∞)`; this is the reading of
"the last minimum of ψ is the absolute minimum"). Then equation (9.1) has exactly one solution
in the class of measurable functions bounded on `[0, ∞)`, and for every `x ≥ 0` its minimum is
attained at `y = x̄` if `x ≤ x̄` and at `y = x` if `x ≥ x̄`. -/
theorem red_tape_constant_stock_level (k p q a : ℝ) (φ : ℝ → ℝ)
    (hk : 0 < k) (hp : 0 < p) (hq : 0 ≤ q) (hφ : DemandDensity φ)
    (ha0 : 0 < a) (ha1 : a < 1) (hapk : k < a * p)
    (xbar : ℝ) (hxbar : 0 ≤ xbar)
    (hmin : ∀ y : ℝ, 0 ≤ y → psiQ k p q a φ xbar ≤ psiQ k p q a φ y)
    (hlast : MonotoneOn (psiQ k p q a φ) (Set.Ici xbar)) :
    ∃ f : ℝ → ℝ, BoundedClass f ∧ SolvesInf (invTq k p q a φ) f ∧
      (∀ g : ℝ → ℝ, BoundedClass g → SolvesInf (invTq k p q a φ) g →
        Set.EqOn g f (Set.Ici 0)) ∧
      ∀ x : ℝ, 0 ≤ x →
        IsLeast (invTq k p q a φ f x '' Set.Ici x) (invTq k p q a φ f x (max x xbar)) := by sorry

end BellmanDP.Inventory
Source
Bellman, Dynamic Programming, Princeton University Press (1957; Princeton Landmarks ed. 2010), DOI 10.2307/j.ctv1nxcw0f, Chapter V, § 9, Theorem 4, p. 171 (equation (9.1), p. 170)
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

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