Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

Markov Chain

77 missions · 29 completed

Missions

Open48Completed29All77
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times XI: The Cutoff Phenomenon and Lamplighter WalksTextbook

Motivation

For many natural chains, convergence to stationarity is not gradual: the distance stays near its maximum for a long time and then collapses to zero in a comparatively negligible window. A deck of cards under riffle shuffles is "not at all mixed" for six shuffles and "essentially mixed" after eight. This abrupt transition is the cutoff phenomenon, discovered by Aldous and Diaconis in the 1980s, and Chapter 18 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) develops its theory: precise definitions of cutoff and cutoff windows, the product criterion trel=o(tmix)t_{\mathrm{rel}}=o(t_{\mathrm{mix}})trel​=o(tmix​) necessary for cutoff, and complete proofs for two model families — the biased walk on a segment and the lazy hypercube walk, the latter with the sharp 12nlog⁡n\tfrac12 n\log n21​nlogn location and window nnn, in both total variation and separation. Chapter 19 complements this with lamplighter walks: chains on the wreath-product state space of lamp configurations over a moving lamplighter, whose relaxation, mixing, and separation times are governed — beautifully — by the hitting and cover times of Missions VI. Both chapters are formalized in this mission.

Setting

A family of chains is a sequence P(n)P^{(n)}P(n) on state spaces VnV_nVn​ with stationary distributions πn\pi_nπn​; all single-chain quantities acquire an index nnn. As before, ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣, dn(t)=max⁡x∥P(n)t(x,⋅)−πn∥TVd_n(t)=\max_x\|P^{(n)t}(x,\cdot)-\pi_n\|_{TV}dn​(t)=maxx​∥P(n)t(x,⋅)−πn​∥TV​, tmix(n)(ε)=min⁡{t:dn(t)≤ε}t^{(n)}_{\mathrm{mix}}(\varepsilon)=\min\{t:d_n(t)\le\varepsilon\}tmix(n)​(ε)=min{t:dn​(t)≤ε}, and tmix(n)=tmix(n)(1/4)t^{(n)}_{\mathrm{mix}}=t^{(n)}_{\mathrm{mix}}(1/4)tmix(n)​=tmix(n)​(1/4). The family has a cutoff when for every 0<ε<10<\varepsilon<10<ε<1

tmix(n)(ε)tmix(n)(1−ε)  ⟶  1(n→∞),\frac{t^{(n)}_{\mathrm{mix}}(\varepsilon)}{t^{(n)}_{\mathrm{mix}}(1-\varepsilon)}\;\longrightarrow\;1\qquad(n\to\infty),tmix(n)​(1−ε)tmix(n)​(ε)​⟶1(n→∞),

and a cutoff at tnt_ntn​ with window wnw_nwn​ when wn=o(tn)w_n=o(t_n)wn​=o(tn​) and the distance at time tn+αwnt_n+\alpha w_ntn​+αwn​ tends (in the appropriate limsup/liminf sense) to 111 as α→−∞\alpha\to-\inftyα→−∞ and to 000 as α→+∞\alpha\to+\inftyα→+∞. The separation distance from xxx is sx(t)=max⁡y(1−Pt(x,y)/π(y))s_x(t)=\max_y\bigl(1-P^t(x,y)/\pi(y)\bigr)sx​(t)=maxy​(1−Pt(x,y)/π(y)) (Mission III), s(t)=max⁡xsx(t)s(t)=\max_xs_x(t)s(t)=maxx​sx​(t), and a separation cutoff is defined by the same window template with sss in place of ddd. From Mission VII, trel=(1−λ⋆)−1t_{\mathrm{rel}}=(1-\lambda_\star)^{-1}trel​=(1−λ⋆​)−1 is the relaxation time; from Mission VI, thit=max⁡x,yEx(τy)t_{\mathrm{hit}}=\max_{x,y}\mathbb E_x(\tau_y)thit​=maxx,y​Ex​(τy​) and tcovt_{\mathrm{cov}}tcov​ are the maximal hitting and cover times, and the pairwise distance dˉ(t)=max⁡x,y∥Pt(x,⋅)−Pt(y,⋅)∥TV\bar d(t)=\max_{x,y}\|P^t(x,\cdot)-P^t(y,\cdot)\|_{TV}dˉ(t)=maxx,y​∥Pt(x,⋅)−Pt(y,⋅)∥TV​ is from Mission II.

The concrete chains: the lazy biased walk on {0,…,n}\{0,\dots,n\}{0,…,n} holds with probability 12\tfrac1221​ and otherwise steps up with probability p>12p>\tfrac12p>21​, down with probability 1−p1-p1−p (reflecting at the endpoints); the lazy hypercube walk is the walk of Mission IV on {0,1}n\{0,1\}^n{0,1}n. The lamplighter chain G∗G^\astG∗ over a graph GGG has states (lamp configuration in {0,1}V\{0,1\}^{V}{0,1}V, lamplighter position in VVV); one step randomizes the current lamp, moves the lamplighter one step of the lazy walk on GGG, and randomizes the new lamp. Its stationary distribution is uniform lamps times the walk's stationary distribution.

Formalization targets

Goal

Theorem 18.3: the lazy hypercube walk has a cutoff at 12 nlog⁡n\tfrac12\,n\log n21​nlogn with window nnn — the family's total variation distance undergoes its full collapse in a window of size Θ(n)\Theta(n)Θ(n) around 12nlog⁡n\tfrac12 n\log n21​nlogn.

Milestones

  • Lemma 18.1 — cutoff is equivalent to the step-function limit: dn(⌊c tmix(n)⌋)→1d_n(\lfloor c\,t^{(n)}_{\mathrm{mix}}\rfloor)\to1dn​(⌊ctmix(n)​⌋)→1 for every c<1c<1c<1 and →0\to0→0 for every c>1c>1c>1.
  • Theorem 18.2 — the lazy biased walk on {0,…,n}\{0,\dots,n\}{0,…,n} with bias β=p−12>0\beta=p-\tfrac12>0β=p−21​>0 has a cutoff at β−1n\beta^{-1}nβ−1n with window n\sqrt nn​.
  • Proposition 18.4 (the product condition) — for a reversible family with tmix(n)→∞t^{(n)}_{\mathrm{mix}}\to\inftytmix(n)​→∞, if tmix(n)≤C trel(n)t^{(n)}_{\mathrm{mix}}\le C\,t^{(n)}_{\mathrm{rel}}tmix(n)​≤Ctrel(n)​ for a fixed constant CCC, the family has no cutoff: trel=o(tmix)t_{\mathrm{rel}}=o(t_{\mathrm{mix}})trel​=o(tmix​) is necessary.
  • Theorem 18.8 — the lazy hypercube walk has a separation cutoff at nlog⁡nn\log nnlogn with window nnn — at twice the total-variation cutoff time.
  • Lemma 19.3 (Aldous–Diaconis) — the separation–total-variation relation s(2t)≤1−(1−dˉ(t))2s(2t)\le1-\bigl(1-\bar d(t)\bigr)^2s(2t)≤1−(1−dˉ(t))2 for reversible chains.
  • Theorem 19.1 — for lamplighter chains over a growing family of connected graphs, trel(Gn∗)≍thit(Gn)t_{\mathrm{rel}}(G_n^\ast)\asymp t_{\mathrm{hit}}(G_n)trel​(Gn∗​)≍thit​(Gn​): the relaxation time is comparable, with universal constants, to the maximal hitting time of the base walk.
  • Theorem 19.2 — likewise tmix(Gn∗)≍tcov(Gn)t_{\mathrm{mix}}(G_n^\ast)\asymp t_{\mathrm{cov}}(G_n)tmix​(Gn∗​)≍tcov​(Gn​): the lamplighter's mixing time is governed by the base walk's cover time.

Significance

The results. Cutoff is the deepest phenomenon in the quantitative theory of Markov chains: it says mixing is a phase transition in time. The hypercube is the fundamental example where everything can be computed — the eigenvalue structure of Mission VII delivers the upper bound and a refined distinguishing-statistic argument (Mission IV) the lower — and the 12nlog⁡n\tfrac12 n\log n21​nlogn location with window nnn is the sharpest statement of the coupon-collector heuristic. The product condition 18.4 is the basic sanity criterion in the ongoing research program of characterizing cutoff. The lamplighter theorems tie together the entire series: hitting times (Mission VI), cover times (Mission VI), relaxation times (Mission VII), and separation (Missions III, XI) all meet in one family of chains that furnishes counterexamples — for instance, families with total-variation cutoff but no separation cutoff.

Formalizing them. Nothing about cutoff exists in any proof assistant. The definitions themselves (families of chains, windows, limsup/liminf in a real parameter) are a formalization contribution: they force precision about quantifier order that informal texts elide. The hypercube cutoff is a landmark target — a sharp two-sided asymptotic statement, not an inequality.

Difficulty

The upper half of the hypercube cutoff needs the full eigenvalue decomposition of the walk (λj=1−j/n\lambda_j=1-j/nλj​=1−j/n with multiplicity (nj)\binom nj(jn​), via Mission VII's spectral representation) and the ℓ2\ell^2ℓ2 bound summed over binomial coefficients; the lower half needs the Hamming-weight distinguishing statistic pushed to second-order precision (mean and variance at time 12nlog⁡n+αn\tfrac12 n\log n+\alpha n21​nlogn+αn). Proposition 18.4 converts an eigenfunction with eigenvalue near 111 into a quantitative anti-concentration statement — the formal content of "a bounded ratio forbids abrupt collapse". Theorem 18.2 rests on a central-limit-flavoured estimate for the biased walk's position, done with fourth-moment bounds rather than the CLT. The lamplighter theorems are the heaviest: the upper bounds couple lamp refreshment with the cover-time of the base walk, the lower bounds run separation-distance and eigenfunction arguments, and all four inequalities must hold with universal constants over an arbitrary growing graph family — the statements quantify over the family, so the proofs must too. The asymptotic language throughout (liminf/limsup over nnn, limits in the window parameter α\alphaα) exercises the filter library in earnest.

Formalization scope

Families are dependent functions ∀ n, Matrix (V n) (V n) ℝ over a sequence of finite state-space types. Cutoff and windows are rendered exactly by the book's Eq. (18.3) and §18.1: the window definition uses Filter.liminf/limsup over nnn composed with limits in the real parameter α\alphaα (through ⌊t n + α w n⌋₊, with the natural-floor convention on negative reals). The mixing-time ratio in the cutoff definition uses real division of the natural-valued mixing times (total division: the hypotheses keep denominators eventually positive). The biased walk's stationary distribution is passed as a hypothesis rather than a closed form. In the lamplighter theorems the comparability constants c1,c2c_1,c_2c1​,c2​ and the threshold NNN are existentially quantified, with the graph family and its connectivity as hypotheses; the lamplighter matrix and its product stationary distribution are explicit definitions. Lemma 19.3 is stated for a single reversible chain at all times ttt.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • D. Aldous, P. Diaconis, Shuffling cards and stopping times, Amer. Math. Monthly 93 (1986). https://doi.org/10.1080/00029890.1986.11971821
  • P. Diaconis, The cutoff phenomenon in finite Markov chains, Proc. Natl. Acad. Sci. USA 93 (1996). https://doi.org/10.1073/pnas.93.4.1659
  • Y. Peres, D. Revelle, Mixing times for random walks on finite lamplighter groups, Electron. J. Probab. 9 (2004). https://doi.org/10.1214/EJP.v9-198
18 thms6 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times X: Martingales and Evolving SetsTextbook

Motivation

Every mixing bound in Missions II–IX ultimately leaned on either coupling or the spectrum, and the spectral route demanded reversibility. Chapter 17 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) opens a third route: martingales — processes whose conditional expected increment vanishes — and the beautiful evolving-set process of Morris and Peres built from them. The payoff theorem of the chapter bounds the mixing time of any lazy irreducible chain by its bottleneck constant, with no reversibility hypothesis anywhere — an honest strengthening of the spectral route through the Cheeger inequality, whose proof is a martingale analysis of a random sequence of sets growing and shrinking under the chain's flow. The same chapter proves the optional stopping theorem in the exact discrete form the rest of the series consumes, and applies the machinery to sharp return-probability estimates for lazy walks.

Setting

Throughout, PPP is a chain on a finite state space VVV with stationary distribution π\piπ; ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_{A}|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣, d(t)=max⁡x∥Pt(x,⋅)−π∥TVd(t)=\max_x\|P^t(x,\cdot)-\pi\|_{TV}d(t)=maxx​∥Pt(x,⋅)−π∥TV​, and tmix(ε)=min⁡{t:d(t)≤ε}t_{\mathrm{mix}}(\varepsilon)=\min\{t:d(t)\le\varepsilon\}tmix​(ε)=min{t:d(t)≤ε} as in the earlier missions; πmin⁡=min⁡xπ(x)\pi_{\min}=\min_x\pi(x)πmin​=minx​π(x). The chain is lazy when P(x,x)≥12P(x,x)\ge\tfrac12P(x,x)≥21​ at every state.

A martingale adapted to the chain is a family MtM_tMt​ of functions of the trajectory up to time ttt such that the conditional expectation of Mt+1M_{t+1}Mt+1​, given the trajectory so far, equals MtM_tMt​ — for a finite chain, a pointwise finite-sum identity. A stopping time τ\tauτ is a {0,1}\{0,1\}{0,1}-valued stopping rule in the sense of Mission III: whether to stop at time ttt depends only on the trajectory up to ttt.

From Mission IV: the edge measure is Q(x,y)=π(x)P(x,y)Q(x,y)=\pi(x)P(x,y)Q(x,y)=π(x)P(x,y), with Q(S,y)=∑x∈SQ(x,y)Q(S,y)=\sum_{x\in S}Q(x,y)Q(S,y)=∑x∈S​Q(x,y), and the bottleneck constant Φ⋆\Phi_\starΦ⋆​ is the minimum over sets SSS with 0<π(S)≤120<\pi(S)\le\tfrac120<π(S)≤21​ of Φ(S)=Q(S,Sc)/π(S)\Phi(S)=Q(S,S^c)/\pi(S)Φ(S)=Q(S,Sc)/π(S). The evolving-set process is the Markov chain on subsets of VVV in which, from the current set SSS, one draws uuu uniform on (0,1](0,1](0,1] and passes to the superlevel set

S′={y  :  Q(S,y)π(y)≥u}S'=\Bigl\{y\;:\;\frac{Q(S,y)}{\pi(y)}\ge u\Bigr\}S′={y:π(y)Q(S,y)​≥u}

— states currently receiving a large share of the flow out of SSS are likely to join, states receiving little are likely to leave.

Formalization targets

Goal

Theorem 17.10 (Morris–Peres), the capstone of Chapter 17: for any lazy irreducible chain — reversibility not assumed —

tmix(ε)  ≤  2Φ⋆2 log⁡ ⁣(1ε πmin⁡).t_{\mathrm{mix}}(\varepsilon)\;\le\;\frac{2}{\Phi_\star^{2}}\,\log\!\Bigl(\frac{1}{\varepsilon\,\pi_{\min}}\Bigr).tmix​(ε)≤Φ⋆2​2​log(επmin​1​).

Milestones

  • Corollary 17.7, the Optional Stopping Theorem — if MMM is a martingale adapted to the chain, bounded uniformly by a constant, and τ\tauτ is an almost surely finite stopping time, then Ex(Mτ)=M0(x)\mathbb E_x(M_\tau)=M_0(x)Ex​(Mτ​)=M0​(x): stopping a fair game at a fair time wins nothing.
  • Lemma 17.12 — the evolving-set process, started from the singleton {x}\{x\}{x}, recovers the chain: Pt(x,y)=π(y)π(x) P{x}{y∈St}P^t(x,y)=\dfrac{\pi(y)}{\pi(x)}\,\mathbb P_{\{x\}}\{y\in S_t\}Pt(x,y)=π(x)π(y)​P{x}​{y∈St​}.
  • Lemma 17.13 — for the evolving-set process, the stationary mass π(St)\pi(S_t)π(St​) of the current set is a martingale.
  • Theorem 17.17 — return probabilities of the lazy random walk on a graph of maximum degree Δ\DeltaΔ: ∣Pt(x,x)−π(x)∣≤2 Δ5/2/t\bigl|P^t(x,x)-\pi(x)\bigr|\le\sqrt2\,\Delta^{5/2}/\sqrt t​Pt(x,x)−π(x)​≤2​Δ5/2/t​, an application of the evolving-set machinery.

Significance

The results. The optional stopping theorem is the workhorse identity of discrete probability — the earlier missions' gambler's-ruin and hitting-time computations are all instances, and Missions XI–XII cite it again. The Morris–Peres theorem is the strongest known elementary relation between geometry and mixing: for reversible chains it recovers the Cheeger-based bound tmix≲Φ⋆−2log⁡(1/πmin⁡)t_{\mathrm{mix}}\lesssim\Phi_\star^{-2}\log(1/\pi_{\min})tmix​≲Φ⋆−2​log(1/πmin​) of Mission VII, but it needs no reversibility, and its proof technique — controlling the root π(St)\sqrt{\pi(S_t)}π(St​)​ as a supermartingale — introduced evolving sets as a tool that has since produced heat-kernel decay, isoperimetric mixing profiles, and bounds for non-reversible and time-inhomogeneous chains well beyond the book.

Formalizing them. Mathlib's martingale library lives in measure-theoretic generality; this mission's chain-adapted martingales are self-contained finite objects (families of functions on trajectory spaces), so the optional stopping theorem here is independent of, and complementary to, the measure-theoretic one. Evolving sets exist in no proof assistant; the process is a genuinely novel formalization target — a Markov chain whose states are Finsets, defined through interval lengths of a uniform variable.

Difficulty

The optional stopping theorem needs the dominated-convergence step (bounded martingale, a.s. finite time) rendered as an elementary tail estimate — the series ∑tP{τ=t} Mt\sum_t\mathbb P\{\tau=t\}\,M_t∑t​P{τ=t}Mt​ must be shown summable and equal to M0M_0M0​ by an exchange of finite sums with a limit. The evolving-set transition probabilities are interval lengths: the probability of passing from SSS to TTT is the length of the set of u∈(0,1]u\in(0,1]u∈(0,1] whose superlevel set is exactly TTT, which the formalization encodes by explicit upper and lower thresholds (a min over TTT and a max over TcT^cTc of the clipped ratios Q(S,y)/π(y)Q(S,y)/\pi(y)Q(S,y)/π(y)); establishing that these lengths sum to one over TTT, and that the process has the two martingale properties, is delicate finite-order-statistics reasoning. The goal theorem then runs a supermartingale argument on π(St)\sqrt{\pi(S_t)}π(St​)​: laziness keeps the thresholds in [12,1][\tfrac12,1][21​,1], an expansion estimate converts the bottleneck constant into a per-step multiplicative decay of Eπ(St)(1−π(St))\mathbb E\sqrt{\pi(S_t)\bigl(1-\pi(S_t)\bigr)}Eπ(St​)(1−π(St​))​, and Lemma 17.12 converts that decay into a total-variation bound. Theorem 17.17 composes the same machinery with a Cauchy–Schwarz step. None of this exists in any library; the auxiliary supermartingale lemmas are welcome as separate contributions.

Formalization scope

Martingales, stopping times, and stopped expectations are the trajectory-calculus objects of Missions I and III: finite sums over paths weighted by ∏P(ωi,ωi+1)\prod P(\omega_i,\omega_{i+1})∏P(ωi​,ωi+1​), with expectations over the stopping time as tsums in ttt (non-summable families sum to 000; the a.s.-finiteness hypothesis is the statement that the stopping mass sums to 111). The evolving-set matrix is defined by the clipped-threshold formula described above — an explicit real matrix on Finset V — and the goal and lemmas assume π\piπ positive and PPP lazy exactly where the book does. Theorem 17.17 is stated for the lazy walk on a connected graph with positive degrees, with π(x)=deg⁡(x)/2∣E∣\pi(x)=\deg(x)/2|E|π(x)=deg(x)/2∣E∣ written out. Real-valued bounds on the natural-valued tmixt_{\mathrm{mix}}tmix​ are direct inequalities on the cast, with no hidden rounding.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • B. Morris, Y. Peres, Evolving sets, mixing and heat kernel bounds, Probab. Theory Related Fields 133 (2005). https://doi.org/10.1007/s00440-005-0434-7
  • D. Williams, Probability with Martingales, Cambridge University Press, 1991. https://doi.org/10.1017/CBO9780511813658
12 thms6 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times IX: The Ising ModelTextbook

Motivation

The Ising model is statistical mechanics' fruit fly: spins ±1\pm1±1 on the vertices of a graph, neighbours preferring to agree, a single parameter — the inverse temperature β\betaβ — tuning the strength of that preference. Chapter 15 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) studies the Glauber dynamics for this model and exhibits, on concrete graphs, the phenomenon that made mixing times a subject: a dynamical phase transition. At high temperature (small β\betaβ) the dynamics mixes in O(nlog⁡n)O(n\log n)O(nlogn) steps on any bounded-degree graph; on the complete graph the same dynamics passes, as β\betaβ crosses an explicit threshold, from O(nlog⁡n)O(n\log n)O(nlogn) mixing to exponentially slow mixing. The chapter also introduces two comparison tools of independent value — the sensitivity of the spectral gap to edge removal, and the block dynamics comparison — and the Kenyon–Mossel–Peres bound for trees, all formalized in this mission.

Setting

Spin configurations on a finite graph GGG with vertex set of size nnn and maximum degree Δ\DeltaΔ are functions σ\sigmaσ assigning ±1\pm1±1 to each vertex (encoded over Booleans, true↦+1\mathrm{true}\mapsto+1true↦+1). The Ising model at inverse temperature β>0\beta>0β>0 is the Gibbs distribution

π(σ)  =  e β∑{v,w}∈Eσ(v)σ(w)Z(β),\pi(\sigma)\;=\;\frac{e^{\,\beta\sum_{\{v,w\}\in E}\sigma(v)\sigma(w)}}{Z(\beta)},π(σ)=Z(β)eβ∑{v,w}∈E​σ(v)σ(w)​,

each edge counted once, Z(β)Z(\beta)Z(β) the normalizing partition function. The Glauber dynamics for π\piπ picks a uniform vertex and re-samples its spin from π\piπ conditioned on all other spins — concretely, the new spin at vvv is +1+1+1 with probability (1+tanh⁡(βS))/2\bigl(1+\tanh(\beta S)\bigr)/2(1+tanh(βS))/2 where SSS is the sum of the neighbouring spins.

The yardsticks are as in the earlier missions: ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣ is the total variation distance, d(t)=max⁡σ∥Pt(σ,⋅)−π∥TVd(t)=\max_\sigma\|P^t(\sigma,\cdot)-\pi\|_{TV}d(t)=maxσ​∥Pt(σ,⋅)−π∥TV​, and tmix(ε)=min⁡{t:d(t)≤ε}t_{\mathrm{mix}}(\varepsilon)=\min\{t:d(t)\le\varepsilon\}tmix​(ε)=min{t:d(t)≤ε}. From Mission VII: an eigenvalue of a chain is a real λ\lambdaλ with Pf=λfPf=\lambda fPf=λf for some nonzero fff; λ2\lambda_2λ2​ is the largest eigenvalue ≠1\ne1=1, the spectral gap is γ=1−λ2\gamma=1-\lambda_2γ=1−λ2​, λ⋆\lambda_\starλ⋆​ the largest ∣λ∣|\lambda|∣λ∣ over eigenvalues ≠1\ne1=1, and the relaxation time is trel=(1−λ⋆)−1t_{\mathrm{rel}}=(1-\lambda_\star)^{-1}trel​=(1−λ⋆​)−1.

Formalization targets

Goal

Theorem 15.1, the high-temperature fast-mixing theorem: if Δtanh⁡β<1\Delta\tanh\beta<1Δtanhβ<1 then the Glauber dynamics on any graph satisfies

tmix(ε)  ≤  ⌈n (log⁡n+log⁡(1/ε))1−Δtanh⁡β⌉,t_{\mathrm{mix}}(\varepsilon)\;\le\;\Bigl\lceil\frac{n\,\bigl(\log n+\log(1/\varepsilon)\bigr)}{1-\Delta\tanh\beta}\Bigr\rceil,tmix​(ε)≤⌈1−Δtanhβn(logn+log(1/ε))​⌉,

together with its refinement for graphs with all degrees even, where the condition relaxes to (Δ/2)tanh⁡(2β)<1(\Delta/2)\tanh(2\beta)<1(Δ/2)tanh(2β)<1.

Milestones

  • Lemma 15.2 (the tanh lemma) — the elementary inequalities about x↦tanh⁡(β(x+1))−tanh⁡(β(x−1))x\mapsto\tanh(\beta(x+1))-\tanh(\beta(x-1))x↦tanh(β(x+1))−tanh(β(x−1)) (symmetry, monotonicity, the bounds by 2tanh⁡β2\tanh\beta2tanhβ and, at odd integers, by tanh⁡2β\tanh 2\betatanh2β) that drive the one-site coupling contraction.
  • Theorem 15.3 — the dynamical phase transition on the complete graph at β=α/n\beta=\alpha/nβ=α/n: (i) for α<1\alpha<1α<1, tmix(ε)≤n(log⁡n+log⁡(1/ε))/(1−α)t_{\mathrm{mix}}(\varepsilon)\le n(\log n+\log(1/\varepsilon))/(1-\alpha)tmix​(ε)≤n(logn+log(1/ε))/(1−α); (ii) for α>1\alpha>1α>1, there are r(α),C>0r(\alpha),C>0r(α),C>0 with tmix≥C ernt_{\mathrm{mix}}\ge C\,e^{r n}tmix​≥Cern — split here into a fast half and a slow half.
  • Theorem 15.4 — on the nnn-cycle, at every β>0\beta>0β>0, mixing is nlog⁡nn\log nnlogn up to explicit constants: (1+o(1)) nlog⁡n2cO(β)≤tmix(ε)≤(1+o(1)) nlog⁡ncO(β)(1+o(1))\,\frac{n\log n}{2c_O(\beta)}\le t_{\mathrm{mix}}(\varepsilon)\le(1+o(1))\,\frac{n\log n}{c_O(\beta)}(1+o(1))2cO​(β)nlogn​≤tmix​(ε)≤(1+o(1))cO​(β)nlogn​ with cO(β)=1−tanh⁡(2β)c_O(\beta)=1-\tanh(2\beta)cO​(β)=1−tanh(2β).
  • Theorem 15.6 (Kenyon–Mossel–Peres) — on the rooted bbb-ary tree of depth kkk with nkn_knk​ vertices, the relaxation time is polynomial at every temperature: trel≤nk cT(β,b)t_{\mathrm{rel}}\le n_k^{\,c_T(\beta,b)}trel​≤nkcT​(β,b)​ with cT(β,b)=2β(3b+1)/log⁡b+1c_T(\beta,b)=2\beta(3b+1)/\log b+1cT​(β,b)=2β(3b+1)/logb+1.
  • Proposition 15.7 — removing rrr edges changes the spectral gap of the Glauber dynamics by at most a factor e2β(Δ+2r)e^{2\beta(\Delta+2r)}e2β(Δ+2r).
  • Theorem 15.9 — the block-dynamics comparison: if blocks V1,…,VbV_1,\dots,V_bV1​,…,Vb​ cover the vertex set, each of size at most MMM, each vertex in at most M⋆M_\starM⋆​ blocks, then the spectral gap γB\gamma_BγB​ of the block dynamics and the gap γ\gammaγ of the single-site dynamics satisfy γB≤M2M⋆ (4e2βΔ)M+1 γ\gamma_B\le M^2M_\star\,(4e^{2\beta\Delta})^{M+1}\,\gammaγB​≤M2M⋆​(4e2βΔ)M+1γ.

Significance

The results. Theorem 15.1 is the standard fast-mixing criterion for Glauber dynamics, and the model application of the path-coupling technique of Mission VIII. Theorem 15.3 exhibits, in the cleanest possible setting, the correspondence between the static phase transition of the mean-field Ising model and the dynamical transition of its Glauber dynamics — the phenomenon at the heart of Markov-chain approaches to statistical physics. The tree bound of Kenyon–Mossel–Peres and the block-dynamics comparison are the standard tools for spatially structured spin systems; block dynamics in particular is the engine of recursive gap bounds on trees and lattices.

Formalizing them. Nothing about the Ising model, Gibbs distributions, or Glauber dynamics exists in Mathlib. The Gibbs-distribution layer (weights, partition functions, conditional single-site laws with their tanh⁡\tanhtanh closed forms) is foundational for any future formalization of statistical mechanics; the phase-transition theorem 15.3(ii) would be, to our knowledge, the first formalized instance of exponentially slow mixing driven by an energy barrier.

Difficulty

The high-temperature theorem is path coupling (Mission VIII) plus the tanh lemma: the one-site coupling of two adjacent configurations contracts the Hamming metric at rate 1−(1−Δtanh⁡β)/n1-\bigl(1-\Delta\tanh\beta\bigr)/n1−(1−Δtanhβ)/n, and every analytic input is in Lemma 15.2 — which is why that elementary lemma is a milestone of its own. The slow-mixing half of Theorem 15.3 runs through the bottleneck bound of Mission IV: the magnetization performs a one-dimensional walk in a double-well free-energy landscape, and the bottleneck at zero magnetization has exponentially small stationary mass — a large-deviations estimate carried out with binomial coefficients. The cycle's lower bound needs Wilson's method (Mission VII) with an explicit eigenfunction. The tree and block theorems are exercises in the comparison technology of Mission VII (Dirichlet forms, canonical paths through block updates); their constants are crude but the inductive structure is delicate. Everything sits on the subtlety that the state space {±1}V\{\pm1\}^V{±1}V has size 2n2^n2n, so all "polynomial" bounds are polynomial in nnn, not in the size of the state space.

Formalization scope

The Gibbs distribution is defined by explicit finite sums (weight over partition function, total division); no positivity side conditions are needed since the weights are exponentials. The Glauber dynamics is the generic single-site heat bath of Mission II applied to the Ising distribution, so the tanh⁡\tanhtanh closed form is a provable lemma, not a definition. Asymptotic statements (o(1)o(1)o(1), "for sufficiently large nnn") are rendered with explicit ∃N,∀n≥N\exists N,\forall n\ge N∃N,∀n≥N quantifiers and a free precision parameter δ\deltaδ; the phase-transition constants r(α),Cr(\alpha),Cr(α),C are existentially quantified. The tree is encoded as words of length ≤k\le k≤k over an alphabet of size bbb; the block dynamics re-samples a uniformly chosen block from the conditional Gibbs distribution, with the convention that a conditioning of zero mass yields a zero row (total division), which the theorems' hypotheses exclude on the support. The even-degree refinement of the goal is stated as a second conjunct with its own hypothesis.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • C. Kenyon, E. Mossel, Y. Peres, Glauber dynamics on trees and hyperbolic graphs, FOCS 2001. https://doi.org/10.1109/SFCS.2001.959934
  • D. A. Levin, M. J. Luczak, Y. Peres, Glauber dynamics for the mean-field Ising model: cut-off, critical power law, and metastability, Probab. Theory Related Fields 146 (2010). https://doi.org/10.1007/s00440-008-0189-z
  • F. Martinelli, Lectures on Glauber dynamics for discrete spin models, Lectures on Probability Theory and Statistics (Saint-Flour XXVII), Springer, 1999. https://doi.org/10.1007/978-3-540-48115-7_2
17 thms6 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times V: Shuffling CardsTextbook

Motivation

How many shuffles does a deck of cards need? The question created the modern theory of mixing times: Diaconis and Shahshahani's analysis of random transpositions (1981) and the Bayer–Diaconis "seven shuffles suffice" analysis of the riffle shuffle (1992) are its founding results. Chapters 8 and 16 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) treat the four standard shuffles: random transpositions (pick two cards, swap them), the riffle shuffle (cut and interleave, the Gilbert–Shannon–Reeds model), random adjacent transpositions, and the LLL-reversal chain of segment reversals — the last motivated by genome rearrangement, where a chromosome evolves by reversing segments and the mixing time measures evolutionary distance ("from shuffling cards to shuffling genes").

Setting

All four chains are random walks on a symmetric group; decks are encoded as in Mission III, an arrangement being a permutation with position 000 on top. Random transpositions have increment distribution μ(id)=1/n\mu(\mathrm{id})=1/nμ(id)=1/n, μ(transposition)=2/n2\mu(\text{transposition})=2/n^2μ(transposition)=2/n2. The lazy adjacent-transposition walk puts mass 1/21/21/2 on the identity and 1/[2(n−1)]1/[2(n-1)]1/[2(n−1)] on each (i i+1)(i\ i{+}1)(i i+1). One inverse riffle shuffle assigns each card an independent uniform bit and moves the cards labeled 000 to the top, preserving relative order; the (forward) riffle shuffle is its time reversal, given by transposing the inverse-shuffle matrix (the stationary distribution being uniform). The LLL-reversal chain on circular arrangements indexed by Zn\mathbb Z_nZn​ picks a position iii and a length k<Lk<Lk<L uniformly and reverses the segment [i,i+k][i,i+k][i,i+k].

Formalization targets

Goal

tmix  ≤  (2+o(1)) nlog⁡nt_{\mathrm{mix}}\;\le\;(2+o(1))\,n\log ntmix​≤(2+o(1))nlogn

for random transpositions on nnn cards (Corollary 8.10), formalized as: for every δ>0\delta>0δ>0 there is NNN with tmix≤(2+δ)nlog⁡nt_{\mathrm{mix}}\le(2+\delta)n\log ntmix​≤(2+δ)nlogn for all n≥Nn\ge Nn≥N.

Milestones

Proposition 8.11 (random transpositions lower bound tmix(ε)≥n−12log⁡((1−ε)n6)t_{\mathrm{mix}}(\varepsilon)\ge\frac{n-1}{2}\log\bigl(\frac{(1-\varepsilon)n}{6}\bigr)tmix​(ε)≥2n−1​log(6(1−ε)n​), via fixed points); Proposition 8.13 (riffle shuffle: tmix≤2log⁡2(4n/3)+1t_{\mathrm{mix}}\le 2\log_2(4n/3)+1tmix​≤2log2​(4n/3)+1); Proposition 8.14 (riffle shuffle: tmix(ε)≥(1−δ)log⁡2nt_{\mathrm{mix}}(\varepsilon)\ge(1-\delta)\log_2 ntmix​(ε)≥(1−δ)log2​n for large nnn, by the counting bound of Mission IV); the random adjacent transpositions upper bound tmix(ε)≤2n3log⁡2nt_{\mathrm{mix}}(\varepsilon)\le 2n^3\log_2 ntmix​(ε)≤2n3log2​n for large nnn (§16.1.2, display (16.4)) and lower bound tmix≥n2(n−1)/16t_{\mathrm{mix}}\ge n^2(n-1)/16tmix​≥n2(n−1)/16 (§16.1.3, by following a single card); and Proposition 16.2 (the LLL-reversal chain with L<n/2L<n/2L<n/2 satisfies d((1−ε)n2log⁡n)→1d\bigl((1-\varepsilon)\frac n2\log n\bigr)\to1d((1−ε)2n​logn)→1, via conserved adjacencies).

