Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Standing rate assumptions, scaled one-arrival density and full conditional vector law (5)

Definition
NHPPArrivals_LinearRate_Supplement_ConditionalSample

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

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

Fix T>0T>0T>0. An admissible rate is nonnegative and integrable on [0,T][0,T][0,T] and has only finitely many zeros there. Let Λ(t)=∫0tλ(s) ds\Lambda(t)=\int_0^t\lambda(s)\,dsΛ(t)=∫0t​λ(s)ds and use the published one-arrival law with density λ/Λ(T)\lambda/\Lambda(T)λ/Λ(T) on [0,T][0,T][0,T]. Its pushforward under s↦s/Ts\mapsto s/Ts↦s/T is denoted μλ,T\mu_{\lambda,T}μλ,T​. Define

f(t)=Tλ(tT)Λ(T)(0≤t≤1),f(t)=0(t∉[0,1]).f(t)=\frac{T\lambda(tT)}{\Lambda(T)}\quad(0\le t\le1),\qquad f(t)=0\quad(t\notin[0,1]).f(t)=Λ(T)Tλ(tT)​(0≤t≤1),f(t)=0(t∈/[0,1]).

The order-statistic law of nnn independent draws from a measure μ\muμ is the pushforward of μ⊗n\mu^{\otimes n}μ⊗n by sorting the whole vector. The conditional vector law is the pushforward of P(⋅∣N(T)=n)P(\cdot\mid N(T)=n)P(⋅∣N(T)=n) by (X1/T,…,Xn/T)(X_1/T,\ldots,X_n/T)(X1​/T,…,Xn​/T), with conditioning defined by restriction and division by the event probability. This definition supplies no order-statistic identification; Theorem 1 must prove it and positivity of every conditioning event, including n=0n=0n=0. These objects connect the published deterministic cdf to the NHPP model. Values of the rate outside [0,T][0,T][0,T] do not matter. No continuity or positive lower bound is required.

Definition code
import Mathlib
import Definitions.Def_NHPPArrivals_LinearRate_ConditionalCdf
import Definitions.Def_NHPPArrivals_LinearRate_Supplement_PoissonProcess

namespace NHPPArrivals.LinearRate.Supplement

open MeasureTheory ProbabilityTheory

/-- The standing rate assumptions of §3.2, without continuity or boundedness. -/
def AdmissibleRate (lam : ℝ → ℝ) (T : ℝ) : Prop :=
  0 < T ∧ IntervalIntegrable lam volume 0 T ∧
  (∀ s ∈ Set.Icc (0 : ℝ) T, 0 ≤ lam s) ∧
  {s ∈ Set.Icc (0 : ℝ) T | lam s = 0}.Finite

noncomputable def scaledArrivalLaw (lam : ℝ → ℝ) (T : ℝ) : Measure ℝ :=
  (arrivalLaw lam T).map (fun s => s / T)

/-- Formula (5) on [0,1], extended by zero outside. -/
noncomputable def condDensity (lam : ℝ → ℝ) (T t : ℝ) : ℝ :=
  if t ∈ Set.Icc (0 : ℝ) 1 then T * lam (t * T) / cumRate lam T else 0

noncomputable def orderedLaw (μ : Measure ℝ) (n : ℕ) : Measure (Fin n → ℝ) :=
  (Measure.pi (fun _ : Fin n => μ)).map (fun x => x ∘ Tuple.sort x)

/-- The full vector law conditioned on the actual count, including n=0. -/
noncomputable def conditionalVectorLaw {Ω : Type*} [MeasurableSpace Ω]
    (P : Measure Ω) (N : ℝ → Ω → ℕ) (X : ℕ → Ω → ℝ) (T : ℝ) (n : ℕ) :
    Measure (Fin n → ℝ) :=
  ((P {ω | N T ω = n})⁻¹ • P.restrict {ω | N T ω = n}).map
    (fun ω i => X (i : ℕ) ω / T)

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, (4)–(5), THEOREM 1

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