Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Chapter V, Eq. (5.8) — the critical stock level is the unique root of ∫0yφ=(ap−k)/a(p−k)\int_0^y\varphi = (ap-k)/a(p-k)∫0y​φ=(ap−k)/a(p−k)

Proved
BellmanDP.Inventory.stock_level_root_unique

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

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

Let k,p>0k, p > 0k,p>0, 0<a<10 < a < 10<a<1 with ap>kap > kap>k, and let φ\varphiφ be a demand density: φ(s)>0\varphi(s) > 0φ(s)>0 for s>0s > 0s>0, ∫0∞φ(s) ds=1\int_0^\infty \varphi(s)\,ds = 1∫0∞​φ(s)ds=1 and ∫0∞sφ(s) ds<∞\int_0^\infty s\varphi(s)\,ds < \infty∫0∞​sφ(s)ds<∞. Consider the critical-level equation of Chapter V, Theorem 1,

k=ap∫y∞φ(s) ds+ak∫0yφ(s) ds,y≥0.k = ap\int_y^\infty \varphi(s)\,ds + ak\int_0^y \varphi(s)\,ds, \qquad y \ge 0.k=ap∫y∞​φ(s)ds+ak∫0y​φ(s)ds,y≥0.

Then

  1. a level y≥0y \ge 0y≥0 solves it exactly when
∫0yφ(s) ds=ap−ka(p−k);\int_0^y \varphi(s)\,ds = \frac{ap-k}{a(p-k)};∫0y​φ(s)ds=a(p−k)ap−k​;
  1. the equation has exactly one root xˉ≥0\bar x \ge 0xˉ≥0.

The root xˉ\bar xxˉ is the constant stock level of the optimal policy in Chapter V, Theorem 1; this is the statement that makes "let xˉ\bar xxˉ be the unique root of (3)" well defined.

Preamble
import Mathlib
import Definitions.Def_BellmanDP_Inventory_Model

open MeasureTheory Filter Topology
Formal statement
namespace BellmanDP.Inventory

/-- Bellman, *Dynamic Programming*, Ch. V, § 5, Eqs. (5.3), (5.7)-(5.8), p. 161: under
hypotheses (2a)-(2d) of Theorem 1, a level `y ≥ 0` is a root of
`k = ap ∫_y^∞ φ + ak ∫_0^y φ` exactly when `∫_0^y φ(s) ds = (ap − k)/a(p − k)`, and this
equation has exactly one root `x̄ ≥ 0`. -/
theorem stock_level_root_unique (k p a : ℝ) (φ : ℝ → ℝ)
    (hk : 0 < k) (hp : 0 < p) (hφ : DemandDensity φ)
    (ha0 : 0 < a) (ha1 : a < 1) (hapk : k < a * p) :
    (∀ y : ℝ, 0 ≤ y →
      (StockLevelRoot k p a φ y ↔ (∫ s in (0 : ℝ)..y, φ s) = (a * p - k) / (a * (p - k)))) ∧
    ∃ xbar : ℝ, 0 ≤ xbar ∧ StockLevelRoot k p a φ xbar ∧
      ∀ y : ℝ, 0 ≤ y → StockLevelRoot k p a φ y → y = 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, § 5, Eqs. (5.7)-(5.8), p. 161 (equation (3) of Theorem 1, p. 160)
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