Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5 — the salvage-weighted no-stock-out terms grow no faster than s1s_1s1​ times their sum

Proved
BassokSubstitution.salvage_savings_bound

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

inventorymonotonicityp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1probabilitysubstitution

Consider the model with Assumptions 1–3, b≥0b \ge 0b≥0, independent nonnegative demands with densities and finite means, and stock levels y≥0y \ge 0y≥0. For a class iii put

A(y)=siPr⁡{Sii=0}+∑m=1i−1smPr⁡{Sim+1>0, S⃗m,im=0},B(y)=Pr⁡{Sii=0}+∑m=1i−1Pr⁡{Sim+1>0, S⃗m,im=0}.A(y) = s_i \Pr\{S^i_i = 0\} + \sum_{m=1}^{i-1} s_m \Pr\{S^{m+1}_i > 0,\ \vec S^m_{m,i} = 0\},\qquad B(y) = \Pr\{S^i_i = 0\} + \sum_{m=1}^{i-1} \Pr\{S^{m+1}_i > 0,\ \vec S^m_{m,i} = 0\}.A(y)=si​Pr{Sii​=0}+m=1∑i−1​sm​Pr{Sim+1​>0, Sm,im​=0},B(y)=Pr{Sii​=0}+m=1∑i−1​Pr{Sim+1​>0, Sm,im​=0}.

Then, as a function of the stock yiy_iyi​ of product iii on [0,∞)[0,\infty)[0,∞) (all other stocks fixed), s1B−As_1 B - As1​B−A is nondecreasing. In particular, wherever the derivatives exist,

∂A∂yi≤s1∂B∂yi.\frac{\partial A}{\partial y_i} \le s_1 \frac{\partial B}{\partial y_i}.∂yi​∂A​≤s1​∂yi​∂B​.

This is the paper's upper bound on the savings in shortage costs for an additional unit of product iii in the subproblem with products 1,…,i1, \dots, i1,…,i; it controls the salvage terms (5d) in the proof of Theorem 2.

Formalization Note. The paper states the derivative inequality; the monotone form is stated instead, since deriv would make the inequality trivially true at non-differentiable points, and it implies the derivative form wherever the derivatives exist. The sums' general terms are inferred from the printed first and last terms. s1s_1s1​ is M.s 0 (0-based indices), and NeZero N provides the index 0.

Preamble
import Mathlib
import Definitions.Def_BassokSubstitution_Profit

open MeasureTheory
Formal statement
namespace BassokSubstitution

/-- Lemma 5 (monotone form): for a class `i` (0-based), `s_1` times the no-stock-out
probability of Lemma 1 (with `k` the first product) minus the salvage-weighted sum of the same
probabilities is nondecreasing in the stock `y_i` on `[0, ∞)`. -/
theorem salvage_savings_bound {N : ℕ} [NeZero N] (M : Model N)
    (hA1 : M.Assumption1) (hA2 : M.Assumption2) (hA3 : M.Assumption3) (hb : 0 ≤ M.b)
    (ν : Fin N → Measure ℝ) [∀ i, IsProbabilityMeasure (ν i)] (hν : DemandLaw ν)
    (y : Fin N → ℝ) (hy : 0 ≤ y) (i : Fin N) :
    MonotoneOn
      (fun t : ℝ =>
        M.s 0 * ((Measure.pi ν).real {d | shortage (Function.update y i t) d i i = 0}
            + ∑ m ∈ Finset.univ.filter (fun m : Fin N => m < i),
                (Measure.pi ν).real {d | 0 < shortage (Function.update y i t) d (m + 1) i ∧
                  ShortVecZero (Function.update y i t) d m m i})
          - (M.s i * (Measure.pi ν).real {d | shortage (Function.update y i t) d i i = 0}
            + ∑ m ∈ Finset.univ.filter (fun m : Fin N => m < i),
                M.s m * (Measure.pi ν).real {d | 0 < shortage (Function.update y i t) d (m + 1) i ∧
                  ShortVecZero (Function.update y i t) d m m i}))
      (Set.Ici 0) := by sorry

