Lemma 2 — the no-stock-out probability is nondecreasing in the stock
ProvedBassokSubstitution.no_stockout_monotoneConsider the model with Assumptions 1–3, , independent nonnegative demands with densities and finite means, and stock levels . For classes , the quantity
regarded as a function of the stock of product (all other stocks fixed), is nondecreasing on .
In the paper's words: as the stock of product increases, the probability of no stock-out of class in the subproblem with products cannot decrease.
Formalization Note. The paper states . With deriv, a non-differentiable point would make this trivially true, so the monotone form is stated instead; it implies the derivative inequality wherever the derivative exists. The paper leaves implicit; it is Lemma 1's . The sum's general term is as in Lemma 1. Indices are 0-based in Lean.
import Mathlib import Definitions.Def_BassokSubstitution_Profit open MeasureTheory
namespace BassokSubstitution
/-- Lemma 2 (monotone form): for classes `k < i` (0-based), the left-hand side of Lemma 1 is a
nondecreasing function of the stock `y_i` of product `i` on `[0, ∞)`, the other stocks being
fixed. -/
theorem no_stockout_monotone {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) (k i : Fin N) (hki : k < i) :
MonotoneOn
(fun t : ℝ =>
(Measure.pi ν).real {d | shortage (Function.update y i t) d i i = 0}
+ ∑ m ∈ Finset.univ.filter (fun m : Fin N => k ≤ m ∧ 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})
(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 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: in .
- Classes: , which forces .
The model data do not occur in the conclusion.
Notation.
- Modified stock. For real , is with its -th entry replaced by .
- Shortage , for : the unmet demand of class after greedily processing classes in order from stock , each class drawing from products . It is if .
- Vector condition. means for all classes with .
Conclusion. The function
is nondecreasing on : implies value at value at .
Degenerate cases:
- The original . It plays no role beyond the hypothesis .
- Negative . Nothing is asserted for .
- . The statement is vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.