Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 10.4.1 — the average cost of serving the M/M/1 queue at a constant rate a > λ

Proved
SennottDP.ContinuousTime.mm1_serve_avg_cost

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

average-costmm1-queuep2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1queueing

Consider the M/M/1 queue with service rate control of Example 10.2.1, with arrival rate λ>0\lambda>0λ>0, a finite set of positive service rates, nonnegative service cost rates c(a)c(a)c(a), and linear holding cost rate H(i)=HiH(i)=HiH(i)=Hi with H>0H>0H>0. Let aaa be one of the service rates with λ<a\lambda<aλ<a, let d(a)d(a)d(a) be the policy that always serves at rate aaa, and let ρa=λ/a\rho_a=\lambda/aρa​=λ/a. Then, from every initial state,

Jd(a)Ψ=ρa c(a)+Hρa1−ρa.J^\Psi_{d(a)}=\rho_a\,c(a)+\frac{H\rho_a}{1-\rho_a}.Jd(a)Ψ​=ρa​c(a)+1−ρa​Hρa​​.

The first term is the service cost rate times the fraction of time the server is busy, the second the expected holding cost; the value serves as a benchmark for the optimal policy computed in Section 10.4.

Preamble
import Mathlib
import Definitions.Def_SennottDP_ContinuousTime_MM1

open scoped ENNReal
Formal statement
namespace SennottDP.ContinuousTime

/-- Proposition 10.4.1 (p. 250). -/
theorem mm1_serve_avg_cost (lam H a : ℝ) (rates : Finset ℝ) (c : ℝ → ℝ) (hlam : 0 < lam)
    (hrates : ∀ b ∈ rates, 0 < b) (hc : ∀ b ∈ rates, 0 ≤ c b) (hH : 0 < H)
    (ha : a ∈ rates) (hla : lam < a) :
    ∀ i, CTMDC.avgCost (mm1Serve lam rates c (fun k => H * k) a ha) i =
      ENNReal.ofReal (lam / a * c a + H * (lam / a) / (1 - lam / a)) := by sorry

end SennottDP.ContinuousTime
Source
Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999), p. 250, Proposition 10.4.1, eq. (10.28); p. 249 (H(i) = Hi with H > 0)
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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