Appendix §5.1 display — as an integral, last line corrected to
ProvedFastFashion.Structure.delta_hA_integral_formulaLet be an independent Poisson family with rates on a probability space, let , let be a set of sizes, , and . With and ,
The display expresses the marginal value of one more unit of size as the (scaled) probability that this unit is demanded before the display is removed and before the end of the period; its monotonicity in gives the discrete concavity and the cross-monotonicity of .
Formalization Note The paper prints the last line as , which is false: the integral has the dimension of a time, and for , , the printed value is while . Since has density , the correct value is the one stated here; the first two lines are as printed. The hypothesis is implicit in the display (the factor for is taken out of the product; for one has ). is written with and ; the integrals are interval integrals over of bounded measurable functions of , and is the real number (P E).toReal.
import Mathlib import Definitions.Def_FastFashion_Structure_Model
namespace FastFashion.Structure
open MeasureTheory ProbabilityTheory
theorem delta_hA_integral_formula {S Ω : Type*} [Fintype S] [DecidableEq S] [MeasurableSpace Ω]
(P : Measure Ω) [IsProbabilityMeasure P] (lam : S → ℝ) (N : S → ℝ → Ω → ℕ) (T : ℝ)
(hN : IsPoissonFamily lam N P) (hlam : ∀ s, 0 < lam s) (hT : 0 < T)
(A : Finset S) (q : S → ℕ) (s : S) (hs : s ∈ A) :
delta (hA N P T A) s q =
∫ t in (0)..T,
((P {ω | ((t : ℝ) : WithTop ℝ) < stockoutTime N s (q + Pi.single s 1) ω}).toReal
- (P {ω | ((t : ℝ) : WithTop ℝ) < stockoutTime N s q ω}).toReal)
* ∏ s' ∈ A.erase s, (P {ω | ((t : ℝ) : WithTop ℝ) < stockoutTime N s' q ω}).toReal ∧
(∫ t in (0)..T,
((P {ω | ((t : ℝ) : WithTop ℝ) < stockoutTime N s (q + Pi.single s 1) ω}).toReal
- (P {ω | ((t : ℝ) : WithTop ℝ) < stockoutTime N s q ω}).toReal)
* ∏ s' ∈ A.erase s, (P {ω | ((t : ℝ) : WithTop ℝ) < stockoutTime N s' q ω}).toReal) =
∫ t in (0)..T,
(P {ω | N s t ω = q s}).toReal
* ∏ s' ∈ A.erase s, (P {ω | ((t : ℝ) : WithTop ℝ) < stockoutTime N s' q ω}).toReal ∧
(∫ t in (0)..T,
(P {ω | N s t ω = q s}).toReal
* ∏ s' ∈ A.erase s, (P {ω | ((t : ℝ) : WithTop ℝ) < stockoutTime N s' q ω}).toReal) =
(1 / lam s) *
(P {ω | stockoutTime N s (q + Pi.single s 1) ω
≤ min (tauMin N (A.erase s) q ω) ((T : ℝ) : WithTop ℝ)}).toReal := by sorry
end FastFashion.Structure
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.