Significance

The results. Random transpositions at 12nlog⁡n\frac12 n \log n21​nlogn (the constant 222 here is not sharp; the sharp constant is part of the celebrated Diaconis–Shahshahani cutoff) and riffle at 32log⁡2n\frac32\log_2 n23​log2​n are the emblematic mixing results outside of spin systems; the riffle bound is the mathematical content of "seven shuffles suffice" for n=52n=52n=52. The adjacent-transposition walk at order n3log⁡nn^3\log nn3logn is the basic example where geometry (diameter (n2)\binom n2(2n​)) forces polynomial mixing. The LLL-reversal lower bound is the quantitative starting point of the biological application.

Formalizing them. Random walks on symmetric groups and their mixing are entirely absent from Mathlib; so are the combinatorial devices these proofs run on — the Broder stopping time, rising sequences and the Eulerian-number analysis of riffle shuffles, single-card projections, conserved adjacencies. The riffle shuffle formalization via bit strings and the stable-sort permutation Tuple.sort gives a clean combinatorial model reusable for the cutoff analysis of Mission XI.

Difficulty

Corollary 8.10's route is the Broder strong stationary time: mark cards under a card-and-position scheme and prove that, conditioned on the marked set and its positions, the marked cards are uniformly ordered — an exchangeability induction on top of Mission III's stopping-rule framework; then the coupon-collector-style tail with an extra log⁡n\log nlogn factor. Proposition 8.11 requires the fixed-point statistic: the expected number of untouched cards after ttt transpositions and a second-moment bound, fed into Proposition 7.8. The riffle upper bound runs through inverse shuffles: after ttt inverse shuffles the deck is a uniform stable sort of ttt-bit labels, and mixing reduces to the birthday problem for 2t2^t2t labels; formalizing "distinct labels imply uniform order" is the crux. The LLL-reversal lower bound needs a second-moment argument for the number of conserved adjacencies with the exact variance bookkeeping of the book. Throughout, the walk-on-group conventions (left vs right increments, forward vs inverse shuffle) are the classic source of silent errors; the formal statements pin them.

Formalization scope

All chains are explicit matrices on Equiv.Perm (Fin n) (or Equiv.Perm (ZMod n) for the circular LLL-reversal chain); increments act on the left, matching Mission I's group-walk convention. The riffle shuffle is defined as the transpose-reversal of the explicit inverse-riffle matrix — the two have equal distance to uniformity by Lemma 4.13 (Mission II), which a solver may use rather than re-derive. Asymptotic statements (o(1)o(1)o(1), "for sufficiently large nnn") are spelled out with explicit ∀δ ∃N\forall\delta\,\exists N∀δ∃N quantifiers; upper bounds carry a +1+1+1 where integer rounding requires it. The LLL-reversal family takes the length function L(n)L(n)L(n) as a hypothesis-carrying parameter with 1≤L(n)<n/21\le L(n)<n/21≤L(n)<n/2, and its lower bound is a genuine limit statement (Tendsto, distance to stationarity tending to 111).

Welcome contributions: exchangeability and projection lemmas for deck chains; Eulerian/rising-sequence counting; the single-card chain projection (reused for Mission XI's cutoff examples).

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • P. Diaconis, M. Shahshahani, Generating a random permutation with random transpositions, Z. Wahrsch. Verw. Gebiete 57 (1981). https://doi.org/10.1007/BF00535487
  • D. Bayer, P. Diaconis, Trailing the dovetail shuffle to its lair, Ann. Appl. Probab. 2 (1992). https://doi.org/10.1214/aoap/1177005705
  • R. Durrett, Shuffling chromosomes, J. Theoret. Probab. 16 (2003). https://doi.org/10.1023/A:1024940217006
19 thms6 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times XII: Continuous Time and Countable State SpacesTextbook

Motivation

The whole series so far lived in discrete time on finite state spaces. Chapters 20–21 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) lift both restrictions. Running the jumps of a chain at the arrivals of a rate-one Poisson clock produces the continuous-time chain, whose transition semigroup — the heat kernel — converges to stationarity for every irreducible chain, with no aperiodicity hypothesis: continuous time washes out periodicity. On countable state spaces, existence of a stationary distribution is no longer automatic, and the trichotomy of transience, null recurrence, and positive recurrence replaces it; the convergence theorem survives exactly on the positive-recurrent class. The chapter's crown jewel — and this mission's goal — is Pólya's theorem: simple random walk on the lattice Zd\mathbb Z^dZd is recurrent in dimensions one and two and transient in dimension three and higher. "A drunk man will find his way home, but a drunk bird may get lost forever."

Setting

Continuous time (Ch. 20). For a finite chain PPP, the heat kernel at time t≥0t\ge0t≥0 is defined by Poissonization,

Ht(x,y)=∑k=0∞e−ttkk! Pk(x,y),H_t(x,y)=\sum_{k=0}^{\infty}e^{-t}\frac{t^k}{k!}\,P^k(x,y),Ht​(x,y)=k=0∑∞​e−tk!tk​Pk(x,y),

the law at time ttt of a walk taking PPP-steps at Poisson arrival times (=et(P−I)=e^{t(P-I)}=et(P−I) as a matrix exponential). With ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣, the continuous distance and mixing time are dcont(t)=max⁡x∥Ht(x,⋅)−π∥TVd^{\mathrm{cont}}(t)=\max_x\|H_t(x,\cdot)-\pi\|_{TV}dcont(t)=maxx​∥Ht​(x,⋅)−π∥TV​ and tmixcont(ε)=inf⁡{t≥0:dcont(t)≤ε}t^{\mathrm{cont}}_{\mathrm{mix}}(\varepsilon)=\inf\{t\ge0:d^{\mathrm{cont}}(t)\le\varepsilon\}tmixcont​(ε)=inf{t≥0:dcont(t)≤ε}. The lazy version of a discrete chain is 12(I+P)\tfrac12(I+P)21​(I+P); from Mission VII, the spectral gap γ\gammaγ is 1−λ21-\lambda_21−λ2​ with λ2\lambda_2λ2​ the largest eigenvalue ≠1\ne1=1. The product chain on a product of nnn coordinate spaces picks a uniform coordinate and updates it by that coordinate's chain.

Countable state spaces (Ch. 21). A chain on a countable state space VVV is a function PPP with nonnegative entries and rows summing to one (as convergent series); ttt-step probabilities Pt(x,y)P^t(x,y)Pt(x,y) are defined recursively, and trajectory probabilities are countable sums of path weights. The first return time to xxx is τx+=min⁡{t≥1:Xt=x}\tau_x^+=\min\{t\ge1:X_t=x\}τx+​=min{t≥1:Xt​=x}; a state is recurrent when Px{τx+<∞}=1\mathbb P_x\{\tau_x^+<\infty\}=1Px​{τx+​<∞}=1 (tails tend to zero), positive recurrent when moreover Ex(τx+)<∞\mathbb E_x(\tau_x^+)<\inftyEx​(τx+​)<∞ (tails summable), and null recurrent when recurrent but not positive recurrent. A stationary distribution is a nonnegative π\piπ summing to one with πP=π\pi P=\piπP=π (as convergent series). Simple random walk on Zd\mathbb Z^dZd steps from xxx to one of its 2d2d2d nearest neighbours uniformly at random.

Formalization targets

Goal

Pólya's theorem (§21.2, Examples 21.8–21.9), the capstone of Chapters 20–21:

  1. for d≤2d\le2d≤2, simple random walk on Zd\mathbb Z^dZd is recurrent — it returns to its starting point with probability one;
  2. for d≥3d\ge3d≥3, it is transient — with positive probability it never returns.

Milestones

  • Theorem 20.1 — for any irreducible finite chain, aperiodic or not, the heat kernel converges: dcont(t)→0d^{\mathrm{cont}}(t)\to0dcont(t)→0 as t→∞t\to\inftyt→∞.
  • Theorem 20.3 — the two-way comparison between lazy discrete and continuous mixing: eventual ε\varepsilonε-mixing of the lazy chain at time kkk gives 2ε2\varepsilon2ε-mixing of the heat kernel at time kkk, and ε\varepsilonε-mixing of the heat kernel at time mmm gives 2ε2\varepsilon2ε-mixing of the lazy chain at time 4m4m4m.
  • Theorem 20.6 — the spectral bound for reversible chains: ∣Ht(x,y)−π(y)∣≤π(y)/π(x)  e−γt\bigl|H_t(x,y)-\pi(y)\bigr|\le\sqrt{\pi(y)/\pi(x)}\;e^{-\gamma t}​Ht​(x,y)−π(y)​≤π(y)/π(x)​e−γt.
  • Theorem 20.7 — mixing of continuous-time product chains: with all coordinate gaps ≥γ\ge\gamma≥γ and coordinate stationary masses bounded below, tmixcont(ε)≤(2γ)−1nlog⁡n+γ−1nlog⁡(1/(c0ε))t^{\mathrm{cont}}_{\mathrm{mix}}(\varepsilon)\le(2\gamma)^{-1}n\log n+\gamma^{-1}n\log(1/(c_0\varepsilon))tmixcont​(ε)≤(2γ)−1nlogn+γ−1nlog(1/(c0​ε)), with a matching n2γlog⁡n\tfrac{n}{2\gamma}\log n2γn​logn lower bound when the gaps are equal — the nlog⁡nn\log nnlogn product-chain phenomenon.
  • Proposition 21.3 — the recurrence dichotomy on countable spaces: a state is recurrent exactly when its Green's function ∑tPt(x,x)\sum_tP^t(x,x)∑t​Pt(x,x) diverges, and for an irreducible chain one recurrent state makes all states recurrent.
  • Theorem 21.12 — an irreducible countable chain is positive recurrent if and only if it has a stationary distribution.
  • Lemma 21.13 (Kac) — for an irreducible chain with stationary distribution π\piπ and any nonempty set SSS: ∑x∈Sπ(x) Ex(τS+)=1\sum_{x\in S}\pi(x)\,\mathbb E_x(\tau_S^+)=1∑x∈S​π(x)Ex​(τS+​)=1; in particular Ex(τx+)=1/π(x)\mathbb E_x(\tau_x^+)=1/\pi(x)Ex​(τx+​)=1/π(x).
  • Theorem 21.14 — the convergence theorem on countable spaces: an irreducible, aperiodic, positive recurrent chain has a unique stationary distribution π\piπ, and ∥Pt(x,⋅)−π∥TV→0\|P^t(x,\cdot)-\pi\|_{TV}\to0∥Pt(x,⋅)−π∥TV​→0 from every start.
  • Theorem 21.17 — in the null recurrent case, Pt(x,y)→0P^t(x,y)\to0Pt(x,y)→0 for all pairs of states: no stationary profile is approached.

Significance

The results. Theorem 20.1 explains why laziness and aperiodicity pervade the discrete theory — periodicity is an artifact of the discrete clock. The product-chain theorem 20.7 is the cleanest instance of the nlog⁡nn\log nnlogn paradigm (independent coordinates mix in relaxation time ×log⁡(number of coordinates)\times\log(\text{number of coordinates})×log(number of coordinates)) and the template for the hypercube cutoff of Mission XI. Chapter 21's trichotomy is the backbone of applied Markov chain theory — queueing, branching, renewal — and Kac's lemma with the convergence theorem 21.14 is the standard equipment of any probability course. Pólya's theorem is one of the most celebrated results of twentieth-century probability, the birth of the random-walk-in-dimension-ddd paradigm.

Formalizing them. Mathlib has no continuous-time Markov chains, no Poissonization, and no recurrence/transience theory (its PMF random walks stop far short). The countable-state layer built here — summable stationary equations, tail-sum return times, the recurrence dichotomy — is the missing infrastructure for formalized applied probability; Pólya's theorem is a famous target in its own right, and the d≥3d\ge3d≥3 half has never been formalized in any assistant to our knowledge.

Difficulty

The heat kernel is an infinite series of matrices: convergence (dominated by the Poisson weights), the semigroup property, and the interchange of the series with matrix products and limits must all be established by hand over tsum. Theorem 20.1 avoids aperiodicity by the number-theoretic fact that the Poisson distribution smears over residue classes — formally, the continuous chain is automatically aperiodic because Ht(x,x)>0H_t(x,x)>0Ht​(x,x)>0 for t>0t>0t>0. The product-chain bounds need the ℓ2\ell^2ℓ2 machinery of Mission VII applied coordinatewise and a careful union bound; the lower bound is a Gaussian-free second-moment argument. On the countable side, everything is series bookkeeping in the absence of Fintype: the recurrence dichotomy is a generating-function (renewal) identity G(x,x)=1/Px{τx+=∞}G(x,x)=1/\mathbb P_x\{\tau_x^+=\infty\}G(x,x)=1/Px​{τx+​=∞} handled through partial sums; Kac's lemma is a mass-transport double-count over trajectories; and Theorem 21.14 needs an aperiodicity-based coupling on a countable product space, the technical summit of the mission. Pólya's theorem itself combines a local central-limit-type estimate for the return probabilities (P2t(0,0)≍t−d/2P^{2t}(0,0)\asymp t^{-d/2}P2t(0,0)≍t−d/2, obtained by Stirling in d=1,2d=1,2d=1,2 and by a comparison argument in higher dimension) with the dichotomy of Proposition 21.3.

Formalization scope

Chapter 20 lives on finite state spaces: the heat kernel is a tsum over kkk of Poisson weights times matrix powers (summability is provable, not assumed), continuous distance is a supremum over states, and the continuous mixing time is an sInf over nonnegative reals (junk 000 if the set were empty — excluded under the theorems' hypotheses). Discrete-vs-continuous comparison (Theorem 20.3) is stated with eventual thresholds (∃K,∀k≥K\exists K,\forall k\ge K∃K,∀k≥K), matching the book's asymptotic phrasing. Chapter 21 lives on a Countable type: stochasticity and stationarity are HasSum statements, ttt-step powers are defined recursively with tsum convolutions, return-time tails are countable sums of path weights over finite horizons, and recurrence/positive recurrence are the tail-limit and tail-summability conditions above — measure theory never enters. Pólya's theorem is stated for the origin of Zd\mathbb Z^dZd with the walk defined by nearest-neighbour steps; the d≤2d\le2d≤2 and d≥3d\ge3d≥3 halves are separate conjuncts of one statement.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • G. Pólya, Über eine Aufgabe der Wahrscheinlichkeitsrechnung betreffend die Irrfahrt im Straßennetz, Math. Ann. 84 (1921). https://doi.org/10.1007/BF01458701
  • W. Feller, An Introduction to Probability Theory and Its Applications, Vol. I, 3rd ed., Wiley, 1968.
  • D. Aldous, J. A. Fill, Reversible Markov Chains and Random Walks on Graphs, 2002. https://www.stat.berkeley.edu/~aldous/RWG/book.html
17 thms5 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times VII: Eigenvalues and the Cheeger InequalityTextbook

Motivation

How fast does a Markov chain forget its starting point? For a reversible chain the complete answer is coded in the eigenvalues of its transition matrix: the largest eigenvalue is always 111, and the size of the gap between 111 and the rest of the spectrum is the chain's fundamental time constant — a large gap means fast mixing, a small gap means slow mixing. Chapters 12–13 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) develop this spectral theory and culminate in the discrete Cheeger inequality of Jerrum–Sinclair and Lawler–Sokal, which says that the spectral gap γ\gammaγ (an analytic quantity, defined below) and the bottleneck constant Φ⋆\Phi_\starΦ⋆​ (a geometric quantity from Mission IV, also recalled below) control each other:

Φ⋆22  ≤  γ  ≤  2 Φ⋆.\frac{\Phi_\star^2}{2}\;\le\;\gamma\;\le\;2\,\Phi_\star.2Φ⋆2​​≤γ≤2Φ⋆​.

A chain mixes rapidly exactly when its state space has no bottleneck. This inequality is the backbone of the Markov-chain approach to approximate counting and of spectral graph theory at large; alongside it the chapters provide Wilson's method — the sharpest general technique for mixing-time lower bounds — and the comparison machinery that transfers spectral estimates between chains.

Setting

All chains live on a finite state space VVV. A chain with transition matrix PPP and stationary distribution π\piπ is reversible when the detailed balance equations π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y)=\pi(y)P(y,x)π(x)P(x,y)=π(y)P(y,x) hold; reversibility is the standing assumption of both chapters. The yardsticks of the series are the total variation distance ∥μ−ν∥TV=max⁡A⊆V∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_{A\subseteq V}|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA⊆V​∣μ(A)−ν(A)∣, the worst-case distance to stationarity d(t)=max⁡x∥Pt(x,⋅)−π∥TVd(t)=\max_x\|P^t(x,\cdot)-\pi\|_{TV}d(t)=maxx​∥Pt(x,⋅)−π∥TV​, and the mixing time tmix(ε)=min⁡{t:d(t)≤ε}t_{\mathrm{mix}}(\varepsilon)=\min\{t: d(t)\le\varepsilon\}tmix​(ε)=min{t:d(t)≤ε}, with tmix=tmix(1/4)t_{\mathrm{mix}}=t_{\mathrm{mix}}(1/4)tmix​=tmix​(1/4); we write πmin⁡=min⁡xπ(x)\pi_{\min}=\min_x\pi(x)πmin​=minx​π(x).

The spectral vocabulary: an eigenfunction of PPP is a nonzero f:V→Rf:V\to\mathbb Rf:V→R with Pf=λfPf=\lambda fPf=λf, where (Pf)(x)=∑yP(x,y)f(y)(Pf)(x)=\sum_yP(x,y)f(y)(Pf)(x)=∑y​P(x,y)f(y); the number λ\lambdaλ is then an eigenvalue. Out of the spectrum one forms

  • λ2\lambda_2λ2​, the largest eigenvalue different from 111, and the spectral gap γ=1−λ2\gamma=1-\lambda_2γ=1−λ2​;
  • λ⋆\lambda_\starλ⋆​, the largest absolute value of an eigenvalue different from 111, the absolute gap γ⋆=1−λ⋆\gamma_\star=1-\lambda_\starγ⋆​=1−λ⋆​, and the relaxation time trel=1/γ⋆t_{\mathrm{rel}}=1/\gamma_\startrel​=1/γ⋆​.

Functions on VVV carry the weighted inner product ⟨f,g⟩π=∑xf(x)g(x)π(x)\langle f,g\rangle_\pi=\sum_xf(x)g(x)\pi(x)⟨f,g⟩π​=∑x​f(x)g(x)π(x) — the geometry, denoted ℓ2(π)\ell^2(\pi)ℓ2(π), in which a reversible PPP is self-adjoint — and the Dirichlet form

E(f)=12∑x,y[f(x)−f(y)]2 π(x)P(x,y),\mathcal E(f)=\tfrac12\sum_{x,y}\bigl[f(x)-f(y)\bigr]^2\,\pi(x)P(x,y),E(f)=21​x,y∑​[f(x)−f(y)]2π(x)P(x,y),

the average squared variation of fff along the chain's transitions. Finally, from Mission IV: the bottleneck ratio of a set SSS of states is Φ(S)=∑x∈S, y∉Sπ(x)P(x,y) / π(S)\Phi(S)=\sum_{x\in S,\,y\notin S}\pi(x)P(x,y)\,/\,\pi(S)Φ(S)=∑x∈S,y∈/S​π(x)P(x,y)/π(S), the conditional probability at stationarity of escaping SSS in one step, and the bottleneck constant is Φ⋆=min⁡{Φ(S):∅≠S, π(S)≤12}\Phi_\star=\min\{\Phi(S):\varnothing\ne S,\ \pi(S)\le\tfrac12\}Φ⋆​=min{Φ(S):∅=S, π(S)≤21​}.

Formalization targets

Goal

Theorem 13.14, the discrete Cheeger inequality: for a reversible irreducible chain,

Φ⋆22  ≤  γ  ≤  2 Φ⋆.\frac{\Phi_\star^2}{2}\;\le\;\gamma\;\le\;2\,\Phi_\star.2Φ⋆2​​≤γ≤2Φ⋆​.

Milestones

  • Lemma 12.1 — every eigenvalue satisfies ∣λ∣≤1|\lambda|\le1∣λ∣≤1; for an irreducible chain the eigenfunctions of the eigenvalue 111 are the constant functions; an irreducible aperiodic chain does not have −1-1−1 as an eigenvalue.
  • Lemma 12.2 — the spectral representation: a reversible chain admits eigenfunctions f1,…,f∣V∣f_1,\dots,f_{|V|}f1​,…,f∣V∣​, orthonormal with respect to ⟨⋅,⋅⟩π\langle\cdot,\cdot\rangle_\pi⟨⋅,⋅⟩π​, with eigenvalues λj\lambda_jλj​, such that Pt(x,y)/π(y)=∑jfj(x)fj(y)λjtP^t(x,y)/\pi(y)=\sum_jf_j(x)f_j(y)\lambda_j^tPt(x,y)/π(y)=∑j​fj​(x)fj​(y)λjt​ for all t,x,yt,x,yt,x,y.
  • Theorem 12.3 — mixing is at most relaxation times a log factor: tmix(ε)≤log⁡(1/(ε πmin⁡)) trel+1t_{\mathrm{mix}}(\varepsilon)\le\log\bigl(1/(\varepsilon\,\pi_{\min})\bigr)\,t_{\mathrm{rel}}+1tmix​(ε)≤log(1/(επmin​))trel​+1.
  • Theorem 12.4 — mixing is at least the relaxation time: tmix(ε)≥(trel−1)log⁡(1/(2ε))t_{\mathrm{mix}}(\varepsilon)\ge(t_{\mathrm{rel}}-1)\log\bigl(1/(2\varepsilon)\bigr)tmix​(ε)≥(trel​−1)log(1/(2ε)).
  • §12.3.1 — the model computation: simple random walk on the nnn-cycle has the numbers cos⁡(2πj/n)\cos(2\pi j/n)cos(2πj/n), j=0,…,n−1j=0,\dots,n-1j=0,…,n−1, among its eigenvalues.
  • Theorem 13.1 — if every pair of states admits a coupling of the two one-step distributions that contracts some metric ρ\rhoρ on VVV by a factor θ\thetaθ in expectation, then λ⋆≤θ\lambda_\star\le\thetaλ⋆​≤θ.
  • Theorem 13.5, Wilson's method — an eigenfunction Φ\PhiΦ with eigenvalue λ∈(12,1)\lambda\in(\tfrac12,1)λ∈(21​,1) whose one-step increments have second moment at most RRR yields the explicit lower bound tmix(ε)≥[2log⁡(1/λ)]−1[log⁡((1−λ)Φ(x)2/(2R))+log⁡((1−ε)/ε)]t_{\mathrm{mix}}(\varepsilon)\ge\bigl[2\log(1/\lambda)\bigr]^{-1}\bigl[\log\bigl((1-\lambda)\Phi(x)^2/(2R)\bigr)+\log\bigl((1-\varepsilon)/\varepsilon\bigr)\bigr]tmix​(ε)≥[2log(1/λ)]−1[log((1−λ)Φ(x)2/(2R))+log((1−ε)/ε)].
  • Lemmas 13.11–13.12 — the variational characterization: γ\gammaγ is the minimum of E(f)\mathcal E(f)E(f) over functions with mean zero (∑xf(x)π(x)=0\sum_xf(x)\pi(x)=0∑x​f(x)π(x)=0) and unit norm (⟨f,f⟩π=1\langle f,f\rangle_\pi=1⟨f,f⟩π​=1), and the minimum is attained.
  • Lemma 13.22 — the comparison method: if a second reversible chain P~\tilde PP~ on the same space, with stationary distribution π~\tilde\piπ~, Dirichlet form E~\tilde{\mathcal E}E~, and gap γ~\tilde\gammaγ~​, satisfies E~(f)≤B E(f)\tilde{\mathcal E}(f)\le B\,\mathcal E(f)E~(f)≤BE(f) for every fff, then γ~≤[max⁡xπ(x)/π~(x)]B γ\tilde\gamma\le\bigl[\max_x\pi(x)/\tilde\pi(x)\bigr]B\,\gammaγ~​≤[maxx​π(x)/π~(x)]Bγ.

Significance

The results. Theorems 12.3–12.4 sandwich the mixing time between trelt_{\mathrm{rel}}trel​ and trellog⁡(1/πmin⁡)t_{\mathrm{rel}}\log(1/\pi_{\min})trel​log(1/πmin​) — the fundamental equivalence of spectral and mixing estimates for reversible chains, prerequisite for the cutoff criterion of Mission XI. The Cheeger inequality converts isoperimetry into spectral bounds; it is the mathematical core of the Jerrum–Sinclair program of polynomial-time approximate counting, and its graph version underlies expander theory. Wilson's method produced the sharp lower bounds for adjacent transpositions and hypercube-type chains; the comparison lemma is the engine behind the shuffle bounds cited in Mission V (§16.1).

Formalizing them. Mathlib has the spectral theorem for symmetric matrices but nothing connecting spectra to Markov chains: no spectral gap, no relaxation time, no Dirichlet forms, no Cheeger inequality in any form. A formalized discrete Cheeger inequality would be a landmark reusable well outside this series (spectral graph theory, expanders); the eigenvalue and Rayleigh-quotient layer built here is what Missions IX (tree relaxation, block dynamics) and XI (cutoff criterion) consume.

Difficulty

Everything routes through one change of basis: conjugating PPP by the diagonal matrix with entries π(x)\sqrt{\pi(x)}π(x)​ produces a matrix that is symmetric precisely because the chain is reversible, so Mathlib's spectral theorem applies — but transporting the resulting eigenbasis back to ℓ2(π)\ell^2(\pi)ℓ2(π), keeping track of orthonormality with respect to the weighted inner product, is a genuine formal-linear-algebra project; nothing about it is deep, all of it is fussy. The definitions of λ2\lambda_2λ2​ and λ⋆\lambda_\starλ⋆​ as suprema over the set of non-unit eigenvalues (finite, and nonempty once ∣V∣≥2|V|\ge2∣V∣≥2) must be reconciled with the eigenbasis enumeration before any variational argument runs. The upper half of Cheeger is direct from the variational characterization — test it on the indicator function of a bottleneck set SSS, recentred to have mean zero; the lower half is the hard half: the standard proof takes an optimal fff, decomposes it over its level sets {f>c}\{f>c\}{f>c}, and applies Cauchy–Schwarz twice, and formalizing that level-set sweep is the main effort of the mission. Wilson's method needs a supermartingale-style iteration of the eigenfunction estimate; its constants are exact, so the inequalities cannot be rounded.

Formalization scope

Eigenvalues are defined by real eigenvectors (∃f≠0, Pf=λf\exists f\ne0,\ Pf=\lambda f∃f=0, Pf=λf); for reversible chains this captures the whole spectrum, and all statements assume reversibility wherever the book does. λ2\lambda_2λ2​ and λ⋆\lambda_\starλ⋆​ are suprema of explicit sets of reals; on a one-point space these sets are empty and the supremum takes a junk value, so the affected statements carry the explicit hypothesis ∣V∣≥2|V|\ge2∣V∣≥2, matching the book's implicit assumption of a non-degenerate chain. trel=(1−λ⋆)−1t_{\mathrm{rel}}=(1-\lambda_\star)^{-1}trel​=(1−λ⋆​)−1 with total inverse. Theorem 12.3 carries an explicit +1+1+1 absorbing the rounding of a real-valued bound to an integer time. The cycle eigenvalue statement exhibits eigenvalues (existence of eigenfunctions); completeness of that list is not asserted. The variational characterization asserts both the minimization identity and its attainment, so it can be used in either direction.

Welcome contributions: the symmetrization API (conjugation by diag(π)\mathrm{diag}(\sqrt{\pi})diag(π​)), Rayleigh-quotient lemmas, level-set (layer-cake) infrastructure — all reused by Missions IX and XI.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • M. Jerrum, A. Sinclair, Approximating the permanent, SIAM J. Comput. 18 (1989). https://doi.org/10.1137/0218077
  • G. F. Lawler, A. D. Sokal, Bounds on the L² spectrum for Markov chains and Markov processes, Trans. Amer. Math. Soc. 309 (1988). https://doi.org/10.1090/S0002-9947-1988-0930082-9
  • D. B. Wilson, Mixing times of lozenge tiling and card shuffling Markov chains, Ann. Appl. Probab. 14 (2004). https://doi.org/10.1214/aoap/1042765669
24 thms5 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times IV: Lower Bounds on Mixing TimesTextbook

Motivation

Missions II–III produce upper bounds on mixing times. Whether such a bound is sharp is a different question: an O(n2)O(n^2)O(n2) bound on a chain that actually mixes in nlog⁡nn\log nnlogn steps hides the truth. Chapter 7 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) develops the standard toolkit of lower bounds: the counting and diameter bounds (a chain cannot spread faster than its transition graph allows), the bottleneck ratio (a chain cannot mix faster than it crosses its worst cut), and distinguishing statistics (a chain is far from stationarity as long as some statistic separates Pt(x,⋅)P^t(x,\cdot)Pt(x,⋅) from π\piπ by several standard deviations). The bottleneck bound — closely related to the conductance of the chain and, via Mission VII, to the Cheeger inequality — is the single most important obstruction result in the subject: it is how slow mixing (torpid mixing of Ising at low temperature, in Mission IX) is proved.

Setting

For a chain PPP with stationary distribution π\piπ, the edge measure is Q(x,y)=π(x)P(x,y)Q(x,y)=\pi(x)P(x,y)Q(x,y)=π(x)P(x,y), the bottleneck ratio of a set SSS of states is

Φ(S)=Q(S,Sc)π(S),Q(S,Sc)=∑x∈S, y∉Sπ(x)P(x,y),\Phi(S)=\frac{Q(S,S^{c})}{\pi(S)},\qquad Q(S,S^c)=\sum_{x\in S,\,y\notin S}\pi(x)P(x,y),Φ(S)=π(S)Q(S,Sc)​,Q(S,Sc)=x∈S,y∈/S∑​π(x)P(x,y),

and the bottleneck ratio of the chain is Φ⋆=min⁡{Φ(S):π(S)≤12, S≠∅}\Phi_\star=\min\{\Phi(S):\pi(S)\le\tfrac12,\ S\neq\varnothing\}Φ⋆​=min{Φ(S):π(S)≤21​, S=∅}. The maximal one-step out-degree is Δ=max⁡x∣{y:P(x,y)>0}∣\Delta=\max_x|\{y:P(x,y)>0\}|Δ=maxx​∣{y:P(x,y)>0}∣; the diameter is measured in the graph joining x≠yx\ne yx=y when P(x,y)+P(y,x)>0P(x,y)+P(y,x)>0P(x,y)+P(y,x)>0. For a statistic f:V→Rf:V\to\mathbb Rf:V→R and distribution μ\muμ, Eμ(f)\mathbb E_\mu(f)Eμ​(f) and Var⁡μ(f)\operatorname{Var}_\mu(f)Varμ​(f) are the finite-sum expectation and variance, and μf−1\mu f^{-1}μf−1 denotes the pushforward of μ\muμ under fff.

Formalization targets

Goal

tmix  ≥  14Φ⋆.t_{\mathrm{mix}}\;\ge\;\frac{1}{4\Phi_\star}.tmix​≥4Φ⋆​1​.

This is Theorem 7.3, the bottleneck-ratio lower bound, the chapter's central theorem.

Milestones

The counting bound tmix(ε)≥log⁡(∣V∣(1−ε))/log⁡Δt_{\mathrm{mix}}(\varepsilon)\ge\log\bigl(|V|(1-\varepsilon)\bigr)/\log\Deltatmix​(ε)≥log(∣V∣(1−ε))/logΔ for chains with uniform stationary distribution (§7.1.1, display (7.2)); the diameter bound: any two states satisfy dist(x0,y0)≤2 tmix(ε)\mathrm{dist}(x_0,y_0)\le 2\,t_{\mathrm{mix}}(\varepsilon)dist(x0​,y0​)≤2tmix​(ε) for ε<1/2\varepsilon<1/2ε<1/2 (§7.1.2, display (7.3)); Proposition 7.8 (a statistic separating means by rrr standard deviations forces ∥μ−ν∥TV≥1−4/(4+r2)\|\mu-\nu\|_{\mathrm{TV}}\ge1-4/(4+r^2)∥μ−ν∥TV​≥1−4/(4+r2)); Lemma 7.9 (projection under a statistic does not increase TV distance); Proposition 7.13 (the lazy hypercube walk satisfies d(12nlog⁡n−αn)≥1−8e1−2αd(\tfrac12 n\log n-\alpha n)\ge 1-8e^{1-2\alpha}d(21​nlogn−αn)≥1−8e1−2α); and Proposition 7.14 (the top-to-random shuffle needs nlog⁡n−O(n)n\log n-O(n)nlogn−O(n) shuffles, matching the upper bound of Mission III).

Significance

The results. Together with Mission III this pins the top-to-random shuffle at nlog⁡n±O(n)n\log n\pm O(n)nlogn±O(n) — the first sharp mixing result of the series, and the prototype of the cutoff phenomenon formalized in Mission XI. Proposition 7.13 similarly matches the hypercube upper bound and feeds the cutoff analysis. The bottleneck bound is used in Mission IX to prove exponentially slow mixing of the mean-field Ising model at low temperature, and its two-sided refinement is the Cheeger inequality of Mission VII.

