Lemma 3 — product form for a difference of salvage probabilities
ProvedBassokSubstitution.shortage_difference_productConsider the model with Assumptions 1–3, , independent nonnegative demands with densities and finite means, and stock levels . For products ,
Here means for all , and is its negation.
The left side is the difference between the salvage coefficients of product in and in (term (4b)); the lemma rewrites it as a product, which is how the salvage terms are grouped in Lemma 6 and in the proof of Theorem 2.
Formalization Note. The paper leaves implicit; its use in the proof of Lemma 6 (Appendix B, p. 641) has . For the vectors indexed are empty: holds vacuously, so the second probability on the left is and the last factor is . The product form needs the independence of the demand classes, which the paper uses without stating. Indices are 0-based in Lean (class N - 1 is the paper's ).
import Mathlib import Definitions.Def_BassokSubstitution_Profit open MeasureTheory
namespace BassokSubstitution
/-- Lemma 3: for products `j < i` (0-based), with independent demand classes, the difference of
the two "salvage" probabilities factors as a product. Empty vector conditions (when `i` is the
last class) are vacuously true. -/
theorem shortage_difference_product {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) (j i : Fin N) (hji : j < i) :
(Measure.pi ν).real
{d | ¬ ShortVecZero y d (j + 1) i (N - 1) ∧ ShortVecZero y d j i (N - 1)}
- (Measure.pi ν).real
{d | ¬ ShortVecZero y d (j + 1) (i + 1) (N - 1) ∧ ShortVecZero y d j (i + 1) (N - 1)}
= (Measure.pi ν).real {d | 0 < shortage y d (j + 1) i ∧ ShortVecZero y d j j i}
* (Measure.pi ν).real {d | ShortVecZero y d (i + 1) (i + 1) (N - 1)} := 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 (independent) law.
- Stock: .
- Indices: in , which forces .
The model data do not occur in the conclusion.
Notation. All shortages are evaluated at , and , and are natural numbers.
- Shortage , for : the unmet demand of class after greedily processing classes from stock , each class drawing from products . if .
- Vector condition. means for every class with . "Not " means some such .
Conclusion.
Degenerate cases:
- . Every condition over the range is vacuously true. The second probability on the left is then that of the empty set, i.e. , and the last factor on the right is . The claim reduces to
- . The statement is vacuous.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.