Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (10.3): h1E(y1−D)++b1E(y1−D)−=h1(y1−μ1′′)+(h1+b1)E(y1−D)−h_1\mathbb{E}(y_1 - D)^+ + b_1\mathbb{E}(y_1 - D)^- = h_1(y_1 - \mu_1'') + (h_1 + b_1)\mathbb{E}(y_1 - D)^-h1​E(y1​−D)++b1​E(y1​−D)−=h1​(y1​−μ1′′​)+(h1​+b1​)E(y1​−D)−

Proved
InventoryControl.cs_stage1_period_cost

by naimengye · Sep 24, 2026 · Mathlib 0df444a (Lean v4.33.1)

clark-scarfinventory-controlmulti-echelonoperations-researchprobability

The average period cost at installation 1 in period t+L2+L1t + L_2 + L_1t+L2​+L1​, evaluated after the period demand, is the holding cost on the positive part of the inventory level y1−D(L1+1)y_1 - D(L_1+1)y1​−D(L1​+1) plus the shortage cost on its negative part, and it can be written with a single expectation: for every y1y_1y1​ and σ>0\sigma > 0σ>0,

h1 E(y1−D(L1+1))++b1 E(y1−D(L1+1))−  =  h1 (y1−μ1′′)+(h1+b1) E(y1−D(L1+1))−,h_1\,\mathbb{E}\big(y_1 - D(L_1+1)\big)^{+} + b_1\,\mathbb{E}\big(y_1 - D(L_1+1)\big)^{-} \;=\; h_1\,(y_1 - \mu_1'') + (h_1 + b_1)\,\mathbb{E}\big(y_1 - D(L_1+1)\big)^{-},h1​E(y1​−D(L1​+1))++b1​E(y1​−D(L1​+1))−=h1​(y1​−μ1′′​)+(h1​+b1​)E(y1​−D(L1​+1))−,

with μ1′′=(L1+1)μ\mu_1'' = (L_1+1)\muμ1′′​=(L1​+1)μ the mean demand over L1+1L_1 + 1L1​+1 periods and h1=e1+e2h_1 = e_1 + e_2h1​=e1​+e2​.

The identity is x+=x+x−x^{+} = x + x^{-}x+=x+x− integrated against the demand law, using that D(L1+1)D(L_1+1)D(L1​+1) has mean μ1′′\mu_1''μ1′′​. It is the standard argument of Sect. 5.3.2 applied to installation 1: the realized position y1y_1y1​ is independent of the demand in the L1+1L_1 + 1L1​+1 periods that follow, so the inventory level after the period demand is y1−D(L1+1)y_1 - D(L_1+1)y1​−D(L1​+1).

Preamble
import Definitions.Def_InventoryControl_clarkScarf
Formal statement
namespace InventoryControl

theorem cs_stage1_period_cost (e1 e2 b1 mu sigma : ℝ) (hs : 0 < sigma) (L1 : ℕ) (y1 : ℝ) :
    (e1 + e2) * (∫ x, max (y1 - x) 0 ∂(csDemand mu sigma (L1 + 1)))
        + b1 * (∫ x, max (x - y1) 0 ∂(csDemand mu sigma (L1 + 1)))
      = (e1 + e2) * (y1 - (L1 + 1) * mu)
        + (e1 + e2 + b1) * ∫ x, max (x - y1) 0 ∂(csDemand mu sigma (L1 + 1)) := by sorry

end InventoryControl
Source
Sven Axsäter, Inventory Control, 3rd ed., Springer 2015, DOI 10.1007/978-3-319-15729-0, p. 194, Sect. 10.1.1, Eq. (10.3)
Human review
  • Endorsed by Shuze Chen · Sep 25, 2026

    Confirmed by the moderator at approval.

  • Endorsed by naimengye · Sep 25, 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