Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (3.3) — given N(t) = n, the order epochs have density n!/tⁿ on 0 < t₁ < ⋯ < tₙ < t

Proved
ServiceParts.Palm.arrival_times_order_statistics

by mikedeng1 · Sep 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

order-statisticsp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1poisson-process

In the (s−1,s)(s-1,s)(s−1,s) backorder system, let T0<T1<⋯T_0 < T_1 < \cdotsT0​<T1​<⋯ be the order epochs and N(t)N(t)N(t) the number of orders in [0,t][0,t][0,t]. Fix t>0t > 0t>0 and n≥0n \ge 0n≥0. Conditionally on N(t)=nN(t) = nN(t)=n, the vector of the first nnn order epochs has the joint density

fT0,…,Tn−1(t1,…,tn)=n!tn,0<t1<t2<⋯<tn<t,f_{T_0,\dots,T_{n-1}}(t_1,\dots,t_n) = \frac{n!}{t^n}, \qquad 0 < t_1 < t_2 < \cdots < t_n < t,fT0​,…,Tn−1​​(t1​,…,tn​)=tnn!​,0<t1​<t2​<⋯<tn​<t,

and 000 elsewhere: for every measurable A⊆RnA \subseteq \mathbb R^nA⊆Rn,

P[N(t)=n, (T0,…,Tn−1)∈A]=P[N(t)=n]⋅n!tn Leb(A∩{0<t1<⋯<tn<t}).P\big[N(t) = n,\ (T_0,\dots,T_{n-1}) \in A\big] = P[N(t) = n]\cdot\frac{n!}{t^n}\,\mathrm{Leb}\big(A \cap \{0 < t_1 < \cdots < t_n < t\}\big).P[N(t)=n, (T0​,…,Tn−1​)∈A]=P[N(t)=n]⋅tnn!​Leb(A∩{0<t1​<⋯<tn​<t}).

Equivalently, the epochs have the law of the order statistics of nnn independent uniform random variables on [0,t][0,t][0,t]; considered as unordered times they are independent and uniform on [0,t][0,t][0,t]. This is the fact the proof of Palm's theorem uses to treat each outstanding order separately.

Formalization Note Orders are indexed from 000, so the book's X1,…,XnX_1,\dots,X_nX1​,…,Xn​ are T0,…,Tn−1T_0,\dots,T_{n-1}T0​,…,Tn−1​. The conditional density is stated through the joint probability with the event N(t)=nN(t)=nN(t)=n, which has positive probability for t>0t > 0t>0.

Preamble
import Mathlib
import Definitions.Def_ServiceParts_Palm_ResupplySystem

open MeasureTheory ProbabilityTheory Filter Topology
Formal statement
namespace ServiceParts.Palm

theorem arrival_times_order_statistics {Ω : Type*} [MeasurableSpace Ω] {P : Measure Ω}
    [IsProbabilityMeasure P] (S : ResupplySystem Ω P) {t : ℝ} (ht : 0 < t) (n : ℕ)
    {A : Set (Fin n → ℝ)} (hA : MeasurableSet A) :
    P ({ω | S.orderCount t ω = n} ∩ {ω | (fun i : Fin n => S.arrival i ω) ∈ A}) =
      P {ω | S.orderCount t ω = n} *
        (ENNReal.ofReal ((Nat.factorial n : ℝ) / t ^ n) *
          volume (A ∩ {x : Fin n → ℝ | StrictMono x ∧ ∀ i, 0 < x i ∧ x i < t})) := by sorry

end ServiceParts.Palm
Source
Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer 2005, DOI 10.1007/b138879, pp. 38-39, Section 3.1 and Eq. (3.3)
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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