Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (2) — expected sales as a rate-weighted sum of expected truncated stockout times

Proved
FastFashion.Approx.eq_2_optional_sampling

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

inventoryoptional-samplingp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1poisson-process

Let (Ns)s∈S(N_s)_{s\in\mathcal S}(Ns​)s∈S​ be an independent Poisson family with rates λs>0\lambda_s > 0λs​>0, let T>0T > 0T>0, and let S+⊆S\mathcal S^+ \subseteq \mathcal SS+⊆S be the major sizes with S−=S∖S+\mathcal S^- = \mathcal S \setminus \mathcal S^+S−=S∖S+. Then for every inventory vector q∈NSq \in \mathbb N^{\mathcal S}q∈NS the expected sales gλ(q)=E[G(q)]g_\lambda(q) = \mathbb E[G(q)]gλ​(q)=E[G(q)] of (1) satisfy

gλ(q)=λS+ E[τS+∧T]+∑s∈S−λs E[τS+∪{s}∧T],λS+=∑s∈S+λs.g_\lambda(q) = \lambda_{\mathcal S^+}\,\mathbb E[\tau_{\mathcal S^+} \wedge T] + \sum_{s \in \mathcal S^-} \lambda_s\, \mathbb E[\tau_{\mathcal S^+ \cup \{s\}} \wedge T], \qquad \lambda_{\mathcal S^+} = \sum_{s \in \mathcal S^+}\lambda_s .gλ​(q)=λS+​E[τS+​∧T]+s∈S−∑​λs​E[τS+∪{s}​∧T],λS+​=s∈S+∑​λs​.

The identity turns the expected sales into a combination of expected truncated stopping times, which is the starting point of the approximation of §3.1.3.

Formalization Note E[τA∧T]\mathbb E[\tau_{\mathcal A} \wedge T]E[τA​∧T] is hA(q)h^{\mathcal A}(q)hA(q) of the model file. The statement holds also for S+=∅\mathcal S^+ = \emptysetS+=∅ (then τ∅∧T=T\tau_{\emptyset} \wedge T = Tτ∅​∧T=T and the first term vanishes), so no nonemptiness is assumed.

Preamble
import Mathlib
import Definitions.Def_FastFashion_Structure_Model
Formal statement
namespace FastFashion.Approx

open MeasureTheory ProbabilityTheory

/-- Eq. (2) (Caro–Gallien, p. 12): under independent Poisson demand,
`g_λ(q) = λ_{S⁺} 𝔼[τ_{S⁺} ∧ T] + ∑_{s ∈ S⁻} λ_s 𝔼[τ_{S⁺ ∪ {s}} ∧ T]`, with `λ_{S⁺} = ∑_{s ∈ S⁺} λ_s`. -/
theorem eq_2_optional_sampling {S Ω : Type*} [Fintype S] [DecidableEq S] [MeasurableSpace Ω]
    (P : Measure Ω) [IsProbabilityMeasure P] (lam : S → ℝ) (N : S → ℝ → Ω → ℕ)
    (hN : FastFashion.Structure.IsPoissonFamily lam N P) (hlam : ∀ s, 0 < lam s) (T : ℝ) (hT : 0 < T)
    (Sp : Finset S) (q : S → ℕ) :
    FastFashion.Structure.expectedSales N P Sp T q =
      (∑ s ∈ Sp, lam s) * FastFashion.Structure.hA N P T Sp q + ∑ s ∈ Spᶜ, lam s * FastFashion.Structure.hA N P T (insert s Sp) q := by sorry

end FastFashion.Approx
Source
Caro & Gallien, Inventory Management of a Fast-Fashion Retail Network, working paper (August 2, 2007), p. 12, Eq. (2)
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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