Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(EC.13): with bounded demand, pE[(D−S~)+]≤p(Dˉ−S~)P(D>S~)≤(h+θ)(Dˉ−S~)p\mathbb E[(D-\widetilde S)^+]\le p(\bar D-\widetilde S)\mathbb P(D>\widetilde S)\le(h+\theta)(\bar D-\widetilde S)pE[(D−S)+]≤p(Dˉ−S)P(D>S)≤(h+θ)(Dˉ−S)

Proved
PerishBaseStock.Penalty.eq_EC_13

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

inventorynewsvendorp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1perishable-inventory

Consider the lost-sales perishable inventory system with lifetime m≥1m\ge1m≥1 and costs h>0h>0h>0, p>0p>0p>0, θ≥0\theta\ge0θ≥0, with i.i.d. demands D,D1,D2,…D,D_1,D_2,\dotsD,D1​,D2​,…, 0<E[D]<∞0<\mathbb E[D]<\infty0<E[D]<∞. Suppose demand is bounded, Dˉ=sup⁡{x:F(x)<1}<∞\bar D=\sup\{x:F(x)<1\}<\inftyDˉ=sup{x:F(x)<1}<∞, and let S~\widetilde SS be any minimizer over [0,∞)[0,\infty)[0,∞) of the heuristic cost C~\widetilde CC of (4). Then

pE[(D−S~)+]≤p(Dˉ−S~)⋅P(D>S~)≤(h+θ)(Dˉ−S~).p\mathbb E[(D-\widetilde S)^+]\le p(\bar D-\widetilde S)\cdot\mathbb P(D>\widetilde S)\le(h+\theta)(\bar D-\widetilde S).pE[(D−S)+]≤p(Dˉ−S)⋅P(D>S)≤(h+θ)(Dˉ−S).

The estimate controls the lost-sales part of C(S~)C(\widetilde S)C(S) by a quantity that does not grow with ppp; it is the first step of the proof of (26).

Formalization Note The printed chain begins with the identity pE[(D−S~)+]=pE[(D−S~)1{D>S~}]p\mathbb E[(D-\widetilde S)^+]=p\mathbb E[(D-\widetilde S)\mathbb 1_{\{D>\widetilde S\}}]pE[(D−S)+]=pE[(D−S)1{D>S}​], which is omitted; the two inequalities are stated as a conjunction of real inequalities. Dˉ\bar DDˉ enters as a real number, which is legitimate under the hypothesis Dˉ<∞\bar D<\inftyDˉ<∞.

Preamble
import Definitions.Def_PerishBaseStock_Penalty_Model
open MeasureTheory Filter Topology
open scoped ENNReal NNReal BigOperators
noncomputable section
Formal statement
namespace PerishBaseStock.Penalty

/-- Inequality (EC.13): with bounded demand and any minimizer `S̃` of `C̃`,
`p E[(D - S̃)^+] ≤ p (D̄ - S̃) P(D > S̃) ≤ (h + θ)(D̄ - S̃)`. -/
theorem eq_EC_13 (c : Params) (hc : c.Standing) (P : CappedBaseStock.DemandLaw)
    (hP : DemandBounded P) (S : ℝ≥0) (hS : IsHeuristicLevel c P S) :
    c.p * LostSalesOrderUpTo.Asymptotic.expectedShortfall P.law S ≤
        c.p * ((upperSupport P).toReal - S) * (P.law (Set.Ioi S)).toReal ∧
      c.p * ((upperSupport P).toReal - S) * (P.law (Set.Ioi S)).toReal ≤
        (c.h + c.θ) * ((upperSupport P).toReal - S) := by sorry

end PerishBaseStock.Penalty
Source
Bu, Gong & Chao, Asymptotic Optimality of Base-Stock Policies for Perishable Inventory Systems, SSRN 3724966 (accepted manuscript, 2022), p. ec6, Appendix B.2, inequality (EC.13)
Human review
  • Endorsed by Shuze Chen · Oct 16, 2026

    Confirmed by the moderator at approval.

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