Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

THEOREM 6 — both asymptotic rejection probabilities for the exact CU KS test

Open
NHPPArrivals.LinearRate.Supplement.rejection_limits

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

kolmogorov-smirnovnonhomogeneous-poisson-processp2o-batch-supp500p2o-gran-per-chapterp2o-plan-paperp2o-v1

Fix T>0T>0T>0, a≥0a\ge0a≥0, b>0b>0b>0, and 0<α<10<\alpha<10<α<1. For each integer n≥1n\ge1n≥1 observe an NHPP of rate nλ(t)=n(a+bt)n\lambda(t)=n(a+bt)nλ(t)=n(a+bt) on [0,T][0,T][0,T]. Divide the interval into kn≥1k_n\ge1kn​≥1 equal subintervals and pool every arrival after rescaling it within its subinterval. Let Mn=Nn(T)M_n=N_n(T)Mn​=Nn​(T) be the actual observed count, and let RnR_nRn​ be the event that Mn>0M_n>0Mn​>0 and the empirical uniform KS statistic of these MnM_nMn​ pooled observations exceeds the exact critical value δ(Mn,α)\delta(M_n,\alpha)δ(Mn​,α). Then both implications hold:

(knn→∞ and nkn→∞) ⟹ P(Rn)→α,\left(\frac{k_n}{\sqrt n}\to\infty\ \text{and}\ \frac n{k_n}\to\infty\right)\ \Longrightarrow\ P(R_n)\to\alpha,(n​kn​​→∞ and kn​n​→∞) ⟹ P(Rn​)→α, knn→0 ⟹ P(Rn)→1.\frac{k_n}{\sqrt n}\to0\ \Longrightarrow\ P(R_n)\to1.n​kn​​→0 ⟹ P(Rn​)→1.

Both a=0a=0a=0 and a>0a>0a>0 are included. In the second branch knk_nkn​ may stay bounded. The limit concerns a rejection probability with a random sample size, not just a population cdf discrepancy.

Differences from the source:

  • reading: Theorem 6 concerns the NHPP test; its proof informally calls the sample size Kn. → The total M_n=N_n(T) is Poisson with mean nΛ(T), and the critical value is evaluated at M_n.; reason: The independent Poisson increment model determines the random total; Kn describes growth, not a deterministic-count hypothesis.
  • encoding: The CU KS test uses the null critical value at the significance level. → The critical value is the exact null upper-tail quantile, for every fixed 0<alpha<1.; reason: This encodes the equality defining the test on p. 465 and avoids substituting its 0.05 approximation.
  • encoding: The test is described for an observed sample. → At M_n=0 the test does not reject; at n=0 the sequence may be arbitrary.; reason: The empty event has probability exp(-nΛ(T)) tending to zero. Defaults do not affect either limit.
Preamble
import Mathlib
import Definitions.Def_NHPPArrivals_LinearRate_Supplement_KSTest
Formal statement
namespace NHPPArrivals.LinearRate.Supplement

open MeasureTheory Filter Topology

theorem rejection_limits {Ω : Type*} [MeasurableSpace Ω]
    (P : ℕ → Measure Ω) [∀ n, IsProbabilityMeasure (P n)]
    (a b T : ℝ) (ha : 0 ≤ a) (hb : 0 < b) (hT : 0 < T)
    (N : ℕ → ℝ → Ω → ℕ) (X : ℕ → ℕ → Ω → ℝ)
    (hN : ∀ n : ℕ, 1 ≤ n →
      IsNHPP (P n) (fun s => (n : ℝ) * linRate a b s) T (N n) (X n))
    (k : ℕ → ℕ) (hk : ∀ n, 1 ≤ k n)
    (alpha : ℝ) (halpha : 0 < alpha ∧ alpha < 1) :
    ((Tendsto (fun n : ℕ => (k n : ℝ) / Real.sqrt (n : ℝ)) atTop atTop ∧
      Tendsto (fun n : ℕ => (n : ℝ) / (k n : ℝ)) atTop atTop) →
      Tendsto (fun n : ℕ => rejectionProbability (P n) (N n) (X n) T (k n) alpha)
        atTop (𝓝 alpha)) ∧
    (Tendsto (fun n : ℕ => (k n : ℝ) / Real.sqrt (n : ℝ)) atTop (𝓝 0) →
      Tendsto (fun n : ℕ => rejectionProbability (P n) (N n) (X n) T (k n) alpha)
        atTop (𝓝 1)) := by sorry

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. 474, THEOREM 6, PDF 11

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