Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(23), p. 9 — the complementary distribution function of T_a(i)

Proved
PoolOrNot.Moderate.eq_23

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

death-processdistribution-functionhypoexponentialp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let μ,θ>0\mu, \theta > 0μ,θ>0 and i≥1i \ge 1i≥1. For every x≥0x \ge 0x≥0,

P(Ta(i)>x)=∑j=1ie−(μ+(j−1)θ)x∏k=1k≠jiμ+(k−1)θ(k−j)θ.(23)P\bigl(T_a(i) > x\bigr) = \sum_{j=1}^{i} e^{-(\mu + (j-1)\theta)x} \prod_{\substack{k=1\\ k \ne j}}^{i} \frac{\mu + (k-1)\theta}{(k-j)\theta}. \tag{23}P(Ta​(i)>x)=j=1∑i​e−(μ+(j−1)θ)xk=1k=j​∏i​(k−j)θμ+(k−1)θ​.(23)

With (22) this gives the explicit distribution of the waiting time of a customer who joins a server with iii customers, from which service levels P(W≤x)P(W \le x)P(W≤x) are computed.

Formalization Note k−jk - jk−j is a real difference (negative for k<jk < jk<j). The rates μ+(k−1)θ\mu + (k-1)\thetaμ+(k−1)θ are distinct because θ>0\theta > 0θ>0.

Preamble
import Mathlib
import Definitions.Def_PoolOrNot_Moderate_Waiting

open MeasureTheory
Formal statement
namespace PoolOrNot.Moderate

/-- **(23)**, p. 9. The complementary distribution function of `T_a(i)`, `i ≥ 1`, `x ≥ 0`:
`P(T_a(i) > x) = Σ_{j=1}^{i} e^{−(μ+(j−1)θ)x} ∏_{k=1, k≠j}^{i} (μ + (k−1)θ)/((k − j)θ)`. -/
theorem eq_23 (μ θ : ℝ) (hμ : 0 < μ) (hθ : 0 < θ) (i : ℕ) (hi : 1 ≤ i) (x : ℝ) (hx : 0 ≤ x) :
    (taLaw μ θ i (Set.Ioi x)).toReal =
      ∑ j ∈ Finset.Icc 1 i, Real.exp (-(μ + ((j : ℝ) - 1) * θ) * x) *
        ∏ k ∈ (Finset.Icc 1 i).erase j, (μ + ((k : ℝ) - 1) * θ) / (((k : ℝ) - (j : ℝ)) * θ) := by sorry

end PoolOrNot.Moderate
Source
Cao, He, Huang & Liu, To Pool or Not to Pool: Queueing Design for Large-Scale Service Systems, Operations Research, Articles in Advance (2020), doi:10.1287/opre.2019.1976, p. 9 (PDF 10), (23)
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

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