Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Stochastic Systems

166 missions · 64 completed

The mathematics of systems that evolve under randomness, modeled as families of random variables indexed by time — from Markov chains and martingales to Brownian motion and stochastic differential equations. The field spans stochastic analysis, filtering and optimal control under uncertainty, ergodic behavior of random dynamics, and concentration of measure, with models reaching across physics, engineering, finance, and biology.

Missions

Open102Completed64All166
🏆Completed
AnalysisProbability·Captain: naimengye

Probability Theory and Examples V: Blumenthal's 0-1 Law and the Local Behaviour of Brownian PathsTextbook

Motivation

A Brownian path is continuous, and that is essentially all it is. It has no derivative anywhere, it crosses zero infinitely often in every interval (0,ϵ)(0,\epsilon)(0,ϵ), and it becomes positive and negative immediately after time zero. None of this is visible from the finite-dimensional distributions; it is a statement about the germ of the path at a point, and the tool that unlocks it is a zero-one law.

Chapter 7 of Rick Durrett's Probability: Theory and Examples (Version 5, 2019) develops that tool. The natural filtration Fs0=σ(Br:r≤s)\mathcal F^{0}_{s}=\sigma(B_r:r\le s)Fs0​=σ(Br​:r≤s) is enlarged to Fs+=⋂t>sFt0\mathcal F^{+}_{s}=\bigcap_{t>s}\mathcal F^{0}_{t}Fs+​=⋂t>s​Ft0​, which allows "an infinitesimal peek at the future" — a quantity like lim sup⁡t↓s(Bt−Bs)/f(t−s)\limsup_{t\downarrow s}(B_t-B_s)/f(t-s)limsupt↓s​(Bt​−Bs​)/f(t−s) is Fs+\mathcal F^{+}_{s}Fs+​-measurable but not Fs0\mathcal F^{0}_{s}Fs0​-measurable. Blumenthal's 0-1 law (Theorem 7.2.3) says that at s=0s=0s=0 this enlargement buys nothing probabilistically: the germ σ\sigmaσ-field F0+\mathcal F^{+}_{0}F0+​ is trivial.

Everything local follows. If the path had any chance of staying non-positive on some interval (0,ϵ)(0,\epsilon)(0,ϵ), that would be a germ event of probability at least 1/21/21/2 by symmetry, so it has probability one — and the path enters (0,∞)(0,\infty)(0,∞) immediately. Continuity then forces it to return to zero immediately as well. Combined with the time inversion Xt=tB(1/t)X_t=tB(1/t)Xt​=tB(1/t), which turns the germ at 000 into the tail at ∞\infty∞, the same law gives lim sup⁡t→∞Bt/t=∞\limsup_{t\to\infty}B_t/\sqrt t=\inftylimsupt→∞​Bt​/t​=∞ and the recurrence of one-dimensional Brownian motion.

Setting

Let (Ω,F,P)(\Omega,\mathcal F,\mathbb P)(Ω,F,P) be a probability space and B:R≥0→Ω→RB:\mathbb R_{\ge0}\to\Omega\to\mathbb RB:R≥0​→Ω→R a Brownian motion: its finite-dimensional laws are centred Gaussian with covariance cov⁡(Bs,Bt)=s∧t\operatorname{cov}(B_s,B_t)=s\wedge tcov(Bs​,Bt​)=s∧t, and almost every path is continuous. In particular B0=0B_0=0B0​=0 almost surely, so this is Durrett's P0\mathbb P_0P0​.

Three σ\sigmaσ-fields organize the chapter:

Ft0=σ(Bs:s≤t),F0+=⋂t>0Ft0,T=⋂t≥0σ(Bs:s≥t).\mathcal F^{0}_{t}=\sigma(B_s:s\le t),\qquad \mathcal F^{+}_{0}=\bigcap_{t>0}\mathcal F^{0}_{t},\qquad \mathcal T=\bigcap_{t\ge0}\sigma(B_s:s\ge t).Ft0​=σ(Bs​:s≤t),F0+​=t>0⋂​Ft0​,T=t≥0⋂​σ(Bs​:s≥t).

The first is the past, the second the germ at time zero, the third the tail at infinity.

A path fff is Lipschitz at the point sss with constant CCC when ∣f(t)−f(s)∣≤C∣t−s∣|f(t)-f(s)|\le C|t-s|∣f(t)−f(s)∣≤C∣t−s∣ for all ttt within some positive distance of sss. A path differentiable at sss is Lipschitz at sss, so failing this at every point and for every constant is a strong form of nowhere differentiability.

Formalization targets

Goal — Theorem 7.2.3, Blumenthal's 0-1 law

A∈F0+⟹P(A)∈{0,1}.A\in\mathcal F^{+}_{0}\quad\Longrightarrow\quad \mathbb P(A)\in\{0,1\}.A∈F0+​⟹P(A)∈{0,1}.

In words: the germ σ\sigmaσ-field is trivial. Nothing about the path in an arbitrarily short initial interval is genuinely random.

Supporting levels

Theorem 7.1.5, that Brownian paths are Hölder continuous of every exponent γ<1/2\gamma<1/2γ<1/2 on every bounded interval; Theorem 7.1.6, that with probability one they are not Lipschitz at any point, hence nowhere differentiable — the Paley–Wiener–Zygmund theorem in the proof of Dvoretsky, Erdős and Kakutani; Theorem 7.2.4, that the path enters (0,∞)(0,\infty)(0,∞) immediately; Theorem 7.2.5, that its zero set accumulates at 000; and Theorem 7.2.8, that lim sup⁡t→∞Bt/t=+∞\limsup_{t\to\infty}B_t/\sqrt t=+\inftylimsupt→∞​Bt​/t​=+∞ and lim inf⁡t→∞Bt/t=−∞\liminf_{t\to\infty}B_t/\sqrt t=-\inftyliminft→∞​Bt​/t​=−∞.

Significance

The results themselves. Blumenthal's law is the gateway to every local path property of Brownian motion, and Durrett uses it immediately for exactly that. Theorems 7.2.4 and 7.2.5 together say the path oscillates across zero infinitely often in every initial interval — the reason the zero set is an uncountable closed set of Lebesgue measure zero, and the reason the "first return to zero" is not a useful notion at time 000. Theorem 7.2.8 is the same law pushed to t→∞t\to\inftyt→∞ by time inversion, and it is what makes one-dimensional Brownian motion recurrent (Theorem 7.2.9).

The Hölder pair is the sharp description of path regularity. Exponent γ<1/2\gamma<1/2γ<1/2 always works, γ>1/2\gamma>1/2γ>1/2 never does, and the borderline 1/21/21/2 is subtle: P(t∈H1/2)=0\mathbb P(t\in H_{1/2})=0P(t∈H1/2​)=0 for each fixed ttt, but Davis (1983) showed P(H1/2≠∅)=1\mathbb P(H_{1/2}\ne\emptyset)=1P(H1/2​=∅)=1. Nowhere differentiability is the historical headline — Paley, Wiener and Zygmund (1933) — and the proof given here is a short covering argument rather than a series construction.

Formalizing them. Mathlib has the object but almost none of the theory. It defines IsPreBrownianReal and IsBrownianReal, proves that a centred Gaussian process with covariance s∧ts\wedge ts∧t is pre-Brownian, and supplies the invariances — negation, scaling t↦c−1/2B(ct)t\mapsto c^{-1/2}B(ct)t↦c−1/2B(ct), the shift t↦B(t0+t)−B(t0)t\mapsto B(t_0+t)-B(t_0)t↦B(t0​+t)−B(t0​), and the time inversion t↦tB(1/t)t\mapsto tB(1/t)t↦tB(1/t) — together with the weak Markov property IsPreBrownianReal.indepFun_shift. It does not have the germ or tail σ\sigmaσ-fields, Blumenthal's law, the strong Markov property, any path-regularity result, or the Kolmogorov–Chentsov continuity theorem: Probability/Process/Kolmogorov.lean defines IsKolmogorovProcess, the hypothesis, and stops there. So this mission supplies the σ\sigmaσ-fields and then everything Durrett proves with them.

Difficulty

The goal reduces to Durrett's Theorem 7.2.2, that E(Z∣Fs+)=E(Z∣Fs0)\mathbb E(Z\mid\mathcal F^{+}_{s})=\mathbb E(Z\mid\mathcal F^{0}_{s})E(Z∣Fs+​)=E(Z∣Fs0​) for bounded path-measurable ZZZ; at s=0s=0s=0, F00=σ(B0)\mathcal F^{0}_{0}=\sigma(B_0)F00​=σ(B0​) is trivial because B0=0B_0=0B0​=0 almost surely, so 1A=E(1A∣F0+)=P(A)\mathbf 1_A=\mathbb E(\mathbf 1_A\mid\mathcal F^{+}_{0})=\mathbb P(A)1A​=E(1A​∣F0+​)=P(A) almost surely, and an indicator almost surely equal to a constant forces that constant to be 000 or 111. Theorem 7.2.2 itself is a monotone class argument on top of the Markov property, and the Markov property in this setting is Mathlib's indepFun_shift plus the observation that the conditional expectation of a product ∏mfm(Btm)\prod_m f_m(B_{t_m})∏m​fm​(Btm​​) over Fs+\mathcal F^{+}_{s}Fs+​ lands in Fs0\mathcal F^{0}_{s}Fs0​. Assembling that is the work.

Theorem 7.2.4 is then three lines — P0(τ≤t)≥P0(Bt>0)=1/2\mathbb P_0(\tau\le t)\ge\mathbb P_0(B_t>0)=1/2P0​(τ≤t)≥P0​(Bt​>0)=1/2 by symmetry of the Gaussian, let t↓0t\downarrow0t↓0, apply the goal — provided the event has been shown to lie in the germ field, which is where continuity of paths enters. Theorem 7.2.5 follows from 7.2.4 applied to BBB and −B-B−B together with the intermediate value theorem.

Theorem 7.1.5 needs the Kolmogorov–Chentsov continuity theorem, which has to be built: from E∣Bt−Bs∣2m=Cm∣t−s∣m\mathbb E|B_t-B_s|^{2m}=C_m|t-s|^mE∣Bt​−Bs​∣2m=Cm​∣t−s∣m one gets Hölder-γ\gammaγ control for γ<(m−1)/2m\gamma<(m-1)/2mγ<(m−1)/2m, and m→∞m\to\inftym→∞ gives every γ<1/2\gamma<1/2γ<1/2. The dyadic chaining and Borel–Cantelli step is the substance, and it is worth building as a general theorem about IsKolmogorovProcess rather than only for Brownian motion.

Theorem 7.1.6 is self-contained and short: fix CCC, let AnA_nAn​ be the event that some s∈[0,1]s\in[0,1]s∈[0,1] has ∣Bt−Bs∣≤C∣t−s∣|B_t-B_s|\le C|t-s|∣Bt​−Bs​∣≤C∣t−s∣ whenever ∣t−s∣≤3/n|t-s|\le3/n∣t−s∣≤3/n, and bound P(An)≤n P(∣B1∣≤5Cn−1/2)3≤n{10Cn−1/2(2π)−1/2}3→0\mathbb P(A_n)\le n\,\mathbb P(|B_1|\le5Cn^{-1/2})^3\le n\{10Cn^{-1/2}(2\pi)^{-1/2}\}^3\to0P(An​)≤nP(∣B1​∣≤5Cn−1/2)3≤n{10Cn−1/2(2π)−1/2}3→0; since AnA_nAn​ increases, every P(An)=0\mathbb P(A_n)=0P(An​)=0.

Theorem 7.2.8 needs the tail 0-1 law, Theorem 7.2.7, which is the goal transported through the time inversion Xt=tB(1/t)X_t=tB(1/t)Xt​=tB(1/t) — Mathlib's IsPreBrownianReal.inv — because the tail field of BBB is the germ field of XXX. With that, P0(Bn/n≥K i.o.)≥P0(B1≥K)>0\mathbb P_0(B_n/\sqrt n\ge K\ \text{i.o.})\ge\mathbb P_0(B_1\ge K)>0P0​(Bn​/n​≥K i.o.)≥P0​(B1​≥K)>0 by scaling, so the probability is one, and KKK is arbitrary.

Formalization scope

The process is Mathlib's IsBrownianReal, indexed by ℝ≥0, on an abstract probability space — not the canonical path space C[0,∞)C[0,\infty)C[0,∞) that Durrett uses. This is why the shift operators θs\theta_sθs​ and the family {Px}\{\mathbb P_x\}{Px​} do not appear: there is one measure, the process starts at 000 almost surely, and each statement is about that process. Theorem 7.2.7 as Durrett states it quantifies over all starting points and has no direct analogue here; the tail 0-1 law for the process started at 000 does, and is listed under contributions as the route to Theorem 7.2.8.

The three σ\sigmaσ-fields are built as suprema and infima in the lattice of σ\sigmaσ-algebras on Ω\OmegaΩ: pastSigma B t is the supremum of the pullbacks of the Borel field along BsB_sBs​ for s≤ts\le ts≤t, and germSigma B, tailSigma B are the corresponding infima. The goal carries the hypothesis that each BtB_tBt​ is measurable, not merely almost-everywhere measurable, which is what IsPreBrownianReal gives and what puts these σ\sigmaσ-fields below the ambient one; the canonical construction satisfies it, and without it "P(A)\mathbb P(A)P(A)" for a germ event would be an outer measure.

Hölder continuity is stated locally — for almost every path, every TTT admits a constant — since global Hölder continuity on [0,∞)[0,\infty)[0,∞) is false. The order of quantifiers puts the null set first, so a single path works for every TTT at once.

The hitting statements avoid an infimum over a possibly empty set. "τ=0\tau=0τ=0 almost surely" is written as: almost surely, for every ϵ>0\epsilon>0ϵ>0 there is t∈(0,ϵ)t\in(0,\epsilon)t∈(0,ϵ) with Bt>0B_t>0Bt​>0; and "T0=0T_0=0T0​=0 almost surely" as the same with Bt=0B_t=0Bt​=0. These are equivalent to Durrett's statements and say what the infimum is there to say. Similarly Theorem 7.2.8 is written with ∃ᶠ … in atTop rather than as an extended-real lim sup⁡\limsuplimsup, which is what "lim sup⁡=+∞\limsup=+\inftylimsup=+∞" means and avoids a coercion.

LipschitzAtPoint f s C is "there is a scale δ>0\delta>0δ>0 on which ∣f(t)−f(s)∣≤C∣t−s∣|f(t)-f(s)|\le C|t-s|∣f(t)−f(s)∣≤C∣t−s∣". Its negation for every sss and every CCC is Theorem 7.1.6, and it has content in both directions: the identity path is Lipschitz at every point with C=1C=1C=1, while t↦tt\mapsto\sqrt tt↦t​ is not Lipschitz at 000 with C=1C=1C=1 — both checked in Lean before publishing.

Existence is not part of this mission. Mathlib proves nothing of the form "a Brownian motion exists", and nothing here needs it: every item takes a Brownian motion as a hypothesis. That the hypothesis is satisfiable is a theorem — Durrett's 7.1.1, via Kolmogorov extension and the continuity theorem — and it is listed under contributions, where it belongs, since building it is a project of its own.

Contributions welcome beyond the listed items: Kolmogorov–Chentsov as a general statement about IsKolmogorovProcess; Theorem 7.1.1, the existence of Brownian motion; Theorem 7.2.2 in full, for every sss; the tail 0-1 law and Theorem 7.2.9, recurrence; the strong Markov property and the reflection principle of section 7.3; and Exercise 7.1.5, that no path is Hölder of any exponent γ>1/2\gamma>1/2γ>1/2.

Selected references

  • Rick Durrett, Probability: Theory and Examples, Version 5 (11 January 2019), chapter 7, sections 7.1 and 7.2 (pp. 353–365); Theorems 7.1.5, 7.1.6, 7.2.3, 7.2.4, 7.2.5, 7.2.8. Published as the 5th edition, Cambridge University Press, 2019, DOI 10.1017/9781108591034
  • R. M. Blumenthal, An extended Markov property, Transactions of the American Mathematical Society 85 (1957), 52–72. DOI 10.1090/S0002-9947-1957-0088102-2
  • R. E. A. C. Paley, N. Wiener and A. Zygmund, Notes on random functions, Mathematische Zeitschrift 37 (1933), 647–668. DOI 10.1007/BF01474606
  • A. Dvoretzky, P. Erdős and S. Kakutani, Nonincrease everywhere of the Brownian motion process, Proceedings of the Fourth Berkeley Symposium II (1961), 103–116.
  • N. Wiener, Differential space, Journal of Mathematics and Physics 2 (1923), 131–174. DOI 10.1002/sapm192321131
  • I. Karatzas and S. E. Shreve, Brownian Motion and Stochastic Calculus, 2nd ed., Springer, 1991, chapter 2. DOI 10.1007/978-1-4612-0949-2
7 thms2 active usersReviewed
🏆Completed
Markov ChainProbability·Captain: naimengye

Probability Theory and Examples III: The Markov Chain Convergence TheoremTextbook

Motivation

A Markov chain forgets. Run it long enough and the distribution of its position stops depending on where it started — that is the intuition behind shuffling a deck, behind Markov chain Monte Carlo, behind PageRank, and behind the stationary analyses of every queueing model. Chapter 5 of Rick Durrett's Probability: Theory and Examples (Version 5, 2019) makes it a theorem, and identifies exactly what can go wrong.

Two things can. The chain may fail to reach parts of the state space, and the answer is irreducibility. Or it may reach them only on a lattice of times — a chain alternating between two halves of its state space never forgets whether the clock is even or odd — and the answer is aperiodicity. Theorem 5.6.6 says that is the complete list: an irreducible, aperiodic chain with a stationary distribution has pn(x,y)→π(y)p^n(x,y)\to\pi(y)pn(x,y)→π(y), for every pair of states, whatever the starting point.

Setting

Let SSS be a countable state space and p(x,y)p(x,y)p(x,y) a transition probability: non-negative, with each row summing to one. The nnn-step transition probabilities are the matrix powers, p0(x,y)=δxyp^0(x,y)=\delta_{xy}p0(x,y)=δxy​ and pn+1(x,y)=∑zp(x,z)pn(z,y)p^{n+1}(x,y)=\sum_z p(x,z)p^n(z,y)pn+1(x,y)=∑z​p(x,z)pn(z,y).

Hitting is described by the first-passage probabilities fn(x,y)=Px(Ty=n)f^n(x,y)=\mathbb{P}_x(T_y=n)fn(x,y)=Px​(Ty​=n), given by f1(x,y)=p(x,y)f^1(x,y)=p(x,y)f1(x,y)=p(x,y) and fn+1(x,y)=∑z≠yp(x,z)fn(z,y)f^{n+1}(x,y)=\sum_{z\ne y}p(x,z)f^n(z,y)fn+1(x,y)=∑z=y​p(x,z)fn(z,y) — the chain moves once and then reaches yyy for the first time, having avoided it meanwhile. Summing them gives

ρxy=Px(Ty<∞)=∑n≥1fn(x,y),EyTy=∑n≥1n fn(y,y).\rho_{xy}=\mathbb{P}_x(T_y<\infty)=\sum_{n\ge1}f^n(x,y),\qquad \mathbb{E}_yT_y=\sum_{n\ge1}n\,f^n(y,y).ρxy​=Px​(Ty​<∞)=n≥1∑​fn(x,y),Ey​Ty​=n≥1∑​nfn(y,y).

A state is recurrent when ρyy=1\rho_{yy}=1ρyy​=1, the chain is irreducible when ρxy>0\rho_{xy}>0ρxy​>0 for all x,yx,yx,y, and a state xxx is aperiodic when the greatest common divisor of Ix={n≥1:pn(x,x)>0}I_x=\{n\ge1:p^n(x,x)>0\}Ix​={n≥1:pn(x,x)>0} is 111. A stationary distribution is a probability vector π\piπ with ∑xπ(x)p(x,y)=π(y)\sum_x\pi(x)p(x,y)=\pi(y)∑x​π(x)p(x,y)=π(y).

Formalization targets

Goal — Theorem 5.6.6, the convergence theorem

p irreducible, aperiodic, with stationary distribution π⟹pn(x,y)⟶π(y)  for all x,y.p \text{ irreducible},\ \text{aperiodic},\ \text{with stationary distribution } \pi \quad\Longrightarrow\quad p^n(x,y)\longrightarrow\pi(y)\ \text{ for all } x,y .p irreducible, aperiodic, with stationary distribution π⟹pn(x,y)⟶π(y)  for all x,y.

The goal asserts pointwise convergence of the transition probabilities, not convergence in total variation and not a rate; those are strengthenings, and stating the weakest useful form is what keeps the theorem stable.

Supporting levels

Theorem 5.3.1, that a state is recurrent exactly when ∑npn(y,y)\sum_n p^n(y,y)∑n​pn(y,y) diverges — the bridge between the hitting picture and the matrix picture; Theorem 5.3.2, that recurrence is contagious; Theorem 5.5.10, that every state in the support of a stationary distribution is recurrent; and Theorem 5.5.11, that for an irreducible chain with a stationary distribution π(x)=1/ExTx\pi(x)=1/\mathbb{E}_xT_xπ(x)=1/Ex​Tx​.

Significance

The result itself. Theorem 5.6.6 is what licenses reading a stationary distribution as a long-run frequency. Without it, π\piπ is merely a fixed point of a linear map; with it, π(y)\pi(y)π(y) is the limiting probability of being at yyy, from any start. Theorem 5.5.11 then gives the quantity a second, purely local meaning — π(x)\pi(x)π(x) is the reciprocal of the mean return time to xxx — which is the identity behind every renewal-reward computation in applied probability and behind the "expected time between visits" estimates that Monte Carlo methods rely on. The two necessary hypotheses are sharp: a periodic chain has pn(x,y)p^n(x,y)pn(x,y) oscillating rather than converging, and Durrett's Theorem 5.7.2 gives the corrected statement in that case.

Formalizing it. Mathlib has no countable-state Markov chain theory. It has ProbabilityTheory.Kernel and an Irreducible notion for kernels, but nothing about recurrence, transience, first-passage decompositions, stationary measures or the convergence theorem, and nothing that specializes to a transition matrix on a countable set. The mission therefore contributes the whole apparatus of sections 5.3, 5.5 and 5.6 — the nnn-step and first-passage probabilities, ρxy\rho_{xy}ρxy​, the mean return time, recurrence, irreducibility, aperiodicity and stationarity — together with the results that make it usable.

Difficulty

The usual proof of the goal is a coupling argument, and it is short but not obvious: run two independent copies of the chain, one from xxx and one from π\piπ, on the product space S×SS\times SS×S with transition probability pˉ((x1,x2),(y1,y2))=p(x1,y1)p(x2,y2)\bar p((x_1,x_2),(y_1,y_2))=p(x_1,y_1)p(x_2,y_2)pˉ​((x1​,x2​),(y1​,y2​))=p(x1​,y1​)p(x2​,y2​); aperiodicity plus irreducibility make the product chain irreducible, π×π\pi\times\piπ×π is stationary for it, so it is recurrent and the two copies meet almost surely; after they meet they can be exchanged. Each step of that is a separate obligation, and the one that consumes aperiodicity is the irreducibility of the product chain — for a periodic chain it fails, which is exactly why the theorem does.

The number-theoretic ingredient is worth flagging: irreducibility of the product needs that Ix={n:pn(x,x)>0}I_x=\{n:p^n(x,x)>0\}Ix​={n:pn(x,x)>0}, being closed under addition with gcd⁡1\gcd 1gcd1, contains every sufficiently large integer. That is the numerical semigroup fact, and it is where aperiodicity is actually used.

Formalization scope

The state space is any countable type with decidable equality, and the transition probability is a plain function S×S→RS\times S\to\mathbb{R}S×S→R constrained by IsTransition: non-negative entries, summable rows, rows summing to one. Sums over the state space are unconditional sums, so no finiteness is assumed anywhere.

The chain's law is not constructed. Every quantity here — pnp^npn, fnf^nfn, ρxy\rho_{xy}ρxy​, EyTy\mathbb{E}_yT_yEy​Ty​ — is defined by an explicit recursion on the transition matrix, not as an expectation against a measure on path space. This is a deliberate choice: building the path measure is a substantial project of its own, and none of the statements in these sections need it. The recursions are the standard ones and they are the definitions the book's own computations use. The cost is that probabilistic statements about paths, such as Theorem 5.6.1 on the almost-sure limit of the visit counts Nn(y)/nN_n(y)/nNn​(y)/n, cannot be phrased in this language and are not part of the mission.

Conventions: p0p^0p0 is the identity matrix; fnf^nfn vanishes at n=0n=0n=0; ρxy\rho_{xy}ρxy​ and EyTy\mathbb{E}_yT_yEy​Ty​ are unconditional sums over n≥1n\ge1n≥1, so an infinite mean return time appears as a non-summable series rather than as an extended real. Theorem 5.5.11 is therefore stated as summability together with π(x)⋅ExTx=1\pi(x)\cdot\mathbb{E}_xT_x=1π(x)⋅Ex​Tx​=1, which asserts finiteness of the mean return time rather than silently relying on a division convention.

Aperiodicity is "the only natural number dividing every element of IxI_xIx​ is 111", which is gcd⁡Ix=1\gcd I_x=1gcdIx​=1 written without needing a gcd of a set; it is false when IxI_xIx​ is empty, which is correct, since the period of such a state is undefined.

The goal is not vacuous: the hypotheses are satisfiable by any strictly positive transition matrix on a finite set.

Contributions welcome beyond the listed items: Theorem 5.3.3 on finite closed sets; the decomposition theorem 5.3.5; existence of a stationary measure from a recurrent state (5.5.7) and its uniqueness (5.5.9); the equivalence of positive recurrence and the existence of a stationary distribution (5.5.12); Theorem 5.7.2 for the periodic case; and the path-level results of section 5.6, which need the chain's law on path space.

Selected references

  • Rick Durrett, Probability: Theory and Examples, Version 5 (11 January 2019), chapter 5, sections 5.3, 5.5 and 5.6 (pp. 281–320); Theorems 5.3.1, 5.3.2, 5.5.10, 5.5.11, 5.6.6. Published as the 5th edition, Cambridge University Press, 2019, DOI 10.1017/9781108591034
  • J. R. Norris, Markov Chains, Cambridge University Press, 1998, chapter 1. DOI 10.1017/CBO9780511810633
  • D. A. Levin and Y. Peres, Markov Chains and Mixing Times, 2nd ed., American Mathematical Society, 2017. DOI 10.1090/mbk/107
  • W. Doeblin, Exposé de la théorie des chaînes simples constantes de Markoff à un nombre fini d'états, Revue Mathématique de l'Union Interbalkanique 2 (1938), 77–105.
6 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: naimengye

Stochastic Networks VIII: Flow Level Models and the Stability of alpha-Fair AllocationsTextbook

Motivation

Chapter 7 of Frank Kelly and Elena Yudovina's Stochastic Networks (Cambridge University Press, 2014) studies a network with a fixed set of users, and shows that a decentralized rate control converges to a fair allocation. Chapter 8 asks the question one time scale up. Files finish and their flows leave; new files arrive and new flows appear. The number of flows on each route is therefore itself a random process, and the rate allocation — assumed to settle instantly, since rate control runs much faster than files arrive and depart — depends on it.

The question is whether this system is stable: does the number of flows in progress stay bounded, or does it grow without limit? The answer is the best one could hope for. A weighted α\alphaα-fair allocation, the family that contains proportional fairness, TCP fairness, max-min fairness and throughput maximization as special cases, is stable exactly when the offered load at each resource is below that resource's capacity. No more is required — no condition coupling different resources, no dependence on α\alphaα, no dependence on the topology beyond the loads themselves.

Setting

A network has JJJ resources and RRR routes with incidence matrix AAA. Let nrn_rnr​ be the number of flows active on route rrr and xrx_rxr​ the rate given to each of them, so route rrr consumes nrxrn_rx_rnr​xr​ at each resource it uses. Flows arrive on route rrr as a Poisson process of rate νr\nu_rνr​ and carry files that are exponentially distributed with parameter μr\mu_rμr​, so

nr→nr+1 at rate νr,nr→nr−1 at rate μrnrxr(n),n_r\to n_r+1 \text{ at rate } \nu_r, \qquad n_r\to n_r-1 \text{ at rate } \mu_rn_rx_r(n),nr​→nr​+1 at rate νr​,nr​→nr​−1 at rate μr​nr​xr​(n),

and ρr=νr/μr\rho_r=\nu_r/\mu_rρr​=νr​/μr​ is the load on route rrr.

Given weights wr>0w_r>0wr​>0 and α∈(0,∞)\alpha\in(0,\infty)α∈(0,∞), the weighted α\alphaα-fair allocation is the solution of

maximize ∑rwrnrxr1−α1−αsubject to ∑r:j∈rnrxr≤Cj, x≥0,(8.1)\text{maximize } \sum_r w_rn_r\frac{x_r^{1-\alpha}}{1-\alpha} \quad\text{subject to } \sum_{r:j\in r}n_rx_r\le C_j,\ x\ge0, \tag{8.1}maximize r∑​wr​nr​1−αxr1−α​​subject to r:j∈r∑​nr​xr​≤Cj​, x≥0,(8.1)

with ∑rwrnrlog⁡xr\sum_r w_rn_r\log x_r∑r​wr​nr​logxr​ in place of the objective when α=1\alpha=1α=1. Written in the aggregate rates Xr=nrxrX_r=n_rx_rXr​=nr​xr​ this becomes

maximize G(X)=∑rwrnrαXr1−α1−αsubject to ∑r:j∈rXr≤Cj, X≥0.(8.4)\text{maximize } G(X)=\sum_r w_rn_r^{\alpha}\frac{X_r^{1-\alpha}}{1-\alpha} \quad\text{subject to } \sum_{r:j\in r}X_r\le C_j,\ X\ge0. \tag{8.4}maximize G(X)=r∑​wr​nrα​1−αXr1−α​​subject to r:j∈r∑​Xr​≤Cj​, X≥0.(8.4)

The family interpolates between the fairness notions of Chapter 7: α→0\alpha\to0α→0 with w≡1w\equiv1w≡1 maximizes throughput, α=1\alpha=1α=1 is weighted proportional fairness, α=2\alpha=2α=2 with wr=1/Tr2w_r=1/T_r^2wr​=1/Tr2​ is TCP fairness, and α→∞\alpha\to\inftyα→∞ with w≡1w\equiv1w≡1 approaches max-min fairness.

Formalization targets

Goal — the drift inequality behind Theorem 8.2

Suppose the load respects every capacity, ∑r:j∈rρr<Cj\sum_{r:j\in r}\rho_r<C_j∑r:j∈r​ρr​<Cj​ for all jjj. Then there is an ϵ>0\epsilon>0ϵ>0, depending only on the loads and capacities, such that for every flow count nnn and the α\alphaα-fair aggregate rates X=X(n)X=X(n)X=X(n),

∑rwrρr−αnrα(ρr−Xr)  ≤  −ϵ∑rwrnrαρr1−α.\sum_r w_r\rho_r^{-\alpha}n_r^{\alpha}\bigl(\rho_r-X_r\bigr) \;\le\;-\epsilon\sum_r w_rn_r^{\alpha}\rho_r^{1-\alpha}.r∑​wr​ρr−α​nrα​(ρr​−Xr​)≤−ϵr∑​wr​nrα​ρr1−α​.

The left-hand side is the drift of the Lyapunov function L(n)=∑r(wr/μr)ρr−αnrα+1/(α+1)L(n)=\sum_r(w_r/\mu_r)\rho_r^{-\alpha}n_r^{\alpha+1}/(\alpha+1)L(n)=∑r​(wr​/μr​)ρr−α​nrα+1​/(α+1), by the identity (8.3); the right-hand side is the book's displayed bound. The single ϵ\epsilonϵ is uniform in nnn, which is what a Foster–Lyapunov argument needs, and it is the whole deterministic content of Theorem 8.2's sufficiency half.

Supporting levels

The derivative wrnrαXr−αw_rn_r^{\alpha}X_r^{-\alpha}wr​nrα​Xr−α​ of the objective, in the same form for every α∈(0,∞)\alpha\in(0,\infty)α∈(0,∞) including α=1\alpha=1α=1 (Exercise 8.3); strict concavity of the objective; the characterization of the optimum by xr=(wr/∑j∈rpj)1/αx_r=(w_r/\sum_{j\in r}p_j)^{1/\alpha}xr​=(wr​/∑j∈r​pj​)1/α with primal and dual feasibility and complementary slackness (Exercise 8.4); the tangent-plane inequality (8.5) that concavity gives at the optimum; the drift identity (8.3); and that α=1\alpha=1α=1 recovers weighted proportional fairness, connecting this chapter to Proposition 7.4 of mission VII.

Significance

The result itself. Theorem 8.2 says the stability region of an α\alphaα-fair network is the largest it could possibly be — the same region a single isolated resource would have — and that it does not shrink as α\alphaα varies. That is a strong statement about a large design space, and it is not automatic: section 8.4 of the book exhibits rate allocation schemes for which it fails, so the natural condition (8.2) is a property of α\alphaα-fairness and not of rate allocation in general. Since the family covers the fairness notions actually implemented in transport protocols, the theorem is what licenses treating "is the load below capacity?" as the only capacity-planning question at flow level.

Formalizing it. Nothing here is open; the theorem is due to Bonald and Massoulié (2001), with the fluid-limit machinery from Gromoll and Williams and from Massoulié. What the mission produces is a machine-checked α\alphaα-fair allocation — objective, derivative, concavity, KKT conditions — and the exact drift inequality, on top of the congestion-control layer published in mission VII of this series, whose networkFeasible and linkFlow it reuses. Mathlib has no network utility maximization and no fairness criteria.

Difficulty

The proof is short but the step that makes it work is easy to miss. The drift is ∑rwrnrαρr−α(ρr−Xr)\sum_r w_rn_r^{\alpha}\rho_r^{-\alpha}(\rho_r-X_r)∑r​wr​nrα​ρr−α​(ρr​−Xr​), and there is no reason for this to be negative term by term — some routes are over-served and some under-served. What makes the sum negative is that ρ\rhoρ is itself a feasible point of the same optimization problem (8.4) that XXX solves, and GGG is concave, so the tangent plane at ρ\rhoρ lies above GGG:

G′(U)⋅(U−X)≤G(U)−G(X)≤0for every feasible U.G'(U)\cdot(U-X)\le G(U)-G(X)\le0 \quad\text{for every feasible } U .G′(U)⋅(U−X)≤G(U)−G(X)≤0for every feasible U.

Since G′(U)r=wrnrαUr−αG'(U)_r=w_rn_r^{\alpha}U_r^{-\alpha}G′(U)r​=wr​nrα​Ur−α​, taking U=ρU=\rhoU=ρ gives the drift ≤0\le0≤0 immediately. Strict negativity comes from taking U=(1+ϵ)ρU=(1+\epsilon)\rhoU=(1+ϵ)ρ instead, which is still feasible because (8.2) is a strict inequality, and then dividing through by (1+ϵ)α(1+\epsilon)^{\alpha}(1+ϵ)α. The whole argument is one application of concavity at a cleverly chosen point, and the choice of that point is the content.

