Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 4, p. 38 — if every service rate of a state-dependent M/M/k queue increases, the average waiting time stays finite and does not increase

Proved
CallNoCall.OneDir.avgWait_le_of_rates_le

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

birth-deathcomparisonp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1queueingwaiting-time

Let λ≥0\lambda \ge 0λ≥0 and let (μn)n≥1(\mu_n)_{n\ge1}(μn​)n≥1​ and (μn′)n≥1(\mu'_n)_{n\ge1}(μn′​)n≥1​ be the service rates of two state-dependent M/M/kM/M/kM/M/k queues with arrival rate λ\lambdaλ, such that

0<μn≤μn′for every n≥1.0 < \mu_n \le \mu'_n \qquad \text{for every } n \ge 1 .0<μn​≤μn′​for every n≥1.

If the average waiting time W(μ)\mathcal W(\mu)W(μ) is finite, then W(μ′)\mathcal W(\mu')W(μ′) is finite and

W(μ′)≤W(μ).\mathcal W(\mu') \le \mathcal W(\mu).W(μ′)≤W(μ).

This is the principle the proof of Theorem 4 announces ("this implies the average waiting time in the no-call system is shorter"): faster service in every state gives a shorter average wait. The paper uses it again in the proofs of Theorem 1(4) and Theorem 5.

Formalization Note The paper derives the principle from the coordinatewise monotonicity of W\mathcal WW (the preceding milestone) and leaves the passage to infinitely many coordinates implicit; this statement is the conclusion, for all rates at once. λ=0\lambda = 0λ=0 is included: there W(μ)=1/μ1−d/v\mathcal W(\mu) = 1/\mu_1 - d/vW(μ)=1/μ1​−d/v (Lean's 00=10^0 = 100=1), and the claim is 1/μ1′≤1/μ11/\mu'_1 \le 1/\mu_11/μ1′​≤1/μ1​. "Finite" is the predicate FiniteWait (both series summable).

Preamble
import Mathlib
import Definitions.Def_CallNoCall_OneDir_StateDepQueue
Formal statement
namespace CallNoCall.OneDir

/-- Proof of Theorem 4, p. 38: if every service rate of a state-dependent `M/M/k` queue with
positive rates and finite average waiting time is raised (`μₙ ≤ μ'ₙ` for all `n ≥ 1`), the
average waiting time stays finite and does not increase. -/
theorem avgWait_le_of_rates_le (μ μ' : ℕ → ℝ) (lam d v : ℝ) (hμ : ∀ n, 1 ≤ n → 0 < μ n)
    (hle : ∀ n, 1 ≤ n → μ n ≤ μ' n) (hlam : 0 ≤ lam) (hfin : FiniteWait μ lam) :
    FiniteWait μ' lam ∧ avgWait μ' lam d v ≤ avgWait μ lam d v := by sorry

end CallNoCall.OneDir
Source
Feng, Kong, Wang, We Are on the Way: Analysis of On-Demand Ride-Hailing Systems, SSRN working paper 2960991 (version of 2020-04-16), p. 38, Appendix A, proof of Theorem 4
Human review
  • Endorsed by Shuze Chen · Oct 18, 2026

    Confirmed by the moderator at approval.

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