Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Probability

550 missions · 266 completed

Missions

Open284Completed266All550
🏆Completed
Markov ChainStochastic 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
Markov ChainStochastic 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
Experimental DesignOperations ResearchReinforcement Learning+1·Captain: Shuze Chen

Treatment Locality in A/B TestingResearch Paper

Modern A/B tests must infer lifetime treatment effects — e.g. customer lifetime value under a new feature — from short-horizon experiment data. Chen, Simchi-Levi and Wang (arXiv:2407.19618) model the experiment as a Markov decision process and exploit a structural fact of many practical interventions: the treatment is local, modifying the system at a single crucial state only. This mission formalizes the core asymptotic theory of the paper: for any differentiable estimator built from the experiment's transition and reward statistics, information sharing — pooling across test arms the samples collected away from the treated state — keeps the estimator asymptotically normal with the same asymptotic bias and never increases its asymptotic variance (Theorem 9), and is asymptotically efficient among unbiased estimators (Theorem 5). The route runs through a Markov chain central limit theorem with the asymptotic variance identified as the autocovariance series, and the linearization/delta method for functionals of chain statistics.

42 thms4 active users
🏆Completed
Markov ChainStochastic 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
Algorithmic Game TheoryOperations Research·Captain: mikedeng1

The Price of Anarchy of Finite Congestion Games V: The Mixed Price of Anarchy of the Average Social Cost Is at Most (3+sqrt 5)/2Research Paper

Motivation

When many self-interested users share resources whose cost grows with use (links of a network, servers, machines), each user picks the option that is cheapest for them given what the others do, and the resulting equilibrium can be worse for the group than a centrally planned allocation. The price of anarchy, introduced by Koutsoupias and Papadimitriou (STACS 1999), measures this loss as the worst ratio between the social cost of an equilibrium and the optimal social cost. Congestion games (Rosenthal 1973) are the standard finite model of such resource sharing: they always have pure Nash equilibria, and they cover atomic routing, load balancing and many network design questions.

Timeline of the linear-latency case:

  • 2002: Roughgarden and Tardos (J. ACM) bound the price of anarchy of nonatomic selfish routing with linear latencies by 4/34/34/3.
  • 2005: Awerbuch, Azar and Epstein (STOC 2005) and, independently, Christodoulou and Koutsoupias (STOC 2005) show that for atomic (finite) congestion games with linear latencies the pure price of anarchy of the total cost is 5/25/25/2. Awerbuch, Azar and Epstein also obtain (3+5)/2≈2.618(3+\sqrt5)/2 \approx 2.618(3+5​)/2≈2.618 for weighted players.
  • 2005: Christodoulou and Koutsoupias observe that their argument for 5/25/25/2 extends to mixed Nash equilibria, at the price of the larger constant (3+5)/2(3+\sqrt5)/2(3+5​)/2 (their Theorem 14, the goal of this mission).

Setting

A congestion game consists of a finite set NNN of players, a finite set EEE of facilities, for each player iii a collection Σi\Sigma_iΣi​ of pure strategies, each a subset of EEE, and for each facility eee a latency function fe:N→Rf_e : \mathbb N \to \mathbb Rfe​:N→R. In a pure profile A=(A1,…,An)A = (A_1, \dots, A_n)A=(A1​,…,An​), Ai∈ΣiA_i \in \Sigma_iAi​∈Σi​, the load ne(A)n_e(A)ne​(A) is the number of players whose set contains eee, and player iii pays

ci(A)=∑e∈Aife(ne(A)).c_i(A) = \sum_{e \in A_i} f_e\bigl(n_e(A)\bigr).ci​(A)=e∈Ai​∑​fe​(ne​(A)).

The social cost of a pure profile is SUM(A)=∑i∈Nci(A)\mathrm{SUM}(A) = \sum_{i\in N} c_i(A)SUM(A)=∑i∈N​ci​(A) (NNN times the average cost). Latencies are linear: fe(k)=aek+bef_e(k) = a_e k + b_efe​(k)=ae​k+be​ with ae,be≥0a_e, b_e \ge 0ae​,be​≥0.

A mixed strategy pip_ipi​ of player iii is a probability distribution on Σi\Sigma_iΣi​. The players randomize independently, so the pure profile sss occurs with probability Pr⁡(s)=∏jpj(sj)\Pr(s) = \prod_j p_j(s_j)Pr(s)=∏j​pj​(sj​). Player iii's expected cost is E[ci]=∑sPr⁡(s) ci(s)\mathbb E[c_i] = \sum_s \Pr(s)\, c_i(s)E[ci​]=∑s​Pr(s)ci​(s), and the expected load of eee is E[ne]=∑sPr⁡(s) ne(s)\mathbb E[n_e] = \sum_s \Pr(s)\, n_e(s)E[ne​]=∑s​Pr(s)ne​(s). A mixed profile is a mixed Nash equilibrium if no player can lower their expected cost by switching unilaterally to another distribution on their strategies. The social cost of a mixed profile is the sum of the expected costs, SUM(p)=∑iE[ci]\mathrm{SUM}(p) = \sum_i \mathbb E[c_i]SUM(p)=∑i​E[ci​].

In Lean: CongestionGame ι E with fields strategies and latency, load, cost, IsProfile, sumCost, IsLinear, expCost, expLoad, mixedSumCost and IsMixedNash, all in the namespace CongestionPoA.Mixed; lotteries and independent randomization come from the platform definition agt_games (AGT.IsLottery, AGT.profileProb, AGT.IsMixedNash).

Formalization targets

Goal: Theorem 14

For every congestion game with linear latencies, every mixed Nash equilibrium ppp and every pure profile PPP with Pi∈ΣiP_i \in \Sigma_iPi​∈Σi​,

∑i∈NE[ci]  ≤  3+52 SUM(P).\sum_{i\in N} \mathbb E[c_i] \;\le\; \frac{3+\sqrt5}{2}\,\mathrm{SUM}(P).i∈N∑​E[ci​]≤23+5​​SUM(P).

Taking PPP optimal, the mixed price of anarchy of the average social cost is at most (3+5)/2(3+\sqrt5)/2(3+5​)/2.

