Fundamentals of Queueing Theory VI: The Pollaczek–Khintchine Transform for the M/G/1 QueueTextbook
Motivation
The M/G/1 queue is the single-server queue with Poisson arrivals and an arbitrary service-time distribution. It is the first queueing model beyond the birth–death family in which exact formulas survive. It is also the model a practitioner reaches for when service times are measured and visibly not exponential: repair times, transmission times of variable-length packets, machining times. Its central result is the Pollaczek–Khintchine formula, first obtained by Pollaczek (1930) and Khintchine (1932). It expresses the stationary queue in terms of the service distribution, and it shows that the mean wait grows linearly in the squared coefficient of variation of service. That makes variability, and not only load, a measurable driver of congestion.
The textbook treatment followed here is Gross, Shortle, Thompson and Harris, Fundamentals of Queueing Theory, 4th ed. (Wiley 2008), §5.1. It derives the result through Kendall's (1953) imbedded Markov chain of system sizes at departure epochs. It then obtains the transforms of the waiting times and the busy-period functional equation of Takács (1962).
Setting
Customers arrive in a Poisson stream of rate . Service times are independent with distribution , a probability distribution on with mean , and the discipline is first-come first-served. The traffic intensity is .
Let be the number of customers the th departing customer leaves behind. The number of arrivals during one service time equals with probability
and is a Markov chain on whose transition matrix has first row and, for , entries for and otherwise. A stationary distribution is a probability vector with . Its generating function is , and that of the arrivals per service is , for complex . The Laplace–Stieltjes transform of a distribution on is . In the Lean development these are arrivalProb, transitionMatrix, IsStationaryDist, pgf, utilization and lst in the namespace QueueingFundamentals.MG1.
Formalization targets
Goal: the Pollaczek–Khintchine transform formula (5.15)–(5.16)
If and , the chain has a stationary distribution, and every stationary distribution satisfies and
with at each such . It leaves the service distribution completely general.
Milestones
- The stationary equations (5.12): .
- The transform (5.14), , with free and no condition on .
- Ergodicity (§5.1.4): a unique stationary distribution exists if and only if .
- The departure-point mean (5.7): .
- (5.32).
- The system-wait transform (5.29), (5.33): and .
- The line-wait transform (5.34): .
- The busy-period equation (5.37): .
- The mean busy period: with .
Significance
The transform formula determines the whole stationary departure-point distribution from the service distribution. Its derivatives at give every moment of the system size, including the mean-value formula (5.7). Combined with the transform identity (5.32), it gives the waiting-time transforms (5.33)–(5.34). Those in turn give the classical geometric-series representation of the line-wait distribution through the residual service time. The busy-period equation is the starting point for busy-period moments and for the M/G/1 analysis of priority and vacation models later in the book.
All results here are classical and proved in the literature. As far as a search of the platform shows (2026-09-28), none is machine-checked: there is no M/G/1 queue, imbedded departure-point chain, Laplace–Stieltjes transform of a service distribution, or busy-period equation on Prove2Me. Mathlib has Poisson distributions and measure convolution but no generating-function theory for countable Markov chains, no Laplace–Stieltjes transform, and no identity theorem in the form these statements need. The mission produces a checked statement of the Pollaczek–Khintchine formulas that later queueing developments (vacations, priorities, M/G/1-type chains) can build on.
Difficulty
Turning the stationary equations into (5.14) is formal power-series algebra. The difficulties lie elsewhere. First, the formula must hold for complex on the closed disk, which needs the non-vanishing of away from . That fact fails for , where has a fixed point inside the disk. Second, (5.15) evaluates from by a limit at the point where the formula is , and this uses , an interchange of sum and integral. Third, the existence half of the goal requires positive recurrence of a chain with unbounded jumps. The book obtains it from Foster's criterion, which is not in Mathlib. Fourth, the waiting-time and busy-period transforms are stated for all real , while the generating-function route reaches only . Extending the identity requires either analyticity arguments or a direct derivation. A formal proof of (5.14) alone does not touch any of these.
Formalization scope
The service distribution is a Measure ℝ with IsProbabilityMeasure B and B (Set.Iio 0) = 0; no density is assumed. The arrival rate is lam : ℝ with 0 < lam. Stationarity is IsStationaryDist P π: nonnegative entries, HasSum π 1, and HasSum (fun i => π i * P i j) (π j) for every j. That is global balance on ℕ, as the book writes it. Generating functions take a complex argument with ‖z‖ ≤ 1; transforms take a complex argument, and the waiting-time and busy-period statements use real s. The mean and variance of B are Bochner integrals, and every statement that uses them assumes Integrable. The mean busy period assumes 0 < E[S], so that is the book's service rate.
Closed forms carried by the statements: (5.15); (5.16); (5.14); (5.7); (5.32); (5.33); (5.34); (5.37); for the mean busy period.
The waiting-time distribution enters through the book's FCFS relation , and through ; both are hypotheses, as in the book. The busy-period distribution enters through the equation (5.36) in CDF form, with -fold convolutions built from Mathlib's Measure.conv.
The goal is not the algebraic consequence of (5.12) for an arbitrary sequence: must be a probability vector, is determined as , and the existence of a stationary distribution is part of the conclusion, so the statement cannot hold vacuously. The departure-point/time-average equality (§5.1.3, via PASTA) is not formalized.
Useful infrastructure, reusable beyond this mission: generating functions of stationary distributions on ℕ, Poisson mixtures, Laplace–Stieltjes transforms of measures on , and a Foster-type drift criterion for countable chains. Contributions proving any milestone, or those tools, are welcome.
Selected references
- D. Gross, J. F. Shortle, J. M. Thompson, C. M. Harris, Fundamentals of Queueing Theory, 4th ed., Wiley, 2008, §5.1. https://doi.org/10.1002/9781118625651
- D. G. Kendall, Stochastic processes occurring in the theory of queues and their analysis by the method of the imbedded Markov chain, Annals of Mathematical Statistics 24 (1953) 338–354. https://doi.org/10.1214/aoms/1177728975
- F. G. Foster, On the stochastic matrices associated with certain queuing processes, Annals of Mathematical Statistics 24 (1953) 355–360. https://doi.org/10.1214/aoms/1177728976
- L. Takács, Introduction to the Theory of Queues, Oxford University Press, 1962.
- F. Pollaczek, Über eine Aufgabe der Wahrscheinlichkeitstheorie, Mathematische Zeitschrift 32 (1930) 64–100. https://doi.org/10.1007/BF01194620