Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Finite simple arrival processes and independent Poisson increments (§3.2)

Definition
NHPPArrivals_LinearRate_Supplement_PoissonProcess

by mikedeng1 · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

conditional-arrival-lawnonhomogeneous-poisson-processp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1

On a probability space (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P), a finite arrival process on [0,T][0,T][0,T] consists of counts N(t)N(t)N(t) and measurable epochs X1,X2,…X_1,X_2,\ldotsX1​,X2​,…. On one common event of probability one, the observed epochs are strictly increasing in (0,T](0,T](0,T], and

N(t)=#{j≤N(T):Xj≤t},0≤t≤T.N(t)=\#\{j\le N(T):X_j\le t\},\qquad 0\le t\le T.N(t)=#{j≤N(T):Xj​≤t},0≤t≤T.

It is a nonhomogeneous Poisson process of rate λ\lambdaλ when the increments over every finite collection of disjoint intervals (ui,vi]⊆[0,T](u_i,v_i]\subseteq[0,T](ui​,vi​]⊆[0,T] have joint law

P{N(vi)−N(ui)=qi for all i}=∏ie−mimiqi/qi!,mi=∫uiviλ(s) ds.P\{N(v_i)-N(u_i)=q_i\text{ for all }i\}=\prod_i e^{-m_i}m_i^{q_i}/q_i!,\qquad m_i=\int_{u_i}^{v_i}\lambda(s)\,ds.P{N(vi​)−N(ui​)=qi​ for all i}=i∏​e−mi​miqi​​/qi​!,mi​=∫ui​vi​​λ(s)ds.

This definition is independent of the paper's regularity assumptions and does not assume any conditional arrival law. Those assumptions are supplied separately by AdmissibleRate. The epochs are indexed from zero in Lean; unused epochs are immaterial.

Definition code
import Mathlib

namespace NHPPArrivals.LinearRate.Supplement

open MeasureTheory ProbabilityTheory

/-- A finite simple arrival process on [0,T], with its epochs indexed from zero.
Unused epochs after the last arrival have no effect. The path identities hold on one
common full-measure set, not on a time-dependent exceptional set. -/
def IsArrivalProcess {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    (T : ℝ) (N : ℝ → Ω → ℕ) (X : ℕ → Ω → ℝ) : Prop :=
  (∀ t ∈ Set.Icc (0 : ℝ) T, Measurable (N t)) ∧
  (∀ j, Measurable (X j)) ∧
  ∀ᵐ ω ∂P,
    (∀ i j : ℕ, i < j → j < N T ω → X i ω < X j ω) ∧
    (∀ i : ℕ, i < N T ω → X i ω ∈ Set.Ioc (0 : ℝ) T) ∧
    (∀ t ∈ Set.Icc (0 : ℝ) T,
      N t ω = ((Finset.range (N T ω)).filter (fun j => X j ω ≤ t)).card)

/-- NHPP: the counting paths above and the independent Poisson increment laws
on every finite family of disjoint intervals (u_i,v_i] inside [0,T].
No conditional arrival law is postulated here. -/
def IsNHPP {Ω : Type*} [MeasurableSpace Ω] (P : Measure Ω)
    (lam : ℝ → ℝ) (T : ℝ) (N : ℝ → Ω → ℕ) (X : ℕ → Ω → ℝ) : Prop :=
  IsArrivalProcess P T N X ∧
  ∀ (m : ℕ) (u v : Fin m → ℝ) (q : Fin m → ℕ),
    (∀ i, 0 ≤ u i ∧ u i ≤ v i ∧ v i ≤ T) →
    (∀ i j, i ≠ j → v i ≤ u j ∨ v j ≤ u i) →
    P {ω | ∀ i, N (v i) ω - N (u i) ω = q i} =
      ∏ i, poissonMeasure (Real.toNNReal (∫ s in u i..v i, lam s)) {q i}

end NHPPArrivals.LinearRate.Supplement
Source
Kim and Whitt, Are call center and hospital arrivals well modeled by nonhomogeneous Poisson processes?, Manufacturing Service Oper. Management 16(3), 2014, DOI 10.1287/msom.2014.0490, p. 471, §3.2, standing NHPP model before (4)

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