The scaling that makes it uniform in nnn is the other thing to notice: ϵ\epsilonϵ depends only on how much slack (8.2) leaves, not on nnn, because nnn enters G′G'G′ only through the common factor nrαn_r^{\alpha}nrα​ that appears on both sides.

Formalization scope

Resources and routes are indexed by finite types, the incidence matrix is real-valued with entries 000 or 111, and the feasible set is mission VII's networkFeasible, so Chapters 7 and 8 agree on what a feasible flow vector is. The objective is stated in the aggregate variables Xr=nrxrX_r=n_rx_rXr​=nr​xr​ of problem (8.4) rather than the per-flow rates of (8.1): they are equivalent, but (8.4) is the form the drift argument uses and the form in which the feasible set does not depend on nnn.

The objective is defined with an explicit case split at α=1\alpha=1α=1, exactly as the book defines it, and the derivative milestone asserts that the resulting derivative has the same form wrnrαXr−αw_rn_r^{\alpha}X_r^{-\alpha}wr​nrα​Xr−α​ in both cases — which is the point of Exercise 8.3. Powers are real exponents, so positivity of the flow counts, weights, loads and rates is hypothesised wherever a power appears.

What is formalized and what is quoted. Theorem 8.2 is a statement about positive recurrence of a Markov process, proved by a Foster–Lyapunov criterion whose remaining hypotheses the book leaves to Exercises 8.6 and D.2. There is no theory of continuous-time Markov chains on a countable state space in Mathlib to state positive recurrence against, so this mission formalizes the deterministic drift inequality that carries the argument and quotes the probabilistic wrapper. The inequality is exactly the one the book displays, including the ϵ\epsilonϵ, and the necessity half — that the process is unstable when (8.2) fails — is a coupling argument and is quoted too.

The goal is not vacuous: the hypotheses are satisfiable, and for a single resource of capacity CCC the α\alphaα-fair optimum is Xr=Cwr1/αnr/∑sws1/αnsX_r=Cw_r^{1/\alpha}n_r/\sum_sw_s^{1/\alpha}n_sXr​=Cwr1/α​nr​/∑s​ws1/α​ns​, for which the inequality holds with ϵ=C/∑rρr−1\epsilon=C/\sum_r\rho_r-1ϵ=C/∑r​ρr​−1 and strictly positive slack.

Contributions welcome beyond the listed items: the single-resource equilibrium distribution of Exercise 8.1 and the geometric law of the total number of flows; the bounded-drift estimate of Exercise 8.6; the necessity half of Theorem 8.2; the limiting cases α→0\alpha\to0α→0 and α→∞\alpha\to\inftyα→∞; and the instability examples of section 8.4.

Selected references

  • Frank Kelly and Elena Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 8 (pp. 186–199); problem (8.1), Theorem 8.2, equations (8.2)–(8.5). DOI 10.1017/cbo9781139565363
  • T. Bonald and L. Massoulié, Impact of fairness on Internet performance, ACM SIGMETRICS Performance Evaluation Review 29 (2001), 82–91. DOI 10.1145/384268.378433
  • J. Mo and J. Walrand, Fair end-to-end window-based congestion control, IEEE/ACM Transactions on Networking 8 (2000), 556–567. DOI 10.1109/90.879343
  • L. Massoulié, Structural properties of proportional fairness: stability and insensitivity, Annals of Applied Probability 17 (2007), 809–839. DOI 10.1214/105051607000000014
  • H. C. Gromoll and R. J. Williams, Fluid limits for networks with bandwidth sharing and general document size distributions, Annals of Applied Probability 19 (2009), 243–280. DOI 10.1214/08-AAP541
10 thms2 active usersReviewed
🏆Completed
Operations ResearchProbability·Captain: naimengye

Stochastic Networks V: Random Access and the Critical Rate of Backoff SchemesTextbook

Motivation

When many stations share one broadcast channel, something has to decide who transmits. A token passed around the stations works when there are few of them and none is silent for long, but it scales badly and breaks if the token is lost. The alternative is to let stations transmit whenever they like and use randomness to recover from the resulting collisions. That is the design of ALOHA, built in the 1970s to connect terminals across the Hawaiian islands, and of Ethernet, and of essentially every contention-based access protocol since.

Chapter 5 of Frank Kelly and Elena Yudovina's Stochastic Networks (Cambridge University Press, 2014) asks what such protocols can achieve, and the answers are largely negative. ALOHA with a fixed retransmission probability jams: with probability one there is a finite random time after which every slot contains a collision and no packet ever succeeds again, for every positive arrival rate. Ethernet's binary exponential backoff does better, but only just: it has a positive critical arrival rate, above which only finitely many packets are ever transmitted, and it is still not positive recurrent at rates where it does transmit infinitely many. The chapter's general statement is the one this mission targets: any backoff slower than exponential jams at every positive arrival rate.

Setting

Time is slotted, and a transmission attempt occupies exactly one slot. New packets arrive in a Poisson stream of rate ν\nuν, so the number arriving in a slot is Poisson with mean ν\nuν. A slot in which exactly one station transmits carries its packet successfully; a slot in which two or more transmit is a collision and carries nothing.

In an acknowledgement-based scheme a station learns nothing about the channel except whether its own transmissions succeeded. A packet arriving in slot ttt attempts transmission in slots t+x0,t+x1,…t+x_0, t+x_1, \dotst+x0​,t+x1​,… with 1=x0<x1<⋯1 = x_0 < x_1 < \cdots1=x0​<x1​<⋯, the sequence chosen independently for each packet, and

h(x)=P(x∈X),h(1)=1h(x) = \mathbb{P}(x \in X), \qquad h(1) = 1h(x)=P(x∈X),h(1)=1

is the retransmission function. For ALOHA, h(x)=fh(x) = fh(x)=f for every x>1x > 1x>1; for Ethernet's binary exponential backoff, ∑r≤th(r)∼log⁡2t\sum_{r \le t} h(r) \sim \log_2 t∑r≤t​h(r)∼log2​t.

Now imagine the channel externally jammed from time 000, so that every retransmission actually occurs. The attempts in slot ttt are then Poisson with mean ν∑r=1th(r)\nu\sum_{r=1}^{t}h(r)ν∑r=1t​h(r), and the probability that fewer than two attempts are made in slot ttt is

Pt=(1+ν∑r=1th(r))exp⁡(−ν∑r=1th(r)).P_t=\Bigl(1+\nu\sum_{r=1}^{t}h(r)\Bigr)\exp\Bigl(-\nu\sum_{r=1}^{t}h(r)\Bigr).Pt​=(1+νr=1∑t​h(r))exp(−νr=1∑t​h(r)).

The expected number of such slots is H(ν)=∑t≥1PtH(\nu)=\sum_{t\ge1}P_tH(ν)=∑t≥1​Pt​, which is decreasing in ν\nuν, and the critical rate is

νc=inf⁡{ν:H(ν)<∞}.\nu_c=\inf\{\nu : H(\nu)<\infty\}.νc​=inf{ν:H(ν)<∞}.

Theorem 5.11 of the book says νc\nu_cνc​ deserves its name: below it infinitely many packets are transmitted with probability one, above it only finitely many.

Formalization targets

Goal — condition (5.7): slower-than-exponential backoff has νc=0\nu_c=0νc​=0

1log⁡t∑x=1th(x)⟶∞⟹H(ν)=∑t≥1Pt<∞  for every ν>0.\frac{1}{\log t}\sum_{x=1}^{t}h(x)\longrightarrow\infty \quad\Longrightarrow\quad H(\nu)=\sum_{t\ge1}P_t<\infty \ \text{ for every } \nu>0 .logt1​x=1∑t​h(x)⟶∞⟹H(ν)=t≥1∑​Pt​<∞  for every ν>0.

Since H(ν)<∞H(\nu)<\inftyH(ν)<∞ for every positive ν\nuν, the critical rate is νc=0\nu_c=0νc​=0, and by Theorem 5.11 the expected number of successful transmissions is finite at every positive arrival rate. The goal fixes no constant and no rate: it says only that the dividing line between "jams always" and "has a positive capacity" sits at logarithmic growth of ∑x≤th(x)\sum_{x\le t}h(x)∑x≤t​h(x), which is exponential growth of the backoff.

Supporting levels

The ALOHA drift calculation of section 5.1 and its consequence that the drift is positive once the backlog is large enough; the summability ∑np(n)<∞\sum_n p(n)<\infty∑n​p(n)<∞ that combines with Borel–Cantelli to give Proposition 5.3; the monotonicity of PtP_tPt​ in ν\nuν; the opposite extreme, that a scheme with ∑xh(x)<∞\sum_x h(x)<\infty∑x​h(x)<∞ — one that gives up on a packet after finitely many attempts — has νc=∞\nu_c=\inftyνc​=∞; that ALOHA's own retransmission function satisfies condition (5.7); and the bound of Remark 5.14, that a positive recurrent acknowledgement-based scheme needs ν≤e−ν\nu\le e^{-\nu}ν≤e−ν and hence ν<0.5672\nu<0.5672ν<0.5672, which is strictly below Ethernet's νc=log⁡2\nu_c=\log 2νc​=log2.

Significance

The result itself. Condition (5.7) is the chapter's structural statement about random access, and it is a sharp one. Any retransmission rule under which a packet keeps trying at a rate that does not decay fast enough — a fixed probability, a polynomially growing backoff, anything short of exponential — has critical rate zero: the channel jams at every positive load. Exponential backoff is not a tuning choice, it is the minimum that makes the protocol work at all, and the log⁡b\log blogb formula for a backoff by factor bbb (Exercise 5.7) then says how much capacity each choice of bbb buys. The gap recorded in Remark 5.14 is the other half of the picture: even above the threshold, "infinitely many packets get through" is much weaker than "the backlog is stable", and between 0.5670.5670.567 and log⁡2≈0.693\log 2 \approx 0.693log2≈0.693 Ethernet does the first and provably not the second.

Formalizing it. None of this is open; the analysis is due to Kelly and MacPhee (1987) and Aldous (1987). What the mission contributes is a machine-checked account of the analytic core: the definitions of PtP_tPt​, H(ν)H(\nu)H(ν) and νc\nu_cνc​, the two extremes of the classification, and the ALOHA calculations. Mathlib has no protocol analysis and nothing about random access channels.

Difficulty

The obstacle is a modelling one and it is worth stating plainly rather than discovering halfway through. The chapter's headline results — Proposition 5.3 that ALOHA jams almost surely, Theorem 5.11 that νc\nu_cνc​ is the critical rate, Theorem 5.15 that geometric Ethernet is transient — are statements about sample paths of a Markov chain built on a Poisson arrival stream, and their proofs are coupling arguments comparing a system started empty with one started with a backlog. Nothing in Mathlib supports that construction, and building it is a research-scale project rather than a chapter. This mission therefore formalizes the analytic half and quotes the probabilistic half, which is the same division the book itself makes when it computes νc\nu_cνc​ for a scheme: Theorem 5.11 is proved once, and every subsequent statement about a protocol is a convergence question about ∑tPt\sum_t P_t∑t​Pt​.

Within that analytic half the difficulty is real but ordinary. The summand PtP_tPt​ is a product of a factor growing with ∑r≤th(r)\sum_{r\le t}h(r)∑r≤t​h(r) and one decaying exponentially in it, so the growth hypothesis has to be turned into a summable bound without assuming any regularity of hhh beyond non-negativity — in particular ∑r≤th(r)\sum_{r\le t}h(r)∑r≤t​h(r) need not be eventually monotone in any useful quantitative sense, only divergent faster than log⁡t\log tlogt.

Formalization scope

The retransmission function is any non-negative real sequence; the normalization h(1)=1h(1)=1h(1)=1 is not imposed, since none of the statements need it and imposing it would exclude the comparison schemes. PtP_tPt​ and the partial sums are real-valued, and "H(ν)<∞H(\nu)<\inftyH(ν)<∞" is stated as summability of the sequence rather than as a bound on an extended-real sum, so convergence is asserted rather than assumed. The goal is stated for each fixed ν>0\nu>0ν>0 separately, which is what makes νc=0\nu_c=0νc​=0; it is not stated as a claim about the infimum, because the infimum of the set {ν:H(ν)<∞}\{\nu : H(\nu)<\infty\}{ν:H(ν)<∞} adds nothing once the set is known to be all of (0,∞)(0,\infty)(0,∞).

The growth hypothesis is the book's condition (5.7) verbatim: (log⁡t)−1∑x≤th(x)→∞\bigl(\log t\bigr)^{-1}\sum_{x\le t}h(x)\to\infty(logt)−1∑x≤t​h(x)→∞. Note that at t=0t=0t=0 and t=1t=1t=1 the quotient involves log⁡t≤0\log t \le 0logt≤0 and is not meaningful; divergence to infinity is an eventual statement, so this costs nothing, but it is why the hypothesis is a limit rather than a pointwise bound.

The mission is not vacuous in either direction: the ALOHA milestone exhibits a retransmission function satisfying the hypothesis, and the ∑xh(x)<∞\sum_x h(x)<\infty∑x​h(x)<∞ milestone exhibits one that fails it as strongly as possible, with H(ν)=∞H(\nu)=\inftyH(ν)=∞ for every ν\nuν.

Contributions welcome beyond the listed items: Ethernet's ∑r≤th(r)∼log⁡2t\sum_{r\le t}h(r)\sim\log_2 t∑r≤t​h(r)∼log2​t and the resulting νc=log⁡2\nu_c=\log 2νc​=log2; the generalization νc=log⁡b\nu_c=\log bνc​=logb of Exercise 5.7; the scheme h(x)=1/(xlog⁡x)h(x)=1/(x\log x)h(x)=1/(xlogx) with νc=∞\nu_c=\inftyνc​=∞; the continuous-time halving νc=12log⁡b\nu_c=\frac12\log bνc​=21​logb of Kelly and MacPhee; and, for anyone willing to build the probabilistic layer, Proposition 5.3 and Theorem 5.11 themselves.

Selected references

  • Frank Kelly and Elena Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 5 (pp. 108–132); Definition 5.1, Proposition 5.3, Theorems 5.11 and 5.15, condition (5.7), Examples 5.8, 5.12 and 5.13, Remark 5.14. DOI 10.1017/cbo9781139565363
  • N. Abramson, The ALOHA system — another alternative for computer communications, AFIPS Conference Proceedings 37 (1970), 281–285. DOI 10.1145/1478462.1478502
  • F. P. Kelly and I. M. MacPhee, The number of packets transmitted by collision detect random access schemes, Annals of Probability 15 (1987), 1557–1568. DOI 10.1214/aop/1176991992
  • D. J. Aldous, Ultimate instability of exponential back-off protocol for acknowledgement-based transmission control of random access communication channels, IEEE Transactions on Information Theory 33 (1987), 219–223. DOI 10.1109/TIT.1987.1057295
  • R. M. Metcalfe and D. R. Boggs, Ethernet: distributed packet switching for local computer networks, Communications of the ACM 19 (1976), 395–404. DOI 10.1145/360248.360253
8 thms2 active usersReviewed
🏆Completed
Markov ChainOperations Research·Captain: naimengye

Stochastic Networks II: Migration Processes and Product FormTextbook

Motivation

A queueing network is a collection of service stations through which customers — jobs, packets, telephone calls, patients — move one at a time. The state of such a network is a vector of occupancy counts, one per station, and the number of states grows exponentially in the number of stations, so solving the equilibrium equations directly is hopeless for any network worth modelling. The product form is what rescues the subject: for a large and identifiable class of networks the equilibrium distribution factorizes into one term per station, as if the stations were independent, and a network of JJJ stations costs JJJ one-dimensional calculations instead of one exponentially large one.

Chapter 2 of Frank Kelly and Elena Yudovina's Stochastic Networks (Cambridge University Press, 2014) establishes this for migration processes, the Markov model in which individuals move between colonies one at a time at a rate that factorizes as λjkφj(nj)\lambda_{jk}\varphi_j(n_j)λjk​φj​(nj​): a part depending only on the two colonies and a part depending only on the occupancy of the source. The class covers single-server and sss-server queues, infinite-server queues, and networks of them, open or closed.

Setting

There are JJJ colonies, and a state is a vector n=(n1,…,nJ)n = (n_1,\dots,n_J)n=(n1​,…,nJ​) of non-negative integers, njn_jnj​ being the number of individuals in colony jjj. Three operators move one individual:

Tjkn  moves one from j to k,Tj→n  removes one from j,T→kn  adds one to k.T^{jk}n \ \text{ moves one from } j \text{ to } k, \qquad T^{j\to}n \ \text{ removes one from } j, \qquad T^{\to k}n \ \text{ adds one to } k .Tjkn  moves one from j to k,Tj→n  removes one from j,T→kn  adds one to k.

An open migration process is the Markov process on Z+J\mathbb{Z}_+^JZ+J​ with transition rates

q(n,Tjkn)=λjkφj(nj),q(n,Tj→n)=μjφj(nj),q(n,T→kn)=νk,q(n, T^{jk}n)=\lambda_{jk}\varphi_j(n_j), \qquad q(n, T^{j\to}n)=\mu_j\varphi_j(n_j), \qquad q(n, T^{\to k}n)=\nu_k ,q(n,Tjkn)=λjk​φj​(nj​),q(n,Tj→n)=μj​φj​(nj​),q(n,T→kn)=νk​,

where φj(0)=0\varphi_j(0)=0φj​(0)=0: nothing leaves an empty colony. Immigration into colony kkk is Poisson of rate νk\nu_kνk​. Taking μ≡0\mu\equiv 0μ≡0 and ν≡0\nu\equiv 0ν≡0 and restricting to states of a fixed total ∑jnj=N\sum_j n_j = N∑j​nj​=N gives a closed migration process. Setting φj(n)=min⁡(n,s)\varphi_j(n)=\min(n,s)φj​(n)=min(n,s) models an sss-server queue at colony jjj; φj(n)=n\varphi_j(n)=nφj​(n)=n models individuals moving independently.

The traffic equations define (αj)(\alpha_j)(αj​) from the rates. In the open case they are

αj(μj+∑kλjk)  =  νj+∑kαkλkj,j=1,…,J,\alpha_j\Bigl(\mu_j+\sum_k \lambda_{jk}\Bigr) \;=\; \nu_j+\sum_k \alpha_k\lambda_{kj}, \qquad j = 1,\dots,J,αj​(μj​+k∑​λjk​)=νj​+k∑​αk​λkj​,j=1,…,J,

and in the closed case αj∑kλjk=∑kαkλkj\alpha_j\sum_k \lambda_{jk}=\sum_k \alpha_k\lambda_{kj}αj​∑k​λjk​=∑k​αk​λkj​ with αj>0\alpha_j>0αj​>0 and ∑jαj=1\sum_j\alpha_j=1∑j​αj​=1. Finally set

gj=∑n=0∞αj n∏r=1nφj(r).g_j=\sum_{n=0}^{\infty}\frac{\alpha_j^{\,n}}{\prod_{r=1}^{n}\varphi_j(r)} .gj​=n=0∑∞​∏r=1n​φj​(r)αjn​​.

Formalization targets

Goal — Theorem 2.8, the product form of an open migration process

If g1,…,gJ<∞g_1,\dots,g_J<\inftyg1​,…,gJ​<∞ then

π(n)=∏j=1Jπj(nj),πj(m)=gj−1 αj m∏r=1mφj(r)\pi(n)=\prod_{j=1}^{J}\pi_j(n_j), \qquad \pi_j(m)=g_j^{-1}\,\frac{\alpha_j^{\,m}}{\prod_{r=1}^{m}\varphi_j(r)}π(n)=j=1∏J​πj​(nj​),πj​(m)=gj−1​∏r=1m​φj​(r)αjm​​

is an equilibrium distribution: it satisfies the equilibrium equations for the open migration rates, and it sums to one over Z+J\mathbb{Z}_+^JZ+J​. Both halves are asserted, because the first alone is satisfied by every positive multiple of π\piπ and the second is what makes the convergence hypothesis gj<∞g_j<\inftygj​<∞ do work.

Supporting levels

The closed-network product form of Theorem 2.4; the two families of partial balance equations (2.3) and (2.4) that the proof reduces to; Theorem 2.9, that the time reversal of a stationary open migration process is again an open migration process with rates λjk′=αkλkj/αj\lambda'_{jk}=\alpha_k\lambda_{kj}/\alpha_jλjk′​=αk​λkj​/αj​, μj′=νj/αj\mu'_j=\nu_j/\alpha_jμj′​=νj​/αj​ and νk′=αkμk\nu'_k=\alpha_k\mu_kνk′​=αk​μk​; the single M/M/1 queue that the chapter starts from; the cycle identity (2.6) behind Little's law; and the traffic equations of Kendall's family-size process, an open migration process with infinitely many colonies.

Significance

The result itself. Theorem 2.8 says that at a fixed time the occupancies n1,…,nJn_1,\dots,n_Jn1​,…,nJ​ of an open migration network are independent, each distributed as if its colony were fed by a Poisson stream of rate αjλj\alpha_j\lambda_jαj​λj​ — even though the actual arrival stream into a colony is in general not Poisson, and the occupancies are emphatically not independent as processes. That gap between the one-time-marginal and the process is the reason the theorem is useful and the reason it is easy to misapply. Everything downstream in the book rests on it: the loss networks of Chapter 3 are the truncation of a product-form process to a capacity set, and the flow-level models of Chapter 8 ask when a product form survives a bandwidth-sharing policy. Theorem 2.9 supplies the reversibility argument from which Burke's theorem and the Poisson character of the exit streams follow.

Formalizing it. The mathematics is classical — Jackson (1957), Whittle (1968), Kelly (1979) — and none of it is open. What the mission produces is a machine-checked model of a queueing network: the migration operators, the rate matrix, the traffic equations and the product form, in a form later missions in this series import rather than restate. Mathlib has no queueing theory and no theory of continuous-time Markov chains on a countable state space, so this is the first such development. It builds on the DetailedBalance / FullBalance layer published in mission I.

Difficulty

An open migration process is not reversible — the detailed balance equations fail, as Figure 2.5 of the book shows with an arrival stream of geometrically sized bursts — so the method of Chapter 1 does not apply and the equilibrium equations must be met head on. The content of the proof is that they split: a separate balance holds for each colony jjj (rate of individuals leaving colony jjj equals rate arriving into it) and one more across the boundary with the outside world, and each of those is equivalent to a traffic equation. Finding that split is the step, and it is why the partial balance equations are milestones in their own right.

The formal obstacle is different and worth naming. The equilibrium equation at a state nnn sums over the states that can jump into nnn, and the naive transcription ∑j,kπ(Tjkn)q(Tjkn,n)\sum_{j,k}\pi(T^{jk}n)q(T^{jk}n,n)∑j,k​π(Tjkn)q(Tjkn,n) silently assumes TjknT^{jk}nTjkn is a state, which fails when nj=0n_j=0nj​=0. Over Z+J\mathbb{Z}_+^JZ+J​ such a term must be dropped, and a formalization that keeps it — with nj−1n_j-1nj​−1 read as truncated subtraction — states something false.

Formalization scope

The state space is Fin J → ℕ, a function from a finite index type of colonies to occupancy counts, with J finite; no irreducibility is assumed, since none of the statements below need it. Rates are real-valued and the whole rate matrix is a single function of two states, assembled as a sum of indicator terms over the possible transitions, so the equilibrium equations can be stated as the FullBalance predicate of mission I, with unconditional sums over the countable state space. This is what avoids the trap above: a sum over actual states never includes a would-be-negative one, and any spurious coincidence of operators at a boundary carries a φj(0)=0\varphi_j(0)=0φj​(0)=0 factor and contributes nothing.

Conventions the development commits to: λjj=0\lambda_{jj}=0λjj​=0, so a transfer is always between distinct colonies; φj(0)=0\varphi_j(0)=0φj​(0)=0 and φj(r)>0\varphi_j(r)>0φj​(r)>0 for r≥1r\ge 1r≥1; αj>0\alpha_j>0αj​>0; and gjg_jgj​ is asserted via HasSum, which states convergence and the value at once, rather than as an extended real that might be infinite. Occupancy vectors use truncated natural subtraction, so the partial balance and reversed-rate statements carry an explicit nj≥1n_j\ge 1nj​≥1 where the book's state space carries it implicitly; the goal itself does not need such a guard.

A trivializing formalization is ruled out by the second conjunct of the goal: the equilibrium equations alone are a homogeneous linear condition satisfied by π≡0\pi\equiv 0π≡0, whereas the requirement that π\piπ sum to 111 forces the constants gjg_jgj​ to be exactly the ones stated.

Contributions welcome beyond the listed items: Burke's theorem (2.1) and the Poisson character of the exit streams, Corollary 2.10, the closed-form of the telephone banking example (Exercise 2.6), the Chinese restaurant process of Exercise 2.13, and Bartlett's theorem (2.17) on linear migration processes over a general space.

Selected references

  • Frank Kelly and Elena Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 2 (pp. 22–48); Theorems 2.4, 2.8, 2.9, 2.13, equations (2.1)–(2.6). DOI 10.1017/cbo9781139565363
  • James R. Jackson, Networks of waiting lines, Operations Research 5 (1957), 518–521. DOI 10.1287/opre.5.4.518
  • P. Whittle, Equilibrium distributions for an open migration process, Journal of Applied Probability 5 (1968), 567–571. DOI 10.2307/3211921
  • Frank Kelly, Reversibility and Stochastic Networks, Cambridge University Press, 2011 (reissue of the 1979 edition), Chapters 2 and 3.
  • David G. Kendall, Some problems in mathematical genealogy, in Perspectives in Probability and Statistics (J. Gani, ed.), Academic Press, 1975, 325–345.
  • John D. C. Little, A proof for the queuing formula: L=λWL = \lambda WL=λW, Operations Research 9 (1961), 383–387. DOI 10.1287/opre.9.3.383
10 thms2 active usersReviewed
🏆Completed
Markov ChainOperations Research·Captain: naimengye

Stochastic Networks I: Erlang's Formula for a Single LinkTextbook

Motivation

In the early twentieth century Agner Krarup Erlang worked for the Copenhagen Telephone Company and faced a sizing question that every shared-resource operator still faces: how many parallel circuits must a telephone link carry so that an arriving call is almost never turned away? The answer he published — the Erlang loss formula — is still the standard dimensioning tool for circuit-switched links, call centres, hospital beds, rental fleets, and any system in which a customer who finds every server occupied leaves rather than waits.

The formula is the first capstone of Frank Kelly and Elena Yudovina's Stochastic Networks (Cambridge University Press, 2014), where it closes Chapter 1 and supplies the building block for the loss networks of Chapter 3. It is also the cleanest possible demonstration of the book's method: write down the transition rates of a Markov process, guess that the process is reversible, solve the detailed balance equations, and read the answer off the normalizing constant. This mission formalizes that chapter: the reversibility apparatus, the birth-and-death chain of the loss link, and Erlang's formula itself.

Setting

A link carries CCC parallel circuits. Calls arrive as a Poisson process of rate λ\lambdaλ and each call, while it lasts, occupies one circuit for an exponentially distributed holding time of parameter μ\muμ; holding times are independent of one another and of the arrival times. A call that arrives to find all CCC circuits busy is lost — it does not queue.

Let X(t)∈{0,1,…,C}X(t)\in\{0,1,\dots,C\}X(t)∈{0,1,…,C} be the number of busy circuits. Then XXX is a Markov process with transition rates

q(j,j+1)=λ(j=0,…,C−1),q(j,j−1)=jμ(j=1,…,C),q(j,j+1)=\lambda \quad (j=0,\dots,C-1), \qquad q(j,j-1)=j\mu \quad (j=1,\dots,C),q(j,j+1)=λ(j=0,…,C−1),q(j,j−1)=jμ(j=1,…,C),

and q(j,k)=0q(j,k)=0q(j,k)=0 otherwise. A collection of numbers π=(π(j))\pi=(\pi(j))π=(π(j)) is in detailed balance with rates qqq when

π(j) q(j,k)=π(k) q(k,j)for all j,k,\pi(j)\,q(j,k)=\pi(k)\,q(k,j)\qquad\text{for all }j,k,π(j)q(j,k)=π(k)q(k,j)for all j,k,

and satisfies the equilibrium (full balance) equations when

π(j)∑kq(j,k)=∑kπ(k) q(k,j)for all j.\pi(j)\sum_k q(j,k)=\sum_k \pi(k)\,q(k,j)\qquad\text{for all }j .π(j)k∑​q(j,k)=k∑​π(k)q(k,j)for all j.

Detailed balance is the statement that, in equilibrium, transitions from jjj to kkk occur as frequently as transitions from kkk to jjj. Writing ν=λ/μ\nu=\lambda/\muν=λ/μ for the traffic intensity, Erlang's formula is

E(ν,C)=νC/C!∑j=0Cνj/j!.E(\nu,C)=\frac{\nu^{C}/C!}{\sum_{j=0}^{C}\nu^{j}/j!}.E(ν,C)=∑j=0C​νj/j!νC/C!​.

Formalization targets

Goal — Erlang's formula

π in detailed balance with q, ∑j=0Cπ(j)=1⟹π(C)=E ⁣(λμ,C).\pi \text{ in detailed balance with } q, \ \sum_{j=0}^{C}\pi(j)=1 \quad\Longrightarrow\quad \pi(C)=E\!\left(\tfrac{\lambda}{\mu},C\right).π in detailed balance with q, j=0∑C​π(j)=1⟹π(C)=E(μλ​,C).

The goal fixes no numerical constant: it says that whatever probability vector solves the detailed balance equations of the loss link assigns exactly E(ν,C)E(\nu,C)E(ν,C) to the blocking state. The hypothesis is detailed balance rather than full balance, which is what the book's derivation actually uses and is the stronger assumption to discharge.

Supporting levels

π(j)=νjj! π(0),∑j=0Cj π(j)=ν(1−E(ν,C)),ddνE(ν,C)=−(1−E(ν,C))(E(ν,C)−E(ν,C−1)),\pi(j)=\frac{\nu^{j}}{j!}\,\pi(0), \qquad \sum_{j=0}^{C} j\,\pi(j)=\nu\bigl(1-E(\nu,C)\bigr), \qquad \frac{d}{d\nu}E(\nu,C)=-\bigl(1-E(\nu,C)\bigr)\bigl(E(\nu,C)-E(\nu,C-1)\bigr),π(j)=j!νj​π(0),j=0∑C​jπ(j)=ν(1−E(ν,C)),dνd​E(ν,C)=−(1−E(ν,C))(E(ν,C)−E(ν,C−1)),

together with the reversibility results that justify the method: detailed balance implies full balance, the reversed process of Proposition 1.1 has rates q′(j,k)=π(k)q(k,j)/π(j)q'(j,k)=\pi(k)q(k,j)/\pi(j)q′(j,k)=π(k)q(k,j)/π(j) and retains π\piπ as an equilibrium distribution, and q′=qq'=qq′=q holds exactly when π\piπ and qqq are in detailed balance.

Significance

The result itself. E(ν,C)E(\nu,C)E(ν,C) is the blocking probability of the link, so it converts a traffic measurement ν\nuν and a target grade of service into a circuit count. It is insensitive: the same formula holds for any holding-time distribution with mean 1/μ1/\mu1/μ, which is why it survives as an engineering tool far outside the exponential model that produces it here. Chapter 3 of the book builds loss networks on top of it, and the Erlang fixed point that approximates a whole network is a system of coupled copies of this one formula. The derivative identity is the ingredient that makes E(ν,C)E(\nu,C)E(ν,C) tractable in optimization: it shows EEE is increasing in ν\nuν, and the recursion it encodes is how the formula is evaluated numerically without overflow.

Formalizing it. Nothing here is open mathematics; the value of the mission is a machine-checked statement of the loss model and a reusable reversibility layer. Mathlib has no theory of detailed balance or of reversible Markov processes over a countable state space, so this mission contributes the first: the predicates DetailedBalance and FullBalance, the reversed rate matrix, and the three structural facts relating them. Those are shared by every later mission in this series — the migration processes of Chapter 2 and the loss networks of Chapter 3 are all proved reversible or quasi-reversible by exactly these means.

Difficulty

The obvious route to π(C)\pi(C)π(C) is to solve the equilibrium equations directly, and for a birth-and-death chain that is a three-term recursion whose general solution needs two boundary conditions. Detailed balance replaces it with a two-term recursion and one boundary condition, and the whole content of the reversibility section is that the substitution is legitimate. The remaining work is bookkeeping that Lean makes less forgiving than the page does: the detailed balance equations must be indexed so that the j=0j=0j=0 and j=Cj=Cj=C boundaries are not silently assumed away, the normalizing sum must be shown positive before it can be inverted, and the induction that produces νj/j!\nu^{j}/j!νj/j! has to carry the Fin (C+1) index through Nat.factorial. For the derivative identity, the naive differentiation of a quotient gives (∑j≤C−1νj/j!)\left(\sum_{j\le C-1}\nu^{j}/j!\right)(∑j≤C−1​νj/j!) in the numerator, and recognizing it as (1−E(ν,C))\bigl(1-E(\nu,C)\bigr)(1−E(ν,C)) times the denominator is the step that produces the stated form.

Formalization scope

The state space is Fin (C + 1), so the link with CCC circuits has C+1C+1C+1 states and finiteness is built in; π\piπ is a plain function Fin (C + 1) → ℝ constrained by hypotheses rather than a PMF, so that the normalization ∑jπ(j)=1\sum_j \pi(j) = 1∑j​π(j)=1 appears explicitly wherever it is used. FullBalance is written with unconditional sums (tsum) over an arbitrary state space, so the same predicate serves the countable chains of later chapters; over a Fintype it is the finite sum. Rates are real-valued and q j j = 0 by construction, matching the book's convention that a Markov process must change state when it jumps.

The rates carry λ,μ>0\lambda,\mu>0λ,μ>0 as hypotheses. This rules out the degenerate reading in which μ=0\mu = 0μ=0 makes every downward rate vanish: with μ=0\mu=0μ=0 the detailed balance equations force π(j)λ=0\pi(j)\lambda = 0π(j)λ=0 for j<Cj<Cj<C, so the only normalized solution is the point mass at CCC, and π(C)=1\pi(C)=1π(C)=1 while Lean evaluates E(λ/0,C)=E(0,C)=0E(\lambda/0,C)=E(0,C)=0E(λ/0,C)=E(0,C)=0 for C≥1C\ge1C≥1; the goal would be false. Erlang's formula is stated for the last state Fin.last C, not for an unconstrained index, so it cannot be satisfied by a degenerate reindexing.

Contributions welcome beyond the listed items: the insensitivity of E(ν,C)E(\nu,C)E(ν,C) to the holding time distribution, the recursion E(ν,C)=νE(ν,C−1)/(C+νE(ν,C−1))E(\nu,C)=\nu E(\nu,C-1)/(C+\nu E(\nu,C-1))E(ν,C)=νE(ν,C−1)/(C+νE(ν,C−1)), the finite-source variant πM(j)∝(Mj)(η/μ)j\pi_M(j)\propto\binom{M}{j}(\eta/\mu)^{j}πM​(j)∝(jM​)(η/μ)j and the PASTA statement that an arriving call in that model sees πM−1\pi_{M-1}πM−1​, and the parking-space identity ∑C≥0E(ν,C)\sum_{C\ge 0}E(\nu,C)∑C≥0​E(ν,C) of Exercise 1.9.