Milestones

  1. Lemma 3 (corrected). For real x≥0x \ge 0x≥0 and integer y≥0y \ge 0y≥0, y(x+1)≤5−14x2+5+54y2y(x+1) \le \frac{\sqrt5-1}{4}x^2 + \frac{\sqrt5+5}{4}y^2y(x+1)≤45​−1​x2+45​+5​y2.
  2. Deviation inequality (Theorem 1's proof, mixed). At a mixed Nash equilibrium, for every player iii,
E[ci]≤∑e∈Pi(ae(E[ne]+1)+be).\mathbb E[c_i] \le \sum_{e\in P_i}\bigl(a_e(\mathbb E[n_e]+1) + b_e\bigr).E[ci​]≤e∈Pi​∑​(ae​(E[ne​]+1)+be​).
  1. Summing step (Theorem 1's proof, mixed).
∑iE[ci]≤∑e∈Ene(P)(ae(E[ne]+1)+be).\sum_i \mathbb E[c_i] \le \sum_{e\in E} n_e(P)\bigl(a_e(\mathbb E[n_e]+1) + b_e\bigr).i∑​E[ci​]≤e∈E∑​ne​(P)(ae​(E[ne​]+1)+be​).

Significance

The bound says that randomization by the players cannot make linear congestion games much worse than pure play: the loss stays within a constant factor independent of the number of players and facilities. Mixed equilibria matter because they always exist in every finite game and because they model populations of users whose individual choices are not known in advance. The same authors report (PDF p. 2) extending these bounds to correlated equilibria with the same values, which places the mixed bound in a hierarchy of equilibrium notions whose worst cases coincide.

The result is proved in the paper, in one sentence that defers to the proof of Theorem 1. The work here is a complete machine-checked version: the expected-cost layer for congestion games on top of agt_games, the deviation and summing inequalities under product distributions, and the corrected Lemma 3. The paper prints Lemma 3 for all nonnegative reals x,yx, yx,y, where it is false (at x=0x = 0x=0, y=1/10y = 1/10y=1/10 the left side is 0.10.10.1 and the right side about 0.0180.0180.018); the formal statement keeps yyy an integer, which is how the lemma is used. No formalization of congestion-game price-of-anarchy bounds was on the platform when this mission was drafted.

Difficulty

The pure proof compares ne(P)(ne(A)+1)n_e(P)(n_e(A)+1)ne​(P)(ne​(A)+1) with ne(A)2n_e(A)^2ne​(A)2 and ne(P)2n_e(P)^2ne​(P)2 through an integer inequality (Lemma 1). Under a mixed equilibrium the equilibrium side is an expectation, so the cost of a facility is no longer a function of one integer load, and Lemma 1's constant 1/31/31/3 is not available for real arguments: a real-variable version is needed, and the constant degrades from 5/25/25/2 to (3+5)/2(3+\sqrt5)/2(3+5​)/2. A second obstacle is bookkeeping: the deviating player's load changes only on their own deviation, while the other players' randomization stays independent, and the expected cost of a player has to be related to expected facility loads, which uses linearity of the latencies in an essential way. The naive idea of applying Theorem 1 to each pure profile in the support of the equilibrium fails, because those profiles are not themselves Nash equilibria.

Formalization scope

Players and facilities are finite types ι and E; profiles are functions ι → Finset E, with feasibility IsProfile a separate predicate. Latencies are real-valued on natural-number loads, and "linear" means affine with nonnegative coefficients, fe(k)=aek+bef_e(k) = a_e k + b_efe​(k)=ae​k+be​; the paper displays only the identity latency fe(k)=kf_e(k)=kfe​(k)=k and states that its proofs extend. Mixed strategies are real weight functions on the finite strategy type Σi\Sigma_iΣi​; independence is built into AGT.profileProb; Nash deviations range over all lotteries, which is equivalent to pure deviations. agt_games maximizes payoffs, so the game is passed to it with payoff −ci-c_i−ci​. The goal is stated against every feasible pure profile rather than as a ratio, so no division by an optimum that may be 000 occurs. The social cost is the expected sum of the players' costs; the paper's second option, ∑eE[ne2]\sum_e \mathbb E[n_e^2]∑e​E[ne2​], is not part of this mission. A version with correlated distributions on profiles, or one that bounds the cost of an "averaged" profile instead of the expected cost, is a different statement and does not discharge the goal.

A complete development needs elementary finite-sum manipulation of product distributions (marginals of AGT.profileProb, expectations of loads), and a Jensen-type inequality (E[ne])2≤E[ne2](\mathbb E[n_e])^2 \le \mathbb E[n_e^2](E[ne​])2≤E[ne2​] for finite distributions. The expectation lemmas for congestion games are reusable for the other mixed results of the literature (weighted games, polynomial latencies). Proofs of the milestones, of the expectation layer, and alternative arguments are all welcome.

Selected references

  • G. Christodoulou, E. Koutsoupias, The Price of Anarchy of Finite Congestion Games, STOC 2005, pp. 67–73. https://doi.org/10.1145/1060590.1060600
  • B. Awerbuch, Y. Azar, A. Epstein, The Price of Routing Unsplittable Flow, STOC 2005, pp. 57–66. https://doi.org/10.1145/1060590.1060599
  • E. Koutsoupias, C. Papadimitriou, Worst-case Equilibria, STACS 1999, LNCS 1563, pp. 404–413. https://doi.org/10.1007/3-540-49116-3_38
  • R. W. Rosenthal, A Class of Games Possessing Pure-Strategy Nash Equilibria, International Journal of Game Theory 2 (1973), pp. 65–67. https://doi.org/10.1007/BF01737559
  • T. Roughgarden, É. Tardos, How Bad Is Selfish Routing?, Journal of the ACM 49 (2002), pp. 236–259. https://doi.org/10.1145/506147.506153
7 thms3 active usersReviewed
Linear OptimizationMachine LearningStatistics·Captain: mikedeng1

The Dantzig Selector: Statistical Estimation When p Is Much Larger than n 2: Oracle Inequality within a Logarithmic Factor of the Ideal Mean Squared ErrorResearch Paper

Motivation

Many regression problems have far more unknown coefficients ppp than observations nnn: gene expression studies with tens of samples and thousands of genes, imaging from few measurements, nonparametric curve recovery from a finite number of noisy samples. Estimation is hopeless in general, but becomes possible when the parameter is sparse, that is, has few nonzero entries. Candès and Tao (arXiv:math/0506081; Ann. Statist. 35(6), 2007, doi:10.1214/009053606000001523) proposed the Dantzig selector, an estimator computed by a single linear program, and showed that its squared error is within a logarithmic factor of what an oracle that knew which coefficients matter could achieve.

The estimator became one of the two standard ℓ1\ell_1ℓ1​ methods for high-dimensional regression, alongside the Lasso; the comparison of the two by Bickel, Ritov and Tsybakov (arXiv:0801.1095, 2009) is built on it. This mission targets the paper's main result, the oracle inequality (Theorem 1.2). A companion mission covers the simpler ℓ2\ell_2ℓ2​ bound for sparse parameters (Theorem 1.1).

Setting

Observations follow the linear model

y=Xβ+z,y = X\beta + z,y=Xβ+z,

where X∈Rn×pX\in\mathbb R^{n\times p}X∈Rn×p is a deterministic design matrix with columns X1,…,XpX_1,\dots,X_pX1​,…,Xp​, each of Euclidean norm ∥Xj∥ℓ2=1\|X_j\|_{\ell_2}=1∥Xj​∥ℓ2​​=1; β∈Rp\beta\in\mathbb R^pβ∈Rp is an unknown deterministic parameter; and z=(z1,…,zn)z=(z_1,\dots,z_n)z=(z1​,…,zn​) has independent N(0,σ2)N(0,\sigma^2)N(0,σ2) coordinates, σ>0\sigma>0σ>0. The vector β\betaβ is SSS-sparse if at most SSS of its entries are nonzero.

Two constants of XXX measure how close sparse sets of columns are to being orthonormal. The restricted isometry constant δS\delta_SδS​ is the smallest δ≥0\delta\ge0δ≥0 such that (1−δ)∥c∥ℓ22≤∥Xc∥ℓ22≤(1+δ)∥c∥ℓ22(1-\delta)\|c\|_{\ell_2}^2\le\|Xc\|_{\ell_2}^2\le(1+\delta)\|c\|_{\ell_2}^2(1−δ)∥c∥ℓ2​2​≤∥Xc∥ℓ2​2​≤(1+δ)∥c∥ℓ2​2​ for every ccc supported on at most SSS indices. The restricted orthogonality constant θS,S′\theta_{S,S'}θS,S′​ (defined for S+S′≤pS+S'\le pS+S′≤p) is the smallest θ≥0\theta\ge0θ≥0 with ∣⟨Xc,Xc′⟩∣≤θ∥c∥ℓ2∥c′∥ℓ2|\langle Xc,Xc'\rangle|\le\theta\|c\|_{\ell_2}\|c'\|_{\ell_2}∣⟨Xc,Xc′⟩∣≤θ∥c∥ℓ2​​∥c′∥ℓ2​​ whenever c,c′c,c'c,c′ are supported on disjoint sets of sizes at most SSS and S′S'S′. Below δ:=δ2S\delta:=\delta_{2S}δ:=δ2S​ and θ:=θS,2S\theta:=\theta_{S,2S}θ:=θS,2S​.

For a tuning level λp>0\lambda_p>0λp​>0, a Dantzig selector β^\hat\betaβ^​ is any solution of

min⁡β~∈Rp∥β~∥ℓ1subject to∥X∗(y−Xβ~)∥ℓ∞=sup⁡1≤j≤p∣⟨y−Xβ~,Xj⟩∣≤λpσ.\min_{\tilde\beta\in\mathbb R^p}\|\tilde\beta\|_{\ell_1}\quad\text{subject to}\quad\|X^*(y-X\tilde\beta)\|_{\ell_\infty}=\sup_{1\le j\le p}|\langle y-X\tilde\beta,X_j\rangle|\le\lambda_p\sigma .β~​∈Rpmin​∥β~​∥ℓ1​​subject to∥X∗(y−Xβ~​)∥ℓ∞​​=1≤j≤psup​∣⟨y−Xβ~​,Xj​⟩∣≤λp​σ.

The ideal mean squared error is ∑i=1pmin⁡(βi2,σ2)\sum_{i=1}^p\min(\beta_i^2,\sigma^2)∑i=1p​min(βi2​,σ2): the risk of an oracle that keeps exactly the coordinates above the noise level.

Formalization targets

Goal: Theorem 1.2 (pp. 8–9)

Let t>0t>0t>0, a≥0a\ge0a≥0, and λp:=(1+a+t−1)2log⁡p\lambda_p:=(\sqrt{1+a}+t^{-1})\sqrt{2\log p}λp​:=(1+a​+t−1)2logp​. If β\betaβ is SSS-sparse and δ2S+θS,2S<1−t\delta_{2S}+\theta_{S,2S}<1-tδ2S​+θS,2S​<1−t, then with probability exceeding 1−(πlog⁡p⋅pa)−11-(\sqrt{\pi\log p}\cdot p^a)^{-1}1−(πlogp​⋅pa)−1 every Dantzig selector obeys

∥β^−β∥ℓ22≤C22⋅λp2⋅(σ2+∑i=1pmin⁡(βi2,σ2)),\|\hat\beta-\beta\|_{\ell_2}^2\le C_2^2\cdot\lambda_p^2\cdot\Big(\sigma^2+\sum_{i=1}^p\min(\beta_i^2,\sigma^2)\Big),∥β^​−β∥ℓ2​2​≤C22​⋅λp2​⋅(σ2+i=1∑p​min(βi2​,σ2)),

with the explicit constant (1.14)

C2=2C01−δ−θ+2θ(1+δ)(1−δ−θ)2+1+δ1−δ−θ,C0=22(1+1−δ21−δ−θ)+(1+12)(1+δ)21−δ−θ.C_2=\frac{2C_0}{1-\delta-\theta}+\frac{2\theta(1+\delta)}{(1-\delta-\theta)^2}+\frac{1+\delta}{1-\delta-\theta},\qquad C_0=2\sqrt2\Big(1+\frac{1-\delta^2}{1-\delta-\theta}\Big)+\Big(1+\frac1{\sqrt2}\Big)\frac{(1+\delta)^2}{1-\delta-\theta}.C2​=1−δ−θ2C0​​+(1−δ−θ)22θ(1+δ)​+1−δ−θ1+δ​,C0​=22​(1+1−δ−θ1−δ2​)+(1+2​1​)1−δ−θ(1+δ)2​.

Milestones

  1. Lemma 3.2: ∥Xβ∥ℓ2≤1+δ (∥β∥ℓ2+(2S)−1/2∥β∥ℓ1)\|X\beta\|_{\ell_2}\le\sqrt{1+\delta}\,(\|\beta\|_{\ell_2}+(2S)^{-1/2}\|\beta\|_{\ell_1})∥Xβ∥ℓ2​​≤1+δ​(∥β∥ℓ2​​+(2S)−1/2∥β∥ℓ1​​) for every β\betaβ.
  2. Lemma A.1 (dual sparse reconstruction, ℓ2\ell_2ℓ2​ version): for ccc supported on ∣T∣≤2S|T|\le2S∣T∣≤2S, a vector β\betaβ on TTT whose correlations ⟨Xβ,Xj⟩\langle X\beta,X_j\rangle⟨Xβ,Xj​⟩ equal cjc_jcj​ on TTT and are small off TTT except on an exceptional set of size at most SSS, with bounds (6.1)–(6.6).
  3. Corollary A.2 (ℓ∞\ell_\inftyℓ∞​ version): the same without exceptional set, constants 1/(1−δ−θ)1/(1-\delta-\theta)1/(1−δ−θ).
  4. Corollary A.3 (constrained thresholding): an SSS-sparse β\betaβ with ∥β∥ℓ2<λS\|\beta\|_{\ell_2}<\lambda\sqrt S∥β∥ℓ2​​<λS​ splits as β′+β′′\beta'+\beta''β′+β′′ with β′\beta'β′ small in ℓ2\ell_2ℓ2​ and ℓ1\ell_1ℓ1​ and ∥X∗Xβ′′∥ℓ∞<1−δ21−δ−θλ\|X^*X\beta''\|_{\ell_\infty}<\frac{1-\delta^2}{1-\delta-\theta}\lambda∥X∗Xβ′′∥ℓ∞​​<1−δ−θ1−δ2​λ.
  5. Gaussian tail bound (Section 3, p. 15): P(sup⁡j∣⟨z,Xj⟩∣>u)≤2p φ(u)/uP(\sup_j|\langle z,X_j\rangle|>u)\le2p\,\varphi(u)/uP(supj​∣⟨z,Xj​⟩∣>u)≤2pφ(u)/u for standard Gaussian noise.
  6. Lemma 3.1: the ℓ2\ell_2ℓ2​ mass of hhh on T0T_0T0​ and its top SSS positions outside T0T_0T0​ is controlled by ∥XT01TXh∥ℓ2\|X^T_{T_{01}}Xh\|_{\ell_2}∥XT01​T​Xh∥ℓ2​​ and ∥h∥ℓ1(T0c)\|h\|_{\ell_1(T_0^c)}∥h∥ℓ1​(T0c​)​.

Significance

The result. Theorem 1.2 says that a single linear program, which knows neither the support of β\betaβ nor which coefficients exceed the noise, matches the oracle risk ∑imin⁡(βi2,σ2)\sum_i\min(\beta_i^2,\sigma^2)∑i​min(βi2​,σ2) up to a factor O(log⁡p)O(\log p)O(logp), uniformly over SSS-sparse parameters and with explicit, nonasymptotic constants. For coefficients well below the noise level it is far sharper than the σ2Slog⁡p\sigma^2 S\log pσ2Slogp bound of Theorem 1.1. It is the template for later oracle inequalities for ℓ1\ell_1ℓ1​-penalized estimators under restricted isometry or restricted eigenvalue conditions.

Formalizing it. The theorem is proved in the paper, but parts of the argument are only sketched: Corollary A.2 refers to the 2005 Decoding by Linear Programming paper for its convergence argument, and Corollary A.3's ℓ1\ell_1ℓ1​ bound is printed with a constant its own proof does not deliver. A machine-checked proof settles these steps. The restricted isometry and orthogonality constants used here are already published on the platform from the decoding series; the appendix lemmas on dual vectors are reusable for any compressed-sensing result in that framework. No formalization of the Dantzig selector's oracle inequality is known to us.

Difficulty

The natural proof compares β^\hat\betaβ^​ with the hard-thresholded parameter β(1)\beta^{(1)}β(1) that keeps only the large coefficients: if β(1)\beta^{(1)}β(1) were feasible for the Dantzig constraint, the analysis of Theorem 1.1 would apply directly. It is not feasible in general, because the small coefficients β(2)\beta^{(2)}β(2), though individually below the noise level, can add up to a large correlation X∗Xβ(2)X^*X\beta^{(2)}X∗Xβ(2). The central difficulty is to split β(2)\beta^{(2)}β(2) into a part with controlled ℓ1\ell_1ℓ1​ and ℓ2\ell_2ℓ2​ norm and a part invisible to the constraint; this requires constructing dual vectors with prescribed correlations (Lemma A.1, Corollary A.2), via an iterative, geometrically convergent correction. The probabilistic part is a Gaussian tail estimate plus a union bound, and the bookkeeping of constants must be carried through exactly.

Formalization scope

Vectors are functions Fin p → ℝ, the design is Matrix (Fin n) (Fin p) ℝ, and the noise is a family z : Fin n → Ω → ℝ of mutually independent random variables (iIndepFun) each with law gaussianReal 0 σ². δ2S\delta_{2S}δ2S​ and θS,2S\theta_{S,2S}θS,2S​ are the published CandesTao.Decoding.restrictedIsometryConst X (2*S) and restrictedOrthogonalityConst X S (2*S) (infima, absolute value in the orthogonality condition). Domain: S≥1S\ge1S≥1 and 3S≤p3S\le p3S≤p (the paper defines θS,S′\theta_{S,S'}θS,S′​ for S+S′≤pS+S'\le pS+S′≤p), which forces p≥3p\ge3p≥3 and log⁡p>0\log p>0logp>0. A Dantzig selector is any ℓ1\ell_1ℓ1​ minimizer over the feasible set; the ℓ∞\ell_\inftyℓ∞​ constraint is a bound on every coordinate.

The goal bounds from above the (outer) probability of the bad event "no Dantzig selector exists, or some Dantzig selector violates (1.13)". Because the event includes non-existence, a definition no vector satisfies cannot make the theorem vacuous; and the constant C2C_2C2​ is the printed (1.14), evaluated at δ2S\delta_{2S}δ2S​, θS,2S\theta_{S,2S}θS,2S​ of XXX, not a free constant chosen after the fact.

Corrected constant: Corollary A.3 is stated with ∥β′∥ℓ1≤21+δ1−δ−θ∥β∥ℓ22/λ\|\beta'\|_{\ell_1}\le2\frac{1+\delta}{1-\delta-\theta}\|\beta\|_{\ell_2}^2/\lambda∥β′∥ℓ1​​≤21−δ−θ1+δ​∥β∥ℓ2​2​/λ, the bound its proof gives once Corollary A.2 is applied at an integer sparsity level; the printed statement omits the factor 222. Corollary A.2 carries Lemma A.1's standing hypothesis δ+θ<1\delta+\theta<1δ+θ<1. The deterministic lemmas (3.1, 3.2, A.1–A.3) assume nothing about column norms, since their statements do not need it.

Useful infrastructure: monotonicity of δS\delta_SδS​ and θS,S′\theta_{S,S'}θS,S′​ in their indices (the proof applies the lemmas at a smaller sparsity level), the Gaussian tail bound 1−Φ(u)<φ(u)/u1-\Phi(u)<\varphi(u)/u1−Φ(u)<φ(u)/u, existence of minimizers of the Dantzig linear program, and a sorting/blocking toolkit for "the SSS largest positions". Proofs of individual milestones are welcome independently.

Selected references

  • E. Candès and T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6):2313–2351, 2007. arXiv:math/0506081v3, doi:10.1214/009053606000001523
  • E. Candès and T. Tao, Decoding by linear programming, IEEE Trans. Inform. Theory 51(12):4203–4215, 2005. arXiv:math/0502327, doi:10.1109/TIT.2005.858979
  • P. Bickel, Y. Ritov and A. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4):1705–1732, 2009. arXiv:0801.1095, doi:10.1214/08-AOS620
  • D. Donoho and I. Johnstone, Ideal spatial adaptation by wavelet shrinkage, Biometrika 81(3):425–455, 1994. doi:10.1093/biomet/81.3.425
11 thms3 active usersReviewed
Linear OptimizationMachine LearningStatistics·Captain: mikedeng1

The Dantzig Selector: Statistical Estimation When p Is Much Larger than n 1: ℓ2 Error Bound for Sparse Parameters under the Uniform Uncertainty PrincipleResearch Paper

Motivation

In many statistical applications the number of unknown parameters ppp is far larger than the number of observations nnn: gene-expression studies with tens of samples and thousands of genes, imaging problems with fewer measurements than pixels, and nonparametric curve estimation from finitely many noisy samples. Least squares is useless in this regime, since the system Xβ=yX\beta=yXβ=y is underdetermined. If the parameter is sparse (only a few of its entries are nonzero), estimation becomes possible, and the question is how accurate a computationally tractable estimator can be.

Candès and Tao (arXiv:math/0506081; Ann. Statist. 35(6), 2007, doi:10.1214/009053606000001523) introduced the Dantzig selector, an estimator computed by a linear program, and proved that its squared error is within a factor of order log⁡p\log plogp of the error of an oracle that knows where the nonzero entries are. The paper, with its discussion in the same issue, is one of the founding results of high-dimensional sparse regression, alongside the Lasso analysis of Bickel, Ritov and Tsybakov (arXiv:0801.1095).

Timeline. Candès and Tao (2005, arXiv:math/0502327) showed that ℓ1\ell_1ℓ1​ minimization recovers a sparse vector exactly from noiseless data when the restricted isometry constants of the design satisfy δS+θS,S+θS,2S<1\delta_S+\theta_{S,S}+\theta_{S,2S}<1δS​+θS,S​+θS,2S​<1. The Dantzig selector paper (first posted 2005, published 2007) carried this to Gaussian noise, with the ℓ2\ell_2ℓ2​ error bound formalized here (Theorem 1.1) and an oracle inequality (Theorem 1.2). Bickel, Ritov and Tsybakov (2009) replaced the restricted isometry hypothesis by weaker restricted eigenvalue conditions and showed that the Lasso and the Dantzig selector behave alike.

Setting

Observe y∈Rny\in\mathbb R^ny∈Rn from the linear model

y=Xβ+z,y=X\beta+z ,y=Xβ+z,

where X∈Rn×pX\in\mathbb R^{n\times p}X∈Rn×p is a deterministic design matrix with columns X1,…,XpX_1,\dots,X_pX1​,…,Xp​, each of Euclidean norm ∥Xj∥ℓ2=1\|X_j\|_{\ell_2}=1∥Xj​∥ℓ2​​=1; β∈Rp\beta\in\mathbb R^pβ∈Rp is an unknown deterministic parameter; and z=(z1,…,zn)z=(z_1,\dots,z_n)z=(z1​,…,zn​) is a vector of independent N(0,σ2)N(0,\sigma^2)N(0,σ2) random variables with σ>0\sigma>0σ>0. The vector β\betaβ is SSS-sparse if at most SSS of its entries are nonzero.

For T⊆{1,…,p}T\subseteq\{1,\dots,p\}T⊆{1,…,p} let XTX_TXT​ be the submatrix of the columns indexed by TTT. The restricted isometry constant δS\delta_SδS​ is the smallest δ≥0\delta\ge0δ≥0 with

(1−δ)∥c∥ℓ22≤∥XTc∥ℓ22≤(1+δ)∥c∥ℓ22(1-\delta)\|c\|_{\ell_2}^2\le\|X_Tc\|_{\ell_2}^2\le(1+\delta)\|c\|_{\ell_2}^2(1−δ)∥c∥ℓ2​2​≤∥XT​c∥ℓ2​2​≤(1+δ)∥c∥ℓ2​2​

for all ∣T∣≤S|T|\le S∣T∣≤S and all coefficient vectors ccc; the restricted orthogonality constant θS,S′\theta_{S,S'}θS,S′​ (for S+S′≤pS+S'\le pS+S′≤p) is the smallest θ≥0\theta\ge0θ≥0 with ∣⟨XTc,XT′c′⟩∣≤θ∥c∥ℓ2∥c′∥ℓ2|\langle X_Tc,X_{T'}c'\rangle|\le\theta\|c\|_{\ell_2}\|c'\|_{\ell_2}∣⟨XT​c,XT′​c′⟩∣≤θ∥c∥ℓ2​​∥c′∥ℓ2​​ for all disjoint T,T′T,T'T,T′ with ∣T∣≤S|T|\le S∣T∣≤S, ∣T′∣≤S′|T'|\le S'∣T′∣≤S′.

Given a tuning parameter λp>0\lambda_p>0λp​>0, the Dantzig selector β^\hat\betaβ^​ is any solution of

min⁡β~∈Rp∥β~∥ℓ1subject to∥X∗(y−Xβ~)∥ℓ∞=max⁡1≤j≤p∣⟨y−Xβ~,Xj⟩∣≤λp⋅σ.\min_{\tilde\beta\in\mathbb R^p}\|\tilde\beta\|_{\ell_1}\quad\text{subject to}\quad\|X^*(y-X\tilde\beta)\|_{\ell_\infty}=\max_{1\le j\le p}|\langle y-X\tilde\beta,X_j\rangle|\le\lambda_p\cdot\sigma .β~​∈Rpmin​∥β~​∥ℓ1​​subject to∥X∗(y−Xβ~​)∥ℓ∞​​=1≤j≤pmax​∣⟨y−Xβ~​,Xj​⟩∣≤λp​⋅σ.

Formalization targets

Goal: Theorem 1.1

Let S≥1S\ge1S≥1, 3S≤p3S\le p3S≤p, β\betaβ SSS-sparse, and δ2S+θS,2S<1\delta_{2S}+\theta_{S,2S}<1δ2S​+θS,2S​<1. For every a≥0a\ge0a≥0, with λp=2(1+a)log⁡p\lambda_p=\sqrt{2(1+a)\log p}λp​=2(1+a)logp​, with probability exceeding 1−(πlog⁡p⋅pa)−11-(\sqrt{\pi\log p}\cdot p^a)^{-1}1−(πlogp​⋅pa)−1 the program has a solution and every solution satisfies

∥β^−β∥ℓ22≤C12⋅λp2⋅S⋅σ2,C1=41−δ2S−θS,2S.\|\hat\beta-\beta\|_{\ell_2}^2\le C_1^2\cdot\lambda_p^2\cdot S\cdot\sigma^2,\qquad C_1=\frac{4}{1-\delta_{2S}-\theta_{S,2S}} .∥β^​−β∥ℓ2​2​≤C12​⋅λp2​⋅S⋅σ2,C1​=1−δ2S​−θS,2S​4​.

For a=0a=0a=0 this is ∥β^−β∥ℓ22≤C12⋅(2log⁡p)⋅S⋅σ2\|\hat\beta-\beta\|_{\ell_2}^2\le C_1^2\cdot(2\log p)\cdot S\cdot\sigma^2∥β^​−β∥ℓ2​2​≤C12​⋅(2logp)⋅S⋅σ2, display (1.10) of the paper. The constant is the one the paper's proof establishes (see Formalization scope).

Milestones

  1. The cone constraint (3.2): if ∥β+h∥ℓ1≤∥β∥ℓ1\|\beta+h\|_{\ell_1}\le\|\beta\|_{\ell_1}∥β+h∥ℓ1​​≤∥β∥ℓ1​​ and β\betaβ vanishes off T0T_0T0​, then ∥hT0c∥ℓ1≤∥hT0∥ℓ1\|h_{T_0^c}\|_{\ell_1}\le\|h_{T_0}\|_{\ell_1}∥hT0c​​∥ℓ1​​≤∥hT0​​∥ℓ1​​.
  2. The tube constraint (3.3): with unit-normed columns, if ∣⟨z,Xj⟩∣≤λp|\langle z,X_j\rangle|\le\lambda_p∣⟨z,Xj​⟩∣≤λp​ for all jjj and β^\hat\betaβ^​ is feasible, then ∥X∗X(β^−β)∥ℓ∞≤2λp\|X^*X(\hat\beta-\beta)\|_{\ell_\infty}\le2\lambda_p∥X∗X(β^​−β)∥ℓ∞​​≤2λp​.
  3. Lemma 3.1 (under the section’s unit-column assumption): an ℓ2\ell_2ℓ2​ bound on hhh over T0∪T1T_0\cup T_1T0​∪T1​ (T1T_1T1​ the SSS largest entries of hhh off T0T_0T0​) in terms of ∥XT01TXh∥ℓ2\|X_{T_{01}}^TXh\|_{\ell_2}∥XT01​T​Xh∥ℓ2​​ and ∥h∥ℓ1(T0c)\|h\|_{\ell_1(T_0^c)}∥h∥ℓ1​(T0c​)​, and ∥h∥ℓ22≤∥h∥ℓ2(T01)2+S−1∥h∥ℓ1(T0c)2\|h\|_{\ell_2}^2\le\|h\|_{\ell_2(T_{01})}^2+S^{-1}\|h\|_{\ell_1(T_0^c)}^2∥h∥ℓ2​2​≤∥h∥ℓ2​(T01​)2​+S−1∥h∥ℓ1​(T0c​)2​.
  4. The deterministic core: with σ=1\sigma=1σ=1, on the event ∣⟨z,Xj⟩∣≤λp|\langle z,X_j\rangle|\le\lambda_p∣⟨z,Xj​⟩∣≤λp​ for all jjj, every Dantzig selector satisfies ∥β^−β∥ℓ22≤C12λp2S\|\hat\beta-\beta\|_{\ell_2}^2\le C_1^2\lambda_p^2S∥β^​−β∥ℓ2​2​≤C12​λp2​S.
  5. The Gaussian tail bound: for standard normal zzz and Zj=⟨z,Xj⟩Z_j=\langle z,X_j\rangleZj​=⟨z,Xj​⟩, P(sup⁡j∣Zj∣>u)≤2p φ(u)/u\mathbb P(\sup_j|Z_j|>u)\le2p\,\varphi(u)/uP(supj​∣Zj​∣>u)≤2pφ(u)/u with φ(u)=(2π)−1/2e−u2/2\varphi(u)=(2\pi)^{-1/2}e^{-u^2/2}φ(u)=(2π)−1/2e−u2/2.

Significance

The result. Theorem 1.1 shows that an estimator computable by linear programming reaches, up to the factor 2log⁡p2\log p2logp and the constant C12C_1^2C12​, the squared error Sσ2S\sigma^2Sσ2 that least squares would attain if the support of β\betaβ were known in advance, even when p≫np\gg np≫n. The factor log⁡p\log plogp is the price of not knowing the support; the paper argues (p. 5) that, apart from this factor, (1.10) is unimprovable in general. The bound is non-asymptotic, with an explicit constant and an explicit failure probability, and it holds for every SSS-sparse β\betaβ simultaneously in the sense that the good event (the noise being nearly orthogonal to every column) does not depend on β\betaβ. Its deterministic part, Lemma 3.1, is reused verbatim in the proof of the paper's oracle inequality (Theorem 1.2) and became a standard tool in compressed sensing.

Formalizing it. The result is proved, and to our knowledge no machine-checked proof exists. A formalization produces a checked version of the cone-and-tube argument behind most ℓ1\ell_1ℓ1​-recovery guarantees, a Lean statement of the restricted isometry machinery for noisy data, and a checked Gaussian maximal inequality usable for other high-dimensional estimators. It also settles the exact constant: the paper prints C1=4/(1−δS−θS,2S)C_1=4/(1-\delta_S-\theta_{S,2S})C1​=4/(1−δS​−θS,2S​), while its proof gives δ2S\delta_{2S}δ2S​ in place of δS\delta_SδS​.

Difficulty

Lemma 3.1 is the main obstacle. The obvious approach bounds ∥h∥ℓ2\|h\|_{\ell_2}∥h∥ℓ2​​ directly through restricted isometry, and it fails because the error hhh is not sparse: it spreads over all ppp coordinates, and restricted isometry controls XXX only on vectors with at most 2S2S2S nonzero entries. The two constraints (3.2) and (3.3) only say that hhh is concentrated in ℓ1\ell_1ℓ1​ on the SSS coordinates of T0T_0T0​ and that X∗XhX^*XhX∗Xh is small coordinatewise, and turning that into an ℓ2\ell_2ℓ2​ bound on all of hhh is where the work lies. In Lean this requires bookkeeping that is routine on paper: ordering the coordinates of hhh off T0T_0T0​ by magnitude, with ties and a possibly incomplete last group of coordinates, and working with the span of a selected set of columns. On the probabilistic side, the tail bound needs the law of ⟨z,Xj⟩\langle z,X_j\rangle⟨z,Xj​⟩ (a weighted sum of independent Gaussians), a sharp Gaussian tail estimate of Mills-ratio type, and a union over ppp events. A cruder sub-Gaussian bound 2e−u2/22e^{-u^2/2}2e−u2/2 would not give the stated failure probability.

Formalization scope

Indices are Fin n and Fin p; vectors are functions into ℝ. The norms, the column XjX_jXj​ and the constants δS\delta_SδS​, θS,S′\theta_{S,S'}θS,S′​ are the published definitions CandesTao_Decoding_Norms and CandesTao_Decoding_RestrictedIsometry (the smallest admissible constants, via sInf), from the formalization of Candès and Tao's Decoding by Linear Programming. The noise is a family z : Fin n → Ω → ℝ on a probability space, mutually independent (iIndepFun), each coordinate with law gaussianReal 0 σ². The ℓ∞\ell_\inftyℓ∞​ constraint is coordinatewise. A Dantzig selector is any minimizer; uniqueness is not assumed. Section 3 works with σ=1\sigma=1σ=1; the goal is stated for general σ>0\sigma>0σ>0.

Committed conventions and corrections:

  • Corrected constant. Theorem 1.1 is printed with C1=4/(1−δS−θS,2S)C_1=4/(1-\delta_S-\theta_{S,2S})C1​=4/(1−δS​−θS,2S​), but the proof (pp. 18–19) applies Lemma 3.1, whose δ\deltaδ is δ2S\delta_{2S}δ2S​. Since δS≤δ2S\delta_S\le\delta_{2S}δS​≤δ2S​, the printed constant is stronger than what is proved. The goal and the deterministic core are stated with C1=4/(1−δ2S−θS,2S)C_1=4/(1-\delta_{2S}-\theta_{S,2S})C1​=4/(1−δ2S​−θS,2S​).
  • Domain. 1≤S1\le S1≤S and 3S≤p3S\le p3S≤p, because θS,2S\theta_{S,2S}θS,2S​ is defined only for S+2S≤pS+2S\le pS+2S≤p. This forces p≥3p\ge3p≥3 and log⁡p>0\log p>0logp>0.
  • Failure event. The probability bounded is that of the set where no Dantzig selector exists or some Dantzig selector violates the bound. A version that only constrains existing solutions, or that assumes the feasible set is nonempty, would be weaker. The bound is strict, as in the paper's "exceeding", and is on the outer measure, so no measurability of the event is assumed.
  • Standing assumptions are binders: unit-normed columns, independent Gaussian noise, deterministic XXX and β\betaβ.

A trivializing formalization is excluded: the hypothesis δ2S+θS,2S<1\delta_{2S}+\theta_{S,2S}<1δ2S​+θS,2S​<1 is on the actual least constants of XXX, not on free parameters, and it is satisfiable (for instance by X=IpX=I_pX=Ip​, where both constants vanish).

Needed infrastructure: sums of independent real Gaussians (Mathlib has gaussianReal and its convolution), a Mills-ratio tail bound, a sorting-based block decomposition of a Finset, and orthogonal projection onto the span of finitely many columns. The block decomposition and the tail bound are reusable beyond this mission. Proofs of any milestone are welcome, as are alternative proofs of Lemma 3.1.

Selected references

  • E. Candès and T. Tao, The Dantzig selector: statistical estimation when p is much larger than n, Ann. Statist. 35(6) (2007), 2313–2351. arXiv:math/0506081, doi:10.1214/009053606000001523
  • E. Candès and T. Tao, Decoding by linear programming, IEEE Trans. Inform. Theory 51(12) (2005), 4203–4215. arXiv:math/0502327
  • P. Bickel, Y. Ritov and A. Tsybakov, Simultaneous analysis of Lasso and Dantzig selector, Ann. Statist. 37(4) (2009), 1705–1732. arXiv:0801.1095
9 thms3 active usersReviewed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Air Travel Demand and Airline Seat Inventory Management I: Marginal Seat Allocation Among Distinct Fare ClassesTextbook

Why airlines allocate seats by fare class

An airline sells the seats of one flight leg at several prices. Low fares fill seats that would otherwise fly empty; high fares are bought by passengers who book late and cannot be predicted exactly. Seat inventory control decides how many seats each fare class may sell. Peter Belobaba's 1987 MIT dissertation (MIT Flight Transportation Laboratory Report R87-7) gave the probabilistic treatment of this problem that became the expected marginal seat revenue (EMSR) method, which was in use across the airline industry for decades.

This mission formalizes the first, simplest model of the thesis: distinct (non-nested) fare-class inventories on a single leg, where a seat assigned to a class may be sold only in that class or not at all. The thesis surveys this model in Sect. 4.2 (pp. 84–94), where an integer-programming formulation from McDonnell-Douglas and its solution by ranking marginal values are described (p. 90), and develops it probabilistically in Sect. 5.1 (pp. 102–107).

Setting

A leg has capacity nnn seats (the thesis also writes CCC). There are finitely many fare classes iii. Class iii has an average fare fi≥0f_i \ge 0fi​≥0 and receives a random number of requests ri∈{0,1,2,… }r_i \in \{0,1,2,\dots\}ri​∈{0,1,2,…}, with law pip_ipi​. The seats are split into allocations Si∈NS_i \in \mathbb{N}Si​∈N, one per class.

With SSS seats, a class books requests until its seats run out, so its bookings and spill (refused requests) are

b=min⁡(r,S),l=(r−S)+(Eq. (5.3)).b = \min(r, S), \qquad l = (r - S)^+ \qquad \text{(Eq. (5.3))}.b=min(r,S),l=(r−S)+(Eq. (5.3)).

The expected revenue of class iii is Rˉi(Si)=fi⋅bˉi(Si)\bar R_i(S_i) = f_i \cdot \bar b_i(S_i)Rˉi​(Si​)=fi​⋅bˉi​(Si​) with bˉi(Si)=E[min⁡(ri,Si)]\bar b_i(S_i) = E[\min(r_i,S_i)]bˉi​(Si​)=E[min(ri​,Si​)], and the leg's expected revenue is Rˉ=∑iRˉi(Si)\bar R = \sum_i \bar R_i(S_i)Rˉ=∑i​Rˉi​(Si​) (Eq. (5.9)). Write

Pˉi(S)=P[ri≥S],EMSRi(S)=fi⋅Pˉi(S)(Eqs. (5.11), (6.1), (6.2)),\bar P_i(S) = P[r_i \ge S], \qquad \mathrm{EMSR}_i(S) = f_i \cdot \bar P_i(S) \qquad \text{(Eqs. (5.11), (6.1), (6.2))},Pˉi​(S)=P[ri​≥S],EMSRi​(S)=fi​⋅Pˉi​(S)(Eqs. (5.11), (6.1), (6.2)),

the expected marginal seat revenue of the SSS-th seat of class iii. The value of the kkk-th seat of class iii in the integer program of p. 90 is mi(k)=EMSRi(k)m_i(k) = \mathrm{EMSR}_i(k)mi​(k)=EMSRi​(k), k=1,…,nk = 1, \dots, nk=1,…,n.

Formalization targets

Goal: the nnn largest marginal values give the optimal booking limits (p. 90)

Let TTT be any set of nnn pairs (i,k)(i,k)(i,k), 1≤k≤n1 \le k \le n1≤k≤n, such that every mi(k)m_i(k)mi​(k) with (i,k)∈T(i,k) \in T(i,k)∈T is at least every mj(l)m_j(l)mj​(l) with (j,l)∉T(j,l) \notin T(j,l)∈/T, and let SiT=#{k:(i,k)∈T}S^T_i = \#\{k : (i,k) \in T\}SiT​=#{k:(i,k)∈T}. Then ∑iSiT=n\sum_i S^T_i = n∑i​SiT​=n and

∑ifi E[min⁡(ri,Si)]  ≤  ∑ifi E[min⁡(ri,SiT)]for every S with ∑iSi≤n.\sum_i f_i\, E[\min(r_i, S_i)] \;\le\; \sum_i f_i\, E[\min(r_i, S^T_i)] \qquad \text{for every } S \text{ with } \textstyle\sum_i S_i \le n .i∑​fi​E[min(ri​,Si​)]≤i∑​fi​E[min(ri​,SiT​)]for every S with ∑i​Si​≤n.

The goal fixes no distribution, number of classes or fare ordering, and it holds for every tie-breaking among equal marginal values.

Milestones

  1. Eq. (5.6): bˉi(S)+lˉi(S)=rˉi\bar b_i(S) + \bar l_i(S) = \bar r_ibˉi​(S)+lˉi​(S)=rˉi​ for requests of finite mean.
  2. Eq. (5.11): Rˉi(S)−Rˉi(S−1)=fi⋅P[ri≥S]\bar R_i(S) - \bar R_i(S-1) = f_i \cdot P[r_i \ge S]Rˉi​(S)−Rˉi​(S−1)=fi​⋅P[ri​≥S] for S≥1S \ge 1S≥1.
  3. Eqs. (6.1)–(6.2): Pˉi\bar P_iPˉi​ and EMSRi\mathrm{EMSR}_iEMSRi​ are non-increasing in SSS.
  4. Eq. (4.5): the 0–1 vector equal to 111 on a set of nnn largest mi(k)m_i(k)mi​(k) is an optimal solution of the linear program max⁡∑i,kXikmi(k)\max \sum_{i,k} X_{ik} m_i(k)max∑i,k​Xik​mi​(k) subject to ∑Xik≤n\sum X_{ik} \le n∑Xik​≤n, 0≤Xik≤10 \le X_{ik} \le 10≤Xik​≤1.
  5. Eq. (5.13), discrete form: an allocation of exactly CCC seats maximises Rˉ\bar RRˉ among such allocations if and only if some λ\lambdaλ satisfies EMSRi(Si)≥λ\mathrm{EMSR}_i(S_i) \ge \lambdaEMSRi​(Si​)≥λ whenever Si≥1S_i \ge 1Si​≥1 and EMSRi(Si+1)≤λ\mathrm{EMSR}_i(S_i + 1) \le \lambdaEMSRi​(Si​+1)≤λ, for all iii.

Significance

The goal is the reason distinct-inventory allocation is computationally easy: a revenue-maximising allocation is obtained by sorting n×(number of classes)n \times (\text{number of classes})n×(number of classes) numbers, with no search over allocations. The same marginal-value principle underlies the EMSR rules for nested classes in the rest of the thesis, and the identity (5.11) is the link between an expected-revenue function and its marginal seat values used throughout revenue management. Milestone 5 is the integer form of the Lagrangian condition of Eq. (5.13); the thesis states it only for a continuous relaxation, and its equality form is generally unattainable with integer seats.

These results are classical and their proofs are elementary; to our knowledge none of them has been machine-checked. The mission produces a reusable formal model of a single-leg, distinct-inventory allocation problem with integer demand (bookings, spill, revenue and marginal values of a PMF ℕ), and checked statements of the marginal-allocation principle for it.

Difficulty

The thesis argues with continuous densities and derivatives, setting ∂Rˉ/∂Si\partial \bar R / \partial S_i∂Rˉ/∂Si​ equal across classes. That argument does not transfer to integer seats: the derivative of a step-shaped expected-revenue function does not exist, equality of marginal values across classes generally fails at every integer allocation, and the tail probability must be P[r≥S]P[r \ge S]P[r≥S] rather than the P[r>S]P[r > S]P[r>S] of Eq. (5.2) for the marginal identity to hold. The integer statements need their own exchange argument. A second subtlety is ties: "the nnn largest values" is not unique, and the goal must hold for every admissible choice, including choices in which a class's selected seat numbers are not an initial segment {1,…,Si}\{1, \dots, S_i\}{1,…,Si​}.

Formalization scope

All declarations live in the namespace SeatInventory.Distinct. Conventions:

  • Integer demand. The law of class iii's requests is d i : PMF ℕ; expectations are series over N\mathbb{N}N. The thesis's continuous densities are replaced by this discrete model, which the thesis itself requires for seat allocations (p. 103).
  • Tail convention. Pˉ(S)=P[r≥S]\bar P(S) = P[r \ge S]Pˉ(S)=P[r≥S], as in Eq. (6.2) and the prose of Eq. (5.11) ("the probability of selling SiS_iSi​ or more seats"), not the P[r>S]P[r > S]P[r>S] of Eq. (5.2).
  • Seat numbers start at 1, and the pairs (i,k)(i,k)(i,k) range over k∈{1,…,n}k \in \{1, \dots, n\}k∈{1,…,n}, as the 600 variables of a 150-seat, four-class problem on p. 90 indicate.
  • Nonnegative fares fi≥0f_i \ge 0fi​≥0 are assumed in every statement that needs them; with a negative fare the capacity constraint ∑Si≤n\sum S_i \le n∑Si​≤n would not bind and the claims fail.
  • Finite mean of the requests is assumed explicitly for Eq. (5.6); the thesis assumes it silently. Expected bookings are bounded and need no assumption.
  • Capacity. The goal and the LP compare against allocations with ∑iSi≤n\sum_i S_i \le n∑i​Si​≤n (the LP's constraint); milestone 5 compares allocations of exactly CCC seats (Eq. (5.8)).
  • No independence assumption. Expected revenue of distinct inventories depends only on each class's marginal law, so the statements take one law per class.
  • "Decreasing" is non-increasing. The thesis's justification in Sect. 6.1.1 gives only monotonicity; strict decrease fails for bounded demand.
  • LP integrality. "The solution will be integer" is stated as: the indicator of every set of nnn largest values is optimal. With ties the LP also has fractional optima.

The expected revenue in the goal is computed from the booking rule min⁡(ri,Si)\min(r_i, S_i)min(ri​,Si​); it is not defined as a sum of marginal values, and the optimal allocation is not defined as an argmax of Rˉ\bar RRˉ. Either shortcut would make the goal a tautology and is ruled out.

Needed infrastructure: tail sums of a PMF ℕ, telescoping of E[min⁡(r,S)]E[\min(r, S)]E[min(r,S)], and a finite exchange argument for sums of the nnn largest values of a function on a finite set; the last two are reusable for any separable concave resource-allocation problem. Contributions of proofs of any milestone, and of a verified sorting routine that produces a set of nnn largest values, are welcome.

Selected references

  • P. P. Belobaba, Air Travel Demand and Airline Seat Inventory Management, PhD thesis, MIT Flight Transportation Laboratory Report R87-7, 1987 (no DOI).
  • P. P. Belobaba, Airline yield management: an overview of seat inventory control, Transportation Science 21(2), 63–73, 1987. https://doi.org/10.1287/trsc.21.2.63
  • P. P. Belobaba, Application of a probabilistic decision model to airline seat inventory control, Operations Research 37(2), 183–197, 1989. https://doi.org/10.1287/opre.37.2.183
  • K. Littlewood, Forecasting and control of passenger bookings, AGIFORS Symposium Proceedings 12, 1972; reprinted in Journal of Revenue and Pricing Management 4(2), 111–123, 2005. https://doi.org/10.1057/palgrave.rpm.5170134
8 thms3 active usersReviewed
CombinatoricsOperations ResearchTheoretical Computer Science·Captain: mikedeng1

A Polylogarithmic-Competitive Algorithm for the k-Server Problem: Randomized k-Server Is O(log² k · log³ n · log log n)-Competitive on Every n-Point MetricResearch Paper

Motivation

The k-server problem (Manasse, McGeoch and Sleator, 1990) is the central problem of online computation: kkk servers sit on points of a metric space, requests arrive one at a time at points of the space, and each request must be served by moving a server to it, at a cost equal to the distance travelled. An online algorithm decides without knowing future requests; its quality is its competitive ratio, the worst-case ratio between its cost and the cost of an optimal offline schedule. Paging (caching) is the special case of a uniform metric, and weighted paging the case of a weighted star.

Timeline of the upper bounds for general metrics:

  • 1990: Manasse, McGeoch and Sleator prove that every deterministic algorithm has ratio at least kkk and conjecture that kkk is achievable.
  • 1991: Fiat, Rabani and Ravid give the first ratio depending on kkk only (exponential in kkk).
  • 1995: Koutsoupias and Papadimitriou prove that the work function algorithm is (2k−1)(2k-1)(2k−1)-competitive.
  • For randomized algorithms against an oblivious adversary, the conjectured answer is O(log⁡k)O(\log k)O(logk), achieved for paging (Fiat et al., 1991), but until 2011 nothing better than the deterministic 2k−12k-12k−1 was known for general metrics, even when the ratio may depend on the number of points nnn.
  • 2011: Bansal, Buchbinder, Mądry and Naor give the first polylogarithmic bound, O(log⁡2klog⁡3nlog⁡log⁡n)O(\log^2 k\log^3 n\log\log n)O(log2klog3nloglogn) (arXiv:1110.1580; J. ACM 62(5), 2015, DOI 10.1145/2783434), the result of this mission.

Setting

Let (M,dist)(M,\mathrm{dist})(M,dist) be a finite metric space with nnn points and kkk a number of servers. A configuration C:{1,…,k}→MC:\{1,\dots,k\}\to MC:{1,…,k}→M places server iii at C(i)C(i)C(i). A deterministic online algorithm maps each prefix of the request sequence to a configuration that has a server at the last request; its cost on a sequence ρ\rhoρ is the total distance travelled. OPT(C0,ρ)\mathrm{OPT}(C_0,\rho)OPT(C0​,ρ) is the least cost of any schedule serving ρ\rhoρ from the initial configuration C0C_0C0​. A randomized algorithm is a probability distribution over deterministic online algorithms, all starting at C0C_0C0​; it is ccc-competitive if there is a constant aaa such that its expected cost on every request sequence ρ\rhoρ is at most c⋅OPT(C0,ρ)+ac\cdot\mathrm{OPT}(C_0,\rho)+ac⋅OPT(C0​,ρ)+a.

The paper works with three auxiliary objects. A σ-HST is a rooted tree whose leaves are the points, in which all edges from a node to its children have one common length, equal to 1/σ1/\sigma1/σ times the length of the edge above that node; the distance between two leaves is the length of the tree path. A weighted σ-HST only requires that the edge above a non-root internal node be at least σ\sigmaσ times each edge below it. In the fractional k-server problem on a tree, the state is a vector xxx of server probabilities on the leaves with 0≤xi≤10\le x_i\le10≤xi​≤1 and ∑ixi=k\sum_i x_i=k∑i​xi​=k, a request at leaf iii forces xi=1x_i=1xi​=1, and moving from xxx to x′x'x′ costs ∑vW(v) ∣xv′−xv∣\sum_v W(v)\,|x'_v-x_v|∑v​W(v)∣xv′​−xv​∣, where xvx_vxv​ is the mass below node vvv and W(v)W(v)W(v) the length of the edge above vvv. In the allocation problem on a weighted star with weights wiw_iwi​, requests carry a location iti^tit, a monotone cost vector ht(0)≥⋯≥ht(k)≥0h^t(0)\ge\dots\ge h^t(k)\ge0ht(0)≥⋯≥ht(k)≥0 (the cost of serving with jjj servers there) and a server quota κ(t)≤k\kappa(t)\le kκ(t)≤k.

Formalization targets

Goal: Theorem 1

There is a universal constant C>0C>0C>0 such that for all k≥2k\ge2k≥2, every metric space MMM with n≥3n\ge3n≥3 points and every initial configuration C0C_0C0​, some randomized online algorithm starting at C0C_0C0​ is

C log⁡2k log⁡3n log⁡log⁡n-competitive.C\,\log^2 k\,\log^3 n\,\log\log n\text{-competitive.}Clog2klog3nloglogn-competitive.

Milestones

In the order the proof uses them:

  1. Claim 15: the fix-stage inequality behind the allocation algorithm's analysis.
  2. Theorem 5: for every 0<ε≤10<\varepsilon\le10<ε≤1, a fractional allocation algorithm whose hit cost is at most (1+ε)(Opt+wmax⁡g(κ))+a(1+\varepsilon)(\mathrm{Opt}+w_{\max}g(\kappa))+a(1+ε)(Opt+wmax​g(κ))+a and whose movement cost is at most O(log⁡(k/ε))(Opt+wmax⁡g(κ))+aO(\log(k/\varepsilon))(\mathrm{Opt}+w_{\max}g(\kappa))+aO(log(k/ε))(Opt+wmax​g(κ))+a, where g(κ)=∑t∣κ(t)−κ(t−1)∣g(\kappa)=\sum_t|\kappa(t)-\kappa(t-1)|g(κ)=∑t​∣κ(t)−κ(t−1)∣.
  3. Theorem 6: given such allocation algorithms, an O(ℓlog⁡(kℓ))O(\ell\log(k\ell))O(ℓlog(kℓ))-competitive fractional k-server algorithm on every weighted σ-HST of depth ℓ\ellℓ with σ=Ω(ℓlog⁡(kℓ))\sigma=\Omega(\ell\log(k\ell))σ=Ω(ℓlog(kℓ)).
  4. Theorem 8: every σ-HST with nnn leaves becomes a weighted σ-HST of depth O(log⁡n)O(\log n)O(logn) on the same leaves, with distances distorted by at most 2σ/(σ−1)2\sigma/(\sigma-1)2σ/(σ−1).
  5. Lemma 25 and Theorem 24: on a σ-HST with σ>5\sigma>5σ>5, randomized states consistent with a changing fractional state can be maintained online at cost O(ct)O(c_t)O(ct​) per step.
  6. Theorem 7: on a σ-HST with σ>5\sigma>5σ>5, a ccc-competitive fractional algorithm yields an O(c)O(c)O(c)-competitive randomized one.

Significance

The theorem broke the exponential gap between the Ω(log⁡k)\Omega(\log k)Ω(logk) lower bound and the 2k−12k-12k−1 upper bound for randomized k-server, and showed that randomization helps on every finite metric, not only on uniform or specially structured ones. Its two-level method (a fractional algorithm on trees driven by per-node allocation problems, followed by an online rounding) became the template for later work, including the O(log⁡2k)O(\log^2 k)O(log2k) bound on HSTs of Bubeck, Cohen, Lee, Lee and Mądry (STOC 2018) and Lee's O(log⁡6k)O(\log^6 k)O(log6k) bound on general metrics (FOCS 2018).

The result is proved, in this paper. As far as is known it has no machine-checked proof. Formalizing it means formalizing the analysis of an online algorithm driven by a continuous-time process, a potential-function argument with exact constants, a tree contraction with a distortion bound, and an online randomized rounding against a transportation cost. The allocation, HST and rounding statements are reusable for other online problems on trees (metrical task systems, weighted paging).

Difficulty

For a deterministic or randomized algorithm on a tree, the natural recursion splits the servers of each node among its children. Coté, Meyerson and Poplawski showed that this works if each node solves an allocation problem with a strong guarantee: hit cost within a factor 1+ε1+\varepsilon1+ε of optimal. Integral allocation algorithms cannot achieve this; the integrality gap example of the paper (p. 8) gives a factor Ω(k)\Omega(k)Ω(k). The fractional relaxation avoids the gap, but then the rounding step must keep a randomized state consistent with a fractional state at constant-factor cost, and the HSTs obtained from general metrics have depth growing with the aspect ratio, which a depth-dependent ratio cannot afford. Each of the three reductions (allocation to fractional k-server, deep HST to shallow weighted HST, fractional to randomized) loses only polylogarithmic or constant factors, and the main theorem needs all three at once.

Formalization scope

The k-server model, randomized algorithms and competitiveness are the published definitions KServer_model and KServer_randomized; competitiveness carries an additive constant fixed before the request sequence. Trees are finite rooted trees with a parent map, a depth function and positive edge lengths; points of the k-server problem are the leaves, and the theorems take an arbitrary finite metric space together with a bijection to the leaves and the hypothesis that the distance equals the tree distance. Fractional k-server states have exactly kkk units of mass, each leaf at most 111, and fractional algorithms are measured against the integral offline optimum. The allocation optimum is the integral optimum; cost vectors are finite, non-negative and non-increasing; the diameter of the star is wmax⁡=max⁡iwiw_{\max}=\max_i w_iwmax​=maxi​wi​. The cost of changing a randomized state is the transportation cost over couplings, with minimum-matching cost between configurations. Every O(⋅)O(\cdot)O(⋅) is an explicit constant quantified before the instance, except that in Theorems 7 and 24 and Lemma 25 it may depend on σ\sigmaσ.

Formalizations that make the targets trivial are excluded: the fractional state must place a full server on every request and stay in [0,1][0,1][0,1], the benchmark is the integral optimum (not the algorithm's own or the fractional cost), and no constant may depend on kkk, nnn, the metric or the tree, since otherwise Theorem 1 would follow from the 2k−12k-12k−1 bound.

The proof of Theorem 1 also uses the embedding of Fakcharoenphol, Rao and Talwar [18] of a finite metric into a distribution over σ-HSTs with expected distortion O(σlog⁡σn)O(\sigma\log_\sigma n)O(σlogσ​n). It is an external ingredient, not a result of this paper, and is not a milestone; contributions formalizing it (or Bartal's earlier embedding) are welcome, as are formalizations of the integral optimum's properties on trees (Lemmas 21–22 of the paper), which are not stated here.

Selected references

  • N. Bansal, N. Buchbinder, A. Mądry, J. Naor, A Polylogarithmic-Competitive Algorithm for the k-Server Problem, arXiv:1110.1580v1, 2011; J. ACM 62(5), 2015. https://arxiv.org/abs/1110.1580, https://doi.org/10.1145/2783434
  • M. Manasse, L. McGeoch, D. Sleator, Competitive algorithms for server problems, J. Algorithms 11, 1990. https://doi.org/10.1016/0196-6774(90)90003-W
  • E. Koutsoupias, C. Papadimitriou, On the k-server conjecture, J. ACM 42(5), 1995. https://doi.org/10.1145/210118.210128
  • A. Fiat, R. Karp, M. Luby, L. McGeoch, D. Sleator, N. Young, Competitive paging algorithms, J. Algorithms 12, 1991. https://doi.org/10.1016/0196-6774(91)90041-V
  • J. Fakcharoenphol, S. Rao, K. Talwar, A tight bound on approximating arbitrary metrics by tree metrics, J. Comput. Syst. Sci. 69(3), 2004. https://doi.org/10.1016/j.jcss.2004.04.011
  • A. Coté, A. Meyerson, L. Poplawski, Randomized k-server on hierarchical binary trees, STOC 2008. https://doi.org/10.1145/1374376.1374474
14 thms3 active usersReviewed
🏆Completed
Algorithmic Game TheoryOperations Research·Captain: mikedeng1

Correlated Equilibrium as an Expression of Bayesian Rationality I: Bayes Rationality at Every State Yields Exactly the Correlated Equilibrium DistributionsResearch Paper

Motivation

Nash equilibrium is the standard solution concept for strategic games, but it is usually justified by appeal to what players "would" do once they somehow coordinate on a profile. Correlated equilibrium, introduced by Aumann (J. Math. Econ. 1, 1974), enlarges the set of outcomes by letting players condition their actions on correlated private signals. In Correlated Equilibrium as an Expression of Bayesian Rationality (Econometrica 55, 1987), Aumann gave the concept a decision-theoretic foundation: if the players share a common prior over the states of the world and each player maximizes expected utility given his information at every state, then what they play is a correlated equilibrium — and every correlated equilibrium arises this way. The result is a standard entry point to the epistemic foundations of game theory, and correlated equilibria are central in algorithmic game theory because no-swap-regret learning dynamics converge to them (Foster–Vohra 1997; Hart–Mas-Colell 2000).

Timeline:

  • 1974, Aumann: correlated equilibrium defined, in a measure-theoretic model with subjective probabilities and information σ-fields.
  • 1987, Aumann: the Main Theorem (Bayes rationality at every state under a common prior implies correlated equilibrium play) and its converse, in a finite model with information partitions.

Setting

A game GGG in strategic form has players iii, action sets SiS^iSi, action nnn-tuples s∈S=S1×⋯×Sns\in S=S^1\times\dots\times S^ns∈S=S1×⋯×Sn, and payoffs hi(s)∈Rh^i(s)\in\mathbb Rhi(s)∈R.

A correlated strategy nnn-tuple is a function f:Γ→Sf:\Gamma\to Sf:Γ→S on a finite probability space (Γ,q)(\Gamma,q)(Γ,q), with q≥0q\ge 0q≥0 and ∑γq(γ)=1\sum_\gamma q(\gamma)=1∑γ​q(γ)=1. Its expected payoff is Ehi(f)=∑γq(γ)hi(f(γ))Eh^i(f)=\sum_\gamma q(\gamma)h^i(f(\gamma))Ehi(f)=∑γ​q(γ)hi(f(γ)). For gi:Γ→Sig^i:\Gamma\to S^igi:Γ→Si, the profile (f−i,gi)(f^{-i},g^i)(f−i,gi) replaces player iii's coordinate of fff by gig^igi. The function fff is a correlated equilibrium (Definition 2.1) if

Ehi(f) ≥ Ehi(f−i,gi)(2.2)Eh^i(f)\ \ge\ Eh^i(f^{-i},g^i)\qquad(2.2)Ehi(f) ≥ Ehi(f−i,gi)(2.2)

for every player iii and every gig^igi that is a function of fif^ifi (i.e. gi=φ∘fig^i=\varphi\circ f^igi=φ∘fi). The distribution of fff assigns to each s∈Ss\in Ss∈S the number q{f−1(s)}q\{f^{-1}(s)\}q{f−1(s)}, and a correlated equilibrium distribution (c.e.d.) is the distribution of some correlated equilibrium.

An information system consists of a finite set Ω\OmegaΩ of states of the world, a common prior ppp on Ω\OmegaΩ, an information partition Pi\mathcal P^iPi of Ω\OmegaΩ for each player, and action functions si:Ω→Si\mathbf s^i:\Omega\to S^isi:Ω→Si with s=(s1,…,sn)\mathbf s=(\mathbf s^1,\dots,\mathbf s^n)s=(s1,…,sn), each si\mathbf s^isi constant on the elements of Pi\mathcal P^iPi (each player knows his own action). For a random variable xxx, E(x∣Pi)(ω)E(x\mid\mathcal P^i)(\omega)E(x∣Pi)(ω) is the ppp-average of xxx over the element of Pi\mathcal P^iPi containing ω\omegaω. Player iii is Bayes rational at ω\omegaω if

E(hi(s)∣Pi)(ω) ≥ E(hi(s−i,a)∣Pi)(ω)for every a∈Si.E\big(h^i(\mathbf s)\mid\mathcal P^i\big)(\omega)\ \ge\ E\big(h^i(\mathbf s^{-i},a)\mid\mathcal P^i\big)(\omega)\quad\text{for every }a\in S^i .E(hi(s)∣Pi)(ω) ≥ E(hi(s−i,a)∣Pi)(ω)for every a∈Si.

Formalization targets

Goal: Main Theorem with its converse

Q is a c.e.d. of G  ⟺  ∃ information system (Ω,p,(Pi),s): every player is Bayes rational at every state, and Q(a)=p{s=a} ∀a.Q\ \text{is a c.e.d. of }G\iff\exists\ \text{information system }(\Omega,p,(\mathcal P^i),\mathbf s):\ \text{every player is Bayes rational at every state, and } Q(a)=p\{\mathbf s=a\}\ \forall a.Q is a c.e.d. of G⟺∃ information system (Ω,p,(Pi),s): every player is Bayes rational at every state, and Q(a)=p{s=a} ∀a.

This is the two-sided statement the paper announces in its introduction (p. 2) and closes in Sect. 4d (p. 11): "under Bayesian rationality, the set of all information systems corresponds precisely to the set of all correlated equilibria."

Milestones

  1. Main Theorem, proof: summing the cell-wise inequalities over the partition, Ehi(s−i,gi)≤Ehi(s)Eh^i(\mathbf s^{-i},g^i)\le Eh^i(\mathbf s)Ehi(s−i,gi)≤Ehi(s) for gig^igi constant on the cells of Pi\mathcal P^iPi.
  2. Main Theorem, proof: s\mathbf ss itself is a correlated equilibrium on (Ω,p)(\Omega,p)(Ω,p).
  3. Main Theorem (p. 7): the distribution of s\mathbf ss is a c.e.d.
  4. Sect. 4d: in the system generated by fff (partitions generated by fif^ifi), Bayes rationality everywhere is equivalent to (2.2).
  5. Sect. 4d: every correlated equilibrium is realized by a Bayes-rational information system with the same distribution.

The mission also states, as a supporting lemma without a milestone, the cell-wise step of the proof of the Main Theorem: Bayes rationality at every state gives E(hi(s−i,gi)∣P)≤E(hi(s)∣P)E(h^i(\mathbf s^{-i},g^i)\mid P)\le E(h^i(\mathbf s)\mid P)E(hi(s−i,gi)∣P)≤E(hi(s)∣P) on every cell PPP for gig^igi constant on cells.

Significance

The theorem identifies correlated equilibrium as the outcome of individual Bayesian decision making under a common prior, without any assumption that players randomize or that their choices are independent. It shows that the Nash equilibrium's independence requirement is not implied by rationality alone, and it is the template for later epistemic characterizations of solution concepts. On the computational side, correlated equilibrium distributions form a polytope described by linear inequalities (the companion mission of this series), which is why they are the tractable equilibrium notion in algorithmic game theory.

The result is proved in the paper; it has no machine-checked formalization known to this mission. Formalizing it pins down the exact role of the standing assumptions — finiteness, a common prior, measurability of each player's action with respect to his own partition, rationality at every state — and of the conditional expectation on cells of probability zero. The definitions (information systems, Bayes rationality, correlated equilibria as functions on a finite probability space) are reusable for later formalizations of the paper's Sect. 5 (subjective correlated equilibrium) and of other epistemic results.

Difficulty

The mathematics is short; the difficulty lies in the bookkeeping that the paper's notation hides. The hypothesis is interim (a conditional inequality at each state), while Definition 2.1 is ex ante (an unconditional inequality). Passing between them requires the law of total expectation over a partition whose cells may have probability zero, where conditional expectations are undefined. Deviations in Definition 2.1 are functions of fif^ifi, not arbitrary maps, and must be shown constant on cells, which uses measurability of si\mathbf s^isi. A tempting first idea — that rationality against every fixed action already gives rationality against every deviation — fails without measurability: a player who does not know his own action could be rational at each state against constant deviations while a deviation φ∘si\varphi\circ\mathbf s^iφ∘si varies inside his cells. The converse direction needs an information system that satisfies every axiom of the goal's right-hand side, not just one that is Bayes rational.

Formalization scope

  • Players form a finite type ι with decidable equality; action sets S i are arbitrary types (the paper's finiteness of SiS^iSi is not used); payoffs are h : ι → (∀ i, S i) → ℝ.
  • Probability spaces are finite types with a real weight vector satisfying AGT.IsLottery (from the published definition agt_games). State spaces and the witnessing probability spaces of a c.e.d. range over Type; for finite sets this loses nothing.
  • Partitions are Setoids. The Common Prior Assumption is built into the information system, which has a single prior. Measurability of each action function is a field of the structure.
  • Conditional expectation on a cell is a ratio of finite sums; on a cell of probability zero Lean returns 000, so Bayes rationality at such states holds vacuously. The prior is not required to have full support. This matches the paper, whose argument multiplies each cell inequality by the cell's probability.
  • Deviations in Definition 2.1 are exactly the compositions φ∘fi\varphi\circ f^iφ∘fi; neither all maps nor only constant maps. A c.e.d. requires a genuine probability vector, ruling out the trivializing reading in which the zero weight function witnesses every QQQ.
  • Contributions welcome: proofs of the milestones, a general law-of-total-expectation lemma for finite partitions, and lemmas relating distr to sums over action profiles.

Selected references

  • R. J. Aumann, Correlated Equilibrium as an Expression of Bayesian Rationality, Econometrica 55 (1987), no. 1, 1–18. https://doi.org/10.2307/1911154
  • R. J. Aumann, Subjectivity and Correlation in Randomized Strategies, Journal of Mathematical Economics 1 (1974), 67–96. https://doi.org/10.1016/0304-4068(74)90037-8
  • D. P. Foster and R. V. Vohra, Calibrated Learning and Correlated Equilibrium, Games and Economic Behavior 21 (1997), 40–55. https://doi.org/10.1006/game.1997.0595
  • S. Hart and A. Mas-Colell, A Simple Adaptive Procedure Leading to Correlated Equilibrium, Econometrica 68 (2000), 1127–1150. https://doi.org/10.1111/1468-0262.00153
9 thms3 active usersReviewed
Markov ChainOperations ResearchStochastic 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
Analysis·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems XII: A Tauberian Theorem Linking Abel and Cesàro Means of Nonnegative SeriesTextbook

Motivation

In the theory of Markov decision chains two cost criteria dominate: the discounted cost, in which a cost incurred at time nnn is weighted by αn\alpha^nαn for a discount factor α∈(0,1)\alpha \in (0,1)α∈(0,1), and the average cost, the long-run cost per unit time. A standard route to average cost optimal policies is to solve the discounted problem and let α→1−\alpha \to 1^-α→1−. That route needs a precise link between the two criteria for a single sequence of expected costs u0,u1,u2,⋯≥0u_0, u_1, u_2, \dots \ge 0u0​,u1​,u2​,⋯≥0: the discounted cost multiplied by 1−α1-\alpha1−α on one side, the running average on the other. Appendix A.4 of Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999) supplies this link as Theorem A.4.2, and the book invokes it whenever it passes from discounted to average cost (for instance in Chapter 6, where it is applied to un=Eθ[C(Xn,An)]u_n = E_\theta[C(X_n, A_n)]un​=Eθ​[C(Xn​,An​)]).

The result belongs to classical summability theory.

  • Abelian direction. Convergence of averages implies convergence of the power-series (Abel) means: a consequence of Abel's and Frobenius's theorems on power series (19th century).
  • Tauber (1897). The first converse, under a growth condition on the terms.
  • Hardy and Littlewood (1914). The converse for Cesàro means of nonnegative terms, the "Hardy–Littlewood Tauberian theorem".
  • Karamata (1930). A short proof of that converse by polynomial approximation, reproduced in Titchmarsh, The Theory of Functions (1939, pp. 227–229). The book follows this proof.
  • Widder (1941). The continuous-time (Laplace transform) version.
  • Sennott (1986b). A proof of the discrete statement, cited by the book as its source for Theorem A.4.2.

Setting

Let u0,u1,u2,…u_0, u_1, u_2, \dotsu0​,u1​,u2​,… be nonnegative terms un∈[0,∞]u_n \in [0, \infty]un​∈[0,∞] with u0<∞u_0 < \inftyu0​<∞. For α∈[0,∞)\alpha \in [0, \infty)α∈[0,∞) the power series

U(α)=∑n=0∞αnun∈[0,∞]U(\alpha) = \sum_{n=0}^{\infty} \alpha^n u_n \in [0, \infty]U(α)=n=0∑∞​αnun​∈[0,∞]

always has a sum, possibly +∞+\infty+∞, because its partial sums increase. Its radius of convergence is R=(lim sup⁡nun1/n)−1∈[0,∞]R = (\limsup_{n} u_n^{1/n})^{-1} \in [0,\infty]R=(limsupn​un1/n​)−1∈[0,∞]. The partial sums are wn=∑k=0n−1ukw_n = \sum_{k=0}^{n-1} u_kwn​=∑k=0n−1​uk​ for n≥1n \ge 1n≥1. Two ways of averaging the sequence are compared:

  • the Cesàro means wn/nw_n / nwn​/n, as n→∞n \to \inftyn→∞;
  • the Abel means (1−α)U(α)(1-\alpha) U(\alpha)(1−α)U(α), as α→1−\alpha \to 1^-α→1− (from below).

For the constant sequence un≡Bu_n \equiv Bun​≡B both equal BBB. In the Lean development these are U, radius, w, cesaroMean and abelMean in the namespace SennottDP.Tauberian, all valued in ℝ≥0∞. The proof also uses the function rrr of Fig. A.1, equal to 000 on (0,e−1)(0, e^{-1})(0,e−1) and to 1/x1/x1/x on [e−1,1)[e^{-1}, 1)[e−1,1).

Formalization targets

Goal: Theorem A.4.2

lim inf⁡n→∞wnn≤lim inf⁡α→1−(1−α)U(α)≤lim sup⁡α→1−(1−α)U(α)≤lim sup⁡n→∞wnn,(A.28)\liminf_{n\to\infty} \frac{w_n}{n} \le \liminf_{\alpha\to 1^-} (1-\alpha)U(\alpha) \le \limsup_{\alpha\to 1^-} (1-\alpha)U(\alpha) \le \limsup_{n\to\infty} \frac{w_n}{n}, \tag{A.28}n→∞liminf​nwn​​≤α→1−liminf​(1−α)U(α)≤α→1−limsup​(1−α)U(α)≤n→∞limsup​nwn​​,(A.28)

and the following are equivalent: (i) all terms in (A.28) are equal and finite; (ii) lim⁡nwn/n\lim_n w_n/nlimn​wn​/n exists and is finite; (iii) lim⁡α→1−(1−α)U(α)\lim_{\alpha \to 1^-} (1-\alpha)U(\alpha)limα→1−​(1−α)U(α) exists and is finite.

No growth or boundedness condition on unu_nun​ is assumed: nonnegativity is the only Tauberian condition.

Milestones

  1. Remark A.3.3: the geometric series. R=1R = 1R=1, U(α)=B/(1−α)U(\alpha) = B/(1-\alpha)U(α)=B/(1−α) and B∑nnαn=Bα/(1−α)2B\sum_n n\alpha^n = B\alpha/(1-\alpha)^2B∑n​nαn=Bα/(1−α)2.
  2. Remark A.3.1: inside the radius of convergence, UUU is differentiable term by term, and the derived series has the same radius.
  3. Eq. (A.31): (∑αn)U(α)=∑nαnwn+1=U(α)/(1−α)\big(\sum \alpha^n\big) U(\alpha) = \sum_n \alpha^n w_{n+1} = U(\alpha)/(1-\alpha)(∑αn)U(α)=∑n​αnwn+1​=U(α)/(1−α).
  4. Eq. (A.28): the Abelian inequalities on their own.
  5. Eq. (A.26): ∫01r=1\int_0^1 r = 1∫01​r=1.
  6. Lemma A.4.1: continuous s∗≤r≤ss^* \le r \le ss∗≤r≤s with integrals within ε\varepsilonε of 111.
  7. Eqs. (A.35)–(A.36): if the Abel means tend to L<∞L < \inftyL<∞, then (1−α)∑nαnunf(αn)→L∫01f(1-\alpha)\sum_n \alpha^n u_n f(\alpha^n) \to L\int_0^1 f(1−α)∑n​αnun​f(αn)→L∫01​f for f(x)=xkf(x) = x^kf(x)=xk.
  8. The same statement for every fff continuous on [0,1][0,1][0,1].
  9. The same statement for f=rf = rf=r.
  10. Example A.5.1: a 0/10/10/1 block sequence with lim inf⁡wn/n=1/2\liminf w_n/n = 1/2liminfwn​/n=1/2 and lim sup⁡wn/n=2/3\limsup w_n/n = 2/3limsupwn​/n=2/3 (Choice One) or 111 (Choice Two), for which the middle inequality of (A.28) is strict.

Significance

The result itself. Theorem A.4.2 lets every statement about lim⁡α→1−(1−α)Vα\lim_{\alpha\to1^-}(1-\alpha)V_\alphalimα→1−​(1−α)Vα​ for a discounted value be read as a statement about long-run average cost, and conversely. The strict cases of Example A.5.1 show why the book must work with lim inf⁡\liminfliminf and lim sup⁡\limsuplimsup rather than limits: average costs of policies need not exist as limits, even for bounded costs.

Formalizing it. Mathlib contains Abel's theorem for convergent series (Mathlib/Analysis/Complex/AbelLimit.lean) and Cesàro convergence of convergent sequences, but no Tauberian theorem. The pinned checkout has no file mentioning "Tauberian", and neither does the platform. The mathematics has been proved since 1914. Formalizing it here adds:

  • a machine-checked Hardy–Littlewood–Karamata theorem for nonnegative [0,∞][0,\infty][0,∞]-valued sequences;
  • the lim inf⁡\liminfliminf/lim sup⁡\limsuplimsup comparison (A.28) with infinite values allowed;
  • a reusable component for the average cost chapters of this series.

Difficulty

The Abelian inequalities (A.28) follow from rearranging the series. The converse (iii) ⇒ (ii) does not: the first idea, recovering wn/nw_n/nwn​/n from (1−α)U(α)(1-\alpha)U(\alpha)(1−α)U(α) at α=1−1/n\alpha = 1 - 1/nα=1−1/n, fails, because knowing UUU near 111 controls only weighted averages of all the uku_kuk​, not a sharp truncation. Some positivity argument is unavoidable, since the converse fails for signed sequences (for example un=(−1)nnu_n = (-1)^n nun​=(−1)nn). The sharp truncation at n≈(−ln⁡α)−1n \approx (-\ln\alpha)^{-1}n≈(−lnα)−1 corresponds to the discontinuous weight rrr. Passing from polynomial weights to the jump function rrr requires uniform approximation together with the nonnegativity of the unu_nun​ at every step.

The infinite values add bookkeeping. A single un0=∞u_{n_0} = \inftyun0​​=∞ makes every term of (A.28) infinite, and R<1R < 1R<1 forces U(α)=∞U(\alpha) = \inftyU(α)=∞ on (R,1)(R,1)(R,1).

Formalization scope

Conventions the statements commit to:

  • Values. Terms u:N→[0,∞]u : \mathbb{N} \to [0,\infty]u:N→[0,∞] (ℝ≥0∞) with u0≠∞u_0 \ne \inftyu0​=∞. UUU, the Abel means, wnw_nwn​ and the Cesàro means are ℝ≥0∞-valued, with ℝ≥0∞ sums (no summability side conditions).
  • Limits. lim inf⁡\liminfliminf and lim sup⁡\limsuplimsup are those of the complete lattice [0,∞][0,\infty][0,∞], never real liminf. "Exists and is finite" means convergence in [0,∞][0,\infty][0,∞] to some L≠∞L \ne \inftyL=∞.
  • Discount factor. α∈R≥0\alpha \in \mathbb{R}_{\ge 0}α∈R≥0​, and α→1−\alpha \to 1^-α→1− is the filter 𝓝[<] 1.
  • Index n=0n = 0n=0. n→∞n \to \inftyn→∞ is atTop on N\mathbb{N}N; the value w0/0=0w_0/0 = 0w0​/0=0 is irrelevant.
  • The equivalence is List.TFAE.
  • The function rrr. Its value at the jump is r(e−1)=er(e^{-1}) = er(e−1)=e (Fig. A.1).
  • Continuity. In Lemma A.4.1 and in the continuous-weight step, continuity is required on the closed interval [0,1][0,1][0,1], which is what the Weierstrass approximation step uses. The book writes "(0,1)(0,1)(0,1)".
  • Finite terms. Remark A.3.1 is stated for finite terms, which the book's discussion of the radius presumes.

A trivializing formalization is ruled out. Real-valued lim inf⁡\liminfliminf/lim sup⁡\limsuplimsup would make (A.28) hold by junk values on unbounded sequences; hypotheses such as boundedness of unu_nun​ would replace the theorem by an easier special case; and a definition of "exists and is finite" allowing L=∞L = \inftyL=∞ would make (ii) hold for un=nu_n = nun​=n. None of these is used. As sanity checks: for un≡1u_n \equiv 1un​≡1 all four terms of (A.28) equal 111, and for un=nu_n = nun​=n all equal ∞\infty∞ and (i)–(iii) all fail.

A complete development needs:

  • Cauchy products of [0,∞][0,\infty][0,∞]-valued power series;
  • the Weierstrass approximation theorem, which Mathlib has (polynomialFunctions.topologicalClosure);
  • interval integrals of step-like functions;
  • lim inf⁡\liminfliminf/lim sup⁡\limsuplimsup manipulation along 𝓝[<] 1.

Reusable beyond this mission: the ℝ≥0∞ power-series toolkit and the Karamata argument for general continuous weights (milestone 8). Contributions welcome: proofs of any milestone, and alternative proofs of (iii) ⇒ (ii).

Selected references

  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley, 1999, Appendix A.3–A.5, pp. 279–287. https://doi.org/10.1002/9780470317037
  • E. C. Titchmarsh, The Theory of Functions, 2nd ed., Oxford University Press, 1939, pp. 227–229 (Karamata's proof).
  • J. Karamata, "Über die Hardy–Littlewoodschen Umkehrungen des Abelschen Stetigkeitssatzes", Mathematische Zeitschrift 32 (1930), 319–320.
  • G. H. Hardy and J. E. Littlewood, "Tauberian theorems concerning power series and Dirichlet's series whose coefficients are positive", Proc. London Math. Soc. (2) 13 (1914), 174–191.
  • D. V. Widder, The Laplace Transform, Princeton University Press, 1941.
  • L. I. Sennott, "A new condition for the existence of optimum stationary policies in average cost Markov decision processes — unbounded cost case", Proc. 25th IEEE Conference on Decision and Control, Athens, 1986, pp. 1719–1721 (cited by the book as Sennott 1986b).
  • T. M. Liggett and S. A. Lippman, "Short notes: Stochastic games with perfect information and time average payoff", SIAM Review 11 (1969), 604–607. https://doi.org/10.1137/1011093
14 thms3 active usersReviewed
🏆Completed
Analysis·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems XI: The Generalized Dominated Convergence Theorem for Approximating DistributionsTextbook

Motivation

Linn Sennott's Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999) studies Markov decision chains with countably many states, finite action sets and unbounded nonnegative costs. Its main computational device, the approximating sequence method (Definition 2.5.1, p. 28), replaces the countable state space SSS by an increasing sequence of state spaces SNS_NSN​ and the transition law out of each state by distributions Pj(N)P_j(N)Pj​(N) on SNS_NSN​ that converge pointwise to the original law. Every convergence argument of that method has the same shape: a sum ∑j∈SNPj(N) u(j,N)\sum_{j\in S_N} P_j(N)\,u(j,N)∑j∈SN​​Pj​(N)u(j,N), an expected cost or value under the NNN-th approximating model, must be shown to converge to ∑j∈SPj u(j)\sum_{j\in S} P_j\,u(j)∑j∈S​Pj​u(j), or at least to satisfy a one-sided bound in the limit.

Appendix A, Sections A.1–A.2 (pp. 270–278), collects the analysis results used for this. The author proves them for sums over countable sets rather than general integrals, so they need no measure theory, and the proofs of the discounted-cost and average-cost approximation theorems (Chapters 4 and 8) cite them. This mission formalizes that appendix section as a self-contained unit.

Setting

Let SSS be a countable set and (Pj)j∈S(P_j)_{j\in S}(Pj​)j∈S​ a probability distribution on SSS: Pj≥0P_j\ge 0Pj​≥0 and ∑jPj=1\sum_j P_j=1∑j​Pj​=1. Values of functions are extended reals in [−∞,∞][-\infty,\infty][−∞,∞], with the convention 0⋅∞=00\cdot\infty=00⋅∞=0. For u:S→[−∞,∞]u:S\to[-\infty,\infty]u:S→[−∞,∞], the weighted sum is

∑j∈SPj u(j)=∑j∈SPj u+(j)−∑j∈SPj u−(j),\sum_{j\in S}P_j\,u(j)=\sum_{j\in S}P_j\,u^+(j)-\sum_{j\in S}P_j\,u^-(j),j∈S∑​Pj​u(j)=j∈S∑​Pj​u+(j)−j∈S∑​Pj​u−(j),

which is well defined, in (−∞,∞](-\infty,\infty](−∞,∞], whenever the negative parts have finite weighted sum. In Lean this is wsum P u.

A family of approximating distributions for (Pj)(P_j)(Pj​) consists of

  1. an increasing sequence of subsets S0⊆S1⊆⋯S_0\subseteq S_1\subseteq\cdotsS0​⊆S1​⊆⋯ of SSS with ⋃NSN=S\bigcup_N S_N=S⋃N​SN​=S;
  2. for each NNN, a probability distribution (Pj(N))j∈SN(P_j(N))_{j\in S_N}(Pj​(N))j∈SN​​ on SNS_NSN​;
  3. pointwise convergence lim⁡N→∞Pj(N)=Pj\lim_{N\to\infty}P_j(N)=P_jlimN→∞​Pj​(N)=Pj​ for every j∈Sj\in Sj∈S.

Since the sets increase to SSS, a fixed state jjj lies in SNS_NSN​ for every large NNN, so lim inf⁡Nu(j,N)\liminf_N u(j,N)liminfN​u(j,N) and lim⁡Nu(j,N)\lim_N u(j,N)limN​u(j,N) make sense for a function u(j,N)u(j,N)u(j,N) defined only for j∈SNj\in S_Nj∈SN​. In Lean these three conditions are the structure ApproxDist P SN Q, with Q N j =Pj(N)=P_j(N)=Pj​(N).

Formalization targets

Goal: Theorem A.2.6 (Generalized Dominated Convergence Theorem), p. 278

Under the approximating-distribution hypotheses, let u(j,N)u(j,N)u(j,N) and w(j,N)w(j,N)w(j,N) be finite with ∣u(j,N)∣≤w(j,N)|u(j,N)|\le w(j,N)∣u(j,N)∣≤w(j,N) for j∈SNj\in S_Nj∈SN​, let u(j,N)→u(j)u(j,N)\to u(j)u(j,N)→u(j) and w(j,N)→w(j)w(j,N)\to w(j)w(j,N)→w(j) for every jjj, and assume

lim⁡N→∞∑j∈SNPj(N) w(j,N)=∑j∈SPj w(j)<∞.\lim_{N\to\infty}\sum_{j\in S_N}P_j(N)\,w(j,N)=\sum_{j\in S}P_j\,w(j)<\infty.N→∞lim​j∈SN​∑​Pj​(N)w(j,N)=j∈S∑​Pj​w(j)<∞.

Then

lim⁡N→∞∑j∈SNPj(N) u(j,N)=∑j∈SPj u(j).\lim_{N\to\infty}\sum_{j\in S_N}P_j(N)\,u(j,N)=\sum_{j\in S}P_j\,u(j).N→∞lim​j∈SN​∑​Pj​(N)u(j,N)=j∈S∑​Pj​u(j).

Milestones, in the book's order

  • Proposition A.1.3: lim inf⁡\liminfliminf commutes with a minimum over a finite nonempty set; lim⁡\limlim does too when all limits exist.
  • Proposition A.1.5: lim inf⁡N∑j∈Gu(j,N)≥∑j∈Glim inf⁡Nu(j,N)\liminf_N\sum_{j\in G}u(j,N)\ge\sum_{j\in G}\liminf_N u(j,N)liminfN​∑j∈G​u(j,N)≥∑j∈G​liminfN​u(j,N) for finite GGG and u>−∞u>-\inftyu>−∞, when the right side has no indeterminate form.
  • Proposition A.1.7: the same inequality for countable sums of [0,∞][0,\infty][0,∞]-valued terms.
  • Proposition A.1.8: the same, with the left sum over SNS_NSN​ increasing to SSS.
  • Proposition A.1.10: lim inf⁡un≤lim inf⁡wn/n≤lim sup⁡wn/n≤lim sup⁡un\liminf u_n\le\liminf w_n/n\le\limsup w_n/n\le\limsup u_nliminfun​≤liminfwn​/n≤limsupwn​/n≤limsupun​ for wn=∑k<nukw_n=\sum_{k<n}u_kwn​=∑k<n​uk​.
  • Proposition A.2.1 (Fatou's lemma): lim inf⁡N∑jPju(j,N)≥∑jPjlim inf⁡Nu(j,N)\liminf_N\sum_jP_j u(j,N)\ge\sum_jP_j\liminf_N u(j,N)liminfN​∑j​Pj​u(j,N)≥∑j​Pj​liminfN​u(j,N) for u≥−Lu\ge -Lu≥−L.
  • Theorem A.2.3 (dominated convergence, with a convergent dominating sequence w(j,N)w(j,N)w(j,N)) and Corollary A.2.4 (fixed dominating function).
  • Proposition A.2.5 (generalized Fatou's lemma):
lim inf⁡N→∞∑j∈SNPj(N) u(j,N) ≥ ∑j∈SPj lim inf⁡N→∞u(j,N)(u≥−L on SN).\liminf_{N\to\infty}\sum_{j\in S_N}P_j(N)\,u(j,N)\ \ge\ \sum_{j\in S}P_j\,\liminf_{N\to\infty}u(j,N)\qquad(u\ge -L\text{ on }S_N).N→∞liminf​j∈SN​∑​Pj​(N)u(j,N) ≥ j∈S∑​Pj​N→∞liminf​u(j,N)(u≥−L on SN​).
  • Corollary A.2.7: bounded convergence under approximating distributions.

Significance

The results. Proposition A.2.5 and Theorem A.2.6 are the two limit interchanges the approximating sequence method needs. The generalized Fatou inequality gives the lower bound on limits of value functions of the approximating models, and the generalized dominated convergence theorem identifies the limit of expected costs when a dominating function is available. Corollary A.2.7 gives the bounded case, and Proposition A.1.3 moves limits inside the minimization of an optimality equation. Proposition A.1.10 compares Cesàro averages with the sequence itself, which the average-cost chapters use.

Formalizing them. All statements are classical and proved in the book. A.1.7, A.2.1, A.2.3 and A.2.4 are, after translation, instances of Mathlib's Fatou lemma (MeasureTheory.lintegral_liminf_le) and dominated convergence theorem for a discrete measure. The mission states them in the book's discrete, extended-real form so later chapters can cite them by number. The versions in which the distribution and its support change with NNN (A.2.5–A.2.7) are not in Mathlib in this form; the generalized dominated convergence theorem appears in the measure-theoretic literature (Royden, Real Analysis, Ch. 4) but has no Lean formalization. None of these statements has been formalized for this book.

Difficulty

For the generalized results, Mathlib's Fatou lemma and dominated convergence theorem do not apply directly: they fix one measure, while here both the weights Pj(N)P_j(N)Pj​(N) and the support SNS_NSN​ change with NNN. The dominating function w(j,N)w(j,N)w(j,N) also changes with NNN and is not integrable uniformly in NNN; only the convergence of its expectations is assumed. For small NNN, ∑j∈SNPj(N)w(j,N)\sum_{j\in S_N}P_j(N)w(j,N)∑j∈SN​​Pj​(N)w(j,N) may even be infinite, and then ∑j∈SNPj(N)u(j,N)\sum_{j\in S_N} P_j(N)u(j,N)∑j∈SN​​Pj​(N)u(j,N) has no value.

A second difficulty is bookkeeping in the extended reals. Lower limits may be ±∞\pm\infty±∞, products use 0⋅∞=00\cdot\infty=00⋅∞=0, and a sum with a +∞+\infty+∞ term and a −∞-\infty−∞ term is undefined. The inequality of Proposition A.1.5 holds only when that indeterminate form is excluded. The bound u≥−Lu\ge -Lu≥−L in A.2.1 and A.2.5 cannot be dropped: Examples A.1.9 and A.2.2 of the book show the inequalities fail without it.

Formalization scope

  • Types. SSS is any type with [Countable S]. Probabilities are ℝ≥0∞-valued with ∑' j, P j = 1, and Pj(N)P_j(N)Pj​(N) is Q N j. Extended-real values are EReal, and nonnegative extended values (A.1.7, A.1.8) are ℝ≥0∞. Limits and lower and upper limits are along atTop in ℕ. The book's N≥N0N\ge N_0N≥N0​ convention (Remark A.1.2) needs nothing extra, since only large NNN matter.
  • Sums over SNS_NSN​ are sums over SSS of (SN N).indicator (Q N) times the function. Values of u(j,N)u(j,N)u(j,N) and Pj(N)P_j(N)Pj​(N) for j∉SNj\notin S_Nj∈/SN​ never enter any statement, and the hypotheses on uuu (u≥−Lu\ge -Lu≥−L, ∣u∣≤w|u|\le w∣u∣≤w) are imposed only on SNS_NSN​, as in the book.
  • Weighted sums are wsum, the difference of the weighted positive and negative parts, each in [0,∞]. When both are infinite the book's sum is undefined and wsum returns −∞-\infty−∞. Every sum used in a hypothesis or conclusion is defined, except possibly for finitely many NNN in limit statements, where it does not matter.
  • Limits of u(j,N)u(j,N)u(j,N) and w(j,N)w(j,N)w(j,N) are taken in EReal, since the book allows extended-real limits (p. 271). The hypotheses force them to be finite wherever Pj>0P_j>0Pj​>0.
  • Ruled out. Statements in which wsum returns its junk value −∞-\infty−∞ could make an inequality trivial. Every left-hand side here is a lower limit of sums whose negative parts are bounded, or a limit of eventually defined sums, so no statement holds only because of that junk value. Real-valued tsum with its junk value 000 is not used anywhere.
  • Welcome contributions. A proof of A.1.7 from lintegral_liminf_le for the counting measure, and lemmas relating wsum to Mathlib's tsum and to integrals against Measure.sum (fun j => P j • dirac j), can be reused by the other missions of this series.

Selected references

  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley Series in Probability and Statistics, John Wiley & Sons, 1999, Appendix A, pp. 270–278. https://doi.org/10.1002/9780470317037
  • H. L. Royden, Real Analysis, 3rd ed., Macmillan, 1988, Chapter 4 (Fatou's lemma, generalized Lebesgue convergence theorem).
  • The Mathlib Community, The Lean Mathematical Library, CPP 2020, https://doi.org/10.1145/3372885.3373824 (MeasureTheory.lintegral_liminf_le, MeasureTheory.tendsto_integral_of_dominated_convergence).
12 thms3 active usersReviewed
Dynamic ProgrammingOperations ResearchStochastic Systems·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems X: Average Cost Optimization of Continuous Time Markov Decision ChainsTextbook

Motivation

Many queueing systems evolve in continuous time: customers arrive according to a Poisson process, services take exponentially distributed times, and a controller may change the service rate, admit or reject customers, or route them whenever the state changes. Minimizing the long-run average cost of such a system is a standard problem in the control of queues (Lippman 1975; Puterman 1994, Ch. 11; Sennott 1999, Ch. 10). The continuous time model does not fit directly into the discrete time theory of Markov decision chains developed in the earlier chapters of Sennott's book, because time spent in a state now matters and the natural average cost is a ratio of expected cost to expected elapsed time.

This mission formalizes Sections 10.1–10.4 of L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999): the elementary properties of the exponential distribution, the continuous time Markov decision chain and its average cost, a reduction of the continuous time problem to an auxiliary discrete time Markov decision chain, and the theorem stating that finite state approximating sequences of the auxiliary chain compute optimal average costs and optimal stationary policies of the continuous time chain. The chapter closes with an explicit average cost computation for the M/M/1 queue with service rate control.

Setting

A random variable XXX has the exponential distribution with rate μ>0\mu>0μ>0 if P(X≤t)=1−e−μtP(X\le t)=1-e^{-\mu t}P(X≤t)=1−e−μt for t≥0t\ge0t≥0. A function r(δ)r(\delta)r(δ) is o(δ)o(\delta)o(δ) if r(δ)/δ→0r(\delta)/\delta\to0r(δ)/δ→0 as δ→0+\delta\to0^+δ→0+.

A continuous time Markov decision chain (CTMDC) Ψ\PsiΨ has a countable state space SSS and, for each i∈Si\in Si∈S, a finite nonempty action set AiA_iAi​. Choosing a∈Aia\in A_ia∈Ai​ in state iii incurs an instantaneous cost G(i,a)≥0G(i,a)\ge0G(i,a)≥0 and a cost rate g(i,a)≥0g(i,a)\ge0g(i,a)≥0 in effect until the next transition. The time until the next transition is exponential with rate ν(i,a)>0\nu(i,a)>0ν(i,a)>0, so its mean is τ(i,a)=1/ν(i,a)\tau(i,a)=1/\nu(i,a)τ(i,a)=1/ν(i,a); the next state is jjj with probability Pij(a)P_{ij}(a)Pij​(a), where Pii(a)=0P_{ii}(a)=0Pii​(a)=0. A policy θ\thetaθ chooses, at each transition, an action (possibly at random) from the history of past states, actions and sojourn times; a stationary policy eee chooses e(i)e(i)e(i) in state iii. With CnC_nCn​ the cost and TnT_nTn​ the time of the first nnn transition periods, the average cost and the minimum average cost are

JθΨ(i)=lim sup⁡n→∞Eθ[Cn∣X0=i]Eθ[Tn∣X0=i],JΨ(i)=inf⁡θJθΨ(i).J^\Psi_\theta(i)=\limsup_{n\to\infty}\frac{E_\theta[C_n\mid X_0=i]}{E_\theta[T_n\mid X_0=i]},\qquad J^\Psi(i)=\inf_\theta J^\Psi_\theta(i).JθΨ​(i)=n→∞limsup​Eθ​[Tn​∣X0​=i]Eθ​[Cn​∣X0​=i]​,JΨ(i)=θinf​JθΨ​(i).

Assumption (CTB) requires constants τ\tauτ and BBB with 0<τ<inf⁡i,aτ(i,a)≤sup⁡i,aτ(i,a)≤B<∞0<\tau<\inf_{i,a}\tau(i,a)\le\sup_{i,a}\tau(i,a)\le B<\infty0<τ<infi,a​τ(i,a)≤supi,a​τ(i,a)≤B<∞. The auxiliary MDC Δ\DeltaΔ has the same states and actions, costs C(i,a)=G(i,a)ν(i,a)+g(i,a)C(i,a)=G(i,a)\nu(i,a)+g(i,a)C(i,a)=G(i,a)ν(i,a)+g(i,a), and transition probabilities Pij∗(a)=τν(i,a)Pij(a)P^*_{ij}(a)=\tau\nu(i,a)P_{ij}(a)Pij∗​(a)=τν(i,a)Pij​(a) for j≠ij\ne ij=i, Pii∗(a)=1−τν(i,a)P^*_{ii}(a)=1-\tau\nu(i,a)Pii∗​(a)=1−τν(i,a). Its average cost JθΔ(i)=lim sup⁡nn−1∑t<nEθ[C(Xt,Yt)]J^\Delta_\theta(i)=\limsup_n n^{-1}\sum_{t<n}E_\theta[C(X_t,Y_t)]JθΔ​(i)=limsupn​n−1∑t<n​Eθ​[C(Xt​,Yt​)] and minimum average cost JΔ(i)J^\Delta(i)JΔ(i) are those of Chapter 2. Assumption (CTAC) is JΔ(⋅)≤JΨ(⋅)J^\Delta(\cdot)\le J^\Psi(\cdot)JΔ(⋅)≤JΨ(⋅).

An approximating sequence (ΔN)N≥N0(\Delta_N)_{N\ge N_0}(ΔN​)N≥N0​​ for Δ\DeltaΔ uses finite state spaces SNS_NSN​ increasing to SSS and transition probabilities Pij∗(a;N)P^*_{ij}(a;N)Pij∗​(a;N) on SNS_NSN​ converging to Pij∗(a)P^*_{ij}(a)Pij∗​(a). The (AC) assumptions ask for constants JNJ^NJN and functions rNr^NrN on SNS_NSN​ solving

JN+rN(i)=min⁡a∈Ai{C(i,a)+∑j∈SNPij∗(a;N) rN(j)},i∈SN, N≥N0,(10.21)J^N+r^N(i)=\min_{a\in A_i}\Big\{C(i,a)+\sum_{j\in S_N}P^*_{ij}(a;N)\,r^N(j)\Big\},\qquad i\in S_N,\ N\ge N_0,\tag{10.21}JN+rN(i)=a∈Ai​min​{C(i,a)+j∈SN​∑​Pij∗​(a;N)rN(j)},i∈SN​, N≥N0​,(10.21)

with lim sup⁡NrN(i)<∞\limsup_N r^N(i)<\inftylimsupN​rN(i)<∞, lim inf⁡NrN(i)≥−Q\liminf_N r^N(i)\ge-QliminfN​rN(i)≥−Q for a constant Q≥0Q\ge0Q≥0, and lim sup⁡NJN=:J∗<∞\limsup_N J^N=:J^*<\inftylimsupN​JN=:J∗<∞, J∗≤JΔ(i)J^*\le J^\Delta(i)J∗≤JΔ(i).

Formalization targets

Goal: Theorem 10.3.3

Under (CTB), (CTAC) and the (AC) assumptions for an approximating sequence of Δ\DeltaΔ:

J∗=lim⁡N→∞JN exists and JΔ(i)=JΨ(i)=J∗(i∈S),J^*=\lim_{N\to\infty}J^N\ \text{exists and}\ J^\Delta(i)=J^\Psi(i)=J^*\quad(i\in S),J∗=N→∞lim​JN exists and JΔ(i)=JΨ(i)=J∗(i∈S),

and every limit point e∗e^*e∗ of a sequence eNe^NeN of stationary policies realizing the minimum in (10.21) satisfies Je∗Δ=JΔJ^\Delta_{e^*}=J^\DeltaJe∗Δ​=JΔ and Je∗Ψ=JΨJ^\Psi_{e^*}=J^\PsiJe∗Ψ​=JΨ. The goal leaves the chain, the approximating sequence and the constants of (CTB) arbitrary.

Milestones

  • Proposition 10.1.2: P(X>x+y∣X>y)=P(X>x)P(X>x+y\mid X>y)=P(X>x)P(X>x+y∣X>y)=P(X>x) for x,y>0x,y>0x,y>0, and P(X≤δ)=μδ+o(δ)P(X\le\delta)=\mu\delta+o(\delta)P(X≤δ)=μδ+o(δ).
  • Proposition 10.1.3: for independent exponentials, P(X1≤δ,X2≤δ)=o(δ)P(X_1\le\delta,X_2\le\delta)=o(\delta)P(X1​≤δ,X2​≤δ)=o(δ), P(X1<X2)=μ1/(μ1+μ2)P(X_1<X_2)=\mu_1/(\mu_1+\mu_2)P(X1​<X2​)=μ1​/(μ1​+μ2​), and min⁡(X1,X2)\min(X_1,X_2)min(X1​,X2​) is exponential with rate μ1+μ2\mu_1+\mu_2μ1​+μ2​.
  • Lemma 10.3.1: if zzz is bounded below and Zτ(i,e)+z(i)≥G(i,e)+g(i,e)τ(i,e)+∑jPij(e)z(j)Z\tau(i,e)+z(i)\ge G(i,e)+g(i,e)\tau(i,e)+\sum_jP_{ij}(e)z(j)Zτ(i,e)+z(i)≥G(i,e)+g(i,e)τ(i,e)+∑j​Pij​(e)z(j) for all iii (10.15), then JeΨ≤ZJ^\Psi_e\le ZJeΨ​≤Z.
  • Lemma 10.3.2: (Z,w)(Z,w)(Z,w) satisfies Z+w(i)≥C(i,e)+∑jPij∗(e)w(j)Z+w(i)\ge C(i,e)+\sum_jP^*_{ij}(e)w(j)Z+w(i)≥C(i,e)+∑j​Pij∗​(e)w(j) (10.20) if and only if (Z,τw)(Z,\tau w)(Z,τw) satisfies (10.15).
  • Proposition 10.4.1: in the M/M/1 queue with arrival rate λ\lambdaλ, holding cost H(i)=HiH(i)=HiH(i)=Hi and service cost rate c(a)c(a)c(a), the policy that always serves at rate a>λa>\lambdaa>λ has average cost ρac(a)+Hρa/(1−ρa)\rho_ac(a)+H\rho_a/(1-\rho_a)ρa​c(a)+Hρa​/(1−ρa​), ρa=λ/a\rho_a=\lambda/aρa​=λ/a.

Significance

The goal theorem turns the average cost control of a continuous time chain on an infinite state space into a finite computation: solve the optimality equation (10.21) of a finite truncation of the auxiliary chain, let the truncation grow, and read off the optimal average cost and an optimal stationary policy of the original continuous time chain. The auxiliary chain is the book's form of uniformization, and the result is what licenses the numerical study of the M/M/1 service rate control problem in Section 10.4 and of the M/M/K and polling models in Sections 10.5–10.6. Proposition 10.4.1 gives the closed-form benchmark against which the computed optimal policy is compared.

The results are proved in the book, some with details left to the reader (Lemma 10.3.2(ii), Problem 10.10), and the goal rests on Theorem 8.1.1 and Lemma 7.2.1 of the same book. None of them has, as far as a search of Mathlib and the Prove2Me catalogue shows, a machine-checked proof: Mathlib provides the exponential law (ProbabilityTheory.expMeasure) and its distribution function, but not memorylessness or the minimum of independent exponentials, and no continuous time Markov decision model. A formalization would supply these, together with a checked average cost comparison between a continuous time chain and its discrete time auxiliary chain.

Difficulty

The obvious argument compares the two chains policy by policy, but the policy classes differ: a policy for Δ\DeltaΔ may change action in every time slot, including slots where the state does not change, while a policy for Ψ\PsiΨ acts only at transitions and may use the observed sojourn times. Only the stationary policies coincide. The lower bound JΨ≥J∗J^\Psi\ge J^*JΨ≥J∗ therefore cannot be obtained by transferring policies, and it is exactly what Assumption (CTAC) supplies. The upper bound requires passing from the discrete time inequality (10.20) for the limit point e∗e^*e∗ to a bound on a ratio of expected cost to expected time in continuous time, where the denominator depends on the policy; the uniform bounds of (CTB) on the mean sojourn times are what control it. Inside Lemma 10.3.1 the function zzz is only bounded below, so the telescoping of expectations must be justified without integrability of zzz from above.

Formalization scope

The state space is a countable type S, actions a type Act, and action sets A i : Finset Act; the CTMDC and MDC structures hold data, and their axioms (nonempty action sets, nonnegative costs, positive rates, stochastic transition rows with Pii(a)=0P_{ii}(a)=0Pii​(a)=0) are separate predicates. Transition probabilities are ℝ≥0∞-valued; costs, rates and the functions z,w,rNz,w,r^Nz,w,rN are real. Expected costs, expected times and all average costs are ℝ≥0∞-valued, so +∞+\infty+∞ is a legitimate value, and they are compared with real constants in EReal; the limits superior and inferior of (AC) are taken in EReal. The expected cost of nnn transition periods under a general policy is a recursion over the periods in which the sojourn time is integrated against expMeasure ν(i,a) and the next state is drawn independently from Pi⋅(a)P_{i\cdot}(a)Pi⋅​(a); policies are measurable in the past sojourn times. In (10.15) and (10.20) the convergence of the series is part of the inequality. The strict inequality τ<inf⁡τ(i,a)\tau<\inf\tau(i,a)τ<infτ(i,a) of (CTB) is kept strict (as a positive margin); weakening it to ≤\le≤ would make Pii∗(a)P^*_{ii}(a)Pii∗​(a) vanish or turn negative.

The average cost JθΨJ^\Psi_\thetaJθΨ​ is a ratio of expectations, not the expectation of a ratio, and the infimum JΨJ^\PsiJΨ ranges over history dependent randomized policies that may use sojourn times; replacing either by a stationary-only class, or dropping (CTAC), gives a different theorem.

A complete development needs: expected rewards of a chain with exponential holding times, the average cost theory of Chapter 8 for the auxiliary chain (Theorem 8.1.1 and Lemma 7.2.1, restated here as needed), and renewal-reward reasoning for Proposition 10.4.1. The exponential-distribution lemmas are reusable beyond this mission and are welcome as independent contributions.

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
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, John Wiley & Sons, 1994. https://doi.org/10.1002/9780470316887
  • S. A. Lippman, Applying a new device in the optimization of exponential queuing systems, Operations Research 23(4), 687–710, 1975. https://doi.org/10.1287/opre.23.4.687
  • D. Gross and C. M. Harris, Fundamentals of Queueing Theory, 3rd ed., John Wiley & Sons, 1998.
10 thms3 active usersReviewed
🏆Completed
Operations ResearchStochastic Systems·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems IX: Bounded Mean Residual Lifetimes Imply Finite Moments of All OrdersTextbook

Motivation

In a discrete-time queue the service of a customer lasts a random number YYY of slots. When such a system is modelled as a Markov decision chain (Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley, 1999, DOI 10.1002/9780470317037, Chapter 9), the state must record how much service is still owed, and the controller only observes that a service has lasted sss slots and is not yet finished. The relevant random quantity is then the residual life YsY_sYs​: the remaining service time given that sss slots have elapsed without completion. Verifying the book's average cost assumptions for such a model requires bounds on expected first passage times and costs, and these reduce to moment bounds on YYY and on the residual lives YsY_sYs​.

Section 9.2 isolates a single condition that makes those bounds available: the expected remaining service time is bounded uniformly in the elapsed time. The concept of mean residual life comes from reliability theory, where YYY is the lifetime of a component and E[Ys]E[Y_s]E[Ys​] is its expected remaining lifetime at age sss. This mission formalizes Section 9.2 of the book, together with the moment computation for batch arrivals (Lemma 9.5.2) that the same verification uses.

Setting

Let YYY be a random variable with values in {1,2,3,… }\{1,2,3,\dots\}{1,2,3,…} and distribution uy=P(Y=y)u_y = P(Y = y)uy​=P(Y=y), y≥1y \ge 1y≥1. Write F(y)=P(Y≤y)F(y) = P(Y \le y)F(y)=P(Y≤y) and F∗(y)=P(Y>y)=1−F(y)F^*(y) = P(Y > y) = 1 - F(y)F∗(y)=P(Y>y)=1−F(y) for y≥0y \ge 0y≥0, so F(0)=0F(0) = 0F(0)=0 and F∗(0)=1F^*(0) = 1F∗(0)=1. The kkk-th moment is

E[Yk]=∑y≥1ykuy∈[0,∞].E[Y^k] = \sum_{y \ge 1} y^k u_y \in [0,\infty].E[Yk]=y≥1∑​ykuy​∈[0,∞].

For s≥0s \ge 0s≥0 with F∗(s)>0F^*(s) > 0F∗(s)>0, the residual life YsY_sYs​ has distribution

P(Ys=y)=P(Y=s+y∣Y>s)=us+yF∗(s),y≥1,P(Y_s = y) = P(Y = s + y \mid Y > s) = \frac{u_{s+y}}{F^*(s)}, \qquad y \ge 1,P(Ys​=y)=P(Y=s+y∣Y>s)=F∗(s)us+y​​,y≥1,

with Y0=YY_0 = YY0​=Y; its tail is Fs∗(y)=F∗(s+y)/F∗(s)F^*_s(y) = F^*(s+y)/F^*(s)Fs∗​(y)=F∗(s+y)/F∗(s), and E[Ys]E[Y_s]E[Ys​] is the mean residual lifetime.

The distribution of YYY has bounded mean residual lifetimes (BMRL-UUU, Definition 9.2.4) if there is a finite constant UUU with

E[Ys]≤Ufor every s≥0 with F∗(s)>0,E[Y_s] \le U \qquad \text{for every } s \ge 0 \text{ with } F^*(s) > 0,E[Ys​]≤Ufor every s≥0 with F∗(s)>0,

and it is BMRL if it is BMRL-UUU for some UUU.

Three families appear by name: the geometric distribution geo(μ)\mathrm{geo}(\mu)geo(μ) of the number of Bernoulli(μ\muμ) trials to the first success, P(Y=y)=μ(1−μ)y−1P(Y=y) = \mu(1-\mu)^{y-1}P(Y=y)=μ(1−μ)y−1; the negative binomial neg bin(μ,r)\mathrm{neg\,bin}(\mu, r)negbin(μ,r) of the number of trials to the rrr-th success, P(Y=y)=(y−1r−1)μr(1−μ)y−rP(Y = y) = \binom{y-1}{r-1}\mu^r(1-\mu)^{y-r}P(Y=y)=(r−1y−1​)μr(1−μ)y−r for y≥ry \ge ry≥r; and the truncated Poisson trun Pois(λ)\mathrm{trun\,Pois}(\lambda)trunPois(λ), P(Y=y)=e−λ1−e−λλyy!P(Y=y) = \frac{e^{-\lambda}}{1-e^{-\lambda}}\frac{\lambda^y}{y!}P(Y=y)=1−e−λe−λ​y!λy​ for y≥1y \ge 1y≥1.

For Lemma 9.5.2, batches of customers arrive in each slot; the batch sizes X1,X2,…X_1, X_2, \dotsX1​,X2​,… are independent with common distribution pjp_jpj​, mean λ=∑jjpj\lambda = \sum_j j p_jλ=∑j​jpj​ and second moment λ(2)=∑jj2pj\lambda^{(2)} = \sum_j j^2 p_jλ(2)=∑j​j2pj​, and X(s)=X1+⋯+XsX(s) = X_1 + \dots + X_sX(s)=X1​+⋯+Xs​ is the number of arrivals in sss slots.

Formalization targets

Goal: Proposition 9.2.5

If the distribution of YYY is BMRL, then

E[Yk]<∞for every k.E[Y^k] < \infty \qquad \text{for every } k.E[Yk]<∞for every k.

The goal fixes no constant: it asserts only that a uniform first-moment bound on the residual lives forces every moment of YYY to be finite.

Milestones

  1. Proposition 9.2.1. E[Y]=∑y=0∞F∗(y)E[Y] = \sum_{y=0}^\infty F^*(y)E[Y]=∑y=0∞​F∗(y) and, for k≥2k \ge 2k≥2,
E[Yk]=1+∑z=0k−1(kz)[∑y=1∞yzF∗(y)].(9.4)E[Y^k] = 1 + \sum_{z=0}^{k-1}\binom{k}{z}\left[\sum_{y=1}^\infty y^z F^*(y)\right]. \tag{9.4}E[Yk]=1+z=0∑k−1​(zk​)[y=1∑∞​yzF∗(y)].(9.4)
  1. Remark 9.2.2. For k≥2k \ge 2k≥2, E[Yk]<∞E[Y^k] < \inftyE[Yk]<∞ if and only if ∑yyk−1F∗(y)<∞\sum_y y^{k-1}F^*(y) < \infty∑y​yk−1F∗(y)<∞.
  2. Proposition 9.2.3. For a positive integer kkk, E[Yk]<∞E[Y^k] < \inftyE[Yk]<∞ implies E[Ysk]<∞E[Y_s^k] < \inftyE[Ysk​]<∞ for all s≥0s \ge 0s≥0.
  3. Proposition 9.2.6. The geometric (0<μ<10<\mu<10<μ<1), negative binomial (0<μ<10<\mu<10<μ<1, r≥2r \ge 2r≥2) and truncated Poisson (λ>0\lambda > 0λ>0) distributions are BMRL.
  4. Lemma 9.5.2. Under λ(2)<∞\lambda^{(2)} < \inftyλ(2)<∞,
E[X(s)]=λs,E[(X(s))2]=λ(2)s+λ2s(s−1).(9.25)E[X(s)] = \lambda s, \qquad E[(X(s))^2] = \lambda^{(2)}s + \lambda^2 s(s-1). \tag{9.25}E[X(s)]=λs,E[(X(s))2]=λ(2)s+λ2s(s−1).(9.25)

Significance

The result itself. Proposition 9.2.5 turns a condition that is easy to check for concrete service distributions, and natural for services (a service whose expected remaining duration grows without bound as it goes on is undesirable), into the moment bounds that the average cost analysis consumes. With Proposition 9.2.6 it shows that the most common unbounded service distributions on {1,2,… }\{1,2,\dots\}{1,2,…} have finite moments of all orders; with Lemma 9.5.2 it supplies the linear and quadratic growth of expected arrivals and their second moments that the verification of the (WAC) assumptions for the batch-arrival queue of Example 9.3.1 needs (Section 9.5). Every bounded distribution is BMRL as well (the book's Problem 9.3).

Formalizing it. All results here are proved in the book; none has a machine-checked proof on the platform or in Mathlib, which has geometric and Poisson distributions but no residual lives, negative binomial or truncated Poisson laws. A complete development gives a reusable tail-sum calculus for moments of N\mathbb NN-valued random variables in [0,∞][0,\infty][0,∞], a residual-life construction for discrete distributions, and the BMRL property of three standard families. The platform's mean residual life order (the "Stochastic Orders II" mission, Shaked–Shanthikumar) compares two variables; BMRL is a uniform bound on one variable's residual lives and is not an order, so none of that material states these results.

Difficulty

BMRL controls only first moments, of the conditional laws YsY_sYs​; the goal asks for moments of every order of YYY itself. Bounding E[Yk]E[Y^k]E[Yk] by expanding E[Ys]E[Y_s]E[Ys​] for each fixed sss gives nothing, because each single bound is compatible with a heavy tail: the uniformity in sss is essential. The residual lives are also only defined where P(Y>s)>0P(Y > s) > 0P(Y>s)>0, so every argument must handle distributions with bounded support separately. Proposition 9.2.6 requires explicit control of ratios of tail sums for three families; for the negative binomial and truncated Poisson the tails have no closed form.

Formalization scope

  • YYY is represented by its law, a function u:N→[0,∞]u : \mathbb N \to [0,\infty]u:N→[0,∞] with ∑yuy=1\sum_y u_y = 1∑y​uy​=1 and u0=0u_0 = 0u0​=0 (IsDistOnPos). F∗F^*F∗, moments and residual-life moments are ℝ≥0∞-valued series; an infinite moment is +∞+\infty+∞ and "finite" means <∞< \infty<∞. No Bochner integral is used, so a finite-moment conclusion cannot hold vacuously through an integrability default.
  • The residual life YsY_sYs​ is defined by (9.7) and is used only where F∗(s)>0F^*(s) > 0F∗(s)>0; BMRL-UUU is required exactly at those sss, and UUU is a finite nonnegative real. A formalization requiring the bound at every sss with a junk value of E[Ys]E[Y_s]E[Ys​] where F∗(s)=0F^*(s) = 0F∗(s)=0 is ruled out: the definitions never divide by F∗(s)=0F^*(s) = 0F∗(s)=0 in a used position, and bounded distributions remain BMRL.
  • The geometric and negative binomial laws count trials (support starting at 111 and rrr), not failures as Mathlib's geometricPMF does.
  • Lemma 9.5.2 is stated on a probability space with measurable, mutually independent (iIndepFun) batch sizes of common law ppp, expectations as lower Lebesgue integrals, and only assumption (BA1), λ(2)<∞\lambda^{(2)} < \inftyλ(2)<∞, which is the part of the book's (BA) that concerns arrivals.
  • Welcome contributions: the tail-sum identity (9.4) and its reindexing lemmas, the residual-life tail formula (9.8) and moment formula (9.9), each as a separate lemma; and proofs that the three named families are probability distributions on their supports.

Selected references

  • Linn I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley Series in Probability and Statistics, John Wiley & Sons, 1999, Section 9.2 (pp. 202–206) and Section 9.5 (pp. 214–215). DOI 10.1002/9780470317037
  • Moshe Shaked and J. George Shanthikumar, Stochastic Orders, Springer Series in Statistics, Springer, 2007, Section 2.A (the mean residual life order). DOI 10.1007/978-0-387-34675-5
8 thms3 active usersReviewed
🏆Completed
Dynamic ProgrammingMarkov ChainOperations Research·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
🏆Completed
Dynamic ProgrammingOperations ResearchStochastic Systems·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems II: The Discount Optimality EquationTextbook

Motivation

Control problems for queueing systems (admission control, routing, service rate selection, inventory replenishment) are naturally modelled as Markov decision chains with a countable state space, such as the number of customers in a buffer, and with costs that grow without bound in the state, such as holding costs proportional to queue length. The expected discounted cost criterion is the first infinite horizon criterion applied to such models, and it is also the tool through which the average cost criterion is treated later in the same book (Chapters 6–8 of Sennott's text reach average cost optimal policies through limits of discounted problems as the discount factor tends to one).

Classical treatments of discounted dynamic programming assume bounded costs, under which the dynamic programming operator is a contraction and has a unique bounded fixed point. That assumption fails for queueing models. This mission formalizes Chapter 4, Sections 4.1–4.4, of L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999), which develops the discounted theory for nonnegative, possibly unbounded costs, where value functions may be infinite.

Timeline of the underlying theory:

  • 1965. Blackwell (Ann. Math. Statist. 36) establishes the discounted theory with bounded rewards.
  • 1966. Strauch (Ann. Math. Statist. 37) treats "negative" dynamic programming, the case of nonpositive rewards (equivalently nonnegative costs), with no boundedness assumption.
  • 1977–1978. Bertsekas (SIAM J. Control Optim. 15) and Bertsekas and Shreve (Stochastic Optimal Control: The Discrete-Time Case) give the abstract monotone-mapping framework covering both cases.
  • 1999. Sennott's text states the countable-state, finite-action, nonnegative-cost discounted theory in the form used for queueing control, with general history-dependent randomized policies.

Setting

A Markov decision chain Δ\DeltaΔ has a countable state space SSS; for each state iii a finite nonempty action set AiA_iAi​; for each a∈Aia \in A_ia∈Ai​ a nonnegative finite cost C(i,a)C(i,a)C(i,a) and a probability distribution (Pij(a))j∈S(P_{ij}(a))_{j \in S}(Pij​(a))j∈S​ of the next state. A policy θ\thetaθ chooses the action at time nnn at random from a distribution θ(⋅∣hn)\theta(\cdot \mid h_n)θ(⋅∣hn​) on AinA_{i_n}Ain​​ that may depend on the entire history hn=(i0,a0,…,an−1,in)h_n = (i_0, a_0, \dots, a_{n-1}, i_n)hn​=(i0​,a0​,…,an−1​,in​). A stationary policy fff always chooses f(i)∈Aif(i) \in A_if(i)∈Ai​ in state iii; for it one writes C(i,f)=C(i,f(i))C(i,f) = C(i,f(i))C(i,f)=C(i,f(i)) and Pij(f)=Pij(f(i))P_{ij}(f) = P_{ij}(f(i))Pij​(f)=Pij​(f(i)).

Fix a discount factor α∈(0,1)\alpha \in (0,1)α∈(0,1). For an initial state iii and a policy θ\thetaθ, the nnn-horizon cost with terminal cost zero and the infinite horizon discounted cost are

vθ,α,n(i)=∑t=0n−1αtEθ[C(Xt,At)∣X0=i],Vθ,α(i)=∑t=0∞αtEθ[C(Xt,At)∣X0=i],v_{\theta,\alpha,n}(i) = \sum_{t=0}^{n-1} \alpha^t E_\theta[C(X_t,A_t) \mid X_0 = i], \qquad V_{\theta,\alpha}(i) = \sum_{t=0}^{\infty} \alpha^t E_\theta[C(X_t,A_t) \mid X_0 = i],vθ,α,n​(i)=t=0∑n−1​αtEθ​[C(Xt​,At​)∣X0​=i],Vθ,α​(i)=t=0∑∞​αtEθ​[C(Xt​,At​)∣X0​=i],

and the value functions are vα,n(i)=inf⁡θvθ,α,n(i)v_{\alpha,n}(i) = \inf_\theta v_{\theta,\alpha,n}(i)vα,n​(i)=infθ​vθ,α,n​(i) and Vα(i)=inf⁡θVθ,α(i)V_\alpha(i) = \inf_\theta V_{\theta,\alpha}(i)Vα​(i)=infθ​Vθ,α​(i), infima over all policies. All of these lie in [0,∞][0,\infty][0,∞]. A policy is discount optimal if Vθ,α=VαV_{\theta,\alpha} = V_\alphaVθ,α​=Vα​. The discount optimality equation is

W(i)=min⁡a∈Ai{C(i,a)+α∑jPij(a)W(j)},i∈S.(4.9)W(i) = \min_{a \in A_i} \Big\{ C(i,a) + \alpha \sum_j P_{ij}(a) W(j) \Big\}, \qquad i \in S. \tag{4.9}W(i)=a∈Ai​min​{C(i,a)+αj∑​Pij​(a)W(j)},i∈S.(4.9)

With W=VαW = V_\alphaW=Vα​, Bi(α)B_i(\alpha)Bi​(α) denotes the set of actions attaining the minimum at iii.

Formalization targets

Goal: Theorem 4.1.4

VαV_\alphaVα​ solves (4.9); every W:S→[0,∞]W : S \to [0,\infty]W:S→[0,∞] solving (4.9) satisfies Vα≤WV_\alpha \le WVα​≤W; and every stationary policy fαf_\alphafα​ with

C(i,fα)+α∑jPij(fα)Vα(j)=min⁡a{C(i,a)+α∑jPij(a)Vα(j)}for all iC(i,f_\alpha) + \alpha \sum_j P_{ij}(f_\alpha) V_\alpha(j) = \min_a \Big\{ C(i,a) + \alpha \sum_j P_{ij}(a) V_\alpha(j) \Big\} \quad \text{for all } iC(i,fα​)+αj∑​Pij​(fα​)Vα​(j)=amin​{C(i,a)+αj∑​Pij​(a)Vα​(j)}for all i

is discount optimal. No boundedness of costs and no finiteness of VαV_\alphaVα​ is assumed.

Milestones

In attack order: Lemma 4.1.1 (vθ,α,n↑Vθ,αv_{\theta,\alpha,n} \uparrow V_{\theta,\alpha}vθ,α,n​↑Vθ,α​); Proposition 4.1.2 (a supersolution of the one-policy equation dominates ve,α,n+αnEe[W(Xn)]v_{e,\alpha,n} + \alpha^n E_e[W(X_n)]ve,α,n​+αnEe​[W(Xn​)] and Ve,αV_{e,\alpha}Ve,α​); Corollary 4.1.3 (a supersolution of the optimality inequality dominates Vf,α≥VαV_{f,\alpha} \ge V_\alphaVf,α​≥Vα​); then, beyond the goal, Corollary 4.1.5 (αnEfα[Vα(Xn)∣X0=i]→0\alpha^n E_{f_\alpha}[V_\alpha(X_n) \mid X_0 = i] \to 0αnEfα​​[Vα​(Xn​)∣X0​=i]→0 where Vα(i)<∞V_\alpha(i) < \inftyVα​(i)<∞), Proposition 4.2.2 and Corollary 4.2.4 (conditions under which a solution of (4.9) equals VαV_\alphaVα​), Proposition 4.3.1 (vα,n↑Vαv_{\alpha,n} \uparrow V_\alphavα,n​↑Vα​, and limit points of finite horizon optimal stationary policies are discount optimal) and Proposition 4.4.1 (optimal policies are exactly those concentrated on the sets Bi(α)B_{i}(\alpha)Bi​(α) along histories of positive probability).

Significance

Theorem 4.1.4 is the foundation for everything in the book that concerns discounted costs: it produces an optimal stationary deterministic policy, identifies VαV_\alphaVα​ among the many solutions of (4.9) (Example 4.2.1 of the book gives a one-parameter family of finite solutions), and underlies value iteration (Proposition 4.3.1) and the approximating-sequence method of Sections 4.6–4.7. The average cost results of Chapters 6–8 are proved from it by letting α→1\alpha \to 1α→1. Proposition 4.4.1 describes the full set of optimal policies, including randomized and history-dependent ones.

These are known results with published proofs. The contribution of this mission is a machine-checked development of the discounted theory for countable state spaces with unbounded costs and infinite values, over the general policy class. Related statements on the platform (the monotone-mapping propositions of Bertsekas 1977 in the MonotoneDP missions, and bounded-cost or finite-state discounted results) use different models and are open; no machine-checked proof of the present statements is known to this mission.

Difficulty

The contraction argument that settles the bounded case is unavailable: with unbounded costs the operator in (4.9) has many fixed points, and VαV_\alphaVα​ can equal +∞+\infty+∞ at some states, so neither uniqueness of fixed points nor subtraction of values is available. The optimality equation compares the infimum over all history-dependent randomized policies with a one-step minimum, so the general policy class and the law of the process under it must be handled directly; restricting attention to Markov or stationary policies begs the question. Every limit exchange (monotone limits of finite horizon costs, the passage to limit points of policies in Proposition 4.3.1) takes place in [0,∞][0,\infty][0,∞], where finite-valued arguments do not transfer verbatim.

Formalization scope

The Lean development lives in the namespace SennottDP.Discounted. Conventions:

  • The state space is a type S with [Countable S]; actions form a type Act and A i : Finset Act is nonempty. Costs are ℝ≥0; transition probabilities are ℝ≥0∞ with ∑' j, P i a j = 1 for a ∈ A i.
  • A history at time nnn is a pair Fin (n+1) → S, Fin n → Act; a policy assigns to every history a distribution on the action set of its last state. The probability of a history is the product of the policy and transition probabilities; expectations are ℝ≥0∞ sums over histories, so no integrability conditions arise.
  • All values (vθ,α,nv_{\theta,\alpha,n}vθ,α,n​, Vθ,αV_{\theta,\alpha}Vθ,α​, vα,nv_{\alpha,n}vα,n​, VαV_\alphaVα​, and the competing solutions WWW) are ℝ≥0∞-valued; 0⋅∞=00 \cdot \infty = 00⋅∞=0. The discount factor is α : ℝ≥0 with 0 < α and α < 1. Terminal costs are zero.
  • VαV_\alphaVα​ and vα,nv_{\alpha,n}vα,n​ are infima over the type of all general policies. Defining them over stationary policies only would make the optimality of fαf_\alphafα​ a tautology; that formalization is ruled out.
  • Proposition 4.4.1: the book states the equivalence without a finiteness assumption, but its necessity argument needs Vα<∞V_\alpha < \inftyVα​<∞, and necessity fails otherwise. Sufficiency is stated in general and necessity under Vα<∞V_\alpha < \inftyVα​<∞ everywhere.

Useful infrastructure, reusable by the later missions of this series (approximating sequences, average cost): the shift of a general policy after its first step, the Chapman–Kolmogorov identity for the history law, and the computation Ef[W(Xn+1)]=Ef[∑jPXnj(f)W(j)]E_f[W(X_{n+1})] = E_f[\sum_j P_{X_n j}(f) W(j)]Ef​[W(Xn+1​)]=Ef​[∑j​PXn​j​(f)W(j)] for stationary policies. Contributions of such lemmas, and proofs of any milestone, 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, Chapter 4. https://doi.org/10.1002/9780470317037
  • D. Blackwell, Discounted dynamic programming, Annals of Mathematical Statistics 36 (1965), 226–235. https://doi.org/10.1214/aoms/1177700285
  • R. E. Strauch, Negative dynamic programming, Annals of Mathematical Statistics 37 (1966), 871–890. https://doi.org/10.1214/aoms/1177699369
  • D. P. Bertsekas, Monotone mappings with application in dynamic programming, SIAM Journal on Control and Optimization 15 (1977), 438–464. https://doi.org/10.1137/0315031
  • D. P. Bertsekas and S. E. Shreve, Stochastic Optimal Control: The Discrete-Time Case, Academic Press, 1978.
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
12 thms3 active usersReviewed
🏆Completed
Dynamic ProgrammingOperations ResearchStochastic Systems·Captain: mikedeng1

Stochastic Dynamic Programming and the Control of Queueing Systems I: Finite Horizon Optimality and Approximating SequencesTextbook

Motivation

Controlled queueing systems (admission control, routing, service-rate selection) are naturally modelled as Markov decision chains whose state is a buffer content and therefore ranges over a countably infinite set. Linn Sennott's Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999, DOI 10.1002/9780470317037) develops the dynamic programming theory for exactly this setting: countable state space, finite action sets, nonnegative and possibly unbounded costs, and value functions that are allowed to be infinite. The book's computational method, the approximating sequence method (ASM), replaces the infinite chain by a sequence of finite truncations and asks when optimal values and policies of the truncations converge to those of the original chain.

This mission is the first of a series on the book. It covers Chapter 3, finite horizon optimization, together with the model of Chapter 2 and three results from Appendices A and B that the chapter uses. The finite horizon theory is the entry point: it is where the book's general policy class, its extended-valued cost criteria and its approximating sequences are first used together.

Setting

A Markov decision chain Δ\DeltaΔ has a countable state space SSS; for each i∈Si \in Si∈S a finite nonempty action set AiA_iAi​; a finite cost C(i,a)≥0C(i,a) \ge 0C(i,a)≥0; and for each a∈Aia \in A_ia∈Ai​ a transition distribution (Pij(a))j∈S(P_{ij}(a))_{j \in S}(Pij​(a))j∈S​. A history at time ttt is ht=(i0,a0,…,it−1,at−1,it)h_t = (i_0, a_0, \dots, i_{t-1}, a_{t-1}, i_t)ht​=(i0​,a0​,…,it−1​,at−1​,it​), and a general policy θ\thetaθ chooses the action at time ttt from a distribution θ(⋅∣ht)\theta(\cdot \mid h_t)θ(⋅∣ht​) on AitA_{i_t}Ait​​: it may use the whole history and may randomize. Stationary policies fff (f(i)∈Aif(i) \in A_if(i)∈Ai​) and deterministic Markov policies (a stationary policy for each time) are special cases.

Fix a finite terminal cost F≥0F \ge 0F≥0 and a discount factor 0<α≤10 < \alpha \le 10<α≤1 (α=1\alpha = 1α=1 is the undiscounted case). The nnn horizon expected discounted cost of θ\thetaθ from initial state iii is

vθ,α,n(i)=∑t=0n−1αtEθ[C(Xt,At)∣X0=i]+αnEθ[F(Xn)∣X0=i],v_{\theta,\alpha,n}(i) = \sum_{t=0}^{n-1} \alpha^t E_\theta[C(X_t,A_t) \mid X_0 = i] + \alpha^n E_\theta[F(X_n) \mid X_0 = i],vθ,α,n​(i)=t=0∑n−1​αtEθ​[C(Xt​,At​)∣X0​=i]+αnEθ​[F(Xn​)∣X0​=i],

and the value function is vα,n(i)=inf⁡θvθ,α,n(i)v_{\alpha,n}(i) = \inf_\theta v_{\theta,\alpha,n}(i)vα,n​(i)=infθ​vθ,α,n​(i) over all general policies. Both may be +∞+\infty+∞. A policy is optimal for the nnn horizon if it attains vα,n(i)v_{\alpha,n}(i)vα,n​(i) at every iii. For n≥1n \ge 1n≥1 put uα,n(i,a)=C(i,a)+α∑jPij(a)vα,n−1(j)u_{\alpha,n}(i,a) = C(i,a) + \alpha \sum_j P_{ij}(a) v_{\alpha,n-1}(j)uα,n​(i,a)=C(i,a)+α∑j​Pij​(a)vα,n−1​(j) and let Bi(α,n)B_i(\alpha,n)Bi​(α,n) be the set of a∈Aia \in A_ia∈Ai​ minimizing it.

An approximating sequence (ΔN)N≥N0(\Delta_N)_{N \ge N_0}(ΔN​)N≥N0​​ has finite nonempty state spaces SNS_NSN​ increasing to SSS, the same actions and costs, and transition distributions Pij(a;N)P_{ij}(a;N)Pij​(a;N) on SNS_NSN​ converging to Pij(a)P_{ij}(a)Pij​(a) as N→∞N \to \inftyN→∞. Its value functions are vα,nNv^N_{\alpha,n}vα,nN​. In an augmentation type approximating sequence, the probability Pir(a)P_{ir}(a)Pir​(a) of leaving SNS_NSN​ to rrr is redistributed over SNS_NSN​ by an augmentation distribution qj(i,a,r,N)q_j(i,a,r,N)qj​(i,a,r,N). Assumption FH(α\alphaα, nnn) requires lim sup⁡Nvα,nN(i)\limsup_N v^N_{\alpha,n}(i)limsupN​vα,nN​(i) to be finite and at most vα,n(i)v_{\alpha,n}(i)vα,n​(i) for every iii. A stationary policy eee is a limit point of stationary policies eNe^NeN if, along a subsequence, eNr(i)=e(i)e^{N_r}(i) = e(i)eNr​(i)=e(i) eventually for each iii.

Formalization targets

Goal: Theorem 3.2.3

For fixed n≥1n \ge 1n≥1,

(∀i: lim⁡N→∞vα,nN(i)=vα,n(i)<∞)  ⟺  FH(α,n),\Big(\forall i:\ \lim_{N\to\infty} v^N_{\alpha,n}(i) = v_{\alpha,n}(i) < \infty\Big) \iff \mathrm{FH}(\alpha,n),(∀i: N→∞lim​vα,nN​(i)=vα,n​(i)<∞)⟺FH(α,n),

and under either condition every limit point ene_nen​ of stationary policies enNe^N_nenN​ with enN(i)∈BiN(α,n)e^N_n(i) \in B^N_i(\alpha,n)enN​(i)∈BiN​(α,n) satisfies en(i)∈Bi(α,n)e_n(i) \in B_i(\alpha,n)en​(i)∈Bi​(α,n) for all i∈Si \in Si∈S.

Milestones

  1. Proposition A.1.1: a probability average of uuu is at least min⁡u\min uminu, with equality iff the distribution is concentrated on the minimizers.
  2. Theorem 3.1.2: the finite horizon optimality equation vα,n(i)=min⁡auα,n(i,a)v_{\alpha,n}(i) = \min_a u_{\alpha,n}(i,a)vα,n​(i)=mina​uα,n​(i,a), and the characterization of all optimal general policies.
  3. Corollary 3.1.4: choosing fn−t(i)∈Bi(α,n−t)f_{n-t}(i) \in B_i(\alpha,n-t)fn−t​(i)∈Bi​(α,n−t) yields an optimal deterministic Markov policy.
  4. Proposition 2.5.6: the augmentation (2.19) defines an approximating distribution.
  5. Lemma 3.2.2: vα,0N→vα,0v^N_{\alpha,0} \to v_{\alpha,0}vα,0N​→vα,0​ and lim inf⁡Nvα,nN≥vα,n\liminf_N v^N_{\alpha,n} \ge v_{\alpha,n}liminfN​vα,nN​≥vα,n​.
  6. Propositions B.3 and B.5: sequences of stationary policies, for Δ\DeltaΔ or for (ΔN)(\Delta_N)(ΔN​), have limit points.
  7. Propositions 3.3.1, 3.3.2 and 3.3.4: three sufficient conditions for FH(α\alphaα, nnn), namely bounded costs, an augmentation sending excess probability to a finite set, and the augmentation inequality (3.20).

Significance

Theorem 3.1.2 is the finite horizon dynamic programming equation in the generality the rest of the book needs: the value function is an infimum over history-dependent randomized policies, and the equation holds with infinite values allowed. Its characterization of optimal policies is Bellman's principle of optimality in necessary-and-sufficient form. Corollary 3.1.4 shows that deterministic Markov policies suffice. The discounted chapter builds on these results, since its value function is the limit of finite horizon ones, and so does the value iteration algorithm of the average cost chapters.

Theorem 3.2.3 is the finite horizon case of the approximating sequence method. It says exactly when finite truncations give the right answer, and it reduces the question to Assumption FH, for which Section 3.3 gives checkable conditions. The same structure (a lim inf inequality, a lim sup assumption, a limit point of optimal truncated policies) recurs for the discounted and the average cost criteria in later chapters.

The results are proved in the book. None of them is formalized: the platform has finite horizon dynamic programming only for Markov policies, abstract monotone mappings or finite reward-maximizing MDPs, and nothing on approximating sequences. A formalization contributes a Lean model of Markov decision chains with general policies and extended-valued criteria, which the later missions of the series restate and can merge with this one.

Difficulty

The obvious proof of the optimality equation conditions on the first action and state and then applies the induction hypothesis to the rest of the trajectory. With general policies the rest of the trajectory is governed by a continuation policy that depends on the first state and action, and the decomposition of the path law into a first step and a continuation must be proved from the definition of the process, not assumed. Infinite values also make the "only if" direction delicate: a strict inequality between expected costs becomes an equality once both sides are infinite.

For approximating sequences, the natural idea is to pass to the limit in the optimality equation of ΔN\Delta_NΔN​. This fails in general. Example 3.2.1 of the book has lim⁡Nv1,2N(0)=2>1=v1,2(0)\lim_N v^N_{1,2}(0) = 2 > 1 = v_{1,2}(0)limN​v1,2N​(0)=2>1=v1,2​(0), because truncation moves probability onto states of high cost and dominated convergence is not available. Only the lim inf inequality holds for free, through a generalized Fatou lemma for approximating distributions. The lim sup side is exactly what Assumption FH supplies. The limit point argument then needs the compactness statement of Appendix B and the fact that a lim inf can be passed through a minimum over a finite set.

Formalization scope

The state space is a type S with [Countable S], the actions a type Act, and A i : Finset Act is nonempty. Costs are ℝ≥0, transition probabilities ℝ≥0∞ summing to 1 over S, and all values and expectations are in ℝ≥0∞, so infima over policies are lattice infima and +∞ is a genuine value. A history is the list of past state–action pairs, most recent first, with the current state, and a policy gives a distribution on A i for every history. Expectations are sums over histories of the path probabilities ∏θ(as∣hs)Pisis+1(as)\prod \theta(a_s \mid h_s) P_{i_s i_{s+1}}(a_s)∏θ(as​∣hs​)Pis​is+1​​(as​), which is the book's (2.6) and (2.9), not the dynamic programming recursion. The discount factor satisfies 0<α≤10 < \alpha \le 10<α≤1 in every statement. An approximating sequence is indexed by N∈NN \in \mathbb NN∈N with a start level N0N_0N0​; its value functions are set to 000 for the finitely many NNN at which a given state is not yet in SNS_NSN​, which does not affect limits.

The optimality equation must not be made definitional by defining vθ,α,nv_{\theta,\alpha,n}vθ,α,n​ or vα,nv_{\alpha,n}vα,n​ through the recursion (3.2). The policy class must not be restricted to deterministic Markov policies either, since that would make the characterization in Theorem 3.1.2 a different statement. Theorem 3.1.2(ii)(2) is stated with the guard vα,n(i)<∞v_{\alpha,n}(i) < \inftyvα,n​(i)<∞; the book omits it, and without it the "only if" direction is false (see the item's note).

A complete development needs the first-step decomposition of the path law under a general policy, the generalized Fatou lemma for approximating distributions (Proposition A.2.5, a milestone of the Appendix A mission of this series), and lim inf / lim sup manipulations in ℝ≥0∞. The model definitions are reusable by every later mission of the series. Contributions are welcome at every milestone, including proofs of the definitional sanity facts (for instance vθ,α,0=Fv_{\theta,\alpha,0} = Fvθ,α,0​=F).

Selected references

  • Linn 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
  • Martin L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994 (the standard reference for finite horizon dynamic programming with history-dependent randomized policies).
  • Richard Bellman, Dynamic Programming, Princeton University Press, 1957.
14 thms3 active usersReviewed
🏆Completed
Optimal Transport·Captain: Lucas

Monge–Kantorovich Duality (Yao 2023)Research Paper

Motivation

Optimal transport asks for the cheapest way to move one distribution of mass onto another. Monge posed the problem in 1781 for maps; Kantorovich (1942) relaxed it to transference plans (couplings), turning it into an infinite-dimensional linear program with a dual: maximize the total revenue ∫ψ dμ+∫φ dν\int\psi\,d\mu+\int\varphi\,d\nu∫ψdμ+∫φdν of pickup and delivery prices that never exceed the cost, ψ(x)+φ(y)≤c(x,y)\psi(x)+\varphi(y)\le c(x,y)ψ(x)+φ(y)≤c(x,y). The equality of the two values — Monge–Kantorovich duality — underlies much of modern optimal transport, with uses in economics (matching markets, principal–agent problems), probability, and PDE.

This mission formalizes the duality theorem and its proof as presented in Colin Yao, Monge–Kantorovich and Transportation Theory (paper dated September 10, 2023), whose proof follows Villani's Optimal Transport: Old and New and, for the weak inequality, Galichon's Optimal Transport Methods in Economics.

Setting

XXX and YYY are Polish spaces (separable, completely metrizable) with their Borel σ-algebras; μ\muμ and ν\nuν are Borel probability measures on XXX and YYY; c:X×Y→[0,∞)c : X\times Y\to[0,\infty)c:X×Y→[0,∞) is a continuous cost function.

  • A transference plan is a probability measure π\piπ on X×YX\times YX×Y with marginals μ\muμ and ν\nuν; Π(μ,ν)\Pi(\mu,\nu)Π(μ,ν) denotes the set of such plans.
  • The Kantorovich problem is min⁡π∈Π(μ,ν)∫c dπ\min_{\pi\in\Pi(\mu,\nu)}\int c\,d\piminπ∈Π(μ,ν)​∫cdπ.
  • The dual problem is sup⁡{∫ψ dμ+∫φ dν}\sup\{\int\psi\,d\mu+\int\varphi\,d\nu\}sup{∫ψdμ+∫φdν} over bounded continuous ψ,φ\psi,\varphiψ,φ with ψ(x)+φ(y)≤c(x,y)\psi(x)+\varphi(y)\le c(x,y)ψ(x)+φ(y)≤c(x,y) everywhere.
  • A set Γ⊆X×Y\Gamma\subseteq X\times YΓ⊆X×Y is ccc-cyclically monotone if ∑i=1Nc(xi,yi)≤∑i=1Nc(xi,yi+1)\sum_{i=1}^N c(x_i,y_i)\le\sum_{i=1}^N c(x_i,y_{i+1})∑i=1N​c(xi​,yi​)≤∑i=1N​c(xi​,yi+1​) (with yN+1=y1y_{N+1}=y_1yN+1​=y1​) for all finite families of points of Γ\GammaΓ; a plan is ccc-cyclically monotone if it is concentrated on such a set.
  • The ccc-conjugate of ψ\psiψ is ψc(y)=inf⁡x(c(x,y)−ψ(x))\psi^c(y)=\inf_x(c(x,y)-\psi(x))ψc(y)=infx​(c(x,y)−ψ(x)); ψ\psiψ is ccc-concave if ψ(x)=inf⁡y(c(x,y)−φ(y))\psi(x)=\inf_y(c(x,y)-\varphi(y))ψ(x)=infy​(c(x,y)−φ(y)) for some φ\varphiφ; its ccc-subdifferential is ∂cψ={(x,y):ψc(y)+ψ(x)=c(x,y)}\partial_c\psi=\{(x,y):\psi^c(y)+\psi(x)=c(x,y)\}∂c​ψ={(x,y):ψc(y)+ψ(x)=c(x,y)}.

Formalization targets

Goal (Theorem 4.1)

min⁡π∈Π(μ,ν)∫X×Yc dπ=sup⁡ψ∈Cb(X), φ∈Cb(Y)ψ(x)+φ(y)≤c(x,y)(∫Xψ dμ+∫Yφ dν),\min_{\pi\in\Pi(\mu,\nu)}\int_{X\times Y}c\,d\pi=\sup_{\substack{\psi\in C_b(X),\ \varphi\in C_b(Y)\\ \psi(x)+\varphi(y)\le c(x,y)}}\Big(\int_X\psi\,d\mu+\int_Y\varphi\,d\nu\Big),π∈Π(μ,ν)min​∫X×Y​cdπ=ψ∈Cb​(X), φ∈Cb​(Y)ψ(x)+φ(y)≤c(x,y)​sup​(∫X​ψdμ+∫Y​φdν),

including existence of a minimizing plan; the common value may be +∞+\infty+∞.

Milestones (in the order of the source)

  1. Weak duality, inequality (3.1): inf⁡≥sup⁡\inf\ge\supinf≥sup.
  2. Proposition 4.4: a ccc-cyclically monotone plan exists between uniform empirical measures.
  3. Lemma 4.16: plans with marginals in tight families form a tight family.
  4. Proposition 4.17: a ccc-cyclically monotone plan exists for general marginals.
  5. Proposition 4.22: the support of a ccc-cyclically monotone plan lies in ∂cψ\partial_c\psi∂c​ψ for a ccc-concave ψ\psiψ (bounded ccc).
  6. Theorem 4.25: (ψc)c=ψ(\psi^c)^c=\psi(ψc)c=ψ for ccc-concave ψ\psiψ.
  7. Proposition 4.31: duality for bounded continuous ccc.
  8. Theorem 4.32: ∫f dμ=∫f dπ\int f\,d\mu=\int f\,d\pi∫fdμ=∫fdπ for a plan with marginal μ\muμ.

Significance

Duality converts a minimization over measures into a maximization over functions; it characterizes optimal plans by the complementary-slackness condition that they are concentrated on {ψ(x)+φ(y)=c(x,y)}\{\psi(x)+\varphi(y)=c(x,y)\}{ψ(x)+φ(y)=c(x,y)}, and it is the entry point to Brenier's theorem, the Kantorovich–Rubinstein formula for the Wasserstein-1 distance, and the economic applications discussed in Section 5 of the source. The result is classical and proved in the literature; the work here is to formalize the known proof and to supply reusable infrastructure (couplings, ccc-cyclical monotonicity, ccc-transforms) on top of Mathlib's measure theory.

Difficulty

The weak inequality is a short integration argument; the reverse inequality is where the work lies. Finite-dimensional linear-programming duality does not pass to general measures directly: one must produce a cyclically monotone plan as a limit of discrete approximations (tightness and Prokhorov's theorem, closedness of the cyclic-monotonicity condition under weak convergence), build a potential ψ\psiψ from chains of cost differences, and control measurability and integrability of ψ\psiψ and ψc\psi^cψc. Passing from bounded to unbounded nonnegative costs requires an additional approximation argument, which the source only sketches (Section 4.5).

Formalization scope

Lean namespace MongeKantorovichYao; one definition file provides transference plans, ccc-cyclical monotonicity, ccc-conjugates, ccc-concavity and ccc-subdifferentials. Conventions: marginals are pushforwards along the projections; ccc-conjugates are extended-real infima (no default values); the transport cost in the goal is the [0,∞][0,\infty][0,∞]-valued integral of the nonnegative cost, and both sides of the goal are compared in the extended reals, so the infinite-cost case is included and no integrability hypothesis is added. The dual side ranges over bounded continuous functions with the constraint imposed at every point. Proposition 4.22 is stated for bounded ccc (as used in Proposition 4.31), since with unbounded costs a real-valued potential need not exist. Infrastructure that may be missing from Mathlib: Prokhorov-type compactness of tight families of probability measures, weak convergence of empirical measures, and lower semicontinuity of π↦∫c dπ\pi\mapsto\int c\,d\piπ↦∫cdπ.

Selected references

  • C. Villani, Optimal Transport: Old and New, Grundlehren der mathematischen Wissenschaften 338, Springer, 2009. https://doi.org/10.1007/978-3-540-71050-9
  • A. Galichon, Optimal Transport Methods in Economics, Princeton University Press, 2016.
  • L. V. Kantorovich, On the translocation of masses, Dokl. Akad. Nauk SSSR 37 (1942).
10 thms3 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchOptimization·Captain: mikedeng1

Numerical Techniques for Stochastic Optimization V: Asymptotic Optimality of List Scheduling for the Machine Investment ProblemTextbook

Motivation

Two-stage stochastic integer programs combine the two hardest features of mathematical programming: uncertainty in the data and integrality of the decisions. Even evaluating the objective of such a program at a single first-stage decision requires the expected optimal value of an NP-hard combinatorial problem. Chapter 8 of Ermoliev and Wets (eds.), Numerical Techniques for Stochastic Optimization (Springer 1988), by A. H. G. Rinnooy Kan and L. Stougie, argues that for many such problems the way forward is probabilistic analysis: the random optimal value of the second-stage problem often converges, after normalization, to a simple function of the problem parameters, and that function can replace the intractable expectation.

The chapter illustrates this on the machine investment problem: first buy mmm identical machines at cost ccc each, knowing only the distribution of the processing times of nnn jobs, then schedule the jobs once their processing times are revealed so as to minimize the makespan. This mission formalizes the chapter's analysis of that example: the almost sure asymptotics of the optimal makespan (8.13), its expectation version, and the asymptotic clairvoyance of the resulting two-stage heuristic.

Setting

Let p1,p2,…p_1, p_2, \dotsp1​,p2​,… be processing times: independent, identically distributed, nonnegative random variables on a probability space (Ω,F,P)(\Omega, \mathcal F, P)(Ω,F,P) with mean μ=Ep1>0\mu = \mathbb E p_1 > 0μ=Ep1​>0 and finite second moment Ep12<∞\mathbb E p_1^2 < \inftyEp12​<∞. The instance with nnn jobs uses the first nnn of them.

An assignment of the nnn jobs to m≥1m \ge 1m≥1 identical machines is a map σ:{1,…,n}→{1,…,m}\sigma : \{1, \dots, n\} \to \{1, \dots, m\}σ:{1,…,n}→{1,…,m}. The load of machine iii is ∑j:σ(j)=ipj\sum_{j : \sigma(j) = i} p_j∑j:σ(j)=i​pj​ and the makespan of σ\sigmaσ is its largest load. The minimum makespan is

Cn∗(m)=min⁡σmax⁡i=1,…,m∑j: σ(j)=ipj,C^*_n(m) = \min_{\sigma} \max_{i=1,\dots,m} \sum_{j:\ \sigma(j) = i} p_j ,Cn∗​(m)=σmin​i=1,…,mmax​j: σ(j)=i∑​pj​,

and the machine investment problem is to minimize Zn(m)=cm+E Cn∗(m)Z_n(m) = cm + \mathbb E\, C^*_n(m)Zn​(m)=cm+ECn∗​(m) over integers mmm (8.9).

List scheduling takes the jobs in the order 1,…,n1, \dots, n1,…,n and assigns each to the first available machine, a machine of least current load (lowest index on ties). Its makespan is CnH(m)C^H_n(m)CnH​(m). Write Sn=∑j=1npjS_n = \sum_{j=1}^n p_jSn​=∑j=1n​pj​ and pmax⁡=max⁡j≤npjp_{\max} = \max_{j \le n} p_jpmax​=maxj≤n​pj​.

For §8.3, the estimate Zn′(m)=cm+nμ/mZ'_n(m) = cm + n\mu/mZn′​(m)=cm+nμ/m is minimized over integers by the heuristic first-stage decision mnH1m^{H1}_nmnH1​, the better of ⌊nμ/c⌋\lfloor\sqrt{n\mu/c}\rfloor⌊nμ/c​⌋ and ⌈nμ/c⌉\lceil\sqrt{n\mu/c}\rceil⌈nμ/c​⌉. A clairvoyant decision maker who sees the processing times first chooses mn∘(ω)≥1m^\circ_n(\omega) \ge 1mn∘​(ω)≥1 minimizing cm+Cn∗(m)cm + C^*_n(m)cm+Cn∗​(m).

Formalization targets

Goal: Eq. (8.13)

For machine counts m=m(n)≥1m = m(n) \ge 1m=m(n)≥1 with m(n)=O(n)m(n) = O(\sqrt n)m(n)=O(n​),

P{lim⁡n→∞Cn∗(m)nμ/m=1}=1.P\Bigl\{ \lim_{n\to\infty} \frac{C^*_n(m)}{n\mu/m} = 1 \Bigr\} = 1 .P{n→∞lim​nμ/mCn∗​(m)​=1}=1.

The machine count is allowed to grow with nnn; this is the regime the first-stage heuristic lives in, since mnH1m^{H1}_nmnH1​ is of exact order n\sqrt nn​.

Milestones

  1. Eq. (8.10): the deterministic sandwich Sn/m≤Cn∗(m)≤CnH(m)≤Sn/m+pmax⁡S_n/m \le C^*_n(m) \le C^H_n(m) \le S_n/m + p_{\max}Sn​/m≤Cn∗​(m)≤CnH​(m)≤Sn​/m+pmax​, divided by nμ/mn\mu/mnμ/m.
  2. Eq. (8.11): the strong law of large numbers, (Sn−nμ)/(nμ)→0(S_n - n\mu)/(n\mu) \to 0(Sn​−nμ)/(nμ)→0 almost surely (a published platform theorem).
  3. Lemma 8.1 (i): pmax⁡/n→0p_{\max}/\sqrt n \to 0pmax​/n​→0 almost surely.
  4. Eq. (8.12): m pmax⁡/(nμ)→0m\, p_{\max}/(n\mu) \to 0mpmax​/(nμ)→0 almost surely when m=O(n)m = O(\sqrt n)m=O(n​).
  5. Lemma 8.1 (ii): E pmax⁡/n→0\mathbb E\, p_{\max}/\sqrt n \to 0Epmax​/n​→0.
  6. p. 207: E Cn∗(m)/(nμ/m)→1\mathbb E\, C^*_n(m)/(n\mu/m) \to 1ECn∗​(m)/(nμ/m)→1 when m=O(n)m = O(\sqrt n)m=O(n​).
  7. p. 211, asymptotic clairvoyance: almost surely
lim⁡n→∞c mnH1+CnH2(mnH1)c mn∘+Cn∗(mn∘)=1,\lim_{n\to\infty} \frac{c\, m^{H1}_n + C^{H2}_n(m^{H1}_n)}{c\, m^\circ_n + C^*_n(m^\circ_n)} = 1 ,n→∞lim​cmn∘​+Cn∗​(mn∘​)cmnH1​+CnH2​(mnH1​)​=1,

where CnH2C^{H2}_nCnH2​ is the list-scheduling makespan.

Significance

Result (8.13) says that the optimal value of an NP-hard problem, rescaled, is almost surely asymptotic to the elementary function nμ/mn\mu/mnμ/m of the data and the first-stage decision. Its expectation version replaces the intractable term E Cn∗(m)\mathbb E\,C^*_n(m)ECn∗​(m) in (8.9) by nμ/mn\mu/mnμ/m, and the clairvoyance statement shows that the heuristic built on that replacement loses asymptotically nothing, not even against a decision maker with full information. The chapter presents the example as the template for vehicle routing and location problems preceded by an investment decision.

All results here are classical and proved in the literature cited by the chapter (Lemma 8.1 is quoted from Feller without proof; the chapter refers to Dempster et al. for the asymptotic optimality of the two-stage heuristic and to Lenstra et al. for the notion of asymptotic clairvoyance). None of them has, to our knowledge, a machine-checked proof. The mission produces a formal model of identical-machine makespan scheduling and of list scheduling, the extreme-value estimates of Lemma 8.1 for square-integrable i.i.d. sequences, and the full chain from the strong law to (8.13).

Difficulty

The deterministic part is elementary on paper, but list scheduling is a recursively defined procedure, and its makespan bound has to be established for that recursion rather than for a picture like the chapter's Figure 8.3. The probabilistic core is Lemma 8.1: the strong law controls Sn/nS_n/nSn​/n, but the error term m pmax⁡/(nμ)m\, p_{\max}/(n\mu)mpmax​/(nμ) is of order pmax⁡/np_{\max}/\sqrt npmax​/n​ once mmm grows like n\sqrt nn​, and the strong law says nothing about maxima. With a fixed number of machines the whole statement would reduce to the strong law; the growth m(n)=O(n)m(n) = O(\sqrt n)m(n)=O(n​) is exactly where the second moment is needed. For the clairvoyance statement, the clairvoyant choice mn∘m^\circ_nmn∘​ is a random, unstructured minimizer, so its value must be bounded below without knowing where the minimum is attained.

Formalization scope

Processing times are one sequence p : ℕ → Ω → ℝ, 0-based (the book's pjp_jpj​ is p (j-1)), with each p j measurable, the family mutually independent (iIndepFun), identically distributed with p 0, pointwise nonnegative, p 0 ^ 2 integrable and ∫ p 0 = μ with μ > 0. Nonnegativity and μ>0\mu > 0μ>0 are not printed in the book; they are implicit in "processing times" and in the division by nμn\munμ. Machines are Fin m; a schedule is an assignment Fin n → Fin m, which is faithful because jobs are non-preemptive, machines identical and there are no precedence constraints.

The book writes "m=0(n)m = 0(\sqrt n)m=0(n​)"; this is read as mmm a function of nnn with m(n)≥1m(n) \ge 1m(n)≥1 and (fun n => (m n : ℝ)) =O[atTop] (fun n => √n). Stating (8.13) for a fixed mmm would trivialize it into the strong law and is ruled out. "Pr⁡{lim⁡⋯=1}=1\Pr\{\lim \dots = 1\} = 1Pr{lim⋯=1}=1" means that almost surely the limit exists and equals 111. Expectations are Bochner integrals of functions that are measurable and bounded by SnS_nSn​, hence integrable. List scheduling uses the index order and breaks ties towards the lowest machine index; both are admissible instances of the book's "arbitrary fixed order" and "first available machine". In the clairvoyance statement the minimum is over m≥1m \ge 1m≥1 (the book writes m∈Nm \in \mathbb Nm∈N; no machine cannot process any job, and the Lean value Cn∗(0)C^*_n(0)Cn∗​(0) is an empty-infimum convention). No explicit constants replace an O(·): the statements are limits and the O-hypothesis is carried as stated.

Out of scope: (8.14) and the p. 210 expectation statement, which need a positive density at 000 and whose proof the book calls "far from easy", and the dynamic programming recursion of §8.3.

Needed infrastructure: finite maxima and minima of measurable functions, extreme-value estimates for square-integrable i.i.d. sequences (Lemma 8.1), and Mathlib's strong law. The makespan and list-scheduling definitions are reusable for other identical-machine scheduling results; alternative proofs of Lemma 8.1 and sharper forms of the clairvoyance statement are welcome.

Selected references

  • A. H. G. Rinnooy Kan, L. Stougie, "Stochastic Integer Programming", in Yu. Ermoliev, R. J-B Wets (eds.), Numerical Techniques for Stochastic Optimization, Springer Series in Computational Mathematics 10, Springer 1988, Ch. 8, pp. 201–213. https://doi.org/10.1007/978-3-642-61370-8
  • W. Feller, An Introduction to Probability Theory and Its Applications, Vol. 1, 3rd edition, Wiley, 1968 (cited by the chapter for Lemma 8.1).
  • M. A. H. Dempster, M. L. Fisher, L. Jansen, B. J. Lageweg, J. K. Lenstra, A. H. G. Rinnooy Kan, "Analysis of heuristics for stochastic programming: results for hierarchical scheduling problems", Mathematics of Operations Research 8 (1983) 525–537. https://doi.org/10.1287/moor.8.4.525
  • J. K. Lenstra, A. H. G. Rinnooy Kan, L. Stougie, "A framework for the design and analysis of hierarchical planning systems", Annals of Operations Research 1 (1984) 23–42. https://doi.org/10.1007/BF01874451
  • R. L. Graham, "Bounds on multiprocessing timing anomalies", SIAM Journal on Applied Mathematics 17 (1969) 416–429. https://doi.org/10.1137/0117039
11 thms3 active usersReviewed
🏆Completed
Convex OptimizationOperations ResearchOptimization·Captain: mikedeng1

Numerical Techniques for Stochastic Optimization III: Stochastic Quasi-Féjer Sequences and the Stochastic Quasigradient Projection MethodTextbook

Motivation

Many optimization problems in operations research have an objective that is an expectation, F0(x)=Ef0(x,ω)F^0(x)=E f^0(x,\omega)F0(x)=Ef0(x,ω), over a random parameter ω\omegaω whose distribution is known only through samples or is too complex to integrate. Two-stage stochastic programs, inventory and reliability models, and simulation-based design all have this form. Neither F0F^0F0 nor its subgradients can be evaluated exactly, but a random vector whose conditional mean is close to a subgradient is often cheap to compute: a sample subgradient of f0(⋅,ω)f^0(\cdot,\omega)f0(⋅,ω), or a finite-difference quotient of two sampled values.

Stochastic quasigradient (SQG) methods, developed by Ermoliev and co-workers in Kiev from the late 1960s, use such vectors in place of subgradients. They extend the stochastic approximation procedures of Robbins–Monro (1951) and Kiefer–Wolfowitz (1952) to nonsmooth convex objectives, general convex constraints, and directions whose conditional mean is biased by a vanishing amount. This mission formalizes the basic convergence theory of the simplest SQG method, the projection method, as presented by Yu. Ermoliev in Chapter 6 of the IIASA volume Numerical Techniques for Stochastic Optimization (Springer 1988).

Timeline (as cited in the chapter's bibliography).

  • 1951–1954: Robbins and Monro, Kiefer and Wolfowitz, Dvoretzky and Blum prove convergence of stochastic approximation for unconstrained smooth problems.
  • 1962–1967: Shor introduces the generalized gradient (subgradient) method; Ermoliev (Kibernetika 4, 1966) and Polyak (Soviet Math. Doklady 8, 1967) prove its convergence.
  • 1967–1969: Ermoliev and Nekrylova introduce stochastic subgradients; Ermoliev ("On the stochastic quasi-gradient method and stochastic quasi-Feyer sequences", Kibernetika 2, 1969) introduces stochastic quasi-Féjer sequences.
  • 1976: Ermoliev's monograph Stochastic Programming Methods (Nauka) contains the proof of Theorem 6.1 (p. 98).
  • 1988: the survey chapter formalized here presents the projection method, Theorems 6.1 and 6.2, and an efficiency estimate for the averaged iterate.

Setting

Let X⊆RnX\subseteq\mathbb R^nX⊆Rn be a nonempty convex compact set and F0:Rn→RF^0:\mathbb R^n\to\mathbb RF0:Rn→R convex and continuous on XXX. The optimal set is X∗={x∈X:F0(x)≤F0(y) ∀y∈X}X^*=\{x\in X: F^0(x)\le F^0(y)\ \forall y\in X\}X∗={x∈X:F0(x)≤F0(y) ∀y∈X}. The projection onto XXX is πX(y)=argmin⁡{∥y−x∥2:x∈X}\pi_X(y)=\operatorname{argmin}\{\|y-x\|^2:x\in X\}πX​(y)=argmin{∥y−x∥2:x∈X}.

On a probability space, the stochastic quasigradient projection method produces random vectors x0,x1,…x^0,x^1,\dotsx0,x1,… by

xs+1=πX[xs−ρs ξ0(s)],s=0,1,…(6.11)x^{s+1}=\pi_X\big[x^s-\rho_s\,\xi^0(s)\big],\qquad s=0,1,\dots \tag{6.11}xs+1=πX​[xs−ρs​ξ0(s)],s=0,1,…(6.11)

where ρs≥0\rho_s\ge0ρs​≥0 is a step size and ξ0(s)\xi^0(s)ξ0(s) a random direction. Write E{⋅∣x0,…,xs}E\{\cdot\mid x^0,\dots,x^s\}E{⋅∣x0,…,xs} for conditional expectation given the history σ(x0,…,xs)\sigma(x^0,\dots,x^s)σ(x0,…,xs). The direction is a stochastic quasigradient if, for every x∗∈X∗x^*\in X^*x∗∈X∗,

F0(x∗)−F0(xs)≥⟨E{ξ0(s)∣x0,…,xs}, x∗−xs⟩+γ0(s)a.s.,(6.12)F^0(x^*)-F^0(x^s)\ge\big\langle E\{\xi^0(s)\mid x^0,\dots,x^s\},\,x^*-x^s\big\rangle+\gamma_0(s)\quad\text{a.s.}, \tag{6.12}F0(x∗)−F0(xs)≥⟨E{ξ0(s)∣x0,…,xs},x∗−xs⟩+γ0​(s)a.s.,(6.12)

where the error γ0(s)\gamma_0(s)γ0​(s) is a function of the history. If the conditional mean of ξ0(s)\xi^0(s)ξ0(s) is a subgradient plus a bias b0(s)b^0(s)b0(s), then (6.12) holds with γ0(s)=−⟨b0(s),x∗−xs⟩\gamma^0(s)=-\langle b^0(s),x^*-x^s\rangleγ0(s)=−⟨b0(s),x∗−xs⟩ (6.13).

A sequence of random vectors z0,z1,…z^0,z^1,\dotsz0,z1,… is a stochastic quasi-Féjer sequence for Z⊆RnZ\subseteq\mathbb R^nZ⊆Rn if E∥z0∥2<∞E\|z^0\|^2<\inftyE∥z0∥2<∞ and there are random rs≥0r_s\ge0rs​≥0 with ∑sErs<∞\sum_s E r_s<\infty∑s​Ers​<∞ such that for all z∈Zz\in Zz∈Z

E{∥z−zs+1∥2∣z0,…,zs}≤∥z−zs∥2+rs.(6.14)E\{\|z-z^{s+1}\|^2\mid z^0,\dots,z^s\}\le\|z-z^s\|^2+r_s. \tag{6.14}E{∥z−zs+1∥2∣z0,…,zs}≤∥z−zs∥2+rs​.(6.14)

Formalization targets

Goal: Theorem 6.2

If, with probability 1, ρs≥0\rho_s\ge0ρs​≥0 and ∑sρs=∞\sum_s\rho_s=\infty∑s​ρs​=∞, and

∑s=0∞E{ρs∣γ0(s)∣+ρs2∥ξ0(s)∥2}<∞,(6.15)\sum_{s=0}^\infty E\{\rho_s|\gamma_0(s)|+\rho_s^2\|\xi^0(s)\|^2\}<\infty, \tag{6.15}s=0∑∞​E{ρs​∣γ0​(s)∣+ρs2​∥ξ0(s)∥2}<∞,(6.15)

then with probability 1 the iterates converge and lim⁡sxs∈X∗\lim_s x^s\in X^*lims​xs∈X∗.

Milestones

  1. Theorem 6.1 (a)–(c). For a stochastic quasi-Féjer sequence for ZZZ: ∥z−zs+1∥2\|z-z^{s+1}\|^2∥z−zs+1∥2 converges a.s. and E∥z−zs∥2E\|z-z^s\|^2E∥z−zs∥2 is bounded, for each z∈Zz\in Zz∈Z; accumulation points exist a.s. (for Z≠∅Z\ne\emptysetZ=∅); and a.s. ZZZ lies in the hyperplane equidistant from any two distinct accumulation points outside ZZZ.
  2. Eq. (6.13). Biased stochastic subgradients satisfy (6.12).
  3. One-step inequality (p. 145): E{∥x∗−xs+1∥2∣⋅}≤∥x∗−xs∥2+2ρs⟨E{ξ0(s)∣⋅},x∗−xs⟩+E{ρs2∥ξ0(s)∥2∣⋅}E\{\|x^*-x^{s+1}\|^2\mid\cdot\}\le\|x^*-x^s\|^2+2\rho_s\langle E\{\xi^0(s)\mid\cdot\},x^*-x^s\rangle+E\{\rho_s^2\|\xi^0(s)\|^2\mid\cdot\}E{∥x∗−xs+1∥2∣⋅}≤∥x∗−xs∥2+2ρs​⟨E{ξ0(s)∣⋅},x∗−xs⟩+E{ρs2​∥ξ0(s)∥2∣⋅} for x∗∈Xx^*\in Xx∗∈X.
  4. Quasi-Féjer property (p. 145): the iterates of (6.11) form a stochastic quasi-Féjer sequence for X∗X^*X∗.
  5. Efficiency estimate (p. 147), for deterministic ρk\rho_kρk​ and xˉs=∑k≤sρkxk/∑k≤sρk\bar x^s=\sum_{k\le s}\rho_kx^k/\sum_{k\le s}\rho_kxˉs=∑k≤s​ρk​xk/∑k≤s​ρk​:
EF0(xˉs)−F0(x∗)≤(2∑k=0sρk)−1[E∥x∗−x0∥2+∑k=0sE(2ρk∣γ0(k)∣+ρk2∥ξ0(k)∥2)].E F^0(\bar x^s)-F^0(x^*)\le\Big(2\sum_{k=0}^s\rho_k\Big)^{-1}\Big[E\|x^*-x^0\|^2+\sum_{k=0}^s E\big(2\rho_k|\gamma_0(k)|+\rho_k^2\|\xi^0(k)\|^2\big)\Big].EF0(xˉs)−F0(x∗)≤(2k=0∑s​ρk​)−1[E∥x∗−x0∥2+k=0∑s​E(2ρk​∣γ0​(k)∣+ρk2​∥ξ0(k)∥2)].

Significance

Theorem 6.2 is the prototype convergence theorem for SQG methods. Its hypotheses allow random step sizes chosen from the history, nonsmooth objectives, and directions with a bias that vanishes fast enough; its conclusion is convergence of the iterates themselves to a single optimal point, not only convergence of function values or of dist⁡(xs,X∗)\operatorname{dist}(x^s,X^*)dist(xs,X∗). The later chapters of the same volume (adaptive step sizes, Chapters 17–18; nonstationary problems, §6.4) reuse the same framework. Theorem 6.1 isolates the probabilistic content in a form that applies to any algorithm with a quasi-Féjer inequality. The efficiency estimate gives a non-asymptotic accuracy bound for the averaged iterate.

The results are classical and proved in the literature: Theorem 6.1 in Ermoliev (1976, p. 98), Theorem 6.2 in this chapter (pp. 145–146). To our knowledge none of them has a machine-checked proof. Mathlib has conditional expectations and the a.s. martingale convergence theorem, but no Robbins–Siegmund-type almost-supermartingale lemma and no stochastic subgradient method. A formal proof of this mission would supply both.

Difficulty

The deterministic argument for projected subgradient methods compares ∥x∗−xs+1∥\|x^*-x^{s+1}\|∥x∗−xs+1∥ with ∥x∗−xs∥\|x^*-x^s\|∥x∗−xs∥ for a fixed x∗x^*x∗. In the stochastic setting this comparison holds only in conditional mean, with a perturbation rsr_srs​ that is random, and the distances converge only almost surely, with an exceptional null set that depends on x∗x^*x∗. Since X∗X^*X∗ is typically uncountable, "for every x∗x^*x∗, almost surely" does not immediately give "almost surely, for every x∗x^*x∗", and it is the second form that identifies a single limit. A second difficulty is that ∑ρs(F0(xs)−F0(x∗))<∞\sum\rho_s(F^0(x^s)-F^0(x^*))<\infty∑ρs​(F0(xs)−F0(x∗))<∞ only yields a subsequence along which F0F^0F0 approaches its minimum; passing from there to convergence of the whole sequence is exactly what part (c) of Theorem 6.1 is for.

Formalization scope

  • Rn\mathbb R^nRn is EuclideanSpace ℝ (Fin n). The probability space is an arbitrary measurable space with a probability measure. πX\pi_XπX​ is a chosen minimizer of ∥y−x∥2\|y-x\|^2∥y−x∥2 over XXX (unique for nonempty closed convex XXX). The history is the σ\sigmaσ-algebra generated by x0,…,xsx^0,\dots,x^sx0,…,xs; ρs\rho_sρs​ and γ0(s)\gamma_0(s)γ0​(s) are measurable with respect to it.
  • Directions ξ0(s)\xi^0(s)ξ0(s) are integrable and random vectors are measurable; conditional expectations are Mathlib's condExp. The quasi-Féjer definition requires square integrability of every zsz^szs (implied by the book's definition when Z≠∅Z\ne\emptysetZ=∅), so no conditional expectation is taken of a non-integrable function.
  • X≠∅X\ne\emptysetX=∅ and x0∈Xx^0\in Xx0∈X are stated; Z≠∅Z\ne\emptysetZ=∅ is added in Theorem 6.1 (b), which is false without it.
  • γ0(s)\gamma_0(s)γ0​(s) does not depend on x∗x^*x∗; the x∗x^*x∗-dependent error of (6.13) is dominated on a bounded XXX by ∥b0(s)∥diam⁡X\|b^0(s)\|\operatorname{diam}X∥b0(s)∥diamX.
  • (6.15) keeps its mixed form: ρs≥0\rho_s\ge0ρs​≥0 and ∑ρs=∞\sum\rho_s=\infty∑ρs​=∞ almost surely, and a deterministic sum of expectations (lower Lebesgue integrals) finite.
  • Explicit constants. The book's "CCC" in the efficiency estimate is instantiated from its proof: 222 on ρk∣γ0(k)∣\rho_k|\gamma_0(k)|ρk​∣γ0​(k)∣ and 111 on ρk2∥ξ0(k)∥2\rho_k^2\|\xi^0(k)\|^2ρk2​∥ξ0(k)∥2. The unspecified CCC before the quasi-Féjer sentence is replaced by the existence of summable rsr_srs​.
  • Typo corrections. The one-step inequality on p. 145 prints ρsE{∥ξ0(s)∥2∣⋅}\rho_sE\{\|\xi^0(s)\|^2\mid\cdot\}ρs​E{∥ξ0(s)∥2∣⋅}; it is ρs2\rho_s^2ρs2​. The efficiency estimate on p. 147 omits EEE before the last sum; it is restored. "ρk\rho_kρk​ independent of (x0,…,xk)(x^0,\dots,x^k)(x0,…,xk)" is read as deterministic step sizes.
  • A trivializing formalization is excluded: the goal does not replace ξ0(s)\xi^0(s)ξ0(s) by an exact subgradient, does not set γ0≡0\gamma_0\equiv0γ0​≡0, and concludes convergence of xsx^sxs to a point of X∗X^*X∗ rather than dist⁡(xs,X∗)→0\operatorname{dist}(x^s,X^*)\to0dist(xs,X∗)→0.
  • Reusable infrastructure: a Robbins–Siegmund lemma for nonnegative almost-supermartingales, the nonexpansiveness of πX\pi_XπX​, and Theorem 6.1 itself, which applies to any quasi-Féjer algorithm (Chapter 6 §6.4 and Chapters 17–18 of the same book). Contributions of these general lemmas are welcome.

Selected references

  • Yu. Ermoliev, "Stochastic Quasigradient Methods", in Yu. Ermoliev and R. J-B Wets (eds.), Numerical Techniques for Stochastic Optimization, Springer Series in Computational Mathematics 10, Springer 1988, Ch. 6, §6.1–6.2 (pp. 141–147). https://doi.org/10.1007/978-3-642-61370-8
  • Yu. Ermoliev, "On the stochastic quasi-gradient method and stochastic quasi-Feyer sequences", Kibernetika 2 (1969) (in Russian; English translation in Cybernetics). Reference [3] of the chapter.
  • Yu. Ermoliev, Stochastic Programming Methods, Nauka, Moscow, 1976 (in Russian); Theorem 6.1 is on p. 98. Reference [5] of the chapter.
  • H. Robbins and D. Siegmund, "A convergence theorem for non negative almost supermartingales and some applications", in J. S. Rustagi (ed.), Optimizing Methods in Statistics, Academic Press, 1971, 233–257. https://doi.org/10.1016/B978-0-12-604550-5.50015-8
  • H. Robbins and S. Monro, "A stochastic approximation method", Annals of Mathematical Statistics 22 (1951) 400–407. https://doi.org/10.1214/aoms/1177729586
10 thms3 active usersReviewed
🏆Completed
Number TheoryQuantum InformationTheoretical Computer Science·Captain: mikedeng1

Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer 3: The Success Probability of Quantum Order FindingResearch Paper

Motivation

The security of the RSA cryptosystem rests on the assumed difficulty of factoring large integers, and the best known classical algorithms for factoring run in super-polynomial time. In 1994 Peter Shor showed that a quantum computer can factor an nnn-digit integer in time polynomial in nnn (Shor, SIAM J. Comput. 1997; conference version FOCS 1994). The algorithm has two parts. A classical reduction, due to Miller (1976), turns factoring into order finding: given xxx coprime to nnn, find the least r≥1r \ge 1r≥1 with xr≡1(modn)x^r \equiv 1 \pmod nxr≡1(modn). The quantum part solves order finding.

This mission formalizes the quantum part as Shor analyzes it in §5 of the journal paper: the construction of the quantum state, the probability of each measurement outcome, and the classical post-processing that reads rrr off the measured value. The paper's claim is that one run of this procedure returns rrr with probability at least φ(r)/3r\varphi(r)/3rφ(r)/3r.

Timeline:

  • 1976: Miller reduces factoring to order finding (with randomization).
  • 1985–1994: Deutsch, Bernstein–Vazirani and Simon give the quantum Fourier sampling ideas the algorithm builds on.
  • 1994: Shor's FOCS paper introduces the factoring and discrete logarithm algorithms.
  • 1997: the SIAM J. Comput. version gives the analysis formalized here, with qqq the power of 222 in [n2,2n2)[n^2, 2n^2)[n2,2n2).

Setting

Fix an integer n≥2n \ge 2n≥2 and an integer xxx coprime to nnn. Its order rrr is the least r≥1r \ge 1r≥1 with xr≡1(modn)x^r \equiv 1 \pmod nxr≡1(modn); since xxx is a unit, r≤φ(n)<nr \le \varphi(n) < nr≤φ(n)<n. Let q=2lq = 2^lq=2l be the power of 222 with n2≤q<2n2n^2 \le q < 2n^2n2≤q<2n2.

A quantum state on two registers, the first holding 0≤a<q0 \le a < q0≤a<q and the second a residue y∈Z/ny \in \mathbb{Z}/ny∈Z/n, is a complex vector ψ(a,y)\psi(a, y)ψ(a,y) indexed by the basis states ∣a,y⟩|a, y\rangle∣a,y⟩. Measuring it returns ∣a,y⟩|a, y\rangle∣a,y⟩ with probability ∣ψ(a,y)∣2|\psi(a, y)|^2∣ψ(a,y)∣2.

The Fourier matrix AqA_qAq​ is the q×qq \times qq×q matrix with entries (Aq)a,c=q−1/2exp⁡(2πiac/q)(A_q)_{a,c} = q^{-1/2}\exp(2\pi i a c/q)(Aq​)a,c​=q−1/2exp(2πiac/q), with rows indexing inputs and columns outputs. The algorithm

  1. prepares 1q1/2∑a=0q−1∣a⟩∣xa mod n⟩\frac{1}{q^{1/2}}\sum_{a=0}^{q-1}|a\rangle|x^a \bmod n\rangleq1/21​∑a=0q−1​∣a⟩∣xamodn⟩ (eq. (5.2)),
  2. applies AqA_qAq​ to the first register, obtaining 1q∑a,cexp⁡(2πiac/q)∣c⟩∣xa mod n⟩\frac1q\sum_{a,c}\exp(2\pi iac/q)|c\rangle|x^a \bmod n\rangleq1​∑a,c​exp(2πiac/q)∣c⟩∣xamodn⟩ (eq. (5.4)),
  3. measures, obtaining some ∣c,y⟩|c, y\rangle∣c,y⟩,
  4. rounds c/qc/qc/q to the nearest fraction with denominator smaller than nnn.

The observed ccc gives us rrr if some fraction with lowest-terms denominator below nnn is within 1/2q1/2q1/2q of c/qc/qc/q, and every such fraction has lowest-terms denominator exactly rrr. In the Lean development these objects are preFourierState, finalState, outcomeProb and yieldsOrder, in the namespace ShorAlgorithms.OrderFinding, and the shared definition ShorAlgorithms.Shared.fourierMatrix.

Formalization targets

Goal: success probability at least φ(r)/3r\varphi(r)/3rφ(r)/3r

For all sufficiently large nnn, with xxx, rrr and qqq as above,

Pr⁡[the observed c gives us r]  =  ∑c gives r ∑y∈Z/n∣Ψ(c,y)∣2  ≥  φ(r)3r,\Pr\bigl[\text{the observed } c \text{ gives us } r\bigr] \;=\; \sum_{c\ \text{gives}\ r}\ \sum_{y \in \mathbb{Z}/n} |\Psi(c, y)|^2 \;\ge\; \frac{\varphi(r)}{3r},Pr[the observed c gives us r]=c gives r∑​ y∈Z/n∑​∣Ψ(c,y)∣2≥3rφ(r)​,

where Ψ\PsiΨ is the state (5.4). The threshold on nnn is uniform in xxx and qqq; it is the paper's "for sufficiently large nnn" from the per-state bound.

Milestones

  1. Eqs. (5.5)–(5.6). For 0≤k<r0 \le k < r0≤k<r, the probability of ∣c,xk⟩|c, x^k\rangle∣c,xk⟩ equals ∣1q∑b=0⌊(q−k−1)/r⌋exp⁡(2πi(br+k)c/q)∣2\left|\frac1q\sum_{b=0}^{\lfloor (q-k-1)/r\rfloor}\exp(2\pi i(br+k)c/q)\right|^2​q1​∑b=0⌊(q−k−1)/r⌋​exp(2πi(br+k)c/q)​2.
  2. Eq. (5.11). For nnn past a threshold, every ∣c,xk⟩|c, x^k\rangle∣c,xk⟩ with −r/2≤rc−dq≤r/2-r/2 \le rc - dq \le r/2−r/2≤rc−dq≤r/2 for some integer ddd has probability at least 1/3r21/3r^21/3r2.
  3. Eq. (5.13). If n2≤qn^2 \le qn2≤q, at most one fraction with denominator below nnn lies within 1/2q1/2q1/2q of c/qc/qc/q.
  4. p. 1500. Such a fraction is a convergent of the continued fraction of c/qc/qc/q.
  5. p. 1501. At least φ(r)\varphi(r)φ(r) values of ccc are within 1/2q1/2q1/2q of some d/rd/rd/r with gcd⁡(d,r)=1\gcd(d, r) = 1gcd(d,r)=1; with the rrr distinct values of xkx^kxk this gives at least rφ(r)r\varphi(r)rφ(r) states ∣c,xk⟩|c, x^k\rangle∣c,xk⟩, and each such ccc gives us rrr.

Significance

The goal is the quantitative statement behind "order finding is in bounded-error quantum polynomial time": since φ(r)/r≥δ/log⁡log⁡r\varphi(r)/r \ge \delta/\log\log rφ(r)/r≥δ/loglogr for a constant δ\deltaδ (Hardy and Wright, Thm. 328), O(log⁡log⁡r)O(\log\log r)O(loglogr) repetitions find rrr with high probability, and Miller's reduction then factors nnn. Without the bound, the algorithm is a procedure with no guarantee.

The result is proved, in the paper and in textbooks (Nielsen and Chuang, 2000, §5.3), usually with a phase-estimation analysis rather than Shor's direct count. What this mission adds is a machine-checked proof of Shor's own argument, with his choice of qqq and his constants, starting from the state built by applying AqA_qAq​ to (5.2). Formal proofs of idealized versions exist elsewhere, for instance in the exact-period model where rrr divides qqq and the output is uniform on rrr peaks, but that model removes the approximation that the 1/3r21/3r^21/3r2 bound is about. Legendre's theorem on continued fractions is already on the platform (FamousTheorems.legendre_continued_fraction_theorem) and is included as a reference item.

Difficulty

The obvious route is to compute the output distribution in closed form. That works only when rrr divides qqq; here qqq is a power of 222 and rrr is arbitrary, so the amplitudes are geometric sums of ⌊(q−k−1)/r⌋+1\lfloor (q-k-1)/r\rfloor + 1⌊(q−k−1)/r⌋+1 terms whose phases do not cancel exactly. The per-state bound 1/3r21/3r^21/3r2 requires a lower bound on such a sum that is uniform in rrr, ccc and kkk, with error terms of order 1/q1/q1/q controlled against a main term of order 1/r21/r^21/r2. The constant 1/31/31/3 leaves only a small margin below the limiting value 4/π2≈0.4054/\pi^2 \approx 0.4054/π2≈0.405, so the errors must be bounded explicitly, not merely shown to vanish.

The second difficulty is the counting: distinct coprime numerators ddd must give distinct outcomes ccc in [0,q)[0, q)[0,q), and each good ccc must determine rrr uniquely, which uses r<nr < nr<n and n2≤qn^2 \le qn2≤q.

Formalization scope

Conventions the statements commit to:

  • States are functions Fin q × ZMod n → ℂ; the matrix convention is row = input, so applying AqA_qAq​ to the first register gives the amplitude ∑aψ(a,y)(Aq)a,c\sum_a \psi(a, y)(A_q)_{a,c}∑a​ψ(a,y)(Aq​)a,c​ at (c,y)(c, y)(c,y).
  • The final state is built by applying AqA_qAq​ to the state (5.2); the closed forms (5.5) and (5.6) are theorems, not definitions. No normalization hypothesis is assumed.
  • Probabilities are squared moduli; the probability of the event "ccc gives us rrr" sums over all y∈Z/ny \in \mathbb{Z}/ny∈Z/n, which is exact because yyy that are not powers of xxx have probability zero.
  • xxx is a natural number with gcd⁡(x,n)=1\gcd(x, n) = 1gcd(x,n)=1; rrr is orderOf (x : ZMod n). qqq enters through the three hypotheses q=2lq = 2^lq=2l, n2≤qn^2 \le qn2≤q, q<2n2q < 2n^2q<2n2, not through a function of nnn.
  • Fractions are rationals, and "in lowest terms" is Rat.den.
  • Thresholds "for sufficiently large nnn" are ∃N, ∀n≥N\exists N,\ \forall n \ge N∃N, ∀n≥N, with NNN quantified before xxx, qqq, ccc and kkk.
  • Condition (5.11) is stated in its equivalent form (5.12), with an integer ddd.
  • Printed slip. Eq. (5.13)'s justification says "Because q>n2q > n^2q>n2", but qqq was chosen with n2≤qn^2 \le qn2≤q, and q=n2q = n^2q=n2 when nnn is a power of 222. The uniqueness claim holds under n2≤qn^2 \le qn2≤q, and that is what is stated.

Typing the closed form (5.4)–(5.6) in as the definition of the final state would make milestone 1 trivial and hide whether the probability model is the paper's; the definitions exclude this by construction.

Not stated: the polynomial running time of any step, the O(log⁡log⁡r)O(\log\log r)O(loglogr) repetition count (no explicit constant), the reversible modular exponentiation of §3, and the post-processing heuristics on p. 1501. Needed infrastructure: bounds on geometric exponential sums, Euler's totient, Diophantine approximation by fractions with bounded denominator, and Mathlib's continued fractions. Lemmas on geometric sums of roots of unity and on the order of units mod nnn are reusable in the companion discrete logarithm mission.

Selected references

  • P. W. Shor, Polynomial-Time Algorithms for Prime Factorization and Discrete Logarithms on a Quantum Computer, SIAM J. Comput. 26(5):1484–1509, 1997. https://doi.org/10.1137/S0097539795293172
  • P. W. Shor, Algorithms for quantum computation: discrete logarithms and factoring, Proc. 35th FOCS, 1994. https://doi.org/10.1109/SFCS.1994.365700
  • G. L. Miller, Riemann's hypothesis and tests for primality, J. Comput. System Sci. 13(3):300–317, 1976. https://doi.org/10.1016/S0022-0000(76)80043-8
  • G. H. Hardy and E. M. Wright, An Introduction to the Theory of Numbers, 5th ed., Oxford, 1979 (Ch. X, continued fractions; Thm. 328).
  • M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, Cambridge, 2000. https://doi.org/10.1017/CBO9780511976667
12 thms3 active usersReviewed
Linear OptimizationOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Competitive Randomized Algorithms for Nonuniform Problems IV: The Optimal Randomized Two-Server Ratio 1652/1069 on the 3-4-5 TriangleResearch Paper

Motivation

The kkk-server problem is a basic model of on-line decision making. kkk mobile servers move in a metric space, requests for points arrive one at a time, and each request has to be covered by a server before the next one arrives. The cost is the total distance the servers move. The problem includes paging, caching and disk-head scheduling as special cases (Manasse, McGeoch, Sleator 1990). An on-line algorithm is judged by its competitive factor: how much its cost can exceed that of an off-line algorithm that knows the whole request sequence in advance.

For randomized algorithms against an oblivious adversary (one that fixes the whole request sequence before the algorithm flips any coins), the best-understood case is paging, which is the kkk-server problem on a uniform metric space. There the optimal factor is the harmonic number Hk=∑i=1k1/iH_k=\sum_{i=1}^k 1/iHk​=∑i=1k​1/i. Fiat et al. proved the lower bound (1991) and McGeoch and Sleator the matching upper bound (1991). Karlin, Manasse, McGeoch and Owicki (Algorithmica 11, 1994, §5) asked whether HkH_kHk​-competitive algorithms also exist when the metric space is not uniform. They answered no, already for two servers on three points: on certain triangles the optimal randomized factor is strictly larger than H2=3/2H_2 = 3/2H2​=3/2. This mission formalizes their Theorem 13, which gives the exact optimal factor on the triangle with edge lengths 3, 4 and 5.

Timeline:

  • 1990: Manasse, McGeoch and Sleator introduce the kkk-server problem; kkk is the deterministic optimum for k=2k=2k=2.
  • 1991: Fiat, Karp, Luby, McGeoch, Sleator and Young prove the HkH_kHk​ lower bound for randomized paging. McGeoch and Sleator give an HkH_kHk​-competitive paging algorithm.
  • 1994: Karlin, Manasse, McGeoch and Owicki determine the optimal randomized two-server factors on the isosceles triangles 111-ddd-ddd (Theorem 12) and on the 3-4-5 triangle (Theorem 13, the ratio 1652/10691652/10691652/1069). Both exceed 3/23/23/2.

Setting

Let MMM be a metric space with exactly three points a,b,ca, b, ca,b,c, where d(a,b)=3d(a,b)=3d(a,b)=3, d(a,c)=5d(a,c)=5d(a,c)=5 and d(b,c)=4d(b,c)=4d(b,c)=4. A configuration CCC gives the positions of two labelled servers in MMM. A request sequence σ\sigmaσ is a finite list of points of MMM.

A deterministic on-line algorithm assigns to each prefix of a request sequence a configuration, in which the last request is covered. Its configuration after a prefix therefore cannot depend on later requests. Its initial configuration is the one it assigns to the empty prefix, and its cost CA(σ)C_A(\sigma)CA​(σ) on σ\sigmaσ is the total distance its servers move while serving σ\sigmaσ request by request.

The optimal off-line cost Copt(σ)C_{opt}(\sigma)Copt​(σ) from an initial configuration C0C_0C0​ is the infimum, over all schedules that start at C0C_0C0​ and cover each request of σ\sigmaσ in turn, of the total distance moved.

A randomized on-line algorithm AAA is a probability distribution over deterministic on-line algorithms, all starting at C0C_0C0​. The cost on each fixed σ\sigmaσ is required to be measurable in the random choice, and ECA(σ)\mathbf{E}C_A(\sigma)ECA​(σ) is the expected cost. AAA is ρ\rhoρ-competitive against an oblivious adversary if there is a constant aaa such that for every request sequence σ\sigmaσ,

ECA(σ)≤ρ⋅Copt(σ)+a.\mathbf{E}C_A(\sigma) \le \rho\cdot C_{opt}(\sigma) + a .ECA​(σ)≤ρ⋅Copt​(σ)+a.

These are the definitions of p. 543 of the paper. They are the platform's published KServer_model and KServer_randomized, which this mission reuses unchanged: KServer.RandomizedAlgorithm 2 M and A.IsCompetitiveFrom C₀ ρ.

Formalization targets

Goal: Theorem 13

For every initial configuration C0C_0C0​ of the two servers,

(∀A, ∀ρ, A is ρ-competitive from C0⇒ρ≥16521069) ∧ (∃A, A is 16521069-competitive from C0).\Big(\forall A,\ \forall \rho,\ A \text{ is } \rho\text{-competitive from } C_0 \Rightarrow \rho \ge \tfrac{1652}{1069}\Big)\ \wedge\ \Big(\exists A,\ A \text{ is } \tfrac{1652}{1069}\text{-competitive from } C_0\Big).(∀A, ∀ρ, A is ρ-competitive from C0​⇒ρ≥10691652​) ∧ (∃A, A is 10691652​-competitive from C0​).

The first claim is quantified over all randomized algorithms, so it also covers deterministic ones (point masses). The second claim asks for one algorithm. Together they say that 1652/1069≈1.5451652/1069 \approx 1.5451652/1069≈1.545 is the exact optimal randomized factor on this triangle.

Milestones

  1. The phase LP lower bound (p. 568). Twelve linear constraints in nine probabilities π1,…,π9\pi_1,\dots,\pi_9π1​,…,π9​, three potentials Φab,Φac,Φbc\Phi_{ab},\Phi_{ac},\Phi_{bc}Φab​,Φac​,Φbc​ and a ratio α\alphaα, one constraint for each possible phase of the request sequence, of the form
A’s cost≤α⋅(opt’s cost)+Φinitial−Φfinal.\text{A's cost} \le \alpha\cdot(\text{opt's cost}) + \Phi_{\text{initial}} - \Phi_{\text{final}}.A’s cost≤α⋅(opt’s cost)+Φinitial​−Φfinal​.

Every real solution has α≥1652/1069\alpha \ge 1652/1069α≥1652/1069. 2. The LP attainment (p. 568). The paper's printed probabilities lie in [0,1][0,1][0,1], and with suitable potentials they satisfy all twelve constraints at α=1652/1069\alpha = 1652/1069α=1652/1069. 3. Theorem 13, first claim: the lower bound for every randomized algorithm. 4. Theorem 13, second claim: a 1652/10691652/10691652/1069-competitive randomized algorithm exists.

Significance

The result. Theorem 13 shows that the HkH_kHk​ behaviour of randomized paging does not carry over to general metric spaces. Two servers on a three-point space already force a factor above 3/23/23/2. The value is exact, which makes this triangle a test case for any general theory of randomized kkk-server algorithms on small metric spaces. With Theorem 12 (the isosceles triangles, a companion mission of this series), it is one of the few non-uniform metric spaces with a known optimal randomized factor.

Formalizing it. The result has been proved since 1994. To our knowledge there is no machine-checked proof. The paper derives both bounds from two framework theorems for phase-based algorithms: Theorem 3 (an LP lower bound for phase-based algorithms bounds every algorithm) and Theorem 2 (a lazy phase-based algorithm with LP bound α\alphaα is α\alphaα-competitive). The phase tables themselves (which phases can occur and what they cost) are stated without detailed proof. A formal proof has to supply both framework arguments for this space and verify the phase tables, as well as the finite linear algebra of milestones 1 and 2. The milestones isolate the exact-arithmetic core so that it can be closed independently of the probabilistic part.

Difficulty

The two LP milestones are finite exact-arithmetic facts. The hard part is linking them to Theorem 13.

For the lower bound, an algorithm need not be phase-based at all. Its probabilities may depend on the whole history, not only on the current phase, and it may leave the configuration of the off-line optimum at the end of a phase. The obvious attempt is to fix one hard request sequence and compare costs, but that cannot work: randomization defeats any single sequence. The reduction from arbitrary algorithms to phase-based ones (the paper's Theorem 3) is the substantive step.

For the upper bound, the printed probabilities describe the algorithm's marginal position after each prefix of a phase. They have to be realized as a single probability distribution over deterministic on-line algorithms that is lazy (it moves only to serve a request) and whose expected cost per phase equals the table's entry. On top of this, the LP accounting has to be turned into a bound on arbitrary request sequences, including partial phases and a start away from the optimum's configuration.

Formalization scope

  • Model. The platform definitions KServer_model and KServer_randomized are used unchanged. Servers are labelled (Config 2 M = Fin 2 → M). A deterministic algorithm is a function of the request prefix, which makes it on-line by construction. A randomized algorithm is a mixed strategy with a probability measure and a measurability field, and its expected cost is the lower Lebesgue integral of the nonnegative cost. The off-line optimum is a real infimum over schedules from C0C_0C0​; the set is nonempty and bounded below by 000. Competitiveness allows any real additive constant.
  • The triangle is given by hypotheses on an arbitrary metric space: every point equals aaa, bbb or ccc, and d(a,b)=3d(a,b)=3d(a,b)=3, d(a,c)=5d(a,c)=5d(a,c)=5, d(b,c)=4d(b,c)=4d(b,c)=4. These hypotheses are satisfiable (3+4≥53+4\ge53+4≥5) and force three distinct points.
  • Initial configuration. Both claims are stated for every initial configuration C0C_0C0​, including both servers on one point. The paper does not fix the start; the additive constant absorbs it.
  • LP milestones. The thirteen LP variables are free reals, with no box 0≤πi≤10\le\pi_i\le 10≤πi​≤1, exactly as the paper permits. This makes milestone 1 stronger than the boxed version; the minimum is the same either way. The twelve constraints are written out one per hypothesis, in the table's order, with the potential difference Φinitial−Φfinal\Phi_{\text{initial}} - \Phi_{\text{final}}Φinitial​−Φfinal​ on the right. In milestone 2 the potentials are existentially quantified, since the paper names none.
  • Not stated. The paper's Theorems 2 and 3 (the phase framework) and the phase tables are not separate milestones. Milestone 1 feeds the first claim through Theorem 3, and milestone 2 feeds the second claim through Theorem 2. Contributions formalizing phase-based algorithms, laziness and the LP-bound reduction for finite metric spaces would be reusable for Theorem 12 and Theorem 14 of the same paper.
  • Ruled out. The lower bound is not restricted to deterministic or to phase-based algorithms, and it is not stated as "one sequence defeats every algorithm". The constant is exactly 1652/10691652/10691652/1069, not an approximation, and the attainment claim is not weakened to "for some initial configuration".

Selected references

  • A. R. Karlin, M. S. Manasse, L. A. McGeoch, S. Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994) 542–571. https://doi.org/10.1007/BF01189993
  • M. S. Manasse, L. A. McGeoch, D. D. Sleator, Competitive Algorithms for Server Problems, Journal of Algorithms 11 (1990) 208–230. https://doi.org/10.1016/0196-6774(90)90003-W
  • A. Fiat, R. M. Karp, M. Luby, L. A. McGeoch, D. D. Sleator, N. E. Young, Competitive Paging Algorithms, Journal of Algorithms 12 (1991) 685–699. https://doi.org/10.1016/0196-6774(91)90041-V
  • L. A. McGeoch, D. D. Sleator, A Strongly Competitive Randomized Paging Algorithm, Algorithmica 6 (1991) 816–825. https://doi.org/10.1007/BF01759073
7 thms3 active usersReviewed
Linear OptimizationOperations ResearchTheoretical Computer Science·Captain: mikedeng1

Competitive Randomized Algorithms for Nonuniform Problems III: The Optimal Randomized Two-Server Ratio on the 1-d-d Isosceles TriangleResearch Paper

Motivation

The k-server problem of Manasse, McGeoch and Sleator (J. Algorithms 11 (1990)) asks how kkk mobile servers in a metric space should respond, on-line, to a sequence of requests at points of the space, each of which must be covered by a server. It is the central model of on-line computation: paging is the special case of a uniform metric, and many caching and scheduling problems reduce to it. For two servers the deterministic picture is complete: the optimal competitive ratio is 222 on every metric space with at least three points.

Randomization changes the picture, and the smallest nontrivial case already shows how. On the equilateral triangle the optimal randomized ratio against an oblivious adversary is 3/23/23/2. Karlin, Manasse, McGeoch and Owicki (Algorithmica 11 (1994) 542–571) computed the exact optimal randomized ratio for several nonuniform triangles, where the distances differ, and showed that it depends on the geometry. Their Theorem 12 settles the whole family of isosceles triangles with edge lengths 111, ddd, ddd. These exact values are among the few known optimal randomized ratios for server problems.

Timeline:

  • 1990: Manasse, McGeoch and Sleator introduce the kkk-server problem and prove the deterministic two-server ratio is 222.
  • 1990–1994: Karlin, Manasse, McGeoch and Owicki submit this paper (received August 1990, revised September 1991) and publish it in Algorithmica in 1994, with the isosceles-triangle ratios of Theorem 12 and the 3-4-5 triangle ratio 1652/10691652/10691652/1069 of Theorem 13.
  • Later: Karloff, Rabani and Ravid extend the technique to Ω(log⁡log⁡k)\Omega(\log\log k)Ω(loglogk) and Ω(log⁡k)\Omega(\log k)Ω(logk) randomized lower bounds (cited on p. 564); Bubeck, Coester and Rabani (STOC 2023) refute the randomized kkk-server conjecture.

Setting

Fix an integer d≥1d\ge1d≥1. The isosceles triangle MMM has three points aaa, bbb, ccc with

dist⁡(a,b)=1,dist⁡(a,c)=dist⁡(b,c)=d.\operatorname{dist}(a,b)=1,\qquad \operatorname{dist}(a,c)=\operatorname{dist}(b,c)=d.dist(a,b)=1,dist(a,c)=dist(b,c)=d.

A configuration C:{0,1}→MC:\{0,1\}\to MC:{0,1}→M places two labelled servers on points of MMM. A deterministic on-line algorithm assigns to every finite request sequence σ=(r1,…,rn)\sigma=(r_1,\dots,r_n)σ=(r1​,…,rn​) a configuration, computed from σ\sigmaσ alone and covering the last request; its value on the empty sequence is its initial configuration. Its cost CA(σ)C_A(\sigma)CA​(σ) is the total distance its servers move while serving σ\sigmaσ request by request. The off-line optimum Copt(σ)C_{opt}(\sigma)Copt​(σ) from an initial configuration C0C_0C0​ is the least total movement of any schedule that starts at C0C_0C0​ and covers each request in turn, knowing σ\sigmaσ in advance.

A randomized algorithm is a probability distribution on deterministic on-line algorithms; its expected cost is ECA(σ)\mathbf{E}C_A(\sigma)ECA​(σ). It is ρ\rhoρ-competitive against an oblivious adversary from C0C_0C0​ if every algorithm in its support starts at C0C_0C0​ and there is a constant aaa such that

ECA(σ)≤ρ⋅Copt(σ)+afor every request sequence σ.\mathbf{E}C_A(\sigma)\le\rho\cdot C_{opt}(\sigma)+a\qquad\text{for every request sequence }\sigma.ECA​(σ)≤ρ⋅Copt​(σ)+afor every request sequence σ.

The request sequence is fixed in advance and does not react to the algorithm's coin flips.

Write ep=(1+1/p)pe_p=(1+1/p)^pep​=(1+1/p)p and

αd=e2d−1+1/4d(e2d−1−1)+1/2d,e2d−1=(2d2d−1)2d−1.\alpha_d=\frac{e_{2d-1}+1/4d}{(e_{2d-1}-1)+1/2d},\qquad e_{2d-1}=\left(\frac{2d}{2d-1}\right)^{2d-1}.αd​=(e2d−1​−1)+1/2de2d−1​+1/4d​,e2d−1​=(2d−12d​)2d−1.

In Lean this is NonuniformCompetitive.Isosceles.isoscelesRatio d.

Formalization targets

Goal: Theorem 12

For every d≥1d\ge1d≥1 and every initial configuration C0C_0C0​:

∀A, ∀ρ,A is ρ-competitive from C0 ⟹ ρ≥αd,\forall A,\ \forall\rho,\quad A\text{ is }\rho\text{-competitive from }C_0\ \Longrightarrow\ \rho\ge\alpha_d,∀A, ∀ρ,A is ρ-competitive from C0​ ⟹ ρ≥αd​, ∃A: A is αd-competitive from C0.\exists A:\ A\text{ is }\alpha_d\text{-competitive from }C_0.∃A: A is αd​-competitive from C0​.

The two claims are also milestones of their own (no_better_ratio, ratio_attained).

The phase LP (§5, pp. 565–566)

For free real π1,…,π2d−1\pi_1,\dots,\pi_{2d-1}π1​,…,π2d−1​ and real α\alphaα with

(πk)2d+∑i=1k(1−πi)≤αk  (1≤k<2d),2d+∑i=12d−1(1−πi)+12≤α⋅2d,(\pi_k)2d+\sum_{i=1}^k(1-\pi_i)\le\alpha k\ \ (1\le k<2d),\qquad 2d+\sum_{i=1}^{2d-1}(1-\pi_i)+\tfrac12\le\alpha\cdot2d,(πk​)2d+i=1∑k​(1−πi​)≤αk  (1≤k<2d),2d+i=1∑2d−1​(1−πi​)+21​≤α⋅2d,

one has α≥αd\alpha\ge\alpha_dα≥αd​ (lp_lower_bound); and πk=(αd−1)((2d/(2d−1))k−1)\pi_k=(\alpha_d-1)\big((2d/(2d-1))^k-1\big)πk​=(αd​−1)((2d/(2d−1))k−1), π2d=1\pi_{2d}=1π2d​=1 is nondecreasing from π1≥0\pi_1\ge0π1​≥0 to 111 and makes every constraint an equality (lp_attained).

The limit remark (§5, p. 566)

α1<α2<α3<⋯ ,lim⁡d→∞αd=ee−1\alpha_1<\alpha_2<\alpha_3<\cdots,\qquad \lim_{d\to\infty}\alpha_d=\frac{e}{e-1}α1​<α2​<α3​<⋯,d→∞lim​αd​=e−1e​

(ratio_increases_to_e_ratio).

Significance

The theorem gives an exact optimal randomized ratio for an infinite family of metric spaces. It shows that the optimal randomized two-server ratio is not a constant: it runs from 3/23/23/2 on the equilateral triangle to e/(e−1)≈1.582e/(e-1)\approx1.582e/(e−1)≈1.582 as the triangle becomes long and thin, where the problem resembles ski rental. With the deterministic ratio 222, it quantifies exactly how much randomization gains on these spaces.

The results are proved in the paper; none is formalized on Prove2Me, and no machine-checked proof of them is known. A formal proof would require the paper's phase framework (Theorems 1–3 and the appendix's Theorem 15) for server problems, which this mission does not state separately, and a concrete randomized algorithm as a measurable mixed strategy. Both would be reusable for Theorem 13 (the 3-4-5 triangle) and for other exact ratios on small metric spaces.

Difficulty

The phase LP milestones are finite real arithmetic. The difficulty is the passage between them and the goal. The lower bound must hold for every randomized algorithm, not only phase-based lazy ones: an arbitrary algorithm may condition on the whole history, move non-lazily, and randomize in ways that do not reduce to the probabilities πk\pi_kπk​. The paper handles this with Theorem 3, which says that the LP bound of phase-based algorithms bounds the competitive factor of all algorithms; its proof uses an averaging argument over histories that must be made rigorous. The upper bound needs a mixed strategy over infinitely many phases, with measurable costs, an explicit additive constant covering the first partial phase from an arbitrary initial configuration, and an accounting of CoptC_{opt}Copt​ across phase boundaries.

Formalization scope

The model is the platform's published KServer_model and KServer_randomized (reference items): labelled servers Fin 2 → M; a deterministic on-line algorithm as a map from request prefixes to configurations; a randomized algorithm as a probability measure over deterministic algorithms, with the cost of each fixed sequence measurable in the random outcome; expected cost as a lower Lebesgue integral in [0,∞][0,\infty][0,∞]; the off-line optimum as a real infimum over schedules from C0C_0C0​ (nonempty and bounded below by 000); and IsCompetitiveFrom A C₀ c with a real additive constant.

Committed conventions:

  • The triangle is any metric space whose points are exactly a,b,ca,b,ca,b,c at distances 1,d,d1,d,d1,d,d, with ddd a natural number and d≥1d\ge1d≥1. Every such space is isometric to the paper's triangle; at d=0d=0d=0 it would not be a triangle.
  • Both claims are stated for every initial configuration, including both servers on one point. The paper treats the initial state {a,b}\{a,b\}{a,b} separately and absorbs the first partial phase into the additive constant.
  • The lower bound quantifies over all randomized algorithms (deterministic ones are point masses), never over phase-based ones only.
  • In the LP milestones the πk\pi_kπk​ are free reals, as printed; no box 0≤πk≤10\le\pi_k\le10≤πk​≤1 is imposed.
  • "Grows" in the limit remark is read as strictly increasing.
  • The paper prints the recurrence on p. 565 as πk=α−1+(πk−1)2d−12d\pi_k=\frac{\alpha-1+(\pi_{k-1})2d-1}{2d}πk​=2dα−1+(πk−1​)2d−1​; the equations (∗)(*)(∗) give πk=α−1+2d πk−12d−1\pi_k=\frac{\alpha-1+2d\,\pi_{k-1}}{2d-1}πk​=2d−1α−1+2dπk−1​​. The recurrence is not used; the closed form printed on p. 566 is correct and is the one stated.

Without the measurability field of a randomized algorithm the lower integral would under-report expected cost and the attainment claim would become easier than the paper's; the published definition includes it. The lower bound is not vacuous: the triangle hypotheses are satisfiable for every d≥1d\ge1d≥1.

Welcome contributions: a formal version of the phase framework (Theorems 1–3, 15) for finite metric spaces, reusable across missions III and IV; a measurable construction of phase-based randomized algorithms; and proofs of the LP milestones.

Selected references

  • A. R. Karlin, M. S. Manasse, L. A. McGeoch, S. Owicki, Competitive Randomized Algorithms for Nonuniform Problems, Algorithmica 11 (1994) 542–571. https://doi.org/10.1007/BF01189993
  • M. S. Manasse, L. A. McGeoch, D. D. Sleator, Competitive Algorithms for Server Problems, J. Algorithms 11 (1990) 208–230. https://doi.org/10.1016/0196-6774(90)90003-W
  • H. Karloff, Y. Rabani, Y. Ravid, Lower Bounds for Randomized k-Server and Motion-Planning Algorithms, SIAM J. Comput. 23 (1994) 293–312. https://doi.org/10.1137/S0097539792224838
  • S. Bubeck, C. Coester, Y. Rabani, The Randomized k-Server Conjecture Is False!, STOC 2023. https://arxiv.org/abs/2211.05753
9 thms3 active usersReviewed
Algorithmic Game TheoryDynamical SystemsStochastic Systems·Captain: mikedeng1

On the Global Convergence of Stochastic Fictitious Play IV: Almost Sure Convergence in Supermodular Games with a Unique Rest PointResearch Paper

Motivation

Fictitious play is the oldest model of learning in games: each player repeatedly best-responds to the empirical frequencies of the opponents' past play. Stochastic fictitious play adds random payoff disturbances before each choice, so that players choose smoothed ("perturbed") best responses. It is a standard model in economics and in the study of learning in games (Fudenberg and Levine, 1998), and its long-run behavior is described through a deterministic mean dynamic, the perturbed best response dynamic, using stochastic approximation theory (Benaïm and Hirsch, 1999).

Supermodular games model strategic complementarities: the gain from moving to a higher strategy increases when opponents move to higher strategies. They arise in coordination, oligopoly and macroeconomic models (Milgrom and Roberts, 1990; Vives, 1990). Hofbauer and Sandholm (Econometrica 2002) show that in such games stochastic fictitious play converges almost surely whenever its mean dynamic has a unique rest point. This mission formalizes that result and the chain of lemmas behind it (Section 5 and the Appendix of the paper).

Timeline. Benaïm and Hirsch (1999) observed that supermodular games with exactly two strategies per player yield strongly monotone perturbed best response dynamics. Hofbauer and Sandholm (2002) extended this to any number of strategies by introducing stochastic dominance coordinates, and proved Theorem 6.1(iv). Benaïm (2000) supplied the low-dimensional convergence theorem used for the dimension ≤ 2 clause.

Setting

A ppp player normal form game gives player α\alphaα an ordered finite strategy set Sα={0,…,nα−1}S^\alpha = \{0,\dots,n^\alpha - 1\}Sα={0,…,nα−1} and a utility uαu^\alphauα on pure profiles. Σ=∏αΔSα\Sigma = \prod_\alpha \Delta S^\alphaΣ=∏α​ΔSα is the set of mixed profiles, and player α\alphaα's payoff vector is Uiα(x−α)=∑s: sα=iuα(s)∏β≠αxsββU^\alpha_i(x^{-\alpha}) = \sum_{s:\, s^\alpha = i} u^\alpha(s) \prod_{\beta \ne \alpha} x^\beta_{s^\beta}Uiα​(x−α)=∑s:sα=i​uα(s)∏β=α​xsββ​.

The game is strictly supermodular if for all distinct players α≠β\alpha \ne \betaα=β and all profiles s,s^s, \hat ss,s^ with sα>s^αs^\alpha > \hat s^\alphasα>s^α and s−α=s^−αs^{-\alpha} = \hat s^{-\alpha}s−α=s^−α, the difference uα(s)−uα(s^)u^\alpha(s) - u^\alpha(\hat s)uα(s)−uα(s^) is strictly increasing in sβ=s^βs^\beta = \hat s^\betasβ=s^β.

Each player α\alphaα has a shock density fαf^\alphafα on Rnα\mathbb R^{n^\alpha}Rnα, strictly positive, whose choice function Ciα(π)=P(argmax⁡jπj+εj=i)C^\alpha_i(\pi) = P(\operatorname{argmax}_j \pi_j + \varepsilon_j = i)Ciα​(π)=P(argmaxj​πj​+εj​=i) is continuously differentiable. The perturbed best response is B~α(x−α)=Cα(Uα(x−α))\tilde B^\alpha(x^{-\alpha}) = C^\alpha(U^\alpha(x^{-\alpha}))B~α(x−α)=Cα(Uα(x−α)), and the perturbed best response dynamic is

(P)x˙α=B~α(x−α)−xα.(\mathrm P)\qquad \dot x^\alpha = \tilde B^\alpha(x^{-\alpha}) - x^\alpha .(P)x˙α=B~α(x−α)−xα.

RP(P)RP(\mathrm P)RP(P) is its set of rest points in Σ\SigmaΣ and CR(P)CR(\mathrm P)CR(P) its chain recurrent set.

In standard stochastic fictitious play the shocks εtα\varepsilon^\alpha_tεtα​ have densities fαf^\alphafα and are independent over time and across players. From an arbitrary initial pure profile ζ1\zeta_1ζ1​, each player at time t+1t+1t+1 plays the pure strategy maximizing Ukα(Zt−α)+(εtα)kU^\alpha_k(Z_t^{-\alpha}) + (\varepsilon^\alpha_t)_kUkα​(Zt−α​)+(εtα​)k​, where Zt=1t∑u≤tζuZ_t = \frac1t \sum_{u \le t} \zeta_uZt​=t1​∑u≤t​ζu​ is the vector of empirical frequencies.

The stochastic dominance coordinates are (Tαxα)i=∑j>ixjα∈Rnα−1(T^\alpha x^\alpha)_i = \sum_{j > i} x^\alpha_j \in \mathbb R^{n^\alpha - 1}(Tαxα)i​=∑j>i​xjα​∈Rnα−1, the mass on strategies above iii; Tx≤TyT x \le T yTx≤Ty means each yαy^\alphayα stochastically dominates xαx^\alphaxα. In these coordinates (P) becomes a dynamic (T) on T(Σ)T(\Sigma)T(Σ).

Formalization targets

Goal: Theorem 6.1(iv), unique rest point clause

For a strictly supermodular game with p≥2p \ge 2p≥2 players and shock densities as above, if RP(P)={x∗}RP(\mathrm P) = \{x^*\}RP(P)={x∗} then

P(lim⁡t→∞Zt=x∗)=1,P\Big(\lim_{t\to\infty} Z_t = x^*\Big) = 1,P(t→∞lim​Zt​=x∗)=1,

on every probability space, for every independent shock family with the given densities and every initial profile.

Milestones

  • Lemma A.2, eq. (14), Lemma A.3 and eqs. (17)–(18): the order-theoretic and differential facts behind monotonicity.
  • Theorem 5.1: T−αy−α≥T−αx−α⇒TαB~α(y−α)≥TαB~α(x−α)T^{-\alpha} y^{-\alpha} \ge T^{-\alpha} x^{-\alpha} \Rightarrow T^\alpha \tilde B^\alpha(y^{-\alpha}) \ge T^\alpha \tilde B^\alpha(x^{-\alpha})T−αy−α≥T−αx−α⇒TαB~α(y−α)≥TαB~α(x−α).
  • Theorem 5.2: there are rest points x‾,xˉ\underline x, \bar xx​,xˉ with RP(P)⊆[x‾,xˉ]RP(\mathrm P) \subseteq [\underline x, \bar x]RP(P)⊆[x​,xˉ].
  • Proposition 5.3: (P) and (T) are linearly conjugate.
  • Theorem 5.4: (T) is cooperative and irreducible.
  • Corollary 5.5(i)–(ii): (P) is strongly monotone, and CR(P)⊆[x‾,xˉ]CR(\mathrm P) \subseteq [\underline x, \bar x]CR(P)⊆[x​,xˉ], so CR(P)={x∗}CR(\mathrm P) = \{x^*\}CR(P)={x∗} when the rest point is unique.

Significance

The result gives global almost-sure convergence of a stochastic learning process in a broad class of games with many strategies, where earlier results needed two strategies per player or specific payoff structures. It also shows which properties of the choice function matter: only eqs. (17)–(18), not the symmetry of its derivative used for potential and zero-sum games.

The paper's proof is complete but relies on outside results: stochastic approximation (Benaïm–Hirsch 1999, Benaïm 1999), monotone dynamical systems (Smith 1995), and the inclusion of the chain recurrent set in the global attractor (Robinson 1995). None of these, nor the Hofbauer–Sandholm theorem itself, is formalized in any proof assistant as far as known. The mission produces a machine-checked version of the theorem and of the Section 5 monotonicity theory.

Difficulty

The monotonicity lemmas are finite-dimensional calculus and summation by parts. The substantial steps are elsewhere. Strong monotonicity of a cooperative irreducible system (Corollary 5.5(i)) is a theorem of monotone dynamical systems that Mathlib does not have, and it must hold on the closed, non-open state space T(Σ)T(\Sigma)T(Σ). The step from the ODE to the random process needs the stochastic approximation theorem: the empirical frequencies are an asymptotic pseudotrajectory of (P), and their limit set is almost surely internally chain transitive. Knowing that x∗x^*x∗ is globally asymptotically stable for (P) does not by itself give almost-sure convergence of ZtZ_tZt​. The limit set of the random process must be related to the chain recurrent set of (P), which is where Corollary 5.5(ii) enters.

Formalization scope

Players are Fin p, strategies Fin (n α) (0-based, same order as the paper), with every nα≥1n^\alpha \ge 1nα≥1. Mixed profiles live in the ambient space ∏αRnα\prod_\alpha \mathbb R^{n^\alpha}∏α​Rnα with the sup norm. The fields of (P) and (T) are defined on the whole ambient space, so partial derivatives are ordinary Fréchet derivatives. Densities are [0,∞][0,\infty][0,∞]-valued. Solutions are forward solutions staying in the state space. The chain recurrent set quantifies over solutions, which are unique here because the fields are C1C^1C1. The process ZtZ_tZt​ is defined pathwise from the shocks, with ties in the argmax broken by the smallest index (a null event). Densities may differ across players.

A statement about the ODE (P), or about a single noise law such as logit, would be a different and much weaker theorem. The goal is about the random process ZtZ_tZt​, on every probability space carrying independent shocks with the given densities. Irreducibility and strong monotonicity additionally assume that two distinct players each have at least two strategies; when one player owns every stochastic dominance coordinate and has at least two of them, supermodularity holds vacuously while irreducibility fails.

A complete development needs: random utility choice functions and their derivatives; monotone and cooperative ODE theory on convex sets; the chain recurrent set and the global attractor; stochastic approximation for processes with step size 1/t1/t1/t. The last three are reusable well beyond this mission. Contributions to any milestone, and general-purpose lemmas on cooperative systems or stochastic approximation, are welcome.

Selected references

  • J. Hofbauer and W. H. Sandholm, On the Global Convergence of Stochastic Fictitious Play, Econometrica 70 (2002), 2265–2294. https://doi.org/10.1111/1468-0262.00376 (formalized from the authors' manuscript of February 21, 2002)
  • M. Benaïm and M. W. Hirsch, Mixed Equilibria and Dynamical Systems Arising from Repeated Games, Games and Economic Behavior 29 (1999), 36–72. https://doi.org/10.1006/game.1997.0636
  • M. Benaïm, Dynamics of Stochastic Approximation Algorithms, Séminaire de Probabilités XXXIII, Lecture Notes in Mathematics 1709, Springer (1999). https://doi.org/10.1007/BFb0096509
  • M. Benaïm, Convergence with Probability One of Stochastic Approximation Algorithms Whose Average is Cooperative, Nonlinearity 13 (2000), 601–616. https://doi.org/10.1088/0951-7715/13/3/305
  • H. L. Smith, Monotone Dynamical Systems, AMS Mathematical Surveys and Monographs 41 (1995). https://doi.org/10.1090/surv/041
  • P. Milgrom and J. Roberts, Rationalizability, Learning, and Equilibrium in Games with Strategic Complementarities, Econometrica 58 (1990), 1255–1277. https://doi.org/10.2307/2938316
  • D. Fudenberg and D. K. Levine, The Theory of Learning in Games, MIT Press (1998).
17 thms3 active usersReviewed
PreviousPage 3 of 22Next

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