Lemma 5 — the salvage-weighted no-stock-out terms grow no faster than times their sum
ProvedBassokSubstitution.salvage_savings_boundConsider the model with Assumptions 1–3, , independent nonnegative demands with densities and finite means, and stock levels . For a class put
Then, as a function of the stock of product on (all other stocks fixed), is nondecreasing. In particular, wherever the derivatives exist,
This is the paper's upper bound on the savings in shortage costs for an additional unit of product in the subproblem with products ; 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. is M.s 0 (0-based indices), and NeZero N provides the index 0.
import Mathlib import Definitions.Def_BassokSubstitution_Profit open MeasureTheory
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a natural number (the hypothesis is part of the statement) and a model with data .
Hypotheses:
- Model assumptions: Assumptions 1–3 hold ( and for ; for ) and .
- Demand laws: are probability measures on , each with no mass on , finite mean, and absolutely continuous. is their product law.
- Stock: .
- Class: is any class.
Notation.
- Modified stock. is with entry replaced by .
- Shortage , for : the unmet demand of class after greedily processing classes from stock , each class drawing from products . It is if .
- Vector condition. means for all classes with .
- Probabilities. Write
Conclusion. The function
is nondecreasing on .
Degenerate cases:
- . Both sums are empty, and the function is , constant, so the claim is trivial.
- Negative . Nothing is asserted for .
- The original . It plays no role beyond .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.