Selected references

  • Frank Kelly and Elena Yudovina, Stochastic Networks, Cambridge University Press, 2014, Chapter 1 (pp. 13–21), equations (1.2), (1.4), (1.5), Proposition 1.1, Exercises 1.7 and 1.8. DOI 10.1017/cbo9781139565363
  • A. K. Erlang, Solution of some problems in the theory of probabilities of significance in automatic telephone exchanges, Elektrotkeknikeren 13 (1917), 5–13.
  • Frank Kelly, Reversibility and Stochastic Networks, Cambridge University Press, 2011 (reissue of the 1979 edition), Chapter 1.
  • J. R. Norris, Markov Chains, Cambridge University Press, 1998. DOI 10.1017/CBO9780511810633
9 thms2 active usersReviewed
🏆Completed
Markov ChainOperations Research·Captain: tianyipeng

Markov Entanglement: Index Policies for Restless Bandits are Asymptotically SeparableResearch Paper

Restless multi-armed bandits are the standard model for allocating a scarce resource across many independently-evolving agents: N arms, each a small Markov chain, and a budget that lets you activate only a fixed fraction of them at each step. The joint problem is PSPACE-hard, so practice runs on index policies — score each arm by a priority index computed from its own local state, then activate the top ones until the budget runs out — and evaluates them by value decomposition: approximate the joint Q-function by a sum of per-arm local Q-functions, each computed from a single arm's chain. The decomposition is used everywhere from Whittle-index heuristics to modern multi-agent RL, and it is used without an error bound.

Chen and Peng (arXiv:2506.02385) supply one. Their companion mission established the general principle: the value decomposition error of a multi-agent chain is controlled by its measure of Markov entanglement, the distance from the chain's transition matrix to the nearest separable one. This mission carries that principle to the restless-bandit setting and proves that index policies are asymptotically separable — their entanglement decays like 1/sqrt(N), so the decomposition error is sublinear in N while the joint Q-function itself is of order N. The relative error vanishes as the system grows, which is exactly why the practice works.

The argument runs through the mean-field limit. Because the arms are homogeneous, the only thing that matters about a joint state is its configuration: the fraction of arms in each local state. Under an index policy the configuration evolves by a map that does not depend on N at all, and under two standard technical conditions — a uniform global attractor property and non-degeneracy — that map has a unique attracting fixed point m*. The chain of reasoning is: policy entanglement is bounded by how far the realised policy sits from the mean-field limiting policy (Proposition 1); that distance is bounded by the configuration's deviation from m* (Lemma 2/8); and the deviation concentrates at rate 1/sqrt(N) by a concentration-plus-local-stability argument adapted from Gast, Gaujal and Yan. The concentration and stability inputs (Lemmas 9, 10, 11) are results of Gast et al. and are formalized here as well, so the mission stands on its own.

The mission also formalizes the mean-field map on the whole simplex and checks it against the N-agent characterisation, which is what makes the piecewise-affine and stability analysis expressible at all.

12 thms2 active usersReviewed
🏆Completed
Statistics·Captain: Shuze Chen

Vector Space Methods III: Recursive EstimationTextbook

Motivation

The final sections of Chapter 4 of Luenberger's Optimization by Vector Space Methods (Wiley, 1969) derive the discrete-time Kalman filter (§4.7 Theorem 1, attributed to Kalman 1960) purely from Hilbert space geometry: the optimal estimate of a linearly evolving random state is an orthogonal projection onto the span of past measurements, and the projection updates recursively as measurements arrive. This derivation — no Gaussian assumptions, no density calculations — is a canonical application of the projection theorem formalized in Mission I and the estimation theory of Mission II.

Setting

Following §4.2 and §4.7 of the source, all random variables have zero mean and finite second moments, and are treated as elements of a Hilbert space of random variables: an abstract real inner product space HHH in which the inner product of two random variables is their correlation, ⟨a,b⟩=E[ab]\langle a, b\rangle = E[ab]⟨a,b⟩=E[ab]. Random nnn-vectors are families Fin n→H\mathrm{Fin}\ n \to HFin n→H; two random variables are uncorrelated iff they are orthogonal in HHH; the covariance matrix of a zero-mean random vector xxx is the Gram matrix ⟨xi,xj⟩\langle x_i, x_j\rangle⟨xi​,xj​⟩. A white process uuu satisfies E[u(k)u(l)⊤]=Q(k) δklE[u(k)u(l)^\top] = Q(k)\,\delta_{kl}E[u(k)u(l)⊤]=Q(k)δkl​.

The dynamic model (§4.7) consists of a state process and measurements

x(k+1)=Φ(k) x(k)+u(k),v(k)=M(k) x(k)+w(k),k=0,1,2,…x(k+1) = \Phi(k)\,x(k) + u(k), \qquad v(k) = M(k)\,x(k) + w(k), \qquad k = 0, 1, 2, \dotsx(k+1)=Φ(k)x(k)+u(k),v(k)=M(k)x(k)+w(k),k=0,1,2,…

with known matrices Φ(k)∈Rn×n\Phi(k) \in \mathbb{R}^{n\times n}Φ(k)∈Rn×n, M(k)∈Rm×nM(k) \in \mathbb{R}^{m\times n}M(k)∈Rm×n, white noises u,wu, wu,w with covariances Q(k)Q(k)Q(k), R(k)R(k)R(k) (R(k)R(k)R(k) positive definite), mutually uncorrelated and uncorrelated with the initial state x(0)x(0)x(0). The estimate x^(k+1∣k)\hat x(k+1 \mid k)x^(k+1∣k) is the projection of each component of x(k+1)x(k+1)x(k+1) onto the subspace spanned by the components of v(0),…,v(k)v(0), \dots, v(k)v(0),…,v(k).

Formalization targets

The goal is §4.7 Theorem 1: the estimates generated by the recursion

x^(k+1∣k)=Φ(k)P(k)M⊤(k)[M(k)P(k)M⊤(k)+R(k)]−1(v(k)−M(k)x^(k∣k−1))+Φ(k) x^(k∣k−1)\hat x(k+1 \mid k) = \Phi(k) P(k) M^\top(k)\big[M(k)P(k)M^\top(k) + R(k)\big]^{-1}\big(v(k) - M(k)\hat x(k \mid k-1)\big) + \Phi(k)\, \hat x(k \mid k-1)x^(k+1∣k)=Φ(k)P(k)M⊤(k)[M(k)P(k)M⊤(k)+R(k)]−1(v(k)−M(k)x^(k∣k−1))+Φ(k)x^(k∣k−1) P(k+1)=Φ(k)P(k){I−M⊤(k)[M(k)P(k)M⊤(k)+R(k)]−1M(k)P(k)}Φ⊤(k)+Q(k),P(k+1) = \Phi(k) P(k)\big\{I - M^\top(k)[M(k)P(k)M^\top(k) + R(k)]^{-1} M(k) P(k)\big\}\Phi^\top(k) + Q(k),P(k+1)=Φ(k)P(k){I−M⊤(k)[M(k)P(k)M⊤(k)+R(k)]−1M(k)P(k)}Φ⊤(k)+Q(k),

started from x^(0∣−1)=0\hat x(0 \mid -1) = 0x^(0∣−1)=0 and P(0)=cov⁡x(0)P(0) = \operatorname{cov} x(0)P(0)=covx(0), are the linear minimum-variance estimates: each x^(k∣k−1)\hat x(k \mid k-1)x^(k∣k−1) lies in the span of past measurement components, its error is orthogonal to all past measurements, and its error covariance is P(k)P(k)P(k).

Milestones: orthogonality of the innovation v(k)−M(k)x^(k∣k−1)v(k) - M(k)\hat x(k\mid k-1)v(k)−M(k)x^(k∣k−1) to the past-data subspace, and the single-step updating formula (§4.6 Example 1) — given a prior projection with error covariance RRR and new data y=Wβ+εy = W\beta + \varepsilony=Wβ+ε, the updated projection is β^+RW⊤(WRW⊤+Q)−1(y−Wβ^)\hat\beta + RW^\top(WRW^\top + Q)^{-1}(y - W\hat\beta)β^​+RW⊤(WRW⊤+Q)−1(y−Wβ^​) with error covariance R−RW⊤(WRW⊤+Q)−1WRR - RW^\top(WRW^\top+Q)^{-1}WRR−RW⊤(WRW⊤+Q)−1WR.

Significance

The Kalman filter is among the most used algorithms in engineering — navigation, tracking, control, time-series analysis — and this mission gives it a machine-checked correctness statement at the natural level of generality: linear minimum-variance optimality over arbitrary zero-mean second-order processes, with no Gaussian hypothesis. Mathlib currently has no Kalman filter and no linear filtering theory. The abstract Hilbert-space formulation also makes the development directly reusable: the update milestone is a general two-stage projection lemma independent of the dynamic model.

Difficulty

The recursion couples two invariants that must be established simultaneously by induction: the geometric one (the error is orthogonal to the growing measurement subspace, and the estimate lies in it) and the algebraic one (the error Gram matrix equals P(k)P(k)P(k)). Whiteness enters precisely through the index inequalities — u(k)u(k)u(k) and w(k)w(k)w(k) are orthogonal to everything generated by x(0),u(0..k−1),w(0..k−1)x(0), u(0..k{-}1), w(0..k{-}1)x(0),u(0..k−1),w(0..k−1) — and an off-by-one in these ranges silently breaks the induction. Invertibility of M(k)P(k)M⊤(k)+R(k)M(k)P(k)M^\top(k) + R(k)M(k)P(k)M⊤(k)+R(k) must be derived, not assumed: P(k)P(k)P(k) is positive semidefinite as a Gram matrix and R(k)R(k)R(k) is positive definite. The naive approach of expanding all projections over a concrete probability space adds measure-theoretic overhead the abstract formulation avoids entirely.

Formalization scope

The Hilbert space of random variables is an abstract H : Type with [NormedAddCommGroup H] [InnerProductSpace ℝ H]; zero means are implicit in this representation (§4.7 assumes all variables zero-mean), so expectations never appear — only inner products. Matrix-vector actions on random vectors are written componentwise as ∑ j, A i j • x j. Processes are indexed by ℕ, with x̂(0 | -1) rendered as xh 0 = 0 and covariances as explicit Gram identities. Whiteness and uncorrelatedness are hypotheses on inner products with if k = l then _ else 0. The span of past data at time kkk is Submodule.span ℝ {a | ∃ l < k, ∃ j, a = v l j}. The recursion defining xh and P is supplied as hypotheses, so the goal asserts exactly the optimality and covariance claims of the source theorem. Statements deliberately avoid Mathlib's orthogonalProjection; the projection property is asserted by membership plus orthogonality, which characterizes it uniquely.

Selected references

  • David G. Luenberger, Optimization by Vector Space Methods, John Wiley & Sons, 1969. §4.6–4.7, pp. 90–97. ISBN 0-471-55359-X.
  • R. E. Kalman, A new approach to linear filtering and prediction problems, J. Basic Eng. 82 (1960), 35–45. https://doi.org/10.1115/1.3662552
4 thms2 active usersReviewed
🏆Completed
Markov ChainProbability·Captain: Shuze Chen

Markov Chains and Mixing Times XIII: Coupling from the PastTextbook

Motivation

Every sampling guarantee in this series so far is approximate: run the chain for tmix(ε)t_{\mathrm{mix}}(\varepsilon)tmix​(ε) steps and the output is within ε\varepsilonε of stationarity. In 1996 Propp and Wilson showed that, astonishingly, one can often sample exactly from the stationary distribution of a chain — with no error at all and no knowledge of the mixing time — by running the chain not forward from the present but from the past. Their algorithm, coupling from the past (CFTP), drives all states simultaneously with the same sequence of random update maps drawn from times −1,−2,−3,…-1,-2,-3,\dots−1,−2,−3,…; as soon as the composed map from some time −t-t−t collapses the entire state space to a single value, that value is an exact sample from π\piπ. Chapter 22 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009; the chapter is by Propp and Wilson themselves) presents the algorithm, the monotone shortcut that makes it practical for huge state spaces, and the proof of exactness. This mission — the final one of the series — formalizes that correctness proof.

Setting

Throughout, PPP is a chain on a finite state space VVV with stationary distribution π\piπ. A random mapping representation of PPP is a probability distribution ν\nuν on update functions f:V→Vf:V\to Vf:V→V that reproduces the transition probabilities in one step:

ν{f:f(x)=y}  =  P(x,y)for all x,y.\nu\{f: f(x)=y\}\;=\;P(x,y)\qquad\text{for all }x,y.ν{f:f(x)=y}=P(x,y)for all x,y.

Sampling f∼νf\sim\nuf∼ν and applying it to the current state is exactly one PPP-step — simultaneously from every possible current state.

CFTP draws i.i.d. maps f−1,f−2,⋯∼νf_{-1},f_{-2},\dots\sim\nuf−1​,f−2​,⋯∼ν indexed by past times and composes them forward from the past up to time zero:

F−t0  =  f−1∘f−2∘⋯∘f−t.F^0_{-t}\;=\;f_{-1}\circ f_{-2}\circ\cdots\circ f_{-t}.F−t0​=f−1​∘f−2​∘⋯∘f−t​.

Note the order: extending the horizon deeper into the past prepends new randomness inside the composition, while the maps near time 000 stay fixed — this is the crucial asymmetry between running from the past and running into the future. The composition has coalesced when F−t0F^0_{-t}F−t0​ is a constant map — all starting states have been funneled to one common value — and the algorithm outputs that value. In the monotone variant, VVV carries a partial order with a bottom state 0^\hat00^ and a top state 1^\hat11^ and every update map is monotone; then it suffices to track the two extreme trajectories.

Formalization targets

Goal

Correctness of coupling from the past (Propp–Wilson; §22.2–22.3), the capstone of the series: if ν\nuν is a random mapping representation of PPP, π\piπ is stationary for PPP, and coalescence is almost sure, then for every state yyy the probability that the CFTP composition has coalesced to the value yyy within ttt steps from the past tends, as t→∞t\to\inftyt→∞, to exactly π(y)\pi(y)π(y) — the output of the algorithm is an exact sample from the stationary distribution, with no mixing-time error term.

Milestones

  • Proposition 1.5 / §22.3 — every finite Markov chain has a random mapping representation: a suitable ν\nuν always exists.
  • Coalescence (§22.3) — if some finite composition of update maps collapses the state space with positive probability, then coalescence is almost sure: the probability that F−t0F^0_{-t}F−t0​ is not yet constant tends to 000 as t→∞t\to\inftyt→∞.
  • Monotone CFTP (§22.2) — if the state space has a bottom 0^\hat00^ and a top 1^\hat11^ and every update map is monotone, then the composition is constant as soon as it merely identifies 0^\hat00^ and 1^\hat11^: checking two trajectories certifies coalescence of all of them.

Significance

The results. CFTP is one of the most striking algorithmic ideas probability has produced: a Las Vegas algorithm whose output distribution is exactly π\piπ, side-stepping every mixing-time estimate of the previous twelve missions. The monotone shortcut is what made it explode in practice — for the Ising model of Mission IX the 2n2^n2n trajectories collapse to two, and Propp–Wilson famously drew exact Ising samples on large grids at the critical temperature. CFTP remains the foundation of exact-simulation methods across statistical physics, spatial statistics, and randomized algorithms.

Formalizing it. The correctness argument is short but famously slippery — the standard pitfall (running the coupling into the future yields a biased sample) is precisely a statement about the order of composition, which a formal proof pins down mercilessly. Nothing about exact sampling exists in any proof-assistant library. Formalized CFTP correctness is a fitting keystone: it consumes the random-map representation (Chapter 1), stationarity (Mission I), and the almost-sure-coalescence analysis, and certifies the algorithm practitioners actually run.

Difficulty

The whole content lies in managing the composition order and the limiting argument without measure theory. The probability space at horizon ttt is the finite product of ttt copies of ν\nuν (tuples of update maps, weighted by products); the key observation — for fixed ttt, the law of F−t0F^0_{-t}F−t0​ applied to any fixed start equals the law of ttt forward steps — is a finite re-indexing argument. Exactness then follows from a sandwich: on the event of coalescence by time ttt, the output equals F−t0(x)F^0_{-t}(x)F−t0​(x) for every xxx; choosing the start according to π\piπ shows the output law differs from π\piπ by at most the non-coalescence probability, and the hypothesis drives that to zero. Formalizing this needs care at exactly the point where informal proofs wave: the event "coalesced by −t-t−t" is increasing in ttt because the maps near zero are shared between horizons — the tuple encoding must make this monotonicity provable. The coalescence milestone is a geometric-trials argument (independent blocks each collapse with probability bounded below), and the monotone milestone is an induction showing monotonicity of compositions plus the squeeze between the extreme trajectories. All randomness is finite products of a finite distribution; limits are limits of explicit real sequences.

Formalization scope

Update-map distributions are functions (V→V)→R(V\to V)\to\mathbb R(V→V)→R with the distribution predicate of Mission I; the random-map representation condition is a finite-sum identity. The composition F−t0F^0_{-t}F−t0​ is encoded by a tuple F:Fin t→(V→V)F:\mathrm{Fin}\,t\to(V\to V)F:Fint→(V→V) with F(i)F(i)F(i) the map used at time −(i+1)-(i{+}1)−(i+1), folded so that the last entry applies first — the from-the-past order. Coalescence probabilities and output probabilities are finite sums over tuples of products of ν\nuν-weights; "coalescence is almost sure" is the statement that the non-coalescence probability tends to 000, and the goal's conclusion is a limit of real sequences (Filter.Tendsto), not a measure-theoretic almost-sure statement. The monotone milestone is stated abstractly for any finite partial order with OrderBot and OrderTop and any tuple of monotone maps — reusable beyond CFTP. No measure theory, filtrations, or i.i.d. infrastructure is required anywhere.

Selected references

  • D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, American Mathematical Society, 2009 (Chapter 22, by J. G. Propp and D. B. Wilson). https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf
  • J. G. Propp, D. B. Wilson, Exact sampling with coupled Markov chains and applications to statistical mechanics, Random Structures Algorithms 9 (1996). https://doi.org/10.1002/(SICI)1098-2418(199608/09)9:1/2<223::AID-RSA14>3.0.CO;2-O
  • D. B. Wilson, How to couple from the past using a read-once source of randomness, Random Structures Algorithms 16 (2000). https://doi.org/10.1002/(SICI)1098-2418(200003)16:2<85::AID-RSA1>3.0.CO;2-H
5 thms2 active usersReviewed
🏆Completed
Markov ChainProbability·Captain: Shuze Chen

Markov Chains and Mixing Times II: The Convergence TheoremTextbook

Motivation

The first mission of this series established that an irreducible finite Markov chain has a unique stationary distribution π\piπ. The present mission, covering Chapters 3–4 of Levin–Peres–Wilmer, Markov Chains and Mixing Times (AMS, 2009), answers the two questions that make that fact useful. First, the inverse problem of sampling: given a target distribution π\piπ — uniform over proper colorings, a Gibbs measure, a posterior — how does one build a chain whose stationary distribution is π\piπ? The Metropolis and Glauber constructions of Chapter 3 are the universal answers, and they are the engine of Markov chain Monte Carlo across statistical physics, Bayesian statistics, and approximate counting. Second, the convergence question: in what sense, and how fast, does an irreducible aperiodic chain approach π\piπ? Chapter 4 introduces the total variation distance, proves the Convergence Theorem — geometric convergence to stationarity — and defines the mixing time, the parameter the entire remainder of the book estimates.

Setting

All chains live on a finite state space VVV and are presented by row-stochastic matrices, with the definitions of Mission I. The total variation distance between distributions μ\muμ and ν\nuν is

∥μ−ν∥TV=max⁡A⊆V ∣μ(A)−ν(A)∣,\|\mu-\nu\|_{\mathrm{TV}} = \max_{A\subseteq V}\,|\mu(A)-\nu(A)|,∥μ−ν∥TV​=A⊆Vmax​∣μ(A)−ν(A)∣,

the maximal discrepancy over events. A coupling of μ\muμ and ν\nuν is a distribution on V×VV\times VV×V whose marginals are μ\muμ and ν\nuν. For a chain PPP with stationary π\piπ one sets

d(t)=max⁡x∥Pt(x,⋅)−π∥TV,dˉ(t)=max⁡x,y∥Pt(x,⋅)−Pt(y,⋅)∥TV,d(t)=\max_x \|P^t(x,\cdot)-\pi\|_{\mathrm{TV}},\qquad \bar d(t)=\max_{x,y}\|P^t(x,\cdot)-P^t(y,\cdot)\|_{\mathrm{TV}},d(t)=xmax​∥Pt(x,⋅)−π∥TV​,dˉ(t)=x,ymax​∥Pt(x,⋅)−Pt(y,⋅)∥TV​,

and the mixing time is tmix(ε)=min⁡{t:d(t)≤ε}t_{\mathrm{mix}}(\varepsilon)=\min\{t : d(t)\le\varepsilon\}tmix​(ε)=min{t:d(t)≤ε}, with tmix=tmix(1/4)t_{\mathrm{mix}}=t_{\mathrm{mix}}(1/4)tmix​=tmix​(1/4).

The Metropolis chain for a target π\piπ and a symmetric proposal chain Ψ\PsiΨ accepts a proposed move x→yx\to yx→y with probability 1∧π(y)/π(x)1\wedge \pi(y)/\pi(x)1∧π(y)/π(x); a general (not necessarily symmetric) base chain is handled by the ratio (π(y)Ψ(y,x))/(π(x)Ψ(x,y))∧1\bigl(\pi(y)\Psi(y,x)\bigr)/\bigl(\pi(x)\Psi(x,y)\bigr)\wedge 1(π(y)Ψ(y,x))/(π(x)Ψ(x,y))∧1. The Glauber dynamics for a distribution π\piπ on configurations VsitesV^{\text{sites}}Vsites picks a uniform site and re-samples its value from π\piπ conditioned on the rest.

Formalization targets

Goal

P irreducible and aperiodic  ⟹  ∃ α∈(0,1), C>0:d(t)≤Cαt.\text{$P$ irreducible and aperiodic}\;\Longrightarrow\;\exists\,\alpha\in(0,1),\ C>0:\quad d(t)\le C\alpha^{t}.P irreducible and aperiodic⟹∃α∈(0,1), C>0:d(t)≤Cαt.

This is Theorem 4.9, the Convergence Theorem. It asserts only the geometric shape of convergence, leaving all quantitative rates to later missions, which is why it is the goal.

Milestones

The milestones are the chapter's working parts: stationarity and reversibility of the Metropolis chain for symmetric and general base chains (§3.2, Exercise 3.1), stationarity and reversibility of the Glauber dynamics (§3.3, Exercise 3.2); the three characterizations of total variation distance — the half-ℓ1\ell^1ℓ1 formula (Proposition 4.2 with Remark 4.3), the supremum over [−1,1][-1,1][−1,1]-bounded test functions (Proposition 4.5), and the coupling characterization with an optimal coupling attaining it (Proposition 4.7 with Remark 4.8); the comparison d≤dˉ≤2dd\le\bar d\le 2dd≤dˉ≤2d (Lemma 4.11) and submultiplicativity dˉ(s+t)≤dˉ(s)dˉ(t)\bar d(s+t)\le\bar d(s)\bar d(t)dˉ(s+t)≤dˉ(s)dˉ(t) (Lemma 4.12); the standard mixing-time consequences d(ℓ tmix(ε))≤(2ε)ℓd(\ell\, t_{\mathrm{mix}}(\varepsilon))\le(2\varepsilon)^\elld(ℓtmix​(ε))≤(2ε)ℓ and tmix(ε)≤⌈log⁡2ε−1⌉ tmixt_{\mathrm{mix}}(\varepsilon)\le\lceil\log_2\varepsilon^{-1}\rceil\, t_{\mathrm{mix}}tmix​(ε)≤⌈log2​ε−1⌉tmix​ (§4.5); and the equality of distance to stationarity for a group walk and its inverse walk (Lemma 4.13 and Corollary 4.14).

Significance

The results. The Convergence Theorem is the qualitative foundation on which quantitative mixing theory stands: it guarantees that tmix(ε)t_{\mathrm{mix}}(\varepsilon)tmix​(ε) is finite, so every bound in Missions III–XIII is a bound on a well-defined quantity. The TV characterizations are used constantly — the coupling characterization is the engine of Mission III, the half-ℓ1\ell^1ℓ1 formula of every explicit computation. The Metropolis and Glauber stationarity results justify the chains analyzed in Missions III (colorings, hardcore), VIII (path coupling) and IX (Ising). Submultiplicativity of dˉ\bar ddˉ is what makes tmixt_{\mathrm{mix}}tmix​ a meaningful single number.

Formalizing them. None of this exists in Mathlib: there is no total variation distance for finitely supported distributions, no coupling theory, no mixing time, no MCMC correctness statement. The definition layer published here (TV distance, ddd, dˉ\bar ddˉ, tmixt_{\mathrm{mix}}tmix​, couplings, Metropolis, Glauber) is imported by every subsequent mission of the series.

Difficulty

The tempting proof of Theorem 4.9 via spectral decomposition fails twice: it needs reversibility, which the theorem does not assume, and spectral machinery that arrives only in Mission VII. The book's proof is the Doeblin decomposition: by Proposition 1.7 some power satisfies Pr(x,y)≥δπ(y)P^r(x,y)\ge\delta\pi(y)Pr(x,y)≥δπ(y), so Pr=(1−θ)Π+θQP^r=(1-\theta)\Pi+\theta QPr=(1−θ)Π+θQ with Π\PiΠ the rank-one matrix of rows π\piπ, and induction gives Prk=(1−θk)Π+θkQkP^{rk}=(1-\theta^k)\Pi+\theta^kQ^kPrk=(1−θk)Π+θkQk. The formal work is matrix algebra with careful bookkeeping of the remainder chain QQQ, plus the monotonicity of ddd needed to interpolate between multiples of rrr. For Proposition 4.7 the delicate half is constructing the optimal coupling: mass μ∧ν\mu\wedge\nuμ∧ν on the diagonal and the normalized product of the positive parts off it, with the degenerate case μ=ν\mu=\nuμ=ν handled separately. The Glauber stationarity statement must be phrased with care because configurations outside the support of π\piπ have junk rows; the formalization asserts stochasticity only at supported configurations, and detailed balance globally.

Formalization scope

Total variation distance is defined as the supremum over events, ⨆A ∣μ(A)−ν(A)∣\bigsqcup_{A}\,|\mu(A)-\nu(A)|⨆A​∣μ(A)−ν(A)∣ over Finset V, exactly as in (4.1); the half-ℓ1\ell^1ℓ1 formula is a milestone, not the definition. The mixing time is sInf of the set {t:d(t)≤ε}\{t : d(t)\le\varepsilon\}{t:d(t)≤ε} in N\mathbb NN (junk value 000 if empty — impossible under the goal theorem). Couplings are distributions on the product with prescribed marginals; no probability-space machinery is used. The mixing-time inequalities are stated with the integer-rounding slack made explicit (e.g. ⌈log⁡2ε−1⌉\lceil\log_2\varepsilon^{-1}\rceil⌈log2​ε−1⌉ via Nat.ceil of a real logarithm) so that no statement is true only "up to rounding". The Metropolis definitions use total real division, so the hypotheses require π>0\pi>0π>0 pointwise; this matches the book, which divides by π(x)\pi(x)π(x) throughout.

Welcome contributions beyond the milestones: simp lemmas for tvDist, monotonicity of ddd and dˉ\bar ddˉ in ttt, and triangle-inequality infrastructure — all reused by Missions III–XIII.

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
  • N. Metropolis, A. Rosenbluth, M. Rosenbluth, A. Teller, E. Teller, Equation of state calculations by fast computing machines, J. Chem. Phys. 21 (1953). https://doi.org/10.1063/1.1699114
  • W. Doeblin, Exposé de la théorie des chaînes simples constantes de Markov à un nombre fini d'états, Rev. Math. Union Interbalkan. 2 (1938).
14 thms2 active usersReviewed
🏆Completed
Operations Research·Captain: wenxinzhang

Single-Server Queueing Convergence via Forward CouplingTextbook

Formalize sample-path stability for a continuous-time, unit-rate, infinite-buffer single-server queue. Starting from cumulative arriving service work, define the reflected transient workload, the workload constructed from the infinite past, long-run offered load, and two-time stationarity. Prove that subcritical load forces finite-time coupling and consequently that every finite initial workload converges in its two-time finite-dimensional distributions to the stationary workload law.

5 thms2 active usersReviewed
Control TheoryOperations ResearchProbability·Captain: mikedeng1

Scheduling a Multi Class Queue with Many Exponential Servers: Asymptotic Optimality in Heavy Traffic: The HJB-Based Preemptive Policy Is Asymptotically Optimal Among Work-Conserving PoliciesResearch Paper

Motivation

Large call centers route several types of customers to a common pool of agents. When the pool is large and highly utilized, the relevant asymptotic regime is the quality-and-efficiency-driven (QED) or Halfin–Whitt regime (Halfin & Whitt 1981). The number of servers nnn grows while the offered load stays within O(n)O(\sqrt n)O(n​) of nnn. Waiting is then neither negligible nor overwhelming (Gans, Koole & Mandelbaum 2003).

Which class should a freed agent serve next? Exact optimization of a multi-class many-server queue with abandonment is intractable. The standard route is to solve a limiting diffusion control problem and translate its optimal control back into a policy for the queue. Atar, Mandelbaum and Reiman (Ann. Appl. Probab. 2004) carried this out for kkk customer classes, exponential service and abandonment, general renewal arrivals and general convex-type holding costs. They proved that the translated policy is asymptotically optimal. This mission formalizes that result for the preemptive policy.

Context:

  • Harrison & Zeevi (2004) studied the same multi-class many-server problem.
  • Bell & Williams (2001) proved asymptotic optimality of a threshold policy for a two-server system in conventional heavy traffic.
  • The present paper is the first to cover the QED regime with general costs and abandonment.

Setting

There are k≥1k\ge1k≥1 customer classes and nnn identical servers.

Primitives.

  • Arrivals. Class-iii customers arrive according to a renewal process AinA^n_iAin​ with interarrival times Uˇi(j)/λin\check U_i(j)/\lambda^n_iUˇi​(j)/λin​. Here the Uˇi(j)\check U_i(j)Uˇi​(j) are i.i.d., positive, of mean one and squared coefficient of variation CU,i2C^2_{U,i}CU,i2​.
  • Service. Service times are exponential with rate μin\mu^n_iμin​, represented by Poisson processes SinS^n_iSin​.
  • Abandonment. Waiting customers abandon at rate θin≥0\theta^n_i\ge0θin​≥0, represented by Poisson processes RinR^n_iRin​.

State. Xin(t)X^n_i(t)Xin​(t) is the number of class-iii customers in the system, Ψin(t)\Psi^n_i(t)Ψin​(t) the number in service and Φin=Xin−Ψin\Phi^n_i=X^n_i-\Psi^n_iΦin​=Xin​−Ψin​ the number waiting. The dynamics are

Xin(t)=Xi0,n+Ain(t)−Rin(∫0tΦin)−Sin(∫0tΨin),Ψn,Φn∈Z+k,∑iΨin≤n.X^n_i(t)=X^{0,n}_i+A^n_i(t)-R^n_i\Big(\int_0^t\Phi^n_i\Big)-S^n_i\Big(\int_0^t\Psi^n_i\Big),\qquad \Psi^n,\Phi^n\in\mathbb Z^k_+,\quad \textstyle\sum_i\Psi^n_i\le n .Xin​(t)=Xi0,n​+Ain​(t)−Rin​(∫0t​Φin​)−Sin​(∫0t​Ψin​),Ψn,Φn∈Z+k​,∑i​Ψin​≤n.

Policies.

  • A scheduling control policy (SCP) is the process Ψn\Psi^nΨn.
  • It is admissible if it does not anticipate the future beyond the time of the next arrival: past information is independent of future primitive increments.
  • It is work-conserving if no server idles while customers wait: (1⋅Xn−n)+=1⋅Φn(\mathbb 1\cdot X^n-n)^+=\mathbb 1\cdot\Phi^n(1⋅Xn−n)+=1⋅Φn.

Scaling and cost. In the QED scaling n−1λin→λin^{-1}\lambda^n_i\to\lambda_in−1λin​→λi​ with ∑iλi/μi=1\sum_i\lambda_i/\mu_i=1∑i​λi​/μi​=1. With ρi=λi/μi\rho_i=\lambda_i/\mu_iρi​=λi​/μi​ the centred processes are X^n=n−1/2(Xn−ρn)\hat X^n=n^{-1/2}(X^n-\rho n)X^n=n−1/2(Xn−ρn), Φ^n=n−1/2Φn\hat\Phi^n=n^{-1/2}\Phi^nΦ^n=n−1/2Φn and Ψ^n=n−1/2(Ψn−ρn)\hat\Psi^n=n^{-1/2}(\Psi^n-\rho n)Ψ^n=n−1/2(Ψn−ρn). The cost is

Cn=E∫0∞e−γtL~(Φ^n(t),Ψ^n(t)) dt.C^n=E\int_0^\infty e^{-\gamma t}\tilde L(\hat\Phi^n(t),\hat\Psi^n(t))\,dt .Cn=E∫0∞​e−γtL~(Φ^n(t),Ψ^n(t))dt.

The limiting control problem. It controls

X(t)=x+rW(t)+∫0tb(X(s),u(s)) ds,b(x,u)=ℓ+(μ−θ)(1⋅x)+u−μx,X(t)=x+rW(t)+\int_0^t b(X(s),u(s))\,ds,\qquad b(x,u)=\ell+(\mu-\theta)(\mathbb 1\cdot x)^+u-\mu x,X(t)=x+rW(t)+∫0t​b(X(s),u(s))ds,b(x,u)=ℓ+(μ−θ)(1⋅x)+u−μx,

where the control uuu takes values in the simplex Sk\mathbb S^kSk and WWW is a kkk-dimensional Brownian motion. The data are ri=(λiCU,i2+λi)1/2r_i=(\lambda_iC^2_{U,i}+\lambda_i)^{1/2}ri​=(λi​CU,i2​+λi​)1/2 and ℓi=λ^i−ρiμ^i\ell_i=\hat\lambda_i-\rho_i\hat\mu_iℓi​=λ^i​−ρi​μ^​i​. Its value V(x)V(x)V(x) is the infimum of E∫0∞e−γtL(X,u) dtE\int_0^\infty e^{-\gamma t}L(X,u)\,dtE∫0∞​e−γtL(X,u)dt, with L(x,u)=L~((1⋅x)+u,x−(1⋅x)+u)L(x,u)=\tilde L((\mathbb 1\cdot x)^+u,x-(\mathbb 1\cdot x)^+u)L(x,u)=L~((1⋅x)+u,x−(1⋅x)+u).

HJB equation and the proposed policy. The HJB equation is 12∑iri2∂iif+H(x,Df)−γf=0\tfrac12\sum_ir_i^2\partial_{ii}f+H(x,Df)-\gamma f=021​∑i​ri2​∂ii​f+H(x,Df)−γf=0 with H(x,p)=inf⁡u∈Sk[b(x,u)⋅p+L(x,u)]H(x,p)=\inf_{u\in\mathbb S^k}[b(x,u)\cdot p+L(x,u)]H(x,p)=infu∈Sk​[b(x,u)⋅p+L(x,u)]. Let hhh be a measurable selection of its minimizers. The proposed preemptive policy (P-SCP) sets the queue vector to Θ[(1⋅Xn−n)+h(X^n)]\Theta[(\mathbb 1\cdot X^n-n)^+h(\hat X^n)]Θ[(1⋅Xn−n)+h(X^n)], an integer rounding, and falls back to a static priority rule when that is infeasible.

