Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (18)–(19), p. 483 — the system cost when installation 2's stock does or does not bind

Proved
ClarkScarf.Serial.eq18_eq19

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

dynamic-programminginventorymulti-echelonp2o-batch-pfp1bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Fix n≥0n\ge0n≥0. Suppose the decomposition (16) holds with nnn periods remaining for some function GGG of echelon stock:

Cn(x1,w1,x2)=C^n(x1,w1)+G(x2)whenever x1+w1≤x2,C_n(x_1,w_1,x_2)=\hat C_n(x_1,w_1)+G(x_2)\quad\text{whenever }x_1+w_1\le x_2,Cn​(x1​,w1​,x2​)=C^n​(x1​,w1​)+G(x2​)whenever x1​+w1​≤x2​,

and suppose xˉ\bar xxˉ is a critical number of the isolated installation-1 problem (15) with n+1n+1n+1 periods remaining (ordering up to xˉ\bar xxˉ is optimal at every state). Write

Z(x2)=inf⁡z≥0{c(z)+L~(x2)+α∫0∞G(x2+z−t)φ(t) dt}.Z(x_2)=\inf_{z\ge0}\Big\{c(z)+\tilde L(x_2)+\alpha\int_0^\infty G(x_2+z-t)\varphi(t)\,dt\Big\}.Z(x2​)=z≥0inf​{c(z)+L~(x2​)+α∫0∞​G(x2​+z−t)φ(t)dt}.

Then for every state with x1+w1≤x2x_1+w_1\le x_2x1​+w1​≤x2​:

  1. if x2≥xˉx_2\ge\bar xx2​≥xˉ, then Cn+1(x1,w1,x2)=C^n+1(x1,w1)+Z(x2)C_{n+1}(x_1,w_1,x_2)=\hat C_{n+1}(x_1,w_1)+Z(x_2)Cn+1​(x1​,w1​,x2​)=C^n+1​(x1​,w1​)+Z(x2​) (eq. (18));
  2. if x2<xˉx_2<\bar xx2​<xˉ, then
Cn+1(x1,w1,x2)=c1(x2−x1−w1)+L(x1)+α∫0∞C^n(x1+w1−t, x2−x1−w1)φ(t) dt+Z(x2)(eq. (19)).C_{n+1}(x_1,w_1,x_2)=c_1(x_2-x_1-w_1)+L(x_1)+\alpha\int_0^\infty\hat C_n(x_1+w_1-t,\,x_2-x_1-w_1)\varphi(t)\,dt+Z(x_2)\quad\text{(eq. (19))}.Cn+1​(x1​,w1​,x2​)=c1​(x2​−x1​−w1​)+L(x1​)+α∫0∞​C^n​(x1​+w1​−t,x2​−x1​−w1​)φ(t)dt+Z(x2​)(eq. (19)).

This is the inductive step of the proof of Theorem 1: when echelon-2 stock is ample, installation 1 behaves as in isolation; when it is short, installation 1 ships everything available.

Formalization Note The paper's horizon nnn is the Lean n+1n+1n+1, and its gn−1g_{n-1}gn−1​ is the hypothesized GGG. The critical number is a hypothesis, as in the paper, which writes xˉn\bar x_nxˉn​ for it.

Preamble
import Mathlib
import Definitions.Def_ClarkScarf_Serial_Model

open MeasureTheory Set
Formal statement
namespace ClarkScarf.Serial

/-- Eqs. (18)–(19), p. 483: if (16) holds with `n` periods remaining for a function `G` of
echelon stock, and `x̄` is a critical number of the isolated problem with `n + 1` periods
remaining, then with `Z(x₂) = inf_{z ≥ 0} {c(z) + L̃(x₂) + α ∫₀^∞ G(x₂ + z - t) φ(t) dt}`:
for `x₂ ≥ x̄`, `C_{n+1}(x₁, w₁, x₂) = Ĉ_{n+1}(x₁, w₁) + Z(x₂)` (18); for `x₂ < x̄`,
`C_{n+1}(x₁, w₁, x₂) = c₁(x₂ - x₁ - w₁) + L(x₁) + α ∫₀^∞ Ĉ_n(x₁ + w₁ - t, x₂ - x₁ - w₁) φ(t) dt
+ Z(x₂)` (19). -/
theorem eq18_eq19 (M : Model) (n : ℕ) (G : ℝ → ℝ)
    (hG : ∀ x₁ w₁ x₂ : ℝ, x₁ + w₁ ≤ x₂ → M.sysCost n x₁ w₁ x₂ = M.isoCost n x₁ w₁ + G x₂)
    (xbar : ℝ) (hxbar : M.IsCriticalNumber n xbar)
    (x₁ w₁ x₂ : ℝ) (hdom : x₁ + w₁ ≤ x₂) :
    (xbar ≤ x₂ →
      M.sysCost (n + 1) x₁ w₁ x₂ = M.isoCost (n + 1) x₁ w₁ +
        ⨅ z : {z : ℝ // 0 ≤ z}, (M.orderCost (z : ℝ) + M.Lt x₂ +
          M.α * ∫ t in Ioi (0 : ℝ), G (x₂ + (z : ℝ) - t) * M.φ t)) ∧
    (x₂ < xbar →
      M.sysCost (n + 1) x₁ w₁ x₂ = M.c1 * (x₂ - x₁ - w₁) + M.L x₁ +
        M.α * (∫ t in Ioi (0 : ℝ), M.isoCost n (x₁ + w₁ - t) (x₂ - x₁ - w₁) * M.φ t) +
        ⨅ z : {z : ℝ // 0 ≤ z}, (M.orderCost (z : ℝ) + M.Lt x₂ +
          M.α * ∫ t in Ioi (0 : ℝ), G (x₂ + (z : ℝ) - t) * M.φ t)) := by sorry

end ClarkScarf.Serial
Source
Clark and Scarf, Optimal Policies for a Multi-Echelon Inventory Problem, Management Sci. 6(4), 1960, p. 483, eqs. (17)-(19)
Human review
  • Endorsed by Shuze Chen · Oct 4, 2026

    Confirmed by the moderator at approval.

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