Formalizing them. Mathlib has no notion of conductance/bottleneck ratio of a chain, no distinguishing-statistic method, and no mixing-time lower bound of any kind. The pushforward and variance infrastructure over finitely supported distributions is elementary but new, and reusable wherever second-moment methods appear (Wilson's method in Mission VII).

Difficulty

The bottleneck theorem's proof is short but exact: it hinges on the identity π(S)∥μSP−μS∥TV=Q(S,Sc)\pi(S)\|\mu_S P-\mu_S\|_{\mathrm{TV}}=Q(S,S^c)π(S)∥μS​P−μS​∥TV​=Q(S,Sc) for π\piπ conditioned on SSS, followed by a telescoping estimate of ∥μSPt−μS∥TV\|\mu_S P^t-\mu_S\|_{\mathrm{TV}}∥μS​Pt−μS​∥TV​; the formal cost is manipulating conditioned measures and one-sided TV sums (Remark 4.3 from Mission II). For Proposition 7.8, the second-moment argument runs through Chebyshev on both distributions plus optimization of a threshold — the constants 4/(4+r2)4/(4+r^2)4/(4+r2) are exact, not asymptotic, so the formal inequalities must be done carefully. Proposition 7.13 requires the binomial mean/variance computation for Hamming weight under both π\piπ and Pt(1,⋅)P^t(\mathbf 1,\cdot)Pt(1,⋅), including the negative-correlation bound for unrefreshed coordinates. The naive route to a lower bound — "the chain has not left a small set, so it is far from π\piπ" — is precisely the counting bound and is too weak for the sharp results; the statistics method is what closes the gap.

Formalization scope

Φ⋆\Phi_\starΦ⋆​ is an infimum over the subtype of nonempty sets with π(S)≤12\pi(S)\le\tfrac12π(S)≤21​; on a one-point space this subtype is empty and the infimum takes a junk value, making the goal trivially true there (the bound carries content only for ∣V∣≥2|V|\ge2∣V∣≥2, as in the book). The counting bound divides by log⁡Δ\log\DeltalogΔ with total division (Δ≤1\Delta\le1Δ≤1 gives a trivially true statement). The diameter bound is stated for arbitrary pairs of states through SimpleGraph.dist of the transition graph, which subsumes the book's diameter formulation. Propositions 7.13 and 7.14 are stated for all integer times t≤12nlog⁡n−αnt\le\frac12 n\log n-\alpha nt≤21​nlogn−αn (resp. t≤nlog⁡n−αnt\le n\log n-\alpha nt≤nlogn−αn), using monotonicity of ddd instead of evaluating at a real-valued time — this avoids floor artifacts while keeping the book's content. Proposition 7.14 quantifies "α\alphaα large, then nnn large" exactly as the book's iterated limit.

Welcome contributions: monotonicity of d(t)d(t)d(t) in ttt; conditioned-measure lemmas; variance API for distExp/distVar.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • M. Jerrum, A. Sinclair, Approximating the permanent, SIAM J. Comput. 18 (1989). https://doi.org/10.1137/0218077
  • D. Aldous, P. Diaconis, Shuffling cards and stopping times, Amer. Math. Monthly 93 (1986). https://doi.org/10.1080/00029890.1986.11971821
12 thms5 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times III: Coupling and Strong Stationary TimesTextbook

Motivation

The Convergence Theorem of Mission II says an irreducible aperiodic chain mixes geometrically, but with constants coming from a crude Doeblin decomposition — useless for actual chains, whose state spaces are exponentially large. Chapters 5–6 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) develop the two classic probabilistic techniques that give useful upper bounds: coupling — run two copies of the chain jointly so that they meet quickly, and read a TV bound off the meeting time — and strong stationary times — random times at which the chain is exactly stationary, independent of the time. The flagship application is the top-to-random shuffle: repeatedly take the top card of a deck of nnn cards and reinsert it at a uniform position; the deck is well mixed after nlog⁡n+cnn\log n + cnnlogn+cn shuffles, with error at most e−ce^{-c}e−c.

Setting

A Markovian coupling of a chain PPP (with the stay-together convention (5.2)) is a chain QQQ on pairs whose coordinate marginals are both PPP and which moves diagonal states to diagonal states. The coupling time τcouple\tau_{\mathrm{couple}}τcouple​ is the hitting time of the diagonal; its tails are expressed with the trajectory calculus of Mission I.

A randomized stopping time is presented by its stopping rule: for each time ttt and trajectory prefix ω\omegaω, a number st(ω)∈[0,1]s_t(\omega)\in[0,1]st​(ω)∈[0,1], the conditional probability of stopping at ttt given the trajectory so far and no earlier stop. A strong stationary time for the chain started at xxx is an almost surely finite such τ\tauτ with

Px{τ=t, Xτ=y}=Px{τ=t} π(y),\mathbb P_x\{\tau=t,\ X_\tau=y\}=\mathbb P_x\{\tau=t\}\,\pi(y),Px​{τ=t, Xτ​=y}=Px​{τ=t}π(y),

i.e. Xτ∼πX_\tau\sim\piXτ​∼π independent of τ\tauτ. The separation distance is sx(t)=max⁡y [1−Pt(x,y)/π(y)]s_x(t)=\max_y\,[1-P^t(x,y)/\pi(y)]sx​(t)=maxy​[1−Pt(x,y)/π(y)].

The mission also fixes the concrete chains it bounds: the lazy walk on the discrete torus Znd\mathbb Z_n^dZnd​, the Metropolis chain on proper qqq-colorings of a graph, the Glauber dynamics of the hardcore model with fugacity λ\lambdaλ, and the top-to-random shuffle on decks of nnn cards (states are arrangements, i.e. permutations; position 000 is the top).

Formalization targets

Goal

Let d(t)=max⁡x∥Pt(x,⋅)−π∥TVd(t)= \max_x\|P^t (x,\cdot)−\pi\|_{TV}d(t)=maxx​∥Pt(x,⋅)−π∥TV​,

d(⌈nlog⁡n+αn⌉)  ≤  e−α(α>0)d\bigl(\lceil n\log n+\alpha n\rceil\bigr)\;\le\;e^{-\alpha}\qquad(\alpha>0)d(⌈nlogn+αn⌉)≤e−α(α>0)

for the top-to-random shuffle on n≥2n\ge2n≥2 cards — display (6.16) of the book, the chapter's flagship bound, proved by combining the strong stationary time τtop\tau_{\mathrm{top}}τtop​ with the coupon collector tail of Mission I.

Milestones

Theorem 5.2 and Corollary 5.3 (the coupling bound: ∥Pt(x,⋅)−Pt(y,⋅)∥TV≤Px,y{τcouple>t}\|P^t(x,\cdot)-P^t(y,\cdot)\|_{\mathrm{TV}}\le\mathbb P_{x,y}\{\tau_{\mathrm{couple}}>t\}∥Pt(x,⋅)−Pt(y,⋅)∥TV​≤Px,y​{τcouple​>t}, hence d(t)≤max⁡x,yPx,y{τcouple>t}d(t)\le\max_{x,y}\mathbb P_{x,y}\{\tau_{\mathrm{couple}}>t\}d(t)≤maxx,y​Px,y​{τcouple​>t}); Theorem 5.5 (tmix(ε)≤c(d) n2log⁡2ε−1t_{\mathrm{mix}}(\varepsilon)\le c(d)\,n^2\log_2\varepsilon^{-1}tmix​(ε)≤c(d)n2log2​ε−1 for the lazy torus walk); Theorem 5.7 (Metropolis colorings, q>3Δq>3\Deltaq>3Δ: mixing in O(nlog⁡n)O(n\log n)O(nlogn)); Theorem 5.8 (hardcore Glauber, λ<(Δ−1)−1\lambda<(\Delta-1)^{-1}λ<(Δ−1)−1: mixing in O(nlog⁡n)O(n\log n)O(nlogn)); Proposition 6.1 with Example 6.7 (τtop\tau_{\mathrm{top}}τtop​ is a strong stationary time); Lemma 6.11 (sx(t)≤Px{τ>t}s_x(t)\le\mathbb P_x\{\tau>t\}sx​(t)≤Px​{τ>t}); Lemma 6.13 (∥Pt(x,⋅)−π∥TV≤sx(t)\|P^t(x,\cdot)-\pi\|_{\mathrm{TV}}\le s_x(t)∥Pt(x,⋅)−π∥TV​≤sx​(t)); Proposition 6.10 (d(t)≤max⁡xPx{τ>t}d(t)\le\max_x\mathbb P_x\{\tau>t\}d(t)≤maxx​Px​{τ>t}).

Significance

The results. The coupling bound is the single most used upper-bound technique in the subject: Missions VIII (path coupling), IX (Ising) and XI (cutoff examples) all instantiate it. Strong stationary times and separation distance return in Mission XI (separation cutoff) and underlie perfect sampling in Mission XIII. The three concrete bounds (torus, colorings, hardcore) are the standard first applications and give the first polynomial mixing results of the series; the colorings and hardcore chains are the objects of intense ongoing research on sampling thresholds.

Formalizing them. Nothing here exists in Mathlib. The novel infrastructure is the stopping-rule formalization of randomized stopping times over trajectory prefixes — measure-theory-free, but expressive enough for the strong stationarity identity — and the Markovian-coupling predicate on pair chains. Both are reused later in the series (Matthews method, cutoff, CFTP).

Difficulty

The coupling bound itself is short once Proposition 4.7 (Mission II) is available; the work is in the applications. For the torus, the coordinatewise coupling requires assembling ddd one-dimensional couplings and bounding the coupling time by a sum of one-dimensional meeting times — the formal bookkeeping of "couple coordinate by coordinate" is the real cost, and the constant c(d)c(d)c(d) absorbs it. For Theorem 5.7 and 5.8 the argument is a grand coupling over all colorings/configurations simultaneously; the formal statements quantify only over the resulting bound, but a solver must build the coupling. For Proposition 6.1, the crux is the induction "given kkk cards under the original bottom card, all k!k!k! orders are equally likely" — an exchangeability argument that must be carried through the stopping-rule encoding. Lemma 6.11 is where the definition of strong stationarity does its work; the naive attempt to prove Proposition 6.10 directly from the coupling characterization fails, which is exactly why separation distance is introduced.

Formalization scope

Couplings of chains are transition matrices on V×VV\times VV×V with marginal conditions stated row by row; the stay-together convention is part of the predicate, matching (5.2). Stopping rules take the trajectory prefix (which includes the starting state), so times "depending on the starting position" are covered; strong stationarity packages the stopping rule bounds, almost-sure finiteness (∑tPx{τ=t}=1\sum_t\mathbb P_x\{\tau=t\}=1∑t​Px​{τ=t}=1), and the product identity. The colorings chain lives on the subtype of proper colorings; the hardcore chain is the Glauber dynamics of Mission II restricted to the subtype of hardcore configurations (transitions never leave it). Mixing-time upper bounds carry an explicit +1+1+1 for integer rounding where the book's real-valued display would otherwise be false for the integer-valued tmixt_{\mathrm{mix}}tmix​. The torus statement fixes ε≤1/2\varepsilon\le 1/2ε≤1/2; for ε\varepsilonε near 111 the display is false as stated in the book.

Welcome contributions: interface lemmas between setAvoidTailProb of the pair chain and the two coordinates; the taboo-matrix form of coupling-time tails; exchangeability infrastructure for the deck chains (reused in Mission V).

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • D. Aldous, P. Diaconis, Shuffling cards and stopping times, Amer. Math. Monthly 93 (1986). https://doi.org/10.1080/00029890.1986.11971821
  • P. Diaconis, J. A. Fill, Strong stationary times via a new form of duality, Ann. Probab. 18 (1990). https://doi.org/10.1214/aop/1176990628
22 thms5 active usersReviewed
🏆Completed
Operations ResearchStochastic Systems·Captain: naimengye

Stochastic Networks III: Loss Networks and the Erlang Fixed PointTextbook

Motivation

Erlang's formula, the subject of mission I of this series, sizes a single telephone link. Real networks are not single links: a call occupies a circuit on every link of its route simultaneously, and it is lost unless every one of those links has a free circuit. That is the loss network, the model of Chapter 3 of Frank Kelly and Elena Yudovina's Stochastic Networks (Cambridge University Press, 2014), and it describes not only circuit-switched telephony but any system in which a request must acquire several resources at once or be refused: wavelength assignment in optical networks, radio channel allocation under interference constraints, slot booking, and admission control generally. The term used in those application areas is circuit-switched: before a request is accepted it is checked that enough resource is available for each stage of it.

The exact equilibrium distribution of a loss network is known and has product form. It is also useless for computation — its normalizing constant is a sum over the feasible states, and for a general resource matrix computing it is NP-hard. What practitioners use instead is the Erlang fixed point: pretend the links block independently, so that the traffic offered to link jjj is the traffic on the routes through it thinned by the blocking probability of every other link on each route, and then apply Erlang's formula link by link. The result is a system of coupled copies of Erlang's formula. The chapter's aim, in its own words, is to give insight into why that approximation works as well as it does; the first step is to show that it is well posed at all.

Setting

The links are J={1,…,J}\mathcal{J} = \{1,\dots,J\}J={1,…,J}, link jjj carrying CjC_jCj​ circuits. A route rrr belongs to a set R\mathcal{R}R of RRR routes, and the link-route incidence matrix AAA records how much of each link a route needs: a call on route rrr requires AjrA_{jr}Ajr​ circuits from link jjj and is lost if any link has fewer than AjrA_{jr}Ajr​ free. (The classical case is AAA a 000–111 matrix and Ajr=1A_{jr}=1Ajr​=1 exactly when j∈rj\in rj∈r; from section 3.3 the book allows any non-negative integers.)

Calls requesting route rrr arrive as a Poisson process of rate νr\nu_rνr​, independently across routes, and hold their circuits for an exponentially distributed time of unit mean. Writing nrn_rnr​ for the number of calls in progress on route rrr, the process n=(nr)n=(n_r)n=(nr​) is Markov on

S(C)={n∈Z+R:An≤C},S(C)=\{n\in\mathbb{Z}_+^{R} : An\le C\},S(C)={n∈Z+R​:An≤C},

and is called a loss network with fixed routing.

Write E(ν,C)E(\nu,C)E(ν,C) for Erlang's formula, E(ν,C)=νC/C!∑j=0Cνj/j!E(\nu,C)=\dfrac{\nu^{C}/C!}{\sum_{j=0}^{C}\nu^{j}/j!}E(ν,C)=∑j=0C​νj/j!νC/C!​, published in mission I of this series. The Erlang fixed point equations are

Ej  =  E ⁣((1−Ej)−1∑rAjr νr∏i(1−Ei)Air,  Cj),j=1,…,J.(3.7)E_j \;=\; E\!\left((1-E_j)^{-1}\sum_r A_{jr}\,\nu_r\prod_i (1-E_i)^{A_{ir}},\; C_j\right), \qquad j=1,\dots,J. \tag{3.7}Ej​=E((1−Ej​)−1r∑​Ajr​νr​i∏​(1−Ei​)Air​,Cj​),j=1,…,J.(3.7)

The factor (1−Ej)−1(1-E_j)^{-1}(1−Ej​)−1 removes link jjj's own thinning from the product, so in the 000–111 case the argument is ∑r∋jνr∏i∈r∖{j}(1−Ei)\sum_{r\ni j}\nu_r\prod_{i\in r\setminus\{j\}}(1-E_i)∑r∋j​νr​∏i∈r∖{j}​(1−Ei​), the reduced load offered to link jjj.

Formalization targets

Goal — Theorem 3.20, existence and uniqueness of the Erlang fixed point

∃! (E1,…,EJ)∈[0,1]J satisfying (3.7).\exists!\,(E_1,\dots,E_J)\in[0,1]^J \text{ satisfying } (3.7).∃!(E1​,…,EJ​)∈[0,1]J satisfying (3.7).

The goal fixes no formula for EEE and no rate of convergence: it asserts only that the approximation the field has used since the 1960s names a single, well-defined object. Existence alone is a short argument from Brouwer's theorem, since (3.7) defines a continuous self-map of the compact convex cube [0,1]J[0,1]^J[0,1]J; uniqueness is the substance.

Supporting levels

The exact theory that the fixed point approximates: Lemma 3.4 on truncating a reversible process; the uncapacitated network as an instance of the open migration product form of mission II; equation (3.3), the exact equilibrium distribution π(n)=G(C)∏rνrnr/nr!\pi(n)=G(C)\prod_r \nu_r^{n_r}/n_r!π(n)=G(C)∏r​νrnr​​/nr​! on S(C)S(C)S(C); and the acceptance probability 1−Lr=G(C)/G(C−Aer)1-L_r=G(C)/G(C-Ae_r)1−Lr​=G(C)/G(C−Aer​). Then the optimization side: that E(ν,C)E(\nu,C)E(ν,C) and the utilization ν(1−E(ν,C))\nu(1-E(\nu,C))ν(1−E(ν,C)) are strictly increasing in ν\nuν, which is what makes the revised dual objective strictly convex; and Theorem 3.10, that a minimizer of the Dual problem (3.5) over the positive orthant satisfies the conditions on BBB, equation (3.6).

Significance

The result itself. Without Theorem 3.20 the phrase "the Erlang fixed point" is not well formed, and neither is any engineering procedure that computes one — repeated substitution converges to a solution, and damped iteration is guaranteed to converge to one, but "the blocking probabilities predicted by the reduced-load approximation" names a unique vector only because of this theorem. The proof is also the interesting part: the fixed point equations are re-read as the stationary conditions of a strictly convex minimization, the revised dual (3.8), which is the Dual problem (3.5) of the maximum-probability analysis with its linear term replaced by ∫0yjU(z,Cj) dz\int_0^{y_j}U(z,C_j)\,dz∫0yj​​U(z,Cj​)dz. That connection is what later lets the book prove the approximation asymptotically exact in a limiting regime: Corollary 3.22 says the Erlang fixed point converges to the vector BBB coming from the maximum-probability problem.

Formalizing it. Nothing here is open. What the mission produces is the loss network model in Lean — state space, truncated rates, normalizing constant, incidence matrix — and a machine-checked statement of the object the reduced-load approximation computes. It is also where this series' earlier missions pay off: the uncapacitated network is literally the open migration process of mission II with λ≡0\lambda\equiv 0λ≡0, μ≡1\mu\equiv 1μ≡1, φj(n)=n\varphi_j(n)=nφj​(n)=n, and the exact distribution (3.3) is its truncation by Lemma 3.4 to the feasible set, using the DetailedBalance layer of mission I. Mathlib has no loss network theory and no Erlang formula beyond what mission I published.

Difficulty

Existence of a fixed point is easy and is not where the difficulty lies. Uniqueness resists every direct attack: the map defined by (3.7) is not a contraction in any obvious metric, its monotonicity structure is not the kind that forces a unique fixed point, and iterating it undamped can cycle. The book's route is indirect — exhibit a strictly convex function whose stationary conditions are exactly (3.7) — and finding that function is the whole content. Its strict convexity comes from a monotonicity fact about Erlang's formula, that the utilization ν(1−E(ν,C))\nu\bigl(1-E(\nu,C)\bigr)ν(1−E(ν,C)) is strictly increasing in ν\nuν, which is itself a milestone here.

A second, formal difficulty: the equations involve (1−Ej)−1(1-E_j)^{-1}(1−Ej​)−1, so a solution with Ej=1E_j=1Ej​=1 would be meaningless. It is worth checking before starting that no such solution exists for Cj≥1C_j\ge 1Cj​≥1, rather than assuming it.

Formalization scope

Routes and links are indexed by finite types, the incidence matrix has natural-number entries (the general case of section 3.3, not only 000–111), capacities are natural numbers, and arrival rates are positive reals. The feasible set S(C)S(C)S(C) is a subset of the state space, and a truncated process is the rate matrix restricted to that subset — which is exactly the book's truncation, since a transition leaving the set simply has no target.

Conventions: holding times have unit mean throughout, matching the book, so the departure rate from route rrr is nrn_rnr​ and no separate service-rate parameter appears. Normalizing constants are introduced through summability hypotheses that assert convergence and the value together, rather than as possibly-infinite quantities; G(C)G(C)G(C) is the reciprocal of the sum in the book's notation. Capacities are assumed at least 111 in the goal: a link with no circuits blocks everything, E(ν,0)=1E(\nu,0)=1E(ν,0)=1 identically, and the factor (1−Ej)−1(1-E_j)^{-1}(1−Ej​)−1 would then be undefined rather than merely large.

The goal cannot be satisfied trivially: it is a uniqueness statement, so a vacuous or degenerate reading would have to produce no solution, and existence is half of what is asserted.

Contributions welcome beyond the listed items: the Brouwer argument for existence of a solution to the 000–111 equations (3.1) of section 3.2; the utilization function U(y,C)U(y,C)U(y,C) and the revised dual (3.8); the central limit theorem 3.14 and Corollary 3.17; Lemma 3.21 and Corollary 3.22 on the limiting regime; and the diverse-routing models of section 3.7.

Selected references

  • Frank Kelly and Elena Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 3 (pp. 49–82); Lemma 3.4, equation (3.3), Theorems 3.10 and 3.20, equations (3.1), (3.5)–(3.9). DOI 10.1017/cbo9781139565363
  • F. P. Kelly, Loss networks, Annals of Applied Probability 1 (1991), 319–378. DOI 10.1214/aoap/1177005872
  • F. P. Kelly, Blocking probabilities in large circuit-switched networks, Advances in Applied Probability 18 (1986), 473–505. DOI 10.2307/1427303
  • R. B. Cooper and S. Katz, Analysis of alternate routing networks with account taken of the nonrandomness of overflow traffic, Bell Telephone Laboratories memorandum, 1964.
  • Frank Kelly, Reversibility and Stochastic Networks, Cambridge University Press, 2011 (reissue of the 1979 edition), Chapter 1 on truncation.
14 thms4 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times VIII: Path Coupling and Approximate CountingTextbook

Motivation

The coupling method of Mission III asks for a coupling of two copies of a chain from every pair of starting states — often painful to construct globally. Chapter 14 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) replaces that global demand by a local one. The path coupling technique of Bubley and Dyer says: put a connected graph structure on the state space, and couple one step of the chain only across edges; if each edge contracts in expectation, contraction propagates automatically along paths to arbitrary pairs of distributions. The bookkeeping runs through the transportation metric (Kantorovich distance) between distributions, whose theory — attainment by an optimal coupling, the triangle inequality — is developed on the way. The chapter's payoff is the sharpest elementary bound for sampling proper colorings (Theorem 14.8: the Glauber dynamics mixes in O(nlog⁡n)O(n\log n)O(nlogn) steps once q>2Δq>2\Deltaq>2Δ), and, through the sampling-to-counting reduction of Jerrum–Valiant–Vazirani, a polynomial-time approximation algorithm for counting colorings — the paradigm of the Markov chain Monte Carlo method as an algorithmic tool.

Setting

All chains live on a finite state space VVV with a transition matrix PPP; Pt(x,⋅)P^t(x,\cdot)Pt(x,⋅) is the time-ttt distribution from xxx, ∥μ−ν∥TV=max⁡A⊆V∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_{A\subseteq V}|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA⊆V​∣μ(A)−ν(A)∣ the total variation distance, d(t)=max⁡x∥Pt(x,⋅)−π∥TVd(t)=\max_x\|P^t(x,\cdot)-\pi\|_{TV}d(t)=maxx​∥Pt(x,⋅)−π∥TV​ the worst-case distance to the stationary distribution π\piπ, and tmix(ε)=min⁡{t:d(t)≤ε}t_{\mathrm{mix}}(\varepsilon)=\min\{t:d(t)\le\varepsilon\}tmix​(ε)=min{t:d(t)≤ε} the mixing time. A coupling of distributions μ,ν\mu,\nuμ,ν is a distribution qqq on V×VV\times VV×V with marginals μ\muμ and ν\nuν.

Given a metric-like cost ρ\rhoρ on pairs of states, the transportation metric between two distributions is the cheapest expected cost of moving one onto the other:

ρK(μ,ν)=min⁡{∑x,yρ(x,y) q(x,y)  :  q a coupling of μ,ν}.\rho_K(\mu,\nu)=\min\Bigl\{\sum_{x,y}\rho(x,y)\,q(x,y)\;:\;q\ \text{a coupling of}\ \mu,\nu\Bigr\}.ρK​(μ,ν)=min{x,y∑​ρ(x,y)q(x,y):q a coupling of μ,ν}.

Given a connected graph structure GGG on the state space with edge lengths ℓ≥1\ell\ge1ℓ≥1, the path metric ρ(x,y)\rho(x,y)ρ(x,y) is the least total length of a GGG-path from xxx to yyy.

For the colorings application: a qqq-coloring of the vertices of a graph is proper when adjacent vertices receive distinct colors, and the Glauber dynamics on proper colorings picks a uniform vertex and re-samples its color uniformly among the colors legal there; its stationary distribution is uniform on the proper colorings. Throughout, nnn is the number of vertices and Δ\DeltaΔ the maximum degree of the graph being colored.

Formalization targets

Goal

Theorem 14.8, the capstone of Chapter 14: for the Glauber dynamics on proper qqq-colorings, if q>2Δq>2\Deltaq>2Δ then

tmix(ε)  ≤  ⌈q−Δq−2Δ  n (log⁡n−log⁡ε)⌉.t_{\mathrm{mix}}(\varepsilon)\;\le\;\Bigl\lceil\frac{q-\Delta}{q-2\Delta}\;n\,\bigl(\log n-\log\varepsilon\bigr)\Bigr\rceil.tmix​(ε)≤⌈q−2Δq−Δ​n(logn−logε)⌉.

Milestones

  • Lemma 14.3 and Remark 14.2 — the transportation distance is attained by an optimal coupling, and satisfies the triangle inequality (so it is a genuine metric on distributions).
  • Theorem 14.6, path coupling (Bubley–Dyer) — if for every edge {x,y}\{x,y\}{x,y} of a connected graph structure there is a coupling of the one-step distributions P(x,⋅),P(y,⋅)P(x,\cdot),P(y,\cdot)P(x,⋅),P(y,⋅) contracting the path metric by e−αe^{-\alpha}e−α in expectation, then one step of the chain contracts the transportation metric of arbitrary distribution pairs by e−αe^{-\alpha}e−α.
  • Corollary 14.7 — under the same hypotheses, d(t)≤e−αt diam(V)d(t)\le e^{-\alpha t}\,\mathrm{diam}(V)d(t)≤e−αtdiam(V) and tmix(ε)≤⌈(log⁡diam(V)−log⁡ε)/α⌉t_{\mathrm{mix}}(\varepsilon)\le\lceil(\log\mathrm{diam}(V)-\log\varepsilon)/\alpha\rceiltmix​(ε)≤⌈(logdiam(V)−logε)/α⌉, where diam(V)\mathrm{diam}(V)diam(V) is the largest path-metric distance between two states.
  • Theorem 14.12, approximate counting — for q>2Δq>2\Deltaq>2Δ there is a randomized estimator, computed from an explicit polynomial number of independent uniform random seeds, which with probability at least 1−η1-\eta1−η estimates the number of proper qqq-colorings within a (1±ε)(1\pm\varepsilon)(1±ε) factor: rapid sampling yields rapid approximate counting.

Significance

The results. Path coupling converted the coupling method from an art into a calculus: one bounds a single-edge contraction constant, and the machinery does the rest. It is the standard tool for Glauber dynamics on colorings, independent sets, and other constraint-satisfaction models, and the q>2Δq>2\Deltaq>2Δ colorings bound is its flagship application. Theorem 14.12 is the discrete embodiment of the Jerrum–Valiant–Vazirani equivalence between approximate counting and sampling — the conceptual foundation of the entire MCMC approach to #P\#\mathrm P#P-hard counting problems.

Formalizing them. Mathlib has no transportation/Kantorovich metric in the finite setting, no path coupling, and nothing on approximate counting. The transportation-metric layer (optimal couplings, triangle inequality) is reusable far beyond this mission — it is the finite Wasserstein distance. The path-coupling theorem feeds directly into Mission IX (Ising) and is quoted throughout modern mixing literature.

Difficulty

The transportation metric asks for minimization over the (compact) polytope of couplings: attainment is a finite-dimensional compactness argument, and the triangle inequality requires gluing two optimal couplings along their common marginal — the classic construction that must be carried out with explicit finite sums here. Path coupling itself is an induction along geodesics of the path metric, with the subtlety that the composite coupling produced along a path need not be optimal, only admissible; the bookkeeping of the contraction constant through the induction is exactly the kind of argument Lean keeps honest. Theorem 14.8 instantiates the machinery: the single-edge coupling for colorings needs a careful case analysis of the proposed recolorings at the two endpoints (matching legal colors bijectively), and the contraction constant (q−2Δ)/(q−Δ)(q-2\Delta)/(q-\Delta)(q−2Δ)/(q−Δ) emerges from counting disagreeing proposals. Theorem 14.12 layers a probabilistic-amplification argument (medians of means over independent runs) on top of the mixing bound; its combinatorial core — expressing ∣Ω∣−1|\Omega|^{-1}∣Ω∣−1 as a telescoping product of marginal probabilities — is elementary but notation-heavy, and the formal statement quantifies over explicit seed spaces, so the whole estimator is a finite object.

Formalization scope

The transportation metric is an sInf over coupling costs (the coupling polytope is nonempty for genuine distributions, and attainment is part of the milestone, so the junk value never propagates); the path metric is an sInf over walk lengths in a connected graph. The Glauber dynamics on colorings is the restriction to proper colorings of the single-site heat-bath chain of Mission II, matching §3.3 of the book; its state space is the subtype of proper colorings, nonempty whenever q>2Δq>2\Deltaq>2Δ (a fact the hypotheses of the goal supply). Mixing-time upper bounds are stated with the book's explicit ceilings, so no rounding slack is hidden. In Theorem 14.12 the estimator is presented concretely as a function of finitely many uniform seeds, and "with probability ≥1−η\ge1-\eta≥1−η" is a counting inequality over the seed space — no measure theory enters. Contributions of intermediate lemmas (optimal-coupling gluing, geodesic decompositions, colorings edge-coupling) are welcome and will be reused by Mission IX.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • R. Bubley, M. Dyer, Path coupling: a technique for proving rapid mixing in Markov chains, FOCS 1997. https://doi.org/10.1109/SFCS.1997.646111
  • M. Jerrum, A very simple algorithm for estimating the number of k-colorings of a low-degree graph, Random Structures Algorithms 7 (1995). https://doi.org/10.1002/rsa.3240070205
  • M. Jerrum, L. Valiant, V. Vazirani, Random generation of combinatorial structures from a uniform distribution, Theoret. Comput. Sci. 43 (1986). https://doi.org/10.1016/0304-3975(86)90174-X
9 thms4 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times VI: Networks, Hitting Times, and Cover TimesTextbook

Motivation

A reversible Markov chain is an electrical network: states are nodes, and the conductance c(x,y)=π(x)P(x,y)c(x,y)=\pi(x)P(x,y)c(x,y)=π(x)P(x,y) turns hitting probabilities into voltages and hitting times into resistances. This dictionary, going back to Kakutani and popularized by Doyle and Snell, converts probabilistic estimates into the physical laws of circuits — series/parallel reduction, energy minimization, monotonicity under edge removal. Chapters 9–11 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009) develop the dictionary and its two crown results: the commute time identity of Chandra–Raghavan–Ruzzo–Smolensky–Tiwari, Ea(τb)+Eb(τa)=cG R(a↔b)\mathbb E_a(\tau_b)+\mathbb E_b(\tau_a)=c_G\,R(a\leftrightarrow b)Ea​(τb​)+Eb​(τa​)=cG​R(a↔b), and the Matthews method bounding cover times by hitting times with harmonic-number precision.

Setting

A network is a symmetric nonnegative conductance function ccc on pairs of vertices; the associated walk moves with probabilities

P(x,y)=c(x,y)/c(x)P(x,y)=c(x,y)/c(x)P(x,y)=c(x,y)/c(x)

where c(x)=∑yc(x,y)c(x)=\sum_y c(x,y)c(x)=∑y​c(x,y), and cG=∑xc(x)c_G=\sum_x c(x)cG​=∑x​c(x). A function hhh is harmonic at xxx if h(x)=∑yP(x,y)h(y)h(x)=\sum_y P(x,y)h(y)h(x)=∑y​P(x,y)h(y). The voltage with boundary values 111 at aaa and 000 at zzz is W(x)=Px{τa<τz}W(x)=\mathbb P_x\{\tau_a<\tau_z\}W(x)=Px​{τa​<τz​}, the harmonic extension of its boundary data; the current flowing out of aaa has strength ∥I∥=∑yc(a,y) [W(a)−W(y)]\|I\|=\sum_y c(a,y)\,[W(a)-W(y)]∥I∥=∑y​c(a,y)[W(a)−W(y)], and the effective resistance is R(a↔z)=∥I∥−1R(a\leftrightarrow z)=\|I\|^{-1}R(a↔z)=∥I∥−1. A flow from aaa to zzz is an antisymmetric edge function obeying the node law off {a,z}\{a,z\}{a,z}; its energy is E(θ)=∑eθ(e)2/c(e)\mathcal E(\theta)=\sum_e\theta(e)^2/c(e)E(θ)=∑e​θ(e)2/c(e). Hitting times τS=min⁡{t≥0:Xt∈S}\tau_S=\min\{t\ge0:X_t\in S\}τS​=min{t≥0:Xt​∈S}, their expectations, the Green's function Gτz(a,x)G_{\tau_z}(a,x)Gτz​​(a,x), the maximal hitting time thitt_{\mathrm{hit}}thit​, and the cover time tcovt_{\mathrm{cov}}tcov​ (expected time to visit every state, maximized over starts) all use the trajectory calculus of Mission I.

Formalization targets

Goal

Ea(τb)+Eb(τa)  =  cG R(a↔b).\mathbb E_a(\tau_b)+\mathbb E_b(\tau_a)\;=\;c_G\,R(a\leftrightarrow b).Ea​(τb​)+Eb​(τa​)=cG​R(a↔b).

This is Proposition 10.6, the commute time identity — the exact bridge between the probabilistic and electrical sides, and the engine of the transience/recurrence theory of Mission XII.

Milestones

Reversibility and stationarity of the network walk with π(x)=c(x)/cG\pi(x)=c(x)/c_Gπ(x)=c(x)/cG​ (§9.1); Proposition 9.1 (existence and uniqueness of harmonic extensions with given boundary values, h(x)=Exf(XτB)h(x)=\mathbb E_x f(X_{\tau_B})h(x)=Ex​f(XτB​​)); Lemma 9.6 (the Green's function identity Gτz(a,a)=c(a)R(a↔z)G_{\tau_z}(a,a)=c(a)R(a\leftrightarrow z)Gτz​​(a,a)=c(a)R(a↔z)); Theorem 9.10 (Thomson's principle: R(a↔z)R(a\leftrightarrow z)R(a↔z) is the minimal energy of a unit flow, attained); Theorem 9.12 (Rayleigh monotonicity: lowering conductances raises effective resistance); Lemma 10.1 (the random target lemma: ∑yEa(τy)π(y)\sum_y\mathbb E_a(\tau_y)\pi(y)∑y​Ea​(τy​)π(y) does not depend on aaa); Corollary 10.8 (the resistance triangle inequality); Theorem 11.2 (Matthews: tcov≤thit (1+12+⋯+1n)t_{\mathrm{cov}}\le t_{\mathrm{hit}}\,(1+\tfrac12+\dots+\tfrac1n)tcov​≤thit​(1+21​+⋯+n1​)); Proposition 11.4 (the matching Matthews lower bound over subsets).

Significance

The results. The commute time identity computes hitting times from circuit reductions — this is how hitting times on trees, tori and glued graphs are actually evaluated — and, through Thomson and Rayleigh, makes them monotone under graph operations, something invisible probabilistically. The Matthews bounds pin cover times up to a log⁡n\log nlogn factor in complete generality; they are the tool behind cover-time results for lamplighter groups in Mission XI's sequel. Green's function identities feed Mission XII's recurrence theory, where R(a↔∞)R(a\leftrightarrow\infty)R(a↔∞) decides transience.

Formalizing them. Mathlib has graph Laplacians but no electrical network theory: no effective resistance, no flows, no energy, no Thomson/Rayleigh, no hitting or cover times. This mission publishes that layer over the trajectory calculus of Mission I. It is the most reusable single block of the series outside Missions I–II: effective resistance on finite networks is of independent interest to combinatorics (spanning trees, spectral sparsification) well beyond mixing times.