Formalization targets

Goal: Theorem 2(i)

For a Cpol2C^2_{\mathrm{pol}}Cpol2​ solution fff of the HJB equation, a measurable minimizer selection hhh, and initial states with X^0,n→x\hat X^{0,n}\to xX^0,n→x:

lim⁡n→∞E∫0∞e−γtL~(Φ^tn,∗,Ψ^tn,∗) dt  ≤  lim inf⁡n→∞E∫0∞e−γtL~(Φ^tn,Ψ^tn) dt\lim_{n\to\infty}E\int_0^\infty e^{-\gamma t}\tilde L(\hat\Phi^{n,*}_t,\hat\Psi^{n,*}_t)\,dt\;\le\;\liminf_{n\to\infty}E\int_0^\infty e^{-\gamma t}\tilde L(\hat\Phi^n_t,\hat\Psi^n_t)\,dtn→∞lim​E∫0∞​e−γtL~(Φ^tn,∗​,Ψ^tn,∗​)dt≤n→∞liminf​E∫0∞​e−γtL~(Φ^tn​,Ψ^tn​)dt

This holds for every sequence of work-conserving admissible SCPs, and the left-hand limit exists and is finite. No constants are hard-coded.

Milestones

The milestones follow the proof:

  • on the diffusion side, Proposition 2 (well-posedness), Proposition 4 (stability and moment bounds), Proposition 5(i)–(ii) (growth and continuity of VVV) and Theorem 3 (VVV is the unique Cpol2C^2_{\mathrm{pol}}Cpol2​ HJB solution, and an optimal Markov policy exists);
  • on the queueing side, Proposition 1 (feedback rules give admissible SCPs), Lemmas 2–3 (moment bounds), Lemma 4(i)–(ii) (FCLT for the primitives and the fluid limit (Ψˉn,Φˉn)⇒(ρ,0)(\bar\Psi^n,\bar\Phi^n)\Rightarrow(\rho,0)(Ψˉn,Φˉn)⇒(ρ,0)), and Theorem 4(i)–(ii): lim inf⁡≥V(x)\liminf\ge V(x)liminf≥V(x) always, and lim sup⁡≤V(x)\limsup\le V(x)limsup≤V(x) under condition (49).

Significance

The result. Theorem 2(i) justifies using the diffusion control problem as a design tool for multi-class many-server systems. The policy is explicit given hhh, and it is optimal in the limit against all non-anticipating work-conserving policies, including those that use the full history and the time of the next arrival. The proof also identifies the limit cost with V(x)V(x)V(x).

Formalizing it. The result is proved on paper, with some steps (Proposition 1, the principle of optimality, the time-change and martingale limit theorems) given as sketches or citations. No part of it is machine-checked. A formalization requires:

  • a counting-process model of the queue;
  • a careful definition of non-anticipation;
  • a pathwise controlled SDE;
  • classical solvability of a semilinear elliptic HJB equation on Rk\mathbb R^kRk;
  • a weak-convergence argument in Skorokhod space.

Each of these is reusable well beyond this paper.

Difficulty

The obvious argument would show that X^n\hat X^nX^n converges to the controlled diffusion and pass the costs to the limit. This fails for two reasons:

  • the comparison class contains arbitrary non-Markov, history-dependent policies, so the queue does not converge to a single controlled diffusion;
  • the optimal selector hhh is in general discontinuous (for linear costs it is), so the proposed policy is not a continuous function of the state.

The proof instead compares every policy with the HJB solution through Itô's formula on the prelimit processes. This needs:

  • uniform moment bounds;
  • tightness of the integral processes;
  • the convergence of stochastic integrals of Kurtz and Protter;
  • and, for the proposed policy, the fact that the rounding Θ\ThetaΘ and the priority fallback perturb the minimizer by O(n−1/2)O(n^{-1/2})O(n−1/2).

Existence of a classical HJB solution on all of Rk\mathbb R^kRk, with only Hölder-continuous costs and polynomial growth, rests on a bounded-domain existence theorem for fully nonlinear elliptic equations.

Formalization scope

The Lean development commits to the following conventions.

  • Indexing and norms. Classes are Fin k with k≥1k\ge1k≥1; paper class iii is index i−1i-1i−1, so "class kkk" (highest priority, rounding remainder of Θ\ThetaΘ) is the last index. Vectors are Fin k → ℝ and ∥⋅∥\|\cdot\|∥⋅∥ is the paper's ℓ1\ell^1ℓ1 norm; the paper's ∣⋅∣|\cdot|∣⋅∣ on vectors is read the same way.
  • Probability space and paths. All systems share one complete probability space. Time is real and every condition is for t≥0t\ge0t≥0. The paper's "without loss" path regularity (finite arrival counts, Poisson paths Z+\mathbb Z_+Z+​-valued, nondecreasing and càdlàg) holds for every ω\omegaω.
  • Poisson processes are defined by independent Poisson increments; rate 000 gives the zero process.
  • Policies. A policy is a pair of real processes (Ψn,Xn)(\Psi^n,X^n)(Ψn,Xn) with integer values. Admissibility is Definition 2 verbatim, with the future σ\sigmaσ-field built from the next arrival time τin(t)\tau^n_i(t)τin​(t). Work conservation is (18).
  • Costs and value are lower Lebesgue integrals in [0,∞][0,\infty][0,∞], and lim⁡\limlim/lim inf⁡\liminfliminf are taken there. The integrands are nonnegative under work conservation.
  • Admissible systems range over sample spaces Ω : Type (universe 0). "Complete filtered probability space" means PPP complete with all null sets in F0\mathcal F_0F0​. Brownian motion is Mathlib's IsBrownianReal per coordinate, with independence and the (Ft)(\mathcal F_t)(Ft​)-Brownian property stated explicitly. VVV is the infimum over systems and their controlled processes.
  • Discount rate. γ>0\gamma>0γ>0 is a hypothesis; the paper leaves it implicit.
  • Initial states are integer vectors X0,n∈Z+kX^{0,n}\in\mathbb Z^k_+X0,n∈Z+k​ with n−1/2(X0,n−ρn)→xn^{-1/2}(X^{0,n}-\rho n)\to xn−1/2(X0,n−ρn)→x. The literal "X^0,n∈n−1/2Zk\hat X^{0,n}\in n^{-1/2}\mathbb Z^kX^0,n∈n−1/2Zk" would require ρin∈Z\rho_in\in\mathbb Zρi​n∈Z. Assumption 1(ii) is not imposed: each policy chooses its own initial split.
  • Lemma 3 is stated for all nnn beyond a threshold that depends on the sequence, with constants c,mˉc,\bar mc,mˉ chosen before xxx and the sequence. The printed all-nnn bound with ccc independent of xxx fails when the early terms X^0,n\hat X^{0,n}X^0,n are large.
  • Weak convergence to a continuous limit uses the coupling form CouplingConverges of the published BellWilliams2001.ThresholdPolicy.Paths; convergence to a deterministic limit is UocInProb.

The goal hypothesizes fff and hhh with the pointwise identity b(x,h(x))⋅Df(x)+L(x,h(x))=H(x,Df(x))b(x,h(x))\cdot Df(x)+L(x,h(x))=H(x,Df(x))b(x,h(x))⋅Df(x)+L(x,h(x))=H(x,Df(x)) for all xxx. An arbitrary "optimal Markov control policy" may differ from a minimizer selection on the Lebesgue-null lattice where X^n\hat X^nX^n lives, and that formalization would make the goal false. Restricting the comparators to feedback, Markov or nonpreemptive policies, fixing kkk, dropping abandonment, specializing to Poisson arrivals or linear costs, or imposing a common initial split would each trivialize or weaken the statement and is ruled out.

Not formalized:

  • Lemma 4(iii) (tightness);
  • Lemma 5 (Kurtz–Protter, which needs semimartingale theory absent from Mathlib);
  • Lemma 6 (convergence of Stieltjes integrals at limit points);
  • Proposition 5(iii);
  • the nonpreemptive results, Theorem 2(ii)–(iii).

Contributions are welcome on any milestone, and especially on infrastructure: Poisson and renewal processes, functional central limit theorems in Skorokhod space, classical solvability of elliptic HJB equations, and measurable selection of minimizers.

Selected references

  • R. Atar, A. Mandelbaum, M. I. Reiman, Scheduling a multi class queue with many exponential servers: asymptotic optimality in heavy traffic, Ann. Appl. Probab. 14(3), 2004. https://arxiv.org/abs/math/0407058
  • S. Halfin, W. Whitt, Heavy-traffic limits for queues with many exponential servers, Oper. Res. 29(3), 1981. https://doi.org/10.1287/opre.29.3.567
  • N. Gans, G. Koole, A. Mandelbaum, Telephone call centers: tutorial, review, and research prospects, Manuf. Serv. Oper. Manag. 5(2), 2003. https://doi.org/10.1287/msom.5.2.79.16071
  • J. M. Harrison, A. Zeevi, Dynamic scheduling of a multiclass queue in the Halfin–Whitt heavy traffic regime, Oper. Res. 52(2), 2004. https://doi.org/10.1287/opre.1040.0109
  • S. L. Bell, R. J. Williams, Dynamic scheduling of a system with two parallel servers in heavy traffic with resource pooling: asymptotic optimality of a threshold policy, Ann. Appl. Probab. 11(3), 2001. https://doi.org/10.1214/aoap/1015345343
  • T. G. Kurtz, P. Protter, Weak limit theorems for stochastic integrals and stochastic differential equations, Ann. Probab. 19(3), 1991. https://doi.org/10.1214/aop/1176990334
16 thms1 active userReviewed
Operations ResearchProbabilityReinforcement Learning·Captain: mikedeng1

Learning in Structured MDPs with Convex Cost Functions: Improved Regret Bounds for Inventory Management: Base-Stock Values from Any Two Starting States Differ by at Most 36 max(h,p)LxResearch Paper

Motivation

The lost-sales inventory problem with lead times is a basic model of operations management. A retailer reviews one product's stock each period and places an order that arrives LLL periods later. Demand that cannot be met from stock on hand is lost, and the retailer pays a holding cost hhh per unit left on the shelf and a penalty ppp per unit of lost demand. The optimal policy depends on the whole pipeline of outstanding orders, so the state space grows with LLL, and the problem is computationally hard for long lead times. Simple base-stock (order-up-to) policies are therefore the standard heuristic, and Huh, Janakiraman, Muckstadt and Rusmevichientong (Management Science 2009) showed they are asymptotically optimal as the lost-sales penalty grows.

Agrawal and Jia (arXiv:1905.04337) study the learning version, in which the demand distribution is unknown and only sales, not demands, are observed. They give an algorithm whose regret against the best base-stock policy is O~(LT)\tilde O(L\sqrt T)O~(LT​), improving the earlier bound of Zhang, Chao and Shi, which grows exponentially in LLL. The improvement rests on one structural fact: started from two different states, the base-stock system accumulates expected costs that differ by an amount linear in LLL and independent of the horizon. That fact, Lemma 2.5 of the paper, is the goal of this mission.

Setting

Fix a lead time L≥0L\ge 0L≥0 and a base-stock level xxx. A state is a vector s=(s(0),s(1),…,s(L))\mathbf s=(s(0),s(1),\dots,s(L))s=(s(0),s(1),…,s(L)) of real numbers. Its entry s(0)s(0)s(0) is the on-hand inventory after the current period's arrival, and s(1),…,s(L)s(1),\dots,s(L)s(1),…,s(L) are the outstanding orders, s(L)s(L)s(L) the most recent. Under a base-stock policy with level xxx the states lie in

Sx={s:s(i)≥0 for all i, ∑i=0Ls(i)=x}.\mathcal S^x=\Big\{\mathbf s : s(i)\ge 0\ \text{for all } i,\ \sum_{i=0}^{L}s(i)=x\Big\}.Sx={s:s(i)≥0 for all i, i=0∑L​s(i)=x}.

In each period ttt a demand dt≥0d_t\ge 0dt​≥0 is drawn, independently across periods, from a distribution FFF on [0,∞)[0,\infty)[0,∞). The sales are yt=min⁡{st(0),dt}y_t=\min\{s_t(0),d_t\}yt​=min{st​(0),dt​} and the on-hand inventory is It=st(0)I_t=s_t(0)It​=st​(0). The policy reorders exactly what was sold, so for L≥1L\ge 1L≥1 the next state is

st+1=(st(0)−yt+st(1), st(2), …, st(L), yt),\mathbf s_{t+1}=\big(s_t(0)-y_t+s_t(1),\ s_t(2),\ \dots,\ s_t(L),\ y_t\big),st+1​=(st​(0)−yt​+st​(1), st​(2), …, st​(L), yt​),

and for L=0L=0L=0 the state (x)(x)(x) never changes. The pseudo-cost of period ttt is Ctx=h(st(0)−yt)−p ytC^x_t=h(s_t(0)-y_t)-p\,y_tCtx​=h(st​(0)−yt​)−pyt​, and the value over horizon TTT from the start state s\mathbf ss is

VTx(s)=E[∑t=1TCtx ∣ s1=s].V^x_T(\mathbf s)=\mathbb E\Big[\sum_{t=1}^{T}C^x_t\ \Big|\ \mathbf s_1=\mathbf s\Big].VTx​(s)=E[t=1∑T​Ctx​ ​ s1​=s].

Along a demand path, nTx(s)=∑t=1Tytn^x_T(\mathbf s)=\sum_{t=1}^T y_tnTx​(s)=∑t=1T​yt​ is the total sales and mTx(s)=∑t=1TItm^x_T(\mathbf s)=\sum_{t=1}^T I_tmTx​(s)=∑t=1T​It​ the total on-hand inventory.

States are compared by the order of Definition B.1: s′⪰s\mathbf s'\succeq\mathbf ss′⪰s if s′−s=δ\mathbf s'-\mathbf s=\deltas′−s=δ with ∑iδi=0\sum_i\delta_i=0∑i​δi​=0 and some 0≤k≤L−10\le k\le L-10≤k≤L−1 such that δi≥0\delta_i\ge 0δi​≥0 for i≤ki\le ki≤k and δi≤0\delta_i\le 0δi​≤0 for i>ki>ki>k. Thus s′\mathbf s's′ holds the same total, shifted toward the shelf. The state s^=(x,0,…,0)\hat{\mathbf s}=(x,0,\dots,0)s^=(x,0,…,0) dominates every state of Sx\mathcal S^xSx.

Formalization targets

Goal: Lemma 2.5 (p. 8)

For every xxx, every horizon TTT, all costs h,p≥0h,p\ge 0h,p≥0, every demand law FFF and all s,s′∈Sx\mathbf s,\mathbf s'\in\mathcal S^xs,s′∈Sx,

VTx(s)−VTx(s′)≤36max⁡(h,p) L x.V^x_T(\mathbf s)-V^x_T(\mathbf s')\le 36\max(h,p)\,L\,x .VTx​(s)−VTx​(s′)≤36max(h,p)Lx.

The constant is the paper's printed one. The proof's last display gives 18(h+p)Lx18(h+p)Lx18(h+p)Lx, a stronger bound, which is deliberately not the goal.

Milestones (Appendix B and the proof of Lemma 2.5)

All of the following hold for L≥1L\ge 1L≥1, along any single demand path that drives both chains:

  1. Lemma B.2 (p. 20). If s1′⪰s1\mathbf s'_1\succeq\mathbf s_1s1′​⪰s1​ then for t≤L+1t\le L+1t≤L+1 the cumulative sales satisfy Yt′−Yt≤max⁡0≤k≤t−1(δ0+⋯+δk)Y'_t-Y_t\le\max_{0\le k\le t-1}(\delta_0+\dots+\delta_k)Yt′​−Yt​≤max0≤k≤t−1​(δ0​+⋯+δk​).
  2. Lemma B.3 (p. 20). If moreover It′≥ItI'_t\ge I_tIt′​≥It​ for t=1,…,L+1t=1,\dots,L+1t=1,…,L+1, then nT(sL+1′)=nT(sL+1)n_T(\mathbf s'_{L+1})=n_T(\mathbf s_{L+1})nT​(sL+1′​)=nT​(sL+1​) for every TTT.
  3. Lemma B.5 (p. 21). At the successive first crossing times σi,τi\sigma_i,\tau_iσi​,τi​ of Definition B.4, the state order alternates: sσi′⪰sσi\mathbf s'_{\sigma_i}\succeq\mathbf s_{\sigma_i}sσi​′​⪰sσi​​ and sτi′⪯sτi\mathbf s'_{\tau_i}\preceq\mathbf s_{\tau_i}sτi​′​⪯sτi​​ whenever these times exist.
  4. Lemma B.6 (p. 21). If s′⪰s\mathbf s'\succeq\mathbf ss′⪰s in Sx\mathcal S^xSx then ∣nTx(s′)−nTx(s)∣≤3x|n^x_T(\mathbf s')-n^x_T(\mathbf s)|\le 3x∣nTx​(s′)−nTx​(s)∣≤3x.
  5. Lemma B.7 (p. 23). If s′⪰s\mathbf s'\succeq\mathbf ss′⪰s in Sx\mathcal S^xSx then ∣mTx(s)−mTx(s′)∣≤6Lx|m^x_T(\mathbf s)-m^x_T(\mathbf s')|\le 6Lx∣mTx​(s)−mTx​(s′)∣≤6Lx.
  6. Proof of Lemma 2.5 (p. 9). s^⪰s\hat{\mathbf s}\succeq\mathbf ss^⪰s for every s∈Sx\mathbf s\in\mathcal S^xs∈Sx.
  7. Proof of Lemma 2.5 (p. 9). ∣VTx(s)−VTx(s^)∣≤9(h+p)Lx|V^x_T(\mathbf s)-V^x_T(\hat{\mathbf s})|\le 9(h+p)Lx∣VTx​(s)−VTx​(s^)∣≤9(h+p)Lx.

Significance

Lemma 2.5 bounds the dependence of the base-stock chain's finite-horizon cost on its starting state, uniformly in the horizon. In the paper it yields three consequences: the long-run average cost (the loss) of a base-stock policy does not depend on the initial state (Lemma 2.6), the bias of the chain is bounded by 36max⁡(h,p)Lx36\max(h,p)Lx36max(h,p)Lx (Lemma 2.8), and finite-horizon average costs concentrate around the loss (Lemma 2.10). These feed the regret bound of Theorem 1.3. The lemma is also a statement about the base-stock lost-sales system alone, without any learning, so it is of independent interest for coupling arguments on lost-sales chains.

The paper's proof is complete on paper, but nothing in it has a machine-checked proof. Neither the lost-sales base-stock chain with lead times started from an arbitrary pipeline state nor any of the coupling lemmas of Appendix B is formalized elsewhere. This mission produces a checked proof of the goal and of the pathwise comparison lemmas. Theorem 1.3 is not posed: its supporting lemmas rely on limits whose existence the paper settles only by an informal discretization (Remark 4).

Difficulty

The obvious argument couples the two chains on a common demand path and waits until they coalesce. Coalescence is guaranteed only after LLL consecutive periods of zero demand, an event of probability exponentially small in LLL, so this argument gives a bound exponential in LLL. That is the bound of earlier work.

The linear bound needs a finer pathwise accounting. The two coupled chains do not stay ordered: the one that starts with more inventory on the shelf sells more at first, then runs short and sells less. The order ⪰\succeq⪰ between the two states alternates along a sequence of times, and the sales gained in one phase must be shown to be lost again in the next, so that the cumulative difference stays bounded by a constant multiple of xxx for every horizon. Turning this alternation into a bound requires tracking how the pipeline vectors evolve between alternation times, including the boundary cases in which the chains coalesce or the horizon ends inside a phase.

Formalization scope

All declarations live in the namespace LostSalesLearning.ValueGap. A state is a function Fin (L + 1) → ℝ, a demand path is a function ℕ → ℝ≥0, and time is 0-based: traj s d 0 is the paper's s1\mathbf s_1s1​, traj s d t is st+1\mathbf s_{t+1}st+1​, and ∑t=1T\sum_{t=1}^T∑t=1T​ is a sum over Finset.range T. The demand law FFF is a probability measure on ℝ≥0, and the demand path has the product law Measure.infinitePi (fun _ => F). The value is the expectation of the summed pseudo-costs, which equals Definition 2.4 by the tower property and is the form used in the paper's proof.

Committed conventions:

  • The costs satisfy h≥0h\ge 0h≥0 and p≥0p\ge 0p≥0, the reading of "per unit holding cost and per unit lost sales penalty".
  • No assumption is placed on FFF. The paper's assumptions F(0)>0F(0)>0F(0)>0 and bounded demand belong to other results.
  • The goal holds for every L≥0L\ge 0L≥0; the Appendix B milestones carry L≥1L\ge 1L≥1, as Appendix B does.
  • The order ⪰\succeq⪰ is Definition B.1 verbatim, with the equal-sum clause and the split index k≤L−1k\le L-1k≤L−1.
  • The pathwise milestones quantify over every demand path and drive both chains with the same path.
  • The first crossing times of Definition B.4 are represented by alternationTimes; an absent next crossing is none.

Two trivializing formalizations are ruled out. A comparison of the two values on different or fixed demand paths would be a different statement: the goal compares two expectations under the same law, and each pathwise milestone uses one common path. A Bochner integral of a non-integrable function would be 000. The integrand here is measurable and bounded by T(h+p)xT(h+p)xT(h+p)x on Sx\mathcal S^xSx, so the values are genuine expectations.

A complete development needs the elementary dynamics of the chain, including invariance of Sx\mathcal S^xSx and the shift of trajectories, which is reusable for other lost-sales models. It also needs the alternation times of Definition B.4, and measurability of the trajectory in the demand path. Proofs of individual milestones, alternative proofs of the goal, and sharper constants as separate statements are all welcome.

Selected references

  • S. Agrawal and R. Jia, Learning in Structured MDPs with Convex Cost Functions: Improved Regret Bounds for Inventory Management, arXiv:1905.04337v1, 2019. https://arxiv.org/abs/1905.04337
  • W. T. Huh, G. Janakiraman, J. A. Muckstadt and P. Rusmevichientong, Asymptotic Optimality of Order-Up-To Policies in Lost Sales Inventory Systems, Management Science 55(3), 2009. https://doi.org/10.1287/mnsc.1080.0945
  • H. Zhang, X. Chao and C. Shi, Closing the Gap: A Learning Algorithm for Lost-Sales Inventory Systems with Lead Times, Management Science 66(5), 2020. https://doi.org/10.1287/mnsc.2019.3288
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
9 thms1 active userReviewed
Control TheoryDynamic ProgrammingOperations Research+2·Captain: mikedeng1

Stochastic Optimal Control: The Discrete-Time Case IX: Imperfect State Information — Reduction to a Perfect-Information Model through a Statistic Sufficient for ControlTextbook

Motivation

In most control problems the controller does not see the state of the system. It sees noisy observations, remembers its past controls, and must act on that record. Inventory systems with delayed or inaccurate counts, maintenance of machines whose wear is only inspected, target tracking, and medical treatment planned from test results all have this form. The standard device for such problems is to replace the hidden state by a summary of the record, most often the conditional distribution of the state given the observations, and to solve a dynamic program whose state is that summary.

For finite or countable spaces this reduction goes back to Åström (1965) and Striebel (1965), who introduced the conditional distribution of the state as a "sufficient statistic" for control. Chapter 10 of Bertsekas and Shreve, Stochastic Optimal Control: The Discrete-Time Case (Academic Press 1978; Athena Scientific 1996) carries it out for Borel state, control and observation spaces, with universally measurable policies and costs that are only lower semianalytic. In that generality the measurability of the reduced model is the whole difficulty, and the chapter isolates exactly what a summary must satisfy for the reduction to be exact.

Setting

