Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 4, pp. 38–39 — in a state-dependent M/M/k queue with λ > 0 the average waiting time strictly decreases in each service rate µ_m

Proved
CallNoCall.OneDir.avgWait_strictAnti_coord

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

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

Consider a state-dependent M/M/kM/M/kM/M/k queue with arrival rate λ>0\lambda > 0λ>0 and service rates μn>0\mu_n > 0μn​>0 (n≥1n \ge 1n≥1) whose average waiting time

W(μ)=∑i=1∞iλi−1μ1⋯μi1+∑i=1∞λiμ1⋯μi−dv\mathcal W(\mu) = \frac{\sum_{i=1}^{\infty} \frac{i\lambda^{i-1}}{\mu_1\cdots\mu_i}}{1 + \sum_{i=1}^{\infty} \frac{\lambda^{i}}{\mu_1\cdots\mu_i}} - \frac dvW(μ)=1+∑i=1∞​μ1​⋯μi​λi​∑i=1∞​μ1​⋯μi​iλi−1​​−vd​

is finite. Fix a state m≥1m \ge 1m≥1 and two values 0<x<y0 < x < y0<x<y, and let μx\mu^{x}μx and μy\mu^{y}μy be the rate sequences obtained from μ\muμ by setting the mmm-th rate to xxx, respectively yyy, keeping all other rates. Then both waiting times are finite and

W(μy)<W(μx).\mathcal W(\mu^{y}) < \mathcal W(\mu^{x}).W(μy)<W(μx).

This is the paper's "∂W/∂μm<0\partial\mathcal W/\partial\mu_m < 0∂W/∂μm​<0 for any mmm and μm\mu_mμm​": the average waiting time is strictly decreasing in each single service rate.

Formalization Note The sign of the partial derivative is stated as strict decrease in the single coordinate μm\mu_mμm​, which avoids differentiating an infinite series and is what the sign of the derivative expresses. The hypothesis λ>0\lambda > 0λ>0 is the paper's own: its rewriting W=1λc1+⋯c2+⋯−v/d\mathcal W = \frac1\lambda\frac{c_1 + \cdots}{c_2 + \cdots} - v/dW=λ1​c2​+⋯c1​+⋯​−v/d divides by λ\lambdaλ, and at λ=0\lambda = 0λ=0 the waiting time 1/μ1−d/v1/\mu_1 - d/v1/μ1​−d/v does not depend on μm\mu_mμm​ for m≥2m \ge 2m≥2. The page prints "−v/d-v/d−v/d" in this display; the mean ride time is d/vd/vd/v, as in the waiting-time formula on p. 34, and the constant does not affect the comparison. Finiteness for the two modified sequences is part of the conclusion.

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

/-- Proof of Theorem 4, pp. 38–39 (`∂W/∂μ_m < 0`): in a state-dependent `M/M/k` queue with
positive rates, arrival rate `λ > 0` and finite average waiting time, raising the single rate
`μ_m` (`m ≥ 1`) from `x > 0` to `y > x`, all other rates fixed, keeps the waiting time finite and
strictly lowers it. -/
theorem avgWait_strictAnti_coord (μ : ℕ → ℝ) (lam d v : ℝ) (hμ : ∀ n, 1 ≤ n → 0 < μ n)
    (hlam : 0 < lam) (hfin : FiniteWait μ lam) (m : ℕ) (hm : 1 ≤ m) (x y : ℝ) (hx : 0 < x)
    (hxy : x < y) :
    FiniteWait (Function.update μ m x) lam ∧ FiniteWait (Function.update μ m y) lam ∧
      avgWait (Function.update μ m y) lam d v < avgWait (Function.update μ m x) 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), pp. 38–39, 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