end BassokSubstitution
Source
Bassok, Anupindi, Akella, Single-Period Multiproduct Inventory Models with Substitution, Operations Research 47(4):632–642 (1999), p. 635, Lemma 5
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Let N≥1N\ge1N≥1 be a natural number (the hypothesis N≠0N\ne0N=0 is part of the statement) and MMM a model with data c,p,π,s,bc,p,\pi,s,bc,p,π,s,b.

Hypotheses:

  • Model assumptions: Assumptions 1–3 hold (πj+pj≤πi+pi\pi_j+p_j\le\pi_i+p_iπj​+pj​≤πi​+pi​ and sj≤sis_j\le s_isj​≤si​ for i<ji<ji<j; aij+πj−si≥0a_{ij}+\pi_j-s_i\ge0aij​+πj​−si​≥0 for i≤ji\le ji≤j) and b≥0b\ge0b≥0.
  • Demand laws: ν0,…,νN−1\nu_0,\dots,\nu_{N-1}ν0​,…,νN−1​ are probability measures on R\mathbb RR, each with no mass on (−∞,0)(-\infty,0)(−∞,0), finite mean, and absolutely continuous. P\mathbb PP is their product law.
  • Stock: y≥0y\ge0y≥0.
  • Class: iii is any class.

Notation.

  • Modified stock. y(t)y^{(t)}y(t) is yyy with entry iii replaced by ttt.
  • Shortage Sla(y′,d)S^a_l(y',d)Sla​(y′,d), for a≤la\le la≤l: the unmet demand of class lll after greedily processing classes a,…,la,\dots,la,…,l from stock y′y'y′, each class mmm drawing min⁡(unmet,stock)\min(\text{unmet},\text{stock})min(unmet,stock) from products m,m−1,…,am,m-1,\dots,am,m−1,…,a. It is 000 if a>la>la>l.
  • Vector condition. Za′,naZ^a_{a',n}Za′,na​ means Sla=0S^a_l=0Sla​=0 for all classes lll with a′≤l≤na'\le l\le na′≤l≤n.
  • Probabilities. Write
qi(t)=P(Sii(y(t),d)=0),qm(t)=P(Sim+1(y(t),d)>0 and Zm,im(y(t),d))(m<i).q_i(t)=\mathbb P\big(S^i_i(y^{(t)},d)=0\big),\qquad q_m(t)=\mathbb P\big(S^{m+1}_i(y^{(t)},d)>0\text{ and }Z^m_{m,i}(y^{(t)},d)\big)\quad(m<i).qi​(t)=P(Sii​(y(t),d)=0),qm​(t)=P(Sim+1​(y(t),d)>0 and Zm,im​(y(t),d))(m<i).

Conclusion. The function

t  ↦  s0(qi(t)+∑m<iqm(t))−(si qi(t)+∑m<ism qm(t))t\;\mapsto\;s_0\Big(q_i(t)+\sum_{m<i}q_m(t)\Big)-\Big(s_i\,q_i(t)+\sum_{m<i}s_m\,q_m(t)\Big)t↦s0​(qi​(t)+m<i∑​qm​(t))−(si​qi​(t)+m<i∑​sm​qm​(t))

is nondecreasing on [0,∞)[0,\infty)[0,∞).

Degenerate cases:

  • i=0i=0i=0. Both sums are empty, and the function is s0q0(t)−s0q0(t)=0s_0q_0(t)-s_0q_0(t)=0s0​q0​(t)−s0​q0​(t)=0, constant, so the claim is trivial.
  • Negative ttt. Nothing is asserted for t<0t<0t<0.
  • The original yiy_iyi​. It plays no role beyond yi≥0y_i\ge0yi​≥0.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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