Difficulty

The identity chain behind the goal runs: Green's function of the stopped walk →\to→ escape probability Pa{τz<τa+}=(c(a)R(a↔z))−1\mathbb P_a\{\tau_z<\tau_a^+\}=\bigl(c(a)R(a\leftrightarrow z)\bigr)^{-1}Pa​{τz​<τa+​}=(c(a)R(a↔z))−1 (via harmonic uniqueness) →\to→ the Aldous–Fill occupation identity Gτ(a,x)=Ea(τ)π(x)G_\tau(a,x)=\mathbb E_a(\tau)\pi(x)Gτ​(a,x)=Ea​(τ)π(x) for stopping times with Xτ=aX_\tau=aXτ​=a — each step is a manipulation of infinite series of trajectory sums whose exchange steps (splitting a path at its first visit, last-exit decompositions) need summability from Mission I's Lemma 1.13. Thomson's principle is a finite-dimensional convex minimization: existence of the minimizer needs a compactness or completing-the-square argument, and the identification of the minimizer with the current flow needs the cycle law; the naive "differentiate the energy" route must be made exact. Matthews' method is a clean but genuinely clever argument — a uniformly random ordering of targets and the harmonic-number telescoping; the formal cost is the exchangeability of the randomized order against the chain, handled combinatorially.

Formalization scope

