Fundamentals of Queueing Theory IX: Kingman's Upper Bound on the G/G/1 Queue WaitTextbook
Motivation
The single-server queue with general independent interarrival and service times, the G/G/1 queue, is the basic model of a congested resource: a machine, a link, a checkout. For Markovian arrivals or services the mean wait has a closed form (the Pollaczek–Khintchine formula for M/G/1, the geometric law for G/M/1). For general distributions it has none, and the mean wait depends on the whole distributions of the interarrival and service times, not only on their moments. Capacity planning still needs numbers. Bounds that use only the first two moments are therefore the practical tool. They say how bad congestion can be for any queue with a given arrival rate, service rate and variabilities, and they become exact as the traffic intensity approaches one.
This mission formalizes Chapter 7, §7.1 of Gross, Shortle, Thompson and Harris, Fundamentals of Queueing Theory (4th ed., Wiley 2008, DOI 10.1002/9781118625651), together with the heavy-traffic Theorem 7.1 of §7.2.3.
Timeline. Lindley (Proc. Cambridge Philos. Soc., 1952) derived the recursion for successive waiting times and characterized the stationary law. Kingman (Proc. Cambridge Philos. Soc., 1961, 1962) proved the heavy-traffic exponential limit. In "Some inequalities for the queue GI/G/1" (Biometrika, 1962) he proved the two-moment upper bound. Marshall (1968) derived further moment relations and bounds (Operations Research, 1968). Marchal (Operations Research, 1978) gave the lower bound (7.14).
Setting
A G/G/1 queue is specified by two probability laws on : the law of an interarrival time and the law of a service time . Both have finite second moments, and
The pairs are independent and identically distributed, and is independent of . Customers are served first come, first served. The line delay of the th customer obeys Lindley's recursion
and is independent of . The idle gap is the time between the th departure and the next start of service.
The queue is stationary when the law of does not depend on , that is, when one step of (7.1) maps to itself. The mean stationary line delay is . In the Lean development these objects are IsGG1Input A B lam mu, lindley, idleX, IsStationaryWaitLaw A B ν and meanWait ν, in the namespace QueueingFundamentals.Bounds.
Formalization targets
Goal: Kingman's upper bound (7.13)
For every stationary G/G/1 queue with , is finite and
Milestones
- the idle-gap identity (7.4), and the mean-wait formula (7.7)
- the variance of the interdeparture time (7.12): ;
- Marchal's lower bound (7.14), ;
- the distributional lower bound , with the unique nonnegative root of and the CDF of ((7.15), (7.16));
- the two-sided estimate (7.17), ;
- Theorem 7.1 (heavy traffic): for a sequence of G/G/1 queues with , and , under convergence of the input laws, and uniformly bounded -moments,
The goal is (7.13) rather than the stronger (7.17) because it depends only on the first two moments of the input.
Significance
Kingman's bound is the most widely used performance estimate for single-server queues. It needs no distributional form, only two means and two variances. It yields the "Kingman formula" approximation used across manufacturing and service operations, and it is asymptotically exact as (Theorem 7.1). The departure variance (7.12) drives the decomposition approximations for networks of §7.3. The heavy-traffic theorem is the entry point to diffusion approximations of queues.
All results here are proved in the literature (Theorem 7.1 is stated in the book without proof). This mission produces the first machine-checked versions. As far as a search of the platform shows, none of these statements, and no stationary Lindley recursion, has been formalized. The substrate it needs is reusable for any mission on G/G/1, G/G/c or random walks: stationary laws of a recursion on distributions, moment identities for , and convergence in distribution.
Difficulty
The book's derivation squares (7.3) and takes expectations, using . That step is valid only if the stationary wait has a finite second moment. It is not assumed here and fails in general: with finite second moments of and the stationary wait has a finite mean, but its second moment is finite only if . So the moment identity (7.7) cannot be obtained by cancelling second moments. A truncation or limiting argument is needed, and even the finiteness of has to be proved rather than assumed. The lower bound further needs a Jensen argument for the conditional mean of one Lindley step. Theorem 7.1 needs a uniform-integrability argument across a sequence of queues.
Formalization scope
Conventions committed to in Lean:
- laws, not random variables: , and the stationary law are
Measure ℝ; independence of (and for ) is the product measure; - the input laws are probability measures on with finite second moments (
MemLp id 2), , , , ; - stationarity is invariance of the whole law under one step of (7.1), not equality of means;
- , the variances (Mathlib
variance) and are Lebesgue integrals. Every theorem therefore asserts, as part of its conclusion, that has a finite mean, and none assumes a finite second moment of ; - is Mathlib's
cdfof the law of ; - convergence in distribution is convergence of for all bounded continuous , and is
expMeasure 1.
Closed forms carried by the statements: (7.4), (7.7), (7.12), (7.13), (7.14) and (7.17) exactly as printed, and the scaling of Theorem 7.1.
Stating (7.13) with , or the idle probability as free real numbers constrained by (7.7) would reduce it to algebra. Here is always the mean of a stationary law of the queue.
Not formalized: (7.5) and (7.8), which need the idle-period law and the arrival-point probability as separate objects, and the multiserver bounds of §7.1.3. Proofs of any milestone are welcome, as are reusable lemmas on stationary laws of Lindley's recursion (existence, uniqueness, and finiteness of the mean under ).
Selected references
- D. Gross, J. F. Shortle, J. M. Thompson, C. M. Harris, Fundamentals of Queueing Theory, 4th ed., Wiley, 2008. https://doi.org/10.1002/9781118625651
- D. V. Lindley, The theory of queues with a single server, Math. Proc. Cambridge Philos. Soc. 48 (1952)
- J. F. C. Kingman, The single server queue in heavy traffic, Math. Proc. Cambridge Philos. Soc. 57 (1961)
- J. F. C. Kingman, Some inequalities for the queue GI/G/1, Biometrika 49 (1962)
- K. T. Marshall, Some inequalities in queuing, Operations Research 16 (1968)
- W. G. Marchal, Some simpler bounds on the mean queuing time, Operations Research 26 (1978)