Fundamentals of Queueing Theory I: Foster's Criterion for Positive RecurrenceTextbook
Motivation
Almost every model in queueing theory is analysed through a Markov chain. The number of customers in an M/M/c queue is a continuous-time birth–death chain; the number left behind by departing customers of an M/G/1 queue is a discrete-parameter chain on (the imbedded Markov chain); networks of queues are chains on vectors of queue lengths. Before any steady-state formula (Erlang's formulas, the Pollaczek–Khintchine formula, product forms) can be used, one has to know that the chain has a steady state at all: that it is positive recurrent, so that a stationary distribution exists and equals the limiting distribution.
Chapter 1 of Gross, Shortle, Thompson and Harris, Fundamentals of Queueing Theory (4th ed., Wiley 2008, DOI 10.1002/9781118625651), collects the two ingredients the rest of the book stands on: the Poisson process with its exponential interarrival times (§§1.7–1.8), and the classification theory of discrete-parameter Markov chains (§1.9), ending with Foster's criterion (Theorem 1.2), a sufficient condition for positive recurrence in terms of a drift inequality. The criterion goes back to F. G. Foster, On the stochastic matrices associated with certain queuing processes, Ann. Math. Statist. 24 (1953) (DOI 10.1214/aoms/1177728976), and is the ancestor of the Foster–Lyapunov method used for stability of queueing networks and stochastic systems.
This mission is the first of a series formalizing the book chapter by chapter.
Setting
A homogeneous discrete-parameter Markov chain on is given by a transition matrix with and for every . The -step transition probabilities are the entries of .
The first-passage probability is the probability that the chain started in enters for the first time at step ; for it is the probability of first return at step . The return probability is and the mean recurrence time is . A state is positive recurrent if and ; the chain is positive recurrent if every state is.
The chain is irreducible if for every pair of states some is positive, and aperiodic if for every state the greatest common divisor of is . A stationary distribution is a probability vector with , i.e. for every .
For the Poisson part, are independent interarrival times, each exponentially distributed with rate ; the arrival epochs are , and counts the arrivals in .
Formalization targets
Goal: Theorem 1.2 (Foster's criterion)
An irreducible, aperiodic chain is positive recurrent if there exist with
Milestones: the Markov chain theorems
- Theorem 1.1(a). In an irreducible, positive recurrent chain, is a stationary distribution, and it is the only one.
- Theorem 1.1(c). If moreover the chain is aperiodic and all moments of are finite, then for all .
Milestones: the Poisson process and the exponential distribution
- Eqs. (1.11)–(1.14). The unique solution of , with , is .
- Eq. (1.15). With exponential interarrival times,
- Eq. (1.16). Given , the arrival epochs have density on .
- Eq. (1.17) and its converse (p.21). The exponential law satisfies , and it is the only continuous distribution on that does.
- Nonhomogeneous Poisson law (p.22). With a continuous rate the forward equations have the unique solution , .
Significance
Foster's criterion reduces positive recurrence, a statement about return times, to exhibiting one test function with negative drift outside a single state. In the book it is the tool that establishes the existence of steady state for imbedded chains of the M/G/1 and G/M/1 queues (Chapter 5); its generalizations are the standard stability proofs for queueing networks. Theorem 1.1 then supplies what positive recurrence buys: the stationary distribution exists, is unique, equals , and is the limit of the transition probabilities. The Poisson results justify the "Markovian" arrivals and services of Chapters 2–4.
All of these results are classical and proved in the literature; the book states Theorems 1.1 and 1.2 without proof. The Prove2Me platform already holds machine-checked versions of related Markov chain theorems in other missions (Levin–Peres–Wilmer's and Durrett's countable-chain convergence theorems), stated with different definitions and hypotheses. What this mission adds is a formal development in the book's own terms — first-passage probabilities , mean recurrence times , gcd periodicity — on which the later missions of the series (imbedded chains, birth–death processes) can build, together with a formal proof of Foster's criterion, which is not on the platform.
Difficulty
For Foster's criterion the natural first step, taking expectations of the drift inequality along the chain, only shows that the expected value of decreases while the chain stays away from . Turning that into a bound on the expected return time to requires an optional-stopping or telescoping argument over a random time, with the value possibly unbounded, and a separate argument that positive recurrence of state propagates to all states of an irreducible chain. The book's hypotheses include aperiodicity, which the argument does not use.
For Theorem 1.1, identifying the stationary distribution with requires relating the matrix powers to the first-passage probabilities (a renewal decomposition), and uniqueness over countably many states needs care with infinite sums. For the Poisson results, the difficulty is measure-theoretic: the distribution of the sum of exponential variables, and conditioning on the event for the order-statistics property.
Formalization scope
States are natural numbers; the transition matrix is a real function with nonnegative entries and rows summing to one (as a convergent series). The return probability and the mean recurrence time are valued in , so null recurrence () is representable. Irreducibility is the per-pair notion. Stationary equations are stated componentwise with convergent series.
In Foster's criterion the series are required to converge for every , which is the book's condition together with the finiteness implicit in the inequalities for ; is real-valued and nonnegative. Dropping the convergence requirement would let a divergent row series (whose Lean sum is ) satisfy the inequality vacuously; allowing would make the hypothesis trivially satisfiable. Neither is permitted.
The closed forms stated explicitly are: (Theorem 1.1(a), with both existence and uniqueness), the Poisson probabilities (1.14), the Erlang tail integral and the Poisson CDF (1.15), the density (1.16), and for the nonhomogeneous law. Equations (1.14) and the nonhomogeneous law are stated as "solves the equations with the initial conditions if and only if equals the closed form", so both existence and uniqueness are asserted.
The Poisson results use random variables on a probability space, with Mathlib's expMeasure for the exponential law and cond for conditional probability. The derivation of the forward equations from the axioms of §1.7 is not formalized; the Poisson law is reached from the equations and, separately, from exponential interarrival times.
Not formalized: Theorem 1.1(b) and the word "ergodic" in 1.1(c), which rest on the book's informal notion of ergodicity; Theorem 1.3, whose phrase "for Theorem 1.1 to be valid" for a continuous-time chain is not pinned down.
The Markov chain definitions are reusable by every later mission that studies an imbedded chain. Contributions welcome: proofs of the milestones, and supporting lemmas (Chapman–Kolmogorov, renewal decomposition of , class properties of recurrence).
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
- 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