Networks are functions c:V×V→Rc:V\times V\to\mathbb Rc:V×V→R with a symmetry-and-nonnegativity predicate; loops are permitted; connectivity enters as irreducibility of the induced walk. The voltage is defined probabilistically as Px{τa<τz}\mathbb P_x\{\tau_a<\tau_z\}Px​{τa​<τz​} (the book's harmonic characterization is Proposition 9.1); R(a↔z)R(a\leftrightarrow z)R(a↔z) is the reciprocal of the explicit current strength, with total division junk when a,za,za,z are disconnected — statements carry irreducibility so this does not arise. Energy counts each undirected edge once, formalized as half the ordered double sum, and 02/0=00^2/0=002/0=0 handles absent edges. Cover times are tail sums of the explicit event "some state unvisited". The Matthews lower bound is stated with an arbitrary lower bound mmm for the pairwise hitting times of the subset AAA — equivalent to the book's min over pairs and easier to instantiate.

Welcome contributions: series/parallel reduction laws, the cycle and node law API for flows, escape-probability lemmas — all reused in Mission XII's infinite-network arguments.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • P. G. Doyle, J. L. Snell, Random Walks and Electric Networks, MAA, 1984. https://arxiv.org/abs/math/0001057
  • A. K. Chandra, P. Raghavan, W. L. Ruzzo, R. Smolensky, P. Tiwari, The electrical resistance of a graph captures its commute and cover times, STOC 1989. https://doi.org/10.1145/73007.73062
  • P. Matthews, Covering problems for Markov chains, Ann. Probab. 16 (1988). https://doi.org/10.1214/aop/1176991894
15 thms4 active usersReviewed
🏆Completed
ProbabilityStochastic Systems·Captain: Shuze Chen

Markov Chains and Mixing Times I: Existence and Uniqueness of the Stationary DistributionTextbook

Markov Chains and Mixing Times I: Existence and Uniqueness of the Stationary Distribution

Motivation

Finite Markov chains are the basic model for memoryless random dynamics: card shuffles, random walks on graphs and groups, Monte Carlo samplers, and queueing systems are all chains on a finite state space. The single most used fact about them is that an irreducible chain has exactly one stationary distribution — a probability vector π\piπ with π=πP\pi = \pi Pπ=πP — and that this π\piπ is strictly positive and encodes the long-run behaviour of the chain through the return-time identity π(x)=1/Ex(τx+)\pi(x) = 1/\mathbb{E}_x(\tau_x^+)π(x)=1/Ex​(τx+​). Every later result in the theory of mixing times (convergence theorems, coupling bounds, spectral methods, cutoff) is a statement about the distance of the chain from this π\piπ, so nothing in the subject can be formalized before this mission is.

This mission is the first in a series formalizing D. A. Levin, Y. Peres and E. L. Wilmer, Markov Chains and Mixing Times (AMS, 2009), covering Chapters 1–2: the basic vocabulary of finite chains (stochastic matrices, irreducibility, period, reversibility, time reversal, random walks on graphs and groups) and the classical examples of Chapter 2 (gambler's ruin, coupon collecting, the reflection principle for simple random walk on Z\mathbb{Z}Z). Later missions in the series build on the definitions published here.

Setting

A chain on a finite state space Ω\OmegaΩ is presented by its transition matrix, a matrix P∈RΩ×ΩP \in \mathbb{R}^{\Omega\times\Omega}P∈RΩ×Ω with nonnegative entries whose rows sum to 111. A distribution is a row vector μ\muμ with nonnegative entries summing to 111; one step of the chain carries μ\muμ to μP\mu PμP, and the ttt-step transition probabilities are the entries of the matrix power PtP^tPt.

The chain is irreducible if for all states x,yx, yx,y there is a ttt with Pt(x,y)>0P^t(x,y) > 0Pt(x,y)>0. The period of a state xxx is gcd⁡ T(x)\gcd\,\mathcal{T}(x)gcdT(x) where T(x)={t≥1:Pt(x,x)>0}\mathcal{T}(x) = \{t \ge 1 : P^t(x,x) > 0\}T(x)={t≥1:Pt(x,x)>0}, and the chain is aperiodic if every state has period 111. A distribution π\piπ is stationary if πP=π\pi P = \piπP=π, and π\piπ and PPP are in detailed balance (the chain is reversible) if π(x)P(x,y)=π(y)P(y,x)\pi(x)P(x,y) = \pi(y)P(y,x)π(x)P(x,y)=π(y)P(y,x) for all x,yx,yx,y.

Trajectory events over a finite horizon are finite sums of path weights: a length-ttt trajectory is a function ω:{0,…,t}→Ω\omega : \{0,\dots,t\} \to \Omegaω:{0,…,t}→Ω, with weight ∏i<tP(ωi,ωi+1)\prod_{i<t} P(\omega_i, \omega_{i+1})∏i<t​P(ωi​,ωi+1​) conditional on its starting state. The tail probability Px{τz+>t}\mathbb{P}_x\{\tau_z^+ > t\}Px​{τz+​>t} of the first hitting time τz+=min⁡{t≥1:Xt=z}\tau_z^+ = \min\{t \ge 1 : X_t = z\}τz+​=min{t≥1:Xt​=z} is the sum of the weights of the trajectories from xxx that avoid zzz at times 1,…,t1,\dots,t1,…,t, and expectations of hitting times are recovered by the tail-sum formula E(Y)=∑t≥0P{Y>t}\mathbb{E}(Y) = \sum_{t\ge0} \mathbb{P}\{Y > t\}E(Y)=∑t≥0​P{Y>t}, formalized as a tsum over ttt.

Formalization targets

Goal

P stochastic and irreducible on a finite nonempty Ω  ⟹  ∃! π, π=πP.\text{$P$ stochastic and irreducible on a finite nonempty $\Omega$} \;\Longrightarrow\; \exists!\, \pi,\ \pi = \pi P .P stochastic and irreducible on a finite nonempty Ω⟹∃!π, π=πP.

This is Corollary 1.17 of the book. It asserts only existence and uniqueness, leaving the finer structure of π\piπ to the milestones; it is the weakest statement on which the rest of the series can stand, which is why it is the goal.

Milestones toward and around the goal

The milestone list follows the book's own route: well-definedness of the period (Lemma 1.6), positivity of some matrix power for irreducible aperiodic chains (Proposition 1.7), finiteness of expected hitting times (Lemma 1.13), existence of a positive stationary distribution together with

π(x) Ex(τx+)=1\pi(x)\,\mathbb{E}_x(\tau_x^+) = 1π(x)Ex​(τx+​)=1

(Proposition 1.14), constancy of harmonic functions (Lemma 1.16), stationarity from detailed balance (Proposition 1.19), the stationary and reversible measure π(x)=deg⁡(x)/2∣E∣\pi(x) = \deg(x)/2|E|π(x)=deg(x)/2∣E∣ of simple random walk on a graph (Examples 1.12 and 1.20), the time reversal P^\hat PP^ and its path-reversal identity (Proposition 1.22), and the random walks on finite groups of Section 2.6 (Propositions 2.12–2.14). From Chapter 2 the list adds the gambler's ruin formulas Pk{Xτ=n}=k/n\mathbb{P}_k\{X_\tau = n\} = k/nPk​{Xτ​=n}=k/n and Ek(τ)=k(n−k)\mathbb{E}_k(\tau) = k(n-k)Ek​(τ)=k(n−k) (Proposition 2.1), the coupon collector expectation n∑k≤n1/kn\sum_{k\le n} 1/kn∑k≤n​1/k and tail bound e−ce^{-c}e−c (Propositions 2.3 and 2.4), and the reflection principle and the bound Pk{τ0>r}≤12k/r\mathbb{P}_k\{\tau_0 > r\} \le 12k/\sqrt{r}Pk​{τ0​>r}≤12k/r​ for simple random walk on Z\mathbb{Z}Z (Lemma 2.18 and Theorem 2.17).

Significance

The result itself. Existence and uniqueness of π\piπ is the pivot on which the entire quantitative theory turns: it defines the target of convergence, and the identity π(x) Ex(τx+)=1\pi(x)\,\mathbb{E}_x(\tau_x^+) = 1π(x)Ex​(τx+​)=1 ties the stationary measure to return times, which later missions use for hitting-time and cover-time results. Detailed balance is the practical tool by which stationary measures of graph and group walks are computed, and the Chapter 2 examples (gambler's ruin, coupon collecting, reflection) are the standard building blocks reused throughout the book — the coupon collector bound, for instance, is exactly the estimate behind the nlog⁡n+cnn \log n + cnnlogn+cn analysis of the top-to-random shuffle in a later mission of this series.

Formalizing it. Mathlib currently has no theory of finite Markov chains: no stochastic-matrix predicate, no stationary distribution, no periodicity, no hitting times. Everything proved in this mission is new formal mathematics, and the definition layer published here (mm_basic, mm_path, mm_classical) is the shared foundation that all twelve subsequent missions of the series import. All results are classical and have textbook proofs; none has a machine-checked proof.

Difficulty

The delicate point is the existence proof. The natural first idea — extract π\piπ from an eigenvector of PTP^{\mathsf T}PT for eigenvalue 111, or invoke a fixed-point theorem — either does not give positivity and nonnegativity without further work, or uses compactness machinery (Brouwer) that is unavailable. The book's proof instead builds π~(y)=Ez(visits to y before τz+)\tilde\pi(y) = \mathbb{E}_z(\text{visits to } y \text{ before } \tau_z^+)π~(y)=Ez​(visits to y before τz+​) and verifies π~P=π~\tilde\pi P = \tilde\piπ~P=π~ by reindexing trajectory sums; formalizing it requires managing infinite series of path sums (summability from the geometric tail bound of Lemma 1.13, exchanging tsum with finite sums, splitting a trajectory at its last step). The uniqueness half is linear algebra via constancy of harmonic functions (Lemma 1.16), which is elementary but requires a maximum-principle argument over a finite state space. The reflection principle and Theorem 2.17 are finite combinatorics on ±1\pm 1±1 paths — the bijection is easy to describe and fiddly to implement.

Formalization scope

States form a Fintype with decidable equality; chains are Matrix V V ℝ with the row-stochasticity predicate IsStochastic; distributions are functions V → ℝ with the predicate IsDist. Everything is distribution-side: no probability space or measure theory is used. The period is formalized as sup⁡{d:d∣t for all t∈T(x)}\sup\{d : d \mid t \text{ for all } t \in \mathcal{T}(x)\}sup{d:d∣t for all t∈T(x)}, which equals gcd⁡T(x)\gcd \mathcal{T}(x)gcdT(x) when T(x)≠∅\mathcal{T}(x) \neq \varnothingT(x)=∅ and takes the junk value 000 otherwise. Expectations of hitting times are tsums of tail probabilities, with the usual junk value 000 for non-summable families — the statements are arranged (e.g. multiplicatively, π(x)⋅Ex(τx+)=1\pi(x)\cdot\mathbb{E}_x(\tau_x^+) = 1π(x)⋅Ex​(τx+​)=1) so that junk values cannot make them vacuously true. Existence statements carry a Nonempty V hypothesis; irreducibility on the empty space is vacuous, and without nonemptiness the goal would be false, not trivial. The coupon collector and the walk on Z\mathbb{Z}Z are presented directly by their driving randomness (uniform draws Fin t → Fin n, uniform sign strings Fin r → Bool), so those probabilities are elementary counting; in particular the reflection principle is stated as an equality of cardinalities of sets of sign strings — this is equivalent to the probabilistic statement because all 2r2^r2r strings are equally likely.

Contributions welcome beyond the milestone list: simp lemmas for the definition layer, the taboo-matrix representation of avoidance probabilities (useful for Lemma 1.13), and any interface lemmas connecting pathWeight sums to matrix powers — these will be reused by every later mission in the series.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009. https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • J. R. Norris, Markov Chains, Cambridge University Press, 1998. https://doi.org/10.1017/CBO9780511810633
  • D. Aldous, J. A. Fill, Reversible Markov Chains and Random Walks on Graphs, 2002 (unfinished monograph). https://www.stat.berkeley.edu/~aldous/RWG/book.html
20 thms4 active usersReviewed
Dynamic ProgrammingLinear OptimizationOperations Research·Captain: mikedeng1

On Sequential Decisions and Markov Chains 2: Under Irreducibility, an Optimal Solution of a Linear Program over State-Action Frequencies Yields an Optimal Stationary ProcedureResearch Paper

Linear programming for Markov decision problems

A Markov decision problem asks how to control a system that moves at random between finitely many states, where each decision changes the probabilities of the next move and incurs a cost. Cyrus Derman's 1962 paper On Sequential Decisions and Markov Chains (Management Science 9(1):16–24) treats two criteria: the long-run average cost per period, and the total cost of driving the system into an absorbing state. Its Theorem 2 shows that, once attention is restricted to stationary procedures, each problem can be solved as a linear program over the state-action frequencies of the procedure. This mission formalizes that theorem, its supporting displays (3)–(10) and its Lemma on linear-fractional programs.

The linear programming formulation is now the standard computational and theoretical tool for constrained Markov decision processes, and its variables, the occupation measures, are the objects of most later work on that topic. Derman's paper is among the first to state it for the average-cost criterion. Manne (Linear Programming and Sequential Decisions, Management Science, 1960) gave an earlier average-cost formulation for an inventory model. The reduction of a ratio of linear functions to a linear program in Derman's Lemma is the transformation published in the same year by Charnes and Cooper (Programming with Linear Fractional Functionals, Naval Research Logistics Quarterly, 1962).

Setting

There are finitely many states 0,…,L0, \dots, L0,…,L and decisions d1,…,dKd_1, \dots, d_Kd1​,…,dK​, all available in every state. Making decision dkd_kdk​ in state iii sends the system to state jjj with probability qij(k)≥0q_{ij}(k) \ge 0qij​(k)≥0, where ∑jqij(k)=1\sum_j q_{ij}(k) = 1∑j​qij​(k)=1, and costs wikw_{ik}wik​.

A procedure of class C′C'C′ is stationary randomized: in state iii it makes decision dkd_kdk​ with probability DikD_{ik}Dik​, where Dik≥0D_{ik} \ge 0Dik​≥0 and ∑kDik=1\sum_k D_{ik} = 1∑k​Dik​=1, independently of the past and of the time. Under such a procedure the states form a Markov chain with transition probabilities pij=∑kqij(k)Dikp_{ij} = \sum_k q_{ij}(k) D_{ik}pij​=∑k​qij​(k)Dik​. Write WtW_tWt​ for the expected cost at time ttt when X0=iX_0 = iX0​=i.

  • Problem 1 (average cost): minimize QR(i)=lim sup⁡T→∞1T∑t=0TWtQ_R(i) = \limsup_{T\to\infty} \frac{1}{T}\sum_{t=0}^{T} W_tQR​(i)=limsupT→∞​T1​∑t=0T​Wt​. Here wik>0w_{ik} > 0wik​>0, and Assumption A says that under every procedure of C′C'C′ all states belong to one class.
  • Problem 2 (total cost): the state LLL is absorbing under every decision and wLk=0w_{Lk} = 0wLk​=0. Minimize SR(i)=∑t=0∞WtS_R(i) = \sum_{t=0}^{\infty} W_tSR​(i)=∑t=0∞​Wt​, the expected cost of reaching LLL. Assumption B says that under every procedure of C′C'C′, LLL is reached from every state with probability one.

The state-action frequencies of a procedure D∈C′D \in C'D∈C′ with stationary distribution π\piπ are xjk=πjDjkx_{jk} = \pi_j D_{jk}xjk​=πj​Djk​. They satisfy the linear constraints

(10)xjk≥0,∑kxjk−∑i∑kxik qij(k)=0  (j),∑j∑kxjk=1.\text{(10)}\qquad x_{jk} \ge 0,\qquad \sum_k x_{jk} - \sum_{i}\sum_k x_{ik}\, q_{ij}(k) = 0 \ \ (j),\qquad \sum_j\sum_k x_{jk} = 1 .(10)xjk​≥0,k∑​xjk​−i∑​k∑​xik​qij​(k)=0  (j),j∑​k∑​xjk​=1.

For Problem 2, Derman adjoins a state −1-1−1 that restarts the chain uniformly on 0,…,L0, \dots, L0,…,L and is entered from LLL. The expected total cost then becomes a ratio of two linear functions of the frequencies of this augmented chain, (9).

Formalization targets

Goal: Theorem 2, pinned-down reading

The printed statement, "If Assumption A (B) holds, then problem 1 (2) can be formulated as a linear programming problem", is not a mathematical statement as it stands. The goal is the reading established by its proof (pp. 20–23).

Under Assumption A with w>0w > 0w>0, the program

min⁡ ∑j,kxjkwjksubject to (10)\min \ \sum_{j,k} x_{jk} w_{jk} \quad \text{subject to (10)}min j,k∑​xjk​wjk​subject to (10)

has an optimal solution. For every optimal x∗x^*x∗, every row sum ∑kxjk∗\sum_k x^*_{jk}∑k​xjk∗​ is positive, and Djk∗=xjk∗/∑kxjk∗D^*_{jk} = x^*_{jk}/\sum_k x^*_{jk}Djk∗​=xjk∗​/∑k​xjk∗​ satisfies QD∗(i)≤QD(i)Q_{D^*}(i) \le Q_D(i)QD∗​(i)≤QD​(i) for all D∈C′D \in C'D∈C′ and all iii.

Under Assumption B with the Problem 2 costs, the linear program obtained from (9) by the Lemma's transformation, min⁡∑wjkzjk\min \sum w_{jk} z_{jk}min∑wjk​zjk​ subject to (12), has an optimal solution. For every optimal (z∗,zn+1∗)(z^*, z^*_{n+1})(z∗,zn+1∗​) one has zn+1∗>0z^*_{n+1} > 0zn+1∗​>0, and the procedure decoded from x∗=z∗/zn+1∗x^* = z^*/z^*_{n+1}x∗=z∗/zn+1∗​ satisfies SD∗(i)≤SD(i)S_{D^*}(i) \le S_D(i)SD∗​(i)≤SD​(i) for all D∈C′D \in C'D∈C′ and all iii.

Milestones

In the order the proof uses them: the Cesàro limit and the unique positive stationary distribution of a one-class chain ((3), (5)); the taboo-probability identity (4); the formula (6) for QRQ_RQR​; the cycle formula (7) for the averaged total cost; the remark that minimizing the average of the SR(i)S_R(i)SR​(i) minimizes each one; the correspondence between C′C'C′ and the solutions of (10); and the Lemma reducing a linear-fractional program under conditions (i) and (ii) to the linear program (12).

Significance

The theorem replaces a search over infinitely many randomized procedures by a single finite linear program. It also yields the structural fact that an optimal stationary procedure can be read off from any optimal solution. The variables xjkx_{jk}xjk​ make constraints on long-run frequencies of actions expressible as linear constraints. That is the origin of the theory of constrained Markov decision processes, and of the dual linear programs whose variables are value functions. The Lemma is the classical linear-fractional reduction, used well beyond this setting.

All of these results are proved in the paper and in later textbooks (for example Puterman, Markov Decision Processes, 1994, §8.8 and §9.5). None of them has been formalized: Mathlib has Perron–Frobenius-type facts for irreducible matrices but no linear programming theory, no taboo probabilities and no Markov decision model. The mission produces machine-checked versions of the proof's chain of equalities and of the decoding step, written so that they can be reused for occupation-measure arguments.

Difficulty

Several steps fail in the naive argument. The correspondence between procedures and solutions of (10) needs every row sum ∑kxjk\sum_k x_{jk}∑k​xjk​ to be positive. That uses Assumption A for a procedure obtained by completing the decoded rows arbitrarily, together with the uniqueness and positivity of the stationary distribution. Positivity of the stationary vector of an irreducible but possibly periodic chain, and the Cesàro (not ordinary) convergence of PtP^tPt, have no ready-made form in Mathlib. The total-cost identity (7) needs the regenerative identity (4), whose sums must first be shown to converge, and needs the augmented chain to be irreducible, which follows from Assumption B but is not assumed. Problem 2 needs one more step: a minimizer of the averaged total cost is optimal from every starting state, which uses the finiteness of all SR(i)S_R(i)SR​(i).

Formalization scope

States and decisions are finite Lean types S and Act. Probabilities and costs are real numbers, a procedure of C′C'C′ is a nonnegative real matrix with unit row sums, and the chain is chainMatrix q D. Assumption A is irreducibility (Matrix.IsIrreducible) of every such chain matrix. Assumption B is reachability of LLL from every state; for a finite chain in which LLL is absorbing, this is equivalent to absorption with probability one. QR(i)Q_R(i)QR​(i) is a real limsup of a bounded sequence, with the paper's sum over t=0,…,Tt = 0, \dots, Tt=0,…,T. SR(i)S_R(i)SR​(i) takes values in [0,∞][0, \infty][0,∞]. The paper requires wik>0w_{ik} > 0wik​>0 on p. 17 and wLk=0w_{Lk} = 0wLk​=0 in Problem 2. The formalization uses wik>0w_{ik} > 0wik​>0 for i≠Li \ne Li=L in Problem 2, and keeps the two problems as separate implications. The adjoined state −1-1−1 is none : Option S, with the transition law that produces Derman's p−1,i=1/(L+1)p_{-1,i} = 1/(L+1)p−1,i​=1/(L+1), pL,−1=1p_{L,-1} = 1pL,−1​=1 for every procedure. The published JewellMRP.InfiniteStep definitions of an ergodic matrix and of a stationary vector are reused.

The goal states optimality of the decoded procedure against every competitor in C′C'C′, for every optimal solution of the linear program, with existence of an optimal solution as a separate clause. A statement that only identifies feasible sets, or that only asserts that some optimal procedure exists, does not count as Theorem 2. Optimality over all history-dependent procedures is Theorem 1, a separate mission of this series.

Welcome contributions: the stationary-distribution facts for irreducible finite stochastic matrices (reusable across Markov chain work), a small linear-programming existence lemma (a linear function attains its minimum on a nonempty compact polytope), and the Lemma's transformation, which is self-contained.

Selected references

  • C. Derman, On Sequential Decisions and Markov Chains, Management Science 9(1):16–24, 1962. https://doi.org/10.1287/mnsc.9.1.16
  • A. S. Manne, Linear Programming and Sequential Decisions, Management Science 6(3):259–267, 1960. https://doi.org/10.1287/mnsc.6.3.259
  • A. Charnes and W. W. Cooper, Programming with Linear Fractional Functionals, Naval Research Logistics Quarterly 9(3–4):181–186, 1962. https://doi.org/10.1002/nav.3800090303
  • K. L. Chung, Markov Chains with Stationary Transition Probabilities, Springer, 1960. https://doi.org/10.1007/978-3-642-49686-8
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
11 thms3 active usersReviewed
Dynamic ProgrammingOperations Research·Captain: mikedeng1

On Sequential Decisions and Markov Chains 1: Deterministic Stationary Procedures Are Optimal for the Long-Run Average Cost and for the Total Cost to AbsorptionResearch Paper

Why restrict to stationary procedures

A Markov decision process with finitely many states and decisions is the basic model of sequential decision making under uncertainty: inventory replacement, machine maintenance, queue control and pursuit problems all fit it. Its computational methods (Howard's policy iteration, 1960; Manne's linear programming formulation, 1960) search only over stationary procedures, which use the same decision every time the system is in the same state. A controller, however, may also remember the whole past and randomize. Whether such procedures can do better is a genuine question: as Derman puts it, "a proof is required before a procedure optimal over C′C'C′ can be considered as the optimal procedure."

Cyrus Derman's 1962 paper On Sequential Decisions and Markov Chains (Management Science 9(1):16–24) answers it for two criteria, the long-run average cost and the total cost until absorption, by showing that a deterministic stationary procedure is optimal against all procedures. This mission formalizes that theorem, Theorem 1, together with the steps of its proof.

Timeline. Karlin (1955) gives the existence of a discount-optimal procedure used here; Howard (1960) and Manne (1960) solve the average-cost problem over stationary procedures; Wagner (1960) shows by linear programming that an optimal average-cost procedure can be taken deterministic and stationary; Derman (1962) proves the reduction for both criteria by the functional equation approach; Blackwell (1962) strengthens the discounted side to procedures optimal for all discount factors close to 111.

Setting

The system is observed at times t=0,1,…t = 0, 1, \dotst=0,1,… in one of finitely many states 0,…,L0, \dots, L0,…,L. After each observation one of KKK decisions d1,…,dKd_1, \dots, d_Kd1​,…,dK​ is made; every decision is available in every state. If the system is in state iii and decision dkd_kdk​ is made, it moves to state jjj with probability qij(k)≥0q_{ij}(k) \ge 0qij​(k)≥0, where ∑jqij(k)=1\sum_j q_{ij}(k) = 1∑j​qij​(k)=1, and a cost wikw_{ik}wik​ is incurred.

A procedure RRR chooses decision dkd_kdk​ at time ttt with probability Dk(X0,Δ0,…,Xt)D_k(X_0, \Delta_0, \dots, X_t)Dk​(X0​,Δ0​,…,Xt​), which may depend on the whole history of states XsX_sXs​ and decisions Δs\Delta_sΔs​. The class of all procedures is CCC. The class C′C'C′ consists of the stationary randomized procedures, for which this probability is a number DikD_{ik}Dik​ depending only on the current state iii. The class C′′C''C′′ consists of the deterministic stationary procedures, those of C′C'C′ with Dik∈{0,1}D_{ik} \in \{0, 1\}Dik​∈{0,1}, that is, maps fff from states to decisions; C′′C''C′′ is finite.

Started from X0=iX_0 = iX0​=i, a procedure RRR incurs the expected cost WtW_tWt​ at time ttt. The criteria are

QR(i)=lim sup⁡T→∞1T∑t=0TWt(Problem 1),SR(i)=∑t=0∞Wt∈[0,∞](Problem 2),Q_R(i) = \limsup_{T \to \infty} \frac1T \sum_{t=0}^{T} W_t \quad\text{(Problem 1)}, \qquad S_R(i) = \sum_{t=0}^{\infty} W_t \in [0, \infty] \quad\text{(Problem 2)},QR​(i)=T→∞limsup​T1​t=0∑T​Wt​(Problem 1),SR​(i)=t=0∑∞​Wt​∈[0,∞](Problem 2),

and, for a discount factor 0<α<10 < \alpha < 10<α<1, the auxiliary discounted cost VR(i,α)=∑t≥0αtWtV_R(i, \alpha) = \sum_{t \ge 0} \alpha^t W_tVR​(i,α)=∑t≥0​αtWt​. Problem 1 assumes wik>0w_{ik} > 0wik​>0. Problem 2 assumes that state LLL is absorbing under every decision and that wLk=0w_{Lk} = 0wLk​=0, so SR(i)S_R(i)SR​(i) is the expected cost of driving the system from iii into LLL.

Formalization targets

Goal: Theorem 1

There are procedures R1,R2∈C′′R_1, R_2 \in C''R1​,R2​∈C′′ such that, for every state iii,

QR1(i)=min⁡R∈CQR(i)(Problem 1),SR2(i)=min⁡R∈CSR(i)  (possibly ∞)(Problem 2).Q_{R_1}(i) = \min_{R \in C} Q_R(i) \quad\text{(Problem 1)}, \qquad S_{R_2}(i) = \min_{R \in C} S_R(i) \ \ (\text{possibly } \infty) \quad\text{(Problem 2)}.QR1​​(i)=R∈Cmin​QR​(i)(Problem 1),SR2​​(i)=R∈Cmin​SR​(i)  (possibly ∞)(Problem 2).

One procedure serves every initial state, and the minimum is over all of CCC.

Milestones, in the order of the proof

  1. The functional equation: Vi=min⁡R∈CVR(i,α)V_i = \min_{R \in C} V_R(i, \alpha)Vi​=minR∈C​VR​(i,α) satisfies Vi=min⁡Di∑kDik (wik+α∑jqij(k)Vj)V_i = \min_{D_i} \sum_k D_{ik}\,(w_{ik} + \alpha \sum_j q_{ij}(k) V_j)Vi​=minDi​​∑k​Dik​(wik​+α∑j​qij​(k)Vj​), the minimum over randomizations DiD_iDi​ being attained.
  2. For each α∈(0,1)\alpha \in (0,1)α∈(0,1) some Rα∈C′′R_\alpha \in C''Rα​∈C′′ minimizes VR(i,α)V_R(i, \alpha)VR​(i,α) over CCC.
  3. One R∗∈C′′R^* \in C''R∗∈C′′ is αv\alpha_vαv​-discount optimal along a sequence αv→1\alpha_v \to 1αv​→1.
  4. lim⁡v(1−αv)VR∗(i,αv)=QR∗(i)\lim_{v} (1 - \alpha_v) V_{R^*}(i, \alpha_v) = Q_{R^*}(i)limv​(1−αv​)VR∗​(i,αv​)=QR∗​(i) for a stationary R∗R^*R∗ (published).
  5. The Abelian inequality QR(i)≥lim sup⁡α→1−(1−α)VR(i,α)Q_R(i) \ge \limsup_{\alpha \to 1^-} (1 - \alpha) V_R(i, \alpha)QR​(i)≥limsupα→1−​(1−α)VR​(i,α) for every R∈CR \in CR∈C (published).
  6. Theorem 1 (1) itself (published, as part of Sennott's Proposition 6.2.3).
  7. SR(i)=lim⁡α→1−VR(i,α)S_R(i) = \lim_{\alpha \to 1^-} V_R(i, \alpha)SR​(i)=limα→1−​VR​(i,α) for every R∈CR \in CR∈C, finite or not.

Significance

Theorem 1 is what makes finite optimization possible for these problems: once C′′C''C′′ is known to contain an optimal procedure, the search runs over finitely many maps, and the linear programs of the paper's §3 (the next mission of this series) and of Manne describe the whole problem rather than a restriction of it. Part (2) is a total-cost result without any assumption that the absorbing state is reached; it holds even when every procedure has infinite cost from some state, which separates it from the stochastic shortest path theory that assumes properness.

Part (1) is available on the platform as part of Sennott's Proposition 6.2.3 (stated there, not yet proved), and it is referenced here rather than restated. Part (2), the functional equation for history-dependent procedures and the Abel-limit identity for the total cost have no statement on the platform; to our knowledge none has a machine-checked proof.

Difficulty

The obvious argument compares an arbitrary procedure with stationary ones state by state, but a history-dependent randomized procedure does not induce a Markov chain, so no transition matrix is available for it. The comparison has to pass through the discounted problem, where an optimal stationary procedure exists for each α\alphaα, and then let α→1\alpha \to 1α→1. Two limit exchanges are needed: for the average cost, an Abelian inequality valid for every procedure plus a Markov chain limit theorem for the stationary one; for the total cost, monotone convergence in [0,∞][0, \infty][0,∞], which must work when the limit is infinite. The discount-optimal procedure depends on α\alphaα, and the finiteness of C′′C''C′′ is what yields a single procedure along a sequence αv→1\alpha_v \to 1αv​→1.

Formalization scope

The model is the published SennottDP.AvgFinite.Model (a Markov decision chain with finite action sets, nonnegative costs in R≥0\mathbb R_{\ge 0}R≥0​ and transition probabilities in [0,∞][0, \infty][0,∞]) with finite nonempty types of states and decisions and every action set equal to the whole decision type. Derman's class CCC is its Policy (history-dependent, randomized); C′′C''C′′ is StationaryPolicy. WtW_tWt​ is expCost, VR(i,α)V_R(i, \alpha)VR​(i,α) is discCost, and QR(i)Q_R(i)QR​(i) is avgCost =lim sup⁡n1n∑t<nWt= \limsup_n \frac1n \sum_{t<n} W_t=limsupn​n1​∑t<n​Wt​, which has the same value as Derman's normalization because WtW_tWt​ is bounded. SR(i)S_R(i)SR​(i) is a new definition, a sum in [0,∞][0, \infty][0,∞]. Every discount factor is restricted to (0,1)(0, 1)(0,1) explicitly. "Minimum over CCC" is stated as an inequality against every policy, with the optimal procedure chosen before the initial state.

Problems 1 and 2 enter as separate implications with their own cost hypotheses; the page's "wik>0w_{ik} > 0wik​>0" is read as wik>0w_{ik} > 0wik​>0 for i≠Li \ne Li=L in Problem 2, since wLk=0w_{Lk} = 0wLk​=0 there. A formalization that compares only against stationary procedures, or that states the total cost as a real series (whose divergent values default to 000), is ruled out: the competitors are all policies and SR(i)S_R(i)SR​(i) lives in [0,∞][0, \infty][0,∞].

A complete development needs the discounted Bellman equation for history-dependent policies, the selection of a deterministic minimizer, and Abelian theorems for nonnegative series. These are reusable across the platform's dynamic programming missions, and proofs of the referenced Sennott propositions are welcome contributions in their own right.

Selected references

  • C. Derman, On Sequential Decisions and Markov Chains, Management Science 9(1):16–24, 1962. https://doi.org/10.1287/mnsc.9.1.16
  • S. Karlin, The Structure of Dynamic Programming Models, Naval Research Logistics Quarterly 2(4):285–294, 1955. https://doi.org/10.1002/nav.3800020408
  • A. S. Manne, Linear Programming and Sequential Decisions, Management Science 6(3):259–267, 1960. https://doi.org/10.1287/mnsc.6.3.259
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
  • H. M. Wagner, On the Optimality of Pure Strategies, Management Science 6(3):268–269, 1960. https://doi.org/10.1287/mnsc.6.3.268
  • D. Blackwell, Discrete Dynamic Programming, Annals of Mathematical Statistics 33(2):719–726, 1962. https://doi.org/10.1214/aoms/1177704593
  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley, 1999, Propositions 6.1.1, 6.2.2, 6.2.3. https://doi.org/10.1002/9780470317037
11 thms3 active usersReviewed
Operations ResearchProbabilityStochastic Systems·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems XIII: Lyapunov Criteria and z Standard Markov Chains with CostsTextbook

Motivation

Average cost control of queues rests on a small amount of Markov chain theory: when does a chain with costs have a well defined long-run average cost, and how can that be checked for a concrete model with an unbounded state space? Appendix C of L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999, doi:10.1002/9780470317037) collects this material for countable state spaces and packages it in one hypothesis, the zzz standard chain. Chapters 7–10 of the book verify this hypothesis for the Markov chains induced by stationary policies in admission, routing and service-rate control models, and use its consequences to prove existence of average cost optimal policies.

The tools are Lyapunov functions in the sense of Foster (1953): a nonnegative function on the states whose expected one-step change is negative away from a finite set. Foster's criterion for positive recurrence, and its refinements bounding expected first passage times and costs, are the standard way to verify stability of queueing networks (Meyn and Tweedie, Markov Chains and Stochastic Stability, 1993/2009).

Setting

A Markov chain Γ\GammaΓ on a countable set SSS is given by transition probabilities Pij≥0P_{ij}\ge 0Pij​≥0 with ∑jPij=1\sum_j P_{ij}=1∑j​Pij​=1. XtX_tXt​ is the state at time ttt and Pij(t)P^{(t)}_{ij}Pij(t)​ the ttt-step transition probability (Pij(0)=δijP^{(0)}_{ij}=\delta_{ij}Pij(0)​=δij​). State iii leads to jjj if Pij(t)>0P^{(t)}_{ij}>0Pij(t)​>0 for some t≥0t\ge0t≥0; states that lead to each other communicate, which partitions SSS into communicating classes.

For a nonempty G⊆SG\subseteq SG⊆S the first passage time from iii is TiG=min⁡{t≥1:Xt∈G}T_{iG}=\min\{t\ge1: X_t\in G\}TiG​=min{t≥1:Xt​∈G} given X0=iX_0=iX0​=i, and miG=E[TiG]∈[0,∞]m_{iG}=E[T_{iG}]\in[0,\infty]miG​=E[TiG​]∈[0,∞]; mijm_{ij}mij​ is the case G={j}G=\{j\}G={j} and miim_{ii}mii​ the expected return time. The taboo probability GPik(t)_G P^{(t)}_{ik}G​Pik(t)​ is the probability of going from iii to kkk in ttt steps without visiting GGG at the intermediate times, and Guik_G u_{ik}G​uik​ is the expected number of visits to kkk at times 0≤t<TiG0\le t<T_{iG}0≤t<TiG​. A state is transient if P(Tii<∞)<1P(T_{ii}<\infty)<1P(Tii​<∞)<1 and positive recurrent if mii<∞m_{ii}<\inftymii​<∞; a positive recurrent class is a communicating class of positive recurrent states. The steady state probability is πj=(mjj)−1\pi_j=(m_{jj})^{-1}πj​=(mjj​)−1 (zero when mjj=∞m_{jj}=\inftymjj​=∞).

Each state carries a finite cost C(i)≥0C(i)\ge0C(i)≥0. The expected average cost over [0,n−1][0,n-1][0,n−1] from iii is

Ji(n)=1n E[∑t=0n−1C(Xt) ∣ X0=i]=1n∑t=0n−1∑jPij(t)C(j),J^{(n)}_i=\frac1n\,E\Big[\sum_{t=0}^{n-1}C(X_t)\,\Big|\,X_0=i\Big]=\frac1n\sum_{t=0}^{n-1}\sum_j P^{(t)}_{ij}C(j),Ji(n)​=n1​E[t=0∑n−1​C(Xt​)​X0​=i]=n1​t=0∑n−1​j∑​Pij(t)​C(j),

ciGc_{iG}ciG​ is the expected cost E[∑t=0TiG−1C(Xt)∣X0=i]E[\sum_{t=0}^{T_{iG}-1}C(X_t)\mid X_0=i]E[∑t=0TiG​−1​C(Xt​)∣X0​=i] of a first passage (defined when miG<∞m_{iG}<\inftymiG​<∞), and JR=∑j∈RπjC(j)J_R=\sum_{j\in R}\pi_jC(j)JR​=∑j∈R​πj​C(j) is the average cost on a positive recurrent class RRR. The chain is zzz standard (Definition C.2.5) if for a distinguished state zzz

miz<∞andciz<∞for all i∈S.m_{iz}<\infty\quad\text{and}\quad c_{iz}<\infty\qquad\text{for all } i\in S.miz​<∞andciz​<∞for all i∈S.

Formalization targets

Goal: Proposition C.2.6

If Γ\GammaΓ is zzz standard, then SSS is the union of a positive recurrent class R∋zR\ni zR∋z and a set of transient states, JR<∞J_R<\inftyJR​<∞, and

lim⁡n→∞Ji(n)=JRfor every i∈S.\lim_{n\to\infty}J^{(n)}_i=J_R\qquad\text{for every } i\in S.n→∞lim​Ji(n)​=JR​for every i∈S.

The statement fixes no constants: it asserts that the average cost exists, is finite, and does not depend on the initial state.

Milestones

  1. Proposition C.1.2: π\piπ is the unique stationary distribution of a positive recurrent class, and πj=eij/mii=πieij\pi_j=e_{ij}/m_{ii}=\pi_ie_{ij}πj​=eij​/mii​=πi​eij​.
  2. Proposition C.1.4: the first-step equations (C.2)–(C.4) for taboo probabilities, visit counts and miGm_{iG}miG​; ∑i∈GπimiG=1\sum_{i\in G}\pi_im_{iG}=1∑i∈G​πi​miG​=1 for GGG inside a positive recurrent class; mij<∞m_{ij}<\inftymij​<∞ within such a class.
  3. Proposition C.1.5: if ∑jPij[y(j)−y(i)]≤−ϵ\sum_jP_{ij}[y(j)-y(i)]\le-\epsilon∑j​Pij​[y(j)−y(i)]≤−ϵ off GGG, then miG≤y(i)/ϵm_{iG}\le y(i)/\epsilonmiG​≤y(i)/ϵ.
  4. Corollary C.1.6: the same with G={z}G=\{z\}G={z} and ∑jPzjy(j)<∞\sum_jP_{zj}y(j)<\infty∑j​Pzj​y(j)<∞ makes zzz positive recurrent.
  5. Proposition C.2.1: on a positive recurrent class, Ji(n)→JR=cii/miiJ^{(n)}_i\to J_R=c_{ii}/m_{ii}Ji(n)​→JR​=cii​/mii​.
  6. Proposition C.2.2: ciG=∑kC(k) Guikc_{iG}=\sum_kC(k)\,{}_Gu_{ik}ciG​=∑k​C(k)G​uik​, the first-step equation (C.13), and JR=∑i∈GπiciGJ_R=\sum_{i\in G}\pi_ic_{iG}JR​=∑i∈G​πi​ciG​.
  7. Proposition C.2.3 and Corollary C.2.4: the cost drift condition ∑jPij[r(j)−r(i)]≤−C(i)\sum_jP_{ij}[r(j)-r(i)]\le-C(i)∑j​Pij​[r(j)−r(i)]≤−C(i) off a finite set bounds ciG≤r(i)+FmiGc_{iG}\le r(i)+Fm_{iG}ciG​≤r(i)+FmiG​, and gives czz<∞c_{zz}<\inftyczz​<∞.
  8. Remark C.2.7: the hypotheses of C.1.6 and C.2.4 together imply the chain is zzz standard; so do irreducibility, positive recurrence and finite average cost.

Significance

Proposition C.2.6 is what makes the zzz standard hypothesis useful: an average cost criterion that is a genuine limit, finite, and independent of the initial state, even for chains with transient states and unbounded state spaces. Every average cost optimality result of the book that works with a stationary policy's induced chain (the (SEN) and (BOR) assumption sets, the approximating-sequence method, the continuous-time chapter) calls on this proposition or on the Lyapunov criteria of Remark C.2.7 to establish its hypotheses for queueing models.

All results of the mission are classical and proved in the literature; parts are stated in the book without proof and referred to Chung (1967), Grassmann et al. (1985) and renewal theory. None of them has been machine-checked in this form as far as the platform and Mathlib show: Mathlib has kernels and Ionescu-Tulcea trajectories but no countable-state Markov chain classification, no first passage calculus, and no Foster–Lyapunov criterion. Existing platform results on countable chains (the Levin–Peres–Wilmer series) treat irreducible chains without costs. A complete development here produces a reusable library of first passage identities, Foster–Lyapunov bounds for times and costs, and average cost limits on reducible chains.

Difficulty

The Lyapunov bounds (C.1.5, C.2.3) are telescoping arguments, but they require a clean handling of truncated passages and of sums that may be infinite: (C.7) is an inequality between possibly divergent series, and the step "iterate nnn times and let n→∞n\to\inftyn→∞" must be made rigorous for [0,∞][0,\infty][0,∞]-valued expectations.

The central difficulty is part (iii) of the goal for transient initial states. On the class RRR, the limit of Ji(n)J^{(n)}_iJi(n)​ is a renewal reward theorem over successive returns to zzz; from a transient state the first cycle has a different law, so a delayed renewal reward argument is needed, and it has to cover the case where costs are unbounded. The obvious approach, bounding Ji(n)J^{(n)}_iJi(n)​ between JRJ_RJR​ and the average over the first nnn steps of the chain started in zzz, fails because Pij(t)P^{(t)}_{ij}Pij(t)​ need not converge (periodic classes) and because finite cizc_{iz}ciz​ does not bound individual cost terms. Proposition C.1.2's uniqueness and the Kac-type identity of C.1.4(iv) likewise need the full cycle decomposition of a positive recurrent class.

Formalization scope

The chain is a structure MC S with P : S → S → ℝ≥0∞ and ∑' j, P i j = 1, over a countable type S; costs are C : S → ℝ≥0. Probabilities and expectations are ℝ≥0∞-valued sums over finite paths Fin (t+1) → S, so every quantity is defined without summability side conditions and may be ∞\infty∞. The first passage time is TiG≥1T_{iG}\ge1TiG​≥1; miGm_{iG}miG​ is the expectation of TiGT_{iG}TiG​ from its law (and ∞\infty∞ when P(TiG<∞)<1P(T_{iG}<\infty)<1P(TiG​<∞)<1), not defined by the recursion (C.4), so that (C.4) is a theorem. Guik_Gu_{ik}G​uik​ counts visits at times 0≤t<TiG0\le t<T_{iG}0≤t<TiG​. ciGc_{iG}ciG​ is computed over first passage paths and is used only when miG<∞m_{iG}<\inftymiG​<∞, as in the book. πj\pi_jπj​ is (mjj)−1(m_{jj})^{-1}(mjj​)−1, which the book states equals the Cesàro limit lim⁡nQjj(n)\lim_nQ^{(n)}_{jj}limn​Qjj(n)​. Ji(n)J^{(n)}_iJi(n)​ is meaningful for n≥1n\ge1n≥1, and limits are taken in [0,∞][0,\infty][0,∞]. The drift conditions ∑jPij[y(j)−y(i)]≤−ϵ\sum_jP_{ij}[y(j)-y(i)]\le-\epsilon∑j​Pij​[y(j)−y(i)]≤−ϵ and ∑jPij[r(j)−r(i)]≤−C(i)\sum_jP_{ij}[r(j)-r(i)]\le-C(i)∑j​Pij​[r(j)−r(i)]≤−C(i) are written in the equivalent additive form ∑jPijy(j)+ϵ≤y(i)\sum_jP_{ij}y(j)+\epsilon\le y(i)∑j​Pij​y(j)+ϵ≤y(i), which is equivalent for finite yyy and makes the case ∑jPijy(j)=∞\sum_jP_{ij}y(j)=\infty∑j​Pij​y(j)=∞ fail, as it does in the book.

A trivializing formalization, such as defining miGm_{iG}miG​ or ciGc_{iG}ciG​ by the equations (C.4) or (C.13), defining JRJ_RJR​ as the limit of Ji(n)J^{(n)}_iJi(n)​, or allowing a zzz standard chain whose return time or return cost to zzz is infinite, is ruled out: zzz standard requires miz<∞m_{iz}<\inftymiz​<∞ and ciz<∞c_{iz}<\inftyciz​<∞ for every iii including zzz, and each quantity is defined from path probabilities.

Needed infrastructure: path-sum manipulation in [0,∞][0,\infty][0,∞] (first-step and last-step decompositions), the ratio limit / renewal reward theorem for a positive recurrent class, and the delayed version for transient starts. The first passage calculus and the Lyapunov bounds are reusable by the book's other chapters on average cost, which state the zzz standard property for policy-induced chains. Contributions of lemmas on path sums and of an independent renewal reward library are welcome.

Selected references

  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley, 1999, Appendix C, pp. 292–302. doi:10.1002/9780470317037
  • K. L. Chung, Markov Chains with Stationary Transition Probabilities, 2nd ed., Springer, 1967. doi:10.1007/978-3-642-62015-7
  • F. G. Foster, On the stochastic matrices associated with certain queuing processes, Annals of Mathematical Statistics 24 (1953), 355–360. doi:10.1214/aoms/1177728976
  • S. P. Meyn and R. L. Tweedie, Markov Chains and Stochastic Stability, 2nd ed., Cambridge University Press, 2009. doi:10.1017/CBO9780511626630
  • D. P. Heyman and M. J. Sobel, Stochastic Models in Operations Research, Vol. I, McGraw-Hill, 1982.
12 thms3 active usersReviewed
🏆Completed
Dynamic ProgrammingOperations ResearchProbability·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems IV: Average Cost Optimal Stationary Policies Exist for Finite State SpacesTextbook

Why average cost on finite state spaces

Controlled queues, inventories and communication links are run for a long time, and the quantity an operator usually cares about is the long-run average cost per period rather than a discounted total. The average cost criterion is harder to work with than the discounted one: its value is a lim sup⁡\limsuplimsup of Cesàro means, it is not given by a contraction, and for general (history dependent, randomized) policies the limit need not exist. Chapter 6 of L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999) treats the case of a finite state space, where the strongest results hold: an average cost optimal policy exists, can be taken stationary, and can be obtained as a limit of discount optimal policies as the discount factor tends to one.

The results go back to D. Blackwell, "Discrete dynamic programming", Ann. Math. Statist. 33 (1962), who showed that for finite states and actions some stationary policy is discount optimal for all discount factors close to one. Such a policy is now called Blackwell optimal. Sennott's Chapter 6 derives average cost optimality of this policy and the multichain average cost optimality equation from it, in the notation used throughout the book.

Setting

A Markov decision chain (MDC) Δ\DeltaΔ has a countable state space SSS, a finite nonempty action set AiA_iAi​ in each state iii, nonnegative finite costs C(i,a)C(i,a)C(i,a), and transition probabilities Pij(a)P_{ij}(a)Pij​(a) with ∑jPij(a)=1\sum_j P_{ij}(a) = 1∑j​Pij​(a)=1. A policy θ\thetaθ chooses the action at time ttt from a distribution θ(⋅∣ht)\theta(\cdot \mid h_t)θ(⋅∣ht​) on AitA_{i_t}Ait​​ that may depend on the whole history ht=(i0,a0,…,it)h_t = (i_0,a_0,\ldots,i_t)ht​=(i0​,a0​,…,it​). A stationary policy fff always chooses a fixed action f(i)∈Aif(i) \in A_if(i)∈Ai​ in state iii.

With Xt,AtX_t, A_tXt​,At​ the state and action at time ttt and X0=iX_0 = iX0​=i, define

  • the discounted cost Vθ,α(i)=∑t≥0αtEθ[C(Xt,At)]V_{\theta,\alpha}(i) = \sum_{t \ge 0} \alpha^t E_\theta[C(X_t,A_t)]Vθ,α​(i)=∑t≥0​αtEθ​[C(Xt​,At​)] for 0<α<10<\alpha<10<α<1, and the discounted value function Vα(i)=inf⁡θVθ,α(i)V_\alpha(i) = \inf_\theta V_{\theta,\alpha}(i)Vα​(i)=infθ​Vθ,α​(i);
  • the nnn horizon cost vθ,n(i)=∑t=0n−1Eθ[C(Xt,At)]v_{\theta,n}(i) = \sum_{t=0}^{n-1} E_\theta[C(X_t,A_t)]vθ,n​(i)=∑t=0n−1​Eθ​[C(Xt​,At​)];
  • the average cost Jθ(i)=lim sup⁡nvθ,n(i)/nJ_\theta(i) = \limsup_n v_{\theta,n}(i)/nJθ​(i)=limsupn​vθ,n​(i)/n, its lim inf⁡\liminfliminf version Jθ∗(i)J^*_\theta(i)Jθ∗​(i), and the minimum average cost J(i)=inf⁡θJθ(i)J(i) = \inf_\theta J_\theta(i)J(i)=infθ​Jθ​(i).

All infima range over all general policies, and every quantity may equal +∞+\infty+∞. A policy is α\alphaα discount optimal if Vθ,α=VαV_{\theta,\alpha} = V_\alphaVθ,α​=Vα​, and average cost optimal if Jθ=JJ_\theta = JJθ​=J.

For a stationary policy fff on a finite state space, the induced Markov chain splits into positive recurrent classes R1,…,RKR_1,\ldots,R_KR1​,…,RK​ and transient states. With pk(i)p_k(i)pk​(i) the probability of reaching RkR_kRk​ from iii, distinguished states zk∈Rkz_k \in R_kzk​∈Rk​, and Wα(i)=∑kpk(i)Vα(zk)W_\alpha(i) = \sum_k p_k(i) V_\alpha(z_k)Wα​(i)=∑k​pk​(i)Vα​(zk​), the relative value function is wα(i)=Vα(i)−Wα(i)w_\alpha(i) = V_\alpha(i) - W_\alpha(i)wα​(i)=Vα​(i)−Wα​(i).

Formalization targets

Goal: Proposition 6.2.3

For an MDC with a finite state space there are α0∈(0,1)\alpha_0 \in (0,1)α0​∈(0,1) and one stationary policy fff such that fff is α\alphaα discount optimal for every α∈(α0,1)\alpha \in (\alpha_0,1)α∈(α0​,1), fff is average cost optimal, and

J(i)=lim⁡α→1−(1−α)Vα(i)=lim⁡n→∞vf,n(i)n,i∈S.J(i) = \lim_{\alpha\to 1^-} (1-\alpha) V_\alpha(i) = \lim_{n\to\infty} \frac{v_{f,n}(i)}{n}, \qquad i \in S.J(i)=α→1−lim​(1−α)Vα​(i)=n→∞lim​nvf,n​(i)​,i∈S.

Milestones

  1. Proposition 4.5.3. For finite SSS and stationary eee, α↦Ve,α(i)\alpha \mapsto V_{e,\alpha}(i)α↦Ve,α​(i) is a finite, continuous, rational function on (0,1)(0,1)(0,1).
  2. Proposition 6.1.1. For every policy on a countable state space,
Jθ∗(i)≤lim inf⁡α→1−(1−α)Vθ,α(i)≤lim sup⁡α→1−(1−α)Vθ,α(i)≤Jθ(i),J^*_\theta(i) \le \liminf_{\alpha\to1^-}(1-\alpha)V_{\theta,\alpha}(i) \le \limsup_{\alpha\to1^-}(1-\alpha)V_{\theta,\alpha}(i) \le J_\theta(i),Jθ∗​(i)≤α→1−liminf​(1−α)Vθ,α​(i)≤α→1−limsup​(1−α)Vθ,α​(i)≤Jθ​(i),

with three equivalent conditions for equality. 3. Proposition 6.2.2. For finite SSS and stationary eee, Je(i)=lim⁡α→1−(1−α)Ve,α(i)=lim⁡nve,n(i)/nJ_e(i) = \lim_{\alpha\to1^-}(1-\alpha)V_{e,\alpha}(i) = \lim_n v_{e,n}(i)/nJe​(i)=limα→1−​(1−α)Ve,α​(i)=limn​ve,n​(i)/n. 4. Proposition 4.5.1, Proposition 4.5.4, Corollary 4.5.5. The power series structure of Vθ,αV_{\theta,\alpha}Vθ,α​ in α\alphaα; monotonicity and left continuity of VαV_\alphaVα​; continuity under bounded costs. 5. Theorem 6.3.1. For the policy fff of the goal, lim⁡α→1−wα(i)=w(i)\lim_{\alpha \to 1^-} w_\alpha(i) = w(i)limα→1−​wα​(i)=w(i) exists, and

J(i)+w(i)=C(i,f)+∑jPij(f)w(j) ≥ min⁡a{C(i,a)+∑jPij(a)w(j)},J(i) + w(i) = C(i,f) + \sum_j P_{ij}(f) w(j) \ \ge\ \min_{a} \Big\{C(i,a) + \sum_j P_{ij}(a) w(j)\Big\},J(i)+w(i)=C(i,f)+j∑​Pij​(f)w(j) ≥ amin​{C(i,a)+j∑​Pij​(a)w(j)},

together with the limit identities (i)–(iii) and the optimality criterion (v). 6. Proposition 6.3.3. Vα(i)=J(i)/(1−α)+w∗(i)+εα(i)V_\alpha(i) = J(i)/(1-\alpha) + w^*(i) + \varepsilon_\alpha(i)Vα​(i)=J(i)/(1−α)+w∗(i)+εα​(i) with εα(i)→0\varepsilon_\alpha(i) \to 0εα​(i)→0 as α→1−\alpha \to 1^-α→1−.

Significance

The goal says that on a finite state space nothing is gained by randomizing or by remembering the past when minimizing average cost, and that the minimum average cost is the vanishing-discount limit of the discounted value function. This justifies computing average cost optimal policies through discounted problems and value iteration, the route taken in the rest of Chapter 6 and, via approximating sequences, for countable state spaces in Chapters 7 and 8. Theorem 6.3.1 supplies an optimality equation without any unichain or communication assumption. The book's Example 6.3.2 shows that the inequality in that equation can be strict, and that a stationary policy attaining the minimum need not be optimal.

The results are classical and proved in the book. No machine-checked version of them is known to exist. The platform has average-reward results for unichain finite MDPs with Markov policies (the Puterman series) and an average-cost optimality equation under recurrence assumptions (the Bertsekas series). Neither covers existence of a Blackwell optimal policy against the class of all history dependent randomized policies, or the multichain equation. A formal development also yields reusable infrastructure: the law of a controlled process under a general policy, first passage quantities of finite chains, and the Abelian inequality between Abel and Cesàro means of a nonnegative sequence.

Difficulty

The obvious argument picks, for each α\alphaα, a stationary discount optimal policy fαf_\alphafα​ and lets α→1\alpha \to 1α→1. Finiteness of the set of stationary policies gives one policy that is optimal along some sequence αn→1\alpha_n \to 1αn​→1, but not on an interval. Excluding infinite switching between two policies requires the analytic structure of α↦Vf,α(i)\alpha \mapsto V_{f,\alpha}(i)α↦Vf,α​(i) (Proposition 4.5.3), which in turn rests on matrix inversion of I−αPI - \alpha PI−αP. Passing from the discounted criterion to the average one requires an Abelian inequality for nonnegative series whose terms may be infinite (Proposition 6.1.1), and comparison against general policies rules out any argument that works only within stationary or Markov policies. For Theorem 6.3.1 the difficulty is the multichain structure: the relative value function has to be assembled class by class from first passage times and costs, and its limit must be identified.

Formalization scope

  • States form a type S; [Countable S] for Section 4.5 and Proposition 6.1.1, [Fintype S] from Section 6.2 on, as in the book. Actions form a type Act with A i : Finset Act nonempty. Costs are in ℝ≥0, transition probabilities in ℝ≥0∞.
  • A general policy is a function of the list of past state-action pairs (most recent first) and the current state, giving a distribution on A i. Stationary policies embed as degenerate policies. The law of the process is built from this data, and every infimum ranges over all general policies.
  • Vθ,αV_{\theta,\alpha}Vθ,α​, VαV_\alphaVα​, vθ,nv_{\theta,n}vθ,n​, JθJ_\thetaJθ​, Jθ∗J^*_\thetaJθ∗​, JJJ are in ℝ≥0∞, so +∞+\infty+∞ is represented. α→1−\alpha \to 1^-α→1− is the filter 𝓝[<] 1. On a finite state space these quantities are finite. The real valued objects of Section 6.3 (wαw_\alphawα​, www, w∗w^*w∗, equation (6.6)) are therefore formed with toReal, and this switch from ℝ≥0∞ to ℝ happens only in Theorem 6.3.1 and Proposition 6.3.3.
  • The objects of Section 6.3 (pkp_kpk​, mi∣km_{i|k}mi∣k​, ci∣kc_{i|k}ci∣k​, πs\pi_sπs​, WαW_\alphaWα​) are defined from fff. The distinguished states are a hypothesis quantified over.
  • A trivializing formalization would take the infimum over stationary policies only, let the optimal policy depend on α\alphaα, or state rationality as an equation p/q without requiring q≠0q \ne 0q=0. Each is excluded here: JJJ and VαV_\alphaVα​ are infima over all general policies, one pair (α0,f)(\alpha_0,f)(α0​,f) is quantified before all α\alphaα, and the denominator is required to be nonzero on (0,1)(0,1)(0,1).

Useful infrastructure includes rational functions of one real variable and their finitely many sign changes, the resolvent (I−αP)−1(I-\alpha P)^{-1}(I−αP)−1 of a stochastic matrix, the Abelian inequality for [0,∞][0,\infty][0,∞]-valued sequences, and renewal-reward identities for finite chains. Contributions of general lemmas on these topics are welcome, as are proofs of individual milestones.

Selected references

  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley, 1999. https://doi.org/10.1002/9780470317037
  • D. Blackwell, "Discrete dynamic programming", Annals of Mathematical Statistics 33 (1962), 719–726. https://doi.org/10.1214/aoms/1177704593
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
13 thms3 active usersReviewed
Algorithmic Game TheoryDynamic ProgrammingOperations Research·Captain: mikedeng1

Markovian Decision Processes with Uncertain Transition Probabilities I: The Max-Min Policy-Iteration Algorithm Terminates at a Max-Min Optimal Pure Stationary PolicyResearch Paper

Motivation

Howard's finite Markovian decision process (MDP) models a controller who, at each instant, observes the state of a system, chooses a decision, collects a reward and moves to a random next state with known transition probabilities. Howard's policy-iteration algorithm computes an optimal policy, and the model has been applied to inventory control, equipment replacement, quality control and marketing. Its weak point is the requirement that every transition probability be known exactly: in applications these numbers are estimated and are hard to measure.

Satia and Lave (Operations Research 21(3), 1973) relax this requirement. In their game-theoretic formulation, the controller knows only a set of admissible probability rows for every state–decision pair, and nature chooses the rows adversarially. This is the model now called a robust MDP with (s,a)-rectangular uncertainty, studied later by Iyengar (Math. Oper. Res. 2005) and Nilim and El Ghaoui (Oper. Res. 2005), who reprove and extend the dynamic-programming results for it. The paper gives a policy-iteration algorithm for the max-min criterion and proves that it terminates at an optimal policy. This mission formalizes that part of the paper (pp. 728–732).

Timeline:

  • 1953: Shapley introduces stochastic games (PNAS 39).
  • 1960: Howard, Dynamic Programming and Markov Processes, policy iteration for known transitions.
  • 1973: Satia and Lave, max-min and max-max policy iteration for uncertain transitions (dynamic-programming equations and optimality of pure stationary policies cited from Satia's 1968 Stanford thesis).
  • 2005: Iyengar; Nilim and El Ghaoui, robust dynamic programming under rectangular uncertainty.

Setting

There are finitely many states iii and, in state iii, a finite nonempty set DiD_iDi​ of decisions kkk. A transition i→ji\to ji→j under decision kkk earns reward rijkr^k_{ij}rijk​; rewards are discounted by β\betaβ with 0≤β<10\le\beta<10≤β<1. For every pair (i,k)(i,k)(i,k) there is a nonempty, closed, convex set SikS_i^kSik​ of probability rows p=(p1,…,pN)p=(p_1,\dots,p_N)p=(p1​,…,pN​), pj≥0p_j\ge0pj​≥0, ∑jpj=1\sum_j p_j=1∑j​pj​=1. Nature's choice is a matrix P∈SP\in SP∈S: one row pik∈Sikp_i^k\in S_i^kpik​∈Sik​ for every pair.

A pure stationary policy A=(A1,…,AN)A=(A_1,\dots,A_N)A=(A1​,…,AN​) selects Ai∈DiA_i\in D_iAi​∈Di​. Under PPP its present value vA(P)v^A(P)vA(P) is the unique solution of equations (5),

viA=∑jpijAi(rijAi+βvjA).v_i^A=\sum_j p^{A_i}_{ij}\big(r^{A_i}_{ij}+\beta v_j^A\big).viA​=j∑​pijAi​​(rijAi​​+βvjA​).

Nature's minimum is v‾i(A)=inf⁡P∈SviA(P)\underline v_i(A)=\inf_{P\in S}v_i^A(P)v​i​(A)=infP∈S​viA​(P), and the max-min return of criterion (2) is vˉi=max⁡Av‾i(A)\bar v_i=\max_A\underline v_i(A)vˉi​=maxA​v​i​(A). A policy is max-min optimal if v‾(A)=vˉ\underline v(A)=\bar vv​(A)=vˉ in every state.

The algorithm alternates two routines. Phase 1 (nature's policy evaluation) fixes AAA, computes vAv^AvA from the current rows, replaces each row at AiA_iAi​ by a minimizer of ∑jpj(rijAi+βvjA)\sum_j p_j(r^{A_i}_{ij}+\beta v^A_j)∑j​pj​(rijAi​​+βvjA​) over SiAiS_i^{A_i}SiAi​​ (6), and stops when the minima reproduce vAv^AvA. Phase 2 (policy improvement) chooses in each state a decision BiB_iBi​ maximizing the test quantity (7),

tik(v)=min⁡p∈Sik∑jpj(rijk+βvj),t_i^k(v)=\min_{p\in S_i^k}\sum_j p_j\big(r^k_{ij}+\beta v_j\big),tik​(v)=p∈Sik​min​j∑​pj​(rijk​+βvj​),

at v=v‾(A)v=\underline v(A)v=v​(A), keeping AiA_iAi​ on ties; if B=AB=AB=A the algorithm terminates.

Formalization targets

Goal: Proposition 5 with Proposition 3

Along every run A0,A1,…A^0,A^1,\dotsA0,A1,… of Phase 2 steps,

v‾(An)≤v‾(An+1)  ∀n,∃ n<#{policies}: An+1=An,  v‾(An)=vˉ,\underline v(A^n)\le\underline v(A^{n+1})\ \ \forall n,\qquad \exists\,n<\#\{\text{policies}\}:\ A^{n+1}=A^n,\ \ \underline v(A^n)=\bar v,v​(An)≤v​(An+1)  ∀n,∃n<#{policies}: An+1=An,  v​(An)=vˉ,

and the terminal policy attains the solution of the equations (4) and is ε\varepsilonε-optimal for every ε>0\varepsilon>0ε>0.

Milestones

  • Eq. (5): the present-value equations have a unique solution.
  • [I−βP]−1[I-\beta P]^{-1}[I−βP]−1 is nonnegative with diagonal at least 1 for stochastic PPP (proof of Proposition 5).
  • Proposition 1: equations (4), with randomized decisions and mixed choices of nature, have a unique solution, and it is the max-min return.
  • Proposition 2: a pure stationary policy attains it.
  • A non-final Phase 1 iteration lowers nature's value weakly everywhere and strictly somewhere (proof of Proposition 4).
  • Proposition 4: Phase 1 comes within ε\varepsilonε of nature's optimum after finitely many iterations.
  • Proposition 3: at termination no pure stationary policy is better.
  • Each policy change strictly improves the max-min return (proof of Proposition 5).

Significance

The goal certifies a complete algorithm for the max-min problem: it computes a policy that is optimal against the worst admissible transition probabilities, in all states at once, in finitely many improvement steps. Propositions 1 and 2 show that the dynamic-programming equations (4) characterize the max-min value and that neither side gains from randomization. The known-transition case (every SikS_i^kSik​ a single row) recovers Howard's policy iteration.

On the platform, Howard-type policy iteration for known transitions has been formalized (the Bertsekas Dynamic Programming and Optimal Control missions); nothing with uncertain transitions exists. The results of this paper are proved in the literature (Satia's thesis, and in greater generality by Iyengar and by Nilim and El Ghaoui); none has a machine-checked proof. This mission produces the first formal robust-MDP model and robust policy-iteration theorem on the platform.

Difficulty

The obvious argument copies Howard's improvement lemma. It fails at two points. First, the value of a policy is itself the result of an inner optimization by nature, so comparing two policies requires comparing two different worst-case transition matrices; the matrix P∗BP^{*B}P∗B minimizing against BBB is not the one minimizing against AAA. Second, the proof of Proposition 4 as printed shows only that nature's values decrease and converge; that the limit is nature's optimum, over a continuum of admissible rows, needs a separate argument. Finally, Proposition 1 involves randomized strategies and probability measures on the uncertainty sets, and reducing them to pure strategies is the content of Propositions 1 and 2, not a definitional convenience.

Formalization scope

States are a finite type S (nonemptiness is not needed: every statement is unchanged in meaning at N=1N=1N=1 and trivially true at N=0N=0N=0), decisions a family D : S → Type* of finite nonempty types. The model fixes these conventions and readings:

  • 0≤β<10\le\beta<10≤β<1 (not printed; every return is an infinite discounted sum) and nonempty SikS_i^kSik​ (not printed; Phase 1 presupposes a feasible row) are added standing hypotheses; closedness and convexity are the paper's.
  • The present value is [I−βPA]−1[I-\beta P^A]^{-1}[I−βPA]−1 applied to the one-step rewards; the Eq. (5) milestone proves it is the unique solution of (5).
  • "min over pik∈Sikp_i^k\in S_i^kpik​∈Sik​" in (2) is an infimum over the nonempty type of admissible choices P∈SP\in SP∈S, bounded below; "max over all policies" is a maximum over pure stationary policies, with randomization handled in (4).
  • In (4), τ\tauτ ranges over probability vectors on DjD_jDj​ and α\alphaα over probability measures on row vectors with α(Sjk)=1\alpha(S_j^k)=1α(Sjk​)=1; the missing integral sign and unmatched brace of the printed display are corrected.
  • "Optimal" = equal to the max-min return in every state; "ε\varepsilonε-optimal" = within ±ε\pm\varepsilon±ε in every state (p. 731); "ε\varepsilonε-optimal for nature" = within ε\varepsilonε of nature's minimum.
  • "Terminates" = Phase 2 returns the same policy; "a finite number of iterations" is stated with the explicit bound "fewer than the number of policies".
  • Phase 1 is taken exact in Phase 2 (the proofs of Propositions 3 and 5 use exact minimizers); the Phase 1 stopping test is printed without Σ\SigmaΣ and the sum is formalized.
  • Retention rule: Phase 2 keeps AiA_iAi​ when it is already a maximizer. It is not printed, but it is Howard's rule and Proposition 5 is false without it.
  • Proposition 5's "ε\varepsilonε-optimal … in a finite number of iterations" is formalized as exact termination at an optimal policy, which implies the printed claim for every ε\varepsilonε.

Equation (4) must not be collapsed to max⁡kmin⁡p∈Sjk\max_k\min_{p\in S_j^k}maxk​minp∈Sjk​​ in its definition: that would make Proposition 2 true by definition. Similarly, the Phase 2 relation always has a successor and algorithm runs exist from every policy, so the goal is not vacuous.

Needed infrastructure: Neumann series for I−βPI-\beta PI−βP with stochastic PPP, monotonicity of policy evaluation, existence of minimizers of linear functions on compact subsets of the simplex, and the contraction argument for the robust Bellman operator. These are reusable for any robust or known-transition MDP development. Proofs of any milestone, alternative arguments for Propositions 1 and 2, and extensions to the max-max criterion are welcome.

Selected references

  • J. K. Satia and R. E. Lave, Jr., Markovian Decision Processes with Uncertain Transition Probabilities, Operations Research 21(3), 728–740, 1973. https://doi.org/10.1287/opre.21.3.728
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
  • L. S. Shapley, Stochastic Games, PNAS 39(10), 1095–1100, 1953. https://doi.org/10.1073/pnas.39.10.1095
  • G. N. Iyengar, Robust Dynamic Programming, Mathematics of Operations Research 30(2), 257–280, 2005. https://doi.org/10.1287/moor.1040.0129
  • A. Nilim and L. El Ghaoui, Robust Control of Markov Decision Processes with Uncertain Transition Matrices, Operations Research 53(5), 780–798, 2005. https://doi.org/10.1287/opre.1050.0216
12 thms3 active usersReviewed
🏆Completed
Dynamic ProgrammingOperations ResearchStochastic Systems·Captain: mikedeng1

Markov-Renewal Programming. I: Formulation, Finite Return Models: Policy Iteration Finds an Optimal Stationary Policy for the Discounted Infinite-Horizon Markov-Renewal ProgramResearch Paper

Motivation

Many operational systems move between a finite number of states at random times: a machine alternates between working and repair, a queue between occupancy levels, an inventory between stock positions. When the time spent in a state is not exponential and not a fixed period, neither discrete-time Markov decision processes nor continuous-time Markov chains describe the system faithfully. William S. Jewell's 1963 paper Markov-Renewal Programming. I extends Howard's Markov decision processes to Markov-renewal processes (also called semi-Markov processes), in which the time between transitions is a random variable whose law depends on the current state, the next state, and the decision taken. The resulting model, now called a semi-Markov decision process, is standard in maintenance, queueing control and reliability.

Timeline:

  • 1954: Lévy, Smith and Takács independently introduce Markov-renewal and semi-Markov processes; Pyke later surveys them.
  • 1960: Howard, Dynamic Programming and Markov Processes, introduces policy iteration for finite discrete-time Markov decision processes.
  • 1962: Blackwell, Discrete Dynamic Programming, shows that for the discounted discrete-time problem a stationary policy is optimal among all policies.
  • 1963: Jewell formulates Markov-renewal programming, with a continuous discount factor α, and carries Howard's algorithm and Blackwell's stationarity result over to it. Part II of the paper treats the undiscounted (infinite-return) models.

Setting

A Markov-renewal program has a finite set of states SSS (the paper's i=1,…,Ni = 1, \dots, Ni=1,…,N) and a finite, nonempty set of alternatives (the paper's z=1,…,Zz = 1, \dots, Zz=1,…,Z), each available in every state. For each alternative zzz and states i,ji, ji,j it specifies:

  • a transition probability pijz≥0p^z_{ij} \ge 0pijz​≥0, with ∑jpijz=1\sum_j p^z_{ij} = 1∑j​pijz​=1;
  • a sojourn-time distribution FijzF^z_{ij}Fijz​, the law of the time τ\tauτ between entering iii and moving to jjj, with τ≥0\tau \ge 0τ≥0 and Fijz(0)=0F^z_{ij}(0) = 0Fijz​(0)=0;
  • for each continuous discount factor α>0\alpha > 0α>0, a real number ρijz(α)\rho^z_{ij}(\alpha)ρijz​(α), the expected discounted return earned during that transition.

The Laplace–Stieltjes transform f~ijz(s)=∫0∞e−st dFijz(t)\tilde f^z_{ij}(s) = \int_0^\infty e^{-st}\,dF^z_{ij}(t)f~​ijz​(s)=∫0∞​e−stdFijz​(t) is the expected discount E[e−sτ]\mathbb E[e^{-s\tau}]E[e−sτ] over one interval. The average one-step return is ρiz(α)=∑jpijzρijz(α)\rho^z_i(\alpha) = \sum_j p^z_{ij}\rho^z_{ij}(\alpha)ρiz​(α)=∑j​pijz​ρijz​(α), and for a vector of returns vvv the test quantity is

ρiz(α)+∑jpijz f~ijz(α) vj.\rho^z_i(\alpha) + \sum_j p^z_{ij}\,\tilde f^z_{ij}(\alpha)\,v_j .ρiz​(α)+j∑​pijz​f~​ijz​(α)vj​.

A stationary policy is a map d:S→Ad : S \to Ad:S→A; a nonstationary policy is a sequence π=(π0,π1,… )\pi = (\pi_0, \pi_1, \dots)π=(π0​,π1​,…) of such maps, πk\pi_kπk​ being used at the kkk-th transition. The nnn-step return Viπ(n)V^\pi_i(n)Viπ​(n) of a policy, with boundary rewards Vi(0,α)V_i(0,\alpha)Vi​(0,α), is the test quantity of π0(i)\pi_0(i)π0​(i) applied to the (n−1)(n-1)(n−1)-step return of the shifted policy; the optimal nnn-step return Vi(n,α)V_i(n,\alpha)Vi​(n,α) of equation (6) replaces π0(i)\pi_0(i)π0​(i) by a maximum over zzz. The value-determination equations (15) of a stationary policy ddd are vi=ρid(i)(α)+∑jpijd(i)f~ijd(i)(α)vjv_i = \rho^{d(i)}_i(\alpha) + \sum_j p^{d(i)}_{ij}\tilde f^{d(i)}_{ij}(\alpha) v_jvi​=ρid(i)​(α)+∑j​pijd(i)​f~​ijd(i)​(α)vj​.

The algorithm of Fig. 1 alternates two steps: solve (15) for the current policy, then in every state pick an alternative maximizing the test quantity, keeping the old alternative if it still attains the maximum. It stops when two successive policies are identical.

Formalization targets

Goal (p. 947)

For every α>0\alpha > 0α>0: (15) has a unique solution for every stationary policy, and every run (dk,vk)(d_k, v_k)(dk​,vk​) of Fig. 1 reaches dK+1=dKd_{K+1} = d_KdK+1​=dK​ with K<ZNK < Z^NK<ZN, where

lim⁡n→∞VidK(n)=(vK)i,lim⁡n→∞Viπ(n)≤(vK)i  ∀π,lim⁡n→∞Vi(n,α)=(vK)i,\lim_{n\to\infty} V^{d_K}_i(n) = (v_K)_i,\qquad \lim_{n\to\infty} V^\pi_i(n) \le (v_K)_i \ \ \forall \pi,\qquad \lim_{n\to\infty} V_i(n,\alpha) = (v_K)_i ,n→∞lim​VidK​​(n)=(vK​)i​,n→∞lim​Viπ​(n)≤(vK​)i​  ∀π,n→∞lim​Vi​(n,α)=(vK​)i​,

for every state iii and all boundary rewards, every limit existing. This is the paper's "the algorithm of Fig. 1 produces an optimal, stationary policy that is as good as any optimal, nonstationary policy".

Milestones

  1. p. 945: 0≤pijzf~ijz(s)<10 \le p^z_{ij}\tilde f^z_{ij}(s) < 10≤pijz​f~​ijz​(s)<1 for s>0s > 0s>0.
  2. Claim (a): (15) has exactly one solution for each stationary policy.
  3. Eq. (15): the nnn-step return of a stationary policy converges to a solution of (15).
  4. p. 946: I−q~(α)I - \tilde q(\alpha)I−q~​(α) is invertible and ([I−q~(α)]−1)ii≥1([I-\tilde q(\alpha)]^{-1})_{ii} \ge 1([I−q~​(α)]−1)ii​≥1.
  5. Claim (b): a change of policy raises the return of some state and lowers none.
  6. Claim (c): a policy reproduced by the improvement step is optimal among stationary policies.
  7. Claim (d): a run of Fig. 1 terminates within ZNZ^NZN cycles.
  8. Eq. (14): Vi(n,α)V_i(n,\alpha)Vi​(n,α) converges, independently of the boundary rewards, to a solution of vi=max⁡z{ρiz(α)+∑jpijzf~ijz(α)vj}v_i = \max_z\{\rho^z_i(\alpha) + \sum_j p^z_{ij}\tilde f^z_{ij}(\alpha) v_j\}vi​=maxz​{ρiz​(α)+∑j​pijz​f~​ijz​(α)vj​}.
  9. p. 946: some stationary policy's return dominates the limiting return of every nonstationary policy.

Significance

The result says that the infinite-step discounted Markov-renewal program is solved exactly, in finitely many cycles, by a finite-dimensional algorithm, and that the answer is a stationary policy. As the paper notes, this matters operationally because a nonstationary policy is hard to follow. The sojourn distributions enter only through the numbers f~ijz(α)\tilde f^z_{ij}(\alpha)f~​ijz​(α), so the same algorithm serves any sojourn-time law. For fixed α\alphaα the model is a discounted Markov decision process whose discount factor depends on the transition, which contains Howard's and Blackwell's constant-discount problem as the case of intervals of fixed length (p. 943).

The results are classical and proved in the literature. The paper itself refers the proofs to Howard and Blackwell. Machine-checked versions exist on this platform for finite stochastic shortest path and constant-discount problems (Bertsekas, Dynamic Programming and Optimal Control, Prop. 7.2.2 and 7.3.1, mission Dynamic Programming and Optimal Control VII). No formal treatment of Markov-renewal programs, of transition-dependent discounting, or of the retention rule of Fig. 1 is known to exist. The mission produces a verified policy-iteration theorem for semi-Markov decision processes, with an explicit termination bound and the comparison against nonstationary policies.

Difficulty

The discount over one transition, f~ijz(α)\tilde f^z_{ij}(\alpha)f~​ijz​(α), varies with iii, jjj and zzz, so the problem is not a constant-γ\gammaγ contraction of textbook form; the relevant bound is that every row of q~(α)\tilde q(\alpha)q~​(α) sums to less than one, which rests on Fijz(0)=0F^z_{ij}(0) = 0Fijz​(0)=0. Entries in [0,1)[0, 1)[0,1) alone, the paper's stated justification of Claim (a), do not make I−q~(α)I - \tilde q(\alpha)I−q~​(α) invertible: the 2×22 \times 22×2 matrix with every entry 1/21/21/2 has entries in [0,1)[0,1)[0,1), yet III minus it is singular.

Finite termination is not automatic either. If the improvement step may switch between tied maximizers, the iterates can cycle forever between two policies with equal returns; the retention rule of Fig. 1 excludes this, and Claim (b) must deliver a strict increase in some state, with no decrease anywhere, to rule out revisiting a policy. Comparing with nonstationary policies requires controlling returns of arbitrary policy sequences, whose limits must be shown to exist, not assumed.

Formalization scope

  • States and alternatives are finite types; alternatives are nonempty. Every alternative is available in every state.
  • FijzF^z_{ij}Fijz​ is a probability measure on R\mathbb RR with no mass on (−∞,0](-\infty, 0](−∞,0]. The transform is integrated over (0,∞)(0, \infty)(0,∞), which carries all the mass.
  • The one-transition returns ρijz(α)\rho^z_{ij}(\alpha)ρijz​(α) are arbitrary real numbers, a generalization of the paper's Stieltjes integral (4), which is not formalized. The reward functions Rijz(t∣τ)R^z_{ij}(t\mid\tau)Rijz​(t∣τ) do not appear.
  • Returns of policies are defined by the one-step recursion (the policy form of (6)); the Markov-renewal process is not built as a stochastic process.
  • Policies are the paper's: deterministic and Markov, nonstationary ones indexed by the number of transitions made. Randomized and history-dependent policies are not in the comparison class.
  • The following informal words are read as follows. "Solve the set of simultaneous equations": (15) has exactly one solution. "Strictly increases the expected return of at least one state": no state's return decreases and one strictly increases, under the hypothesis that the policy changed. "No other policy can lead to higher expected returns" in Claim (c): no stationary policy. "Terminates in a finite number of cycles": two successive policies coincide at some cycle K<ZNK < Z^NK<ZN. "If there is no improvement in the test quantity, retain the same alternative": the old alternative is kept whenever it attains the maximum. "Optimal" and "as good as any nonstationary policy": the limiting return of the returned policy dominates that of every policy from every state, for all boundary rewards. "lim⁡n→∞Vi(n,α)\lim_{n\to\infty} V_i(n,\alpha)limn→∞​Vi​(n,α)": the limit is proved to exist. "max⁡z\max_zmaxz​": a maximum over the finite nonempty set of alternatives.
  • Eq. (14) is printed with vi(α)v_i(\alpha)vi​(α) inside the sum over jjj; the formalization uses vj(α)v_j(\alpha)vj​(α), as (6), (15) and Fig. 1 do.
  • Every statement fixes one α>0\alpha > 0α>0. The undiscounted models (16)–(19), the finite-time and mixed-horizon models (9)–(13), and the infinite-time case of the stationarity result are out of scope.
  • The return of a policy is never defined through a matrix inverse, whose Mathlib value for a singular matrix is 000; (15) is a predicate, and the goal asserts unique solvability, so a vacuous reading through junk inverses or assumed limits is excluded.

Reusable infrastructure: bounds for substochastic matrices with row sums below one (invertibility, Neumann series, nonnegative inverse), convergence of iterated Bellman operators with transition-dependent discount, and the policy-iteration termination argument with a tie-breaking rule. Proofs of any milestone and alternative arguments are welcome.

Selected references

  • W. S. Jewell, Markov-Renewal Programming. I: Formulation, Finite Return Models, Operations Research 11(6), 938–948, 1963. https://doi.org/10.1287/opre.11.6.938
  • W. S. Jewell, Markov-Renewal Programming. II: Infinite Return Models, Example, Operations Research 11(6), 949–971, 1963. https://doi.org/10.1287/opre.11.6.949
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
  • D. Blackwell, Discrete Dynamic Programming, Annals of Mathematical Statistics 33(2), 719–726, 1962. https://doi.org/10.1214/aoms/1177704593
  • R. Pyke, Markov Renewal Processes: Definitions and Preliminary Properties, Annals of Mathematical Statistics 32(4), 1231–1242, 1961. https://doi.org/10.1214/aoms/1177704863
  • D. P. Bertsekas, Dynamic Programming and Optimal Control, Vol. I, 3rd ed., Athena Scientific, 2005, Section 7.2–7.3.
12 thms3 active usersReviewed
Dynamic ProgrammingOperations Research·Captain: mikedeng1

Discrete Dynamic Programming 1: Every Finite Markov Decision Problem Has a Stationary Policy That Is Optimal for All Discount Factors Sufficiently Near 1Research Paper

Motivation

A Markov decision problem models a system that is observed once per period and controlled by choosing an action: the action earns an immediate income and determines the probabilities of the next state. Inventory control, machine replacement, queue admission and many reinforcement-learning benchmarks are of this form. With future income discounted by a factor β<1\beta<1β<1, Howard (Dynamic Programming and Markov Processes, 1960) showed how to compute an optimal policy by policy improvement. The undiscounted problem (β=1\beta=1β=1) is harder, because total income is typically infinite.

David Blackwell's Discrete Dynamic Programming (Ann. Math. Statist. 33 (1962) 719–726) treats β=1\beta=1β=1 as a limit of β<1\beta<1β<1. Its Theorem 5 shows that some stationary policy is optimal simultaneously for all discount factors sufficiently close to 111. Such policies are now called Blackwell optimal, and the result is the base of sensitive discount optimality (Veinott, 1969) and of the standard textbook treatment of average-reward problems (Puterman, Markov Decision Processes, 1994, Ch. 10).

Timeline. Howard (1960): policy iteration for discounted and average-reward finite problems. Blackwell (1962): Theorem 5 (Blackwell optimal stationary policies exist) and the characterization of nearly optimal stationary policies (Theorem 4, the subject of the companion mission). Miller and Veinott (Ann. Math. Statist. 40 (1969) 366–370), Veinott (Ann. Math. Statist. 40 (1969) 1635–1660): Laurent expansions of VβV_\betaVβ​ in 1−β1-\beta1−β and nnn-discount optimality.

Setting

There are finitely many states sss and a finite set AAA of actions, every action available in every state. In state sss, action aaa yields income i(s,a)∈Ri(s,a)\in\mathbb Ri(s,a)∈R (any sign) and moves the system to state s′s's′ with probability q(s′∣s,a)q(s'\mid s,a)q(s′∣s,a); each q(⋅∣s,a)q(\cdot\mid s,a)q(⋅∣s,a) is a probability vector.

A decision rule is a function fff from states to actions; FFF is the finite set of decision rules. A policy is a sequence π={fn, n=1,2,… }\pi=\{f_n,\ n=1,2,\dots\}π={fn​, n=1,2,…} in FFF: on day nnn, in state sss, action fn(s)f_n(s)fn​(s) is used. Policies are deterministic and Markov but may change with time. The policy (f,π)(f,\pi)(f,π) uses fff on day 111 and then follows π\piπ; f(∞)f^{(\infty)}f(∞) uses fff every day and is called stationary.

For f∈Ff\in Ff∈F, r(f)r(f)r(f) is the vector (i(s,f(s)))s(i(s,f(s)))_s(i(s,f(s)))s​ and Q(f)Q(f)Q(f) the Markov matrix (q(s′∣s,f(s)))s,s′(q(s'\mid s,f(s)))_{s,s'}(q(s′∣s,f(s)))s,s′​. With Q0(π)=IQ_0(\pi)=IQ0​(π)=I and Qn(π)=Q(f1)⋯Q(fn)Q_n(\pi)=Q(f_1)\cdots Q(f_n)Qn​(π)=Q(f1​)⋯Q(fn​), the return of π\piπ at discount factor 0≤β<10\le\beta<10≤β<1 is

Vβ(π)=∑n=0∞βn Qn(π) r(fn+1),V_\beta(\pi)=\sum_{n=0}^\infty \beta^n\,Q_n(\pi)\,r(f_{n+1}),Vβ​(π)=n=0∑∞​βnQn​(π)r(fn+1​),

a vector indexed by the initial state. Vectors are compared coordinatewise; w1>w2w_1>w_2w1​>w2​ means w1≥w2w_1\ge w_2w1​≥w2​ and w1≠w2w_1\ne w_2w1​=w2​.

A policy π∗\pi^*π∗ is β\betaβ-optimal if Vβ(π∗)≥Vβ(π)V_\beta(\pi^*)\ge V_\beta(\pi)Vβ​(π∗)≥Vβ​(π) for every policy π\piπ. Following §4 of the paper, a policy is optimal if it is β\betaβ-optimal for all β\betaβ sufficiently near 111.

Formalization targets

Goal: Theorem 5

There exist a decision rule fff and β0<1\beta_0<1β0​<1 such that

Vβ(f(∞)) ≥ Vβ(π)for all β∈(β0,1) and all policies π.V_\beta(f^{(\infty)})\ \ge\ V_\beta(\pi)\qquad\text{for all }\beta\in(\beta_0,1)\text{ and all policies }\pi.Vβ​(f(∞)) ≥ Vβ​(π)for all β∈(β0​,1) and all policies π.

One fff and one β0\beta_0β0​ serve every competing policy and every β∈(β0,1)\beta\in(\beta_0,1)β∈(β0​,1).

Milestones

  1. The composition rule Vβ(f,π)=L(f)Vβ(π)V_\beta(f,\pi)=L(f)V_\beta(\pi)Vβ​(f,π)=L(f)Vβ​(π), with L(f)w=r(f)+βQ(f)wL(f)w=r(f)+\beta Q(f)wL(f)w=r(f)+βQ(f)w, and its NNN-fold version (§2).
  2. Theorem 1: if Vβ(f,π∗)≤Vβ(π∗)V_\beta(f,\pi^*)\le V_\beta(\pi^*)Vβ​(f,π∗)≤Vβ​(π∗) for all f∈Ff\in Ff∈F, then π∗\pi^*π∗ is β\betaβ-optimal.
  3. Theorem 2: if Vβ(f,π)>Vβ(π)V_\beta(f,\pi)>V_\beta(\pi)Vβ​(f,π)>Vβ​(π) then Vβ(f(∞))>Vβ(π)V_\beta(f^{(\infty)})>V_\beta(\pi)Vβ​(f(∞))>Vβ​(π).
  4. Theorem 3 (policy improvement): if no action improves f(∞)f^{(\infty)}f(∞) by one step, f(∞)f^{(\infty)}f(∞) is β\betaβ-optimal; otherwise switching to improving actions gives g(∞)>f(∞)g^{(\infty)}>f^{(\infty)}g(∞)>f(∞).
  5. Corollary: for each fixed β∈[0,1)\beta\in[0,1)β∈[0,1) some stationary policy is β\betaβ-optimal.
  6. Each coordinate of Vβ(f(∞))V_\beta(f^{(\infty)})Vβ​(f(∞)) is a rational function of β\betaβ on [0,1)[0,1)[0,1) with nonvanishing denominator.
  7. Some f∗f^*f∗ is β\betaβ-optimal for a set of β\betaβ's having 111 as a limit point.
  8. If Vβ(f∗(∞))≥Vβ(g(∞))V_\beta(f^{*(\infty)})\ge V_\beta(g^{(\infty)})Vβ​(f∗(∞))≥Vβ​(g(∞)) for a set of β\betaβ's accumulating at 111, then it holds for all β\betaβ near 111.

Significance

The result. Theorem 5 shows that the infinitely many discounted problems near β=1\beta=1β=1 share a common optimal stationary policy. Such a policy is also optimal for the long-run average criterion, which settles the existence of average-optimal stationary policies in finite models without any recurrence assumption. It also justifies computing undiscounted solutions as limits of discounted ones, and it is the first case of the sensitive optimality criteria developed later.

Formalizing it. The theorem is classical and proved in the paper and in the textbooks; there is no machine-checked proof of it in Blackwell's model on the platform. A related open item, SennottDP.AvgFinite.prop_6_2_3_blackwell_optimal, states the textbook version for nonnegative costs and randomized history-dependent policies; the present mission is Blackwell's own formulation with incomes of either sign and deterministic Markov policies. A complete development also yields a verified policy improvement theorem (Theorem 3) and the rationality of discounted values in β\betaβ, both reusable for any finite-state discounted model.

Difficulty

The Corollary gives, for each β\betaβ, some optimal stationary policy, and FFF is finite, so one f∗f^*f∗ is β\betaβ-optimal for infinitely many β\betaβ accumulating at 111. The obvious argument stops there: optimality on a sequence of β\betaβ's says nothing about the β\betaβ's in between, and a pointwise limit argument cannot produce a whole interval (β0,1)(\beta_0,1)(β0​,1). The step that fails is passing from "frequently" to "eventually", and it needs structural information about how VβV_\betaVβ​ depends on β\betaβ, not just continuity. A second difficulty is the comparison class: optimality must hold against all time-dependent policies, not only the finitely many stationary ones, so the final step has to bring the Corollary back in for every β\betaβ near 111.

Formalization scope

States and actions are finite nonempty Lean types St, Act; decision rules are functions St → Act and policies are sequences ℕ → St → Act, indexed from 000 (π 0 is Blackwell's f1f_1f1​). Incomes are real-valued with no sign restriction. The law of motion law s a s' =q(s′∣s,a)=q(s'\mid s,a)=q(s′∣s,a) satisfies the published predicate IsTransitionKernel. Qn(π)Q_n(\pi)Qn​(π) is the ordered matrix product and Vβ(π)V_\beta(\pi)Vβ​(π) is the tsum of the series, which converges absolutely for 0≤β<10\le\beta<10≤β<1; every statement at a fixed β\betaβ assumes 0≤β<10\le\beta<10≤β<1, and nothing is stated for β≥1\beta\ge1β≥1. Vector inequalities are coordinatewise, and the strict order is "≥\ge≥ and ≠\ne=", not coordinatewise strict. "β\betaβ sufficiently near 111" is "there is β0<1\beta_0<1β0​<1 such that for every β∈(β0,1)\beta\in(\beta_0,1)β∈(β0​,1)". The paper's §4 phrase Vβ(π)=U(β)V_\beta(\pi)=U(\beta)Vβ​(π)=U(β) is encoded as β\betaβ-optimality, so no supremum over policies appears.

The word "optimal" has two meanings in the paper: at one fixed β\betaβ (§3, the Corollary) and for all β\betaβ near 111 (§4, Theorem 5). The Lean development keeps them apart as IsBetaOptimal β and IsOptimal. A statement of Theorem 5 at a single β\betaβ, with "there exists β\betaβ", for a set of β\betaβ's accumulating at 111, or against stationary policies only would be a different and weaker theorem; the goal rules all of these out.

Needed infrastructure: summation and shifting of the discounted series, Neumann series (I−βQ)−1=∑nβnQn(I-\beta Q)^{-1}=\sum_n\beta^nQ^n(I−βQ)−1=∑n​βnQn for stochastic QQQ, Cramer's rule to express (I−βQ)−1r(I-\beta Q)^{-1}r(I−βQ)−1r as a ratio of polynomials in β\betaβ, and the fact that a nonzero polynomial has finitely many roots. The policy improvement theorem and the rationality lemma are reusable beyond this mission. Proofs of individual milestones are welcome independently.

Selected references

  • D. Blackwell, Discrete Dynamic Programming, Ann. Math. Statist. 33(2):719–726, 1962. https://doi.org/10.1214/aoms/1177704593
  • R. A. Howard, Dynamic Programming and Markov Processes, Technology Press and Wiley, 1960.
  • A. F. Veinott Jr., Discrete Dynamic Programming with Sensitive Discount Optimality Criteria, Ann. Math. Statist. 40(5):1635–1660, 1969. https://doi.org/10.1214/aoms/1177697379
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley, 1999 (Proposition 6.2.3, Blackwell optimality for finite models). https://doi.org/10.1002/9780470317037
11 thms2 active usersReviewed
Dynamic ProgrammingOperations ResearchProbability·Captain: mikedeng1

An Inventory Model with Limited Production Capacity and Uncertain Demands I. The Average-Cost Criterion: With Finite Storage a Modified Base-Stock Policy Is Strongly Average-Cost OptimalResearch Paper

Motivation

A manufacturer that makes one product to stock faces random demand, can produce at most bbb units per period, and can store at most UUU units. The classical result without the production limit is that a base-stock policy is optimal: raise inventory to a fixed level yˉ\bar yyˉ​ each period. With a production limit, the natural modification is to produce up to yˉ\bar yyˉ​ when that is possible and to produce at full capacity otherwise. Federgruen and Zipkin (1986) proved that this modified base-stock (critical-number) policy is optimal under the long-run average-cost criterion, for discrete demand with a general convex cost. Production-capacity models of this type are standard in operations management texts, and the result underlies the computational and comparative-static work that followed, starting with Part II of the same paper, which treats discounted costs.

Timeline.

  • 1950s–60s: optimality of base-stock (critical-number) policies for uncapacitated periodic-review models; see Heyman and Sobel's Stochastic Models in Operations Research, Vol. II (1984).
  • 1986: Federgruen and Zipkin, Part I (average cost, MOR 11(2):193–207) and Part II (discounted cost, MOR 11(2):208–215) establish the capacitated case. Part I handles the unbounded state space with a general average-cost theory for countable-state Markov decision processes by Federgruen, Schweitzer and Tijms (1983).

Setting

Time is divided into periods t=0,1,…t = 0, 1, \dotst=0,1,…. The demands D0,D1,…D_0, D_1, \dotsD0​,D1​,… are independent copies of a random variable DDD with values in {0,1,2,… }\{0, 1, 2, \dots\}{0,1,2,…} and probability mass function p(j)p(j)p(j); write μ=E(D)\mu = E(D)μ=E(D) and P(j)=Pr⁡{D≤j}P(j) = \Pr\{D \le j\}P(j)=Pr{D≤j}. At the start of period ttt the inventory is an integer xtx_txt​ (negative values are backorders). The decision maker raises it to

yt∈Y(xt)={y∈Z:xt≤y≤xt+b, y≤U},y_t \in Y(x_t) = \{y \in \mathbb Z : x_t \le y \le x_t + b,\ y \le U\},yt​∈Y(xt​)={y∈Z:xt​≤y≤xt​+b, y≤U},

pays the expected one-period cost G(yt)G(y_t)G(yt​), and demand is subtracted: xt+1=yt−Dtx_{t+1} = y_t - D_txt+1​=yt​−Dt​. The order cost per unit is set to zero, as in the paper; this loses no generality because every policy with finite average cost has the same average order cost.

The standing assumptions are: G≥0G \ge 0G≥0 is convex and G(y)→∞G(y) \to \inftyG(y)→∞ as ∣y∣→∞|y| \to \infty∣y∣→∞ (Assumption 1); the characteristic function of DDD is analytic at the origin (Assumption 2), and 0<μ0 < \mu0<μ; G(y)≤A+B∣y∣ρG(y) \le A + B|y|^\rhoG(y)≤A+B∣y∣ρ for some positive integer ρ\rhoρ (Assumption 3); b>μb > \mub>μ and P(b)<1P(b) < 1P(b)<1 (Assumption 4). The smallest global minimizer of GGG is yˉ∞\bar y^\inftyyˉ​∞, and U≥yˉ∞U \ge \bar y^\inftyU≥yˉ​∞.

A Markov policy is a sequence π=(π0,π1,… )\pi = (\pi_0, \pi_1, \dots)π=(π0​,π1​,…) of maps with πt(x)∈Y(x)\pi_t(x) \in Y(x)πt​(x)∈Y(x). The critical-number policy with critical number yˉ\bar yyˉ​ is δ[yˉ](x)=max⁡(x,min⁡(yˉ,x+b))\delta[\bar y](x) = \max(x, \min(\bar y, x + b))δ[yˉ​](x)=max(x,min(yˉ​,x+b)). A stationary policy δ\deltaδ is strongly optimal with average cost ggg if, from every initial state x≤Ux \le Ux≤U, its average cost t−1E{∑i<tG(yi)}t^{-1}E\{\sum_{i<t} G(y_i)\}t−1E{∑i<t​G(yi​)} converges to ggg, while every Markov policy has lim-inf average cost at least ggg from every initial state.

The analysis uses the operators Rv(y)=G(y)+E v(y−D)Rv(y) = G(y) + E\,v(y - D)Rv(y)=G(y)+Ev(y−D) and Sv(x)=min⁡y∈Y(x)Rv(y)Sv(x) = \min_{y \in Y(x)} Rv(y)Sv(x)=miny∈Y(x)​Rv(y), and the optimality equation

g+v(x)=Sv(x),x≤U.(6)g + v(x) = Sv(x),\qquad x \le U. \tag{6}g+v(x)=Sv(x),x≤U.(6)

For an interval ι=[l,u]\iota = [l, u]ι=[l,u], Hιv(x)H_\iota v(x)Hι​v(x) is the largest expected sum of v(yt)v(y_t)v(yt​), over policies forced to produce at capacity below lll and to produce nothing above uuu, until the inventory first returns to ι\iotaι.

Formalization targets

Goal: Theorem 1 (p. 202)

There exist g∗g^*g∗, v∗v^*v∗ and y∗≥yˉ∞y^* \ge \bar y^\inftyy∗≥yˉ​∞ such that (g∗,v∗)(g^*, v^*)(g∗,v∗) solves (6), v∗v^*v∗ is convex with global minimizer y∗y^*y∗, and

δ∗=δ[y∗] is strongly optimal with average cost g∗.\delta^* = \delta[y^*] \text{ is strongly optimal with average cost } g^*.δ∗=δ[y∗] is strongly optimal with average cost g∗.

The y∗y^*y∗ in the optimality claim is the minimizer constructed in part (a).

Milestones

  • Lemma 2(a)–(c) (pp. 196–197): a normal-tail inequality and two series estimates.
  • Lemma 3 (p. 198): if v(x)=O(∣x∣q)v(x) = O(|x|^q)v(x)=O(∣x∣q) then Hιv(x)=O(∣x∣q+3)H_\iota v(x) = O(|x|^{q+3})Hι​v(x)=O(∣x∣q+3).
  • Corollary 1 (p. 200): Hι1=O(∣x∣3)H_\iota 1 = O(|x|^3)Hι​1=O(∣x∣3) and HιG=O(∣x∣ρ+3)H_\iota G = O(|x|^{\rho+3})Hι​G=O(∣x∣ρ+3), both finite.
  • Corollary 2 (p. 201): (t+1)−1P[δ0t]⋯P[δtt](Hι1+HιG)(x)→0(t+1)^{-1}P[\delta_{0t}]\cdots P[\delta_{tt}](H_\iota 1 + H_\iota G)(x) \to 0(t+1)−1P[δ0t​]⋯P[δtt​](Hι​1+Hι​G)(x)→0.
  • Lemma 4 (p. 201): reachability of every state in [L,U−D−][L, U - D_-][L,U−D−​] under some policy that produces at capacity below LLL.
  • Lemma 5 (p. 202): SSS and QQQ preserve the class VVV of convex functions of growth O(∣x∣ρ+3)O(|x|^{\rho+3})O(∣x∣ρ+3) that are nonincreasing below yˉ∞\bar y^\inftyyˉ​∞.

Significance

The result. Theorem 1 reduces an infinite-state average-cost control problem to a one-parameter search over critical numbers. The paper then evaluates the average cost of δ[yˉ]\delta[\bar y]δ[yˉ​] by a renewal formula, proves it convex in yˉ\bar yyˉ​ (Theorem 2), and in §5 extends optimality to unlimited storage. The strong form of optimality matters: it compares with every Markov policy from every starting state, and it compares lim-infs, not only lim-sups.

Formalizing it. The theorem has a published proof, but no machine-checked one, and its proof relies on external results that are themselves unformalized: the countable-state average-cost theory of Federgruen, Schweitzer and Tijms, a fixed-point theorem on a compact convex subset of a product space, and a large-deviation estimate quoted from Feller. A formal development produces reusable infrastructure: expected first-passage sums for integer-valued random walks with a reflecting control, polynomial moment bounds for them, and the convexity-preservation argument for capacitated value iteration.

Difficulty

The state space is unbounded below, so the finite-state theory of average-cost Markov decision processes does not apply, and the one-period cost is unbounded. The obvious approach, letting the discount factor tend to one in the discounted problem, needs uniform bounds on relative value functions. Those bounds come from the expected cost until the inventory returns to a fixed interval, and with capacity limits that expectation must be controlled with growth O(∣x∣ρ+3)O(|x|^{\rho+3})O(∣x∣ρ+3) uniformly over a class of policies. This is the content of Lemma 3, whose proof combines a large-deviation estimate for the demand sums with a renewal-type recursion. A second obstacle is strong optimality: comparing with policies whose lim-inf average cost is smaller requires that the relative value function grows sublinearly along every admissible trajectory (Corollary 2).

Formalization scope

All objects are in the namespace FedergruenZipkin.AvgCost, defined in one file. States x,yx, yx,y and the capacity UUU are integers; demands are natural numbers with a real probability mass function p; bbb is a positive natural number. Convexity on Z\mathbb ZZ is the second-difference inequality. Expectations of a real function are series ∑jp(j) v(y−j)\sum_j p(j)\,v(y-j)∑j​p(j)v(y−j); expected policy costs and hitting sums are [0,∞][0,\infty][0,∞]-valued and need no integrability side condition. Feasibility and all properties of value functions are required only on states x≤Ux \le Ux≤U, which are the only states visited. Assumption 2 is stated literally, as real-analyticity of θ↦∑jp(j)eiθj\theta \mapsto \sum_j p(j)e^{i\theta j}θ↦∑j​p(j)eiθj at 000. The order cost is zero, as in the paper. yˉ∞\bar y^\inftyyˉ​∞ is a parameter characterised as the least minimizer of GGG, not an infimum.

"Strongly optimal" has no displayed definition in the paper; it is read from eq. (7) in the proof of Theorem 1(b): convergence of the average cost of δ∗\delta^*δ∗ to g∗g^*g∗ from every state, together with a lim-inf lower bound for every Markov (memoryless, possibly nonstationary) policy from every state. The class is neither widened to history-dependent policies nor narrowed to stationary ones. The goal additionally records that E v∗(y−D)E\,v^*(y-D)Ev∗(y−D) converges, that v∗v^*v∗ has growth O(∣x∣ρ+3)O(|x|^{\rho+3})O(∣x∣ρ+3), and that g∗≥0g^* \ge 0g∗≥0; all three follow from the paper's proof.

A trivializing reading is ruled out: the existence of ggg, vvv and y∗y^*y∗ is one existential, so y∗y^*y∗ cannot be decoupled from the solution of (6), and strong optimality includes the convergence of δ∗\delta^*δ∗'s own average cost to g∗g^*g∗, so g=0g = 0g=0 does not satisfy it vacuously.

Not posed: Lemma 1 (quoted from Feller, and replaceable by a Chernoff bound); the renewal formulas (10)–(11) and Theorem 2; and §5 (unlimited storage). Useful contributions include a formal theory of expected hitting sums for skip-free-upward random walks, and a proof of Lemma 3 by any route.

Selected references

  • A. Federgruen and P. Zipkin, An Inventory Model with Limited Production Capacity and Uncertain Demands I. The Average-Cost Criterion, Mathematics of Operations Research 11(2):193–207, 1986. https://doi.org/10.1287/moor.11.2.193
  • A. Federgruen and P. Zipkin, An Inventory Model with Limited Production Capacity and Uncertain Demands II. The Discounted-Cost Criterion, Mathematics of Operations Research 11(2):208–215, 1986. https://doi.org/10.1287/moor.11.2.208
  • A. Federgruen, P. J. Schweitzer and H. C. Tijms, Denumerable Undiscounted Semi-Markov Decision Processes with Unbounded Rewards, Mathematics of Operations Research 8(2):298–314, 1983. https://doi.org/10.1287/moor.8.2.298
  • D. P. Heyman and M. J. Sobel, Stochastic Models in Operations Research, Vol. II, McGraw-Hill, 1984.
  • W. Feller, An Introduction to Probability Theory and Its Applications, Vol. II, 2nd ed., Wiley, 1971.
10 thms2 active usersReviewed
🏆Completed
Dynamic ProgrammingOperations ResearchProbability·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems VIII: Computing Average Cost Optimal Policies by Approximating SequencesTextbook

Motivation

Control problems for queueing systems (admission control, service rate control, routing to parallel servers) are naturally modelled as Markov decision chains whose state is a vector of queue lengths. The state space is therefore denumerably infinite, and the performance measure of interest is usually the long-run average cost per slot. For such models the existence theory of average cost optimal stationary policies is well developed (Chapter 7 of Sennott's book), but existence gives no algorithm: an optimal policy is a function on an infinite set, and value iteration cannot be run on an infinite state space.

The approximating sequence method answers this by replacing the infinite model Δ\DeltaΔ with a sequence of finite models ΔN\Delta_NΔN​ on truncated state spaces SNS_NSN​, solving the average cost optimality equation in each, and passing to the limit. Chapter 8 of L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999) gives a set of conditions, the (AC) assumptions, under which this limit procedure provably produces the minimum average cost and an average cost optimal policy of Δ\DeltaΔ.

Timeline. The approximating sequence method for the average cost criterion and the (AC) assumptions were introduced in Sennott (1997a), with further results in Sennott (1997b) (bibliographic notes, p. 194). The book collects these results, adds the four step verification template (Proposition 8.2.1), the finite-set augmentation route based on the (BOR) assumptions (Proposition 8.2.3), and the weakening (WAC) of Section 8.7, which Chapter 9 uses.

Setting

An MDC Δ\DeltaΔ has a countable state space SSS, a finite nonempty action set AiA_iAi​ in each state iii, a finite cost C(i,a)≥0C(i,a)\ge0C(i,a)≥0, and transition probabilities Pij(a)P_{ij}(a)Pij​(a). A general policy θ\thetaθ chooses actions at random using the whole past history. Its average cost is

Jθ(i)=lim sup⁡n→∞1n∑t=0n−1Eθ[C(Xt,At)∣X0=i],J_\theta(i)=\limsup_{n\to\infty}\frac1n\sum_{t=0}^{n-1}E_\theta[C(X_t,A_t)\mid X_0=i],Jθ​(i)=n→∞limsup​n1​t=0∑n−1​Eθ​[C(Xt​,At​)∣X0​=i],

and the minimum average cost is J(i)=inf⁡θJθ(i)∈[0,∞]J(i)=\inf_\theta J_\theta(i)\in[0,\infty]J(i)=infθ​Jθ​(i)∈[0,∞]. A policy is average cost optimal if Jθ≡JJ_\theta\equiv JJθ​≡J.

An approximating sequence (ΔN)N≥N0(\Delta_N)_{N\ge N_0}(ΔN​)N≥N0​​ consists of finite sets SNS_NSN​ increasing to SSS and MDCs ΔN\Delta_NΔN​ on SNS_NSN​ with the same actions and costs and with transition probabilities Pij(a;N)P_{ij}(a;N)Pij​(a;N) on SNS_NSN​ converging to Pij(a)P_{ij}(a)Pij​(a). Write vnNv^N_nvnN​ and VαNV^N_\alphaVαN​ for the nnn-horizon and discounted value functions of ΔN\Delta_NΔN​.

The (AC) assumptions are:

  • (AC1) there are finite constants JNJ^NJN and finite functions rNr^NrN on SNS_NSN​ with
JN+rN(i)=min⁡a{C(i,a)+∑j∈SNPij(a;N) rN(j)},i∈SN;(8.1)J^N+r^N(i)=\min_a\Big\{C(i,a)+\sum_{j\in S_N}P_{ij}(a;N)\,r^N(j)\Big\},\qquad i\in S_N; \tag{8.1}JN+rN(i)=amin​{C(i,a)+j∈SN​∑​Pij​(a;N)rN(j)},i∈SN​;(8.1)
  • (AC2) lim sup⁡NrN(i)<∞\limsup_N r^N(i)<\inftylimsupN​rN(i)<∞;
  • (AC3) lim inf⁡NrN(i)≥−Q\liminf_N r^N(i)\ge -QliminfN​rN(i)≥−Q for a constant Q≥0Q\ge0Q≥0;
  • (AC4) J∗:=lim sup⁡NJN<∞J^*:=\limsup_N J^N<\inftyJ∗:=limsupN​JN<∞ and J∗≤J(i)J^*\le J(i)J∗≤J(i) for all iii.

The (WAC) assumptions of Section 8.7 allow QQQ to depend on the state, at the price of integrability conditions along every stationary policy.

Formalization targets

Goal: Theorem 8.1.1

Under (AC), the limit lim⁡N→∞JN\lim_{N\to\infty}J^NlimN→∞​JN exists and

J(i)=lim⁡N→∞JNfor all i∈S,J(i)=\lim_{N\to\infty}J^N\qquad\text{for all } i\in S,J(i)=N→∞lim​JNfor all i∈S,

and every limit point e∗e^*e∗ of stationary policies eNe^NeN realizing the minimum in (8.1) is average cost optimal for Δ\DeltaΔ. The statement fixes no constants; it asserts the shape of the conclusion for any model satisfying (AC).

Milestones

  • Proposition 8.2.1 (the four step template): unichain and aperiodicity of the finite models, an xxx standard policy at which the approximating sequence is conforming, a comparison of vnNv^N_nvnN​ (or VαNV^N_\alphaVαN​) with vnv_nvn​ (or VαV_\alphaVα​), and a lower bound on vnN−vnN(x)v^N_n - v^N_n(x)vnN​−vnN​(x) together imply that the value iteration limits
rN(i)=lim⁡n→∞(vnN(i)−vnN(x))r^N(i)=\lim_{n\to\infty}\big(v^N_n(i)-v^N_n(x)\big)rN(i)=n→∞lim​(vnN​(i)−vnN​(x))

exist and satisfy (AC).

  • Corollary 8.2.2: on S={0,1,2,… }S=\{0,1,2,\dots\}S={0,1,2,…} with SN={0,…,N}S_N=\{0,\dots,N\}SN​={0,…,N} and excess probability sent to NNN, monotonicity of vnNv^N_nvnN​, vnv_nvn​ and of the first passage moments of a 000 standard policy suffices.
  • Proposition 8.2.3: an augmentation type approximating sequence that sends excess probability to a finite set of cheap states satisfies the template.
  • Proposition 8.5.1: in the single-server queue with Bernoulli(ppp) arrivals and constant service rate a>pa>pa>p,
Jd(a)=Hp(1−p)a−p+pC(a)a.J_{d(a)}=\frac{Hp(1-p)}{a-p}+\frac{pC(a)}{a}.Jd(a)​=a−pHp(1−p)​+apC(a)​.
  • Proposition 8.7.1: the conclusions of Theorem 8.1.1 hold under (WAC).

Significance

The result itself. Theorem 8.1.1 is what turns the existence theory of Chapter 7 into a computation. It certifies that the minimum average costs of the truncations converge to the minimum average cost of the infinite model, that this cost is constant, and that the policies produced by value iteration on ΔN\Delta_NΔN​ converge, along subsequences, to an optimal policy for Δ\DeltaΔ. Propositions 8.2.1–8.2.3 reduce (AC) to properties that can be checked model by model; Section 8.3 checks them for queues with reject option, service rate control, and routing to parallel queues. Proposition 8.7.1 is the version used in Chapter 9 for models whose relative values are not uniformly bounded below. Proposition 8.5.1 gives the closed-form open-loop benchmark used in the numerical study of Section 8.5.

Formalizing it. All results are proved in the book; none has a machine-checked proof. A formalization would give the first verified convergence theorem for truncations of denumerable-state average cost MDPs, and would make the approximating sequence method usable as a certified reduction from infinite to finite models. The template results (8.2.1–8.2.3) additionally require a formal treatment of conformity of approximating Markov chains (Appendix C.4–C.5), which is of independent use.

Difficulty

The naive argument takes limits in (8.1) along NNN: the minimum over aaa and the finite sums pass to the limit only in the inequality direction, and only after a Fatou-type lemma for sums against the converging distributions Pij(a;N)P_{ij}(a;N)Pij​(a;N) with integrands rNr^NrN that are neither bounded nor monotone. The lower bound −Q-Q−Q in (AC3) is exactly what makes this possible; without it the limit inequality can fail. The limit inequality then produces only an average cost optimality inequality, and turning it into optimality of the limit policy requires a separate argument that a function bounded below and satisfying the inequality yields an upper bound on the average cost. Existence of lim⁡NJN\lim_N J^NlimN​JN is not given: (AC4) controls only the limit superior, and the limit must be identified through every subsequence. For the template results, the difficulty is in the Markov chain side: the convergence of first passage times and costs of the truncated chains, which fails for general approximating sequences (Examples C.4.4, C.4.7).

Formalization scope

The Lean development is in the namespace SennottDP.AvgASM. The state space is any countable type; action sets are Finsets, assumed nonempty; costs are finite and nonnegative (ℝ≥0); transition probabilities are ℝ≥0∞-valued, with each row a probability distribution for admissible actions. All value functions and average costs take values in [0,∞][0,\infty][0,∞] (ℝ≥0∞), and every infimum over policies ranges over the full class of history-dependent randomized policies. The JNJ^NJN and rNr^NrN of (AC1) are real; the limits superior and inferior over NNN in (AC2)–(AC4) and (WAC) are taken in EReal, so an unbounded sequence cannot produce a junk finite value. The equality J(i)=lim⁡NJNJ(i)=\lim_N J^NJ(i)=limN​JN is stated in EReal, which also asserts that J(i)J(i)J(i) is finite. Quantities of ΔN\Delta_NΔN​ at states outside SNS_NSN​ are junk values that affect only finitely many NNN for each state.

A trivializing formalization is ruled out: JNJ^NJN and rNr^NrN are the witnesses of (AC1), not free variables, the policies eNe^NeN must realize the minimum in (8.1) for those witnesses, and the minimum average cost JJJ is an infimum over all policies, so the goal cannot be satisfied by choosing J∗J^*J∗ or the limit policy.

A complete development needs: the induced process law of a general policy; the average cost optimality inequality argument (Lemma 7.2.1); the finite-state average cost results of Chapter 6 (Propositions 6.4.1, 6.5.1, 6.6.3); a Fatou lemma for converging distributions (Proposition A.2.5); limit points of policy sequences (Proposition B.5); and, for the template results, the theory of zzz standard chains and conformity (Appendix C.2–C.5). The Markov chain layer and the approximating sequence definitions are reusable beyond this mission. Contributions of any of these intermediate results as separate theorems are welcome.

Selected references

  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley Series in Probability and Statistics, John Wiley & Sons, 1999. https://doi.org/10.1002/9780470317037
  • L. I. Sennott, "The computation of average optimal policies in denumerable state Markov decision chains", Advances in Applied Probability 29 (1997), 114–137 (cited as Sennott (1997a) in the book).
  • L. I. Sennott, "On computing average cost optimal policies with application to routing to parallel queues", ZOR — Mathematical Methods of Operations Research 45 (1997), 45–62 (cited as Sennott (1997b) in the book).
12 thms2 active usersReviewed
Operations ResearchProbabilityStochastic Systems·Captain: mikedeng1

Analysis and Algorithms for Service Parts Supply Chains VI: The Shortfall Distribution of Capacity-Limited SystemsTextbook

Motivation

Service parts supply chains are often limited by a capacitated resource, such as a production line or a repair shop, instead of by lead times alone. Once capacity binds, the classical tools for setting stock levels (Palm's theorem and the Poisson distribution of units in resupply) no longer apply, and the quantity that determines how much stock is needed is the shortfall: the amount by which the end-of-period inventory falls below its target because capacity was insufficient. Chapter 8 of Muckstadt, Analysis and Algorithms for Service Parts Supply Chains (Springer 2005, DOI 10.1007/b138879) builds its tactical planning models for capacity-limited systems on the distribution of this random variable, and on a continuous-time repair queue in which item counts are geometric.

The shortfall recursion is the Lindley recursion of queueing theory (Lindley 1952), so its stationary law is the law of the maximum of a random walk with negative drift. The exponential tail of that maximum goes back to Cramér's work on ruin probabilities; for capacitated production–inventory systems it was stated by Glasserman (1997), whose theorem the book quotes as Theorem 11. Glasserman and Tayur (1995) used the shortfall to optimize base-stock levels in multi-echelon capacitated systems, and Roundy and Muckstadt (2000) studied the mass-exponential approximation that the theorem motivates.

Setting

A single item is produced in periods n=1,2,…n = 1, 2, \dotsn=1,2,… of an infinite horizon; at most ccc units can be produced per period. The demand of period nnn is DnD_nDn​; the demands are nonnegative, independent and identically distributed, with generic demand DDD and E[D]<cE[D] < cE[D]<c (the standing assumption of Section 8.1.1).

Under the modified (s−1,s)(s-1, s)(s−1,s) policy with target level sss, the facility observes DnD_nDn​ and produces min⁡{c,s−In−1+Dn}\min\{c, s - I_{n-1} + D_n\}min{c,s−In−1​+Dn​} units, where InI_nIn​ is the end-of-period net inventory and I0=sI_0 = sI0​=s. The shortfall Vn=s−InV_n = s - I_nVn​=s−In​ satisfies V0=0V_0 = 0V0​=0 and

Vn=[Vn−1+Dn−c]+.(8.1)V_n = \left[V_{n-1} + D_n - c\right]^+ . \tag{8.1}Vn​=[Vn−1​+Dn​−c]+.(8.1)

With the random walk Sn=∑k=1n(Dk−c)S_n = \sum_{k=1}^{n} (D_k - c)Sn​=∑k=1n​(Dk​−c) (S0=0S_0 = 0S0​=0), the stationary shortfall is

V=sup⁡n≥0Sn.V = \sup_{n \ge 0} S_n .V=n≥0sup​Sn​.

A law on R\mathbb RR is lattice if it is concentrated on a progression a+dZa + d\mathbb Za+dZ with d>0d > 0d>0.

In the discrete case (ccc and DDD integer valued) (Vn)(V_n)(Vn​) is a Markov chain on {0,1,2,… }\{0, 1, 2, \dots\}{0,1,2,…} with transition probabilities pijp_{ij}pij​ (p. 185). In the repair model of Section 8.3.1, reparable units of item iii arrive at rate λi\lambda_iλi​, λ=∑iλi\lambda = \sum_i \lambda_iλ=∑i​λi​, a single exponential server repairs at rate μ>λ\mu > \lambdaμ>λ, NNN is the number of units in repair and NiN_iNi​ the number of item-iii units, and ηi=λi/(μ−λ+λi)\eta_i = \lambda_i/(\mu - \lambda + \lambda_i)ηi​=λi​/(μ−λ+λi​).

Formalization targets

Goal: Theorem 11, corrected (p. 191)

Assume E[eαD]<∞E[e^{\alpha D}] < \inftyE[eαD]<∞ for all α<δ\alpha < \deltaα<δ, with δ>0\delta > 0δ>0; P[D>c]>0P[D > c] > 0P[D>c]>0; the law of DDD is non-lattice; and E[e−α(c−D)]=1E[e^{-\alpha(c-D)}] = 1E[e−α(c−D)]=1 has a root in (0,δ)(0, \delta)(0,δ). Then there are β>0\beta > 0β>0 and α>0\alpha > 0α>0 with

P{V>v}βe−αv→1(v→∞),α the unique positive root of E[e−α(c−D)]=1.\frac{P\{V > v\}}{\beta e^{-\alpha v}} \to 1 \quad (v \to \infty), \qquad \alpha \text{ the unique positive root of } E\left[e^{-\alpha(c - D)}\right] = 1 .βe−αvP{V>v}​→1(v→∞),α the unique positive root of E[e−α(c−D)]=1.

The constant β\betaβ is left unspecified, as in the book.

Milestones, in attack order

  1. Eq. (8.1): under the modified policy, s−In=Vns - I_n = V_ns−In​=Vn​ for every nnn, independently of sss.
  2. Section 8.1.1: V<∞V < \inftyV<∞ almost surely, P{Vn>v}→P{V>v}P\{V_n > v\} \to P\{V > v\}P{Vn​>v}→P{V>v} for every vvv, and the law of VVV is stationary for (8.1).
  3. Eq. (8.2): for v>0v > 0v>0, P{Vn>v}=P{Dn>v+c}+ED[1(d≤v+c) P{Vn−1>v+c−d}]P\{V_n > v\} = P\{D_n > v + c\} + E_D[1(d \le v + c)\, P\{V_{n-1} > v + c - d\}]P{Vn​>v}=P{Dn​>v+c}+ED​[1(d≤v+c)P{Vn−1​>v+c−d}].
  4. Theorem 11, second sentence: E[e−α(c−D)]=1E[e^{-\alpha(c-D)}] = 1E[e−α(c−D)]=1 has at most one positive root.
  5. Section 8.1.2: with integer demand, (Vn)(V_n)(Vn​) is a Markov chain with transition probabilities pijp_{ij}pij​.
  6. Section 8.1.2: πi=lim⁡nP{Vn=i}\pi_i = \lim_n P\{V_n = i\}πi​=limn​P{Vn​=i} exists and solves πP=π\pi\mathcal P = \piπP=π, ∑iπi=1\sum_i \pi_i = 1∑i​πi​=1, πi≥0\pi_i \ge 0πi​≥0.
  7. Section 8.3.1: if NNN is geometric with parameter λ/μ\lambda/\muλ/μ and NiN_iNi​ given N=jN = jN=j is binomial(j,λi/λ)(j, \lambda_i/\lambda)(j,λi​/λ), then P[Ni=j]=(1−ηi)ηijP[N_i = j] = (1 - \eta_i)\eta_i^jP[Ni​=j]=(1−ηi​)ηij​.
  8. Section 8.3.1: ∑j>spi(j)=ηis+1\sum_{j > s} p_i(j) = \eta_i^{s+1}∑j>s​pi​(j)=ηis+1​, and the smallest cost-minimising stock level is the smallest sss with ηis+1≤hi/(hi+b)\eta_i^{s+1} \le h_i/(h_i + b)ηis+1​≤hi​/(hi​+b).

Significance

The exponential tail is the justification the book gives for approximating the shortfall by a mass-exponential law (an atom at zero plus an exponential tail), from which target stock levels and fill rates are computed in closed form. The decay rate α\alphaα depends only on the demand law and the capacity, so the theorem also says how the stock needed for a given service level grows as utilization approaches one. The discrete-chain milestones justify the exact computation of the shortfall distribution behind the book's Table 8.1 and Figures 8.3–8.8. The geometric law of NiN_iNi​ reduces the multi-item repair problem to independent newsvendor problems with an explicit solution.

The asymptotics of the random-walk maximum are proved in the literature (Cramér–Lundberg theory, Feller Vol. II, XII.5; Asmussen, Applied Probability and Queues, XIII.5); no machine-checked proof is known to exist. Mathlib has neither the Lindley recursion, nor ladder-height decompositions, nor the key renewal theorem for non-lattice laws. The printed Theorem 11 is not correct as stated (see Formalization scope), so the mission also records a corrected statement.

Difficulty

The central step of the goal is the passage from the random walk to an exact asymptotic. An exponential change of measure (Esscher tilt) with the root α\alphaα turns P{V>v}P\{V > v\}P{V>v} into an expectation under a law with positive drift, but it only yields the upper bound P{V>v}≤e−αvP\{V > v\} \le e^{-\alpha v}P{V>v}≤e−αv (Lundberg's inequality); it does not show that eαvP{V>v}e^{\alpha v}P\{V > v\}eαvP{V>v} converges, nor that the limit is positive. Convergence needs a renewal theorem for the overshoot of the tilted walk, which fails for lattice laws. That is why the non-lattice hypothesis cannot be dropped. For the milestones, the existence of the stationary law needs the reversal argument that identifies the law of VnV_nVn​ with that of max⁡k≤nSk\max_{k \le n} S_kmaxk≤n​Sk​, plus the strong law of large numbers to show V<∞V < \inftyV<∞ from E[D]<cE[D] < cE[D]<c.

Formalization scope

  • Model. Demands are real, nonnegative, measurable, i.i.d. (iIndepFun plus IdentDistrib with D1D_1D1​), integrable, with E[D]<cE[D] < cE[D]<c; these are fields of ShortfallModel. Periods are numbered from 111 as in the book (demand 0 is an unused i.i.d. copy). The discrete case is a separate structure with N\mathbb NN-valued demand and capacity.
  • Stationary shortfall. The book's "stationary distribution ... Let VVV represent this random variable" is pinned to V=sup⁡n≥0SnV = \sup_{n \ge 0} S_nV=supn≥0​Sn​, taken in [0,∞][0, \infty][0,∞] and converted to a real number; milestone 2 proves that it is the limit law of VnV_nVn​ from V0=0V_0 = 0V0​=0 and a stationary law of (8.1). The discrete πi\pi_iπi​ is pinned to lim⁡nP{Vn=i}\lim_n P\{V_n = i\}limn​P{Vn​=i}.
  • Corrections to Theorem 11. The printed theorem is false. For integer demand P{V>v}P\{V > v\}P{V>v} is a step function, and no βe−αv\beta e^{-\alpha v}βe−αv is asymptotic to it. If E[eαD]E[e^{\alpha D}]E[eαD] is finite only for α<δ\alpha < \deltaα<δ, the equation E[e−α(c−D)]=1E[e^{-\alpha(c-D)}] = 1E[e−α(c−D)]=1 may have no root in (0,δ)(0,\delta)(0,δ). The goal therefore adds two labelled hypotheses: a non-lattice demand law, and a root in (0,δ)(0, \delta)(0,δ). The mass-exponential demand of Section 8.1.3 (an atom at 000 plus a density) is non-lattice. The approximation β≈e−2(.583)(c−E(D))/σ\beta \approx e^{-2(.583)(c-E(D))/\sigma}β≈e−2(.583)(c−E(D))/σ is not stated.
  • Repair model. The M/M/1 queue is not built. The geometric law of NNN (asserted on p. 202) and the binomial split of NNN (quoted from Chapter 3) enter milestone 7 as hypotheses, exactly as the page's proof uses them. The stability condition λ<μ\lambda < \muλ<μ, not written on the page, is a hypothesis. "The optimal sis_isi​" is read as the smallest minimiser of the cost.
  • Ruled out. Stating Theorem 11 with α\alphaα or β\betaβ allowed to depend on vvv, with β=0\beta = 0β=0 (the ratio would be a division by zero, which Lean evaluates to 000), or for a VVV postulated to have an exponential tail proves nothing. Here β,α\beta, \alphaβ,α are quantified before vvv, both are asserted positive, and VVV is constructed from the demands.
  • Not formalized. The mass-exponential approximations (8.3)–(8.4), the Roundy–Muckstadt refinement, the fill-rate formula η(s)\eta(s)η(s) (a definition, whose steady-state identity needs uniform integrability the book does not discuss), the random-capacity chain on p. 186, and the monotonicity of sis_isi​ in μ\muμ.
  • Reusable infrastructure. Welcome: the Lindley recursion and its reversal identity, the Loynes existence theorem, Lundberg's inequality, and a non-lattice renewal theorem. All of these are needed well beyond this mission, in queueing (GI/G/1 waiting times) and ruin theory.

Selected references

  • J. A. Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer, 2005, Chapter 8. https://doi.org/10.1007/b138879
  • P. Glasserman, Bounds and asymptotics for planning critical safety stocks, Operations Research 45(2), 244–257, 1997. https://doi.org/10.1287/opre.45.2.244
  • P. Glasserman and S. Tayur, Sensitivity analysis for base-stock levels in multiechelon production-inventory systems, Management Science 41(2), 263–281, 1995 (the book's reference [97]). https://doi.org/10.1287/mnsc.41.2.263
  • R. O. Roundy and J. A. Muckstadt, Heuristic computation of periodic-review base stock inventory policies, Management Science 46(1), 104–109, 2000. https://doi.org/10.1287/mnsc.46.1.104.15131
  • D. V. Lindley, The theory of queues with a single server, Mathematical Proceedings of the Cambridge Philosophical Society 48(2), 277–289, 1952. https://doi.org/10.1017/S0305004100027638
  • W. Feller, An Introduction to Probability Theory and Its Applications, Vol. II, 2nd ed., Wiley, 1971, Chapter XII.
  • S. Asmussen, Applied Probability and Queues, 2nd ed., Springer, 2003, Chapter XIII. https://doi.org/10.1007/b97236
12 thms2 active usersReviewed
🏆Completed
ProbabilityStatistics·Captain: mikedeng1

A Note on Metropolis–Hastings Kernels for General State Spaces III: The Maximal Kernel of a Mixture Proposal Dominates the Mixture of Maximal Kernels Off the DiagonalResearch Paper

Motivation

A Markov chain Monte Carlo sampler is often assembled from simpler parts. A practitioner who has several proposal mechanisms Q1,Q2,…Q_1, Q_2, \dotsQ1​,Q2​,… for a Metropolis–Hastings sampler can combine them in two ways. Either each QiQ_iQi​ drives its own Metropolis–Hastings kernel PiP_iPi​ and the sampler picks kernel PiP_iPi​ with probability βi\beta_iβi​ at each step, or the mixture Q=∑iβiQiQ = \sum_i \beta_i Q_iQ=∑i​βi​Qi​ is used as a single proposal inside one Metropolis–Hastings kernel. Both samplers leave the target π\piπ invariant, so the choice is about efficiency.

Section 4 of Tierney (1998) settles the comparison: when both samplers use the maximal acceptance probability, the second never does worse in terms of asymptotic variances of sample-path averages. The statement that carries this is Proposition 5, an ordering of kernels in Peskun's off-diagonal order; the variance comparison then follows from Theorem 4 of the same paper, the general-state-space extension of Peskun (1973).

Timeline. Peskun (1973) introduced off-diagonal domination for finite state spaces and showed that the Metropolis–Hastings acceptance probability is maximal in that order. A version of Proposition 5 for discrete chains appears in the appendix of Tierney (1991) and in the rejoinder of Besag, Green, Higdon and Mengersen (1995). Tierney (1998) states and proves it for general state spaces, using the measure-theoretic description of Metropolis–Hastings kernels from §2 of the same paper.

Setting

Let (E,E)(E, \mathcal E)(E,E) be a measurable space and π\piπ a probability measure on it, the target. A proposal kernel Q(x,dy)Q(x, dy)Q(x,dy) is a Markov kernel on EEE. Given a measurable acceptance probability α:E×E→[0,1]\alpha : E \times E \to [0,1]α:E×E→[0,1], the Metropolis–Hastings kernel is

P(x,dy)=Q(x,dy) α(x,y)+δx(dy)∫(1−α(x,u)) Q(x,du),P(x, dy) = Q(x, dy)\,\alpha(x, y) + \delta_x(dy) \int \bigl(1 - \alpha(x, u)\bigr)\, Q(x, du),P(x,dy)=Q(x,dy)α(x,y)+δx​(dy)∫(1−α(x,u))Q(x,du),

where δx\delta_xδx​ is the point mass at xxx (mhKernel Q α).

Put μ(dx,dy)=π(dx)Q(x,dy)\mu(dx, dy) = \pi(dx) Q(x, dy)μ(dx,dy)=π(dx)Q(x,dy) and μT(dx,dy)=μ(dy,dx)\mu^T(dx, dy) = \mu(dy, dx)μT(dx,dy)=μ(dy,dx). With ν=μ+μT\nu = \mu + \mu^Tν=μ+μT and h=dμ/dνh = d\mu/d\nuh=dμ/dν (canonDensity), let

R={(x,y):h(x,y)>0, h(y,x)>0},r(x,y)=h(x,y)/h(y,x) on R,r=1 on RcR = \{(x, y) : h(x, y) > 0,\ h(y, x) > 0\},\qquad r(x, y) = h(x, y)/h(y, x) \text{ on } R,\quad r = 1 \text{ on } R^cR={(x,y):h(x,y)>0, h(y,x)>0},r(x,y)=h(x,y)/h(y,x) on R,r=1 on Rc

(canonR, canonRatio). The set RRR is symmetric, μ\muμ and μT\mu^TμT are mutually absolutely continuous on RRR and mutually singular off it (Proposition 1 of the paper). The Metropolis–Hastings acceptance probability is

αMH(x,y)=min⁡{1,r(y,x)} if (x,y)∈R,αMH(x,y)=0 otherwise\alpha_{MH}(x, y) = \min\{1, r(y, x)\} \text{ if } (x, y) \in R, \qquad \alpha_{MH}(x, y) = 0 \text{ otherwise}αMH​(x,y)=min{1,r(y,x)} if (x,y)∈R,αMH​(x,y)=0 otherwise

(alphaMH π Q), and the kernel with α=αMH\alpha = \alpha_{MH}α=αMH​ is the maximal Metropolis–Hastings kernel for QQQ (maxMHKernel π Q).

For kernels P1,P2P_1, P_2P1​,P2​ on EEE, P1P_1P1​ dominates P2P_2P2​ off the diagonal, P1⪰P2P_1 \succeq P_2P1​⪰P2​ (OffDiagDominates π P₁ P₂), if for π\piπ-almost every xxx, P1(x,A∖{x})≥P2(x,A∖{x})P_1(x, A \setminus \{x\}) \ge P_2(x, A \setminus \{x\})P1​(x,A∖{x})≥P2​(x,A∖{x}) for all A∈EA \in \mathcal EA∈E. For a countable family of kernels KiK_iKi​ and weights βi≥0\beta_i \ge 0βi​≥0, the mixture ∑iβiKi\sum_i \beta_i K_i∑i​βi​Ki​ is the kernel x↦∑iβiKi(x,⋅)x \mapsto \sum_i \beta_i K_i(x, \cdot)x↦∑i​βi​Ki​(x,⋅) (mixKernel β K).

Formalization targets

Goal: Proposition 5

Let QiQ_iQi​ be a finite or countable family of proposal kernels and βi≥0\beta_i \ge 0βi​≥0 with ∑iβi=1\sum_i \beta_i = 1∑i​βi​=1. Let PiP_iPi​ be the maximal Metropolis–Hastings kernel for QiQ_iQi​ and PPP the maximal Metropolis–Hastings kernel for Q=∑iβiQiQ = \sum_i \beta_i Q_iQ=∑i​βi​Qi​. Then

P⪰∑iβiPi.P \succeq \sum_i \beta_i P_i .P⪰i∑​βi​Pi​.

Both sides use maximal kernels: PPP uses αMH\alpha_{MH}αMH​ of the mixture proposal, each PiP_iPi​ its own αMH(i)\alpha^{(i)}_{MH}αMH(i)​, and the same weights βi\beta_iβi​ form both mixtures.

Milestones

  1. The construction in the proof of Proposition 1 (p. 2) yields a set RRR and ratio rrr with the properties of Proposition 1 for μ=π⊗Q\mu = \pi \otimes Qμ=π⊗Q.
  2. αMH\alpha_{MH}αMH​ satisfies conditions (i) and (ii) of Theorem 2 (p. 3): αMH=0\alpha_{MH} = 0αMH​=0 μ\muμ-a.e. on RcR^cRc, and αMH(x,y)r(x,y)=αMH(y,x)\alpha_{MH}(x, y) r(x, y) = \alpha_{MH}(y, x)αMH​(x,y)r(x,y)=αMH​(y,x) μ\muμ-a.e. on RRR.
  3. The maximal kernel satisfies detailed balance, π(dx)P(x,dy)=π(dy)P(y,dx)\pi(dx) P(x, dy) = \pi(dy) P(y, dx)π(dx)P(x,dy)=π(dy)P(y,dx).
  4. For any symmetric σ\sigmaσ-finite ν\nuν dominating μ\muμ, with h=dμ/dνh = d\mu/d\nuh=dμ/dν:
π(dx)Q(x,dy) αMH(x,y)=min⁡{h(y,x),h(x,y)} ν(dx,dy).\pi(dx) Q(x, dy)\, \alpha_{MH}(x, y) = \min\{h(y, x), h(x, y)\}\, \nu(dx, dy).π(dx)Q(x,dy)αMH​(x,y)=min{h(y,x),h(x,y)}ν(dx,dy).
  1. As measures on E×EE \times EE×E:
π(dx)Q(x,dy) αMH(x,y)≥∑iβi π(dx)Qi(x,dy) αMH(i)(x,y).\pi(dx) Q(x, dy)\, \alpha_{MH}(x, y) \ge \sum_i \beta_i\, \pi(dx) Q_i(x, dy)\, \alpha^{(i)}_{MH}(x, y).π(dx)Q(x,dy)αMH​(x,y)≥i∑​βi​π(dx)Qi​(x,dy)αMH(i)​(x,y).

A companion item states the maximality of αMH\alpha_{MH}αMH​ (§3, p. 7): every measurable acceptance probability α\alphaα whose kernel is reversible satisfies α≤αMH\alpha \le \alpha_{MH}α≤αMH​ μ\muμ-a.e., so the maximal kernel dominates every reversible Metropolis–Hastings kernel with the same proposal.

Significance

The result. Proposition 5, combined with Theorem 4 of the paper (off-diagonal domination orders asymptotic variances of reversible kernels), shows that for every function fff with finite variance the asymptotic variance of 1n∑kf(Xk)\frac1n \sum_{k} f(X_k)n1​∑k​f(Xk​) under the mixture-proposal sampler is at most that under the mixture of samplers. Per-iteration cost can be higher for the mixture proposal, since αMH\alpha_{MH}αMH​ then needs the densities of all components; Proposition 5 isolates the statistical side of that trade-off. The maximality companion states the fact behind the name "maximal kernel": αMH\alpha_{MH}αMH​ is the largest acceptance probability that keeps a Metropolis–Hastings kernel reversible.

Formalizing it. The paper's proof is a computation of about six lines with Radon–Nikodym densities. A formal version must make explicit what the computation leaves implicit: that αMH\alpha_{MH}αMH​, defined from one dominating measure, has the same density form for every symmetric dominating measure; that the measure inequality on E×EE \times EE×E passes to the kernel-level statement with one null set for all AAA; and that the mixture proposal and the mixture of kernels are handled as countable sums of kernels. As of September 2026 neither Mathlib nor this platform has a machine-checked version of Proposition 5, of the maximality of αMH\alpha_{MH}αMH​, or of reversibility of the Metropolis–Hastings kernel on a general state space; only finite-state Metropolis chains have been formalized on the platform.

Difficulty

The obvious argument works pointwise with densities: write every kernel as a density against a common reference measure and compare min⁡{⋅,⋅}\min\{\cdot, \cdot\}min{⋅,⋅} of sums with sums of minima. On a general state space there is no common reference measure given in advance, and αMH\alpha_{MH}αMH​ is only defined up to μ\muμ-null sets, through a Radon–Nikodym derivative with respect to μ+μT\mu + \mu^Tμ+μT, a measure that differs for QQQ and for each QiQ_iQi​. The step that needs care is relating these different versions: the densities hih_ihi​ of the μi\mu_iμi​ against a common symmetric ν\nuν, the density of μ=∑iβiμi\mu = \sum_i \beta_i \mu_iμ=∑i​βi​μi​, and the transpose densities h(y,x)h(y, x)h(y,x), which are densities of μT\mu^TμT only because ν\nuν is symmetric.

The second difficulty is the passage from measures to kernels. The inequality between measures on E×EE \times EE×E gives, for each fixed AAA, the kernel inequality for π\piπ-almost every xxx, with a null set that depends on AAA. The order ⪰\succeq⪰ requires one null set for all AAA, and the diagonal must be removed, which needs the diagonal to be measurable.

Formalization scope

The formalization is in Lean 4 with Mathlib, in the namespace TierneyMH.Mixture. The state space is a type E with a σ-algebra; π is a probability measure; proposal kernels are Markov kernels Kernel E E. Acceptance probabilities and densities take values in [0,∞][0, \infty][0,∞] (ℝ≥0∞); a general α\alphaα is assumed measurable with α≤1\alpha \le 1α≤1. μ\muμ is π ⊗ₘ Q, μT\mu^TμT its image under Prod.swap, detailed balance is Kernel.IsReversible. Mixtures are indexed by a countable type ("a sequence", which includes finite families), with weights in ℝ≥0 and HasSum β 1.

Added hypotheses, both labelled in the statements: singletons are measurable (implicit in the paper's A∖{x}A \setminus \{x\}A∖{x} and δx\delta_xδx​), on the goal and the maximality companion; and, on the goal only, the σ-algebra of EEE is countably generated. The second is an addition to the paper: it is what makes the exceptional null set in ⪰\succeq⪰ uniform over AAA in the passage from the measure inequality to the kernels. It is not assumed in the measure-level milestones.

αMH\alpha_{MH}αMH​ is one fixed version, built from Mathlib's rnDeriv exactly as in the proof of Proposition 1 (with ν=μ+μT\nu = \mu + \mu^Tν=μ+μT, not an arbitrary dominating measure), and all statements are insensitive to the version. The ratio rrr is set to 1 on the null subset of RRR where hhh is infinite, so that 0<r<∞0 < r < \infty0<r<∞ and r(x,y)=1/r(y,x)r(x, y) = 1/r(y, x)r(x,y)=1/r(y,x) hold everywhere, as Proposition 1 asks.

Trivializations ruled out: αMH\alpha_{MH}αMH​ is the indicator of RRR times min⁡{1,r(y,x)}\min\{1, r(y, x)\}min{1,r(y,x)}, never an arbitrary acceptance function or a single α\alphaα shared by all components; ⪰\succeq⪰ compares A∖{x}A \setminus \{x\}A∖{x}, not AAA (on AAA the rejection masses differ and the comparison is false); and the conclusion is about the Metropolis–Hastings kernels themselves, not about the measure identity alone. All hypotheses are satisfiable, for instance on EEE = Bool with π\piπ uniform, two proposals Q1=πQ_1 = \piQ1​=π and Q2=δxQ_2 = \delta_xQ2​=δx​ and weights (1/2,1/2)(1/2, 1/2)(1/2,1/2).

Needed infrastructure, reusable for other Metropolis–Hastings results: Radon–Nikodym calculus for product measures and their transposes, countable sums of kernels, and a monotone-class argument over a countable generating family. The Metropolis–Hastings kernel, RRR, rrr and off-diagonal domination are defined identically in the companion missions I (detailed balance, Theorem 2) and II (Peskun ordering, Theorem 4) of this series. Proofs of milestones in any order, and proofs of the goal from the milestones, are welcome.

Selected references

  • L. Tierney, A Note on Metropolis–Hastings Kernels for General State Spaces, The Annals of Applied Probability 8(1), 1998, 1–9. https://doi.org/10.1214/aoap/1027961031
  • P. H. Peskun, Optimum Monte Carlo sampling using Markov chains, Biometrika 60(3), 1973, 607–612. https://doi.org/10.1093/biomet/60.3.607
  • J. Besag, P. Green, D. Higdon, K. Mengersen, Bayesian computation and stochastic systems (with discussion), Statistical Science 10(1), 1995, 3–66. https://doi.org/10.1214/ss/1177010123
  • W. K. Hastings, Monte Carlo sampling methods using Markov chains and their applications, Biometrika 57(1), 1970, 97–109. https://doi.org/10.1093/biomet/57.1.97
  • N. Metropolis, A. W. Rosenbluth, M. N. Rosenbluth, A. H. Teller, E. Teller, Equations of state calculations by fast computing machines, J. Chemical Physics 21, 1953, 1087–1091. https://doi.org/10.1063/1.1699114
16 thms2 active usersReviewed
Dynamic ProgrammingOperations ResearchStochastic Systems·Captain: mikedeng1

Computing Optimal (s, S) Inventory Policies III: Selecting an (s, S) Policy That Is Optimal for Every Starting StockResearch Paper

Motivation

The periodic-review inventory model with a fixed ordering cost is one of the basic models of operations research. When every order incurs a set-up cost KKK in addition to holding and shortage costs, the optimal replenishment rule over an infinite horizon is, under standard convexity assumptions, a stationary (s,S)(s, S)(s,S) policy: whenever the stock falls below the reorder point sss, order up to the level SSS. Existence of such an optimal policy goes back to Scarf (1960) and Iglehart (1963). Knowing that an optimal (s,S)(s, S)(s,S) policy exists does not say how to find one, and the average cost of an (s,S)(s, S)(s,S) policy is neither convex nor unimodal in (s,S)(s, S)(s,S).

Veinott and Wagner (Management Science 11 (1965) 525–552) gave an exact algorithm. It proceeds in three steps: (i) compute integers s‾≤sˉ≤S‾≤Sˉ\underline{s} \le \bar{s} \le \underline{S} \le \bar{S}s​≤sˉ≤S​≤Sˉ bounding an optimal policy; (ii) find the set S\mathcal SS of all policies within those bounds that minimize the cost for starting stocks below s‾\underline{s}s​; (iii) choose from S\mathcal SS a policy that is optimal for every starting stock. This mission formalizes the theory behind Step iii. It is the third mission of a series on the paper: mission I treats the renewal closed form of the discounted cost, mission II the bounds of Step i.

Setting

Demands ξ1,ξ2,…\xi_1, \xi_2, \dotsξ1​,ξ2​,… are independent non-negative integer random variables with common distribution φ\varphiφ and finite mean. Following the paper's Eq. (2), the unit purchase cost and the holding and penalty costs are combined into a single function Gα:Z→RG_\alpha : \mathbb Z \to \mathbb RGα​:Z→R, assumed convex with Gα(y)→∞G_\alpha(y) \to \inftyGα​(y)→∞ as ∣y∣→∞|y| \to \infty∣y∣→∞; the set-up cost is K≥0K \ge 0K≥0 and α\alphaα is the discount factor.

A stationary (s,S)(s, S)(s,S) policy, with integers s≤Ss \le Ss≤S, sets the stock after ordering to

Yt=S if Xt<s,Yt=Xt if Xt≥s,Y_t = S \text{ if } X_t < s, \qquad Y_t = X_t \text{ if } X_t \ge s,Yt​=S if Xt​<s,Yt​=Xt​ if Xt​≥s,

and the stock evolves as Xt+1=Yt−ξtX_{t+1} = Y_t - \xi_tXt+1​=Yt​−ξt​ from X1=xX_1 = xX1​=x. Its discounted cost is

f(x∣s,S)=∑t≥1αt−1E[Kδ(Yt−Xt)+Gα(Yt)],f(x \mid s, S) = \sum_{t \ge 1} \alpha^{t-1} E\bigl[K\delta(Y_t - X_t) + G_\alpha(Y_t)\bigr],f(x∣s,S)=t≥1∑​αt−1E[Kδ(Yt​−Xt​)+Gα​(Yt​)],

where δ(z)=1\delta(z) = 1δ(z)=1 for z>0z > 0z>0 and δ(0)=0\delta(0) = 0δ(0)=0, and its equivalent average cost is aα(x∣s,S)=(1−α)f(x∣s,S)a_\alpha(x \mid s, S) = (1-\alpha) f(x \mid s, S)aα​(x∣s,S)=(1−α)f(x∣s,S).

A policy (s′,S′)(s', S')(s′,S′) is optimal for a set X\mathfrak XX of integers if, for each x∈Xx \in \mathfrak Xx∈X, it minimizes aα(x∣s,S)a_\alpha(x \mid s, S)aα​(x∣s,S) over all (s,S)(s, S)(s,S) policies; it is optimal if it is optimal for every integer xxx. Under a fixed policy, x′x'x′ is accessible from X1=xX_1 = xX1​=x if Pr⁡(Xt=x′∣X1=x)>0\Pr(X_t = x' \mid X_1 = x) > 0Pr(Xt​=x′∣X1​=x)>0 for some t>1t > 1t>1.

Below the reorder point the cost does not depend on the starting stock; its value is written Lα(S,D)\mathcal L_\alpha(S, D)Lα​(S,D) with D=S−sD = S - sD=S−s. The bounds are: S‾\underline{S}S​ the smallest minimizer of GαG_\alphaGα​; Sˉ\bar{S}Sˉ the smallest integer ≥S‾\ge \underline{S}≥S​ with Gα(Sˉ+1)≥Gα(S‾)+αKG_\alpha(\bar{S}+1) \ge G_\alpha(\underline{S}) + \alpha KGα​(Sˉ+1)≥Gα​(S​)+αK (21); s‾\underline{s}s​ the smallest integer with Gα(s‾)≤Gα(S‾)+KG_\alpha(\underline{s}) \le G_\alpha(\underline{S}) + KGα​(s​)≤Gα​(S​)+K (22); sˉ\bar{s}sˉ the smallest integer with Gα(sˉ)≤Gα(S‾)+(1−α)KG_\alpha(\bar{s}) \le G_\alpha(\underline{S}) + (1-\alpha)KGα​(sˉ)≤Gα​(S​)+(1−α)K (23). The candidate set S\mathcal SS consists of the policies with s‾≤s≤sˉ\underline{s} \le s \le \bar{s}s​≤s≤sˉ, S‾≤S≤Sˉ\underline{S} \le S \le \bar{S}S​≤S≤Sˉ that minimize Lα(S,S−s)\mathcal L_\alpha(S, S-s)Lα​(S,S−s) among such policies.

Formalization targets

Goal: Theorem 2 (p. 543)

For 0<α<10 < \alpha < 10<α<1 and (si,Si),(sj,Sj)∈S(s^i, S^i), (s^j, S^j) \in \mathcal S(si,Si),(sj,Sj)∈S: if (si,Si)(s^i, S^i)(si,Si) is optimal and every x′x'x′ with

min⁡(si,sj)≤x′<max⁡(si,sj)\min(s^i, s^j) \le x' < \max(s^i, s^j)min(si,sj)≤x′<max(si,sj)

is accessible from SjS^jSj under (sj,Sj)(s^j, S^j)(sj,Sj), then (sj,Sj)(s^j, S^j)(sj,Sj) is optimal.

Milestones

  1. §3, p. 533. For x<sx < sx<s, f(x∣s,S)=K+f(S∣s,S)f(x \mid s, S) = K + f(S \mid s, S)f(x∣s,S)=K+f(S∣s,S).
  2. Theorem 1, p. 542. For 0≤α<10 \le \alpha < 10≤α<1 and s≤s′s \le s's≤s′: if aα(x∣s,S)=aα(x∣s′,S′)a_\alpha(x \mid s, S) = a_\alpha(x \mid s', S')aα​(x∣s,S)=aα​(x∣s′,S′) for all x<s′x < s'x<s′, then equality holds for all xxx.
  3. Lemma 1, p. 543. For 0<α<10 < \alpha < 10<α<1: if (s,S)(s, S)(s,S) is optimal for X1=xX_1 = xX1​=x, it is optimal for every x′x'x′ accessible from xxx.

Significance

Theorem 2 turns the final selection step of the algorithm into a reachability check on the demand distribution: a policy of S\mathcal SS is certified optimal without comparing average costs at every starting stock. Its corollaries give checkable sufficient conditions; for example (Corollary 2.2) if φ(k)>0\varphi(k) > 0φ(k)>0 for k=1,…,sn−s1k = 1, \dots, s^n - s^1k=1,…,sn−s1, the policy of S\mathcal SS with the largest reorder point is optimal, which covers Poisson and negative binomial demand. Theorem 1 separately reduces the comparison of two policies to finitely many starting stocks.

The results are proved in the paper (Section 4 and Appendix §3). No machine-checked version is known: the platform has no discrete (s,S)(s, S)(s,S) inventory chain, no discounted cost of a stationary policy on Z\mathbb ZZ, and no accessibility notion for such a chain. The mission produces these objects together with the paper's selection theory on top of them.

Difficulty

Theorem 1 needs a renewal decomposition at the first passage of the stock below s′s's′, carried out for expectations over an unbounded integer state space with a discounted infinite sum. Lemma 1 is the delicate step. The paper's argument compares the (s,S)(s, S)(s,S) policy with a hybrid policy that follows (s,S)(s, S)(s,S) until the stock first reaches x′x'x′ and then switches to an optimal policy; the inequality "the hybrid cannot be better than the optimal policy" requires that some stationary (s,S)(s, S)(s,S) policy is optimal among all ordering policies, including non-stationary ones. That existence result is cited by the paper (Section 2), not proved there. A proof of Lemma 1 within the class of (s,S)(s, S)(s,S) policies alone does not go through, because the hybrid policy is not an (s,S)(s, S)(s,S) policy.

Formalization scope

All objects live in the namespace VeinottWagnerSS.Selection. The model is the structure Model: the demand distribution φ : PMF ℕ with finite mean, K ≥ 0, and G : ℤ → ℝ convex (non-decreasing forward differences) and tending to +∞+\infty+∞ at both ends. The unit cost ccc, the function LLL and the lead time λ\lambdaλ do not appear (the paper's own reduction, Eq. (2), p. 529). Stock levels are integers. stateLaw is the law of Xt+1X_{t+1}Xt+1​, obtained by iterated PMF.bind; fCost is the expected discounted cost of that chain as a real series, which converges absolutely for 0≤α<10 \le \alpha < 10≤α<1 because every YtY_tYt​ lies in [s,max⁡(x,S)][s, \max(x, S)][s,max(x,S)]. aCost is (1−α)(1-\alpha)(1−α) times fCost. Accessible uses the law of XtX_tXt​ with t>1t > 1t>1 strictly. Optimality is among (s,S)(s, S)(s,S) policies (p. 536); the class of general ordering policies is not formalized.

The bounds s‾,sˉ,S‾,Sˉ\underline{s}, \bar{s}, \underline{S}, \bar{S}s​,sˉ,S​,Sˉ are infima of sets of integers; under the standing assumptions and α<1\alpha < 1α<1 these sets are nonempty and bounded below, so each bound is the least integer the paper describes. Lα(S,D)\mathcal L_\alpha(S, D)Lα​(S,D) is defined as aα(S−D−1∣S−D,S)a_\alpha(S - D - 1 \mid S - D, S)aα​(S−D−1∣S−D,S), the cost at the starting stock just below sss; that this is the common value for every x<sx < sx<s is milestone 1.

The standing assumptions are kept in every statement, including Theorem 1 and milestone 1, which do not need them; Lemma 1 and Theorem 2 are true only because of them. No printed slip was found in the three results.

Trivializing formalizations are excluded: fff is the expected cost of the stock process, not a closed formula or a fixed point of a recursion, so milestone 1 is not definitional; the bounds are the least integers of (21)–(23), not arbitrary integers, so S\mathcal SS is determined by the data; the goal does not assume that (sj,Sj)(s^j, S^j)(sj,Sj) is optimal below max⁡(si,sj)\max(s^i, s^j)max(si,sj), and Lemma 1 assumes optimality only at the single starting stock xxx.

Useful contributions beyond the milestones: summability lemmas for fCost, the Markov (one-step) equation for fCost, the first-passage decomposition, and, for Lemma 1, a formalization of general ordering policies with the existence of an optimal stationary (s,S)(s, S)(s,S) policy. The chain and cost definitions are reusable for other (s,S)(s, S)(s,S) results of the paper (Theorem 3, Corollaries 2.1 and 2.2).

Selected references

  • A. F. Veinott, Jr. and H. M. Wagner, Computing Optimal (s, S) Inventory Policies, Management Science 11(5), 525–552, 1965. https://doi.org/10.1287/mnsc.11.5.525
  • H. Scarf, The Optimality of (S, s) Policies in the Dynamic Inventory Problem, in Mathematical Methods in the Social Sciences, Stanford University Press, 1960.
  • D. L. Iglehart, Optimality of (s, S) Policies in the Infinite Horizon Dynamic Inventory Problem, Management Science 9(2), 259–267, 1963. https://doi.org/10.1287/mnsc.9.2.259
6 thms2 active usersReviewed
🏆Completed
Functional AnalysisProbabilityStatistics·Captain: mikedeng1

A Note on Metropolis–Hastings Kernels for General State Spaces II: Off-Diagonal Domination Orders the Asymptotic Variances of Reversible Kernels (Peskun's Theorem)Research Paper

Motivation

Markov chain Monte Carlo (MCMC) estimates an expectation ∫f dπ\int f\,d\pi∫fdπ by the average of fff along a Markov chain whose invariant distribution is π\piπ. Many chains share the same π\piπ: every Metropolis–Hastings acceptance rule that satisfies detailed balance, every mixture of such kernels, every choice of proposal. Practitioners need a criterion for preferring one of them. The standard yardstick is the asymptotic variance of the ergodic average, the constant in the Markov chain central limit theorem. A smaller asymptotic variance means fewer iterations for the same Monte Carlo error.

Peskun (1973) compared chains on a finite state space through a partial order on transition matrices: if one reversible matrix moves off the diagonal at least as much as another, entry by entry, its asymptotic variances are no larger, for every function. That result justifies the Metropolis–Hastings acceptance probability as the best possible among reversible acceptance rules. It covers only finite state spaces, while MCMC is used almost exclusively on continuous or mixed ones.

Tierney (1998) extended Peskun's theorem to general state spaces, using the spectral approach of Kipnis and Varadhan (1986) for reversible chains. The theorem is the one usually cited when an MCMC paper argues that one sampler dominates another; Mira (2001) surveys orderings built on it.

Setting

Let (E,E)(E, \mathcal E)(E,E) be a measurable space in which singletons are measurable, and let π\piπ be a probability measure on EEE. A Markov kernel HHH assigns to each x∈Ex \in Ex∈E a probability measure H(x,⋅)H(x, \cdot)H(x,⋅), measurably in xxx. It acts on functions by (Hf)(x)=∫f(y) H(x,dy)(Hf)(x) = \int f(y)\,H(x,dy)(Hf)(x)=∫f(y)H(x,dy). The measure π\piπ is invariant for HHH if ∫H(x,A) π(dx)=π(A)\int H(x, A)\,\pi(dx) = \pi(A)∫H(x,A)π(dx)=π(A) for every A∈EA \in \mathcal EA∈E. The kernel HHH is reversible with respect to π\piπ (satisfies detailed balance) if

π(dx) H(x,dy)=π(dy) H(y,dx),\pi(dx)\,H(x,dy) = \pi(dy)\,H(y,dx),π(dx)H(x,dy)=π(dy)H(y,dx),

that is, ∫AH(x,B) π(dx)=∫BH(x,A) π(dx)\int_A H(x,B)\,\pi(dx) = \int_B H(x,A)\,\pi(dx)∫A​H(x,B)π(dx)=∫B​H(x,A)π(dx) for all A,B∈EA, B \in \mathcal EA,B∈E. Reversibility implies invariance.

Write ⟨f,g⟩=∫fg dπ\langle f, g\rangle = \int fg\,d\pi⟨f,g⟩=∫fgdπ, L2(π)L^2(\pi)L2(π) for the square-integrable functions and L02(π)={g∈L2(π):∫g dπ=0}L^2_0(\pi) = \{g \in L^2(\pi) : \int g\,d\pi = 0\}L02​(π)={g∈L2(π):∫gdπ=0}.

Off-diagonal domination. For kernels P1,P2P_1, P_2P1​,P2​, P1⪰P2P_1 \succeq P_2P1​⪰P2​ (OffDiagDominates π P₁ P₂) if for π\piπ-almost every xxx,

P1(x,A∖{x})≥P2(x,A∖{x})for all A∈E.P_1(x, A\setminus\{x\}) \ge P_2(x, A \setminus\{x\}) \quad\text{for all } A \in \mathcal E.P1​(x,A∖{x})≥P2​(x,A∖{x})for all A∈E.

So from almost every state P1P_1P1​ moves to every region at least as readily as P2P_2P2​, and the kernels differ only in the probability of staying put.

The chain and its asymptotic variance. For a Markov kernel HHH, let X0,X1,…X_0, X_1, \dotsX0​,X1​,… be the Markov chain with initial distribution π\piπ and transition kernel HHH (chainMeasure π H, a measure on paths N→E\mathbb N \to EN→E). For f∈L02(π)f \in L^2_0(\pi)f∈L02​(π) put Sn=∑i=1nf(Xi)S_n = \sum_{i=1}^n f(X_i)Sn​=∑i=1n​f(Xi​) (pathSum f n) and

v(f,H)=lim⁡n→∞1nVar⁡H(Sn)∈[0,∞].v(f, H) = \lim_{n \to \infty} \frac1n \operatorname{Var}_H(S_n) \in [0, \infty].v(f,H)=n→∞lim​n1​VarH​(Sn​)∈[0,∞].

The lag inner products are ⟨f,Hkf⟩=∫f(x)∫f(y) Hk(x,dy) π(dx)\langle f, H^k f\rangle = \int f(x) \int f(y)\,H^k(x,dy)\,\pi(dx)⟨f,Hkf⟩=∫f(x)∫f(y)Hk(x,dy)π(dx) (lagInner π H f k), and for 0≤λ<10 \le \lambda < 10≤λ<1 the regularized variance is vλ(f,H)=⟨f,f⟩+2∑k≥1λk⟨f,Hkf⟩v_\lambda(f,H) = \langle f,f\rangle + 2 \sum_{k\ge1} \lambda^k \langle f, H^k f\ranglevλ​(f,H)=⟨f,f⟩+2∑k≥1​λk⟨f,Hkf⟩ (vLam π H f lam).

Formalization targets

Goal: Theorem 4 (p. 5)

Let P1,P2P_1, P_2P1​,P2​ be Markov kernels reversible with respect to π\piπ, f∈L02(π)f \in L^2_0(\pi)f∈L02​(π), and P1⪰P2P_1 \succeq P_2P1​⪰P2​. Then both asymptotic variances exist in [0,∞][0,\infty][0,∞] and

v(f,P1)≤v(f,P2).v(f, P_1) \le v(f, P_2).v(f,P1​)≤v(f,P2​).

No rate, constant or regularity of the kernels is fixed. The statement is the ordering itself, valid for every reversible pair and every f∈L02(π)f \in L^2_0(\pi)f∈L02​(π).

Milestones, in attack order

  1. Lemma 3 (p. 5): if P1,P2P_1, P_2P1​,P2​ have invariant distribution π\piπ and P1⪰P2P_1 \succeq P_2P1​⪰P2​, then P2−P1P_2 - P_1P2​−P1​ is a positive operator on L2(π)L^2(\pi)L2(π):
∬f(x)f(y) (P2(x,dy)−P1(x,dy)) π(dx)≥0(f∈L2(π)).\iint f(x)f(y)\,\bigl(P_2(x,dy) - P_1(x,dy)\bigr)\,\pi(dx) \ge 0 \qquad (f \in L^2(\pi)).∬f(x)f(y)(P2​(x,dy)−P1​(x,dy))π(dx)≥0(f∈L2(π)).
  1. A reversible kernel is a self-adjoint contraction on L02(π)L^2_0(\pi)L02​(π) (p. 5): ⟨Hf,g⟩=⟨f,Hg⟩\langle Hf, g\rangle = \langle f, Hg\rangle⟨Hf,g⟩=⟨f,Hg⟩ and ∥Hf∥≤∥f∥\|Hf\| \le \|f\|∥Hf∥≤∥f∥.
  2. Finite-nnn variance identity (p. 5), for n≥1n \ge 1n≥1:
1nVar⁡H(Sn)=⟨f,f⟩+2∑i=1nn−in ⟨f,Hif⟩.\frac1n \operatorname{Var}_H(S_n) = \langle f,f\rangle + 2\sum_{i=1}^n \frac{n-i}{n}\,\langle f, H^i f\rangle.n1​VarH​(Sn​)=⟨f,f⟩+2i=1∑n​nn−i​⟨f,Hif⟩.
  1. Existence of v(f,H)v(f,H)v(f,H) in [0,∞][0,\infty][0,∞] (p. 6).
  2. vλ(f,H)→v(f,H)v_\lambda(f,H) \to v(f,H)vλ​(f,H)→v(f,H) as λ↑1\lambda \uparrow 1λ↑1, finite or infinite (p. 6).
  3. vλ(f,P1)≤vλ(f,P2)v_\lambda(f,P_1) \le v_\lambda(f,P_2)vλ​(f,P1​)≤vλ​(f,P2​) for 0≤λ<10 \le \lambda < 10≤λ<1 when P1⪰P2P_1 \succeq P_2P1​⪰P2​ (p. 6).

Significance

The result. Theorem 4 turns a pointwise, one-step comparison of kernels, which is easy to check, into a comparison of the quantity that governs Monte Carlo error. Its main consequence, drawn in §3 of the paper, is that the Metropolis–Hastings acceptance probability αMH(x,y)=min⁡{1,r(y,x)}\alpha_{MH}(x,y) = \min\{1, r(y,x)\}αMH​(x,y)=min{1,r(y,x)} gives the maximal kernel in the off-diagonal order among reversible Metropolis–Hastings kernels with a given proposal. It is therefore optimal in asymptotic variance, on arbitrary state spaces. Proposition 5 of the same paper (a separate mission in this series) combines with it to show that a single Metropolis–Hastings kernel built on a mixture proposal beats the mixture of the component kernels. Later orderings of samplers (Mira 2001; Andrieu and Livingstone 2021) take this theorem as their base case.

Formalizing it. The theorem has been proved since 1998. No machine-checked version exists for general state spaces, and none of its milestones is on the platform. The formalization produces reusable infrastructure: the asymptotic variance of a stationary chain as an extended-real limit on Mathlib's Ionescu–Tulcea path measure, the L2L^2L2 facts for reversible kernels (self-adjointness, contraction, the covariance formula for path sums), and the positivity of P2−P1P_2 - P_1P2​−P1​ under off-diagonal domination. Each of these is used again in any formal treatment of MCMC efficiency or the Markov chain central limit theorem.

Difficulty

The direct approach compares the two finite-nnn variances. This fails, and not just technically: the paper exhibits two doubly stochastic, symmetric 4×44\times44×4 matrices with P1⪰P2P_1 \succeq P_2P1​⪰P2​ for which the variance of f(X0)+f(X1)+f(X2)f(X_0)+f(X_1)+f(X_2)f(X0​)+f(X1​)+f(X2​) is 15.4 under P1P_1P1​ and 14.8 under P2P_2P2​ (p. 7). Off-diagonal domination orders the lag-one covariances, but higher-order correlations "need not be ordered" (p. 5). The ordering appears only in the limit, and only for reversible kernels. The comparison must pass through an object that sees all lags at once and is monotone along the segment P1+β(P2−P1)P_1 + \beta(P_2 - P_1)P1​+β(P2​−P1​), and that object involves resolvents of operators on L02(π)L^2_0(\pi)L02​(π). The limit may be infinite, so every comparison must be made in [0,∞][0,\infty][0,∞]. Mathlib has neither the spectral measure of a self-adjoint operator nor the Kipnis–Varadhan theory.

Formalization scope

The state space is {E : Type*} [MeasurableSpace E] with [MeasurableSingletonClass E] wherever off-diagonal domination appears. This is an assumption the paper leaves implicit: A∖{x}A \setminus \{x\}A∖{x} must be an event. π\piπ is a probability measure and all kernels are Markov kernels. Reversibility is Mathlib's Kernel.IsReversible, invariance is Kernel.Invariant. The function fff is measurable with MemLp f 2 π and, for L02L^2_0L02​, ∫ f ∂π = 0; measurability picks a representative of the L2L^2L2 class and costs nothing. The chain is Kernel.trajMeasure started from π\piπ. The sum runs over X1,…,XnX_1,\dots,X_nX1​,…,Xn​, not X0X_0X0​. Variances are Mathlib's evariance in [0,∞][0,\infty][0,∞], and v(f,H)v(f,H)v(f,H) is a Tendsto limit in ℝ≥0∞, so an infinite asymptotic variance is represented. The goal asserts the existence of both limits rather than assuming it, so it cannot hold vacuously. Neither it nor any milestone specializes to finite EEE, to Metropolis–Hastings kernels, or to a chain started from a point. Lemma 3 assumes invariance only, and the theorem requires reversibility, as printed.

Two statements depart in form from the page. The finite-nnn variance identity and vλv_\lambdavλ​ are written through the moments ⟨f,Hkf⟩\langle f, H^k f\rangle⟨f,Hkf⟩ (a Neumann series) instead of through the spectral measure ef,He_{f,H}ef,H​ and the resolvent (I−λH)−1(I-\lambda H)^{-1}(I−λH)−1. The two forms agree for a self-adjoint contraction, and this is noted in each item. The paper's appeal to the spectral theorem and to Kipnis and Varadhan (1986) is not restated as an item: a complete development needs it, or an equivalent argument, as part of the proof. Proofs of any milestone, and reusable lemmas on the path measure (stationarity and the marginal laws of (Xi,Xj)(X_i, X_j)(Xi​,Xj​)), are welcome.

Selected references

  • L. Tierney, A Note on Metropolis–Hastings Kernels for General State Spaces, Ann. Appl. Probab. 8(1), 1–9, 1998. https://doi.org/10.1214/aoap/1027961031
  • P. H. Peskun, Optimum Monte-Carlo sampling using Markov chains, Biometrika 60(3), 607–612, 1973. https://doi.org/10.1093/biomet/60.3.607
  • C. Kipnis and S. R. S. Varadhan, Central limit theorem for additive functionals of reversible Markov processes and applications to simple exclusions, Comm. Math. Phys. 104, 1–19, 1986. https://doi.org/10.1007/BF01210789
  • A. Mira, Ordering and improving the performance of Monte Carlo Markov chains, Statist. Sci. 16(4), 340–350, 2001. https://doi.org/10.1214/ss/1015346318
  • C. Andrieu and S. Livingstone, Peskun–Tierney ordering for Markovian Monte Carlo: beyond the reversible scenario, Ann. Statist. 49(4), 1958–1981, 2021. https://doi.org/10.1214/20-AOS2008
11 thms2 active usersReviewed
PreviousPage 1 of 4Next

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me