Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(11) — on-hand inventory from truncated position and lost demand

Proved
LostSalesBalancing.DualBalancing.eq_11

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

inventorylost-salesp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Fix a nonnegative demand path and a nonnegative order sequence in the finite-horizon lost-sales model. For 1≤t≤s≤t+L≤T1\le t\le s\le t+L\le T1≤t≤s≤t+L≤T, let YstY_{st}Yst​ be the inventory on hand in period sss plus orders outstanding in sss that were placed no later than ttt. Then

It+L=Yst−∑r=st+L−1dr+∑r=st+L−1(dr−Ir)+.I_{t+L}=Y_{st}-\sum_{r=s}^{t+L-1}d_r+\sum_{r=s}^{t+L-1}(d_r-I_r)^+.It+L​=Yst​−r=s∑t+L−1​dr​+r=s∑t+L−1​(dr​−Ir​)+.

This identity relates a truncated inventory position to subsequent on-hand stock and accounts exactly for demand lost between sss and t+Lt+Lt+L.

Formalization Note The paper's (11) writes the final sum as cumulative lost-sales penalties divided by a stationary positive ppp. We state lost units directly, which also covers time-dependent or zero penalty rates without division by zero. Periods are integers; empty endpoint sums have value zero.

Preamble
import Mathlib
import Definitions.Def_LostSalesBalancing_DualBalancing_Model
Formal statement
namespace LostSalesBalancing.DualBalancing

open Finset LeviBalancing.DualBalancing

/-- Equation (11), expressed in lost units so it remains valid for varying or zero penalties. -/
theorem eq_11 (I : LSInstance) (d Q : ℤ → ℝ)
    (hd : ∀ j : ℤ, 1 ≤ j → j ≤ (I.T : ℤ) → 0 ≤ d j)
    (hQ : ∀ j : ℤ, 1 ≤ j → j ≤ (I.T : ℤ) → 0 ≤ Q j)
    (t s : ℤ) (ht : 1 ≤ t) (hs : t ≤ s) (hst : s ≤ t + I.L)
    (hT : t + I.L ≤ (I.T : ℤ)) :
    onHand I d Q (t + I.L) =
      truncPos I d Q s t - cumDemand d s (t + I.L - 1) +
        ∑ r ∈ Icc s (t + I.L - 1), lostUnits I d Q r := by sorry

end LostSalesBalancing.DualBalancing
Source
Levi, Janakiraman, Nagarajan, A 2-Approximation Algorithm for Stochastic Inventory Control Models with Lost Sales, Math. Oper. Res. 33(2) (2008), accepted manuscript p. 13, §3.2, (11)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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