The imperfect state information model (ISI) of Definition 10.3 has a nonempty Borel state space SSS, control space CCC and observation space ZZZ; a discount factor α>0\alpha>0α>0; a lower semianalytic cost g:SC→R∗=[−∞,∞]g:SC\to R^*=[-\infty,\infty]g:SC→R∗=[−∞,∞]; a Borel state transition kernel t(dx′∣x,u)t(dx'\mid x,u)t(dx′∣x,u); Borel observation kernels s0(dz∣x)s_0(dz\mid x)s0​(dz∣x) and s(dz∣u,x)s(dz\mid u,x)s(dz∣u,x); and a horizon NNN. The initial state x0x_0x0​ has distribution p∈P(S)p\in P(S)p∈P(S), z0∼s0(⋅∣x0)z_0\sim s_0(\cdot\mid x_0)z0​∼s0​(⋅∣x0​), and then xk+1∼t(⋅∣xk,uk)x_{k+1}\sim t(\cdot\mid x_k,u_k)xk+1​∼t(⋅∣xk​,uk​), zk+1∼s(⋅∣uk,xk+1)z_{k+1}\sim s(\cdot\mid u_k,x_{k+1})zk+1​∼s(⋅∣uk​,xk+1​). The controller knows the information vector ik=(z0,u0,…,uk−1,zk)∈Iki_k=(z_0,u_0,\dots,u_{k-1},z_k)\in I_kik​=(z0​,u0​,…,uk−1​,zk​)∈Ik​ and must choose uk∈Uk(ik)u_k\in U_k(i_k)uk​∈Uk​(ik​), where the constraint set Γk={(ik,u)∣u∈Uk(ik)}\Gamma_k=\{(i_k,u)\mid u\in U_k(i_k)\}Γk​={(ik​,u)∣u∈Uk​(ik​)} is analytic.

A policy π=(μ0,…,μN−1)\pi=(\mu_0,\dots,\mu_{N-1})π=(μ0​,…,μN−1​) consists of universally measurable stochastic kernels μk(duk∣p;ik)\mu_k(du_k\mid p;i_k)μk​(duk​∣p;ik​) that respect the constraints (Definition 10.4). Together with ppp it determines probability measures Pk(π,p)P_k(\pi,p)Pk​(π,p) on the histories (x0,z0,u0,…,xk,zk,uk)(x_0,z_0,u_0,\dots,x_k,z_k,u_k)(x0​,z0​,u0​,…,xk​,zk​,uk​), the cost

JN,π(p)=∫[∑k=0N−1αkg(xk,uk)]dPN−1(π,p),J_{N,\pi}(p)=\int\Big[\sum_{k=0}^{N-1}\alpha^k g(x_k,u_k)\Big]dP_{N-1}(\pi,p),JN,π​(p)=∫[k=0∑N−1​αkg(xk​,uk​)]dPN−1​(π,p),

and the optimal cost JN∗(p)=inf⁡πJN,π(p)J^*_N(p)=\inf_\pi J_{N,\pi}(p)JN∗​(p)=infπ​JN,π​(p) (Definition 10.5). Assumption (F+)(F^+)(F+) asks that the expected discounted negative part of the cost be finite for every policy and initial distribution; (F−)(F^-)(F−) asks the same of the positive part.

A statistic is a sequence of Borel maps ηk:P(S)Ik→Yk\eta_k:P(S)I_k\to Y_kηk​:P(S)Ik​→Yk​ into nonempty Borel spaces. It is sufficient for control (Definition 10.6) if (a) the constraints can be read off from it, Γk={(ik,u)∣(ηk(p;ik),u)∈Γ^k}\Gamma_k=\{(i_k,u)\mid(\eta_k(p;i_k),u)\in\hat\Gamma_k\}Γk​={(ik​,u)∣(ηk​(p;ik​),u)∈Γ^k​} with Γ^k\hat\Gamma_kΓ^k​ analytic; (b) the conditional law of ηk+1\eta_{k+1}ηk+1​ given (ηk,uk)(\eta_k,u_k)(ηk​,uk​) is a Borel kernel t^k(dyk+1∣yk,uk)\hat t_k(dy_{k+1}\mid y_k,u_k)t^k​(dyk+1​∣yk​,uk​), for every ppp and every policy; and (c) the conditional expectation of g(xk,uk)g(x_k,u_k)g(xk​,uk​) given (ηk,uk)(\eta_k,u_k)(ηk​,uk​) is a lower semianalytic function g^k(yk,uk)\hat g_k(y_k,u_k)g^​k​(yk​,uk​). The perfect state information model (PSI) of Definition 10.7 has states yk∈Yky_k\in Y_kyk​∈Yk​, constraints U^k(yk)=(Γ^k)yk\hat U_k(y_k)=(\hat\Gamma_k)_{y_k}U^k​(yk​)=(Γ^k​)yk​​, costs g^k\hat g_kg^​k​ and transitions t^k\hat t_kt^k​; its cost and optimal cost at y∈Y0y\in Y_0y∈Y0​ are J^N,π^(y)\hat J_{N,\hat\pi}(y)J^N,π^​(y) and J^N∗(y)\hat J^*_N(y)J^N∗​(y). The initial distribution of y0y_0y0​ is

φ(p)(Y‾0)=∫Ss0({z0∣η0(p;z0)∈Y‾0}∣x0) p(dx0).\varphi(p)(\underline Y_0)=\int_S s_0(\{z_0\mid\eta_0(p;z_0)\in\underline Y_0\}\mid x_0)\,p(dx_0).φ(p)(Y​0​)=∫S​s0​({z0​∣η0​(p;z0​)∈Y​0​}∣x0​)p(dx0​).

A Markov (PSI) policy μ^k(du∣yk)\hat\mu_k(du\mid y_k)μ^​k​(du∣yk​) acts in (ISI) through μk(du∣p;ik)=μ^k(du∣ηk(p;ik))\mu_k(du\mid p;i_k)=\hat\mu_k(du\mid\eta_k(p;i_k))μk​(du∣p;ik​)=μ^​k​(du∣ηk​(p;ik​)).

Formalization targets

Goal: Proposition 10.3

Under (F+,F^+)(F^+,\hat F^+)(F+,F^+) or (F−,F^−)(F^-,\hat F^-)(F−,F^−),

JN∗(p)=∫Y0J^N∗(y0) φ(p)(dy0)∀p∈P(S),J^*_N(p)=\int_{Y_0}\hat J^*_N(y_0)\,\varphi(p)(dy_0)\qquad\forall p\in P(S),JN∗​(p)=∫Y0​​J^N∗​(y0​)φ(p)(dy0​)∀p∈P(S),

and a Markov (PSI) policy that is optimal, φ(p)\varphi(p)φ(p)-optimal or weakly φ(p)\varphi(p)φ(p)-ε\varepsilonε-optimal for (PSI) is respectively optimal, optimal at ppp, or ε\varepsilonε-optimal at ppp for (ISI); under (F+,F^+)(F^+,\hat F^+)(F+,F^+) an ε\varepsilonε-optimal (PSI) policy is ε\varepsilonε-optimal for (ISI). Here π^\hat\piπ^ is weakly qqq-ε\varepsilonε-optimal if ∫J^N,π^ dq≤∫J^N∗ dq+ε\int\hat J_{N,\hat\pi}\,dq\le\int\hat J^*_N\,dq+\varepsilon∫J^N,π^​dq≤∫J^N∗​dq+ε when ∫J^N∗ dq>−∞\int\hat J^*_N\,dq>-\infty∫J^N∗​dq>−∞ and ∫J^N,π^ dq≤−1/ε\int\hat J_{N,\hat\pi}\,dq\le-1/\varepsilon∫J^N,π^​dq≤−1/ε otherwise, and qqq-optimal if q({y0∣J^N,π^(y0)=J^N∗(y0)})=1q(\{y_0\mid\hat J_{N,\hat\pi}(y_0)=\hat J^*_N(y_0)\})=1q({y0​∣J^N,π^​(y0​)=J^N∗​(y0​)})=1 (Definition 10.8).

Milestones

  1. Lemma 10.1: the process (η0,u0,…,ηk,uk)(\eta_0,u_0,\dots,\eta_k,u_k)(η0​,u0​,…,ηk​,uk​) generated in (ISI) by a Markov (PSI) policy has the law P^k[π^,φ(p)]\hat P_k[\hat\pi,\varphi(p)]P^k​[π^,φ(p)].
  2. Proposition 10.2: JN,π^(p)=∫J^N,π^ dφ(p)J_{N,\hat\pi}(p)=\int\hat J_{N,\hat\pi}\,d\varphi(p)JN,π^​(p)=∫J^N,π^​dφ(p) for Markov π^\hat\piπ^.
  3. Corollary 10.2.1: JN∗(p)≤∫J^N∗ dφ(p)J^*_N(p)\le\int\hat J^*_N\,d\varphi(p)JN∗​(p)≤∫J^N∗​dφ(p).
  4. Lemma 10.2: every (ISI) policy is matched in cost by some Markov (PSI) policy.
  5. Proposition 10.4: ε\varepsilonε-optimal nonrandomized (ISI) policies that depend on iki_kik​ only through ηk(p;ik)\eta_k(p;i_k)ηk​(p;ik​).
  6. Proposition 10.6: the identity maps on P(S)IkP(S)I_kP(S)Ik​ form a statistic sufficient for control.

Significance

Proposition 10.3 says that an imperfect-information problem loses nothing by being solved in the reduced model: the optimal cost is the φ(p)\varphi(p)φ(p)-average of the reduced optimal cost, and good reduced policies are good original policies. Combined with Proposition 10.6, every (ISI) model has such a reduction, so the finite-horizon dynamic programming theory of Chapter 8 (existence of ε\varepsilonε-optimal policies, the dynamic programming algorithm) transfers to partially observed problems on Borel spaces. Proposition 10.4 turns this into a structural statement about the original problem: nearly optimal controllers need to retain only the statistic.

These results are proved in the book. None of them is formalized: the platform's related results (Bäuerle–Rieder's partially observable models with observation densities, and the linear-quadratic-Gaussian separation theorem) work in different models and do not cover universally measurable policies, analytic constraints, or lower semianalytic costs. A machine-checked version makes the conditional-expectation bookkeeping of the reduction explicit, and the definitions of this mission (universal measurability, lower semianalytic functions, the book's extended integral, history measures built from universally measurable kernels) are reusable by every other chapter of the book.

Difficulty

The obvious argument says: replace the state by the statistic, observe that costs and transitions depend only on the statistic, and conclude. In the Borel setting each step is a measurability claim that the naive argument does not supply. The conditions of Definition 10.6 are almost-everywhere statements about conditional distributions under every pair (p,π)(p,\pi)(p,π), while the reduced model needs genuine kernels; the policies are only universally measurable, so integrals and compositions must be taken with respect to completions; the costs take the values ±∞\pm\infty±∞, so interchanging sums and integrals requires the finiteness assumptions (F±)(F^\pm)(F±) and (F^±)(\hat F^\pm)(F^±); and the inequality JN∗≥∫J^N∗ dφ(p)J^*_N\ge\int\hat J^*_N\,d\varphi(p)JN∗​≥∫J^N∗​dφ(p) requires producing, from an arbitrary history-dependent (ISI) policy, a Markov (PSI) policy with the same cost, which the naive argument does not do.

Formalization scope

  • Horizon. Only finite horizons N≥1N\ge1N≥1 are covered, hence only the cases (F+,F^+)(F^+,\hat F^+)(F+,F^+) and (F−,F^−)(F^-,\hat F^-)(F−,F^−) of the book's statements; the infinite-horizon cases (P,P^)(P,\hat P)(P,P^), (N,N^)(N,\hat N)(N,N^), (D,D^)(D,\hat D)(D,D^) are out of scope.
  • Extended reals. Costs live in EReal with the book's convention ∞−∞=+∞\infty-\infty=+\infty∞−∞=+∞ written out explicitly (badd, bsum, extIntegral); Mathlib's EReal subtraction (⊤−⊤=⊥\top-\top=\bot⊤−⊤=⊥) is never used where both terms can be infinite.
  • Spaces and measures. SSS, CCC, ZZZ, YkY_kYk​ are Borel spaces in the sense of Definition 7.7 with their Borel σ\sigmaσ-algebras; P(S)P(S)P(S) carries the weak topology and the Giry σ\sigmaσ-algebra. Policies are families of maps into ProbabilityMeasure C that are measurable for the completion of every probability measure. History measures are characterized by their values on rectangles. Families indexed by the stage are indexed by all of N\mathbb NN; only stages k<Nk<Nk<N are constrained.
  • Conditional statements. Conditions (22) and (23) are stated through the defining relations of conditional probability and expectation, for every ppp and every policy, with (23) required when g(xk,uk)g(x_k,u_k)g(xk​,uk​) is quasi-integrable.
  • Policies in Proposition 10.3. The (PSI) policies in the optimality transfers are Markov, as in Proposition 10.2.
  • No trivialization. Definition 10.6 is the full definition: analytic Γ^k\hat\Gamma_kΓ^k​ with full projection, Borel kernels t^k\hat t_kt^k​ satisfying (22) for every ppp and policy, and lower semianalytic g^k\hat g_kg^​k​ satisfying (23); a weaker notion would make Proposition 10.6 empty.

Contributions are welcome on any milestone. Basic facts that a full development needs, such as composition of universally measurable maps (Proposition 7.44), measurability of integrals against universally measurable kernels (Proposition 7.46), and existence of the history measures (Proposition 7.45), can be posed and proved as supporting lemmas; they are reusable across the book.

Selected references

  • D. P. Bertsekas and S. E. Shreve, Stochastic Optimal Control: The Discrete-Time Case, Academic Press, 1978; Athena Scientific, 1996, Chapter 10. https://web.mit.edu/dimitrib/www/soc.html
  • K. J. Åström, Optimal control of Markov processes with incomplete state information, Journal of Mathematical Analysis and Applications 10 (1965) 174–205. https://doi.org/10.1016/0022-247X(65)90154-X
  • C. Striebel, Sufficient statistics in the optimum control of stochastic systems, Journal of Mathematical Analysis and Applications 12 (1965) 576–592. https://doi.org/10.1016/0022-247X(65)90027-2
  • N. Bäuerle and U. Rieder, Markov Decision Processes with Applications to Finance, Springer, 2011, Chapter 5. https://doi.org/10.1007/978-3-642-18324-9
12 thms1 active userReviewed
Markov ChainOperations ResearchProbability·Captain: mikedeng1

On the Stochastic Matrices Associated with Certain Queuing Processes 2: The GI/M/1 Imbedded Chain Is Ergodic iff ρ < 1 and Recurrent iff ρ ≤ 1Research Paper

Motivation

A single-server queue in which customers arrive according to a renewal process and are served in exponentially distributed times is the system GI/M/1. Observed just before successive arrivals, its queue length is a Markov chain on {0,1,2,… }\{0, 1, 2, \dots\}{0,1,2,…}, the imbedded chain introduced by D. G. Kendall (Kendall 1953, Ann. Math. Statist. 24, pp. 338–354). Whether this chain settles into a statistical equilibrium, keeps returning to the empty state without one, or drifts off to infinity is the first question asked about the queue, and every later quantity (stationary queue lengths, waiting-time distributions) presupposes the answer.

F. G. Foster's 1953 paper (Foster 1953) answers it for GI/M/1 and for M/G/1 by a different route from Kendall's direct analysis: it first proves general criteria, stated in terms of solutions of linear equations and inequalities in the transition matrix, for a countable Markov chain to be ergodic, recurrent or transient, and then checks them on the two queueing matrices. The criteria are of independent use; one of them (Theorem 2 of the paper) is now known as Foster's criterion, the starting point of the drift (Lyapunov-function) method for stability of Markov chains and queueing networks.

Timeline. Kendall (1951, J. Roy. Statist. Soc. B 13) studied queue-length processes directly, including a recurrence argument for M/G/1 that Foster's §3 reproduces; Kendall (1953) introduced the imbedded-chain method and, for GI/M/1, proved by it that ρ<1\rho < 1ρ<1 is sufficient for ergodicity (Foster 1953, p. 359); Foster (1953) proved the full classification, ergodic iff ρ<1\rho < 1ρ<1 and recurrent iff ρ≤1\rho \le 1ρ≤1, by the general criteria. This mission treats the GI/M/1 half; a companion mission treats M/G/1.

Setting

A transition matrix on the states {0,1,2,… }\{0, 1, 2, \dots\}{0,1,2,…} is an array [pij][p_{ij}][pij​] of nonnegative reals whose rows sum to 111. For a state jjj, fjjf_{jj}fjj​ is the probability that the chain started at jjj returns to jjj at some later step. The chain is recurrent if fjj=1f_{jj} = 1fjj​=1 for every jjj, transient if fjj<1f_{jj} < 1fjj​<1 for every jjj, and ergodic (recurrent-nonnull, positive recurrent) if moreover every mean recurrence time ∑nnfjj(n)\sum_n n f^{(n)}_{jj}∑n​nfjj(n)​ is finite. Foster's general theorems concern an irreducible chain (every state reachable from every state), assumed aperiodic for simplicity.

The GI/M/1 chain is described by a sequence a=(an)n≥0a = (a_n)_{n \ge 0}a=(an​)n≥0​ of positive numbers with ∑nan=1\sum_n a_n = 1∑n​an​=1: ana_nan​ is the probability that exactly nnn services are completed between two arrivals. With the tails αi=∑j≥i+1aj\alpha_i = \sum_{j \ge i+1} a_jαi​=∑j≥i+1​aj​,

[pij]=[α0a000⋯α1a1a00⋯α2a2a1a0⋯⋮⋮⋮⋮],[p_{ij}] = \begin{bmatrix} \alpha_0 & a_0 & 0 & 0 & \cdots \\ \alpha_1 & a_1 & a_0 & 0 & \cdots \\ \alpha_2 & a_2 & a_1 & a_0 & \cdots \\ \vdots & \vdots & \vdots & \vdots & \end{bmatrix},[pij​]=​α0​α1​α2​⋮​a0​a1​a2​⋮​0a0​a1​⋮​00a0​⋮​⋯⋯⋯​​,

that is pi0=αip_{i0} = \alpha_ipi0​=αi​, pij=ai+1−jp_{ij} = a_{i+1-j}pij​=ai+1−j​ for 1≤j≤i+11 \le j \le i+11≤j≤i+1, and pij=0p_{ij} = 0pij​=0 for j>i+1j > i+1j>i+1. In Lean this matrix is gim1Matrix a. The traffic parameter ρ\rhoρ is defined through its inverse,

ρ−1=∑n=1∞n an∈(0,∞],\rho^{-1} = \sum_{n=1}^{\infty} n\, a_n \in (0, \infty],ρ−1=n=1∑∞​nan​∈(0,∞],

the mean number of service completions per interarrival interval (rhoInv a, and rho a =ρ= \rho=ρ).

Formalization targets

Goal: the classification of GI/M/1 (§4, p. 359)

the chain is ergodic  ⟺  ρ<1,the chain is recurrent  ⟺  ρ≤1.\text{the chain is ergodic} \iff \rho < 1, \qquad \text{the chain is recurrent} \iff \rho \le 1 .the chain is ergodic⟺ρ<1,the chain is recurrent⟺ρ≤1.

Together: ergodic for ρ<1\rho < 1ρ<1, recurrent-null for ρ=1\rho = 1ρ=1, transient for ρ>1\rho > 1ρ>1. The statement carries no constants and leaves the sequence aaa free apart from positivity and normalization.

Milestones

  1. Theorem 7 (p. 358): for a probability distribution {pn}\{p_n\}{pn​} with p0>0p_0 > 0p0​>0, the equation ∑n≥0znpn=z\sum_{n \ge 0} z^n p_n = z∑n≥0​znpn​=z has a root in (0,1)(0, 1)(0,1) iff ∑n≥1npn>1\sum_{n\ge1} n p_n > 1∑n≥1​npn​>1.
  2. Theorem 1, sufficiency (p. 355): a nonnull solution of ∑ixipij=xj\sum_i x_i p_{ij} = x_j∑i​xi​pij​=xj​ with ∑i∣xi∣<∞\sum_i |x_i| < \infty∑i​∣xi​∣<∞ makes the system ergodic.
  3. Theorem 1, necessity (p. 355): in an ergodic system every nonnegative solution of ∑ixipij≤xj\sum_i x_i p_{ij} \le x_j∑i​xi​pij​≤xj​ has ∑ixi<∞\sum_i x_i < \infty∑i​xi​<∞.
  4. Theorem 4 (pp. 356–357): the system is transient iff ∑jpijyj=yi\sum_j p_{ij} y_j = y_i∑j​pij​yj​=yi​ (i≠0i \ne 0i=0) has a bounded nonconstant solution.

Milestones 2–4 are stated for a general irreducible aperiodic chain.

Significance

The classification tells exactly when the GI/M/1 queue is stable: the stationary distribution of the imbedded chain, which is geometric, exists precisely in the ergodic case ρ<1\rho < 1ρ<1, and for ρ>1\rho > 1ρ>1 the queue grows without bound. Theorems 1 and 4 are general tools, reusable for any countable chain: Theorem 1 characterizes ergodicity by summable invariant vectors, Theorem 4 characterizes transience by bounded harmonic functions off one state. Theorem 7 is the extinction criterion of branching processes and recurs throughout applied probability.

All of these results are proved in the literature (Foster 1953; Feller's textbook for Theorem 7 and a version of Theorem 4). As far as a search of the platform shows, none of them has a machine-checked proof; the platform holds related special cases for the G/M/1 queue with a specific interarrival law (QueueingFundamentals.GM1.unique_root_unit_interval, open), but not the general lemma or the classification. A formalization would provide the general criteria as reusable library results and the first verified stability classification of a non-Markovian queue's imbedded chain.

Difficulty

The matrix is explicit, but none of the three properties is a finite computation: ergodicity and recurrence are statements about return times over all horizons, so each direction must go through an existence or nonexistence statement about infinite systems of equations. For the converse directions the obvious argument fails: exhibiting a candidate solution such as xi≡1x_i \equiv 1xi​≡1 shows nothing until it is known that ergodicity forces every such solution to be summable, and showing that no bounded nonconstant solution of (7) exists when ρ<1\rho < 1ρ<1 requires control of all solutions, not of one. The general criteria themselves rest on limit theorems for pij(n)p_{ij}^{(n)}pij(n)​ and on interchanging infinite sums, and the infinite-mean case ∑nan=∞\sum n a_n = \infty∑nan​=∞ has to be carried along everywhere.

Formalization scope

  • The Markov-chain vocabulary is the published definition QueueingFundamentals_Foundations_MarkovChain: TransitionMatrix (entries p, nonnegativity, rows summing to 111 via HasSum), returnProb, meanRecurrenceTime, Irreducible, Aperiodic, PositiveRecurrent. "Ergodic" is PositiveRecurrent. IsRecurrent and IsTransient are defined state by state from returnProb; their complementarity for irreducible chains is a theorem, not a definition.
  • States are indexed from 000, as in the paper. The goal quantifies over every TransitionMatrix whose entries equal gim1Matrix a; such a matrix exists for every admissible aaa (rows sum to 111), so the statement is not vacuous.
  • ρ−1\rho^{-1}ρ−1 and ρ\rhoρ live in [0,∞][0, \infty][0,∞] (ℝ≥0∞), with ∞−1=0\infty^{-1} = 0∞−1=0: an infinite mean gives ρ=0\rho = 0ρ=0, and that chain is ergodic.
  • The goal does not assume irreducibility or aperiodicity: they follow from an>0a_n > 0an​>0. Milestones 2–4 carry them, as the paper's standing assumptions (§1).
  • Every infinite series appearing in a hypothesis is required to converge (HasSum or Summable), so that a divergent series cannot satisfy an equation or inequality vacuously. In Theorem 1's sufficiency half the xix_ixi​ may be of either sign. In Theorem 7 the distribution is renamed qqq to avoid a clash with pijp_{ij}pij​.
  • Ruled out as trivializing: defining ρ\rhoρ by a real inverse of a real series, defining "ergodic" as the existence of a summable invariant vector (which is Theorem 1's condition), or stating the goal over a matrix that need not exist.
  • Not included: the paper's explicit description of the solutions of (7) for ρ≥1\rho \ge 1ρ≥1 via the generating function (1−z){A(z)−z}−1(1 - z)\{A(z) - z\}^{-1}(1−z){A(z)−z}−1, and the M/G/1 half (Theorems 2, 3, 5), which is the companion mission. Contributions welcome: proofs of the general criteria (reusable for any countable chain), of Theorem 7, and lemmas on the GI/M/1 matrix such as irreducibility and aperiodicity.

Selected references

  • F. G. Foster, On the stochastic matrices associated with certain queuing processes, Ann. Math. Statist. 24 (1953), 355–360. https://doi.org/10.1214/aoms/1177728976
  • D. G. Kendall, Stochastic processes occurring in the theory of queues and their analysis by the method of the imbedded Markov chain, Ann. Math. Statist. 24 (1953), 338–354 (the paper immediately preceding Foster's in the same issue).
  • D. G. Kendall, Some problems in the theory of queues, J. Roy. Statist. Soc. B 13 (1951), 151–185.
  • W. Feller, An Introduction to Probability Theory and Its Applications, Vol. 1, Wiley, 1950.
8 thms1 active userReviewed
Control TheoryDynamic ProgrammingOperations Research+1·Captain: mikedeng1

Stochastic Optimal Control: The Discrete-Time Case VIII: The Infinite-Horizon Borel Models — the Optimality Equation J* = T(J*) under (P), (N), (D)Textbook

Motivation

Infinite horizon dynamic programming asks for the least expected cost of controlling a stochastic system forever, and for a policy attaining it. On finite or countable state spaces the theory has been classical since Bellman, Blackwell (1965) and Strauch (1966). Many models in operations research, inventory control, queueing and economics have continuous states and controls, however, and there the Bellman equation raises a question the countable theory never meets: the optimal cost need not be Borel-measurable, so its expectation under the transition law, which the equation requires, may not be defined.

Bertsekas and Shreve (1978) settled this question by working with lower semianalytic cost functions and universally measurable policies. In that framework the optimal cost is always measurable enough to be integrated, and the optimality equation holds with no continuity or compactness assumption. Chapter 9 of their book treats the infinite horizon model under the three classical cost structures: nonnegative costs (P), nonpositive costs (N), and bounded discounted costs (D).

Timeline:

  • 1965: Blackwell, discounted dynamic programming on Borel spaces with Borel-measurable data, case (D).
  • 1966: Strauch, negative dynamic programming, case (N), with Borel-measurable data.
  • 1978: Bertsekas and Shreve, Chapter 9: lower semianalytic costs and universally measurable policies, in all three cases (P), (N), (D).
  • 1979: Shreve and Bertsekas, the journal account of universally measurable policies.

Setting

An infinite horizon stochastic optimal control model (SM) is an eight-tuple (S,C,U,W,p,f,α,g)(S, C, U, W, p, f, \alpha, g)(S,C,U,W,p,f,α,g). The state space SSS, the control space CCC and the disturbance space WWW are nonempty Borel spaces, that is, spaces homeomorphic to Borel subsets of complete separable metric spaces. The control constraint UUU assigns to each state xxx a nonempty set U(x)⊆CU(x) \subseteq CU(x)⊆C, and the set Γ={(x,u)∣u∈U(x)}\Gamma = \{(x,u) \mid u \in U(x)\}Γ={(x,u)∣u∈U(x)} is analytic. The disturbance kernel p(dw∣x,u)p(dw \mid x, u)p(dw∣x,u) is a Borel stochastic kernel and the system function f:SCW→Sf : SCW \to Sf:SCW→S is Borel. The discount factor is α>0\alpha > 0α>0, and the one-stage cost g:Γ→[−∞,∞]g : \Gamma \to [-\infty, \infty]g:Γ→[−∞,∞] is lower semianalytic: each sublevel set {g<c}\{g < c\}{g<c} is analytic. The state moves by xk+1=f(xk,uk,wk)x_{k+1} = f(x_k, u_k, w_k)xk+1​=f(xk​,uk​,wk​), with transition kernel t(B∣x,u)=p({w∣f(x,u,w)∈B}∣x,u)t(B \mid x, u) = p(\{w \mid f(x,u,w) \in B\} \mid x, u)t(B∣x,u)=p({w∣f(x,u,w)∈B}∣x,u).

A policy π=(μ0,μ1,… )\pi = (\mu_0, \mu_1, \dots)π=(μ0​,μ1​,…) chooses uku_kuk​ at random from a universally measurable stochastic kernel μk(duk∣x0,u0,…,xk)\mu_k(du_k \mid x_0, u_0, \dots, x_k)μk​(duk​∣x0​,u0​,…,xk​) concentrated on U(xk)U(x_k)U(xk​); Π′\Pi'Π′ is the set of all policies. A policy is Markov if each μk\mu_kμk​ depends only on xkx_kxk​, and it is stationary if, moreover, μk=μ\mu_k = \muμk​=μ for all kkk. Writing qk(π,px)q_k(\pi, p_x)qk​(π,px​) for the law of (xk,uk)(x_k, u_k)(xk​,uk​) started from x0=xx_0 = xx0​=x, the cost of π\piπ and the optimal cost are

Jπ(x)=∑k=0∞αk∫g dqk(π,px),J∗(x)=inf⁡π∈Π′Jπ(x).J_\pi(x) = \sum_{k=0}^\infty \alpha^k \int g\, dq_k(\pi, p_x), \qquad J^*(x) = \inf_{\pi \in \Pi'} J_\pi(x).Jπ​(x)=k=0∑∞​αk∫gdqk​(π,px​),J∗(x)=π∈Π′inf​Jπ​(x).

For J:S→[−∞,∞]J : S \to [-\infty, \infty]J:S→[−∞,∞], the dynamic programming operators are

T(J)(x)=inf⁡u∈U(x){g(x,u)+α∫SJ(x′) t(dx′∣x,u)},Tμ(J)(x)=∫C[g(x,u)+α∫SJ dt]μ(du∣x).T(J)(x) = \inf_{u \in U(x)} \Big\{ g(x,u) + \alpha \int_S J(x')\, t(dx' \mid x, u) \Big\}, \qquad T_\mu(J)(x) = \int_C \Big[ g(x,u) + \alpha \int_S J\, dt \Big] \mu(du \mid x).T(J)(x)=u∈U(x)inf​{g(x,u)+α∫S​J(x′)t(dx′∣x,u)},Tμ​(J)(x)=∫C​[g(x,u)+α∫S​Jdt]μ(du∣x).

The three cases are (P) g≥0g \ge 0g≥0 on Γ\GammaΓ; (N) g≤0g \le 0g≤0 on Γ\GammaΓ; (D) α<1\alpha < 1α<1 and ∣g∣≤b|g| \le b∣g∣≤b on Γ\GammaΓ for some real bbb.

Formalization targets

Goal: the optimality equation (Proposition 9.8, Eq. (22))

Under each of (P), (N) and (D),

J∗=T(J∗).J^* = T(J^*).J∗=T(J∗).

Milestones

  • J∗J^*J∗ is lower semianalytic (Corollary 9.4.1).
  • For a stationary policy, Jμ=Tμ(Jμ)J_\mu = T_\mu(J_\mu)Jμ​=Tμ​(Jμ​) (Proposition 9.9).
  • Optimality tests for stationary policies: under (P) or (D), (μ,μ,… )(\mu, \mu, \dots)(μ,μ,…) is optimal iff J∗=Tμ(J∗)J^* = T_\mu(J^*)J∗=Tμ​(J∗) (Proposition 9.12); under (N) or (D), iff Jμ=T(Jμ)J_\mu = T(J_\mu)Jμ​=T(Jμ​) (Proposition 9.13).
  • Under (N) or (D), value iteration from 000 converges to J∗J^*J∗, and under (D) it converges uniformly from every bounded lower semianalytic start (Proposition 9.14).

Further statements of the mission

  • Markov policies suffice: at each state some Markov policy matches any policy's cost (Proposition 9.1), so J∗=inf⁡π∈ΠJπJ^* = \inf_{\pi \in \Pi} J_\piJ∗=infπ∈Π​Jπ​ (Corollary 9.1.1).
  • Partial converses of the optimality equation: J≥T(J)J \ge T(J)J≥T(J), J≥0J \ge 0J≥0 gives J≥J∗J \ge J^*J≥J∗ under (P); J≤T(J)J \le T(J)J≤T(J), J≤0J \le 0J≤0 gives J≤J∗J \le J^*J≤J∗ under (N); a bounded solution of J=T(J)J = T(J)J=T(J) equals J∗J^*J∗ under (D) (Proposition 9.10). The analogous statements for TμT_\muTμ​ and JμJ_\muJμ​ (Proposition 9.11).

Significance

The optimality equation is the basic structural fact of infinite horizon control. Corollary 9.12.1 uses it to construct optimal stationary policies from minimizers in the equation. The existence results for ε\varepsilonε-optimal policies (Propositions 9.19 and 9.20), the convergence analysis of value iteration in Section 9.5, and the reduction of imperfect state information problems in Chapter 10 all build on it. It holds for arbitrary Borel models, with no continuity or compactness assumption.

All results of the mission were proved in 1978. None of them has a machine-checked proof: Mathlib has stochastic kernels and the Ionescu-Tulcea construction for measurable kernels, but no theory of lower semianalytic functions, universally measurable kernels, or dynamic programming on Borel spaces. A formal development would fix the measurability bookkeeping on which the textbook proofs rest and supply a reusable substrate for the stochastic control papers that cite this book.

Difficulty

Under (D), TTT is a contraction on bounded functions, and its fixed point is the limit of value iteration. That argument, however, gives a fixed point only within a fixed class of measurable functions. Showing that this fixed point equals J∗J^*J∗ requires knowing that J∗J^*J∗ belongs to the class and that history-dependent randomized policies do no better. Under (P), value iteration can converge to the wrong limit (Example 1 of the chapter: lim⁡kJk(0)=0\lim_k J_k(0) = 0limk​Jk​(0)=0 while J∗(0)=∞J^*(0) = \inftyJ∗(0)=∞). Even when each JkJ_kJk​ is Borel, J∗J^*J∗ may fail to be (Example 2). So J∗=T(J∗)J^* = T(J^*)J∗=T(J∗) cannot be obtained as a limit of the finite horizon equations, and the natural class of Borel functions is not closed under the partial minimization that defines TTT.

The book's route lifts (SM) to a deterministic model on the space of probability measures P(S)P(S)P(S), where no measurability restriction is needed, and transfers the results back. Making this transfer rigorous requires that the cost of a randomized policy be a measurable functional of its law, and that the infimum over policies preserve lower semianalyticity.

Formalization scope

The draft fixes the following conventions.

  • Spaces. Borel spaces are topological spaces homeomorphic to Borel subsets of complete separable metric spaces, carrying their Borel σ\sigmaσ-algebras. Analytic sets are Mathlib's AnalyticSet. A set is universally measurable if it is null-measurable for every probability measure.
  • Extended reals. Values lie in EReal. The book's convention ∞−∞=−∞+∞=∞\infty - \infty = -\infty + \infty = \infty∞−∞=−∞+∞=∞ is implemented explicitly, because Mathlib's EReal sets ⊥+⊤=⊥\bot + \top = \bot⊥+⊤=⊥. The integral of an extended-real function is ∫f+−∫f−\int f^+ - \int f^-∫f+−∫f− with the same convention.
  • Policies. These are sequences of universally measurable stochastic kernels on the history spaces S0C0⋯SkS_0C_0 \cdots S_kS0​C0​⋯Sk​, charging U(xk)U(x_k)U(xk​) with mass one. The laws of (x0,u0,…,xk,uk)(x_0, u_0, \dots, x_k, u_k)(x0​,u0​,…,xk​,uk​) are built recursively from the kernels.
  • Costs. JπJ_\piJπ​ is the series ∑kαk∫g dqk\sum_k \alpha^k \int g\, dq_k∑k​αk∫gdqk​, computed as the difference of the series of positive and negative parts. Under each of (P), (N), (D) it coincides with the integral of the total discounted cost. J∗J^*J∗ is the infimum over all policies.
  • Case labels. Each statement carries the case labels the book attaches to it, as hypotheses on the model.
  • Scope. Only the (SM) statements are formalized. The deterministic model (DM) on P(S)P(S)P(S) is the book's proof device and enters no statement.

The goal admits a trivializing formalization that this draft rules out. J∗J^*J∗ is not defined as a fixed point of TTT, nor as the limit of Tk(0)T^k(0)Tk(0); it is the infimum of the costs of all policies, which under (P) can differ from that limit.

A complete development needs universally measurable kernels and their compositions on product spaces, measurability of x↦∫f(x,y) q(dy∣x)x \mapsto \int f(x, y)\, q(dy \mid x)x↦∫f(x,y)q(dy∣x) for universally measurable integrands, the measurable selection theorem of Jankov and von Neumann, and the closure of lower semianalytic functions under partial infimum. These are the subject of the series' mission on Chapter 7, and they are reusable for any stochastic control model on Borel spaces. Contributions are welcome at any level: these foundations, the Markov reduction (Proposition 9.1), or the case-by-case arguments.

Selected references

  • D. P. Bertsekas and S. E. Shreve, Stochastic Optimal Control: The Discrete-Time Case, Academic Press, 1978; Athena Scientific reprint, 1996. Chapter 9. https://web.mit.edu/dimitrib/www/soc.html
  • 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
  • S. E. Shreve and D. P. Bertsekas, Universally measurable policies in dynamic programming, Mathematics of Operations Research 4 (1979), 15–30. https://doi.org/10.1287/moor.4.1.15
15 thms1 active userReviewed
Control TheoryDynamic ProgrammingOperations Research+1·Captain: mikedeng1

Stochastic Optimal Control: The Discrete-Time Case VII: The Finite-Horizon Borel Model — over Universally Measurable Policies J*_K = T^K(J_0)Textbook

Motivation

Finite-horizon stochastic control on general state and control spaces — inventory levels, queue lengths, positions, beliefs — cannot be written down without measure theory, and the measure theory turns out to be the hard part. The dynamic programming (DP) recursion "start from zero and minimise one stage at a time" is easy to state, but on uncountable spaces the minimisation in each step produces functions that need not be Borel-measurable, and the infimum over policies has to be taken over a class large enough to contain near-minimisers. Bertsekas and Shreve's Stochastic Optimal Control: The Discrete-Time Case (1978; Athena reprint 1996) resolved this by working with universally measurable policies and lower semianalytic costs. Chapter 8 is the finite-horizon core of that theory, and the infinite-horizon results of Chapter 9 and the imperfect-information reduction of Chapter 10 are built on it.

Timeline. Blackwell (1965) treated discounted problems on Borel spaces with bounded costs and Borel policies, where ε-optimal Borel policies may fail to exist. Strauch (1966) studied positive and negative models. Blackwell, Freedman and Orkin (1974) introduced analytic sets and analytically measurable policies into DP. Bertsekas and Shreve (1978, Chapters 7–8) gave the universally measurable finite-horizon theory formalized here, including the unbounded-cost assumptions (F⁺)/(F⁻).

Setting

A finite horizon stochastic optimal control model is a nine-tuple (S,C,U,W,p,f,α,g,N)(S,C,U,W,p,f,\alpha,g,N)(S,C,U,W,p,f,α,g,N). The state space SSS, control space CCC and disturbance space WWW are nonempty Borel spaces (topological spaces homeomorphic to Borel subsets of complete separable metric spaces). The constraint U(x)⊆CU(x)\subseteq CU(x)⊆C is nonempty and Γ={(x,u)∣u∈U(x)}\Gamma=\{(x,u)\mid u\in U(x)\}Γ={(x,u)∣u∈U(x)} is analytic in S×CS\times CS×C. Disturbances are drawn from a Borel stochastic kernel p(dw∣x,u)p(dw\mid x,u)p(dw∣x,u), the system moves by xk+1=f(xk,uk,wk)x_{k+1}=f(x_k,u_k,w_k)xk+1​=f(xk​,uk​,wk​) with fff Borel, the discount factor α\alphaα is a positive real, the one-stage cost g:Γ→[−∞,∞]g:\Gamma\to[-\infty,\infty]g:Γ→[−∞,∞] is lower semianalytic ({g<c}\{g<c\}{g<c} is analytic for every real ccc), and N≥1N\ge1N≥1 is the horizon. The state transition kernel is t(B∣x,u)=p({w∣f(x,u,w)∈B}∣x,u)t(B\mid x,u)=p(\{w\mid f(x,u,w)\in B\}\mid x,u)t(B∣x,u)=p({w∣f(x,u,w)∈B}∣x,u).

A set is universally measurable if it is measurable for the completion of the Borel σ-algebra under every probability measure. A policy π=(μ0,…,μN−1)\pi=(\mu_0,\dots,\mu_{N-1})π=(μ0​,…,μN−1​) chooses uku_kuk​ from a universally measurable stochastic kernel μk(duk∣x0,u0,…,xk)\mu_k(du_k\mid x_0,u_0,\dots,x_k)μk​(duk​∣x0​,u0​,…,xk​) concentrated on U(xk)U(x_k)U(xk​); it is Markov if μk\mu_kμk​ depends on xkx_kxk​ only, and nonrandomized if every μk(⋅∣⋅)\mu_k(\cdot\mid\cdot)μk​(⋅∣⋅) is a point mass. Π′\Pi'Π′ denotes all policies and Π\PiΠ the Markov ones. A policy and an initial distribution ppp determine a probability measure rN(π,p)r_N(\pi,p)rN​(π,p) on state–control paths, and the KKK-stage cost and optimal cost are

JK,π(x)=∫[∑k=0K−1αkg(xk,uk)]drN(π,px),JK∗(x)=inf⁡π∈Π′JK,π(x).J_{K,\pi}(x)=\int\Big[\sum_{k=0}^{K-1}\alpha^k g(x_k,u_k)\Big]dr_N(\pi,p_x),\qquad J^*_K(x)=\inf_{\pi\in\Pi'}J_{K,\pi}(x).JK,π​(x)=∫[k=0∑K−1​αkg(xk​,uk​)]drN​(π,px​),JK∗​(x)=π∈Π′inf​JK,π​(x).

Assumption (F⁺) requires ∫g− dqk(π,px)<∞\int g^-\,dq_k(\pi,p_x)<\infty∫g−dqk​(π,px​)<∞, and (F⁻) requires ∫g+ dqk(π,px)<∞\int g^+\,dq_k(\pi,p_x)<\infty∫g+dqk​(π,px​)<∞, for every policy, initial state and stage, where qkq_kqk​ is the marginal of rNr_NrN​ on the kkk-th pair. The DP operators are

Tμ(J)(x)=∫C[g(x,u)+α ⁣∫SJ dt(⋅∣x,u)]μ(du∣x),T(J)(x)=inf⁡u∈U(x){g(x,u)+α ⁣∫SJ dt(⋅∣x,u)}.T_\mu(J)(x)=\int_C\Big[g(x,u)+\alpha\!\int_S J\,dt(\cdot\mid x,u)\Big]\mu(du\mid x),\qquad T(J)(x)=\inf_{u\in U(x)}\Big\{g(x,u)+\alpha\!\int_S J\,dt(\cdot\mid x,u)\Big\}.Tμ​(J)(x)=∫C​[g(x,u)+α∫S​Jdt(⋅∣x,u)]μ(du∣x),T(J)(x)=u∈U(x)inf​{g(x,u)+α∫S​Jdt(⋅∣x,u)}.

Formalization targets

Goal: Proposition 8.2

JK∗=TK(J0),K=1,…,N,J^*_K=T^K(J_0),\qquad K=1,\dots,N,JK∗​=TK(J0​),K=1,…,N,

under (F⁺) or (F⁻), where J0≡0J_0\equiv0J0​≡0. The goal leaves the horizon, the discount factor and the sign of ggg unrestricted beyond (F⁺)/(F⁻), and it compares an infimum over all history-dependent randomized policies with a pointwise recursion.

Milestones

In attack order: Lemma 8.1 (the cost of a Markov policy equals Tμ0⋯TμK−1(J0)T_{\mu_0}\cdots T_{\mu_{K-1}}(J_0)Tμ0​​⋯TμK−1​​(J0​)), Proposition 8.1 and Corollary 8.1.1 (Markov policies suffice), Lemma 8.2 (an ε-optimal universally measurable kernel for one application of TTT), Lemma 8.3 (under (F⁺), TK(J0)>−∞T^K(J_0)>-\inftyTK(J0​)>−∞), Lemma 8.4 (monotone and bounded convergence for TμT_\muTμ​). Two consequences of the goal complete the chapter's existence theory: Corollary 8.2.1 (JK∗J^*_KJK∗​ is lower semianalytic) and Proposition 8.3 (ε-optimal nonrandomized Markov policies under (F⁺); nonrandomized semi-Markov and randomized Markov ones under (F⁻)).

Significance

Proposition 8.2 says the DP algorithm computes the true optimal cost of the Borel model, with no restriction to Markov or nonrandomized policies and with costs that may be unbounded in either direction. Corollary 8.2.1 identifies the regularity of the value function — lower semianalytic, possibly not Borel (Example 1 of Chapter 8) — and Proposition 8.3 turns the recursion into near-optimal policies. These results are the base case for the infinite-horizon theory of Chapter 9 (positive, negative and discounted models are analysed as limits of finite-horizon problems) and for the sufficient-statistic reduction of Chapter 10.

All results here are proved in the book. None is formalized: the platform has finite-state, finite-action DP theorems and Borel models with Borel-measurable policies, but no universally measurable policies, no lower semianalytic costs and no Ionescu-Tulcea construction for universally measurable kernels. The mission poses the finite-horizon Borel theory, with reusable infrastructure: the universal σ-algebra, universally measurable kernels, iterated path integrals representing integration against the induced path measure, and the operator calculus on extended-real functions with the convention ∞−∞=∞\infty-\infty=\infty∞−∞=∞.

Difficulty

The obvious argument fails at measurability. On countable spaces, Proposition 8.2 follows from the Part I argument: induct on KKK, choose near-minimising controls state by state, assemble them into a policy. On Borel spaces, a pointwise choice of near-minimisers is not a policy unless it is measurable, and T(J)T(J)T(J) is generally not Borel even when JJJ and ggg are; Borel policies are too few for ε\varepsilonε-optimal ones to exist. The book's way out needs the selection theorem for lower semianalytic functions (Proposition 7.50), integration of universally measurable functions against universally measurable kernels (Propositions 7.45–7.46), and care with infinite values: without (F⁺) or (F⁻), the integral of the stage sum and the sum of the stage integrals can disagree, and Lemma 8.1 fails.

Formalization scope

Lean conventions:

  • Spaces carry [TopologicalSpace X] [MeasurableSpace X] [BorelSpace X] [IsBorelSpace X] [Nonempty X]. IsBorelSpace is the book's Definition 7.7.
  • Extended reals are EReal. Addition inside costs and integrands uses the book's convention −∞+∞=+∞-\infty+\infty=+\infty−∞+∞=+∞ (badd), not Mathlib's, which gives ⊥+⊤=⊥\bot+\top=\bot⊥+⊤=⊥. Integrals are ∫f+−∫f−\int f^+-\int f^-∫f+−∫f− with ∞−∞=∞\infty-\infty=\infty∞−∞=∞ (extInt).
  • The universal σ-algebra is the intersection of all completions (universalSigma). Kernels are universally measurable in the sense of Lemma 7.28(b).
  • The integral against rN(π,p)r_N(\pi,p)rN​(π,p) is the iterated integral of Eq. (4) of Chapter 8 (pathInt).
  • Stages are indexed 0,…,N−10,\dots,N-10,…,N−1, and a history is kkk state–control pairs plus the current state.
  • ggg is stored on S×CS\times CS×C, but only its values on Γ\GammaΓ are constrained or used.

A trivializing formalization is excluded by construction. JK∗J^*_KJK∗​ is the infimum over all policies in Π′\Pi'Π′, not over Markov or nonrandomized ones. JK,πJ_{K,\pi}JK,π​ is the integral of the stage sum against the path measure, never the operator composition of Lemma 8.1, so the goal does not collapse to the Part I result.

A complete development needs:

  • the analytic-set and universal-measurability theory of §7.6–7.7: closure of analytic sets under projections and sections, measurability of integrals against universally measurable kernels (Proposition 7.46), and the selection theorem (Proposition 7.50);
  • extended-real integration lemmas in the style of Lemma 7.11.

This infrastructure is reusable for the infinite-horizon Borel models (Chapter 9), for the imperfect-information reduction (Chapter 10), and for papers that cite this book. Contributions of these supporting lemmas as separate theorems are welcome.

Selected references

  • D. P. Bertsekas and S. E. Shreve, Stochastic Optimal Control: The Discrete-Time Case, Academic Press, 1978; Athena Scientific reprint, 1996, Chapter 8. https://web.mit.edu/dimitrib/www/soc.html
  • D. Blackwell, Discounted dynamic programming, Ann. Math. Statist. 36 (1965), 226–235. https://doi.org/10.1214/aoms/1177700285
  • R. E. Strauch, Negative dynamic programming, Ann. Math. Statist. 37 (1966), 871–890. https://doi.org/10.1214/aoms/1177699369
  • D. Blackwell, D. Freedman and M. Orkin, The optimal reward operator in dynamic programming, Ann. Probab. 2 (1974), 926–941. https://doi.org/10.1214/aop/1176996558
  • S. E. Shreve and D. P. Bertsekas, Universally measurable policies in dynamic programming, Math. Oper. Res. 4 (1979), 15–30. https://doi.org/10.1287/moor.4.1.15
14 thms1 active userReviewed
CombinatoricsMarkov ChainOperations Research+1·Captain: mikedeng1

Reversibility and Stochastic Networks VI: The Ewens Sampling Distribution Is Consistent Under Sampling Without ReplacementTextbook

Motivation

The neutral theory of molecular evolution holds that much of the genetic variation observed at the molecular level is caused by selectively neutral mutations rather than by selection. To test it against data one needs the distribution of allele frequencies that a neutral model predicts, and in practice that distribution has to be compared with a sample from the population, never with the whole population. Ewens (Ewens 1972) derived the equilibrium distribution of allele counts under the infinite alleles model, now called the Ewens sampling formula; it underlies classical tests of neutrality and appears throughout combinatorics and probability as the law of the cycle type of an Ewens-distributed random permutation and of the Chinese restaurant process.

Chapter 7 of F. P. Kelly, Reversibility and Stochastic Networks (Wiley, 1979) obtains the infinite alleles model as a limit of the reversible migration processes of Chapters 2 and 6, and uses reversibility to answer questions about allele ages and fixation. The mission formalizes the finite, combinatorial results of that chapter.

Timeline. Kimura and Crow (1964) introduced the infinite alleles model. Ewens (1972) found its equilibrium sampling distribution (7.6). Kingman (1978, J. London Math. Soc.) characterized the consistency of random partitions under sampling, the property Theorem 7.1 asserts for the Ewens family. Kelly (1979, Chapter 7) derived (7.6) as a limit of reversible migration processes, and the consistency and the allele-age results from the reversibility of a labelled population process.

Setting

A population consists of M≥2M\ge2M≥2 individuals, each carrying an allelic type. Its description is M=(M1,…,MM)\mathbf M=(M_1,\dots,M_M)M=(M1​,…,MM​), where MiM_iMi​ is the number of allelic types carried by exactly iii individuals, so that

∑i=1MiMi=M.(7.3)\sum_{i=1}^{M} iM_i=M. \qquad (7.3)i=1∑M​iMi​=M.(7.3)

For a real parameter ν>0\nu>0ν>0, the Ewens distribution on descriptions is

πM(M)=(ν+M−1M)−1∏i=1M(νi)Mi1Mi!,(7.6)\pi_M(\mathbf M)=\binom{\nu+M-1}{M}^{-1}\prod_{i=1}^{M}\Big(\frac{\nu}{i}\Big)^{M_i}\frac{1}{M_i!}, \qquad (7.6)πM​(M)=(Mν+M−1​)−1i=1∏M​(iν​)Mi​Mi​!1​,(7.6)

where (xk)=x(x−1)⋯(x−k+1)/k!\binom{x}{k}=x(x-1)\cdots(x-k+1)/k!(kx​)=x(x−1)⋯(x−k+1)/k! is the binomial coefficient for real xxx. In the infinite alleles model, individuals die at rate μ\muμ, each death is followed by the birth of an offspring of a uniformly chosen survivor, and the offspring is a mutant of an entirely new type with probability uuu; then (7.6) is the equilibrium distribution with ν=(M−1)u/(1−u)\nu=(M-1)u/(1-u)ν=(M−1)u/(1−u) (7.5).

A random sample of size 1≤m≤M1\le m\le M1≤m≤M without replacement is a uniformly random mmm-element subset of the MMM labelled individuals, each of the (Mm)\binom Mm(mM​) subsets being equally likely; the sample has a description in the same sense.

The number jjj of individuals carrying one given allele performs a random walk on {0,…,M}\{0,\dots,M\}{0,…,M} with intensities

q(j,j−1)=μjM(M−jM−1+j−1M−1u),q(j,j+1)=μM−jMjM−1(1−u).(7.8)q(j,j-1)=\mu\frac jM\Big(\frac{M-j}{M-1}+\frac{j-1}{M-1}u\Big),\qquad q(j,j+1)=\mu\frac{M-j}{M}\frac{j}{M-1}(1-u). \qquad (7.8)q(j,j−1)=μMj​(M−1M−j​+M−1j−1​u),q(j,j+1)=μMM−j​M−1j​(1−u).(7.8)

An allele is quasi-fixed when it is the only allele present (j=Mj=Mj=M).

Formalization targets

Goal: consistency under sampling (Theorem 7.1)

If M≥2M\ge2M≥2 and the population description is distributed as πM\pi_MπM​, then a random sample of size 1≤m≤M1\le m\le M1≤m≤M drawn without replacement has description m\mathbf mm with probability πm(m)\pi_m(\mathbf m)πm​(m), the same ν\nuν being used for both sizes:

∑MπM(M) P(sample has description m∣population has description M)=πm(m).\sum_{\mathbf M}\pi_M(\mathbf M)\,P\big(\text{sample has description }\mathbf m\mid\text{population has description }\mathbf M\big)=\pi_m(\mathbf m).M∑​πM​(M)P(sample has description m∣population has description M)=πm​(m).

Milestones

  1. (7.6) is a distribution: πM(M)>0\pi_M(\mathbf M)>0πM​(M)>0 and ∑MπM(M)=1\sum_{\mathbf M}\pi_M(\mathbf M)=1∑M​πM​(M)=1 (Exercise 7.1.3).
  2. Theorem 7.1 for m=M−1m=M-1m=M−1, the case the book's proof establishes first.
  3. Corollary 7.5, the identity of its proof: the probability that a uniformly chosen individual's allele is carried by exactly iii individuals is
∑MiMiMπM(M)=νM(ν+M−1i)−1(Mi).(7.9)\sum_{\mathbf M}\frac{iM_i}{M}\pi_M(\mathbf M)=\frac{\nu}{M}\binom{\nu+M-1}{i}^{-1}\binom Mi. \qquad (7.9)M∑​MiMi​​πM​(M)=Mν​(iν+M−1​)−1(iM​).(7.9)
  1. Theorem 7.9: the probability QQQ that the walk (7.8) started at 111 reaches MMM before 000 satisfies
Q−1=∑i=0M−1(M−1i)−1(ν+M−1i).Q^{-1}=\sum_{i=0}^{M-1}\binom{M-1}{i}^{-1}\binom{\nu+M-1}{i}.Q−1=i=0∑M−1​(iM−1​)−1(iν+M−1​).

Significance

The results. Consistency under sampling is what makes the Ewens formula usable as a statistical model: the predicted distribution for an observed sample does not depend on the unknown population size, only on ν\nuν. Kelly deduces from it the sufficiency of the number of alleles in a sample for ν\nuν and the heterozygosity ν/(ν+1)\nu/(\nu+1)ν/(ν+1) (Exercises 7.1.5, 7.1.8). The formula (7.9) gives the equilibrium frequency of the oldest allele, and Theorem 7.9 gives the quasi-fixation probability from which the mean time between quasi-fixations follows (Corollary 7.10).

Formalizing them. All four results are classical and proved; none has a machine-checked proof on the platform or in Mathlib as of this writing. The mission produces a reusable formal Ewens distribution over integer partitions, a definition of sampling without replacement by counting labelled subsets, and an absorption probability for an explicit birth–death walk. Proofs independent of Kelly's process argument are welcome.

Difficulty

The book's proof of Theorem 7.1 is a process argument: in a population whose size fluctuates between M−1M-1M−1 and MMM, a drop in size acts as a random deletion, and the truncated equilibrium (7.7) restricted to each size gives πM−1\pi_{M-1}πM−1​ and πM\pi_MπM​. Turning that into a statement about finite sets requires the equilibrium of a truncated reversible process, which is not available here, so a formal proof must either build that process or find a direct combinatorial route. A direct route has to relate, for each description of the sample, the number of mmm-subsets of a labelled population with a given description to products of binomial coefficients, and sum the result against (7.6); the bookkeeping over partitions is where the work lies. Theorem 7.9 needs a solution of the first-step equations of a non-symmetric walk and the identification of that solution with a hitting probability defined as a limit.

Formalization scope

  • Descriptions of nnn individuals are integer partitions Nat.Partition n, with MiM_iMi​ the multiplicity of the part iii; the product in (7.6) runs over i=1,…,ni=1,\dots,ni=1,…,n. The real binomial coefficient is the published definition AppliedComb.GenFun.binomReal.
  • The population is Fin M with allelic types Fin M → ℕ; the description of a labelled set is computed from the labelling. The sampling probability is (Mm)−1\binom Mm^{-1}(mM​)−1 times the number of mmm-subsets whose restricted labelling has the given description. It is not defined by a formula on descriptions, and a definition that removed individuals one at a time in proportion to class sizes (the book's proof route) is ruled out as a definition because it presupposes the reduction the proof must supply.
  • The goal and Corollary 7.5 quantify over an arbitrary choice of labelling for each population description. They assume M≥2M\ge2M≥2, as required by the chapter's rule that a parent is chosen among the other M−1M-1M−1 individuals; the goal also assumes 1≤m≤M1\le m\le M1≤m≤M. Because πM>0\pi_M>0πM​>0, this forces the conditional sampling law to depend on the population only through its description. Types are natural numbers, so every description is realized and the hypothesis is never vacuous.
  • The quasi-fixation probability is defined through the jump chain of (7.8): the limit of the probabilities of reaching MMM within nnn jumps without reaching 000. The theorem assumes M≥2M\ge2M≥2, μ>0\mu>0μ>0, 0<u<10<u<10<u<1 and ν=(M−1)u/(1−u)\nu=(M-1)u/(1-u)ν=(M−1)u/(1−u).
  • Corollary 7.5 is formalized as the identity of its proof. The identification of the oldest allele's frequency with that of a randomly chosen individual uses allele ages and the reversibility of the labelled process (Theorem 7.2) and is not formalized. Theorem 7.2 itself, whose state space orders the allele labels within each class, and the allele-age results (Corollaries 7.3, 7.4, 7.7, 7.8, Theorem 7.6, Corollary 7.10, Theorem 7.11) are not part of the mission.

Contributions of general partition and sampling lemmas (counting subsets with a given description, the generating function identity (1−x)−ν=∏jeνxj/j(1-x)^{-\nu}=\prod_j e^{\nu x^j/j}(1−x)−ν=∏j​eνxj/j) are reusable beyond this mission.

Selected references

  • F. P. Kelly, Reversibility and Stochastic Networks, Wiley, 1979, Chapter 7. https://www.statslab.cam.ac.uk/~frank/BOOKS/kelly_book.html
  • W. J. Ewens, The sampling theory of selectively neutral alleles, Theoretical Population Biology 3 (1972), 87–112. https://doi.org/10.1016/0040-5809(72)90035-4
  • J. F. C. Kingman, The representation of partition structures, Journal of the London Mathematical Society (2) 18 (1978), 374–380. https://doi.org/10.1112/jlms/s2-18.2.374
  • M. Kimura and J. F. Crow, The number of alleles that can be maintained in a finite population, Genetics 49 (1964), 725–738. https://doi.org/10.1093/genetics/49.4.725
9 thms1 active userReviewed
Operations ResearchProbabilityTheoretical Computer Science·Captain: mikedeng1

Approximation Algorithms for Stochastic Inventory Control Models 1: The Dual-Balancing Policy Costs at Most Twice the OptimumResearch Paper

Motivation

Periodic-review inventory control with backorders is one of the basic models of operations research: in each period a manager decides how much to order, orders arrive after a lead time, unmet demand is backlogged at a penalty, and stock left over is charged a holding cost. When demands in different periods are independent, dynamic programming yields an optimal base-stock policy and computing it is tractable. In practice demands are correlated and forecasts evolve over time, for example under the martingale model of forecast evolution (Heath and Jackson, 1994, doi:10.1080/07408179408966604). The dynamic program then has to range over all possible information states, whose number is typically exponential in the input (Zipkin, 2000), so optimal policies are out of reach and the heuristics in use came without performance guarantees.

Levi, Pál, Roundy and Shmoys (Math. Oper. Res. 32(2):284–302, 2007) gave the first policy for this model with a worst-case guarantee that holds for arbitrary correlated, nonstationary demand distributions: the dual-balancing policy costs at most twice the optimum in expectation. The analysis rests on a marginal cost accounting that charges each order, at the time it is placed, all the holding cost its units will ever incur. This mission formalizes that guarantee.

Setting

There are TTT periods t=1,…,Tt = 1, \dots, Tt=1,…,T and a known lead time L≥0L \ge 0L≥0: an order placed in period ttt arrives in period t+Lt + Lt+L. Period ttt has a per-unit holding cost ht≥0h_t \ge 0ht​≥0 and a per-unit backlogging penalty pt≥0p_t \ge 0pt​≥0. Ordering costs are zero (ct=0c_t = 0ct​=0), which is the standing assumption of the paper's §4. The initial data are the net inventory ni0ni_0ni0​ and the pipeline orders q1−L,…,q0≥0q_{1-L}, \dots, q_0 \ge 0q1−L​,…,q0​≥0.

Demands D1,…,DTD_1, \dots, D_TD1​,…,DT​ are nonnegative random variables on a probability space with a filtration (Ft)(\mathcal F_t)(Ft​); Ft\mathcal F_tFt​ is the information at the beginning of period ttt, and DtD_tDt​ is Ft+1\mathcal F_{t+1}Ft+1​-measurable. A feasible policy PPP places orders QtP≥0Q^P_t \ge 0QtP​≥0 that are Ft\mathcal F_tFt​-measurable. Write D[s,t]=∑j=stDjD_{[s,t]} = \sum_{j=s}^t D_jD[s,t]​=∑j=st​Dj​ (with Dj=0D_j = 0Dj​=0 for j≤0j \le 0j≤0), Xt=ni0+∑j=1−Lt−1Qj−D[1,t−1]X_t = ni_0 + \sum_{j=1-L}^{t-1} Q_j - D_{[1,t-1]}Xt​=ni0​+∑j=1−Lt−1​Qj​−D[1,t−1]​ for the inventory position before ordering and Yt=Xt+QtY_t = X_t + Q_tYt​=Xt​+Qt​ after ordering.

The marginal holding cost of period ttt is the holding cost that the units ordered in ttt incur until the end of the horizon, and the marginal backlogging cost is the penalty incurred one lead time later:

HtP=∑j=t+LThj (QtP−(D[t,j]−XtP)+)+,ΠtP=pt+L (D[t,t+L]−YtP)+.H^P_t = \sum_{j=t+L}^{T} h_j\,\bigl(Q^P_t - (D_{[t,j]} - X^P_t)^+\bigr)^+, \qquad \Pi^P_t = p_{t+L}\,\bigl(D_{[t,t+L]} - Y^P_t\bigr)^+ .HtP​=j=t+L∑T​hj​(QtP​−(D[t,j]​−XtP​)+)+,ΠtP​=pt+L​(D[t,t+L]​−YtP​)+.

The cost of PPP is C(P)=∑t=1T−L(HtP+ΠtP)\mathcal C(P) = \sum_{t=1}^{T-L}(H^P_t + \Pi^P_t)C(P)=∑t=1T−L​(HtP​+ΠtP​); by Eq. (3) it differs from the total holding and backlogging cost only by a policy-independent nonnegative term.

A dual-balancing policy BBB orders nothing after period T−LT - LT−L, and in each period t≤T−Lt \le T - Lt≤T−L orders the quantity that balances the two conditional expected marginal costs:

E[HtB∣Ft]=E[ΠtB∣Ft]almost surely.E\bigl[H^B_t \mid \mathcal F_t\bigr] = E\bigl[\Pi^B_t \mid \mathcal F_t\bigr] \quad\text{almost surely.}E[HtB​∣Ft​]=E[ΠtB​∣Ft​]almost surely.

Formalization targets

Goal: Theorem 4.1

For every dual-balancing policy BBB and every feasible policy PPP,

E[C(B)]  ≤  2 E[C(P)].E[\mathcal C(B)] \;\le\; 2\,E[\mathcal C(P)] .E[C(B)]≤2E[C(P)].

The paper writes P=OPTP = OPTP=OPT; quantifying over all feasible PPP is the same statement whenever an optimum exists and needs no existence assumption.

Milestones

  1. Lemma 4.1. E[C(B)]=2∑t=1T−LE[Zt]E[\mathcal C(B)] = 2\sum_{t=1}^{T-L}E[Z_t]E[C(B)]=2∑t=1T−L​E[Zt​] with Zt=E[HtB∣Ft]Z_t = E[H^B_t \mid \mathcal F_t]Zt​=E[HtB​∣Ft​].
  2. Lemma 4.2. With TH={t:YtB<YtP}\mathcal T_H = \{t : Y^B_t < Y^P_t\}TH​={t:YtB​<YtP​}, ∑t∈THHtB≤∑t=1T−LHtP\sum_{t\in\mathcal T_H} H^B_t \le \sum_{t=1}^{T-L} H^P_t∑t∈TH​​HtB​≤∑t=1T−L​HtP​ on every realization.
  3. Lemma 4.3. With TΠ={t:YtB≥YtP}\mathcal T_\Pi = \{t : Y^B_t \ge Y^P_t\}TΠ​={t:YtB​≥YtP​}, ∑t∈TΠΠtB≤∑t=1T−LΠtP\sum_{t\in\mathcal T_\Pi} \Pi^B_t \le \sum_{t=1}^{T-L} \Pi^P_t∑t∈TΠ​​ΠtB​≤∑t=1T−L​ΠtP​ on every realization.

Two further items are not milestones. Eq. (3) states that, along every realization, the period-by-period holding and backlogging cost equals ∑t=1−L0Πt+H(−∞,0]+∑t=1T−L(Ht+Πt)\sum_{t=1-L}^{0}\Pi_t + H_{(-\infty,0]} + \sum_{t=1}^{T-L}(H_t + \Pi_t)∑t=1−L0​Πt​+H(−∞,0]​+∑t=1T−L​(Ht​+Πt​), which is why the cost of Eq. (4) is the right objective. The other states that a dual-balancing policy exists when hT>0h_T > 0hT​>0 and the demands are integrable, so the goal is not about an empty class.

Significance

The theorem gives a policy that is computable period by period, by a one-dimensional search, with a factor-two guarantee that holds for every joint demand distribution, including correlated, nonstationary and forecast-driven ones, where the optimal policy cannot be computed. The constant is tight: the paper exhibits instances where the ratio tends to two. The second mission of this series treats the stochastic lot-sizing problem of the same paper, which uses the same marginal cost accounting.

The result is proved in the paper; no machine-checked proof of it is known. Formalizing it produces a reusable model of the periodic-review backlogging system with lead times and adapted policies, a verified marginal cost identity, and a formal approximation guarantee for a stochastic inventory policy. The pathwise comparison lemmas are stated for arbitrary pairs of order sequences and so apply to other balancing-type policies.

Difficulty

The obvious attempt compares the two policies period by period. That fails: in a given period the dual-balancing policy may hold far more or far less inventory than the comparison policy, and neither the holding nor the backlogging cost of one period is bounded by the comparator's cost in that period. The comparison only works after re-charging holding costs to the period in which the units were ordered, which requires the identity Eq. (3) to be established exactly, including the pipeline units, the initial stock and the lead-time shift. The probabilistic step then needs the random index sets TH\mathcal T_HTH​ and TΠ\mathcal T_\PiTΠ​ to be determined by the information of period ttt, so that conditioning on Ft\mathcal F_tFt​ commutes with the indicators; this is where the nonanticipativity of both policies enters. The existence of a balancing quantity needs a measurable selection from conditional laws, and it fails without a positive late holding cost.

Formalization scope

  • Periods are integers (ℤ). Orders and demands are functions ℤ → Ω → ℝ; only periods 1,…,T1, \dots, T1,…,T are read, and the pipeline qtq_tqt​ is substituted for t≤0t \le 0t≤0.
  • Ordering costs are ct=0c_t = 0ct​=0 and there is no discounting, as in the paper's §4; the reduction of §4.6 from general instances is not formalized. The lead time LLL is general.
  • Information is an arbitrary Filtration ℤ to which demands are adapted with a one-period lag; the paper's information vectors are a special case, and randomized policies are covered when their randomness is part of the information.
  • Expected costs are lower Lebesgue integrals in [0,∞][0,\infty][0,∞], so an infinite expected cost is never read as 000.
  • The balancing condition carries integrability of HtBH^B_tHtB​ and ΠtB\Pi^B_tΠtB​, so a conditional expectation of a non-integrable cost (which Mathlib sets to 000) cannot satisfy it vacuously. The existence item rules out an empty policy class.
  • Lemmas 4.2 and 4.3 are pathwise and do not use the balancing rule. The comparator totals are the marginal totals of Eq. (4), which is the stronger reading.
  • Eq. (2) prints Xt+LX_{t+L}Xt+L​ and its restatement on p. 292 prints ptp_tpt​; both are typos, and the formalization uses XtX_tXt​ and pt+Lp_{t+L}pt+L​.

A complete development needs finite-sum manipulations for Eq. (3) and Lemma 4.2, conditional expectation (tower property, pulling out bounded Ft\mathcal F_tFt​-measurable factors) for Lemma 4.1 and the goal, and regular conditional distributions with a measurable selection for the existence item. Theorem 4.2 (the randomized policy for integer demands) is outside this mission.

Selected references

  • R. Levi, M. Pál, R. O. Roundy, D. B. Shmoys, Approximation Algorithms for Stochastic Inventory Control Models, Mathematics of Operations Research 32(2):284–302, 2007. doi:10.1287/moor.1060.0205
  • D. C. Heath, P. L. Jackson, Modeling the evolution of demand forecasts with application to safety stock analysis in production/distribution systems, IIE Transactions 26(3):17–30, 1994. doi:10.1080/07408179408966604
  • P. H. Zipkin, Foundations of Inventory Management, McGraw-Hill, 2000. ISBN 978-0-256-11379-7.
6 thms1 active userReviewed
Operations ResearchProbability·Captain: mikedeng1

Quantifying the Bullwhip Effect in a Simple Supply Chain: The Impact of Forecasting, Lead Times, and Information 2: Without Shared Demand Information the Bullwhip Bound Is MultiplicativeResearch Paper

Motivation

The bullwhip effect is the observation that the variability of orders grows as one moves up a supply chain, from the retailer to the wholesaler, the distributor and the factory, even when customer demand is stable. It was documented in industry practice by Lee, Padmanabhan and Whang (Management Science, 1997), who identified demand forecasting as one of its main causes. Amplified order variability raises the safety stock, capacity and transportation costs of every upstream firm, so the question of how large the effect is, and what reduces it, is central to supply chain management.

Chen, Drezner, Ryan and Simchi-Levi (Management Science 46(3), 2000) quantified the effect for a retailer that forecasts with a moving average and follows an order-up-to policy. Their §3 asks whether sharing customer demand information with every stage removes the effect. Theorem 3.1 (the companion mission of this series) shows that it does not; Theorem 3.2, the goal of this mission, gives the lower bound for the chain in which no demand information is shared.

Setting

Time is indexed by the integers t∈Zt \in \mathbb Zt∈Z. The retailer faces i.i.d. demand

Dt=μ+ϵt,D_t = \mu + \epsilon_t,Dt​=μ+ϵt​,

where the error terms ϵt\epsilon_tϵt​ are independent and identically distributed from a symmetric distribution with mean 000 and variance σ2>0\sigma^2 > 0σ2>0.

Single-stage policy (§2). With p≥1p \ge 1p≥1 observations, a lead time LLL, a safety factor zzz and a constant CL,ρC_{L,\rho}CL,ρ​, the retailer forms the moving-average estimates

D^tL=L ∑i=1pDt−ip,σ^etL=CL,ρ∑i=1pet−i2p,et=Dt−D^t1,\hat D^L_t = L\,\frac{\sum_{i=1}^p D_{t-i}}{p}, \qquad \hat\sigma^L_{et} = C_{L,\rho}\sqrt{\frac{\sum_{i=1}^p e_{t-i}^2}{p}}, \qquad e_t = D_t - \hat D^1_t,D^tL​=Lp∑i=1p​Dt−i​​,σ^etL​=CL,ρ​p∑i=1p​et−i2​​​,et​=Dt​−D^t1​,

raises its inventory position to the order-up-to point yt=D^tL+zσ^etLy_t = \hat D^L_t + z\hat\sigma^L_{et}yt​=D^tL​+zσ^etL​, and so orders qt=yt−yt−1+Dt−1q_t = y_t - y_{t-1} + D_{t-1}qt​=yt​−yt−1​+Dt−1​. Orders may be negative: excess inventory is returned without cost.

Decentralized chain (§3). Stages k=1,2,…k = 1, 2, \dotsk=1,2,… form a serial chain; stage 1 is the retailer, and LkL_kLk​ is the lead time between stages kkk and k+1k+1k+1. No stage sees customer demand except the retailer. Stage kkk forecasts from the orders it receives,

D^t(1)=∑i=1pDt−ip,D^t(k)=∑j=0p−1qt−jk−1p(k≥2),\hat D^{(1)}_t = \frac{\sum_{i=1}^p D_{t-i}}{p}, \qquad \hat D^{(k)}_t = \frac{\sum_{j=0}^{p-1} q^{k-1}_{t-j}}{p} \quad (k \ge 2),D^t(1)​=p∑i=1p​Dt−i​​,D^t(k)​=p∑j=0p−1​qt−jk−1​​(k≥2),

uses the order-up-to point ytk=LkD^t(k)y^k_t = L_k\hat D^{(k)}_tytk​=Lk​D^t(k)​, and orders

qt1=yt1−yt−11+Dt−1,qtk=ytk−yt−1k+qtk−1(k≥2).q^1_t = y^1_t - y^1_{t-1} + D_{t-1}, \qquad q^k_t = y^k_t - y^k_{t-1} + q^{k-1}_t \quad (k \ge 2).qt1​=yt1​−yt−11​+Dt−1​,qtk​=ytk​−yt−1k​+qtk−1​(k≥2).

Formalization targets

Goal: Theorem 3.2 (Eq. (7))

For every stage k≥1k \ge 1k≥1 and every period ttt,

Var⁡(qtk)Var⁡(Dt)  ≥  ∏i=1k(1+2Lip+2Li2p2).\frac{\operatorname{Var}(q^k_t)}{\operatorname{Var}(D_t)} \;\ge\; \prod_{i=1}^{k}\left(1 + \frac{2L_i}{p} + \frac{2L_i^2}{p^2}\right).Var(Dt​)Var(qtk​)​≥i=1∏k​(1+p2Li​​+p22Li2​​).

The bound is the paper's, with its explicit constants. The paper asserts no tightness for this theorem, and none is claimed.

Milestone: Eq. (6)

For the single-stage policy with any safety factor zzz and any constant CL,ρC_{L,\rho}CL,ρ​,

Var⁡(qt)Var⁡(Dt)  ≥  1+2Lp+2L2p2.\frac{\operatorname{Var}(q_t)}{\operatorname{Var}(D_t)} \;\ge\; 1 + \frac{2L}{p} + \frac{2L^2}{p^2}.Var(Dt​)Var(qt​)​≥1+p2L​+p22L2​.

This is the i.i.d. case ρ=0\rho = 0ρ=0 of the paper's Theorem 2.2. With z=0z = 0z=0 and L=L1L = L_1L=L1​ the single-stage orders are the stage-1 orders of the chain, so Eq. (6) contains the case k=1k = 1k=1 of the goal.

Significance

The result. Theorem 3.2 is half of the paper's comparison between centralized and decentralized information. When demand information is shared, the amplification from the retailer to stage kkk in the i.i.d. case equals 1+2(∑i≤kLi)/p+2(∑i≤kLi)2/p21 + 2(\sum_{i\le k}L_i)/p + 2(\sum_{i\le k}L_i)^2/p^21+2(∑i≤k​Li​)/p+2(∑i≤k​Li​)2/p2 (Eq. (8)), which grows additively in the lead times. Without sharing, the lower bound (7) is a product over stages and grows multiplicatively. The paper concludes that centralizing demand information "can significantly reduce the bullwhip effect", and that the gap widens as one moves up the chain. Eq. (6) is the single-stage statement that forecasting with a moving average alone already amplifies variability, by a factor depending only on the ratio L/pL/pL/p.

Formalizing it. The paper gives no proof of Theorem 3.2; it refers to Ryan (1997, PhD thesis) and to Chen et al. (1998). A machine-checked proof would therefore supply the first self-contained, verified argument for the multiplicative bound. The Gaussian special case of Eq. (6) is already formalized on Prove2Me, in the Snyder–Shen chapter on the bullwhip effect (SupplyChainTheory.bullwhip_signal_processing at ρ=0\rho = 0ρ=0); that statement assumes Gaussian errors, whereas this mission assumes only symmetry, mean 000 and variance σ2\sigma^2σ2. Neither the multistage bound nor the symmetric-error version of Eq. (6) has a formal proof.

Difficulty

The natural first idea is induction on the stage: treat the orders of stage k−1k-1k−1 as the demand of stage kkk and apply the single-stage bound. That step fails, because the single-stage bound is a statement about i.i.d. demand, and the orders reaching stage k≥2k \ge 2k≥2 are not i.i.d.: they are autocorrelated, and stage kkk's moving average of those orders interacts with the correlation in a way that can raise or lower the variance. Whether the product bound survives depends on controlling that interaction at every stage. For Eq. (6), the safety-stock term zσ^etLz\hat\sigma^L_{et}zσ^etL​ is a nonlinear function of the demands, and only symmetry of the errors, not normality, is available to control its interaction with the linear part of the order.

Formalization scope

All objects live in the namespace ChenBullwhip.Decentralized.

  • IIDDemand P is the demand model on a probability space (Ω,P)(\Omega, P)(Ω,P): a constant mu, sigma > 0, and errors eps : ℤ → Ω → ℝ that are measurable, mutually independent (iIndepFun), identically distributed, symmetric (eps t and -eps t have the same law), in L2L^2L2, with mean 000 and variance sigma ^ 2. Demand is D t = mu + eps t. Variances are Mathlib's ProbabilityTheory.variance.
  • SingleStage defines D^tL\hat D^L_tD^tL​, ete_tet​, σ^etL\hat\sigma^L_{et}σ^etL​, yty_tyt​ and qtq_tqt​ of §2; CL,ρC_{L,\rho}CL,ρ​ is a free real parameter, as the paper does not fix it.
  • Chain defines the forecasts D^t(k)\hat D^{(k)}_tD^t(k)​ and the orders qtkq^k_tqtk​ by recursion on the stage, with the convention qt0=Dt−1q^0_t = D_{t-1}qt0​=Dt−1​, so that stage 1 orders yt1−yt−11+Dt−1y^1_t - y^1_{t-1} + D_{t-1}yt1​−yt−11​+Dt−1​. The recursion qtk=ytk−yt−1k+qtk−1q^k_t = y^k_t - y^k_{t-1} + q^{k-1}_tqtk​=ytk​−yt−1k​+qtk−1​ is not printed in the paper; it is the §2.2 order identity applied to a stage whose incoming demand is qtk−1q^{k-1}_tqtk−1​, as the sequence of events on p. 440 describes.

Disclosed hypotheses not on the page: p≥1p \ge 1p≥1 (a moving average needs an observation), σ>0\sigma > 0σ>0 (the paper divides by Var⁡(D)=σ2\operatorname{Var}(D) = \sigma^2Var(D)=σ2), and square-integrable errors (Mathlib's variance is 000 off L2L^2L2). The paper's model (1) asks μ≥0\mu \ge 0μ≥0; since μ\muμ affects no variance, no sign condition is imposed. Lead times are natural numbers. The statements hold in every period ttt, with no stationarity hypothesis.

Trivializing formalizations are excluded: the orders are computed from the demands, not posited processes with a given covariance; the variances are genuine because every random variable involved is square integrable; and the ratio's denominator is σ2>0\sigma^2 > 0σ2>0.

A complete development needs variance and covariance calculus for finite linear combinations of independent L2L^2L2 variables, and, for Eq. (6), the vanishing of the covariance between an odd and an even function of a symmetric random vector. Both are reusable well beyond this mission. Proofs of either target, and general lemmas on variances of linear filters of i.i.d. sequences, are welcome.

Selected references

  • F. Chen, Z. Drezner, J. K. Ryan, D. Simchi-Levi, Quantifying the Bullwhip Effect in a Simple Supply Chain: The Impact of Forecasting, Lead Times, and Information, Management Science 46(3):436–443, 2000. https://doi.org/10.1287/mnsc.46.3.436.12069
  • H. L. Lee, V. Padmanabhan, S. Whang, Information Distortion in a Supply Chain: The Bullwhip Effect, Management Science 43(4):546–558, 1997. https://doi.org/10.1287/mnsc.43.4.546
  • J. K. Ryan, Analysis of Inventory Models with Limited Demand Information, Ph.D. dissertation, Department of Industrial Engineering and Management Science, Northwestern University, 1997.
  • L. V. Snyder, Z.-J. M. Shen, Fundamentals of Supply Chain Theory, 2nd ed., Wiley, 2019, Chapter 13 (formalized on Prove2Me as SupplyChainTheory.*).
5 thms1 active userReviewed
Markov ChainOperations ResearchProbability·Captain: mikedeng1

On the Stochastic Matrices Associated with Certain Queuing Processes 1: The M/G/1 Imbedded Chain Is Ergodic iff ρ < 1 and Recurrent iff ρ ≤ 1Research Paper

Motivation

Many queues observed at well-chosen instants are Markov chains on the nonnegative integers. For the single-server queue with Poisson arrivals and general service times (M/G/1), D. G. Kendall showed in 1951 that the number of customers left behind at successive departure epochs is such a chain, the imbedded Markov chain (Kendall 1951; Kendall 1953). Whether the queue settles into a steady state, keeps returning to empty without settling, or grows without bound is then a question about this chain: is it ergodic, null recurrent, or transient?

F. G. Foster's 1953 paper (doi:10.1214/aoms/1177728976) answers this question by first proving general criteria for an irreducible chain on {0,1,2,… }\{0,1,2,\dots\}{0,1,2,…}, stated as solvability conditions for linear inequalities in the transition matrix, and then applying them to the M/G/1 and GI/M/1 chains. Theorem 2 of the paper is the drift condition now known as Foster's criterion, the starting point of the Lyapunov-function method for the stability of queues and stochastic networks (Meyn and Tweedie 2009). This mission is the M/G/1 half of the paper.

Timeline:

  • 1951–1953, Kendall. Introduces the imbedded chains of M/G/1 and GI/M/1 and obtains most of their classification by direct methods.
  • 1953, Foster. Derives the classification from general criteria: Theorem 2 (ergodicity), Theorems 4–6 (transience and recurrence).
  • 1950s onward. The criteria become the standard tools (Feller's text; later the drift conditions of Meyn and Tweedie).

Setting

A Markov chain on the states {0,1,2,… }\{0,1,2,\dots\}{0,1,2,…} is given by a transition matrix P=[pij]P=[p_{ij}]P=[pij​]: pij≥0p_{ij}\ge0pij​≥0 and ∑jpij=1\sum_j p_{ij}=1∑j​pij​=1 for every row iii. Write fij(n)f_{ij}^{(n)}fij(n)​ for the probability that the chain started in iii first reaches jjj (for i=ji=ji=j, first returns to jjj) at step n≥1n\ge1n≥1. The chain is irreducible if every state can be reached from every other, and aperiodic if for every state the return times have greatest common divisor 111. A state jjj is recurrent if fjj=∑nfjj(n)=1f_{jj}=\sum_n f_{jj}^{(n)}=1fjj​=∑n​fjj(n)​=1 and transient if fjj<1f_{jj}<1fjj​<1; a recurrent state is ergodic (positive recurrent, "recurrent-nonnull") if in addition its mean recurrence time ∑nnfjj(n)\sum_n n f_{jj}^{(n)}∑n​nfjj(n)​ is finite. The mean first-passage time from iii to jjj is μij=∑n≥1nfij(n)∈[0,∞]\mu_{ij}=\sum_{n\ge1} n f_{ij}^{(n)}\in[0,\infty]μij​=∑n≥1​nfij(n)​∈[0,∞].

The M/G/1 matrix is built from a sequence k0,k1,…k_0,k_1,\dotsk0​,k1​,… of positive numbers summing to one (knk_nkn​ is the probability of nnn arrivals during one service):

[pij]=[k0k1k2⋯k0k1k2⋯0k0k1⋯00k0⋯⋮⋮⋮],[p_{ij}] = \begin{bmatrix} k_0 & k_1 & k_2 & \cdots \\ k_0 & k_1 & k_2 & \cdots \\ 0 & k_0 & k_1 & \cdots \\ 0 & 0 & k_0 & \cdots \\ \vdots & \vdots & \vdots & \end{bmatrix},[pij​]=​k0​k0​00⋮​k1​k1​k0​0⋮​k2​k2​k1​k0​⋮​⋯⋯⋯⋯​​,

that is, p0j=kjp_{0j}=k_jp0j​=kj​ and, for i≥1i\ge1i≥1, pij=kj−i+1p_{ij}=k_{j-i+1}pij​=kj−i+1​ when j≥i−1j\ge i-1j≥i−1 and 000 otherwise. The traffic intensity is

ρ=∑n=1∞n kn∈[0,∞],\rho=\sum_{n=1}^{\infty}n\,k_n\in[0,\infty],ρ=n=1∑∞​nkn​∈[0,∞],

the mean number of arrivals per service.

Formalization targets

Goal: the M/G/1 classification (§3, p. 358)

the chain is ergodic  ⟺  ρ<1,the chain is recurrent  ⟺  ρ≤1.\text{the chain is ergodic}\iff\rho<1,\qquad\text{the chain is recurrent}\iff\rho\le1 .the chain is ergodic⟺ρ<1,the chain is recurrent⟺ρ≤1.

The goal leaves kkk arbitrary apart from positivity and normalization; in particular ρ=∞\rho=\inftyρ=∞ is allowed and falls in the transient case.

Milestones (the paper's general theorems and the step of §3 they feed)

  1. Theorem 2 (drift criterion): a nonnegative solution of ∑jpijyj≤yi−1\sum_j p_{ij}y_j\le y_i-1∑j​pij​yj​≤yi​−1 (i≠0i\ne0i=0) with ∑jp0jyj<∞\sum_j p_{0j}y_j<\infty∑j​p0j​yj​<∞ makes the system ergodic. Already posed on the platform and referenced here.
  2. Theorem 3: in an ergodic system the mean first-passage times dj=μj0d_j=\mu_{j0}dj​=μj0​ are finite and satisfy ∑j≥1pijdj=di−1\sum_{j\ge1}p_{ij}d_j=d_i-1∑j≥1​pij​dj​=di​−1 (i≠0i\ne0i=0), ∑j≥1p0jdj<∞\sum_{j\ge1}p_{0j}d_j<\infty∑j≥1​p0j​dj​<∞.
  3. §3 display: for the ergodic M/G/1 chain, μi,i−1=μ10\mu_{i,i-1}=\mu_{10}μi,i−1​=μ10​ and μi0=iμ10\mu_{i0}=i\mu_{10}μi0​=iμ10​ (i≠0i\ne0i=0).
  4. Theorem 5: a solution of ∑jpijyj≤yi\sum_j p_{ij}y_j\le y_i∑j​pij​yj​≤yi​ (i≠0i\ne0i=0) with yi→∞y_i\to\inftyyi​→∞ makes the system recurrent.
  5. Theorem 7: for a probability distribution {pn}\{p_n\}{pn​} with p0>0p_0>0p0​>0, ∑nznpn=z\sum_n z^np_n=z∑n​znpn​=z has a root in (0,1)(0,1)(0,1) iff ∑n≥1npn>1\sum_{n\ge1}np_n>1∑n≥1​npn​>1.
  6. Theorem 4: the system is transient iff ∑jpijyj=yi\sum_j p_{ij}y_j=y_i∑j​pij​yj​=yi​ (i≠0i\ne0i=0) has a bounded nonconstant solution.

Significance

The result. The classification is the stability theorem for the M/G/1 queue: for ρ<1\rho<1ρ<1 the departure-epoch queue length has a stationary distribution, which is what the Pollaczek–Khinchine formula describes; for ρ=1\rho=1ρ=1 the queue empties infinitely often but has no steady state; for ρ>1\rho>1ρ>1 it grows without bound. The general criteria behind it (Theorems 2, 4, 5) apply to any chain on the nonnegative integers and are reused in the companion GI/M/1 mission and throughout queueing and Markov-chain stability theory.

Formalizing it. All results here are proved on paper (Kendall and Foster, 1951–1953, with Theorems 3 and 7 classical lemmas from Feller). None of them is known to have a machine-checked proof against a Lean development of countable-state Markov chains. The mission produces such proofs on the published discrete-chain vocabulary (transition matrices, first-passage probabilities, return probabilities, positive recurrence), together with the general Foster criteria as reusable theorems. Theorem 2 is already posed as an open platform theorem and is reused here.

Difficulty

The queue-specific part of the argument is short once the general criteria are available; the weight of the mission is in those criteria. They relate qualitative properties of an infinite chain (ergodicity, recurrence, transience) to solvability of infinite systems of linear inequalities, and this needs limit behaviour of the nnn-step probabilities pij(n)p_{ij}^{(n)}pij(n)​ and of hitting probabilities of state 000, none of which follows from finite-state arguments. Two further points resist the naive approach. The converse directions (ergodic ⇒ρ<1\Rightarrow\rho<1⇒ρ<1, recurrent ⇒ρ≤1\Rightarrow\rho\le1⇒ρ≤1) need exact identities for mean first-passage times, not just bounds, and these must be handled in [0,∞][0,\infty][0,∞] because the means may be infinite. And the boundary case ρ=1\rho=1ρ=1 (null recurrence) separates the two equivalences: an argument that only compares the mean drift ρ−1\rho-1ρ−1 with 000, such as a law of large numbers for the increments, cannot tell recurrence from transience there.

Formalization scope

  • The chain is the published QueueingFundamentals.Foundations.TransitionMatrix (entries P.p i j, rows summing to 111 as a HasSum), with its firstPassage, returnProb, Irreducible, Aperiodic and PositiveRecurrent. "Ergodic" is P.PositiveRecurrent; aperiodicity is the paper's standing assumption and is not folded into it a second time.
  • States are indexed from 000, as in the paper; "i≠0i\ne0i=0" is i ≠ 0.
  • The M/G/1 matrix is a function mg1Matrix k : ℕ → ℕ → ℝ; the goal and the §3 display quantify over every TransitionMatrix P with P.p = mg1Matrix k. Such a P exists for every admissible k (checked in a sorry-free local file for ki=2−(i+1)k_i=2^{-(i+1)}ki​=2−(i+1)).
  • ∑nkn=1\sum_n k_n=1∑n​kn​=1 is added as the meaning of "stochastic matrix"; §3 writes only ki>0k_i>0ki​>0.
  • ρ\rhoρ and all mean first-passage times are extended nonnegative reals ([0,∞][0,\infty][0,∞]), so divergent means are ∞\infty∞, never 000. Theorem 7's mean is also taken in [0,∞][0,\infty][0,∞].
  • Recurrent means fjj=1f_{jj}=1fjj​=1 for every state jjj; transient means fjj<1f_{jj}<1fjj​<1 for every state. For irreducible chains these are complementary, which is a theorem, not a definition.
  • The general Theorems 3, 4 and 5 assume irreducibility and aperiodicity, the paper's standing assumption of §1. The goal does not assume them: they follow from ki>0k_i>0ki​>0.
  • Every series in a hypothesis carries its convergence (Summable or HasSum); Theorem 3's equation (6) is written as di=1+∑j≥1pijdjd_i=1+\sum_{j\ge1}p_{ij}d_jdi​=1+∑j≥1​pij​dj​ in [0,∞][0,\infty][0,∞] together with finiteness of the djd_jdj​, j≠0j\ne0j=0.
  • Theorem 7's distribution is renamed qqq in Lean to avoid a clash with pijp_{ij}pij​. Theorem 1 of the paper (§2) and Theorem 6 are not targets of this mission.

Ruled out: ρ\rhoρ as a real tsum (which is 000 for a divergent series and would call a heavy-tailed chain ergodic); defining "ergodic" or "recurrent" through the existence of Lyapunov or drift functions (which would make the criteria tautological); a goal over a matrix PPP that need not exist.

Contributions welcome: proofs of the general criteria (Theorems 2–5) on the published chain vocabulary, the limit theorem pij(n)→πjp_{ij}^{(n)}\to\pi_jpij(n)​→πj​ for irreducible aperiodic chains, first-step analysis for hitting times, and Theorem 7 as a lemma on probability generating functions; all of these are reusable beyond this mission.

Selected references

  • F. G. Foster, On the stochastic matrices associated with certain queuing processes, The Annals of Mathematical Statistics 24(3), 355–360, 1953. https://doi.org/10.1214/aoms/1177728976
  • D. G. Kendall, Some problems in the theory of queues, Journal of the Royal Statistical Society B 13(2), 151–185, 1951. https://doi.org/10.1111/j.2517-6161.1951.tb00093.x
  • D. G. Kendall, Stochastic processes occurring in the theory of queues and their analysis by the method of the imbedded Markov chain, The Annals of Mathematical Statistics 24(3), 338–354, 1953. https://doi.org/10.1214/aoms/1177728975
  • W. Feller, An Introduction to Probability Theory and Its Applications, Vol. I, Wiley, 1950.
  • S. Meyn and R. L. Tweedie, Markov Chains and Stochastic Stability, 2nd ed., Cambridge University Press, 2009. https://doi.org/10.1017/CBO9780511626630
9 thms1 active userReviewed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Dimensioning Large Call Centers IV: Asymptotically Optimal Staffing under a Waiting-Cost ConstraintResearch Paper

Motivation

A call center has to decide how many agents to staff. In practice the decision is often posed as a service-level constraint rather than a cost trade-off: use the fewest agents for which the expected waiting cost, or the fraction of customers who wait, stays below a target. Borst, Mandelbaum and Reiman (CWI Report PNA-R0015, 2000; journal version in Operations Research 52(1), 2004, doi:10.1287/opre.1030.0081) treat this constraint problem in Section 8 of their paper, alongside the cost-minimization problem of Sections 5–7, and show that a simple square-root staffing rule solves it asymptotically as the arrival rate grows.

The rule matters because it is what practitioners use. Under the classical Erlang-C model, the exact optimum requires evaluating the Erlang-C formula over many staffing levels. The asymptotic rule replaces this with a single equation in the Halfin–Whitt function PPP: when the target is a delay probability ε\varepsilonε (Example 8.5 of the paper), it reduces to staffing λ/μ+P−1(ε)λ/μ\lambda/\mu + P^{-1}(\varepsilon)\sqrt{\lambda/\mu}λ/μ+P−1(ε)λ/μ​ servers.

Timeline. Erlang's formula for the M/M/N delay probability dates from 1917. Halfin and Whitt (Operations Research 29, 1981) identified the limit P(x)P(x)P(x) of the delay probability under square-root staffing N=λ/μ+xλ/μN = \lambda/\mu + x\sqrt{\lambda/\mu}N=λ/μ+xλ/μ​ with integer NNN. Jagers and Van Doorn (Operations Research Letters 5, 1986; SIAM Review 33, 1991) studied the continued Erlang loss and delay functions at non-integer numbers of servers, including their convexity, which is what lets the staffing problem be relaxed to a continuous one. Borst, Mandelbaum and Reiman (2000/2004) used these to prove asymptotic optimality of square-root rules for both the cost and the constraint formulations.

Setting

Customers arrive at rate λ\lambdaλ to NNN identical servers, each with service rate μ>0\mu > 0μ>0; μ\muμ is fixed while λ→∞\lambda \to \inftyλ→∞. Stability requires N>λ/μN > \lambda/\muN>λ/μ. A customer who waits ttt time units costs Dλ(t)D_\lambda(t)Dλ​(t), where Dλ(0)=0D_\lambda(0) = 0Dλ​(0)=0, DλD_\lambdaDλ​ is strictly increasing on [0,∞)[0,\infty)[0,∞) and ∫0∞Dλ(t)e−θt dt<∞\int_0^\infty D_\lambda(t)e^{-\theta t}\,dt < \infty∫0∞​Dλ​(t)e−θtdt<∞ for all θ>0\theta > 0θ>0.

The Erlang-C probability of waiting is

π(N,ν)=νNN!{(1−ν/N)∑n=0N−1νnn!+νNN!}−1,\pi(N,\nu) = \frac{\nu^N}{N!}\Big\{(1-\nu/N)\sum_{n=0}^{N-1}\frac{\nu^n}{n!} + \frac{\nu^N}{N!}\Big\}^{-1},π(N,ν)=N!νN​{(1−ν/N)n=0∑N−1​n!νn​+N!νN​}−1,

and the conditional waiting cost is G(N,λ)=(Nμ−λ)∫0∞Dλ(t)e−(Nμ−λ)t dtG(N,\lambda) = (N\mu-\lambda)\int_0^\infty D_\lambda(t)e^{-(N\mu-\lambda)t}\,dtG(N,λ)=(Nμ−λ)∫0∞​Dλ​(t)e−(Nμ−λ)tdt. The waiting cost per unit time with NNN servers is

K(N,λ)=λ π(N,λ/μ) G(N,λ).K(N,\lambda) = \lambda\,\pi(N,\lambda/\mu)\,G(N,\lambda).K(N,λ)=λπ(N,λ/μ)G(N,λ).

Given a target Mλ>0M_\lambda > 0Mλ​>0, the optimal staffing level is the least integer N>λ/μN > \lambda/\muN>λ/μ with K(N,λ)≤MλK(N,\lambda) \le M_\lambdaK(N,λ)≤Mλ​; call it Nλ∗N^*_\lambdaNλ∗​.

In the continuous parametrization Nλ(x)=λ/μ+xλ/μN_\lambda(x) = \lambda/\mu + x\sqrt{\lambda/\mu}Nλ​(x)=λ/μ+xλ/μ​, define Gλ(x)=λG(Nλ(x),λ)G_\lambda(x) = \lambda G(N_\lambda(x),\lambda)Gλ​(x)=λG(Nλ​(x),λ), the continuous Erlang-C function πλ(x)=H(Nλ(x),λ/μ)\pi_\lambda(x) = H(N_\lambda(x),\lambda/\mu)πλ​(x)=H(Nλ​(x),λ/μ) with H(M,α)={α∫0∞e−αtt(1+t)M−1dt}−1H(M,\alpha) = \{\alpha\int_0^\infty e^{-\alpha t}t(1+t)^{M-1}dt\}^{-1}H(M,α)={α∫0∞​e−αtt(1+t)M−1dt}−1, and Kλ(x)=πλ(x)Gλ(x)K_\lambda(x) = \pi_\lambda(x)G_\lambda(x)Kλ​(x)=πλ​(x)Gλ​(x). The Halfin–Whitt function is P(x)=1/(1+x/h(−x))P(x) = 1/(1 + x/h(-x))P(x)=1/(1+x/h(−x)) with h=ϕ/(1−Φ)h = \phi/(1-\Phi)h=ϕ/(1−Φ) the standard normal hazard rate. A staffing function xλ>0x_\lambda > 0xλ​>0 is judged by the rounding gap

Tλ(x)=min⁡{∣K(⌊Nλ(x)⌋,λ)−Mλ∣, ∣K(⌈Nλ(x)⌉,λ)−Mλ∣, ∣K(⌈Nλ(x)⌉,λ)−K(Nλ∗,λ)∣}.T_\lambda(x) = \min\big\{|K(\lfloor N_\lambda(x)\rfloor,\lambda) - M_\lambda|,\ |K(\lceil N_\lambda(x)\rceil,\lambda) - M_\lambda|,\ |K(\lceil N_\lambda(x)\rceil,\lambda) - K(N^*_\lambda,\lambda)|\big\}.Tλ​(x)=min{∣K(⌊Nλ​(x)⌋,λ)−Mλ​∣, ∣K(⌈Nλ​(x)⌉,λ)−Mλ​∣, ∣K(⌈Nλ​(x)⌉,λ)−K(Nλ∗​,λ)∣}.

It is asymptotically optimal when Tλ(xλ)/Mλ→0T_\lambda(x_\lambda)/M_\lambda \to 0Tλ​(xλ​)/Mλ​→0 as λ→∞\lambda\to\inftyλ→∞.

Formalization targets

Goal: Theorem 8.2 (rationalized regime)

Suppose that for some κ>0\kappa > 0κ>0 and γ∈(0,∞)\gamma \in (0,\infty)γ∈(0,∞), Gλ(κ)/Mλ→γG_\lambda(\kappa)/M_\lambda \to \gammaGλ​(κ)/Mλ​→γ, i.e. the waiting cost is comparable to the target. Let yλ∗>0y^*_\lambda > 0yλ∗​>0 solve P(y)Gλ(y)=MλP(y)G_\lambda(y) = M_\lambdaP(y)Gλ​(y)=Mλ​. Then

lim⁡λ→∞Tλ(yλ∗)Mλ=0.\lim_{\lambda\to\infty}\frac{T_\lambda(y^*_\lambda)}{M_\lambda} = 0.λ→∞lim​Mλ​Tλ​(yλ∗​)​=0.

Supporting milestones

  • Lemma C.1: GλG_\lambdaGλ​ is strictly convex and decreasing on (0,∞)(0,\infty)(0,∞).
  • Section 3: πλ(x)=π(Nλ(x),λ/μ)\pi_\lambda(x) = \pi(N_\lambda(x),\lambda/\mu)πλ​(x)=π(Nλ​(x),λ/μ) when Nλ(x)N_\lambda(x)Nλ​(x) is an integer.
  • Lemma 8.1: if zλ∗>0z^*_\lambda > 0zλ∗​>0 solves π^λ(z)G^λ(z)=Mλ\hat\pi_\lambda(z)\hat G_\lambda(z) = M_\lambdaπ^λ​(z)G^λ​(z)=Mλ​ and Kλ(zλ∗)/(π^λG^λ)(zλ∗)→1K_\lambda(z^*_\lambda)/(\hat\pi_\lambda\hat G_\lambda)(z^*_\lambda) \to 1Kλ​(zλ∗​)/(π^λ​G^λ​)(zλ∗​)→1, then Tλ(zλ∗)/Mλ→0T_\lambda(z^*_\lambda)/M_\lambda \to 0Tλ​(zλ∗​)/Mλ​→0.
  • Lemma B.1: PPP is strictly convex and decreasing on (0,∞)(0,\infty)(0,∞).
  • Eq. (17): lim sup⁡aλ/b=∞\limsup a_\lambda/b = \inftylimsupaλ​/b=∞ implies lim inf⁡P(aλ)/P(b)=0\liminf P(a_\lambda)/P(b) = 0liminfP(aλ​)/P(b)=0 and lim inf⁡πλ(aλ)/πλ(b)=0\liminf \pi_\lambda(a_\lambda)/\pi_\lambda(b) = 0liminfπλ​(aλ​)/πλ​(b)=0.
  • Lemma 4.1 (Halfin–Whitt): for bounded xλ>0x_\lambda > 0xλ​>0, πλ(xλ)/P(xλ)→1\pi_\lambda(x_\lambda)/P(x_\lambda) \to 1πλ​(xλ​)/P(xλ​)→1; with xλ→xx_\lambda \to xxλ​→x, πλ(xλ)/P(x)→1\pi_\lambda(x_\lambda)/P(x)\to 1πλ​(xλ​)/P(x)→1.

Further target: Theorem 8.6 (efficiency-driven regime)

If Gλ(κ)/Mλ→0G_\lambda(\kappa)/M_\lambda \to 0Gλ​(κ)/Mλ​→0 for every κ>0\kappa > 0κ>0 and yλ∗>0y^*_\lambda > 0yλ∗​>0 solves Gλ(y)=MλG_\lambda(y) = M_\lambdaGλ​(y)=Mλ​, then Tλ(yλ∗)/Mλ→0T_\lambda(y^*_\lambda)/M_\lambda \to 0Tλ​(yλ∗​)/Mλ​→0.

Significance

The theorem certifies the staffing rule used in workforce-management practice: the excess staffing is determined by one scalar equation involving the Gaussian function PPP and the scaled waiting cost, and rounding the resulting staffing level misses the constraint by a vanishing fraction of the target. Lemma 8.1 is a reusable framework: any approximation π^λG^λ\hat\pi_\lambda\hat G_\lambdaπ^λ​G^λ​ that is asymptotically exact at the proposed staffing level yields an asymptotically optimal rule, and the paper instantiates it in three regimes (Theorems 8.2, 8.6, 8.9).

The results are proved on paper. To the best of current knowledge none of them, nor the Halfin–Whitt limit for the continuous Erlang-C extension, has a machine-checked proof. A formalization would produce the first verified heavy-traffic limit of the Erlang-C delay probability, a verified continuous Erlang-C extension with its integer identity, and the convexity facts about PPP and GλG_\lambdaGλ​ that many staffing papers cite without proof.

Difficulty

The obvious argument is to quote Halfin and Whitt: the delay probability converges to P(x)P(x)P(x) under square-root staffing, so PPP can replace the Erlang-C formula. That limit, as published in 1981, is about integer server counts along sequences with a convergent excess-staffing parameter. The paper needs it for the continuous function HHH at non-integer server counts and for staffing functions that are merely bounded, and it also needs the identity H(N,ν)=π(N,ν)H(N,\nu) = \pi(N,\nu)H(N,ν)=π(N,ν) at integers and the monotonicity of πλ\pi_\lambdaπλ​ in xxx, both cited from Jagers and Van Doorn rather than proved. None of these is in Mathlib. A second obstacle is that the staffing function yλ∗y^*_\lambdayλ∗​ is defined only implicitly by an equation involving GλG_\lambdaGλ​, which depends on the arbitrary cost functions DλD_\lambdaDλ​; nothing a priori prevents it from escaping to infinity, outside the range where the Halfin–Whitt approximation applies. Finally, TλT_\lambdaTλ​ compares integer-level costs given by the Erlang-C formula with a continuous approximation, so both representations of the delay probability are in play at once.

Formalization scope

The queue itself is not formalized: there is no Markov chain and no waiting-time distribution. Every statement is about the closed-form waiting cost K(N,λ)K(N,\lambda)K(N,λ) with π\piπ given by the Erlang-C formula, exactly as the paper's analysis is. Conventions, all in the namespace DimCallCenters.Constraint:

  • lam : ℝ is the arrival rate (λ is a Lean keyword); limits are Filter.atTop in lam, with μ fixed. Objects indexed by λ (MλM_\lambdaMλ​, Nλ∗N^*_\lambdaNλ∗​, yλ∗y^*_\lambdayλ∗​) are functions of lam constrained only for lam > 0.
  • WaitModel packages μ > 0 and DλD_\lambdaDλ​ with Dλ(0)=0D_\lambda(0) = 0Dλ​(0)=0, strict monotonicity on [0,∞)[0,\infty)[0,∞), and integrability of Dλ(t)e−θtD_\lambda(t)e^{-\theta t}Dλ​(t)e−θt on (0,∞)(0,\infty)(0,∞) for θ > 0 (the paper's finiteness of GGG; integrability is required because Lean's integral of a non-integrable function is 0).
  • Nλ∗N^*_\lambdaNλ∗​ is a function Nstar : ℝ → ℕ given with its two defining properties (feasible; below every feasible integer level above λ/μ). yλ∗y^*_\lambdayλ∗​ and zλ∗z^*_\lambdazλ∗​ are any positive solutions of their equations; existence and uniqueness are not hypotheses.
  • In TλT_\lambdaTλ​ the round-down term is dropped when ⌊Nλ(x)⌋≤λ/μ\lfloor N_\lambda(x)\rfloor \le \lambda/\mu⌊Nλ​(x)⌋≤λ/μ (an unstable level where KKK is undefined). This can only enlarge TλT_\lambdaTλ​.
  • Asymptotic relations are limits of ratios. lim sup⁡=∞\limsup = \inftylimsup=∞ and lim inf⁡=0\liminf = 0liminf=0 are stated with ∃ᶠ ("frequently"), lim sup⁡<∞\limsup < \inftylimsup<∞ as eventual boundedness.
  • PPP is defined through explicit ϕ\phiϕ, Φ\PhiΦ, hhh; the formula also gives P(0)=1P(0) = 1P(0)=1, used in Lemma 4.1(2) at x=0x = 0x=0.
  • No hypothesis lim⁡N↓λ/μG(N,λ)=∞\lim_{N\downarrow\lambda/\mu}G(N,\lambda) = \inftylimN↓λ/μ​G(N,λ)=∞ is added: it is not needed for the statements here.

A trivializing formalization is ruled out: TλT_\lambdaTλ​ keeps all of the paper's terms and is never replaced by a smaller quantity, and the hypotheses are jointly satisfiable — Dλ(t)=aλ/μ tD_\lambda(t) = a\sqrt{\lambda/\mu}\,tDλ​(t)=aλ/μ​t with Mλ=MλM_\lambda = M\lambdaMλ​=Mλ satisfies (33) for every κ\kappaκ with γ=a/(μκM)\gamma = a/(\mu\kappa M)γ=a/(μκM).

Infrastructure needed: the continuous Erlang-C function and its integer identity; the Halfin–Whitt limit (a Gaussian approximation of Poisson/gamma tails); calculus facts about the normal hazard rate. These are reusable beyond this mission, notably by the sibling missions on the cost-minimization problem. Example 8.5 (delay-probability target with Dλ=1t>0D_\lambda = 1_{t>0}Dλ​=1t>0​) motivates the rule but violates the strict monotonicity of DλD_\lambdaDλ​, so it is not an instance of the theorem as stated. Contributions on any milestone, and on Theorem 8.9 (quality-driven regime, which needs Lemma 4.2), are welcome.

Selected references

  • S. Borst, A. Mandelbaum, M. I. Reiman, Dimensioning Large Call Centers, CWI Report PNA-R0015, 2000; Operations Research 52(1):17–34, 2004. https://doi.org/10.1287/opre.1030.0081
  • S. Halfin, W. Whitt, Heavy-Traffic Limits for Queues with Many Exponential Servers, Operations Research 29(3):567–588, 1981. https://doi.org/10.1287/opre.29.3.567
  • A. A. Jagers, E. A. Van Doorn, On the Continued Erlang Loss Function, Operations Research Letters 5:43–46, 1986.
  • A. A. Jagers, E. A. Van Doorn, Convexity of Functions which are Generalizations of the Erlang Loss Function and the Erlang Delay Function, SIAM Review 33:281–282, 1991.
18 thms1 active userReviewed
Algorithmic Game TheoryControl TheoryOperations Research·Captain: mikedeng1

Nonzero-Sum Stochastic Differential Games with Impulse Controls: A Verification Theorem with Applications 2: An Explicit Family of Nash Equilibria for the Linear Impulse GameResearch Paper

Motivation

Impulse control models an agent who acts on a random system through discrete interventions, each with a fixed cost: inventory replenishment, cash management, exchange-rate interventions by a central bank. With two agents whose objectives conflict, the problem becomes a nonzero-sum stochastic differential game with impulse controls. Before the work of Aïd, Basei, Callegaro, Campi and Vargiolu (Math. Oper. Res. 45(1), 2020; preprint arXiv:1605.00039), such games had no general verification theorem and few explicit equilibria; the paper supplies both. Its main application, formalized in this mission, is a game between two central banks with different targets for an exchange rate, a two-player version of the exchange-rate control models of Bertola, Runggaldier and Yasuda and of Cadenillas and Zapatero (references [10], [12] of the paper). The paper proves that this game has an explicit one-parameter family of Nash equilibria of threshold type, with closed-form payoffs.

Setting

The state is a real process. Without interventions it is x+σWsx+\sigma W_sx+σWs​, where WWW is a standard real Brownian motion and σ>0\sigma>0σ>0. Player 1 may shift it up by impulses δ∈Z1=[0,∞[\delta\in Z_1=[0,\infty[δ∈Z1​=[0,∞[, player 2 down by impulses δ∈Z2=]−∞,0]\delta\in Z_2=]-\infty,0]δ∈Z2​=]−∞,0]:

Xs=x+σWs+∑k:τ1,k≤sδ1,k+∑k:τ2,k≤sδ2,k.X_s=x+\sigma W_s+\sum_{k:\tau_{1,k}\le s}\delta_{1,k}+\sum_{k:\tau_{2,k}\le s}\delta_{2,k}.Xs​=x+σWs​+k:τ1,k​≤s∑​δ1,k​+k:τ2,k​≤s∑​δ2,k​.

Player 1 earns the running payoff f1(Xs)=Xs−s1f_1(X_s)=X_s-s_1f1​(Xs​)=Xs​−s1​, player 2 earns f2(Xs)=s2−Xsf_2(X_s)=s_2-X_sf2​(Xs​)=s2​−Xs​, with s1<s2s_1<s_2s1​<s2​. An impulse δ\deltaδ costs its author c+λ∣δ∣c+\lambda|\delta|c+λ∣δ∣ and pays the opponent c~+λ~∣δ∣\tilde c+\tilde\lambda|\delta|c~+λ~∣δ∣. Payoffs are discounted at rate ρ>0\rho>0ρ>0. The standing assumptions are c≥c~≥0c\ge\tilde c\ge0c≥c~≥0, λ≥λ~≥0\lambda\ge\tilde\lambda\ge0λ≥λ~≥0, (c,λ)≠(c~,λ~)(c,\lambda)\ne(\tilde c,\tilde\lambda)(c,λ)=(c~,λ~) and 1−λρ>01-\lambda\rho>01−λρ>0.

A strategy of player iii is a pair φi=(Ci,ξi)\varphi_i=(\mathcal C_i,\xi_i)φi​=(Ci​,ξi​): an open continuation region Ci⊆R\mathcal C_i\subseteq\mathbb RCi​⊆R and a continuous impulse map ξi:R→Zi\xi_i:\mathbb R\to Z_iξi​:R→Zi​. Player iii intervenes when the state leaves Ci\mathcal C_iCi​, applying the impulse ξi(state)\xi_i(\text{state})ξi​(state); player 1 has priority when both want to act. This rule defines the controlled process Xx;φ1,φ2X^{x;\varphi_1,\varphi_2}Xx;φ1​,φ2​ and the interventions (τi,k,δi,k)(\tau_{i,k},\delta_{i,k})(τi,k​,δi,k​) inductively. Player iii's payoff is

Ji(x;φ1,φ2)=Ex[∫0∞e−ρsfi(Xs) ds−∑ke−ρτi,k(c+λ∣δi,k∣)+∑ke−ρτj,k(c~+λ~∣δj,k∣)].J^i(x;\varphi_1,\varphi_2)=\mathbb E_x\Big[\int_0^\infty e^{-\rho s}f_i(X_s)\,ds-\sum_{k}e^{-\rho\tau_{i,k}}(c+\lambda|\delta_{i,k}|)+\sum_{k}e^{-\rho\tau_{j,k}}(\tilde c+\tilde\lambda|\delta_{j,k}|)\Big].Ji(x;φ1​,φ2​)=Ex​[∫0∞​e−ρsfi​(Xs​)ds−k∑​e−ρτi,k​(c+λ∣δi,k​∣)+k∑​e−ρτj,k​(c~+λ~∣δj,k​∣)].

A pair is xxx-admissible, (φ1,φ2)∈Φx(\varphi_1,\varphi_2)\in\Phi_x(φ1​,φ2​)∈Φx​, when these random variables are integrable, sup⁡t∣Xt∣\sup_t|X_t|supt​∣Xt​∣ has all moments, and neither player's interventions accumulate in finite time. A Nash equilibrium is an admissible pair from which no player gains by deviating to any strategy that keeps the pair admissible.

The explicit objects are θ=2ρ/σ2\theta=\sqrt{2\rho/\sigma^2}θ=2ρ/σ2​, η=(1−λρ)/ρ\eta=(1-\lambda\rho)/\rhoη=(1−λρ)/ρ and

F(y)=2y+θc−ηlog⁡η+yη−y,0<y<η.F(y)=2y+\theta c-\eta\log\frac{\eta+y}{\eta-y},\qquad 0<y<\eta .F(y)=2y+θc−ηlogη−yη+y​,0<y<η.

From the zero ξ\xiξ of FFF and a free parameter s~∈R\tilde s\in\mathbb Rs~∈R, the formulas (4.20)–(4.21) give thresholds xˉ1<xˉ2\bar x_1<\bar x_2xˉ1​<xˉ2​, targets x1∗,x2∗∈]xˉ1,xˉ2[x_1^*,x_2^*\in]\bar x_1,\bar x_2[x1∗​,x2∗​∈]xˉ1​,xˉ2​[, coefficients AijA_{ij}Aij​, the functions φi(y)=Ai1eθy+Ai2e−θy±(y−si)/ρ\varphi_i(y)=A_{i1}e^{\theta y}+A_{i2}e^{-\theta y}\pm(y-s_i)/\rhoφi​(y)=Ai1​eθy+Ai2​e−θy±(y−si​)/ρ and the piecewise candidates V~1,V~2\tilde V_1,\tilde V_2V~1​,V~2​ of (4.6). These are linear outside ]xˉ1,xˉ2[]\bar x_1,\bar x_2[]xˉ1​,xˉ2​[ and equal φi\varphi_iφi​ inside.

Formalization targets

Goal: Proposition 4.7

For every s~∈R\tilde s\in\mathbb Rs~∈R and every initial state x∈Rx\in\mathbb Rx∈R, the threshold strategies

φ1∗=(]xˉ1,+∞[, y↦max⁡(x1∗−y,0)),φ2∗=(]−∞,xˉ2[, y↦min⁡(x2∗−y,0))\varphi_1^*=\big(]\bar x_1,+\infty[,\ y\mapsto\max(x_1^*-y,0)\big),\qquad \varphi_2^*=\big(]-\infty,\bar x_2[,\ y\mapsto\min(x_2^*-y,0)\big)φ1∗​=(]xˉ1​,+∞[, y↦max(x1∗​−y,0)),φ2∗​=(]−∞,xˉ2​[, y↦min(x2∗​−y,0))

form an xxx-admissible Nash equilibrium, and

J1(x;φ1∗,φ2∗)=V~1(x),J2(x;φ1∗,φ2∗)=V~2(x).J^1(x;\varphi_1^*,\varphi_2^*)=\tilde V_1(x),\qquad J^2(x;\varphi_1^*,\varphi_2^*)=\tilde V_2(x).J1(x;φ1∗​,φ2∗​)=V~1​(x),J2(x;φ1∗​,φ2∗​)=V~2​(x).

Milestones

  1. (4.17). FFF has a unique zero ξ∈(0,η)\xi\in(0,\eta)ξ∈(0,η).
  2. Proposition 4.2. For every s~\tilde ss~, the explicit 8-uple (4.20) satisfies the order conditions (4.7) and the optimality and pasting conditions (4.8)–(4.9). Moreover, φ2′′\varphi_2''φ2′′​ changes sign exactly once in ]x2∗,xˉ2[]x_2^*,\bar x_2[]x2∗​,xˉ2​[.
  3. Lemma 4.6. The impulses (4.23) maximise δ↦V~i(x+δ)−c−λ∣δ∣\delta\mapsto\tilde V_i(x+\delta)-c-\lambda|\delta|δ↦V~i​(x+δ)−c−λ∣δ∣, and the intervention operators satisfy (4.24): {M1V~1−V~1<0}=]xˉ1,∞[\{\mathcal M_1\tilde V_1-\tilde V_1<0\}=]\bar x_1,\infty[{M1​V~1​−V~1​<0}=]xˉ1​,∞[ and {M2V~2−V~2<0}=]−∞,xˉ2[\{\mathcal M_2\tilde V_2-\tilde V_2<0\}=]-\infty,\bar x_2[{M2​V~2​−V~2​<0}=]−∞,xˉ2​[.
  4. Condition (v). The equilibrium pair is xxx-admissible for every xxx. This includes the integrability (4.26) of the discounted intervention costs.

Milestones 1–3 are deterministic real analysis; milestone 4 and the goal are probabilistic.

Significance

The result gives explicit equilibria, with explicit thresholds and payoffs, for a nonzero-sum stochastic game with impulse controls. Such games rarely have closed-form solutions. The equilibria form a continuum indexed by s~\tilde ss~: equilibrium payoffs are not unique, and every equilibrium in the family is a translate of a fixed interval policy. The explicit formulas also support the comparative statics of Section 4.4, where the continuation region widens as the fixed cost grows.

Proposition 4.7 is proved in the paper by applying its verification theorem (Theorem 3.3) to V~1,V~2\tilde V_1,\tilde V_2V~1​,V~2​. The admissibility estimate (4.26) is written out only for initial states x∈{x1∗,x2∗}x\in\{x_1^*,x_2^*\}x∈{x1∗​,x2∗​}; the general case is said to be similar. As far as is known, none of these results has a machine-checked proof. A formal proof would check every regularity, pasting and admissibility condition. It would also yield a reusable pathwise construction of impulse-controlled Brownian motion.

Difficulty

The deterministic milestones need careful algebra with nested logarithms and square roots. Proving Lemma 4.6 requires the global shape of V~i(y)±λy\tilde V_i(y)\pm\lambda yV~i​(y)±λy, which needs the sign pattern of φ2′′\varphi_2''φ2′′​ from Proposition 4.2, not only local conditions at the thresholds.

The goal is harder. The Nash inequality must hold against every admissible deviation: any open continuation region and any continuous impulse map, not only threshold strategies. Comparing payoffs therefore needs a verification argument, namely Itô's formula for a function that is C2C^2C2 only piecewise and C1C^1C1 across the thresholds, applied along a process with an unbounded number of jumps, plus a localisation that uses the moment condition (2.8). Admissibility needs a renewal-type bound on the discounted number of interventions, built from i.i.d. exit times of Brownian motion from an interval.

Formalization scope

The Lean development lives in the namespace ImpulseGames.LinearGame.

  • The constants and standing assumptions are a structure Model with the proposition Model.Standing. The added hypothesis c>0c>0c>0 appears in every statement that uses ξ\xiξ: with c=0c=0c=0, which the standing assumptions allow, FFF has no zero in (0,η)(0,\eta)(0,η) and the family (4.20) does not exist.
  • The zero ξ\xiξ is a parameter, constrained by ξ∈(0,η)\xi\in(0,\eta)ξ∈(0,η) and F(ξ)=0F(\xi)=0F(ξ)=0. Milestone 1 shows that exactly one such ξ\xiξ exists.
  • The Brownian motion is Mathlib's IsBrownianReal W P on a probability space, with time in R≥0\mathbb R_{\ge0}R≥0​. Definition 2.2 is formalized pathwise: exit times inf⁡{s>τ~k−1:X~sk−1∉Ci}\inf\{s>\tilde\tau_{k-1}:\tilde X^{k-1}_s\notin\mathcal C_i\}inf{s>τ~k−1​:X~sk−1​∈/Ci​} in [0,∞][0,\infty][0,∞] with inf⁡∅=∞\inf\emptyset=\inftyinf∅=∞, the tie rule favouring player 1, and e−ρ⋅∞=0e^{-\rho\cdot\infty}=0e−ρ⋅∞=0 for the tail of each impulse control. No SDE or stochastic integral appears in any statement; the uncontrolled dynamics are ζ+σ(Ws−Wt)\zeta+\sigma(W_s-W_t)ζ+σ(Ws​−Wt​).
  • Payoffs are Bochner expectations. Φx\Phi_xΦx​ requires every random variable of (2.7) to be integrable, so no deviation can obtain the default value 000 of a non-integrable expectation. The moment condition (2.8) is stated with an extended-real supremum, and (2.9) is read almost surely.
  • The Nash condition quantifies over all strategies of Definition 2.1. A formalization that restricts deviations to threshold strategies would be a different, weaker theorem and is excluded. Likewise, the equilibrium payoffs V~i\tilde V_iV~i​ are the explicit formulas (4.6), never defined as "the equilibrium value".

Two slips of the page are corrected. First, the paper's impulse maps ξi∗(y)=xi∗−y\xi_i^*(y)=x_i^*-yξi∗​(y)=xi∗​−y are not ZiZ_iZi​-valued on all of R\mathbb RR; they are replaced by max⁡(x1∗−y,0)\max(x_1^*-y,0)max(x1∗​−y,0) and min⁡(x2∗−y,0)\min(x_2^*-y,0)min(x2∗​−y,0), which agree with them wherever each player acts. Second, in Lemma 4.6 the maximiser (4.23) is not unique when λ=λ~\lambda=\tilde\lambdaλ=λ~, in the opponent's intervention region (all impulses tie there). The statement asserts maximality everywhere and uniqueness outside that region.

A complete development needs: elementary real analysis for milestones 1–3; a pathwise theory of piecewise-defined processes; an Itô formula for Brownian motion with C1C^1C1, piecewise-C2C^2C2 functions; and exit-time estimates for Brownian motion. The last two are reusable well beyond this mission. Proofs of the deterministic milestones are welcome independently of the stochastic part.

Selected references

  • R. Aïd, M. Basei, G. Callegaro, L. Campi, T. Vargiolu, Nonzero-sum stochastic differential games with impulse controls: a verification theorem with applications, Mathematics of Operations Research 45(1), 2020. https://doi.org/10.1287/moor.2019.0989 (accepted manuscript: arXiv:1605.00039v4, https://arxiv.org/abs/1605.00039)
  • G. Bertola, W. J. Runggaldier, K. Yasuda, On classical and restricted impulse stochastic control for the exchange rate, Applied Mathematics and Optimization 74(2), 423–454, 2016.
  • A. Cadenillas, F. Zapatero, Classical and impulse stochastic control of the exchange rate using interest rates and reserves, Mathematical Finance 10(2), 141–156, 2000.
  • B. Øksendal, A. Sulem, Applied Stochastic Control of Jump Diffusions, 2nd ed., Springer, 2007.
9 thms1 active userReviewed
Markov ChainOperations ResearchProbability·Captain: mikedeng1

Optimization of Multiclass Queueing Networks: Polyhedral and Nonlinear Characterizations of Achievable Performance I: Quadratic Potential Functions Bound Mean Response Times in Open NetworksResearch Paper

Motivation

Scheduling in a multiclass queueing network asks which waiting job a server should work on next when jobs of several types share stations and revisit them along fixed routes. Such networks model semiconductor wafer fabs, job shops and communication switches. Optimal policies are rarely computable: the state space is countably infinite, and even deciding properties of optimal policies is hard (Papadimitriou and Tsitsiklis 1999). A practical substitute is the achievable region approach: describe, by constraints that every policy must satisfy, a set containing all performance vectors any policy can achieve, then optimize a linear cost over that set to get a lower bound on the optimal cost.

Bertsimas, Paschalidis and Tsitsiklis (MIT Sloan working paper 1992; Ann. Appl. Probab. 1994) gave a general method for producing such constraints for open networks, by computing the steady-state drift of quadratic potential functions. This mission formalizes their first-order bounds (Section 4).

Timeline:

  • 1980–1988: Coffman and Mitrani, then Federgruen and Groenevelt — the achievable performance vectors of a single-station multiclass queue form a polytope described by conservation laws.
  • Early 1990s: Kumar (reference [Kuma] of the paper), using a potential-function argument he attributes to Meyn, derives a single lower bound on the mean number in system for re-entrant lines with deterministic routing (described on p. 16 of the paper).
  • 1992–1994: Bertsimas, Paschalidis and Tsitsiklis — parametric families of linear bounds for general open networks with Markovian routing (Theorem 4.1), and the nonparametric polyhedron (Theorems 4.2–4.4), shown to be at least as tight.

Setting

A network has NNN single-server stations and RRR job classes. Class rrr is served at station σ(r)\sigma(r)σ(r), and CiC_iCi​ is the set of classes served at station iii. Class-rrr jobs arrive from outside as a Poisson stream of rate λ0r\lambda_{0r}λ0r​, service times are exponential with rate μr\mu_rμr​, and after service a class-rrr job becomes a class-sss job with probability prsp_{rs}prs​ or leaves with probability pr0=1−∑sprsp_{r0}=1-\sum_s p_{rs}pr0​=1−∑s​prs​. The traffic equations

λr=λ0r+∑r′λr′pr′r(15)\lambda_r=\lambda_{0r}+\sum_{r'}\lambda_{r'}p_{r'r}\qquad(15)λr​=λ0r​+r′∑​λr′​pr′r​(15)

have a unique solution λ\lambdaλ (the network is open), and ∑r∈Ciλr/μr<1\sum_{r\in C_i}\lambda_r/\mu_r<1∑r∈Ci​​λr​/μr​<1 at every station.

The state n⃗=(n1,…,nR)\vec n=(n_1,\dots,n_R)n=(n1​,…,nR​) counts the jobs of each class. A Markovian policy decides from the current state which classes are in service, at most one per station and only classes with jobs present; idling is allowed. Write BrB_rBr​ for the event that station σ(r)\sigma(r)σ(r) serves class rrr, and B0iB_{0i}B0i​ for the event that station iii is idle. Under such a policy n⃗(t)\vec n(t)n(t) is a continuous-time Markov chain. Assumption A requires that it has a unique invariant distribution π\piπ and that Eπ[nr2]<∞E_\pi[n_r^2]<\inftyEπ​[nr2​]<∞ for all rrr. Let nˉr=Eπ[nr]\bar n_r=E_\pi[n_r]nˉr​=Eπ​[nr​], which equals λrxr\lambda_rx_rλr​xr​ with xrx_rxr​ the mean response time of class rrr (Little's law), and define

Irr′=Eπ[1{Br}nr′],Nir′=Eπ[1{B0i}nr′].I_{rr'}=E_\pi[1\{B_r\}n_{r'}],\qquad N_{ir'}=E_\pi[1\{B_{0i}\}n_{r'}].Irr′​=Eπ​[1{Br​}nr′​],Nir′​=Eπ​[1{B0i​}nr′​].

For a set SSS of classes, f-parameters are reals f(r)≥0f(r)\ge 0f(r)≥0 for r∈Sr\in Sr∈S such that μr[∑r′∈Sprr′(f(r)−f(r′))+∑r′∉Sprr′f(r)]\mu_r\big[\sum_{r'\in S}p_{rr'}(f(r)-f(r'))+\sum_{r'\notin S}p_{rr'}f(r)\big]μr​[∑r′∈S​prr′​(f(r)−f(r′))+∑r′∈/S​prr′​f(r)] is nonnegative and the same for all r∈Ci∩Sr\in C_i\cap Sr∈Ci​∩S; that common value is fif_ifi​, and fi=0f_i=0fi​=0 when Ci∩S=∅C_i\cap S=\emptysetCi​∩S=∅ (restriction (17)). The sums over r′∉Sr'\notin Sr′∈/S include the exit r′=0r'=0r′=0.

Formalization targets

Goal: Theorem 4.1

For every policy satisfying Assumption A, every SSS and every f-parameters satisfying (17),

∑r∈Sλrf(r)xr ≥ N′(S)D′(S),\sum_{r\in S}\lambda_rf(r)x_r\ \ge\ \frac{N'(S)}{D'(S)},r∈S∑​λr​f(r)xr​ ≥ D′(S)N′(S)​,

where

N′(S)=∑r∈Sλ0rf2(r)+∑r∉Sλr∑r′∈Sprr′f2(r′)+∑r∈Sλr[∑r′∈Sprr′(f(r)−f(r′))2+∑r′∉Sprr′f2(r)],N'(S)=\sum_{r\in S}\lambda_{0r}f^2(r)+\sum_{r\notin S}\lambda_r\sum_{r'\in S}p_{rr'}f^2(r')+\sum_{r\in S}\lambda_r\Big[\sum_{r'\in S}p_{rr'}(f(r)-f(r'))^2+\sum_{r'\notin S}p_{rr'}f^2(r)\Big],N′(S)=r∈S∑​λ0r​f2(r)+r∈/S∑​λr​r′∈S∑​prr′​f2(r′)+r∈S∑​λr​[r′∈S∑​prr′​(f(r)−f(r′))2+r′∈/S∑​prr′​f2(r)], D′(S)=2[∑i=1Nfi−∑r∈Sλ0rf(r)].D'(S)=2\Big[\sum_{i=1}^Nf_i-\sum_{r\in S}\lambda_{0r}f(r)\Big].D′(S)=2[i=1∑N​fi​−r∈S∑​λ0r​f(r)].

The formal goal is the product form N′(S)≤D′(S)∑r∈Sf(r)nˉrN'(S)\le D'(S)\sum_{r\in S}f(r)\bar n_rN′(S)≤D′(S)∑r∈S​f(r)nˉr​.

Milestones

  1. The utilization identity Eπ[1{Br}]=λr/μrE_\pi[1\{B_r\}]=\lambda_r/\mu_rEπ​[1{Br​}]=λr​/μr​ (pp. 16 and 19).
  2. Theorem 4.2: the linear equalities (24), (25) between nˉr\bar n_rnˉr​ and Irr′I_{rr'}Irr′​.
  3. Theorem 4.3: ∑r∈CiIrr′+Nir′=nˉr′\sum_{r\in C_i}I_{rr'}+N_{ir'}=\bar n_{r'}∑r∈Ci​​Irr′​+Nir′​=nˉr′​ (28).
  4. Theorem 4.4: any nonnegative (x,I,N)(x,I,N)(x,I,N) satisfying (24), (25), (28), with nˉr=λrxr\bar n_r=\lambda_rx_rnˉr​=λr​xr​ in those equalities, satisfies every inequality of Theorem 4.1. This statement is deterministic.

Significance

Theorem 4.1 gives, for each choice of SSS and fff, a linear inequality on mean response times valid for all admissible policies. Minimizing a linear holding cost ∑rcrxr\sum_r c_rx_r∑r​cr​xr​ subject to these inequalities is a linear program whose value bounds the optimal scheduling cost from below; the paper reports numerical values of such bounds in its Section 9. Theorems 4.2–4.4 show that a polynomial-size polyhedron in the variables (nˉ,I,N)(\bar n,I,N)(nˉ,I,N) implies all of these inequalities at once, so the parametric search over fff is unnecessary.

The results are proved in the paper. As far as is known, none of them has a machine-checked proof. Formalizing them requires a Lean treatment of invariant distributions of controlled countable-state Markov chains with unbounded test functions, which is currently absent from Mathlib, and then the algebra of the drift identities. The definitions here (network data, Markovian sequencing policies, the generator, Assumption A) are the substrate that the paper's later results on routing, closed networks and higher-order bounds would reuse.

Difficulty

Every statement except Theorem 4.4 rests on taking expectations of the generator applied to unbounded functions (nrn_rnr​, nrnr′n_rn_{r'}nr​nr′​) under the invariant distribution. The invariance condition is stated only for indicators of single states; extending ∑nπ(n)(Gg)(n)=0\sum_n\pi(n)(\mathcal Gg)(n)=0∑n​π(n)(Gg)(n)=0 to quadratic ggg needs an interchange of summations justified by the second-moment condition of Assumption A. The utilization identity additionally needs uniqueness of the traffic solution to identify μrEπ[1{Br}]\mu_rE_\pi[1\{B_r\}]μr​Eπ​[1{Br​}] with λr\lambda_rλr​. Theorem 4.1 then needs the sign bookkeeping that turns an identity into an inequality: the terms dropped are nonnegative only because f≥0f\ge0f≥0 on SSS, fi≥0f_i\ge0fi​≥0 and at most one class per station is in service.

Formalization scope

Classes are Fin R, stations Fin N, states Fin R → ℕ, all rates and probabilities real. A policy is a Bool-valued function of the state with the two admissibility constraints; work conservation is not assumed. Invariance is global balance of the generator on the countable state space; expectations are tsums. The uniformized chain and the epochs τk\tau_kτk​ of the paper are not built: the paper notes that its expectations at τk\tau_kτk​ are expectations under the invariant distribution of n⃗(t)\vec n(t)n(t).

Conventions fixed in Lean:

  • λrxr\lambda_rx_rλr​xr​ appears only as the mean number in system nˉr\bar n_rnˉr​ (Little's law, used by the paper on pp. 11 and 20); response times are not formalized.
  • Sums over r′∉Sr'\notin Sr′∈/S include the exit r′=0r'=0r′=0 (p. 15).
  • f-parameters are nonnegative on SSS (p. 9).
  • The network is open: (15) has a unique solution, and λ\lambdaλ is an input constrained by (15), never defined from the policy.
  • (18) is stated multiplied by D′(S)D'(S)D′(S), which avoids Lean's x/0=0x/0=0x/0=0 and is (18) whenever D′(S)>0D'(S)>0D′(S)>0.

A quotient-form statement of (18) would be trivially true when D′(S)=0D'(S)=0D′(S)=0, and defining λr\lambda_rλr​ as μrEπ[1{Br}]\mu_rE_\pi[1\{B_r\}]μr​Eπ​[1{Br​}] would make the utilization identity hold by definition; both are excluded.

Welcome contributions: a general lemma extending global balance to test functions of polynomial growth under moment conditions; proofs of the drift identities; the deterministic Theorem 4.4.

Selected references

  • D. Bertsimas, I. Ch. Paschalidis, J. N. Tsitsiklis, Optimization of Multiclass Queueing Networks: Polyhedral and Nonlinear Characterizations of Achievable Performance, MIT Sloan WP #3509-92-MSA, 1992; Ann. Appl. Probab. 4(1), 1994. https://doi.org/10.1214/aoap/1177005200
  • C. H. Papadimitriou, J. N. Tsitsiklis, The complexity of optimal queuing network control, Math. Oper. Res. 24(2), 1999. https://doi.org/10.1287/moor.24.2.293
8 thms1 active userReviewed
Dynamical SystemsOperations ResearchProbability·Captain: mikedeng1

Dynamics of Stochastic Approximation Algorithms 3: Martingale Noise with Bounded q-th Moments and Summable γ_n^(1+q/2) Satisfies Assumption A1 Almost SurelyResearch Paper

Motivation

A stochastic approximation algorithm is a recursion

xn+1−xn=γn+1(F(xn)+Un+1)x_{n+1}-x_n=\gamma_{n+1}\big(F(x_n)+U_{n+1}\big)xn+1​−xn​=γn+1​(F(xn​)+Un+1​)

in Rd\mathbb R^dRd, where FFF is a vector field, γn\gamma_nγn​ are small step sizes and Un+1U_{n+1}Un+1​ is noise. Such recursions go back to Robbins and Monro's root-finding scheme (Robbins–Monro 1951) and underlie stochastic gradient descent, temporal-difference learning, adaptive control and learning in games. The ODE method studies them by comparing the iterates with the trajectories of x˙=F(x)\dot x=F(x)x˙=F(x).

Benaïm's lecture notes (Benaïm 1999) organize the ODE method in two steps. A deterministic step, Proposition 4.1, shows that whenever the noise satisfies a condition called A1 (and the iterates are bounded, or FFF is Lipschitz and bounded on a neighbourhood of them), the interpolated process is an asymptotic pseudotrajectory of the flow of FFF. A probabilistic step then verifies A1 for concrete noise models. This mission formalizes the first such verification, Proposition 4.2: martingale difference noise with bounded qqq-th moments and step sizes with ∑nγn1+q/2<∞\sum_n\gamma_n^{1+q/2}<\infty∑n​γn1+q/2​<∞. The result is described as a particular case of a general theorem of Métivier and Priouret (1987); the same estimates reappear later in the notes.

Setting

Let {γn}n≥1\{\gamma_n\}_{n\ge1}{γn​}n≥1​ be a deterministic sequence with γn≥0\gamma_n\ge0γn​≥0, ∑nγn=∞\sum_n\gamma_n=\infty∑n​γn​=∞ and γn→0\gamma_n\to0γn​→0 (a step sequence). Put τ0=0\tau_0=0τ0​=0, τn=∑i=1nγi\tau_n=\sum_{i=1}^n\gamma_iτn​=∑i=1n​γi​, and let

m(t)=sup⁡{k≥0: t≥τk}m(t)=\sup\{k\ge0:\ t\ge\tau_k\}m(t)=sup{k≥0: t≥τk​}

be the index of the step that contains time t≥0t\ge0t≥0. For a sequence {Un}n≥1\{U_n\}_{n\ge1}{Un​}n≥1​ define the piecewise constant processes Uˉ(t)=Um(t)+1\bar U(t)=U_{m(t)+1}Uˉ(t)=Um(t)+1​ and γˉ(t)=γm(t)+1\bar\gamma(t)=\gamma_{m(t)+1}γˉ​(t)=γm(t)+1​, so that step n+1n+1n+1 occupies the time interval [τn,τn+1)[\tau_n,\tau_{n+1})[τn​,τn+1​) of length γn+1\gamma_{n+1}γn+1​.

Assumption A1 asks that for every T>0T>0T>0

lim⁡n→∞sup⁡{∥∑i=nk−1γi+1Ui+1∥: k=n+1,…,m(τn+T)}=0,\lim_{n\to\infty}\sup\Big\{\Big\|\sum_{i=n}^{k-1}\gamma_{i+1}U_{i+1}\Big\|:\ k=n+1,\dots,m(\tau_n+T)\Big\}=0,n→∞lim​sup{​i=n∑k−1​γi+1​Ui+1​​: k=n+1,…,m(τn​+T)}=0,

or, in the form the notes call equivalent, lim⁡t→∞Δ(t,T)=0\lim_{t\to\infty}\Delta(t,T)=0limt→∞​Δ(t,T)=0 for every T>0T>0T>0, where

Δ(t,T)=sup⁡0≤h≤T∥∫tt+hUˉ(s) ds∥.\Delta(t,T)=\sup_{0\le h\le T}\Big\|\int_t^{t+h}\bar U(s)\,ds\Big\|.Δ(t,T)=0≤h≤Tsup​​∫tt+h​Uˉ(s)ds​.

Let (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P) be a probability space with a nondecreasing sequence {Fn}\{\mathcal F_n\}{Fn​} of sub-σ\sigmaσ-algebras, and F:Rd→RdF:\mathbb R^d\to\mathbb R^dF:Rd→Rd continuous. A sequence {xn}\{x_n\}{xn​} given by the recursion above is a Robbins–Monro algorithm if γ\gammaγ is deterministic, UnU_nUn​ is Fn\mathcal F_nFn​-measurable, and E(Un+1∣Fn)=0E(U_{n+1}\mid\mathcal F_n)=0E(Un+1​∣Fn​)=0.

Formalization targets

Goal: Proposition 4.2

For a Robbins–Monro algorithm and some real q≥2q\ge2q≥2, if

sup⁡nE(∥Un+1∥q)<∞and∑nγn1+q/2<∞,\sup_nE\big(\|U_{n+1}\|^q\big)<\infty\qquad\text{and}\qquad\sum_n\gamma_n^{1+q/2}<\infty,nsup​E(∥Un+1​∥q)<∞andn∑​γn1+q/2​<∞,

then with probability one the realised noise sequence satisfies A1, in both of its forms, simultaneously for all T>0T>0T>0.

Milestones

  1. Eq. (13), an instance of Burkholder's inequality with a universal constant CqC_qCq​:
E{sup⁡n<k≤m(τn+T)∥∑i=nk−1γi+1Ui+1∥q}≤Cq E{[∑i=nm(τn+T)−1γi+12∥Ui+1∥2]q/2}.E\Big\{\sup_{n<k\le m(\tau_n+T)}\Big\|\sum_{i=n}^{k-1}\gamma_{i+1}U_{i+1}\Big\|^q\Big\}\le C_q\,E\Big\{\Big[\sum_{i=n}^{m(\tau_n+T)-1}\gamma_{i+1}^2\|U_{i+1}\|^2\Big]^{q/2}\Big\}.E{n<k≤m(τn​+T)sup​​i=n∑k−1​γi+1​Ui+1​​q}≤Cq​E{[i=n∑m(τn​+T)−1​γi+12​∥Ui+1​∥2]q/2}.
  1. Inequality (14), for finite families with αi≥0\alpha_i\ge0αi​≥0, u>1u>1u>1, 0<δ<10<\delta<10<δ<1:
(∑i∣αiβi∣)u≤(∑iαiδu/(u−1))u−1∑iαi(1−δ)u∣βi∣u.\Big(\sum_i|\alpha_i\beta_i|\Big)^u\le\Big(\sum_i\alpha_i^{\delta u/(u-1)}\Big)^{u-1}\sum_i\alpha_i^{(1-\delta)u}|\beta_i|^u.(i∑​∣αi​βi​∣)u≤(i∑​αiδu/(u−1)​)u−1i∑​αi(1−δ)u​∣βi​∣u.
  1. Eq. (16): for every T>0T>0T>0 there is C(q,T)C(q,T)C(q,T) with E(Δ(t,T)q)≤C(q,T)∫tt+Tγˉq/2(s) dsE(\Delta(t,T)^q)\le C(q,T)\int_t^{t+T}\bar\gamma^{q/2}(s)\,dsE(Δ(t,T)q)≤C(q,T)∫tt+T​γˉ​q/2(s)ds for all t≥0t\ge0t≥0.
  2. Eq. (17): ∑k≥0E(Δ(kT,T)q)<∞\sum_{k\ge0}E(\Delta(kT,T)^q)<\infty∑k≥0​E(Δ(kT,T)q)<∞ for every T>0T>0T>0.
  3. Block comparison: Δ(t,T)≤2Δ(kT,T)+Δ((k+1)T,T)\Delta(t,T)\le2\Delta(kT,T)+\Delta((k+1)T,T)Δ(t,T)≤2Δ(kT,T)+Δ((k+1)T,T) for kT≤t<(k+1)TkT\le t<(k+1)TkT≤t<(k+1)T.

Significance

Proposition 4.2 is the standard sufficient condition under which the ODE method applies to stochastic gradient-type recursions with martingale noise. With q=2q=2q=2 it covers step sizes with ∑γn2<∞\sum\gamma_n^2<\infty∑γn2​<∞ (for example γn=1/n\gamma_n=1/nγn​=1/n) and noise with bounded variance; larger qqq trades stronger moment assumptions for slower decay of the steps, down to ∑γn1+q/2<∞\sum\gamma_n^{1+q/2}<\infty∑γn1+q/2​<∞. Combined with Proposition 4.1 it shows that the interpolated process of a Robbins–Monro algorithm with bounded iterates is almost surely an asymptotic pseudotrajectory of the flow of FFF; the limit set theorems of the notes then locate the limit points of the algorithm.

The result is proved in the notes and in the cited literature; it has not, to our knowledge, been machine-checked. A formal proof would supply reusable pieces that Mathlib currently lacks, most notably a Burkholder (or Burkholder–Davis–Gundy) inequality for discrete-time vector martingales in LqL^qLq, and the continuous-time bookkeeping of the step processes Uˉ\bar UUˉ, γˉ\bar\gammaγˉ​ and the noise deviation Δ\DeltaΔ, shared by the other missions of this series.

Difficulty

The obvious argument controls each window by Doob's L2L^2L2 maximal inequality and sums over windows. That works for q=2q=2q=2 only. For q>2q>2q>2 the second moment of the window sums is not summable under ∑γn1+q/2<∞\sum\gamma_n^{1+q/2}<\infty∑γn1+q/2​<∞, and one needs an LqL^qLq maximal inequality whose right-hand side is the q/2q/2q/2-th moment of the square function. That inequality, Burkholder's, is not in Mathlib. Converting the square function into the moment bound requires a Hölder-type inequality with tuned exponents, and passing from the discrete sums to Δ(t,T)\Delta(t,T)Δ(t,T) requires handling partial steps at both ends of [t,t+h][t,t+h][t,t+h]. A second subtlety is that A1 quantifies over all T>0T>0T>0: the almost-sure statement must hold on a single event of full probability for every TTT, not on an event that depends on TTT.

Formalization scope

The space is Rd\mathbb R^dRd as EuclideanSpace ℝ (Fin d); time is real; qqq is a real number with q≥2q\ge2q≥2, and all powers are real powers of nonnegative quantities. The sequences γ\gammaγ and UUU are indexed by N\mathbb NN, and their values at 000 are unused, as the paper indexes them from 111. The filtration is a Mathlib Filtration ℕ, Un+1U_{n+1}Un+1​ is required to be Fn+1\mathcal F_{n+1}Fn+1​-strongly measurable and integrable, and the martingale difference condition is E(Un+1∣Fn)=0E(U_{n+1}\mid\mathcal F_n)=0E(Un+1​∣Fn​)=0 almost surely. Expectations of nonnegative quantities, the suprema in A1 and Δ\DeltaΔ, and the moment bound are taken in [0,∞][0,\infty][0,∞], so no default value of a non-integrable expectation or of an empty supremum can make a statement hold vacuously; the supremum over an empty range of kkk is 000.

The following readings are excluded and are not acceptable formalizations: a moment hypothesis that holds vacuously, a conditional expectation hypothesis on non-integrable noise, the conclusion "for each TTT, A1 holds almost surely" in place of "almost surely, A1 holds for all TTT", and qqq fixed to 222 or restricted to integers.

All hypotheses are satisfiable: U=0U=0U=0, x=0x=0x=0, F=0F=0F=0 and γn=1/n\gamma_n=1/nγn​=1/n with q=2q=2q=2 satisfy every one of them.

Contributions welcome: a general Burkholder inequality for discrete-time martingales in finite-dimensional spaces (reusable well beyond this mission), lemmas on the step processes and Δ\DeltaΔ (measurability, local integrability, additivity), and the proofs of the milestones.

Selected references

  • M. Benaïm, Dynamics of Stochastic Approximation Algorithms, Séminaire de Probabilités XXXIII, Lecture Notes in Mathematics 1709, Springer, 1999, pp. 1–68. https://doi.org/10.1007/BFb0096509
  • M. Benaïm and M. W. Hirsch, Asymptotic pseudotrajectories and chain recurrent flows, with applications, Journal of Dynamics and Differential Equations 8 (1996), 141–176. https://doi.org/10.1007/BF02218617
  • M. Métivier and P. Priouret, Théorèmes de convergence presque sûre pour une classe d'algorithmes stochastiques à pas décroissant, Probability Theory and Related Fields 74 (1987), 403–428.
  • D. L. Burkholder, Distribution function inequalities for martingales, Annals of Probability 1 (1973), 19–42. https://doi.org/10.1214/aop/1176997023
  • D. W. Stroock, Probability Theory: An Analytic View, Cambridge University Press, 1993.
  • H. Robbins and S. Monro, A stochastic approximation method, Annals of Mathematical Statistics 22 (1951), 400–407. https://doi.org/10.1214/aoms/1177729586
  • H. J. Kushner and G. G. Yin, Stochastic Approximation Algorithms and Applications, Springer, 1997.
10 thms1 active userReviewed
PreviousPage 5 of 7Next

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