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 · 58 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

Open108Completed58All166
Operations ResearchOptimizationProbability·Captain: mikedeng1

Dimensioning Large Call Centers III: Asymptotically Optimal Staffing in the Quality-Driven RegimeResearch Paper

Motivation

How many agents should a call center staff? Telephone call centers employ millions of people, and staffing is their largest cost, so the question is asked every half hour of every day (Gans, Koole & Mandelbaum, 2003). The classical model is the M/M/N (Erlang-C) queue: calls arrive at rate λ\lambdaλ, service times are exponential with mean 1/μ1/\mu1/μ, and NNN agents serve in parallel. Practitioners use the square-root safety staffing rule N≈λ/μ+yλ/μN \approx \lambda/\mu + y\sqrt{\lambda/\mu}N≈λ/μ+yλ/μ​, which Halfin and Whitt (1981) justified in the regime where the probability of waiting stays bounded away from 000 and 111.

Borst, Mandelbaum and Reiman (CWI Report PNA-R0015, 2000; published as Operations Research 52(1), 2004) asked when such a rule is actually optimal: given a staffing cost and a waiting cost, which staffing level minimizes total cost as the arrival rate grows? They identified three regimes according to how the two costs compare. This mission formalizes their third case, the quality-driven regime, in which waiting is so expensive relative to staffing that the optimal number of agents exceeds the offered load by more than any fixed multiple of its square root.

Setting

Fix a service rate μ>0\mu > 0μ>0. For every arrival rate λ>0\lambda > 0λ>0 a waiting-cost function DλD_\lambdaDλ​ assigns cost Dλ(t)D_\lambda(t)Dλ​(t) to a wait of ttt time units; it satisfies Dλ(0)=0D_\lambda(0) = 0Dλ​(0)=0, is strictly increasing, and t↦Dλ(t)e−θtt \mapsto D_\lambda(t)e^{-\theta t}t↦Dλ​(t)e−θt is integrable on (0,∞)(0,\infty)(0,∞) for every θ>0\theta > 0θ>0. A staffing cost FFF, defined for real N>0N > 0N>0, is convex and strictly increasing.

For an integer N>λ/μN > \lambda/\muN>λ/μ the probability of waiting is the Erlang-C formula

π(N,ν)=νNN!{(1−ν/N)∑n=0N−1νnn!+νNN!}−1,ν=λ/μ,\pi(N,\nu) = \frac{\nu^N}{N!}\Bigl\{(1-\nu/N)\sum_{n=0}^{N-1}\frac{\nu^n}{n!} + \frac{\nu^N}{N!}\Bigr\}^{-1},\qquad \nu = \lambda/\mu,π(N,ν)=N!νN​{(1−ν/N)n=0∑N−1​n!νn​+N!νN​}−1,ν=λ/μ,

the expected waiting cost of a delayed customer 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, and the total cost per unit time is C(N,λ)=F(N)+λ π(N,λ/μ) G(N,λ)C(N,\lambda) = F(N) + \lambda\,\pi(N,\lambda/\mu)\,G(N,\lambda)C(N,λ)=F(N)+λπ(N,λ/μ)G(N,λ). An optimal staffing level Nλ∗N^*_\lambdaNλ∗​ minimizes C(⋅,λ)C(\cdot,\lambda)C(⋅,λ) over the integers N>λ/μN > \lambda/\muN>λ/μ.

Write Nλ(x)=λ/μ+xλ/μN_\lambda(x) = \lambda/\mu + x\sqrt{\lambda/\mu}Nλ​(x)=λ/μ+xλ/μ​, and for x>0x > 0x>0 put Fλ(x)=F(Nλ(x))−F(λ/μ)F_\lambda(x) = F(N_\lambda(x)) - F(\lambda/\mu)Fλ​(x)=F(Nλ​(x))−F(λ/μ), Gλ(x)=λG(Nλ(x),λ)G_\lambda(x) = \lambda G(N_\lambda(x),\lambda)Gλ​(x)=λG(Nλ​(x),λ), and πλ(x)=H(Nλ(x),λ/μ)\pi_\lambda(x) = H(N_\lambda(x),\lambda/\mu)πλ​(x)=H(Nλ​(x),λ/μ), where 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 extends the Erlang-C formula to real MMM. The normalized cost is Cλ(x)=Fλ(x)+πλ(x)Gλ(x)C_\lambda(x) = F_\lambda(x) + \pi_\lambda(x)G_\lambda(x)Cλ​(x)=Fλ​(x)+πλ​(x)Gλ​(x), and a surrogate cost is C[z;F^,π^,G^]=F^(z)+π^(z)G^(z)C[z;\hat F,\hat\pi,\hat G] = \hat F(z) + \hat\pi(z)\hat G(z)C[z;F^,π^,G^]=F^(z)+π^(z)G^(z). Rounding is measured by Sλ(x)=min⁡{C(⌊Nλ(x)⌋,λ),C(⌈Nλ(x)⌉,λ)}S_\lambda(x) = \min\{C(\lfloor N_\lambda(x)\rfloor,\lambda), C(\lceil N_\lambda(x)\rceil,\lambda)\}Sλ​(x)=min{C(⌊Nλ​(x)⌋,λ),C(⌈Nλ​(x)⌉,λ)}.

Two special functions appear. The Halfin–Whitt delay 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. The Stirling-type approximation is

Qλ(x)=exp⁡{Nλ(x)[1−rλ(x)+log⁡rλ(x)]}2πNλ(x) (1−rλ(x)),rλ(x)=λ/μNλ(x).Q_\lambda(x) = \frac{\exp\{N_\lambda(x)[1 - r_\lambda(x) + \log r_\lambda(x)]\}}{\sqrt{2\pi N_\lambda(x)}\,(1-r_\lambda(x))},\qquad r_\lambda(x) = \frac{\lambda/\mu}{N_\lambda(x)}.Qλ​(x)=2πNλ​(x)​(1−rλ​(x))exp{Nλ​(x)[1−rλ​(x)+logrλ​(x)]}​,rλ​(x)=Nλ​(x)λ/μ​.

Asymptotic relations are limits of ratios as λ→∞\lambda\to\inftyλ→∞: aλ≈∞bλa_\lambda \stackrel{\infty}{\approx} b_\lambdaaλ​≈∞bλ​ means aλ/bλ→1a_\lambda/b_\lambda \to 1aλ​/bλ​→1, and aλ≪∞bλa_\lambda \stackrel{\infty}{\ll} b_\lambdaaλ​≪∞​bλ​ means aλ/bλ→0a_\lambda/b_\lambda \to 0aλ​/bλ​→0.

Formalization targets

Goal: Theorem 7.1

Assume the regime is quality-driven, display (27): Fλ(κ)≪∞Gλ(κ)F_\lambda(\kappa) \stackrel{\infty}{\ll} G_\lambda(\kappa)Fλ​(κ)≪∞​Gλ​(κ) for every κ>0\kappa > 0κ>0. Let yλ∗y^*_\lambdayλ∗​ minimize Fλ(y)+Qλ(y)Gλ(y)F_\lambda(y) + Q_\lambda(y)G_\lambda(y)Fλ​(y)+Qλ​(y)Gλ​(y) over y>0y > 0y>0. Then

lim⁡λ→∞Sλ(yλ∗)−F(λ/μ)C(Nλ∗,λ)−F(λ/μ)=1.\lim_{\lambda\to\infty}\frac{S_\lambda(y^*_\lambda) - F(\lambda/\mu)}{C(N^*_\lambda,\lambda) - F(\lambda/\mu)} = 1.λ→∞lim​C(Nλ∗​,λ)−F(λ/μ)Sλ​(yλ∗​)−F(λ/μ)​=1.

The statement fixes no constants and no rate; it asserts only that rounding the surrogate optimum loses a vanishing fraction of the excess cost.

Milestones

In attack order: Lemma C.1 (GλG_\lambdaGλ​ strictly convex decreasing); the identity H(N,ν)=π(N,ν)H(N,\nu) = \pi(N,\nu)H(N,ν)=π(N,ν) at integer NNN (Section 3, p. 12); Lemma 3.1 and Lemma 3.2; Corollary 3.3 (the asymptotic optimality criterion); Lemma B.1 (PPP strictly convex decreasing); display (15); Lemma 4.1 (Halfin and Whitt); and the first statement of Lemma 4.2, πλ(xλ)≈∞Qλ(xλ)\pi_\lambda(x_\lambda) \stackrel{\infty}{\approx} Q_\lambda(x_\lambda)πλ​(xλ​)≈∞Qλ​(xλ​) whenever xλ→∞x_\lambda\to\inftyxλ​→∞.

Significance

Theorem 7.1 completes the paper's picture of optimal staffing. In the rationalized regime the square-root rule with the Halfin–Whitt function PPP is optimal; in the efficiency-driven regime staffing barely exceeds the load; in the quality-driven regime the staffing excess outgrows λ/μ\sqrt{\lambda/\mu}λ/μ​ and PPP must be replaced by the Stirling-type expression QλQ_\lambdaQλ​. The theorem gives a one-dimensional minimization whose solution is asymptotically optimal, which turns a discrete optimization over NNN into a smooth problem, and it marks the boundary of validity of square-root staffing.

The result is proved in the paper; it is not formalized anywhere to our knowledge. A complete development formalizes the Section 3 framework (shared with the other regimes of the same paper), the convexity of GλG_\lambdaGλ​ and of PPP, the Halfin–Whitt limit for the continuous extension πλ\pi_\lambdaπλ​, and the Stirling-type asymptotics of the Erlang-C formula. Each of these is a reusable piece of queueing theory in Lean.

Difficulty

The regime theorem itself is short once the framework is in place; the weight lies in the analytic lemmas. Lemma 4.2 requires uniform asymptotics of πλ\pi_\lambdaπλ​ at a staffing excess xλx_\lambdaxλ​ that may grow at any rate, from barely faster than a constant to faster than λ\sqrt{\lambda}λ​, where neither the central-limit picture of Halfin and Whitt nor a single Stirling expansion covers all cases. Lemma 4.1 concerns the continuous extension πλ\pi_\lambdaπλ​ at non-integer server counts, whereas Halfin and Whitt's theorem is about integer ones. The natural first idea, that the goal follows from Corollary 3.3 by plugging in Lemma 4.2, does not apply directly: Lemma 4.2 only covers staffing excesses that tend to infinity, and nothing in the definition of the true optimum xλ∗x^*_\lambdaxλ∗​ or the surrogate optimum yλ∗y^*_\lambdayλ∗​ says that they do.

Formalization scope

Lean represents λ\lambdaλ as a positive real, and λ→∞\lambda\to\inftyλ→∞ is the filter atTop on R\mathbb{R}R with μ\muμ fixed. The standing assumptions on μ\muμ and DλD_\lambdaDλ​ are the structure WaitModel; FFF is a function argument with hypotheses ConvexOn and StrictMonoOn on (0,∞)(0,\infty)(0,∞). Staffing levels NNN are natural numbers. Minimizers (Nλ∗N^*_\lambdaNλ∗​, xλ∗x^*_\lambdaxλ∗​, zλ∗z^*_\lambdazλ∗​, yλ∗y^*_\lambdayλ∗​) are function arguments with minimality hypotheses at every λ>0\lambda > 0λ>0, so every statement holds for every choice among ties. Liminf and limsup relations are stated through Filter.Frequently, avoiding boundedness side conditions.

The queue itself (Poisson arrivals, waiting-time law) is not formalized: the paper's analysis and all its theorems concern the closed-form cost C(N,λ)C(N,\lambda)C(N,λ) with the Erlang-C formula.

Conventions committed to: (i) the goal adds the hypothesis G(N,λ)→∞G(N,\lambda)\to\inftyG(N,λ)→∞ as N↓λ/μN\downarrow\lambda/\muN↓λ/μ, which the paper asserts on p. 12 to show the continuous optimum exists but which does not follow from its standing assumptions (it holds exactly when DλD_\lambdaDλ​ is unbounded); (ii) in SλS_\lambdaSλ​ the floor term is omitted when ⌊Nλ(x)⌋≤λ/μ\lfloor N_\lambda(x)\rfloor \le \lambda/\mu⌊Nλ​(x)⌋≤λ/μ, since the cost is undefined at unstable levels; (iii) the integrability of Dλ(t)e−θtD_\lambda(t)e^{-\theta t}Dλ​(t)e−θt is explicit, because a Lean integral of a non-integrable function is 000; (iv) P(0)=1P(0) = 1P(0)=1, the value of formula (11) at 000; (v) display (15) is stated for b>0b > 0b>0, since the ratio aλ/ba_\lambda/baλ​/b is undefined at b=0b = 0b=0. The instance μ=1\mu = 1μ=1, F(N)=cNF(N) = cNF(N)=cN, Dλ(t)=aλ tD_\lambda(t) = a\sqrt{\lambda}\,tDλ​(t)=aλ​t (Section 9) satisfies every hypothesis of the goal, so the goal is not vacuous; taking πλ\pi_\lambdaπλ​ or GλG_\lambdaGλ​ at Lean default values is ruled out by these explicit domain conditions.

Only the first statement of Lemma 4.2 is a milestone: the second, πλ(xλ)≈Q(xλ)\pi_\lambda(x_\lambda)\approx Q(x_\lambda)πλ​(xλ​)≈Q(xλ​) under xλ≤sup⁡λ1/6x_\lambda \stackrel{\sup}{\le} \lambda^{1/6}xλ​≤sup​λ1/6, fails as printed at xλ=λ1/6x_\lambda = \lambda^{1/6}xλ​=λ1/6. Contributions on the Erlang-C asymptotics, the normal hazard rate, and Laplace transforms of increasing functions are welcome and reusable beyond this mission.

Selected references

  • S. Borst, A. Mandelbaum, M. I. Reiman, Dimensioning Large Call Centers, CWI Report PNA-R0015, 2000 (the version formalized here; every index and page cited in this mission is the report's).
  • S. Borst, A. Mandelbaum, M. I. Reiman, Dimensioning Large Call Centers, 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
  • N. Gans, G. Koole, A. Mandelbaum, Telephone Call Centers: Tutorial, Review, and Research Prospects, Manufacturing & Service Operations Management 5(2):79–141, 2003. https://doi.org/10.1287/msom.5.2.79.16071
24 thms2 active usersReviewed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Dimensioning Large Call Centers II: Asymptotically Optimal Staffing in the Efficiency-Driven RegimeResearch Paper

Why staffing large call centers is a mathematical question

A call center must choose enough servers to limit waiting while paying for every server it staffs. When arrivals are heavy, small changes in the number of servers can change the probability of delay substantially. Borst, Mandelbaum, and Reiman study how to make this choice when the arrival rate grows and the costs of staffing and waiting need not grow at the same rate. Their CWI report treats several regimes within one queueing model. This mission concerns the efficiency-driven regime, where the incremental staffing cost eventually dominates the conditional waiting cost at every fixed positive square-root staffing offset. The resulting rule chooses an offset by optimizing a simpler cost that treats the probability of waiting as one.

The result is useful when the staffing-cost and waiting-cost primitives change with system scale. It says that the simplified choice still attains the optimal total cost asymptotically, even though the actual staffing decision is an integer and the simplified problem uses a real variable. The report states this as Theorem 6.1 on printed page 19, with its interpretation of asymptotic optimality supplied by Corollary 3.3 on printed page 14.

The Erlang-C cost model

Customers arrive at rate λ>0\lambda>0λ>0 and receive exponential service at rate μ>0\mu>0μ>0 per server. The service rate μ\muμ is fixed as λ\lambdaλ grows. For an integer number of servers N>λ/μN>\lambda/\muN>λ/μ, the Erlang-C delay probability π(N,λ/μ)\pi(N,\lambda/\mu)π(N,λ/μ) is the explicit finite-sum expression in Section 2 of the report. A customer who waits has an exponential waiting time with rate Nμ−λN\mu-\lambdaNμ−λ. Let Dλ(t)D_\lambda(t)Dλ​(t) be the cost of a wait of length ttt. It is strictly increasing on t≥0t\ge0t≥0, satisfies Dλ(0)=0D_\lambda(0)=0Dλ​(0)=0, and has finite exponential expectation at every positive rate. The resulting conditional waiting cost is

G(N,λ)=(Nμ−λ)∫0∞Dλ(t)e−(Nμ−λ)t dt.G(N,\lambda)=(N\mu-\lambda)\int_0^\infty D_\lambda(t)e^{-(N\mu-\lambda)t}\,dt.G(N,λ)=(Nμ−λ)∫0∞​Dλ​(t)e−(Nμ−λ)tdt.

The staffing cost F(N)F(N)F(N) is one fixed, convex, strictly increasing function of the server count. Its continuous extension is evaluated at real N>0N>0N>0. Total cost per unit of time at a stable integer level is

C(N,λ)=F(N)+λπ(N,λ/μ)G(N,λ).C(N,\lambda)=F(N)+\lambda\pi(N,\lambda/\mu)G(N,\lambda).C(N,λ)=F(N)+λπ(N,λ/μ)G(N,λ).

Write Nλ∗N^*_\lambdaNλ∗​ for any minimizing stable integer level. Ties are permitted. For a positive real offset xxx, define Nλ(x)=λ/μ+xλ/μN_\lambda(x)=\lambda/\mu+x\sqrt{\lambda/\mu}Nλ​(x)=λ/μ+xλ/μ​, Fλ(x)=F(Nλ(x))−F(λ/μ)F_\lambda(x)=F(N_\lambda(x))-F(\lambda/\mu)Fλ​(x)=F(Nλ​(x))−F(λ/μ), and Gλ(x)=λG(Nλ(x),λ)G_\lambda(x)=\lambda G(N_\lambda(x),\lambda)Gλ​(x)=λG(Nλ​(x),λ). The report extends Erlang-C continuously to πλ(x)\pi_\lambda(x)πλ​(x) and writes the incremental continuous objective as Cλ(x)=Fλ(x)+πλ(x)Gλ(x)C_\lambda(x)=F_\lambda(x)+\pi_\lambda(x)G_\lambda(x)Cλ​(x)=Fλ​(x)+πλ​(x)Gλ​(x). These definitions and the integer-extension identity are from Section 3, printed pages 11–12.

Formalization targets

The report defines the efficiency-driven regime by

for every κ>0,lim⁡λ→∞Fλ(κ)Gλ(κ)=+∞.\text{for every }\kappa>0,\qquad \lim_{\lambda\to\infty}\frac{F_\lambda(\kappa)}{G_\lambda(\kappa)}=+\infty.for every κ>0,λ→∞lim​Gλ​(κ)Fλ​(κ)​=+∞.

For each λ>0\lambda>0λ>0, choose yλ∗>0y^*_\lambda>0yλ∗​>0 to minimize Fλ(y)+Gλ(y)F_\lambda(y)+G_\lambda(y)Fλ​(y)+Gλ​(y) over y>0y>0y>0. Let Sλ(y)S_\lambda(y)Sλ​(y) be the smaller cost of the stable integer levels immediately below and above Nλ(y)N_\lambda(y)Nλ​(y); if the lower one is unstable, use the upper one. The goal, Theorem 6.1 together with Corollary 3.3, is

lim⁡λ→∞Sλ(yλ∗)−F(λ/μ)C(Nλ∗,λ)−F(λ/μ)=1.\lim_{\lambda\to\infty} \frac{S_\lambda(y^*_\lambda)-F(\lambda/\mu)} {C(N^*_\lambda,\lambda)-F(\lambda/\mu)}=1.λ→∞lim​C(Nλ∗​,λ)−F(λ/μ)Sλ​(yλ∗​)−F(λ/μ)​=1.

The milestone path includes the convexity of the conditional waiting cost (Lemma C.1), the agreement of the continuous Erlang-C extension with its integer formula, the two approximation lemmas and their corollary (Lemmas 3.1–3.2 and Corollary 3.3), the convex staffing-cost comparison of equation (13), and all three clauses of the Halfin–Whitt limit in Lemma 4.1. This ordering follows the objects each later statement uses.

What the result gives

The theorem certifies a staffing rule defined by a one-variable surrogate rather than the exact Erlang-C probability in the objective. Its guarantee concerns the incremental total cost above the unavoidable baseline F(λ/μ)F(\lambda/\mu)F(λ/μ), which is the economically relevant quantity when comparing two near-minimal stable staffing levels. The ratio tends to one, so the theorem is stronger than a claim that the two costs merely have the same growth order. The source also presents other regimes with different surrogates; their conclusions are separate targets in this series.

The paper proves the mathematical theorem. This mission asks for a Lean proof of its closed-form model and the surrounding lemmas. The complete development would make the report's approximation framework reusable for later results that combine a continuous queueing approximation, a surrogate minimizer, and integer rounding. It would also expose the exact assumptions needed to pass between real and integer staffing levels. No machine-checked proof of this report's Theorem 6.1 is claimed here.

Where the difficulty lies

The simple objective replaces the delay probability πλ(y)\pi_\lambda(y)πλ​(y) by one. That replacement is accurate near zero offset, but the minimizing offset itself changes with λ\lambdaλ. Pointwise asymptotics at a fixed positive offset do not directly control the value of an objective at its moving minimizer. The proof therefore has to relate the regime assumption to the location of the relevant minimizers before using the Halfin–Whitt limit. Integer rounding introduces another boundary issue: when Nλ(y)N_\lambda(y)Nλ​(y) is just above λ/μ\lambda/\muλ/μ, its floor need not be stable, so evaluating the ordinary Erlang-C formula there would compare the target against a meaningless cost. These difficulties are visible already in the statements of Theorem 6.1 and Lemma 3.2.

Formalization scope and conventions

Lean represents λ\lambdaλ, μ\muμ, offsets, and costs as real numbers; arrival-rate limits use the real filter at +∞+\infty+∞. Staffing counts are natural numbers. The service rate is positive and fixed. A WaitModel packages strict increase and normalization of DλD_\lambdaDλ​ on nonnegative waits together with integrability against every positive exponential rate. This integrability expresses the report's finiteness assumption for GGG and prevents a nonintegrable real integral from silently evaluating to zero. The hypotheses on FFF are convexity and strict increase on positive real staffing levels; FFF does not depend on λ\lambdaλ.

The report asserts that G(N,λ)G(N,\lambda)G(N,λ) diverges as NNN decreases to λ/μ\lambda/\muλ/μ, although the stated assumptions permit bounded increasing waiting penalties for which that assertion fails. The goal therefore includes this explicit divergence hypothesis, which also supports existence of the continuous minimizer used in the report's argument. The integer optimum and the surrogate optimum are functions constrained to be minimizers at every positive arrival rate. They cannot be arbitrary choices that make the conclusion vacuous. The continuous optimum appears only in the framework milestones; it is not a hypothesis of Theorem 6.1.

All formulas are total Lean functions. Their values at λ≤0\lambda\le0λ≤0, unstable integer counts, nonpositive offsets, or invalid parameters to the continuous Erlang-C integral have no queueing interpretation. Every theorem using them constrains its relevant inputs. The definition of SλS_\lambdaSλ​ ignores an unstable floor and uses the stable ceiling. At a positive offset and arrival rate this ceiling is above offered load. The Gaussian density, its cumulative integral, the hazard rate, and the delay function use the explicit formulas of Section 4; the value of the delay function at zero is the continuous extension needed by Lemma 4.1.

The queue's stochastic construction is outside this mission. The formal objects are the report's cost formulas and asymptotic comparisons, not a continuous-time Markov chain. Useful contributions include proofs of the special-function limit, convexity of conditional waiting cost, the integer-extension identity, and the reusable approximation lemmas. The regime condition is the full limit in equation (23); weakening it to an unrelated boundedness condition would change the theorem.

Selected references

  • Sem Borst, Avi Mandelbaum, and Martin I. Reiman, Dimensioning Large Call Centers, CWI Report PNA-R0015, 2000. Report PDF. Theorem 6.1, printed p. 19; Corollary 3.3, printed p. 14; Lemma 4.1, printed p. 15; Lemma C.1, printed p. 40.
22 thms2 active usersReviewed
Dynamical SystemsOperations ResearchProbability·Captain: mikedeng1

Dynamics of Stochastic Approximation Algorithms 4: Subgaussian Martingale Noise with Σ exp(−c/γ_n) < ∞ for Every c > 0 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 (together with a boundedness condition on the iterates), the interpolated process is an asymptotic pseudotrajectory of the flow of FFF. A probabilistic step then verifies A1 for concrete noise models. Proposition 4.2 does this for martingale difference noise with bounded qqq-th moments, at the price of step sizes with ∑nγn1+q/2<∞\sum_n\gamma_n^{1+q/2}<\infty∑n​γn1+q/2​<∞. This mission formalizes the second verification, Proposition 4.4: when the noise is subgaussian, A1 holds almost surely under the much weaker requirement that ∑ne−c/γn<∞\sum_ne^{-c/\gamma_n}<\infty∑n​e−c/γn​<∞ for every c>0c>0c>0, which allows step sizes decaying only slightly faster than 1/log⁡n1/\log n1/logn. The notes attribute the result to Duflo (1997), see also Kushner and Yin (1997) and Benaïm and Hirsch (1996).

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. The noise is subgaussian if there is a number Γ>0\Gamma>0Γ>0 such that for all nnn and all θ∈Rd\theta\in\mathbb R^dθ∈Rd

E(exp⁡⟨θ,Un+1⟩ ∣ Fn)≤exp⁡(Γ2∥θ∥2).E\big(\exp\langle\theta,U_{n+1}\rangle\,\big|\,\mathcal F_n\big)\le\exp\Big(\frac\Gamma2\|\theta\|^2\Big).E(exp⟨θ,Un+1​⟩​Fn​)≤exp(2Γ​∥θ∥2).

Bounded noise, ∥Un∥≤Γ\|U_n\|\le\sqrt\Gamma∥Un​∥≤Γ​, is an example.

Formalization targets

Goal: Proposition 4.4

For a Robbins–Monro algorithm with subgaussian noise and a deterministic step sequence such that

∑ne−c/γn<∞for each c>0,\sum_ne^{-c/\gamma_n}<\infty\qquad\text{for each }c>0,n∑​e−c/γn​<∞for each c>0,

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

Milestones

  1. The exponential supermartingale. For every θ∈Rd\theta\in\mathbb R^dθ∈Rd,
Zn(θ)=exp⁡[∑i=1n⟨θ,γiUi⟩−Γ2∑i=1nγi2∥θ∥2]Z_n(\theta)=\exp\Big[\sum_{i=1}^n\langle\theta,\gamma_iU_i\rangle-\frac\Gamma2\sum_{i=1}^n\gamma_i^2\|\theta\|^2\Big]Zn​(θ)=exp[i=1∑n​⟨θ,γi​Ui​⟩−2Γ​i=1∑n​γi2​∥θ∥2]

is a supermartingale. 2. Directional maximal tail bound. For every unit vector eee, α>0\alpha>0α>0, nnn and T>0T>0T>0,

P(sup⁡n<k≤m(τn+T)⟨e,∑i=nk−1γi+1Ui+1⟩≥α)≤exp⁡(−α22Γ∑i=nm(τn+T)−1γi+12).P\Big(\sup_{n<k\le m(\tau_n+T)}\Big\langle e,\sum_{i=n}^{k-1}\gamma_{i+1}U_{i+1}\Big\rangle\ge\alpha\Big)\le\exp\Big(\frac{-\alpha^2}{2\Gamma\sum_{i=n}^{m(\tau_n+T)-1}\gamma_{i+1}^2}\Big).P(n<k≤m(τn​+T)sup​⟨e,i=n∑k−1​γi+1​Ui+1​⟩≥α)≤exp(2Γ∑i=nm(τn​+T)−1​γi+12​−α2​).
  1. Eq. (18). There are C,C′>0C,C'>0C,C′>0 depending only on ddd and Γ\GammaΓ with
P(Δ(t,T)≥α)≤Cexp⁡(−α2C′∫tt+Tγˉ(s) ds)(t≥0, T>0, α>0).P(\Delta(t,T)\ge\alpha)\le C\exp\Big(\frac{-\alpha^2}{C'\int_t^{t+T}\bar\gamma(s)\,ds}\Big)\qquad(t\ge0,\ T>0,\ \alpha>0).P(Δ(t,T)≥α)≤Cexp(C′∫tt+T​γˉ​(s)ds−α2​)(t≥0, T>0, α>0).
  1. 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.4 is the sufficient condition for the ODE method when the noise has Gaussian-type tails. Its step-size condition holds whenever γnlog⁡n→0\gamma_n\log n\to0γn​logn→0, so it admits steps that decrease far more slowly than the ∑γn2<∞\sum\gamma_n^2<\infty∑γn2​<∞ of the classical L2L^2L2 theory; slowly decreasing steps are what practitioners use to keep algorithms responsive. Combined with Proposition 4.1 it shows that the interpolated process of such an algorithm, with bounded iterates, is almost surely an asymptotic pseudotrajectory of the flow of FFF, and 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 add reusable pieces: an exponential supermartingale and maximal inequality for vector-valued martingale differences with a conditional subgaussian bound (Mathlib's conditional subgaussian notion is scalar), a Borel–Cantelli argument along the grid kTkTkT, and the continuous-time bookkeeping of Uˉ\bar UUˉ, γˉ\bar\gammaγˉ​ and Δ\DeltaΔ shared with the other missions of this series.

Difficulty

The moment method of Proposition 4.2 does not reach this regime: any fixed polynomial moment of the window sums decays only polynomially in the window's step sizes, and under ∑e−c/γn<∞\sum e^{-c/\gamma_n}<\infty∑e−c/γn​<∞ alone polynomial bounds are not summable over windows. Exponential tail bounds are needed, and they must be maximal (uniform over the window) and must hold for the norm of a vector, not only for a scalar. The continuous-time deviation Δ(t,T)\Delta(t,T)Δ(t,T) involves partial steps at both ends of [t,t+h][t,t+h][t,t+h], so the bound must be stated in terms of ∫tt+Tγˉ\int_t^{t+T}\bar\gamma∫tt+T​γˉ​ rather than a sum over whole steps, with constants that do not depend on ttt, TTT or α\alphaα. Finally, A1 quantifies over all T>0T>0T>0: the almost-sure statement must hold on a single event of full probability for every TTT.

Formalization scope

The space is Rd\mathbb R^dRd as EuclideanSpace ℝ (Fin d) (the paper writes Rm\mathbb R^mRm); time is real. 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 Fn+1\mathcal F_{n+1}Fn+1​-strongly measurable and integrable, and E(Un+1∣Fn)=0E(U_{n+1}\mid\mathcal F_n)=0E(Un+1​∣Fn​)=0 almost surely. The subgaussian condition requires exp⁡⟨θ,Un+1⟩\exp\langle\theta,U_{n+1}\rangleexp⟨θ,Un+1​⟩ to be integrable for every θ\thetaθ and nnn. The summand e−c/γne^{-c/\gamma_n}e−c/γn​ is taken to be 000 when γn=0\gamma_n=0γn​=0, its limiting value. The suprema in A1 and Δ\DeltaΔ are taken in [0,∞][0,\infty][0,∞]; the supremum over an empty range of kkk is 000. In Eq. (18) the constants are chosen before the probability space, the algorithm and t,T,αt,T,\alphat,T,α.

The following readings are excluded and are not acceptable formalizations: a subgaussian condition that holds vacuously because the exponential is not integrable (Lean's conditional expectation of a non-integrable function is 000); a summability condition made trivial or false by the convention c/0=0c/0=0c/0=0; and the conclusion "for each TTT, A1 holds almost surely" in place of "almost surely, A1 holds for all TTT". The second sentence of Proposition 4.4 (the asymptotic pseudotrajectory conclusion) is outside this mission.

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

Contributions welcome: a maximal inequality for nonnegative supermartingales in the form needed here, vector subgaussian tail bounds for martingale transforms with deterministic weights (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. Duflo, Random Iterative Models, Applications of Mathematics 34, Springer, 1997.
  • H. J. Kushner and G. G. Yin, Stochastic Approximation Algorithms and Applications, Springer, 1997.
  • 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
  • H. Robbins and S. Monro, A stochastic approximation method, Annals of Mathematical Statistics 22 (1951), 400–407. https://doi.org/10.1214/aoms/1177729586
10 thms2 active usersReviewed
Operations ResearchProbabilityTheoretical Computer Science·Captain: mikedeng1

Approximation Algorithms for Stochastic Inventory Control Models 2: The Triple-Balancing Policy Costs at Most Three Times the Optimum for Stochastic Lot-SizingResearch Paper

Motivation

Periodic-review inventory control with a fixed ordering cost is one of the oldest problems in operations research. A firm reviews its stock at the beginning of each of TTT periods, decides whether to place an order, pays a fixed cost KKK for every order it places, and pays holding costs on leftover stock and penalties on unmet (backlogged) demand. When demand is random and correlated across periods, and the firm's forecast evolves as information arrives, the optimal policy solves a dynamic program over the whole information state. That program is intractable in general, and in practice firms use heuristics with no performance guarantee.

Levi, Pál, Roundy and Shmoys (Math. Oper. Res. 32(2), 2007) gave policies with worst-case guarantees for these models, using a "marginal cost accounting" scheme that charges each unit's holding cost to the period in which it was ordered. For the model with fixed ordering costs, the stochastic lot-sizing problem, they assume that the demand of each period is known at the beginning of that period (make-to-order systems, or settings where the short-term forecast is accurate), while demand further ahead stays random and arbitrarily correlated. Under this assumption they define the triple-balancing policy and prove it costs at most three times the optimum in expectation.

Timeline:

  • Scarf (1960) proved that (s,S)(s,S)(s,S) policies are optimal for independent demands with fixed costs; with correlated demand the optimal policy is a state-dependent (st(ft),St(ft))(s_t(f_t), S_t(f_t))(st​(ft​),St​(ft​)) rule that is hard to compute.
  • Levi, Pál, Roundy and Shmoys (2007) gave the dual-balancing 2-approximation for the model without fixed costs (§4) and the triple-balancing 3-approximation for the stochastic lot-sizing problem (§6, Theorem 6.1), both for arbitrarily correlated demand.

Setting

There are periods t=1,…,Tt=1,\dots,Tt=1,…,T on a probability space (Ω,F,μ)(\Omega,\mathcal F,\mu)(Ω,F,μ) with a filtration (Ft)(\mathcal F_t)(Ft​): Ft\mathcal F_tFt​ is the information available at the beginning of period ttt. The data are a fixed ordering cost K≥0K\ge0K≥0, per-unit holding costs ht≥0h_t\ge0ht​≥0, per-unit backlogging penalties pt≥0p_t\ge0pt​≥0, an initial inventory level x1∈Rx_1\in\mathbb Rx1​∈R, and nonnegative demands DtD_tDt​. The per-unit ordering cost is zero, the lead time is zero and there is no discounting. The defining assumption is that DtD_tDt​ is Ft\mathcal F_tFt​-measurable: the demand of a period is known when the period begins. For every period sss there is a conditional joint distribution IsI_sIs​ of the demands given Fs\mathcal F_sFs​, under which every conditional mean E[Dt∣fs]E[D_t\mid f_s]E[Dt​∣fs​] is finite.

A feasible policy is an order process Q=(Qt)Q=(Q_t)Q=(Qt​) with Qt≥0Q_t\ge0Qt​≥0 and QtQ_tQt​ determined by Ft\mathcal F_tFt​. Its inventory levels are xt=x1+∑j<t(Qj−Dj)x_t=x_1+\sum_{j<t}(Q_j-D_j)xt​=x1​+∑j<t​(Qj​−Dj​) before ordering and yt=xt+Qty_t=x_t+Q_tyt​=xt​+Qt​ after ordering, and its cost is

C(Q)=∑t=1T(K 1(Qt>0)+ht(yt−Dt)++pt(Dt−yt)+).\mathcal C(Q)=\sum_{t=1}^T\Bigl(K\,\mathbb 1(Q_t>0)+h_t(y_t-D_t)^++p_t(D_t-y_t)^+\Bigr).C(Q)=t=1∑T​(K1(Qt​>0)+ht​(yt​−Dt​)++pt​(Dt​−yt​)+).

The triple-balancing policy TB uses two rules. Let s∗s^*s∗ be the last period before sss in which TB ordered (s∗=0s^*=0s∗=0 if none). Rule 1: TB orders in period sss if and only if, without an order in sss, the accumulated backlogging cost over (s∗,s](s^*,s](s∗,s] would exceed KKK. Rule 2: when it orders in s<Ts<Ts<T, it orders

qsB=max⁡{q≥0: E[HsB(q)∣fs]≤K},HsB(q)=∑j=sThj(q−(D[s,j]−xs)+)+,q_s^B=\max\{q\ge0:\ E[H_s^B(q)\mid f_s]\le K\},\qquad H_s^B(q)=\sum_{j=s}^T h_j\bigl(q-(D_{[s,j]}-x_s)^+\bigr)^+,qsB​=max{q≥0: E[HsB​(q)∣fs​]≤K},HsB​(q)=j=s∑T​hj​(q−(D[s,j]​−xs​)+)+,

the largest quantity whose expected marginal holding cost over [s,T][s,T][s,T] is at most KKK. When it orders in period TTT, it orders exactly enough to clear the backorders and meet DTD_TDT​. Let NNN be the number of orders TB places.

Formalization targets

Goal: Theorem 6.1

For every instance, the triple-balancing policy TB and every feasible policy PPP satisfy

E[C(TB)]≤3 E[C(P)].E[\mathcal C(TB)]\le 3\,E[\mathcal C(P)].E[C(TB)]≤3E[C(P)].

The constant 3 is the paper's. The statement leaves the demand law, the information structure and the cost data unrestricted beyond the standing assumptions above.

Milestones

  1. §6.1, Rule 2 observation. In a period where TB orders, Ds≤ysTBD_s\le y_s^{TB}Ds​≤ysTB​: no backorders remain at the end of the period.
  2. Lemma 6.1. K⋅E[N]≤E[C(P)]K\cdot E[N]\le E[\mathcal C(P)]K⋅E[N]≤E[C(P)] for every feasible PPP.
  3. Lemma 6.2. E[C(TB)]≤E[C(P)]+2K⋅E[N]E[\mathcal C(TB)]\le E[\mathcal C(P)]+2K\cdot E[N]E[C(TB)]≤E[C(P)]+2K⋅E[N] for every feasible PPP.

Two non-milestone theorems show that the setting is not empty. A conditional demand law exists whenever demands are integrable, and a triple-balancing policy exists when hT>0h_T>0hT​>0.

Significance

The theorem gives a policy that can be computed online and comes with a worst-case expected-cost guarantee that does not depend on the demand distribution, the horizon or the cost data. In this setting the optimal policy is not computable in general, and the previously used heuristics have no such bound. The two lemmas separate a lower bound on every policy, in terms of TB's own number of orders, from an upper bound on TB's cost. The authors' subsequent work extends the balancing template to capacitated and multi-echelon models (§7 of the paper).

The result is proved in the paper. As far as we know, no machine-checked version exists of this theorem, of the balancing argument, or of a stochastic inventory model with correlated demand and evolving information. A formalization would check the argument, which is terse in places: the printed proof of Lemma 6.2 indexes its final sum loosely and must handle the event N=0N=0N=0. It would also produce reusable infrastructure for policies adapted to a filtration, for regular conditional distributions of future demand, and for cost accounting over random intervals between orders.

Difficulty

The costs of TB and of an arbitrary policy cannot be compared period by period, because the two policies order at different, random times that depend on the evolving information. Any comparison has to be made over intervals whose endpoints are stopping times determined by TB, conditioned on the information at their start. At such a time the other policy may hold more or less stock than TB, and the bound must hold in both cases. Bounding each policy's cost on its own does not work: the guarantee rests on a coupling between when TB orders and what every other policy must pay over the same random stretch of time. The formal side adds a second difficulty. Rule 2 is defined through a conditional expectation viewed as a function of the order quantity, so it needs a regular conditional distribution and a measurable selection of the maximizer.

Formalization scope

  • Periods are natural numbers 1,…,T1,\dots,T1,…,T, demands and orders are real-valued, and data at indices outside 1,…,T1,\dots,T1,…,T are unused.
  • Information is a MeasureTheory.Filtration ℕ. A policy is feasible when it is nonnegative and adapted, and "DtD_tDt​ known at the start of period ttt" means DtD_tDt​ is Ft\mathcal F_tFt​-measurable.
  • The conditional distributions IsI_sIs​ are model data: Markov kernels to demand paths that are Fs\mathcal F_sFs​-measurable regular conditional distributions of the demand path. At every outcome they make DsD_sDs​ deterministic, demands nonnegative and the conditional means E[Dt∣fs]E[D_t\mid f_s]E[Dt​∣fs​] finite.
  • Expected costs, E[N]E[N]E[N] and the conditional expectation in Rule 2 are lower Lebesgue integrals in [0,∞][0,\infty][0,∞]. Lemma 6.2 is stated additively, E[C(TB)]≤E[C(P)]+2K E[N]E[\mathcal C(TB)]\le E[\mathcal C(P)]+2K\,E[N]E[C(TB)]≤E[C(P)]+2KE[N], which is the paper's inequality whenever the expectations are finite.
  • The comparison policy is an arbitrary feasible policy, not an optimal one. The paper's proofs use only feasibility, and this form implies the paper's whenever an optimum exists, without any existence hypothesis.
  • TB is the predicate "feasible and satisfies Rules 1 and 2 at every period and outcome". The rules determine the policy uniquely. Rule 1 uses a strict "exceeds KKK", and the period-TTT order is DT−xTD_T-x_TDT​−xT​.

Several trivializing formalizations are ruled out. Junk conditional expectations cannot make Rule 2 hold for every qqq, because it uses kernel integrals in [0,∞][0,\infty][0,∞]. Infinite expected costs cannot be read as 000. The policy class is not empty, because a separate theorem gives existence under hT>0h_T>0hT​>0 (without some positive holding cost on [s,T][s,T][s,T] the maximum in Rule 2 does not exist).

Contributions welcome: proofs of the existence theorems (measurable selection of qsBq_s^BqsB​, versions of regular conditional distributions), the stopping-time decomposition of the cost over TB's order intervals, and Lemmas 6.1 and 6.2.

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. https://doi.org/10.1287/moor.1060.0205
  • H. Scarf, The Optimality of (S, s) Policies in the Dynamic Inventory Problem, in Mathematical Methods in the Social Sciences, Stanford University Press, 1960.
7 thms2 active usersReviewed
Operations ResearchProbability·Captain: mikedeng1

Quantifying the Bullwhip Effect in a Simple Supply Chain: The Impact of Forecasting, Lead Times, and Information 1: Centralizing Demand Information Does Not Eliminate the Bullwhip EffectResearch Paper

Motivation

The bullwhip effect is the observation that the variability of orders increases as one moves up a supply chain, from the retailer towards the manufacturer and its suppliers. It was documented in industry and in classroom experiments such as the Beer Game (Sterman 1989), and analysed by Lee, Padmanabhan and Whang (1997), who named demand forecasting, lead times, batch ordering, rationing and price variations as its main causes. A remedy often proposed is to centralize demand information: give every stage of the chain the customer demand data, so that no stage forecasts from the distorted orders of its downstream neighbour.

Chen, Drezner, Ryan and Simchi-Levi (2000) quantified the effect for a retailer that forecasts with a moving average and orders with an order-up-to policy. They gave an explicit lower bound on the ratio of the order variance to the demand variance in terms of the lead time, the forecasting window and the demand autocorrelation. They then showed that in a multistage chain with fully centralized demand information this ratio still grows with the total lead time upstream of each stage. This mission formalizes that result, Theorem 3.1 of the paper, together with the single-stage analysis it rests on.

Setting

Time is indexed by the integers. The customer demands DtD_tDt​ seen by the retailer follow the AR(1) model

Dt=μ+ρDt−1+ϵt,(1)D_t = \mu + \rho D_{t-1} + \epsilon_t, \tag{1}Dt​=μ+ρDt−1​+ϵt​,(1)

where μ≥0\mu \ge 0μ≥0, ∣ρ∣<1|\rho| < 1∣ρ∣<1, and the errors ϵt\epsilon_tϵt​ are independent and identically distributed from a symmetric distribution with mean 000 and variance σ2\sigma^2σ2. The demand is in steady state, so that E(Dt)=μ/(1−ρ)E(D_t) = \mu/(1-\rho)E(Dt​)=μ/(1−ρ) and Var(D)=Var(Dt)=σ2/(1−ρ2)\mathrm{Var}(D) = \mathrm{Var}(D_t) = \sigma^2/(1-\rho^2)Var(D)=Var(Dt​)=σ2/(1−ρ2) for every ttt.

The retailer does not know the demand process. With a window of p≥1p \ge 1p≥1 past observations it forms the moving-average estimates

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

where LLL is the lead-time parameter (L=1L = 1L=1 means an order placed at the end of period ttt arrives at the start of period t+1t+1t+1) and CL,ρC_{L,\rho}CL,ρ​ is a constant the paper leaves unspecified. The order-up-to point is yt=D^tL+z σ^etLy_t = \hat D^L_t + z\,\hat\sigma^L_{et}yt​=D^tL​+zσ^etL​ for a safety factor zzz, and the order placed in period ttt is qt=yt−yt−1+Dt−1q_t = y_t - y_{t-1} + D_{t-1}qt​=yt​−yt−1​+Dt−1​. It may be negative: excess inventory is returned without cost.

In the multistage chain with centralized information, stages k=1,2,…k = 1, 2, \dotsk=1,2,… (stage 111 is the retailer) all observe DtD_tDt​ and use the same estimate D^t=∑i=1pDt−i/p\hat D_t = \sum_{i=1}^p D_{t-i}/pD^t​=∑i=1p​Dt−i​/p. Stage kkk has lead time LkL_kLk​ and safety factor zkz_kzk​ and uses the order-up-to point ytk=LkD^t+zkσ^etLky^k_t = L_k\hat D_t + z_k\hat\sigma^{L_k}_{et}ytk​=Lk​D^t​+zk​σ^etLk​​. Following the paper's sequence of events, stage 111 orders qt1=yt1−yt−11+Dt−1q^1_t = y^1_t - y^1_{t-1} + D_{t-1}qt1​=yt1​−yt−11​+Dt−1​, and stage k≥2k \ge 2k≥2, receiving qtk−1q^{k-1}_tqtk−1​, orders qtk=ytk−yt−1k+qtk−1q^k_t = y^k_t - y^k_{t-1} + q^{k-1}_tqtk​=ytk​−yt−1k​+qtk−1​.

Formalization targets

Goal: Theorem 3.1 (p. 441)

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

Var(qtk)Var(D)≥1+(2∑i=1kLip+2(∑i=1kLi)2p2)(1−ρp),\frac{\mathrm{Var}(q^k_t)}{\mathrm{Var}(D)} \ge 1 + \left(\frac{2\sum_{i=1}^k L_i}{p} + \frac{2\left(\sum_{i=1}^k L_i\right)^2}{p^2}\right)(1-\rho^p),Var(D)Var(qtk​)​≥1+​p2∑i=1k​Li​​+p22(∑i=1k​Li​)2​​(1−ρp),

with equality when z1=⋯=zk=0z_1 = \dots = z_k = 0z1​=⋯=zk​=0. The bound holds for every choice of the constants CLk,ρC_{L_k,\rho}CLk​,ρ​ and of the safety factors.

Milestones (p. 438)

  1. The AR(1) moments Var(Dt)=σ2/(1−ρ2)\mathrm{Var}(D_t) = \sigma^2/(1-\rho^2)Var(Dt​)=σ2/(1−ρ2) and Cov(Dt−1,Dt−p−1)=ρpσ2/(1−ρ2)\mathrm{Cov}(D_{t-1}, D_{t-p-1}) = \rho^p\sigma^2/(1-\rho^2)Cov(Dt−1​,Dt−p−1​)=ρpσ2/(1−ρ2).
  2. Eq. (4): qt=(1+L/p)Dt−1−(L/p)Dt−p−1+z(σ^etL−σ^e,t−1L)q_t = (1 + L/p)D_{t-1} - (L/p)D_{t-p-1} + z(\hat\sigma^L_{et} - \hat\sigma^L_{e,t-1})qt​=(1+L/p)Dt−1​−(L/p)Dt−p−1​+z(σ^etL​−σ^e,t−1L​) for every outcome.
  3. Lemma 2.1: Cov(Dt−i,σ^etL)=0\mathrm{Cov}(D_{t-i}, \hat\sigma^L_{et}) = 0Cov(Dt−i​,σ^etL​)=0 for i=1,…,pi = 1, \dots, pi=1,…,p.
  4. The variance identity after Eq. (4):
Var(qt)=[1+(2Lp+2L2p2)(1−ρp)]Var(D)+2z(1+2Lp)Cov(Dt−1,σ^etL)+z2 Var(σ^etL−σ^e,t−1L).\mathrm{Var}(q_t) = \left[1 + \left(\tfrac{2L}{p} + \tfrac{2L^2}{p^2}\right)(1-\rho^p)\right]\mathrm{Var}(D) + 2z\left(1+\tfrac{2L}{p}\right)\mathrm{Cov}(D_{t-1}, \hat\sigma^L_{et}) + z^2\,\mathrm{Var}(\hat\sigma^L_{et} - \hat\sigma^L_{e,t-1}).Var(qt​)=[1+(p2L​+p22L2​)(1−ρp)]Var(D)+2z(1+p2L​)Cov(Dt−1​,σ^etL​)+z2Var(σ^etL​−σ^e,t−1L​).
  1. Theorem 2.2, the single-stage case:
Var(q)Var(D)≥1+(2Lp+2L2p2)(1−ρp),(5)\frac{\mathrm{Var}(q)}{\mathrm{Var}(D)} \ge 1 + \left(\frac{2L}{p} + \frac{2L^2}{p^2}\right)(1-\rho^p), \tag{5}Var(D)Var(q)​≥1+(p2L​+p22L2​)(1−ρp),(5)

with equality when z=0z = 0z=0.

Significance

Theorem 2.2 shows that forecasting with a positive lead time is enough to make orders more variable than demand, even for independent demands (ρ=0\rho = 0ρ=0). It also says how the effect depends on each parameter: the bound decreases in the window ppp and increases in the lead time LLL. Theorem 3.1 is the paper's answer to the centralization remedy. When every stage sees the true customer demand and uses the same forecast and the same policy, the variability of orders at stage kkk is still bounded below by the single-stage expression with the cumulative lead time ∑i≤kLi\sum_{i\le k}L_i∑i≤k​Li​. Centralization reduces the bullwhip effect but does not remove it. The decentralized comparison (Theorem 3.2, where the bound becomes multiplicative across stages) is a separate mission in this series.

On the formalization side, the Gaussian special case of the single-stage results is on the platform. Snyder and Shen's Fundamentals of Supply Chain Theory states Theorem 2.2, Lemma 2.1, Eq. (4) and the AR(1) moments for normally distributed errors, as the items SupplyChainTheory.bullwhip_signal_processing, bullwhip_lemma_13_1, bullwhip_order_identity and ar1_moments. This mission states them under the paper's weaker hypothesis of a symmetric error distribution. The multistage Theorem 3.1 has no machine-checked counterpart. The paper proves only Theorem 2.2 in print. For the proofs of Lemma 2.1 and Theorem 3.1 it refers to Ryan (1997) and to a working paper, so a formalization supplies arguments the published article does not contain.

Difficulty

Most of the algebra is routine. The difficulty is Lemma 2.1 and the covariances like it. The estimate σ^etL\hat\sigma^L_{et}σ^etL​ is a square root of a quadratic form in past demands, so its covariance with a demand cannot be computed from second moments. Under Gaussian errors one can appeal to properties of Gaussian vectors. With only a symmetric error law, every distributional fact has to come from the symmetry of the errors and from the representation of the steady-state demand as an infinite series in past errors.

The printed derivation also moves faster than a proof. Expanding Var(qt)\mathrm{Var}(q_t)Var(qt​) from Eq. (4) produces the cross terms Cov(Dt−1,σ^e,t−1L)\mathrm{Cov}(D_{t-1}, \hat\sigma^L_{e,t-1})Cov(Dt−1​,σ^e,t−1L​) and Cov(Dt−p−1,σ^etL)\mathrm{Cov}(D_{t-p-1}, \hat\sigma^L_{et})Cov(Dt−p−1​,σ^etL​), which lie outside the lags 1,…,p1, \dots, p1,…,p of Lemma 2.1. The display after Eq. (4) does not account for them. A complete proof of milestone 4 must show that these terms vanish too. For the chain, the stage orders are defined by a recursion across stages, and the variance of qtkq^k_tqtk​ involves the estimates σ^etLi\hat\sigma^{L_i}_{et}σ^etLi​​ of all stages i≤ki \le ki≤k.

Formalization scope

Random variables are real functions on a probability space (Ω,P)(\Omega, P)(Ω,P), and time is Z\mathbb ZZ, so that Dt−p−1D_{t-p-1}Dt−p−1​ exists for every ttt. Variance and covariance are Mathlib's ProbabilityTheory.variance and ProbabilityTheory.covariance. The demand structure ChenBullwhip.Centralized.AR1Demand records (1) for every outcome and the paper's error hypotheses: independence, identical distribution, symmetry, mean 000 and variance σ2\sigma^2σ2. It adds four disclosed conditions:

  1. σ>0\sigma > 0σ>0, since the results divide by Var(D)\mathrm{Var}(D)Var(D);
  2. square integrability of errors and demands, since Mathlib's variance of a non-square-integrable function is 000;
  3. a steady-state condition: every DtD_tDt​ is square integrable with the law of D0D_0D0​, which is the stationary solution the paper's moment formulas presuppose;
  4. p≥1p \ge 1p≥1 in every result.

The published Gaussian structure SupplyChainTheory.AR1Demand satisfies these conditions, so this mission generalizes the Snyder–Shen items rather than referencing them. The constants CL,ρC_{L,\rho}CL,ρ​ are free real parameters, and in the chain CLk,ρC_{L_k,\rho}CLk​,ρ​ is C(Lk)C(L_k)C(Lk​) for an arbitrary function CCC. Lead times are natural numbers, L=0L = 0L=0 included. Sums ∑i=1p\sum_{i=1}^p∑i=1p​ and ∑i=1k\sum_{i=1}^k∑i=1k​ run over {1,…,p}\{1,\dots,p\}{1,…,p} and {1,…,k}\{1,\dots,k\}{1,…,k}, and stages are numbered from 111. The order 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 read from the paper's sequence of events, because the paper prints no formula for qtkq^k_tqtk​.

The orders are computed from the demands through the definitions above. They are never arbitrary random variables with assumed moments. "Tight" is formalized as equality, and orders are never truncated at zero. Without the steady-state condition, a process started from an arbitrary D0D_0D0​ satisfies (1) but has time-dependent moments, and the results fail; with σ=0\sigma = 0σ=0 the ratio form would be false. Both cases are excluded by the structure, not by vacuous hypotheses. The structure is satisfiable: i.i.d. standard Gaussian demands on Z→R\mathbb Z \to \mathbb RZ→R form an instance.

A complete development needs: the L2L^2L2 series representation of a stationary AR(1) process; distributional symmetry facts for i.i.d. sequences with a symmetric law; and covariance bookkeeping for finite linear combinations. The first two are reusable for any linear time-series model with symmetric innovations. Contributions to any milestone, and to general lemmas about stationary AR(1) processes, 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. D. Sterman, Modeling Managerial Behavior: Misperceptions of Feedback in a Dynamic Decision Making Experiment, Management Science 35(3):321–339, 1989. https://doi.org/10.1287/mnsc.35.3.321
  • L. V. Snyder, Z.-J. M. Shen, Fundamentals of Supply Chain Theory, 2nd ed., Wiley, 2019, Chapter 13. https://doi.org/10.1002/9781119584445
  • J. K. Ryan, Analysis of Inventory Models with Limited Demand Information, Ph.D. dissertation, Northwestern University, 1997 (cited by the paper for the proofs of Lemma 2.1 and Theorem 3.1).
9 thms2 active usersReviewed
Operations ResearchOptimization·Captain: mikedeng1

An Efficient Algorithm for Computing an Optimal (r, Q) Policy in Continuous Review Stochastic Inventory Systems: Algorithm OPT Returns an Optimal Reorder Point and Order QuantityResearch Paper

Motivation

(r, Q) policies are the standard replenishment rule for a single item under continuous review: whenever the inventory position (stock on hand plus on order minus backorders) drops to the reorder point rrr, an order of size QQQ is placed. They are known to be optimal in the classical models with Poisson or compound renewal demand, constant or exogenous lead times and full backlogging, and they are used widely in practice and in multi-item and multi-echelon systems where they are applied item by item.

For decades, computing an optimal pair (r,Q)(r, Q)(r,Q) exactly was not routine. The textbook treatment of Hadley and Whitin (1963) gives approximations; as Browne and Zipkin (1991) put it, "until recently, there was no reliable, straightforward method for computing an optimal (r, Q) policy, even in the simple case of Poisson demand processes." Many heuristics were proposed (surveyed by Lee and Nahmias, 1989); the only exact procedure in circulation was in Zipkin's classnotes, based on a result of Sahin (1982).

Federgruen and Zheng (1992) give a short exact algorithm, Algorithm OPT, whose work is linear in the optimal order quantity Q∗Q^*Q∗. It rests only on the form of the cost, not on a particular demand model.

Setting

Inventory positions are integers (demand arrives unit by unit). A fixed cost κ>0\kappa>0κ>0 is charged per order, and G:Z→RG:\mathbb Z\to\mathbb RG:Z→R is the expected holding and backlogging cost rate as a function of the inventory position yyy. In all the models of the paper the long-run average cost of the (r,Q)(r,Q)(r,Q) policy, for an integer rrr and an integer Q≥1Q\ge1Q≥1, has the form

C(r,Q)=[κ+∑y=r+1r+QG(y)]/Q.(1)C(r,Q)=\Big[\kappa+\sum_{y=r+1}^{r+Q}G(y)\Big]\Big/Q. \tag{1}C(r,Q)=[κ+y=r+1∑r+Q​G(y)]/Q.(1)

The paper's standing assumptions on GGG are:

  1. −G-G−G is unimodal: there is an integer mmm with GGG nonincreasing on {y≤m}\{y\le m\}{y≤m} and nondecreasing on {y≥m}\{y\ge m\}{y≥m} (flat stretches allowed);
  2. lim⁡∣y∣→∞G(y)=∞\lim_{|y|\to\infty}G(y)=\inftylim∣y∣→∞​G(y)=∞.

The sequence yQy_QyQ​. Let y1y_1y1​ be an integer minimizing GGG. Given y1,…,yQy_1,\dots,y_Qy1​,…,yQ​, let L(Q)=min⁡{y1,…,yQ}L(Q)=\min\{y_1,\dots,y_Q\}L(Q)=min{y1​,…,yQ​} and R(Q)=max⁡{y1,…,yQ}R(Q)=\max\{y_1,\dots,y_Q\}R(Q)=max{y1​,…,yQ​}, and set

yQ+1={L(Q)−1if G(L(Q)−1)≤G(R(Q)+1),R(Q)+1otherwise.y_{Q+1}=\begin{cases}L(Q)-1 & \text{if } G(L(Q)-1)\le G(R(Q)+1),\\ R(Q)+1 & \text{otherwise.}\end{cases}yQ+1​={L(Q)−1R(Q)+1​if G(L(Q)−1)≤G(R(Q)+1),otherwise.​

So the window [L(Q),R(Q)][L(Q),R(Q)][L(Q),R(Q)] grows by one point at a time towards the smaller neighbouring value, ties going left. Write r∗(Q)r^*(Q)r∗(Q) for an optimal reorder point for a given QQQ, and

C∗(Q)=[κ+∑i=1QG(yi)]/Q.C^*(Q)=\Big[\kappa+\sum_{i=1}^{Q}G(y_i)\Big]\Big/Q .C∗(Q)=[κ+i=1∑Q​G(yi​)]/Q.

Algorithm OPT, Step 1. Variables S,Q,C∗,r,RS,Q,C^*,r,RS,Q,C∗,r,R start at S=κ+G(y1)S=\kappa+G(y_1)S=κ+G(y1​), Q=1Q=1Q=1, C∗=SC^*=SC∗=S, r=y1−1r=y_1-1r=y1​−1, R=y1+1R=y_1+1R=y1​+1. Each pass compares G(r)G(r)G(r) and G(R)G(R)G(R); on the smaller side (left on ties) it stops if C∗C^*C∗ is at most that value, and otherwise adds the value to SSS and moves rrr one step left or RRR one step right; then Q:=Q+1Q:=Q+1Q:=Q+1 and C∗:=S/QC^*:=S/QC∗:=S/Q. The output is the final (r,Q)(r,Q)(r,Q).

Formalization targets

Goal: Theorem 1

Under the standing assumptions, Step 1 of Algorithm OPT, started from any global minimizer y1y_1y1​ of GGG, stops after finitely many passes, and its output (r,Q)(r,Q)(r,Q) satisfies Q≥1Q\ge1Q≥1 and

C(r,Q)≤C(r′,Q′)for all integers r′ and all integers Q′≥1.C(r,Q)\le C(r',Q')\qquad\text{for all integers } r' \text{ and all integers } Q'\ge 1 .C(r,Q)≤C(r′,Q′)for all integers r′ and all integers Q′≥1.

The goal fixes no constants and no demand model: it is a statement about every GGG satisfying the standing assumptions.

Milestones, in proof order

  • §2, p. 811: {y1,…,yQ}\{y_1,\dots,y_Q\}{y1​,…,yQ​} is the contiguous block [L(Q),R(Q)][L(Q),R(Q)][L(Q),R(Q)] of QQQ integers and carries the QQQ smallest values of GGG.
  • Figure 1 (p. 809): yQ+1y_{Q+1}yQ+1​ has the least GGG-value outside the window; in particular G(y1)≤G(y2)≤⋯G(y_1)\le G(y_2)\le\cdotsG(y1​)≤G(y2​)≤⋯.
  • Lemma 1: L(Q)−1L(Q)-1L(Q)−1 is an optimal reorder point for QQQ.
  • Corollary 1: r∗(Q)−1≤r∗(Q+1)≤r∗(Q)r^*(Q)-1\le r^*(Q+1)\le r^*(Q)r∗(Q)−1≤r∗(Q+1)≤r∗(Q).
  • Display before (6): min⁡rC(r,Q)=C∗(Q)\min_r C(r,Q)=C^*(Q)minr​C(r,Q)=C∗(Q).
  • (6): C∗(Q+1)=[QC∗(Q)+G(yQ+1)]/(Q+1)C^*(Q+1)=[QC^*(Q)+G(y_{Q+1})]/(Q+1)C∗(Q+1)=[QC∗(Q)+G(yQ+1​)]/(Q+1), and C∗(Q+1)<C∗(Q)C^*(Q+1)<C^*(Q)C∗(Q+1)<C∗(Q) iff G(yQ+1)<C∗(Q)G(y_{Q+1})<C^*(Q)G(yQ+1​)<C∗(Q).
  • Lemma 2: the smallest qqq with C∗(q)≤G(yq+1)C^*(q)\le G(y_{q+1})C∗(q)≤G(yq+1​) exists and is an optimal order size.
  • Step 1 tracks the sequence: from the state (κ+∑i≤QG(yi), Q, C∗(Q), L(Q)−1, R(Q)+1)(\kappa+\sum_{i\le Q}G(y_i),\,Q,\,C^*(Q),\,L(Q)-1,\,R(Q)+1)(κ+∑i≤Q​G(yi​),Q,C∗(Q),L(Q)−1,R(Q)+1) one pass stops with (L(Q)−1,Q)(L(Q)-1,Q)(L(Q)−1,Q) exactly when C∗(Q)≤G(yQ+1)C^*(Q)\le G(y_{Q+1})C∗(Q)≤G(yQ+1​) and otherwise moves to the same state for Q+1Q+1Q+1.

Significance

The result turns the joint minimization of (1) over (r,Q)∈Z×Z≥1(r,Q)\in\mathbb Z\times\mathbb Z_{\ge1}(r,Q)∈Z×Z≥1​, an unbounded two-dimensional integer problem, into a single scan whose length is Q∗Q^*Q∗ plus the distance to the minimizer of GGG. Because it uses only the form (1) and the unimodality of −G-G−G, it applies at once to Poisson and compound Poisson demand, to stochastic lead times with an equilibrium lead-time demand, and to cost structures with stockout penalties; the paper also notes extensions to (r,nQ)(r,nQ)(r,nQ) policies. Lemma 1 and Corollary 1 additionally give the structure of the optimal reorder point as a function of QQQ.

The result has been proved on paper since 1992. What this mission adds is a machine-checked proof of the algorithm's correctness for general GGG under exactly the paper's hypotheses. The platform already has the linear-cost special case of the underlying lemmas for one discrete demand model (InventoryControl.rq_discrete_recursion, rq_discrete_joint_optimal), but with C(Q)C(Q)C(Q) and Q∗Q^*Q∗ given as hypotheses and no algorithm; nothing on the platform states the algorithm or treats general unimodal −G-G−G.

Difficulty

The obvious argument says: for fixed QQQ the sum in (1) should cover the QQQ smallest values of GGG, and the greedy window collects exactly those. Both halves need care on the integers with flat stretches of GGG: "the QQQ smallest values" is ambiguous under ties, and the claim that a greedy window holds them relies on y1y_1y1​ being a global minimizer together with the unimodality of −G-G−G, not on convexity.

The stopping rule is the second point. Lemma 2 looks like a first-order condition, but C∗(⋅)C^*(\cdot)C∗(⋅) need not be convex; optimality of the first stopping qqq for all larger QQQ uses that the values G(yi)G(y_i)G(yi​) are nondecreasing along the sequence, which the paper uses without stating. Termination of the algorithm is not discussed on the page; it needs G→∞G\to\inftyG→∞, and fails for constant GGG.

Finally, the goal is about an imperative loop. Connecting its five variables to yQy_QyQ​, C∗(Q)C^*(Q)C∗(Q) and L(Q)L(Q)L(Q) is an invariant argument that has to match the tie-breaking and the non-strict stopping tests exactly.

Formalization scope

  • Types. G:Z→RG:\mathbb Z\to\mathbb RG:Z→R, κ∈R\kappa\in\mathbb Rκ∈R with κ>0\kappa>0κ>0, reorder points in Z\mathbb ZZ, order quantities in N\mathbb NN with Q≥1Q\ge1Q≥1 required wherever a cost appears. Lean's x/0=0x/0=0x/0=0 makes C(r,0)=0C(r,0)=0C(r,0)=0, so optimality is always quantified over Q′≥1Q'\ge1Q′≥1 and the goal asserts that the returned QQQ is ≥1\ge1≥1.
  • Assumptions. "−G-G−G unimodal" is NegUnimodal G: ∃m\exists m∃m, GGG antitone on (−∞,m](-\infty,m](−∞,m] and monotone on [m,∞)[m,\infty)[m,∞). "lim⁡∣y∣→∞G=∞\lim_{|y|\to\infty}G=\inftylim∣y∣→∞​G=∞" is Coercive G: G→+∞G\to+\inftyG→+∞ along atBot and atTop. Mathlib's QuasiconvexOn ℤ is not used: over Z\mathbb ZZ-weights it holds for every function.
  • The sequence. L(Q),R(Q)L(Q),R(Q)L(Q),R(Q) are defined by recursion on the window, and yyy is 1-based with an unused value at index 0; that L,RL,RL,R are the minimum and maximum of {y1,…,yQ}\{y_1,\dots,y_Q\}{y1​,…,yQ​}, as the paper defines them, is the first milestone.
  • The algorithm. Step 1 is transcribed literally, including G(r)≤G(R)G(r)\le G(R)G(r)≤G(R) → left and the non-strict tests C∗≤G(r)C^*\le G(r)C∗≤G(r), C∗≤G(R)C^*\le G(R)C∗≤G(R); GGG is evaluated directly instead of through the ΔG\Delta GΔG bookkeeping. The loop runs with a pass budget and returns nothing when the budget runs out; the goal states that for every large enough budget it returns an optimal pair.
  • Step 0 is not formalized. It scans L=0,1,…L=0,1,\dotsL=0,1,… for the first LLL with ΔG(L)≥0\Delta G(L)\ge0ΔG(L)≥0, under the paper's simplification y1>0y_1>0y1​>0; under unimodality alone it can stop on a plateau before the minimum. The goal starts Step 1 from a given global minimizer y1y_1y1​, which is the paper's own §2 setup and matches its p. 812 remark that Step 0 may be replaced by a bisection search.
  • Not formalized: Theorem 1's second sentence (the operation count), the derivations of (1) for specific demand models, and (5).
  • Corrected slips. The printed proof of Lemma 2 writes C(Q)−C(Q∗)C(Q)-C(Q^*)C(Q)−C(Q∗) with C∗(Q)C^*(Q)C∗(Q) inside the bracket; the correct identity has C∗(Q)−C∗(Q∗)C^*(Q)-C^*(Q^*)C∗(Q)−C∗(Q∗) and C∗(Q∗)C^*(Q^*)C∗(Q∗). Lemma 2's "Q∗Q^*Q∗" is formalized as existence of the smallest qqq with the property plus its optimality, since minimizers need not be unique; likewise "r∗(Q)=L(Q)−1r^*(Q)=L(Q)-1r∗(Q)=L(Q)−1" means L(Q)−1L(Q)-1L(Q)−1 is an optimal reorder point.
  • Ruled out. Defining the algorithm's output as an argmin of CCC, or by searching for Lemma 2's qqq, would make the goal trivial; the algorithm is defined by its steps. A statement of the form "if the run returns a pair, it is optimal" would be vacuous for a loop that never stops; termination is part of the goal.

Proofs of any milestone are welcome, as are general lemmas on windows of unimodal integer sequences, which are reusable beyond this mission.

Selected references

  • A. Federgruen and Y.-S. Zheng, An Efficient Algorithm for Computing an Optimal (r, Q) Policy in Continuous Review Stochastic Inventory Systems, Operations Research 40(4):808–813, 1992. https://doi.org/10.1287/opre.40.4.808
  • G. Hadley and T. M. Whitin, Analysis of Inventory Systems, Prentice-Hall, 1963.
  • S. Browne and P. Zipkin, Inventory Models with Continuous, Stochastic Demands, Annals of Applied Probability 1(3):419–435, 1991. https://doi.org/10.1214/aoap/1177005875
  • H. L. Lee and S. Nahmias, Single-Product, Single-Location Models, in Handbooks in OR & MS vol. 4, 1993 (cited by the paper as a 1989 working paper).
  • I. Sahin, On the Objective Function Behavior in (s, S) Inventory Models, Operations Research 30(4):709–724, 1982. https://doi.org/10.1287/opre.30.4.709
10 thms2 active usersReviewed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Dimensioning Large Call Centers I: The Rationalized Staffing Function Is Asymptotically OptimalResearch Paper

Motivation

A call center with NNN agents facing Poisson arrivals at rate λ\lambdaλ and exponential service at rate μ\muμ is the M/M/N (Erlang-C) queue. Choosing NNN trades the cost of agents against the cost of customers waiting, and in practice it is done with the square-root safety-staffing rule N≈R+yRN \approx R + y\sqrt RN≈R+yR​, where R=λ/μR = \lambda/\muR=λ/μ is the offered load. Borst, Mandelbaum and Reiman (CWI Report PNA-R0015, 2000; published in Operations Research 52(1), 2004, doi:10.1287/opre.1030.0081) turned that rule of thumb into an optimization result: for a general convex staffing cost and a general waiting-cost function, they identify the safety factor yyy that makes the rule asymptotically optimal as the arrival rate grows.

Timeline of the asymptotic regime the paper builds on:

  • 1917. Erlang's delay formula π(N,ν)\pi(N,\nu)π(N,ν) for the M/M/N queue.
  • 1981. Halfin and Whitt (Oper. Res. 29(3)) show that with N=R+βRN = R + \beta\sqrt RN=R+βR​ servers the probability of waiting converges to a limit P(β)∈(0,1)P(\beta) \in (0,1)P(β)∈(0,1), the quality-and-efficiency-driven regime.
  • 2000/2004. Borst, Mandelbaum and Reiman classify cost structures into a rationalized, an efficiency-driven and a quality-driven regime, and prove asymptotic optimality of an explicit staffing rule in each.

This mission is the first of a series of four on that paper and covers the rationalized regime (Section 5), where staffing and waiting costs are of the same order.

Setting

The service rate μ>0\mu > 0μ>0 is fixed and the arrival rate λ\lambdaλ grows. A staffing cost FFF, defined on (0,∞)(0,\infty)(0,∞), is convex and strictly increasing; it does not depend on λ\lambdaλ. For each λ>0\lambda > 0λ>0 a waiting-cost function DλD_\lambdaDλ​ satisfies Dλ(0)=0D_\lambda(0)=0Dλ​(0)=0, is strictly increasing on [0,∞)[0,\infty)[0,∞), and makes

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

finite for every N>λ/μN > \lambda/\muN>λ/μ. With the Erlang-C formula

π(N,ν)=νNN!{(1−νN)∑n=0N−1νnn!+νNN!}−1,\pi(N,\nu) = \frac{\nu^N}{N!}\Big\{\big(1-\tfrac{\nu}{N}\big)\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,

the expected total cost of staffing N>λ/μN > \lambda/\muN>λ/μ agents is C(N,λ)=F(N)+λ π(N,λ/μ) G(N,λ)C(N,\lambda) = F(N) + \lambda\,\pi(N,\lambda/\mu)\,G(N,\lambda)C(N,λ)=F(N)+λπ(N,λ/μ)G(N,λ), and Nλ∗N^*_\lambdaNλ∗​ is any integer N>λ/μN > \lambda/\muN>λ/μ minimizing it (7).

In normalized units Nλ(x)=λ/μ+xλ/μN_\lambda(x) = \lambda/\mu + x\sqrt{\lambda/\mu}Nλ​(x)=λ/μ+xλ/μ​ the paper defines Fλ(x)=F(Nλ(x))−F(λ/μ)F_\lambda(x) = F(N_\lambda(x)) - F(\lambda/\mu)Fλ​(x)=F(Nλ​(x))−F(λ/μ), Gλ(x)=λG(Nλ(x),λ)G_\lambda(x) = \lambda G(N_\lambda(x),\lambda)Gλ​(x)=λG(Nλ​(x),λ), the continuous delay probability πλ(x)=H(Nλ(x),λ/μ)\pi_\lambda(x) = H(N_\lambda(x),\lambda/\mu)πλ​(x)=H(Nλ​(x),λ/μ) with

H(M,α)={α∫0∞e−αt t (1+t)M−1 dt}−1,H(M,\alpha) = \Big\{\alpha\int_0^\infty e^{-\alpha t}\,t\,(1+t)^{M-1}\,dt\Big\}^{-1},H(M,α)={α∫0∞​e−αtt(1+t)M−1dt}−1,

and Cλ(x)=Fλ(x)+πλ(x)Gλ(x)C_\lambda(x) = F_\lambda(x) + \pi_\lambda(x)G_\lambda(x)Cλ​(x)=Fλ​(x)+πλ​(x)Gλ​(x), minimized at xλ∗x^*_\lambdaxλ∗​ (8). A surrogate C[z;F^,π^,G^]=F^(z)+π^(z)G^(z)C[z;\hat F,\hat\pi,\hat G] = \hat F(z)+\hat\pi(z)\hat G(z)C[z;F^,π^,G^]=F^(z)+π^(z)G^(z) approximates it. Rounding is measured by

Sλ(x)=min⁡{C(⌊Nλ(x)⌋,λ), C(⌈Nλ(x)⌉,λ)}.(10)S_\lambda(x) = \min\{C(\lfloor N_\lambda(x)\rfloor,\lambda),\,C(\lceil N_\lambda(x)\rceil,\lambda)\}. \tag{10}Sλ​(x)=min{C(⌊Nλ​(x)⌋,λ),C(⌈Nλ​(x)⌉,λ)}.(10)

The Halfin–Whitt delay function is P(x)=(1+x/h(−x))−1P(x) = \big(1 + x/h(-x)\big)^{-1}P(x)=(1+x/h(−x))−1, with h=ϕ/(1−Φ)h = \phi/(1-\Phi)h=ϕ/(1−Φ) the standard normal hazard rate (11). Asymptotic equality aλ≈∞bλa_\lambda \stackrel{\infty}{\approx} b_\lambdaaλ​≈∞bλ​ means aλ/bλ→1a_\lambda/b_\lambda \to 1aλ​/bλ​→1 as λ→∞\lambda\to\inftyλ→∞.

Formalization targets

Goal: Theorem 5.1

Assume the rationalized condition (18): for some κ>0\kappa > 0κ>0, Fλ(κ)/Gλ(κ)→γ∈(0,∞)F_\lambda(\kappa)/G_\lambda(\kappa) \to \gamma \in (0,\infty)Fλ​(κ)/Gλ​(κ)→γ∈(0,∞). Let yλ∗y^*_\lambdayλ∗​ minimize Fλ(y)+P(y)Gλ(y)F_\lambda(y) + P(y)G_\lambda(y)Fλ​(y)+P(y)Gλ​(y) over y>0y>0y>0 (19). Then

lim⁡λ→∞Sλ(yλ∗)−F(λ/μ)C(Nλ∗,λ)−F(λ/μ)=1.\lim_{\lambda\to\infty}\frac{S_\lambda(y^*_\lambda) - F(\lambda/\mu)}{C(N^*_\lambda,\lambda) - F(\lambda/\mu)} = 1.λ→∞lim​C(Nλ∗​,λ)−F(λ/μ)Sλ​(yλ∗​)−F(λ/μ)​=1.

The goal fixes no constant and no rate: it asserts only that the excess cost of the explicit rule is asymptotically the optimal excess cost.

Milestones

  • Lemma C.1: GλG_\lambdaGλ​ is strictly convex and strictly decreasing on (0,∞)(0,\infty)(0,∞).
  • Section 3, p. 12: H(N,ν)=π(N,ν)H(N,\nu) = \pi(N,\nu)H(N,ν)=π(N,ν) at integers N>ν>0N > \nu > 0N>ν>0.
  • Lemma 3.1, Lemma 3.2, Corollary 3.3: the approximation principle. If the surrogate approximates CλC_\lambdaCλ​ at both xλ∗x^*_\lambdaxλ∗​ and its own minimizer zλ∗z^*_\lambdazλ∗​, then rounding Nλ(zλ∗)N_\lambda(z^*_\lambda)Nλ​(zλ∗​) is asymptotically optimal.
  • Eqs. (13)–(14): FλF_\lambdaFλ​ preserves lim sup⁡\limsuplimsup-separation of ratios.
  • Lemma 4.1 (Halfin & Whitt): for bounded xλx_\lambdaxλ​, πλ(xλ)/P(xλ)→1\pi_\lambda(x_\lambda)/P(x_\lambda) \to 1πλ​(xλ​)/P(xλ​)→1.

Significance

The theorem justifies the square-root staffing rule from first principles for a broad cost class. In Example 5.3 of the paper (linear staffing cost ccc per agent, linear waiting cost aaa per unit time) it gives N∗≈R+y∗(a/c)RN^* \approx R + y^*(a/c)\sqrt RN∗≈R+y∗(a/c)R​, with y∗(r)y^*(r)y∗(r) the minimizer of y+rP(y)/yy + rP(y)/yy+rP(y)/y, a one-dimensional rule computable once for all loads. Corollary 3.3 is reused verbatim by the efficiency-driven and quality-driven theorems of the paper (missions II and III of this series), and Lemma 4.1 is the analytic input of all three.

The result has been proved since 2000; no machine-checked proof of it, or of the Halfin–Whitt limit for the continuous extension πλ\pi_\lambdaπλ​, is known to exist. The mission produces a formal proof of the regime theorem together with reusable formal statements of the Erlang-C function, its integral representation, and the Halfin–Whitt limit.

Difficulty

The reduction from discrete to continuous staffing (Lemmas 3.1–3.2) is elementary once unimodality of CλC_\lambdaCλ​ is available, but unimodality rests on convexity of πλ\pi_\lambdaπλ​, which the paper cites rather than proves, and on Lemma C.1, which needs differentiation under an improper integral. The central difficulty is Lemma 4.1: the paper derives it from Halfin and Whitt's limit theorem, which is stated for integer server counts, while πλ\pi_\lambdaπλ​ is evaluated at non-integer Nλ(xλ)N_\lambda(x_\lambda)Nλ​(xλ​); a proof needs a uniform Laplace-type asymptotic for the integral defining HHH. A further obstacle is bounding xλ∗x^*_\lambdaxλ∗​: the obvious route through continuity of the optimizer fails because nothing converges, and the paper instead argues by contradiction via (14).

Formalization scope

All objects live in DimCallCenters.Rationalized. The arrival rate is a real lam, and every limit is Filter.atTop on R\mathbb RR with μ\muμ fixed. The queue itself is not modelled; the paper's theorems are statements about the closed-form cost C(N,λ)C(N,\lambda)C(N,λ), and so are these. Committed conventions:

  1. The standing assumptions are a structure WaitModel (μ>0\mu>0μ>0; Dλ(0)=0D_\lambda(0)=0Dλ​(0)=0; DλD_\lambdaDλ​ strictly increasing on [0,∞)[0,\infty)[0,∞); t↦Dλ(t)e−θtt\mapsto D_\lambda(t)e^{-\theta t}t↦Dλ​(t)e−θt integrable on (0,∞)(0,\infty)(0,∞) for every θ>0\theta>0θ>0, which is the paper's finiteness of GGG). FFF is convex and strictly increasing on (0,∞)(0,\infty)(0,∞).
  2. Staffing levels in C(N,λ)C(N,\lambda)C(N,λ) are natural numbers; GGG and HHH take real NNN.
  3. Argmins (Nλ∗N^*_\lambdaNλ∗​, xλ∗x^*_\lambdaxλ∗​, zλ∗z^*_\lambdazλ∗​, yλ∗y^*_\lambdayλ∗​) are hypotheses that a given function is a minimizer, for every λ>0\lambda>0λ>0; ties are allowed and the theorems hold for every choice.
  4. In SλS_\lambdaSλ​ the floor term is omitted when ⌊Nλ(x)⌋≤λ/μ\lfloor N_\lambda(x)\rfloor \le \lambda/\mu⌊Nλ​(x)⌋≤λ/μ, where CCC is undefined.
  5. lim sup⁡\limsuplimsup and lim inf⁡\liminfliminf relations are written with ∃ᶠ/∀ᶠ, not Filter.limsup on R\mathbb RR.
  6. Added hypothesis. The goal assumes G(N,λ)→∞G(N,\lambda)\to\inftyG(N,λ)→∞ as N↓λ/μN\downarrow\lambda/\muN↓λ/μ. The paper asserts this limit on p. 12, but it does not follow from its assumptions (it fails for bounded DλD_\lambdaDλ​); it is equivalent to DλD_\lambdaDλ​ being unbounded and is what makes the continuous optimum exist.

The hypotheses are met by linear staffing and waiting costs (F(N)=cNF(N)=cNF(N)=cN, Dλ(t)=atD_\lambda(t)=atDλ​(t)=at), for which (18) holds with γ=cκ2/a\gamma = c\kappa^2/aγ=cκ2/a, so the goal is not vacuous. It is not trivialized by junk values either: the ratio's denominator is positive at every λ>0\lambda>0λ>0, and SλS_\lambdaSλ​ never evaluates CCC at an unstable level.

Needed infrastructure: Laplace asymptotics for ∫0∞e−αtt(1+t)M−1dt\int_0^\infty e^{-\alpha t}t(1+t)^{M-1}dt∫0∞​e−αtt(1+t)M−1dt, differentiation under the integral sign for GGG, and convexity of πλ\pi_\lambdaπλ​. All of these are reusable for missions II–IV. Proofs of the milestones in any order are welcome, as are proofs of the convexity facts the paper cites from its references [9], [10].

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. K. Erlang, Solution of some problems in the theory of probabilities of significance in automatic telephone exchanges, Elektroteknikeren 13, 1917.
21 thms2 active usersReviewed
Control TheoryMechanism DesignOperations Research·Captain: mikedeng1

Optimal Electricity Demand Response Contracting with Responsiveness Incentives 2: The Producer's First-Best Value in Closed FormResearch Paper

Motivation

Electricity demand response asks consumers to lower their consumption during price events, when generation is expensive or scarce. Field trials such as the Low Carbon London experiment showed that consumers do react to price signals, but that the reaction is erratic: the average consumption falls while its variability stays high, and a producer that has to follow the load curve in real time pays for that variability. Aïd, Possamaï and Touzi (arXiv:1810.09063; Math. Oper. Res. 2022, doi:10.1287/moor.2021.1201) model this as a continuous-time principal–agent problem in which the consumer (the agent) controls both the level and the volatility of consumption, and the producer (the principal) designs a payment that rewards both.

The paper compares two benchmarks. In the second best, the producer observes only the consumption path and the consumer responds optimally to the contract; this is the subject of the companion mission of this series. In the first best, the producer dictates both the contract and the consumer's effort, subject only to the consumer's participation. The first best is the reference point against which the cost of moral hazard, the information rent, is measured. This mission formalizes the first-best value in closed form, Proposition 3.1 (i) of the paper.

The methodology follows the continuous-time principal–agent literature: Holmström and Milgrom (1987) for exponential utilities and linear contracts, Sannikov (2008) for the dynamic-programming view of the agent's continuation value, and Cvitanić, Possamaï and Touzi (2018) for contracts indexed on both the output and its quadratic variation.

Setting

Fix integers N,d≥0N,d\ge0N,d≥0 (usages for the mean effort and for the volatility effort), cost parameters μ∈(0,∞)N\mu\in(0,\infty)^Nμ∈(0,∞)N, λ∈(0,∞)d\lambda\in(0,\infty)^dλ∈(0,∞)d, nominal volatilities σ∈(0,∞)d\sigma\in(0,\infty)^dσ∈(0,∞)d, effort bounds Amax⁡>0A_{\max}>0Amax​>0 and 0<ε≤10<\varepsilon\le10<ε≤1, risk aversions r,p>0r,p>0r,p>0, a marginal volatility cost h>0h>0h>0, slopes κ,θ∈R\kappa,\theta\in\mathbb Rκ,θ∈R, a horizon T>0T>0T>0, an initial consumption X0∈RX_0\in\mathbb RX0​∈R and a reservation utility R0<0R_0<0R0​<0.

The consumer chooses a mean effort α\alphaα with values in A=∏i[0,μiAmax⁡]A=\prod_i[0,\mu_iA_{\max}]A=∏i​[0,μi​Amax​] and a responsiveness effort β\betaβ with values in B=[ε,1]dB=[\varepsilon,1]^dB=[ε,1]d, at cost

c(α,β)=c1(α)+12c2(β),c1(a)=12∑iai2μi,c2(b)=∑jσj2λj(bj−1−1).c(\alpha,\beta)=c_1(\alpha)+\tfrac12c_2(\beta),\qquad c_1(a)=\tfrac12\sum_i\frac{a_i^2}{\mu_i},\qquad c_2(b)=\sum_j\frac{\sigma_j^2}{\lambda_j}\big(b_j^{-1}-1\big).c(α,β)=c1​(α)+21​c2​(β),c1​(a)=21​i∑​μi​ai2​​,c2​(b)=j∑​λj​σj2​​(bj−1​−1).

The consumption XXX follows Xt=X0−∫0tαs⋅1 ds+∫0tσ(βs)⋅dWsX_t=X_0-\int_0^t\alpha_s\cdot\mathbf 1\,ds+\int_0^t\sigma(\beta_s)\cdot dW_sXt​=X0​−∫0t​αs​⋅1ds+∫0t​σ(βs​)⋅dWs​ with σ(b)=(σ1b1,…,σdbd)\sigma(b)=(\sigma_1\sqrt{b_1},\dots,\sigma_d\sqrt{b_d})σ(b)=(σ1​b1​​,…,σd​bd​​), in the weak sense: XXX is the canonical process on C([0,T],R)C([0,T],\mathbb R)C([0,T],R), and an admissible pair (ν,P)(\nu,\mathbb P)(ν,P) is a progressively measurable control ν=(α,β)\nu=(\alpha,\beta)ν=(α,β) with a probability measure under which XXX starts at X0X_0X0​ and solves the associated martingale problem.

The consumer values consumption by f(x)=κxf(x)=\kappa xf(x)=κx and the producer bears the generation cost g(x)=θxg(x)=\theta xg(x)=θx; write δ=κ−θ\delta=\kappa-\thetaδ=κ−θ. For a payment ξ\xiξ made at time TTT, the consumer's and the producer's criteria are

JA=EP[−e−r(ξ+∫0T(κXs−c(νs))ds)],JP=EP[−e−p(−ξ−∫0TθXsds−h2⟨X⟩T)].J_A=\mathbb E^{\mathbb P}\Big[-e^{-r\left(\xi+\int_0^T(\kappa X_s-c(\nu_s))ds\right)}\Big],\qquad J_P=\mathbb E^{\mathbb P}\Big[-e^{-p\left(-\xi-\int_0^T\theta X_sds-\frac h2\langle X\rangle_T\right)}\Big].JA​=EP[−e−r(ξ+∫0T​(κXs​−c(νs​))ds)],JP​=EP[−e−p(−ξ−∫0T​θXs​ds−2h​⟨X⟩T​)].

A contract is an FT\mathcal F_TFT​-measurable ξ\xiξ with uniform exponential moments (2.5). The first-best value is

VFB=sup⁡{JP(ξ,ν,P): ξ a contract, (ν,P) admissible, JA(ξ,ν,P)≥R0}.V^{FB}=\sup\big\{J_P(\xi,\nu,\mathbb P):\ \xi\text{ a contract},\ (\nu,\mathbb P)\text{ admissible},\ J_A(\xi,\nu,\mathbb P)\ge R_0\big\}.VFB=sup{JP​(ξ,ν,P): ξ a contract, (ν,P) admissible, JA​(ξ,ν,P)≥R0​}.

The consumer's Hamiltonians are Hm(z)=−inf⁡a∈A{a⋅1 z+c1(a)}H_m(z)=-\inf_{a\in A}\{a\cdot\mathbf 1\,z+c_1(a)\}Hm​(z)=−infa∈A​{a⋅1z+c1​(a)} and Hv(γ)=−12inf⁡b∈B{c2(b)−γ∣σ(b)∣2}H_v(\gamma)=-\frac12\inf_{b\in B}\{c_2(b)-\gamma|\sigma(b)|^2\}Hv​(γ)=−21​infb∈B​{c2​(b)−γ∣σ(b)∣2}. Finally ρ=rpr+p\rho=\frac{rp}{r+p}ρ=r+prp​, L0=−1rlog⁡(−R0)L_0=-\frac1r\log(-R_0)L0​=−r1​log(−R0​), U(x)=−e−pxU(x)=-e^{-px}U(x)=−e−px, μˉ=∑iμi\bar\mu=\sum_i\mu_iμˉ​=∑i​μi​ and x−=max⁡(0,−x)x^-=\max(0,-x)x−=max(0,−x).

Formalization targets

Goal: Proposition 3.1 (i)

Assume δ−T≤Amax⁡\delta^-T\le A_{\max}δ−T≤Amax​. Then

VFB=U(vˉ(0,X0)−L0),vˉ(0,X0)=δTX0+∫0T(12μˉ(δ−)2(T−t)2+Hv(−h−ρδ2(T−t)2))dt.V^{FB}=U\big(\bar v(0,X_0)-L_0\big),\quad \bar v(0,X_0)=\delta TX_0+\int_0^T\Big(\tfrac12\bar\mu(\delta^-)^2(T-t)^2+H_v\big(-h-\rho\delta^2(T-t)^2\big)\Big)dt.VFB=U(vˉ(0,X0​)−L0​),vˉ(0,X0​)=δTX0​+∫0T​(21​μˉ​(δ−)2(T−t)2+Hv​(−h−ρδ2(T−t)2))dt.

Milestones

  1. Proposition 2.1. The best responses a^(z)\hat a(z)a^(z), b^(γ)\hat b(\gamma)b^(γ) attain the infima defining HmH_mHm​, HvH_vHv​, and these Hamiltonians have explicit closed forms.
  2. (A.5). The auxiliary value Vˉ=sup⁡(ν,P)EP[−e−ρ(∫0T(δXt−c(νt))dt−h2⟨X⟩T)]\bar V=\sup_{(\nu,\mathbb P)}\mathbb E^{\mathbb P}\big[-e^{-\rho(\int_0^T(\delta X_t-c(\nu_t))dt-\frac h2\langle X\rangle_T)}\big]Vˉ=sup(ν,P)​EP[−e−ρ(∫0T​(δXt​−c(νt​))dt−2h​⟨X⟩T​)] is finite and negative, and VFB=R0(Vˉ/R0)1+p/rV^{FB}=R_0(\bar V/R_0)^{1+p/r}VFB=R0​(Vˉ/R0​)1+p/r.
  3. Proposition A.3 (i), with the explicit solution of p. 28.
Vˉ=−e−ρ(δTX0+∫0Tmˉ(t)dt),mˉ(t)=Hm(δ(T−t))+Hv(−h−ρδ2(T−t)2).\bar V=-e^{-\rho\left(\delta TX_0+\int_0^T\bar m(t)dt\right)},\qquad \bar m(t)=H_m(\delta(T-t))+H_v\big(-h-\rho\delta^2(T-t)^2\big).Vˉ=−e−ρ(δTX0​+∫0T​mˉ(t)dt),mˉ(t)=Hm​(δ(T−t))+Hv​(−h−ρδ2(T−t)2).

Significance

The closed form shows how the first-best value depends on each parameter: on the energy value discrepancy δ\deltaδ through the mean-effort term, on the volatility cost hhh and the effective risk aversion ρ\rhoρ through the volatility Hamiltonian, and on the reservation utility only through the shift by L0L_0L0​. It is one half of the paper's information rent (Proposition 3.4), the gap between the first- and second-best values, and it is the benchmark against which the calibrated contracts of the paper's Section 4 are judged.

The result is proved in the paper, partly by appeal to standard stochastic control arguments. To our knowledge it has no machine-checked proof. A formal proof requires a verification theorem for an exponential-utility control problem in the weak formulation, and a risk-sharing argument with a pathwise quadratic-variation term in the contract; both are reusable beyond this paper.

Difficulty

The deterministic parts, Proposition 2.1 and the algebra that turns (A.5) and the value of Vˉ\bar VVˉ into the goal, are calculus. The difficulty lies in the two stochastic steps. In (A.5), the producer's optimal payment for a given effort depends on ⟨X⟩T\langle X\rangle_T⟨X⟩T​; it must be realised as a measurable function of the path that is a contract in the sense of (2.5), uniformly over all admissible laws, and the participation constraint must be shown to bind. In Proposition A.3 (i), the upper bound on Vˉ\bar VVˉ must hold for every progressively measurable, path-dependent control, not only for Markov feedback controls; the paper invokes "standard stochastic control theory", which has to be made precise for controls of the volatility under a martingale-problem formulation, where no Brownian motion is given in advance.

Formalization scope

The canonical space is C([0,T],R)C([0,T],\mathbb R)C([0,T],R) with the coordinate σ-algebra and the canonical filtration; processes are indexed by [0,T][0,T][0,T]. Admissible pairs are given by a martingale problem: X0=X0X_0=X_0X0​=X0​ almost surely, and both Xt−X0+∫0tαs⋅1 dsX_t-X_0+\int_0^t\alpha_s\cdot\mathbf 1\,dsXt​−X0​+∫0t​αs​⋅1ds and its square minus ∫0t∣σ(βs)∣2ds\int_0^t|\sigma(\beta_s)|^2ds∫0t​∣σ(βs​)∣2ds are martingales. In the criteria, ⟨X⟩T\langle X\rangle_T⟨X⟩T​ is replaced by its almost-sure value ∫0T∣σ(βs)∣2ds\int_0^T|\sigma(\beta_s)|^2ds∫0T​∣σ(βs​)∣2ds; a contract remains any FT\mathcal F_TFT​-measurable function of the path. Expectations of utilities are negated lower Lebesgue integrals of exponentials in [−∞,0][-\infty,0][−∞,0], and every value is an extended-real supremum with sup⁡∅=−∞\sup\emptyset=-\inftysup∅=−∞. BBB is read as [ε,1]d[\varepsilon,1]^d[ε,1]d, with indices in Fin N and Fin d.

The Hamiltonians are defined by their infima, never by their closed forms, so that Proposition 2.1 is not true by definition, and the first-best value is a supremum over the model's own objects, not a variable pinned by hypotheses. Three hypotheses are added to the page: ε≤1\varepsilon\le1ε≤1 (so B≠∅B\ne\emptysetB=∅), R0<0R_0<0R0​<0 (so L0L_0L0​ is defined), and, for the goal only, δ−T≤Amax⁡\delta^-T\le A_{\max}δ−T≤Amax​, without which the printed 12μˉ(δ−)2(T−t)2\frac12\bar\mu(\delta^-)^2(T-t)^221​μˉ​(δ−)2(T−t)2 exceeds Hm(δ(T−t))H_m(\delta(T-t))Hm​(δ(T−t)) and contradicts the paper's own proof. Misprints corrected and disclosed in the items: the closed form of HmH_mHm​ in Proposition 2.1 is false for z−>Amax⁡z^->A_{\max}z−>Amax​ and is replaced by μˉ(mz−−m2/2)\bar\mu(m z^--m^2/2)μˉ​(mz−−m2/2) with m=z−∧Amax⁡m=z^-\wedge A_{\max}m=z−∧Amax​; the index range of b^\hat bb^ is j=1,…,dj=1,\dots,dj=1,…,d; on p. 28, ∫0tmˉ\int_0^t\bar m∫0t​mˉ is ∫tTmˉ\int_t^T\bar m∫tT​mˉ and "(A.11)" is (A.6).

The parts (ii)–(iii) of Proposition 3.1, the optimal efforts and the optimal contract, are not stated. Contributions welcome: a verification theorem for controlled martingale problems with bounded coefficients, exponential moment bounds uniform over admissible laws, and a pathwise quadratic variation on the canonical space.

Selected references

  • R. Aïd, D. Possamaï, N. Touzi, Optimal electricity demand response contracting with responsiveness incentives, arXiv:1810.09063v3, 2019; Math. Oper. Res. 2022. https://arxiv.org/abs/1810.09063
  • J. Cvitanić, D. Possamaï, N. Touzi, Dynamic programming approach to principal–agent problems, Finance Stoch. 22, 2018. https://arxiv.org/abs/1510.07111
  • B. Holmström, P. Milgrom, Aggregation and linearity in the provision of intertemporal incentives, Econometrica 55, 1987. https://doi.org/10.2307/1913238
  • Y. Sannikov, A continuous-time version of the principal–agent problem, Rev. Econ. Stud. 75, 2008. https://doi.org/10.1111/j.1467-937X.2007.00463.x
  • I. Karatzas, S. Shreve, Brownian Motion and Stochastic Calculus, Springer, 1991, §5.4 (martingale problems and weak solutions). https://doi.org/10.1007/978-1-4612-0949-2
7 thms2 active usersReviewed
Control TheoryMechanism DesignOperations Research·Captain: mikedeng1

Optimal Electricity Demand Response Contracting with Responsiveness Incentives 1: The Producer's Second-Best Value in Closed FormResearch Paper

Motivation

Demand response asks electricity consumers to lower or smooth their consumption when generation is expensive, in exchange for payments. Field trials such as Low Carbon London showed two effects of such incentives: consumers reduce their average consumption, and the variability of their response depends on how much effort they put into it. A producer who cannot observe the consumer's individual usages, only the aggregate consumption path, faces a moral hazard problem: the payment can depend only on what is observed.

Aïd, Possamaï and Touzi (arXiv:1810.09063v3, 2019; Math. Oper. Res. 2022) cast this as a continuous-time principal–agent problem in which the consumer controls both the drift and the volatility of his consumption, and the producer pays for reductions in both. The volatility channel is what makes the problem new: the classical Holmström–Milgrom model (Econometrica 1987) controls only the drift. The paper uses the general reduction of Cvitanić, Possamaï and Touzi (Finance Stoch. 2018) to optimal contracts with volatility control, and obtains the producer's value in closed form up to a scalar minimisation. This mission formalizes that closed form.

Setting

Fix integers N,d≥0N,d\ge0N,d≥0, cost parameters μ∈(0,∞)N\mu\in(0,\infty)^Nμ∈(0,∞)N and λ∈(0,∞)d\lambda\in(0,\infty)^dλ∈(0,∞)d, nominal volatilities σ∈(0,∞)d\sigma\in(0,\infty)^dσ∈(0,∞)d, effort bounds Amax⁡>0A_{\max}>0Amax​>0 and ε∈(0,1]\varepsilon\in(0,1]ε∈(0,1], risk aversions r,p>0r,p>0r,p>0, a marginal cost of volatility h>0h>0h>0, marginal energy value κ\kappaκ and cost θ\thetaθ with δ:=κ−θ\delta:=\kappa-\thetaδ:=κ−θ, a horizon T>0T>0T>0, an initial consumption X0X_0X0​ and a reservation utility R0<0R_0<0R0​<0. Write μˉ:=∑iμi\bar\mu:=\sum_i\mu_iμˉ​:=∑i​μi​ and x−:=max⁡(0,−x)x^-:=\max(0,-x)x−:=max(0,−x).

Consumption. XXX is the canonical process on Ω=C([0,T],R)\Omega=C([0,T],\mathbb R)Ω=C([0,T],R) with its natural filtration F\mathbb FF. A control ν=(α,β)\nu=(\alpha,\beta)ν=(α,β) is progressively measurable, with αt∈A:=∏i[0,μiAmax⁡]\alpha_t\in A:=\prod_i[0,\mu_iA_{\max}]αt​∈A:=∏i​[0,μi​Amax​] (effort to reduce consumption) and βt∈B:=[ε,1]d\beta_t\in B:=[\varepsilon,1]^dβt​∈B:=[ε,1]d (effort to reduce volatility). Under ν\nuν the consumption follows, in the weak sense,

Xt=X0−∫0tαs⋅1 ds+∫0tσ(βs)⋅dWs,∣σ(b)∣2=∑jσj2bj.X_t=X_0-\int_0^t\alpha_s\cdot\mathbf 1\,ds+\int_0^t\sigma(\beta_s)\cdot dW_s,\qquad |\sigma(b)|^2=\sum_j\sigma_j^2b_j .Xt​=X0​−∫0t​αs​⋅1ds+∫0t​σ(βs​)⋅dWs​,∣σ(b)∣2=j∑​σj2​bj​.

Effort costs c(ν)=c1(α)+12c2(β)c(\nu)=c_1(\alpha)+\frac12c_2(\beta)c(ν)=c1​(α)+21​c2​(β) per unit time, with c1(a)=12∑iai2/μic_1(a)=\frac12\sum_ia_i^2/\mu_ic1​(a)=21​∑i​ai2​/μi​ and c2(b)=∑jσj2λj(bj−1−1)c_2(b)=\sum_j\frac{\sigma_j^2}{\lambda_j}(b_j^{-1}-1)c2​(b)=∑j​λj​σj2​​(bj−1​−1).

Criteria. For a payment ξ\xiξ at time TTT, the consumer's criterion is JA=E[−e−r(ξ+∫0T(κXs−c(νs))ds)]J_A=\mathbb E[-e^{-r(\xi+\int_0^T(\kappa X_s-c(\nu_s))ds)}]JA​=E[−e−r(ξ+∫0T​(κXs​−c(νs​))ds)] and the producer's is JP=E[U(−ξ−∫0TθXsds−h2⟨X⟩T)]J_P=\mathbb E[U(-\xi-\int_0^T\theta X_sds-\frac h2\langle X\rangle_T)]JP​=E[U(−ξ−∫0T​θXs​ds−2h​⟨X⟩T​)] with U(x)=−e−pxU(x)=-e^{-px}U(x)=−e−px. Contracts C\mathcal CC are the FT\mathcal F_TFT​-measurable ξ\xiξ with exponential moments of order m>1m>1m>1 uniformly over the consumer's responses (2.5). The consumer's value is VA(ξ)=sup⁡JAV_A(\xi)=\sup J_AVA​(ξ)=supJA​, and P⋆(ξ)\mathcal P^\star(\xi)P⋆(ξ) is the set of his optimal responses.

Second best. The producer offers ξ\xiξ, the consumer responds optimally, ties are broken in the producer's favour, and participation requires VA(ξ)≥R0V_A(\xi)\ge R_0VA​(ξ)≥R0​:

VSB:=sup⁡ξ∈C, VA(ξ)≥R0 sup⁡P⋆(ξ)JP(ξ,⋅),sup⁡∅=−∞.V^{SB}:=\sup_{\xi\in\mathcal C,\ V_A(\xi)\ge R_0}\ \sup_{\mathcal P^\star(\xi)}J_P(\xi,\cdot),\qquad\sup\emptyset=-\infty .VSB:=ξ∈C, VA​(ξ)≥R0​sup​ P⋆(ξ)sup​JP​(ξ,⋅),sup∅=−∞.

Hamiltonians. Hm(z)=−inf⁡a∈A{a⋅1 z+c1(a)}H_m(z)=-\inf_{a\in A}\{a\cdot\mathbf 1\,z+c_1(a)\}Hm​(z)=−infa∈A​{a⋅1z+c1​(a)} and Hv(γ)=−12inf⁡b∈B{c2(b)−γ∣σ(b)∣2}H_v(\gamma)=-\frac12\inf_{b\in B}\{c_2(b)-\gamma|\sigma(b)|^2\}Hv​(γ)=−21​infb∈B​{c2​(b)−γ∣σ(b)∣2}.

Formalization targets

Goal: Proposition 3.2 (i)

Assume δ−T≤Amax⁡\delta^-T\le A_{\max}δ−T≤Amax​. With qt(z)=h+rz2+p(z−δ(T−t))2q_t(z)=h+rz^2+p(z-\delta(T-t))^2qt​(z)=h+rz2+p(z−δ(T−t))2, L0=−1rlog⁡(−R0)L_0=-\frac1r\log(-R_0)L0​=−r1​log(−R0​),

mSB(t)=12μˉδ2(T−t)2−12inf⁡z∈R{μˉ(z−+δ(T−t))2−2Hv(−qt(z))},m_{SB}(t)=\frac12\bar\mu\delta^2(T-t)^2-\frac12\inf_{z\in\mathbb R}\Big\{\bar\mu\big(z^-+\delta(T-t)\big)^2-2H_v\big(-q_t(z)\big)\Big\},mSB​(t)=21​μˉ​δ2(T−t)2−21​z∈Rinf​{μˉ​(z−+δ(T−t))2−2Hv​(−qt​(z))}, VSB=U(v(0,X0)−L0),v(0,X0)=δTX0+∫0TmSB(s) ds.V^{SB}=U\big(v(0,X_0)-L_0\big),\qquad v(0,X_0)=\delta TX_0+\int_0^Tm_{SB}(s)\,ds .VSB=U(v(0,X0​)−L0​),v(0,X0​)=δTX0​+∫0T​mSB​(s)ds.

Milestones

  1. Proposition 2.1. The consumer's best responses a^i(z)=μi(z−∧Amax⁡)\hat a_i(z)=\mu_i(z^-\wedge A_{\max})a^i​(z)=μi​(z−∧Amax​) and b^j(γ)=(1∧(λjγ−)−1/2)∨ε\hat b_j(\gamma)=(1\wedge(\lambda_j\gamma^-)^{-1/2})\vee\varepsilonb^j​(γ)=(1∧(λj​γ−)−1/2)∨ε attain the infima defining HmH_mHm​ and HvH_vHv​, and
Hm(z)=μˉ(mz−−m22), m=z−∧Amax⁡;Hv(γ)=−12(c^2(γ)−γ∣σ^(γ)∣2).H_m(z)=\bar\mu\big(m z^--\tfrac{m^2}2\big),\ m=z^-\wedge A_{\max};\qquad H_v(\gamma)=-\tfrac12\big(\hat c_2(\gamma)-\gamma|\hat\sigma(\gamma)|^2\big).Hm​(z)=μˉ​(mz−−2m2​), m=z−∧Amax​;Hv​(γ)=−21​(c^2​(γ)−γ∣σ^(γ)∣2).
  1. Lemma A.1. With f0(q,γ)=q∣σ^(γ)∣2+c^2(γ)f_0(q,\gamma)=q|\hat\sigma(\gamma)|^2+\hat c_2(\gamma)f0​(q,γ)=q∣σ^(γ)∣2+c^2​(γ), F0(q):=inf⁡γ≤0f0(q,γ)=f0(q,−q)=−2Hv(−q)F_0(q):=\inf_{\gamma\le0}f_0(q,\gamma)=f_0(q,-q)=-2H_v(-q)F0​(q):=infγ≤0​f0​(q,γ)=f0​(q,−q)=−2Hv​(−q), and F0F_0F0​ is non-decreasing.
  2. Proposition A.4 (ii). A minimiser of z↦F0(h−k+rz2+p(z−y)2)+μˉ(z−+y)2z\mapsto F_0(h-k+rz^2+p(z-y)^2)+\bar\mu(z^-+y)^2z↦F0​(h−k+rz2+p(z−y)2)+μˉ​(z−+y)2 is pr+py\frac p{r+p}yr+pp​y when y≥0y\ge0y≥0, and lies in [y,pr+py][y,\frac p{r+p}y][y,r+pp​y] when y≤0y\le0y≤0.

A companion statement, Corollary 3.1 (i), gives the explicit off-peak payment rates zSB(t)=pr+pδ(T−t)z_{SB}(t)=\frac p{r+p}\delta(T-t)zSB​(t)=r+pp​δ(T−t) and γSB(t)=−h−rpr+pδ2(T−t)2\gamma_{SB}(t)=-h-\frac{rp}{r+p}\delta^2(T-t)^2γSB​(t)=−h−r+prp​δ2(T−t)2 when δ≥0\delta\ge0δ≥0.

Significance

The closed form reduces an infinite-dimensional contracting problem, a supremum over all path-dependent payments and all consumer responses, to a deterministic one-dimensional minimisation at each time. It is the basis of the paper's comparisons: with the first-best value it measures the cost of moral hazard, and its minimiser gives the price of energy and of responsiveness that the optimal contract charges, which the paper calibrates on Low Carbon London data.

The result is proved on paper. No part of it is machine-checked. A complete formalization would give a checked instance of a continuous-time principal–agent theorem with volatility control. It would also fix, in exact terms, the conventions the paper leaves implicit (weak solutions, the effort cap), and the printed misprints that this mission corrects.

Difficulty

The deterministic milestones are calculus on boxes. The goal is not. The upper bound VSB≤U(v(0,X0)−L0)V^{SB}\le U(v(0,X_0)-L_0)VSB≤U(v(0,X0​)−L0​) must hold for every FT\mathcal F_TFT​-measurable contract, not only for contracts of a convenient form. The step that fails in a direct attempt is the representation of an arbitrary contract: one needs that every ξ∈C\xi\in\mathcal Cξ∈C inducing an optimal response can be written as YTy0,Z,ΓY_T^{y_0,Z,\Gamma}YTy0​,Z,Γ​, an integral against dXdXdX and d⟨X⟩d\langle X\rangled⟨X⟩ driven by the consumer's continuation certainty equivalent. This is the main theorem of Cvitanić–Possamaï–Touzi (2018) and rests on second-order backward SDEs; it has no counterpart in Mathlib. Restricting the supremum to linear or representable contracts at the outset would assume exactly that theorem. The lower bound needs, for the candidate contract, existence of the consumer's optimal response as a weak solution and a verification argument for the producer's HJB equation.

Formalization scope

All objects live in the namespace DemandResponse.SecondBest, and all hypotheses are fields of a structure Params. Conventions:

  • Weak formulation. An admissible pair (ν,P)(\nu,\mathbb P)(ν,P) is a control and a probability measure on C([0,T],R)C([0,T],\mathbb R)C([0,T],R) with X0=X0X_0=X_0X0​=X0​ a.s., under which Xt−X0+∫0tαs⋅1 dsX_t-X_0+\int_0^t\alpha_s\cdot\mathbf 1\,dsXt​−X0​+∫0t​αs​⋅1ds and its square minus ∫0t∣σ(βs)∣2ds\int_0^t|\sigma(\beta_s)|^2ds∫0t​∣σ(βs​)∣2ds are F\mathbb FF-martingales. This is the martingale problem equivalent to weak solutions of (2.1); the paper deliberately leaves weak solutions informal (footnote 2). The pair, not the law alone, is the admissible object, because the cost depends on ν\nuν.
  • Quadratic variation. ⟨X⟩T\langle X\rangle_T⟨X⟩T​ in JPJ_PJP​ is its almost-sure value ∫0T∣σ(βs)∣2ds\int_0^T|\sigma(\beta_s)|^2ds∫0T​∣σ(βs​)∣2ds.
  • Values. Expected utilities are negated lower Lebesgue integrals, in [−∞,0][-\infty,0][−∞,0]; all suprema are in the extended reals, so the empty supremum is −∞-\infty−∞, as on p. 9.
  • Hamiltonians are defined by their infima, not by the closed forms of Proposition 2.1.
  • Indices are Fin N, Fin d; N=0N=0N=0, d=0d=0d=0 are allowed. b^j(γ)=1\hat b_j(\gamma)=1b^j​(γ)=1 when λjγ−≤1\lambda_j\gamma^-\le1λj​γ−≤1 (the paper's 0−1/2=+∞0^{-1/2}=+\infty0−1/2=+∞).
  • Added hypotheses. ε≤1\varepsilon\le1ε≤1 (B≠∅B\neq\emptysetB=∅), R0<0R_0<0R0​<0 (log⁡(−R0)\log(-R_0)log(−R0​) defined), and for the goal δ−T≤Amax⁡\delta^-T\le A_{\max}δ−T≤Amax​. The paper's closed form is computed with the effort cap removed ("ηA→0\eta_A\to0ηA​→0 as A↗∞A\nearrow\inftyA↗∞", p. 30), and with the capped effort of the model it is correct exactly under this hypothesis.
  • Corrected misprints. −2Hm(−q(z))-2H_m(-q(z))−2Hm​(−q(z)) in mSBm_{SB}mSB​ is read as −2Hv(−q(z))-2H_v(-q(z))−2Hv​(−q(z)); with HmH_mHm​ the infimum is −∞-\infty−∞. The printed Hm(z)=12μˉ(z−∧Amax⁡)2H_m(z)=\frac12\bar\mu(z^-\wedge A_{\max})^2Hm​(z)=21​μˉ​(z−∧Amax​)2 is false for z−>Amax⁡z^->A_{\max}z−>Amax​ and is corrected. "j=1,…,Nj=1,\dots,Nj=1,…,N" for b^\hat bb^ means j=1,…,dj=1,\dots,dj=1,…,d. In Proposition A.4 (ii) the open interval becomes closed, and "for large AAA" is read as ηA≡0\eta_A\equiv0ηA​≡0.

The goal is an equality of extended reals between VSBV^{SB}VSB, defined from the model, and an explicit real number. A formalization that defines VSBV^{SB}VSB over a restricted class of contracts, or with a real-valued supremum that returns 000 on unbounded sets, would trivialize or change it and is not the goal.

Needed infrastructure: continuous-time martingales on the canonical path space (Mathlib has Martingale and progressive measurability), existence of weak solutions with bounded coefficients, a representation theorem for contracts (Cvitanić–Possamaï–Touzi), and a verification theorem for the producer's HJB equation. The weak-formulation layer and the contract representation are reusable for any continuous-time principal–agent model with drift and volatility control. Contributions of any of these pieces, and proofs of the deterministic milestones, are welcome.

Selected references

  • R. Aïd, D. Possamaï, N. Touzi, Optimal Electricity Demand Response Contracting with Responsiveness Incentives, arXiv:1810.09063v3, 2019; Mathematics of Operations Research 47 (2022). https://arxiv.org/abs/1810.09063v3
  • J. Cvitanić, D. Possamaï, N. Touzi, Dynamic programming approach to principal–agent problems, Finance and Stochastics 22 (2018) 1–37. https://doi.org/10.1007/s00780-017-0344-4
  • B. Holmström, P. Milgrom, Aggregation and Linearity in the Provision of Intertemporal Incentives, Econometrica 55 (1987) 303–328. https://doi.org/10.2307/1913238
  • Y. Sannikov, A Continuous-Time Version of the Principal–Agent Problem, Review of Economic Studies 75 (2008) 957–984. https://doi.org/10.1111/j.1467-937X.2008.00486.x
  • I. Karatzas, S. Shreve, Brownian Motion and Stochastic Calculus, 2nd ed., Springer 1991, §5.4 (martingale problem and weak solutions). https://doi.org/10.1007/978-1-4612-0949-2
7 thms2 active usersReviewed
Markov ChainNumerical AnalysisOperations Research+1·Captain: mikedeng1

Fundamentals of Queueing Theory X: Uniformization of Continuous-Time Markov ChainsTextbook

Motivation

Most Markovian queueing models have no closed-form transient solution. The M/M/1 queue already needs modified Bessel functions (Chapter 2 of the book), and a finite-capacity or multi-class model with state-dependent rates has no closed form at all. What an analyst can always write down is the system of forward equations p′(t)=p(t)Qp'(t)=p(t)Qp′(t)=p(t)Q for the state probabilities. Chapter 8 of Gross, Shortle, Thompson and Harris, Fundamentals of Queueing Theory (4th ed., Wiley 2008, DOI 10.1002/9781118625651), presents two numerical techniques that turn such models into numbers: the randomization (or uniformization) method for the transient distribution of a finite continuous-time Markov chain, and the Fourier-series method for inverting a Laplace transform, as needed for the M/G/1 waiting-time transform (5.33) and the busy-period transform (5.37).

Uniformization goes back to Jensen (1953) and is the standard transient solver in performance-evaluation and reliability tools. Its appeal is that it replaces a matrix exponential, which is numerically delicate, by powers of a stochastic matrix weighted by Poisson probabilities, with an error bound that can be fixed before the computation starts (Grassmann 1977; Gross and Miller 1984). The Fourier-series method with Euler summation is due to Abate and Whitt (Abate and Whitt 1992; Abate, Choudhury and Whitt 1999).

Setting

A continuous-time Markov chain X(t)X(t)X(t) on the states {0,1,…,N}\{0,1,\dots,N\}{0,1,…,N} is described by its infinitesimal generator Q=(qij)Q=(q_{ij})Q=(qij​): for i≠ji\ne ji=j, qij≥0q_{ij}\ge0qij​≥0 is the rate of jumps from iii to jjj, and the diagonal entry is −qi-q_i−qi​ with

qi=∑j≠iqij,i=0,1,…,N.q_i=\sum_{j\ne i}q_{ij},\qquad i=0,1,\dots,N.qi​=j=i∑​qij​,i=0,1,…,N.

The transient state-probability vector p(t)=(p0(t),…,pN(t))p(t)=(p_0(t),\dots,p_N(t))p(t)=(p0​(t),…,pN​(t)), pn(t)=Pr⁡{X(t)=n}p_n(t)=\Pr\{X(t)=n\}pn​(t)=Pr{X(t)=n}, is the solution of the forward equations

p′(t)=p(t)Q(t≥0),p'(t)=p(t)Q\quad(t\ge0),p′(t)=p(t)Q(t≥0),

started from a given probability vector p(0)p(0)p(0). Fix a constant Λ>0\Lambda>0Λ>0 with Λ≥qi\Lambda\ge q_iΛ≥qi​ for every iii (the book takes Λ=max⁡iqi\Lambda=\max_i q_iΛ=maxi​qi​) and define the uniformized matrix

P~=QΛ+I,p~in={qin/Λ(i≠n),1−qi/Λ(i=n).\tilde P=\frac{Q}{\Lambda}+I,\qquad \tilde p_{in}=\begin{cases}q_{in}/\Lambda&(i\ne n),\\1-q_i/\Lambda&(i=n).\end{cases}P~=ΛQ​+I,p~​in​={qin​/Λ1−qi​/Λ​(i=n),(i=n).​

It is the transition matrix of a discrete-time chain YkY_kYk​: the state of XXX after the kkk-th event of a Poisson process of rate Λ\LambdaΛ that has been thinned. Write ϕ(k)=p(0)P~k\phi^{(k)}=p(0)\tilde P^{k}ϕ(k)=p(0)P~k for its distribution after kkk steps.

For the second half of the chapter, the Laplace transform of a real function fff on [0,∞)[0,\infty)[0,∞) is fˉ(s)=∫0∞e−stf(t) dt\bar f(s)=\int_0^\infty e^{-st}f(t)\,dtfˉ​(s)=∫0∞​e−stf(t)dt, and the Fourier-series approximant with parameter AAA is

fA,n(t)=eA/22t[fˉ(A2t)+2∑k=1n(−1)k Re fˉ(A+2kπi2t)],f_{A,n}(t)=\frac{e^{A/2}}{2t}\Big[\bar f\Big(\frac{A}{2t}\Big)+2\sum_{k=1}^{n}(-1)^k\,\mathrm{Re}\,\bar f\Big(\frac{A+2k\pi i}{2t}\Big)\Big],fA,n​(t)=2teA/2​[fˉ​(2tA​)+2k=1∑n​(−1)kRefˉ​(2tA+2kπi​)],

with fA(t)=lim⁡n→∞fA,n(t)f_A(t)=\lim_{n\to\infty}f_{A,n}(t)fA​(t)=limn→∞​fA,n​(t).

Formalization targets

Goal: the randomization formula with its truncation bound (Eqs. (8.9)–(8.12))

The forward equations have a solution, and every solution satisfies, for all t≥0t\ge0t≥0,

p(t)=∑k=0∞p(0)P~(k) e−Λt(Λt)kk!,p(t)=\sum_{k=0}^{\infty}p(0)\tilde P^{(k)}\,\frac{e^{-\Lambda t}(\Lambda t)^k}{k!},p(t)=k=0∑∞​p(0)P~(k)k!e−Λt(Λt)k​,

and whenever ∑k=0Te−Λt(Λt)k/k!>1−ϵ\sum_{k=0}^{T}e^{-\Lambda t}(\Lambda t)^k/k!>1-\epsilon∑k=0T​e−Λt(Λt)k/k!>1−ϵ, every component of the sum truncated at k=Tk=Tk=T is within ϵ\epsilonϵ of pn(t)p_n(t)pn​(t).

Milestones

  1. Eq. (8.12): P~\tilde PP~ has the entries above and is a stochastic matrix.
  2. Eqs. (8.13)–(8.14): ϕ(k)=ϕ(k−1)P~\phi^{(k)}=\phi^{(k-1)}\tilde Pϕ(k)=ϕ(k−1)P~ and each ϕ(k)\phi^{(k)}ϕ(k) is a probability vector.
  3. p.385: ϕ=ϕP~  ⟺  0=ϕQ\phi=\phi\tilde P\iff0=\phi Qϕ=ϕP~⟺0=ϕQ.
  4. Eqs. (8.27)–(8.28): for bounded Lipschitz fff, A>0A>0A>0 and t>0t>0t>0,
fA(t)−f(t)=∑k=1∞e−kAf((2k+1)t),∣fA(t)−f(t)∣≤Ce−A1−e−A  if ∣f(x)∣≤C for x>3t.f_A(t)-f(t)=\sum_{k=1}^{\infty}e^{-kA}f\big((2k+1)t\big),\qquad |f_A(t)-f(t)|\le\frac{Ce^{-A}}{1-e^{-A}}\ \text{ if } |f(x)|\le C \text{ for } x>3t.fA​(t)−f(t)=k=1∑∞​e−kAf((2k+1)t),∣fA​(t)−f(t)∣≤1−e−ACe−A​  if ∣f(x)∣≤C for x>3t.

The mission also contains Eqs. (8.7)–(8.8) as a further theorem, outside the milestone list: the transition probabilities satisfy pin(t)=∑kp~in(k)e−Λt(Λt)k/k!p_{in}(t)=\sum_k\tilde p^{(k)}_{in}e^{-\Lambda t}(\Lambda t)^k/k!pin​(t)=∑k​p~​in(k)​e−Λt(Λt)k/k!, and pn(t)=∑ipi(0)pin(t)p_n(t)=\sum_i p_i(0)p_{in}(t)pn​(t)=∑i​pi​(0)pin​(t).

Significance

The randomization formula reduces the transient analysis of any finite Markovian queue (finite-buffer, multi-server, with balking, reneging or state-dependent rates) to repeated vector–matrix products with a sparse stochastic matrix. The truncation point is chosen from a Poisson tail alone, independently of QQQ. Milestone 3 shows that the same matrix gives the stationary equations, so one iteration serves both transient and steady-state computation. The discretization identity (8.27) is what justifies the parameter choice in Algorithm 8.1: the error decays like e−Ae^{-A}e−A.

All of these results are classical and proved in the literature. None of them is formalized in Lean or Mathlib as far as a search of the platform and Mathlib shows. Mathlib has the matrix exponential and Poisson summation under decay hypotheses, but no continuous-time Markov chain generators, no uniformization, and no Laplace transform. This mission would add the finite-state link between generators, stochastic matrices and matrix exponentials that later chapters of queueing and reliability theory use, and a verified error formula for a numerical inversion method in wide use.

Difficulty

The book's derivation is probabilistic: it conditions on the number of events of the Poisson(Λ\LambdaΛ) process and thins them. A formal statement cannot rest on that picture, because p(t)p(t)p(t) is defined analytically, by the forward equations. The goal therefore contains a uniqueness statement for a linear ODE on [0,∞)[0,\infty)[0,∞) with one-sided derivative at 000, which the book never mentions. The componentwise bound then needs P~\tilde PP~ to be stochastic, so that every ϕn(k)\phi^{(k)}_nϕn(k)​ lies in [0,1][0,1][0,1]. That is exactly where Λ≥max⁡iqi\Lambda\ge\max_i q_iΛ≥maxi​qi​ is used; with a smaller Λ\LambdaΛ the matrix P~\tilde PP~ has negative diagonal entries and the bound fails.

For (8.27), the book gives no proof. The identity is an aliasing (Poisson-summation) formula for a periodic function assembled from the values of fff at all odd multiples of ttt. The convergence of the conditionally summed series (8.24) is the delicate point: continuity of fff at ttt, the book's only hypothesis, does not guarantee convergence of a Fourier series. Mathlib's Poisson summation theorems require decay of the Fourier transform that the damped, reflected function built from fff does not have.

Formalization scope

  • States are Fin (N+1); a row vector is Fin (N+1) → ℝ; pQpQpQ is vecMul. A generator is a real matrix with nonnegative off-diagonal entries and diagonal −∑j≠iqij-\sum_{j\ne i}q_{ij}−∑j=i​qij​.
  • p(t)p(t)p(t) is not defined as the series. It is any function with p(0)=p0p(0)=p_0p(0)=p0​ and one-sided derivative p(t)Qp(t)Qp(t)Q within [0,∞)[0,\infty)[0,∞) at every t≥0t\ge0t≥0. The goal also asserts that such a function exists, so it cannot hold vacuously, and it asserts the series identity for every solution. Defining p(t)p(t)p(t) as the series (8.9) would make the goal a tautology and is ruled out.
  • Λ\LambdaΛ is any real with Λ>0\Lambda>0Λ>0 and Λ≥qi\Lambda\ge q_iΛ≥qi​ for all iii (the book takes equality with max⁡iqi\max_i q_imaxi​qi​).
  • The truncation bound is stated componentwise, as on p.384 ("an error bound on pn(t)p_n(t)pn​(t) of ϵ\epsilonϵ"), for an arbitrary real ϵ\epsilonϵ and truncation point TTT.
  • The series (8.8), (8.9) are stated with HasSum, so convergence is part of the claim.
  • The Laplace transform is the Lebesgue integral over (0,∞)(0,\infty)(0,∞) at a complex argument. fA(t)f_A(t)fA​(t) is the limit of the partial sums fA,n(t)f_{A,n}(t)fA,n​(t), and the convergence is part of milestone 4.
  • Strengthened hypotheses in milestone 4: fff bounded and Lipschitz on [0,∞)[0,\infty)[0,∞) replaces "ttt is a continuity point of fff", which is not sufficient for convergence.
  • Corrected misprints: e−λte^{-\lambda t}e−λt in (8.9) is e−Λte^{-\Lambda t}e−Λt; qij/Λq_{ij}/\Lambdaqij​/Λ in (8.12) is qin/Λq_{in}/\Lambdaqin​/Λ; ϕ(Q/Λ−I)\phi(Q/\Lambda-I)ϕ(Q/Λ−I) on p.385 is ϕ(Q/Λ+I)\phi(Q/\Lambda+I)ϕ(Q/Λ+I).
  • Not formalized: Theorem 8.1 (Bromwich inversion) and the real form (8.21), which the book states without hypotheses on fff; the limit claim lim⁡kϕ(k)=lim⁡tp(t)\lim_k\phi^{(k)}=\lim_t p(t)limk​ϕ(k)=limt​p(t) on p.385, which fails when P~\tilde PP~ is periodic; the Euler-summation approximation (8.26) and the round-off discussion, which are stated with "≈".

Useful infrastructure: the matrix exponential and its derivative (Matrix, NormedSpace.exp), uniqueness for linear ODEs (Grönwall), Fourier series on the circle, and a reusable Laplace transform file. Contributions of general lemmas on generators and stochastic matrices are welcome, as they apply to every finite Markovian model in the series.

Selected references

  • D. Gross, J. F. Shortle, J. M. Thompson, C. M. Harris, Fundamentals of Queueing Theory, 4th ed., Wiley, 2008, §§8.1.2–8.2. https://doi.org/10.1002/9781118625651
  • A. Jensen, "Markoff chains as an aid in the study of Markoff processes", Skandinavisk Aktuarietidskrift 36 (1953) 87–91.
  • W. K. Grassmann, "Transient solutions in Markovian queueing systems", Computers & Operations Research 4 (1977) 47–53.
  • D. Gross, D. R. Miller, "The randomization technique as a modeling tool and solution procedure for transient Markov processes", Operations Research 32 (1984) 343–361. https://doi.org/10.1287/opre.32.2.343
  • J. Abate, W. Whitt, "The Fourier-series method for inverting transforms of probability distributions", Queueing Systems 10 (1992) 5–87. https://doi.org/10.1007/BF01158520
  • J. Abate, G. L. Choudhury, W. Whitt, "An introduction to numerical transform inversion and its application to probability models", in W. Grassmann (ed.), Computational Probability, Kluwer, 1999, 257–323.
8 thms2 active usersReviewed
Markov ChainOperations ResearchProbability·Captain: mikedeng1

Fundamentals of Queueing Theory II: Erlang's Formulas and the Halfin–Whitt Square-Root Staffing LawTextbook

Why birth–death queues and Erlang's formulas

Every call center, hospital ward, cloud server pool and telephone exchange that is sized by formula is sized by one of a handful of explicit expressions from Markovian queueing theory. The two oldest are A. K. Erlang's: the Erlang-B (loss) formula of 1917, which gives the fraction of calls lost when ccc trunks carry an offered load of rrr erlangs, and the Erlang-C formula, which gives the probability that a customer of a ccc-server queue must wait. Both are still the default dimensioning rules of telecommunications and call-center workforce management (Gans, Koole & Mandelbaum 2003).

This mission formalizes Chapter 2, §§2.1–2.10, of Gross, Shortle, Thompson and Harris, Fundamentals of Queueing Theory, 4th ed. (Wiley 2008), which derives these formulas from a single result about birth–death processes and closes with the modern answer to the staffing question.

Timeline. Erlang (1917) obtained the loss formula; Vaulot (1927), Pollaczek (1932), Palm (1938) and Kosten (1948) completed its proof for general service times. Halfin and Whitt (1981) showed that in the M/M/nM/M/nM/M/n queue the delay probability converges to a limit strictly between 000 and 111 exactly when the number of servers exceeds the offered load by an amount of order n\sqrt nn​. This is the quality-and-efficiency-driven (QED) regime on which square-root staffing rests.

Setting

A birth–death process is a continuous-time Markov chain on the states n∈{0,1,2,… }n \in \{0, 1, 2, \dots\}n∈{0,1,2,…} that moves from nnn to n+1n+1n+1 at rate λn≥0\lambda_n \ge 0λn​≥0 (a birth, or arrival) and, for n≥1n \ge 1n≥1, from nnn to n−1n-1n−1 at rate μn>0\mu_n > 0μn​>0 (a death, or departure). A steady-state solution is a probability sequence {pn}\{p_n\}{pn​} (pn≥0p_n \ge 0pn​≥0, ∑npn=1\sum_n p_n = 1∑n​pn​=1) solving the global balance equations (2.1):

(λn+μn)pn=λn−1pn−1+μn+1pn+1 (n≥1),λ0p0=μ1p1.(\lambda_n + \mu_n)p_n = \lambda_{n-1}p_{n-1} + \mu_{n+1}p_{n+1}\ (n \ge 1), \qquad \lambda_0 p_0 = \mu_1 p_1.(λn​+μn​)pn​=λn−1​pn−1​+μn+1​pn+1​ (n≥1),λ0​p0​=μ1​p1​.

The queues of the chapter are birth–death processes with particular rates. The M/M/1M/M/1M/M/1 queue has λn=λ\lambda_n = \lambdaλn​=λ, μn=μ\mu_n = \muμn​=μ and traffic intensity ρ=λ/μ\rho = \lambda/\muρ=λ/μ. The M/M/cM/M/cM/M/c queue has λn=λ\lambda_n = \lambdaλn​=λ, μn=min⁡(n,c)μ\mu_n = \min(n, c)\muμn​=min(n,c)μ (2.30), offered load r=λ/μr = \lambda/\mur=λ/μ and ρ=r/c\rho = r/cρ=r/c. The M/M/c/cM/M/c/cM/M/c/c loss system is the same with λn=0\lambda_n = 0λn​=0 for n≥cn \ge cn≥c. The M/M/∞M/M/\inftyM/M/∞ queue has μn=nμ\mu_n = n\muμn​=nμ.

The explicit functions are the Erlang-B formula

B(c,r)=rc/c!∑i=0cri/i!,B(c, r) = \frac{r^c/c!}{\sum_{i=0}^{c} r^i/i!},B(c,r)=∑i=0c​ri/i!rc/c!​,

the Erlang-C formula, defined for ρ=r/c<1\rho = r/c < 1ρ=r/c<1,

C(c,r)=rc/(c!(1−ρ))rc/(c!(1−ρ))+∑n=0c−1rn/n!,C(c, r) = \frac{r^c/(c!(1-\rho))}{r^c/(c!(1-\rho)) + \sum_{n=0}^{c-1} r^n/n!},C(c,r)=rc/(c!(1−ρ))+∑n=0c−1​rn/n!rc/(c!(1−ρ))​,

and, with ϕ\phiϕ, Φ\PhiΦ the standard normal density and distribution function,

α(β)=ϕ(β)ϕ(β)+βΦ(β).\alpha(\beta) = \frac{\phi(\beta)}{\phi(\beta) + \beta\Phi(\beta)}.α(β)=ϕ(β)+βΦ(β)ϕ(β)​.

Formalization targets

Goal: the Halfin–Whitt theorem (§2.4, p.75)

For offered loads 0<rn<n0 < r_n < n0<rn​<n,

lim⁡n→∞C(n,rn)=α∈(0,1)  ⟺  lim⁡n→∞n−rnn=β>0,α=α(β).\lim_{n\to\infty} C(n, r_n) = \alpha \in (0,1) \iff \lim_{n\to\infty} \frac{n - r_n}{\sqrt n} = \beta > 0, \qquad \alpha = \alpha(\beta).n→∞lim​C(n,rn​)=α∈(0,1)⟺n→∞lim​n​n−rn​​=β>0,α=α(β).

It is stated as three facts: α\alphaα maps (0,∞)(0, \infty)(0,∞) into (0,1)(0, 1)(0,1); each α∈(0,1)\alpha \in (0, 1)α∈(0,1) has exactly one preimage β>0\beta > 0β>0; and for every β>0\beta > 0β>0 the two limits are equivalent.

Milestones

  1. (2.3)–(2.4): the steady-state solution of a general birth–death process, pn=p0∏i=1nλi−1/μip_n = p_0\prod_{i=1}^n \lambda_{i-1}/\mu_ipn​=p0​∏i=1n​λi−1​/μi​, and its existence if and only if 1+∑n≥1∏i=1nλi−1/μi<∞1 + \sum_{n\ge1}\prod_{i=1}^n \lambda_{i-1}/\mu_i < \infty1+∑n≥1​∏i=1n​λi−1​/μi​<∞.
  2. (2.9): M/M/1M/M/1M/M/1, pn=(1−ρ)ρnp_n = (1-\rho)\rho^npn​=(1−ρ)ρn, existing iff ρ<1\rho < 1ρ<1.
  3. (2.31)–(2.32): the M/M/cM/M/cM/M/c law, existing iff λ/(cμ)<1\lambda/(c\mu) < 1λ/(cμ)<1.
  4. (2.33): Lq=rcρ p0/(c!(1−ρ)2)L_q = r^c\rho\,p_0/(c!(1-\rho)^2)Lq​=rcρp0​/(c!(1−ρ)2).
  5. (2.37)–(2.38): 1−∑n<cpn=C(c,r)1 - \sum_{n<c} p_n = C(c, r)1−∑n<c​pn​=C(c,r).
  6. (2.52)–(2.53): the M/M/c/cM/M/c/cM/M/c/c law and pc=B(c,r)p_c = B(c, r)pc​=B(c,r).
  7. (2.54): B(c,r)=rB(c−1,r)/(c+rB(c−1,r))B(c, r) = rB(c-1, r)/(c + rB(c-1, r))B(c,r)=rB(c−1,r)/(c+rB(c−1,r)), B(0,r)=1B(0, r) = 1B(0,r)=1.
  8. (2.55): C(c,r)=cB(c,r)/(c−r+rB(c,r))C(c, r) = cB(c, r)/(c - r + rB(c, r))C(c,r)=cB(c,r)/(c−r+rB(c,r)).
  9. (2.57): M/M/∞M/M/\inftyM/M/∞, pn=rne−r/n!p_n = r^n e^{-r}/n!pn​=rne−r/n!.

Significance

The results. Items 1–9 are the working formulas of Markovian capacity planning: a stationary law for each basic model and the measures read off from it. (2.54) and (2.55) are how BBB and CCC are computed in practice, since the factorials of the closed forms overflow for c>170c > 170c>170. The Halfin–Whitt theorem is the reason the rule c≈r+βrc \approx r + \beta\sqrt rc≈r+βr​ holds a fixed service level, and it is the entry point to the QED heavy-traffic literature (diffusion limits of many-server queues, Garnett–Mandelbaum–Reiman, Gamarnik–Momčilović).

Formalizing them. All results are classical and proved in the literature. The book states the Halfin–Whitt theorem without proof, and (2.54)–(2.55) are left to exercises. The formalization would supply machine-checked versions of the Erlang identities and of the Halfin–Whitt limit theorem. No Lean development of either was found on the platform when this mission was drafted. A related Erlang-B statement from Kelly and Yudovina is on the platform, stated with detailed balance on a finite state space.

Difficulty

The stationary laws are induction plus geometric and exponential series, and the Erlang identities are finite algebra. The difficulty is concentrated in the goal. C(n,rn)C(n, r_n)C(n,rn​) is a ratio of a Poisson-type tail to a truncated exponential sum in which both nnn and rnr_nrn​ grow. The naive route, substituting Stirling's formula term by term, fails: the sums have Θ(n)\Theta(\sqrt n)Θ(n​) significant terms, each of relative size exp⁡(−k2/2n)\exp(-k^2/2n)exp(−k2/2n), and the error has to be controlled uniformly over them. The converse direction also requires showing that α(⋅)\alpha(\cdot)α(⋅) is strictly monotone. Without that, convergence of C(n,rn)C(n, r_n)C(n,rn​) does not force convergence of (n−rn)/n(n - r_n)/\sqrt n(n−rn​)/n​.

Formalization scope

Rates are real sequences indexed by N\mathbb NN, and a steady-state solution is a real sequence with HasSum p 1, nonnegative entries, and the balance equations (2.1) exactly as printed (global balance, not detailed balance). Every "the steady-state solution is X" is stated in both halves: X is a steady-state solution, and every steady-state solution equals X; the book's existence conditions (ρ<1\rho < 1ρ<1, λ/(cμ)<1\lambda/(c\mu) < 1λ/(cμ)<1, convergence of the series) are part of the statements. The M/M/c/cM/M/c/cM/M/c/c system is the N\mathbb NN-indexed process with λn=0\lambda_n = 0λn​=0 for n≥cn \ge cn≥c, as §2.5 sets it up; the statement records that states above ccc carry no mass.

The closed forms that are fixed in Lean: ∏i=1nλi−1/μi\prod_{i=1}^n \lambda_{i-1}/\mu_i∏i=1n​λi−1​/μi​ over Finset.Icc 1 n; B(c,r)B(c, r)B(c,r) and C(c,r)C(c, r)C(c,r) exactly as displayed above; ϕ\phiϕ = gaussianPDFReal 0 1, Φ\PhiΦ = the CDF of gaussianReal 0 1; Wq(0)=∑n=0c−1pnW_q(0) = \sum_{n=0}^{c-1} p_nWq​(0)=∑n=0c−1​pn​, as evaluated on p.69; Lq=∑n>c(n−c)pnL_q = \sum_{n > c}(n - c)p_nLq​=∑n>c​(n−c)pn​ as a convergent series.

C(c,r)C(c, r)C(c,r) is a total function in Lean, but its value for r≥cr \ge cr≥c carries no meaning. The goal assumes 0<rn<n0 < r_n < n0<rn​<n for n≥1n \ge 1n≥1, the book's standing condition ρ<1\rho < 1ρ<1. A statement about some other function with the same limiting behaviour, or with BBB and CCC left abstract, would not be this mission. Neither would one-directional or existence-only versions of the stationary laws.

Not included: the waiting-time distributions (2.28) and (2.39), which need an FCFS waiting-time model with arrival-point probabilities; the M/M/c/KM/M/c/KM/M/c/K measures (2.45)–(2.48); finite-source and state-dependent models (§§2.8–2.10). Useful contributions beyond the milestones are Poisson tail estimates at the n\sqrt nn​ scale and monotonicity of α(β)\alpha(\beta)α(β). Both are reusable in other many-server heavy-traffic statements.

Selected references

  • D. Gross, J. F. Shortle, J. M. Thompson, C. M. Harris, Fundamentals of Queueing Theory, 4th ed., Wiley, 2008. https://doi.org/10.1002/9781118625651
  • 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
  • N. Gans, G. Koole, A. Mandelbaum, Telephone call centers: tutorial, review, and research prospects, Manufacturing & Service Operations Management 5(2), 79–141, 2003. https://doi.org/10.1287/msom.5.2.79.16071
  • A. K. Erlang, Solution of some problems in the theory of probabilities of significance in automatic telephone exchanges, Elektroteknikeren 13, 1917 (English translation in The Life and Works of A. K. Erlang, 1948).
  • F. P. Kelly, E. Yudovina, Stochastic Networks, Cambridge University Press, 2014. https://doi.org/10.1017/CBO9781139565363
12 thms2 active usersReviewed
Markov ChainOperations ResearchProbability·Captain: mikedeng1

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

Motivation

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

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

Setting

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

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

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

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

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

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

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

Formalization targets

Goal: Theorem 11, corrected (p. 191)

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

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

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

Milestones, in attack order

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

Significance

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

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

Difficulty

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

Formalization scope

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

Selected references

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

Analysis and Algorithms for Service Parts Supply Chains III: Palm's Theorem for (s–1, s) PoliciesTextbook

Motivation

Service parts (spare engines, avionics modules, repairable components) are usually managed one unit at a time: whenever a customer order removes a unit from stock, a replacement is ordered at once, from a repair shop or an outside supplier. This is the (s–1, s) policy, under which the inventory position (on hand plus on order minus backorders) stays constant at the stock level sss. Every performance measure of such a system (fill rate, expected backorders, availability) is a function of one random variable: the number of units in resupply, i.e. ordered but not yet returned. Chapter 3 of Muckstadt, Analysis and Algorithms for Service Parts Supply Chains (Springer 2005) computes its distribution, and the rest of the book (the METRIC-type multi-echelon models of Chapters 4 and 5, the stock-level optimization of Section 3.4) is built on that computation.

Timeline. C. Palm (1938) showed, in the setting of telephone traffic, that in an infinite-server system with Poisson arrivals the number of busy servers has, in steady state, a Poisson law whose mean is the arrival rate times the mean service time, whatever the service-time distribution. Feeney and Sherbrooke (1966) carried the result to (s–1, s) inventory systems with compound Poisson demand, and treated the lost-sales case. Sherbrooke's METRIC model (1968) made the Poisson law of units in resupply the basis of multi-echelon spare-parts planning.

Setting

A single item is stocked at one location. Customer orders arrive at epochs T0<T1<⋯T_0 < T_1 < \cdotsT0​<T1​<⋯ of a Poisson process with rate λ>0\lambda > 0λ>0, started empty at time 000: the interarrival times AkA_kAk​ are independent and exponential with rate λ\lambdaλ, and Tk=A0+⋯+AkT_k = A_0 + \cdots + A_kTk​=A0​+⋯+Ak​. The kkk-th order triggers a resupply order with resupply time Lk≥0L_k \ge 0Lk​≥0. The resupply times are independent and identically distributed, independent of the arrival process, with a density ggg, distribution function G(u)=P[L≤u]G(u) = P[L \le u]G(u)=P[L≤u] and finite mean

τˉ=E[L]=∫0∞[1−G(u)] du.\bar\tau = E[L] = \int_0^\infty [1 - G(u)]\,du .τˉ=E[L]=∫0∞​[1−G(u)]du.

With backorders allowed, the number of units in resupply at time ttt is

X(t)=#{k:Tk≤t<Tk+Lk},X(t) = \#\{k : T_k \le t < T_k + L_k\},X(t)=#{k:Tk​≤t<Tk​+Lk​},

and N(t)=#{k:Tk≤t}N(t) = \#\{k : T_k \le t\}N(t)=#{k:Tk​≤t} counts the orders placed in [0,t][0,t][0,t]. On-hand stock and backorders at time ttt are (s−X(t))+(s - X(t))^+(s−X(t))+ and (X(t)−s)+(X(t) - s)^+(X(t)−s)+.

In the compound Poisson version the kkk-th order asks for Xk≥1X_k \ge 1Xk​≥1 units, the sizes are i.i.d. with uj=P[Xk=j]u_j = P[X_k = j]uj​=P[Xk​=j], independent of arrivals and resupply times, and all units of one order share its resupply time LkL_kLk​. The units in resupply are Y(t)=∑k:Tk≤t<Tk+LkXkY(t) = \sum_{k : T_k \le t < T_k + L_k} X_kY(t)=∑k:Tk​≤t<Tk​+Lk​​Xk​. Writing un(y)u^{(y)}_nun(y)​ for the probability that yyy orders ask for nnn units in total, the compound Poisson probabilities with parameter μ\muμ are

p(n∣μ)=∑y=0nμye−μy! un(y).p(n \mid \mu) = \sum_{y=0}^{n} \frac{\mu^y e^{-\mu}}{y!}\,u^{(y)}_n .p(n∣μ)=y=0∑n​y!μye−μ​un(y)​.

In the lost-sales version an order that finds no stock on hand is lost, so at most sss units are ever in resupply.

Formalization targets

Goal: Palm's theorem (Theorem 6, p. 39)

For every x≥0x \ge 0x≥0,

lim⁡t→∞P[X(t)=x]=e−λτˉ(λτˉ)xx!.\lim_{t\to\infty} P[X(t) = x] = e^{-\lambda\bar\tau}\frac{(\lambda\bar\tau)^x}{x!}.t→∞lim​P[X(t)=x]=e−λτˉx!(λτˉ)x​.

The resupply-time law enters only through its mean. This is the statement the book's proof establishes and every later chapter uses.

The proof's milestones (pp. 38–41)

  1. Eq. (3.5): P[N(t)=n]=e−λt(λt)n/n!P[N(t) = n] = e^{-\lambda t}(\lambda t)^n/n!P[N(t)=n]=e−λt(λt)n/n!.
  2. Eq. (3.3): given N(t)=nN(t) = nN(t)=n, the epochs (T0,…,Tn−1)(T_0, \dots, T_{n-1})(T0​,…,Tn−1​) have density n!/tnn!/t^nn!/tn on 0<t1<⋯<tn<t0 < t_1 < \cdots < t_n < t0<t1​<⋯<tn​<t.
  3. Eq. (3.7): given N(t)=nN(t) = nN(t)=n, X(t)X(t)X(t) is binomial with parameters nnn and p=1t∫0t[1−G(u)] dup = \frac1t\int_0^t[1-G(u)]\,dup=t1​∫0t​[1−G(u)]du.
  4. Eq. (3.8): for every t>0t > 0t>0, X(t)X(t)X(t) is Poisson with mean λ∫0t[1−G(u)] du\lambda\int_0^t[1-G(u)]\,duλ∫0t​[1−G(u)]du.
  5. Eq. (3.10): ∫0t[1−G(u)] du→τˉ\int_0^t[1-G(u)]\,du \to \bar\tau∫0t​[1−G(u)]du→τˉ.

Extensions in Section 3.1

  1. Theorem 7 (pp. 43–44): with compound Poisson demand, lim⁡t→∞P[Y(t)=n]=p(n∣λτˉ)\lim_{t\to\infty}P[Y(t) = n] = p(n \mid \lambda\bar\tau)limt→∞​P[Y(t)=n]=p(n∣λτˉ).
  2. Theorem 8 (p. 44): in the lost-sales system with exponential resupply times of rate β\betaβ, the probability vectors solving the balance equations are exactly the truncated Poisson law πx∝(λ/β)x/x!\pi_x \propto (\lambda/\beta)^x/x!πx​∝(λ/β)x/x!, 0≤x≤s0 \le x \le s0≤x≤s.
  3. Theorem 9 (pp. 46–47): for a due-date delay T≥0T \ge 0T≥0, the units in resupply that have been there for at least TTT satisfy lim⁡t→∞P[YT(t)=n]=p(n∣λτˉα)\lim_{t\to\infty}P[Y_T(t) = n] = p(n \mid \lambda\bar\tau\alpha)limt→∞​P[YT​(t)=n]=p(n∣λτˉα) with α=1τˉ∫T∞[1−G(t)] dt\alpha = \frac1{\bar\tau}\int_T^\infty[1-G(t)]\,dtα=τˉ1​∫T∞​[1−G(t)]dt.

Significance

The result. Palm's theorem turns an infinite-dimensional object (the whole resupply-time distribution) into one number, τˉ\bar\tauτˉ. This insensitivity is what makes spare-parts planning computable: the expected backorders at stock level sss are ∑x>s(x−s) p(x∣λτˉ)\sum_{x > s}(x - s)\,p(x \mid \lambda\bar\tau)∑x>s​(x−s)p(x∣λτˉ), the fill rate is P[X≤s−1]P[X \le s - 1]P[X≤s−1], and both can be optimized over sss with only the demand rate and mean repair time as data. Theorem 7 extends this to batch demand, Theorem 9 to systems allowed a response time, and Theorem 8 gives the exact law when shortages are lost instead of backordered.

Formalizing it. All of these results are classical and proved. None of them is formalized on the platform, and Mathlib has Poisson and exponential distributions but no Poisson process, no thinning theorem and no infinite-server queue. The mission produces a Poisson arrival stream built from i.i.d. exponential gaps, the conditional-uniformity property of its epochs, independent thinning, and the M/G/∞ transient law, all reusable in queueing and inventory missions.

Difficulty

The algebra of the proof (summing the binomial against the Poisson law of N(t)N(t)N(t)) is short. The work is in the probabilistic step the book treats in a sentence: that, given N(t)=nN(t) = nN(t)=n, the nnn orders behave like independent uniform epochs, each of which independently is still in resupply at time ttt with the same probability ppp. This needs the joint law of the partial sums of exponential variables (Eq. (3.3)), and then a symmetrization argument, since the epochs are ordered while the resupply times are attached to order indices. The naive route of computing P[X(t)=x]P[X(t) = x]P[X(t)=x] by conditioning on individual epochs does not go through without that exchangeability step. The limit t→∞t \to \inftyt→∞ is then elementary; stating a stationary version directly is not a substitute, since the book's "steady state" is exactly this limit.

Formalization scope

The model is a structure on a probability space (Ω,P)(\Omega, P)(Ω,P): exponential interarrival times with rate λ>0\lambda > 0λ>0, nonnegative resupply times with a density and an integrable first coordinate, and mutual independence of the whole family. Orders are indexed from 000, so the book's X1,…,XnX_1, \dots, X_nX1​,…,Xn​ are T0,…,Tn−1T_0, \dots, T_{n-1}T0​,…,Tn−1​. Counts are cardinalities of sets of order indices, with value 000 on the probability-zero event where infinitely many orders fall in a bounded interval.

Commitments and pinnings:

  • "Steady state probability" (Theorems 6, 7, 9) is lim⁡t→∞P[⋅(t)=x]\lim_{t\to\infty}P[\cdot(t) = x]limt→∞​P[⋅(t)=x] for the system empty at time 000, which is what the proofs compute via (3.8)–(3.11).
  • Independence of resupply times from arrivals is not written in Theorem 6 but is used on p. 40; it is part of the model.
  • The stock level sss does not enter the backorder model; it matters only in Theorem 8.
  • Theorem 8 is stated algebraically: a vector on {0,…,s}\{0, \dots, s\}{0,…,s} solves the balance equations (3.26), (3.25) for 0<j<s0 < j < s0<j<s and (3.32), and sums to one, if and only if it is the truncated Poisson law. The book obtains these equations by letting t→∞t \to \inftyt→∞ in the forward equations under the unproved assumption Pj′(t)→0P_j'(t) \to 0Pj′​(t)→0. The book writes (3.25) "for 0≤j≤s0 \le j \le s0≤j≤s", which at j=sj = sj=s contradicts its own (3.32); the boundary equation (3.32) is used. The sentence on p. 46 extending Theorem 8 to arbitrary resupply densities is asserted without proof and is not stated.
  • Theorem 7 identifies the limit law by its probabilities (3.22)–(3.23); its mean λτˉuˉ\lambda\bar\tau\bar uλτˉuˉ is a property of that law. Theorem 9 is stated for compound demand as the book states it, although the book's proof covers only the Poisson case.

A model in which X(t)X(t)X(t) is postulated through its law, or in which resupply times may depend on the arrival epochs, makes the goal empty or false; here X(t)X(t)X(t) is computed from the primitive arrival and resupply times, whose joint law is fully specified.

Welcome contributions: a general Poisson-process library (construction from exponential gaps, Poisson marginals, order-statistics property), independent thinning, and proofs of the milestones in the listed order.

Selected references

  • J. A. Muckstadt, Analysis and Algorithms for Service Parts Supply Chains, Springer Series in Operations Research and Financial Engineering, 2005, Chapter 3. https://doi.org/10.1007/b138879
  • C. Palm, "Analysis of the Erlang traffic formula for busy-signal arrangements", Ericsson Technics 5, 1938, 39–58.
  • G. J. Feeney and C. C. Sherbrooke, "The (s–1, s) inventory policy under compound Poisson demand", Management Science 12(5), 1966, 391–411. https://doi.org/10.1287/mnsc.12.5.391
  • C. C. Sherbrooke, "METRIC: A multi-echelon technique for recoverable item control", Operations Research 16(1), 1968, 122–141. https://doi.org/10.1287/opre.16.1.122
  • S. M. Ross, Stochastic Processes, 2nd ed., Wiley, 1996, Section 2.3 (conditional distribution of arrival times) and Section 2.4 (the M/G/∞ queue).
12 thms2 active usersReviewed
Dynamic ProgrammingMarkov ChainOperations Research·Captain: mikedeng1

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

Motivation

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

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

Setting

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

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

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

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

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

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

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

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

Formalization targets

Goal: Theorem 2 (p. 543)

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

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

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

Milestones

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

Significance

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

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

Difficulty

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

Formalization scope

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

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

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

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

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

Selected references

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

Computing Optimal (s, S) Inventory Policies II: Bounds on the Optimal s and S of the n-Period Model from the One-Period CostResearch Paper

Motivation

The (s,S)(s, S)(s,S) policy is the standard ordering rule for a single stocked item with a fixed charge per order: when the stock position falls below a reorder point sss, order up to a level SSS; otherwise order nothing. Scarf (1960) proved that when the expected one-period cost is convex, some (s,S)(s, S)(s,S) policy is optimal in every period of a finite-horizon model with set-up cost. Iglehart (1963) extended this to the infinite horizon. These results establish existence only. They give no procedure for finding the optimal pair.

Veinott and Wagner (1965) gave such a procedure. Its first step is to bound the optimal sss and SSS by four integers s‾≤sˉ≤S‾≤Sˉ\underline{s} \le \bar{s} \le \underline{S} \le \bar{S}s​≤sˉ≤S​≤Sˉ computed from the one-period cost alone. This reduces the search for an optimal policy to a finite box. Their Theorem 4(a) proves that the bounds hold for the first-period parameters of an optimal (s,S)(s, S)(s,S) policy in every nnn-period model. This mission formalizes that theorem and the four comparison lemmas (Lemmas 2–5 of the paper's Appendix §2) from which the paper derives it.

Setting

Demands ξ1,ξ2,…\xi_1, \xi_2, \dotsξ1​,ξ2​,… in periods 1,2,…1, 2, \dots1,2,… are independent, non-negative integer random variables with common distribution φ(k)=Pr⁡(ξt=k)\varphi(k) = \Pr(\xi_t = k)φ(k)=Pr(ξt​=k) and finite mean. Unfilled demand is backlogged, so stock levels are arbitrary integers. In period ttt, XtX_tXt​ is the stock on hand plus on order before ordering and Yt≥XtY_t \ge X_tYt​≥Xt​ the level after ordering. Then X1=xX_1 = xX1​=x and Xt+1=Yt−ξtX_{t+1} = Y_t - \xi_tXt+1​=Yt​−ξt​.

A policy chooses YtY_tYt​ as any integer function of the information available at the start of period ttt. Given X1=xX_1 = xX1​=x, that information is determined by xxx and ξ1,…,ξt−1\xi_1, \dots, \xi_{t-1}ξ1​,…,ξt−1​. Policies may therefore depend on the whole history; they are not required to be Markov.

Costs are summarized by a set-up cost K≥0K \ge 0K≥0, a discount factor 0≤α≤10 \le \alpha \le 10≤α≤1 and a one-period cost Gα:Z→RG_\alpha : \mathbb Z \to \mathbb RGα​:Z→R. The paper reduces the model with purchase cost ccc, lead time λ\lambdaλ and holding–penalty cost LLL to these data by its Eq. (2), with Gα(y)=(1−α)cy+L(y)G_\alpha(y) = (1 - \alpha) c y + L(y)Gα​(y)=(1−α)cy+L(y). The nnn-period cost of a policy YYY from X1=xX_1 = xX1​=x is

fn(x∣Y)=∑t=1nαt−1[K E δ(Yt−Xt)+E Gα(Yt)],f_n(x \mid Y) = \sum_{t=1}^{n} \alpha^{t-1}\bigl[K\,E\,\delta(Y_t - X_t) + E\,G_\alpha(Y_t)\bigr],fn​(x∣Y)=t=1∑n​αt−1[KEδ(Yt​−Xt​)+EGα​(Yt​)],

where δ(0)=0\delta(0) = 0δ(0)=0 and δ(z)=1\delta(z) = 1δ(z)=1 for z>0z > 0z>0. A policy is optimal if it minimizes fn(x∣⋅)f_n(x \mid \cdot)fn​(x∣⋅) for every xxx simultaneously. The standing assumptions are that GαG_\alphaGα​ is convex on the integers (non-decreasing forward differences) and Gα(y)→∞G_\alpha(y) \to \inftyGα​(y)→∞ as ∣y∣→∞|y| \to \infty∣y∣→∞.

The bounds (p. 537) are defined as follows. S‾\underline{S}S​ is the smallest minimizer of GαG_\alphaGα​. Sˉ\bar SSˉ is the smallest integer ≥S‾\ge \underline{S}≥S​ with Gα(Sˉ+1)≥Gα(S‾)+αKG_\alpha(\bar S + 1) \ge G_\alpha(\underline S) + \alpha KGα​(Sˉ+1)≥Gα​(S​)+αK (21). s‾\underline ss​ is the smallest integer with Gα(s‾)≤Gα(S‾)+KG_\alpha(\underline s) \le G_\alpha(\underline S) + KGα​(s​)≤Gα​(S​)+K (22). sˉ\bar ssˉ is the smallest integer with Gα(sˉ)≤Gα(S‾)+(1−α)KG_\alpha(\bar s) \le G_\alpha(\underline S) + (1 - \alpha)KGα​(sˉ)≤Gα​(S​)+(1−α)K (23).

Formalization targets

Goal: Theorem 4(a)

For every n≥2n \ge 2n≥2 there is an optimal (s,S)(s, S)(s,S) policy for the nnn-period model whose first-period rule (sn,Sn)(s_n, S_n)(sn​,Sn​) satisfies

s‾≤sn≤sˉ≤S‾≤Sn≤Sˉ.\underline{s} \le s_n \le \bar{s} \le \underline{S} \le S_n \le \bar{S}.s​≤sn​≤sˉ≤S​≤Sn​≤Sˉ.

Optimality is against all history-dependent policies and for every starting level. The existence of an optimal (s,S)(s, S)(s,S) policy is part of the conclusion.

Milestones

  1. The characterization of S‾\underline SS​ by ΔGα(S‾−1)<0≤ΔGα(S‾)\Delta G_\alpha(\underline S - 1) < 0 \le \Delta G_\alpha(\underline S)ΔGα​(S​−1)<0≤ΔGα​(S​), and the existence of the parameters of (21)–(23).
  2. Lemma 2: S‾≤Sn\underline{S} \le S_nS​≤Sn​ for any optimal policy using (sn,Sn)(s_n, S_n)(sn​,Sn​) in period 1.
  3. Lemma 3: if sˉ<sn\bar s < s_nsˉ<sn​, some policy using (sˉ,Sn)(\bar s, S_n)(sˉ,Sn​) in period 1 costs no more, from every xxx.
  4. Lemma 4: if Sˉ<Sn\bar S < S_nSˉ<Sn​ (and sn≤sˉs_n \le \bar ssn​≤sˉ), some policy using (sn,S‾)(s_n, \underline S)(sn​,S​) in period 1 costs no more, from every xxx.
  5. Lemma 5: s‾≤sn\underline{s} \le s_ns​≤sn​ for any optimal policy using (sn,Sn)(s_n, S_n)(sn​,Sn​) in period 1.

Significance

The theorem turns the optimization over (s,S)(s, S)(s,S) policies into a search over a finite box that depends only on GαG_\alphaGα​, KKK and α\alphaα. The paper's Section 4 procedure for the infinite-horizon problem (Theorem 4(b), Step i) is built on this box, and the bounds also give an interpretation of sss and SSS: S‾\underline SS​ is the single-period optimum, and sˉ\bar ssˉ, s‾\underline ss​, Sˉ\bar SSˉ mark where the one-period cost exceeds that optimum by the fractions (1−α)K(1 - \alpha)K(1−α)K, KKK and αK\alpha KαK of the set-up cost.

The results are proved in the paper. None of them has a machine-checked proof as far as is known; no discrete-state finite-horizon inventory model with set-up cost is on the platform. A formal proof would provide a reusable finite-horizon dynamic-programming model with history-dependent policies and extended-real expected costs, and a machine-checked version of the existence of optimal (s,S)(s, S)(s,S) policies in the discrete setting, which Theorem 4(a) contains.

Difficulty

The four lemmas compare an optimal policy with an explicit modification of it. The modification in Lemmas 2 and 5 raises the stock in period 1 and then orders max⁡(Xt′,Ytn)\max(X'_t, Y^n_t)max(Xt′​,Ytn​), where YtnY^n_tYtn​ is the original policy's decision along the original demand path. This comparison policy is history-dependent even when the original policy is not, so the argument cannot be carried out inside the class of Markov or (s,S)(s, S)(s,S) policies. Expectations must be handled over finite demand histories, and costs can be infinite for general policies.

The goal also contains the existence of an optimal (s,S)(s, S)(s,S) policy for the nnn-period model. The paper cites this from Scarf and Zabel rather than proving it. Applying Lemma 3 or 4 yields an optimal policy whose later periods are no longer of (s,S)(s, S)(s,S) form. Restoring the (s,S)(s, S)(s,S) form requires the dynamic-programming principle of optimality together with the KKK-convexity argument.

Formalization scope

The Lean model (VeinottWagnerSS.Bounds.Model) uses the reduced model of Eq. (2): G : ℤ → ℝ is a primitive, and ccc, λ\lambdaλ and LLL do not appear. Stock levels are integers and demands are natural numbers; the demand law is a PMF ℕ with finite mean. A policy is Y : (t : ℕ) → ℤ → (Fin t → ℕ) → ℤ: period t+1t + 1t+1's level as a function of xxx and the first ttt demands, so it cannot see current or future demand. Periods are numbered from 000 in Lean. Expectations are sums over demand histories weighted by ∏iφ(ξi)\prod_i \varphi(\xi_i)∏i​φ(ξi​). E Gα(Yt)E\,G_\alpha(Y_t)EGα​(Yt​) is the difference of the expectations of the positive and negative parts, and fnf_nfn​ is valued in EReal. Under the standing assumptions GαG_\alphaGα​ is bounded below, so the negative part is finite and no ∞−∞\infty - \infty∞−∞ arises. Both α=1\alpha = 1α=1 and α=0\alpha = 0α=0 are allowed.

The bounds SLow, SHigh, sLow, sHigh are infima of the sets in (21)–(23); a milestone proves they are the least elements. A trivializing formalization is ruled out as follows. Optimality is over all admissible policies and for every xxx. The bounds are the least integers of (21)–(23). The goal requires an optimal policy, not only a bounded pair. Existence of an optimal policy is proved, not assumed.

Printed statements corrected. Lemma 4 as printed has no hypothesis on sns_nsn​. Its proof begins "By lemma 3 we may assume that sn≤sˉs_n \le \bar ssn​≤sˉ", and without that assumption (sn,S‾)(s_n, \underline S)(sn​,S​) need not be an (s,S)(s, S)(s,S) rule. The Lean statement adds sn≤sˉs_n \le \bar ssn​≤sˉ. The last display of the proof of Lemma 5 reads Gα(s‾+1)G_\alpha(\underline s + 1)Gα​(s​+1) where Gα(s‾−1)G_\alpha(\underline s - 1)Gα​(s​−1) is meant; this affects only the proof. The milestone texts are verbatim.

Useful contributions include lemmas on convex functions on Z\mathbb ZZ (monotonicity on either side of a minimizer), expectation lemmas for sums over Fin t → ℕ, and the finite-horizon principle of optimality for this model.

Selected references

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

Computing Optimal (s, S) Inventory Policies I: The Renewal Closed Form for the Discounted Cost of a Stationary (s, S) PolicyResearch Paper

Motivation

The periodic-review inventory problem with a fixed ordering cost is one of the basic models of operations research. A firm reviews its stock once per period, may order at a cost KKK per order plus a unit cost, and then faces a random demand; unmet demand is backlogged. Scarf (1960) and Iglehart (1963) showed that for this model an (s,S)(s, S)(s,S) policy is optimal: order up to SSS whenever the stock falls below sss, and otherwise do nothing. That result tells a manager what shape a good policy has, but not which pair (s,S)(s, S)(s,S) to use.

Veinott and Wagner, Computing Optimal (s, S) Inventory Policies (Management Science 11 (1965) 525–552), gave the first practical algorithm for computing an optimal pair when demand is discrete. The algorithm rests on a closed form, their Eq. (11), for the discounted cost of an arbitrary stationary (s,S)(s, S)(s,S) policy, obtained by a renewal argument in their Section 3. The same closed form, in the undiscounted limit, is the classical expression of the long-run average cost of an (s,S)(s, S)(s,S) policy used throughout inventory theory textbooks.

Timeline:

  • 1958: Arrow, Karlin and Scarf collect the early dynamic inventory models.
  • 1960: Scarf proves optimality of (s,S)(s, S)(s,S) policies in the finite-horizon model via KKK-convexity.
  • 1963: Iglehart extends optimality to the infinite-horizon model.
  • 1965: Veinott and Wagner derive the renewal closed form (10)–(11) and the bounds and search procedure built on it.

Setting

Demands ξ1,ξ2,…\xi_1, \xi_2, \dotsξ1​,ξ2​,… are independent random variables on {0,1,2,… }\{0, 1, 2, \dots\}{0,1,2,…} with common distribution φ\varphiφ, φ(k)=Pr⁡(ξt=k)\varphi(k) = \Pr(\xi_t = k)φ(k)=Pr(ξt​=k). Write φi\varphi^iφi for the iii-fold convolution of φ\varphiφ (φ0\varphi^0φ0 is the point mass at 000) and Φi(k)=∑t=0kφi(t)\Phi^i(k) = \sum_{t=0}^{k}\varphi^i(t)Φi(k)=∑t=0k​φi(t) for its distribution function, so Φ0≡1\Phi^0 \equiv 1Φ0≡1.

In period ttt the stock before ordering is Xt∈ZX_t \in \mathbb ZXt​∈Z and the stock after ordering is Yt≥XtY_t \ge X_tYt​≥Xt​; then Xt+1=Yt−ξtX_{t+1} = Y_t - \xi_tXt+1​=Yt​−ξt​. With the unit purchase cost eliminated as in the paper's Eq. (2), the cost of period ttt is Kδ(Yt−Xt)+Gα(Yt)K\delta(Y_t - X_t) + G_\alpha(Y_t)Kδ(Yt​−Xt​)+Gα​(Yt​), where K≥0K \ge 0K≥0 is the set-up cost, δ(0)=0\delta(0) = 0δ(0)=0, δ(z)=1\delta(z) = 1δ(z)=1 for z>0z > 0z>0, and Gα:Z→RG_\alpha : \mathbb Z \to \mathbb RGα​:Z→R is the one-period cost. Period ttt is discounted by αt−1\alpha^{t-1}αt−1 with 0≤α<10 \le \alpha < 10≤α<1.

A stationary (s,S)(s, S)(s,S) policy, for integers s≤Ss \le Ss≤S, sets Yt=SY_t = SYt​=S if Xt<sX_t < sXt​<s and Yt=XtY_t = X_tYt​=Xt​ otherwise. Its total expected discounted cost from X1=xX_1 = xX1​=x is

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

and its equivalent cost per period is aα(x∣s,S)=(1−α)f(x∣s,S)a_\alpha(x \mid s, S) = (1 - \alpha) f(x \mid s, S)aα​(x∣s,S)=(1−α)f(x∣s,S).

The renewal quantities are

mα(k)=∑i=1∞αiφi(k),Mα(k)=∑i=1∞αiΦi(k),m_\alpha(k) = \sum_{i=1}^{\infty}\alpha^i\varphi^i(k), \qquad M_\alpha(k) = \sum_{i=1}^{\infty}\alpha^i\Phi^i(k),mα​(k)=i=1∑∞​αiφi(k),Mα​(k)=i=1∑∞​αiΦi(k),

the latter being the discount renewal function,

Lα(x,d)=Gα(x)+∑i=1∞∑k=0dαiGα(x−k)φi(k),rα(d)=∑i=1∞αi[Φi−1(d)−Φi(d)].L_\alpha(x, d) = G_\alpha(x) + \sum_{i=1}^{\infty}\sum_{k=0}^{d}\alpha^i G_\alpha(x - k)\varphi^i(k), \qquad r_\alpha(d) = \sum_{i=1}^{\infty}\alpha^i\bigl[\Phi^{i-1}(d) - \Phi^i(d)\bigr].Lα​(x,d)=Gα​(x)+i=1∑∞​k=0∑d​αiGα​(x−k)φi(k),rα​(d)=i=1∑∞​αi[Φi−1(d)−Φi(d)].

If T(d)T(d)T(d) is the first period in which cumulative demand exceeds ddd, then Lα(x,d)L_\alpha(x, d)Lα​(x,d) is the expected discounted one-period cost over periods 1,…,T(d)1, \dots, T(d)1,…,T(d) from stock xxx without ordering, and rα(d)=E[αT(d)]r_\alpha(d) = E[\alpha^{T(d)}]rα​(d)=E[αT(d)].

Formalization targets

Goal: Eq. (11)

With D=S−sD = S - sD=S−s,

aα(x∣s,S)={Lα(S,D)+K1+Mα(D)x<s,(1−α)Lα(x,x−s)+Lα(S,D)+K1+Mα(D) rα(x−s)x≥s.a_\alpha(x \mid s, S) = \begin{cases} \dfrac{L_\alpha(S, D) + K}{1 + M_\alpha(D)} & x < s, \\[2ex] (1 - \alpha)L_\alpha(x, x - s) + \dfrac{L_\alpha(S, D) + K}{1 + M_\alpha(D)}\, r_\alpha(x - s) & x \ge s. \end{cases}aα​(x∣s,S)=⎩⎨⎧​1+Mα​(D)Lα​(S,D)+K​(1−α)Lα​(x,x−s)+1+Mα​(D)Lα​(S,D)+K​rα​(x−s)​x<s,x≥s.​

Milestones

  1. Appendix §1: Mα(k)<∞M_\alpha(k) < \inftyMα​(k)<∞ for 0≤α≤10 \le \alpha \le 10≤α≤1 with αφ(0)<1\alpha\varphi(0) < 1αφ(0)<1.
  2. Eq. (8): Lα(x,d)=Gα(x)+∑j=0dGα(x−j)mα(j)L_\alpha(x, d) = G_\alpha(x) + \sum_{j=0}^{d} G_\alpha(x - j)m_\alpha(j)Lα​(x,d)=Gα​(x)+∑j=0d​Gα​(x−j)mα​(j).
  3. Eq. (9): rα(d)=α−(1−α)Mα(d)r_\alpha(d) = \alpha - (1 - \alpha)M_\alpha(d)rα​(d)=α−(1−α)Mα​(d).
  4. The renewal equation f(S)=Lα(S,D)+Krα(D)+f(S)rα(D)f(S) = L_\alpha(S, D) + Kr_\alpha(D) + f(S)r_\alpha(D)f(S)=Lα​(S,D)+Krα​(D)+f(S)rα​(D).
  5. f(x)=K+f(S)f(x) = K + f(S)f(x)=K+f(S) for x<sx < sx<s.
  6. f(x)=Lα(x,x−s)+Krα(x−s)+f(S)rα(x−s)f(x) = L_\alpha(x, x - s) + Kr_\alpha(x - s) + f(S)r_\alpha(x - s)f(x)=Lα​(x,x−s)+Krα​(x−s)+f(S)rα​(x−s) for x≥sx \ge sx≥s.
  7. Eq. (10): the closed form of fff with denominator 1−rα(D)1 - r_\alpha(D)1−rα​(D).

Significance

Eq. (11) turns the cost of an (s,S)(s, S)(s,S) policy, an infinite series over the trajectories of a controlled Markov chain, into a finite expression in GαG_\alphaGα​, KKK and the renewal sequence mαm_\alphamα​, which the paper computes by a one-line recursion. Everything in the paper's Section 4 builds on it: the search for an optimal pair minimizes aα(⋅∣s,S)a_\alpha(\cdot \mid s, S)aα​(⋅∣s,S) over a finite box, and the undiscounted limit α→1\alpha \to 1α→1 gives the long-run average cost (L1(S,D)+K)/(1+M1(D))(L_1(S, D) + K)/(1 + M_1(D))(L1​(S,D)+K)/(1+M1​(D)).

The result is classical and proved in the paper. What this mission adds is a machine-checked derivation from the definition of the policy's expected cost, including the renewal step, which the paper states in one sentence ("a renewal of the process takes place"). It also produces a reusable Lean layer: discrete convolution powers, the discount renewal function, and the law of an (s,S)(s, S)(s,S)-controlled inventory chain. To the best of our knowledge none of these is formalized in Mathlib or on the platform.

Difficulty

The paper's argument conditions on the random time T(D)T(D)T(D) at which the process renews and uses the strong Markov property at that time. In the formalization, fff is defined as a sum over periods of expectations under the law of XtX_tXt​. Relating that sum to one that splits at the random time T(D)T(D)T(D) requires either a stopping-time decomposition of the chain or an explicit accounting of the law of XtX_tXt​ before and after the first order. Neither is a direct computation. A second difficulty is the interchange of the infinite sum over periods with the sum over states y∈Zy \in \mathbb Zy∈Z, which has infinitely many states reachable (demand is unbounded below). The renewal equation (milestone 4) alone does not determine f(S)f(S)f(S) without the fact that rα(D)<1r_\alpha(D) < 1rα​(D)<1 for α<1\alpha < 1α<1, which comes from (9).

Formalization scope

  • Namespace VeinottWagnerSS.RenewalCost. Stock levels are integers, demands natural numbers; x−sx - sx−s and D=S−sD = S - sD=S−s enter LαL_\alphaLα​, MαM_\alphaMα​, rαr_\alpharα​ through Int.toNat, which is exact because the statements assume s≤xs \le xs≤x or s≤Ss \le Ss≤S.
  • Reduced model. The primitives are GαG_\alphaGα​, KKK, α\alphaα and φ\varphiφ, as in the paper's Eq. (2): the unit purchase cost is set to 000 and the holding–penalty cost is replaced by GαG_\alphaGα​.
  • Demand is a real function φ:N→R\varphi : \mathbb N \to \mathbb Rφ:N→R, non-negative and summing to 111.
  • The cost fff is the expected discounted cost of the controlled chain: the law of XtX_tXt​ is built recursively from X1=xX_1 = xX1​=x and the transition Pr⁡(Xt+1=z∣Xt=y)=φ(Y(y)−z)\Pr(X_{t+1} = z \mid X_t = y) = \varphi(Y(y) - z)Pr(Xt+1​=z∣Xt​=y)=φ(Y(y)−z). It is not defined by (10) or by the renewal equations, and not as the solution of a fixed-point equation. A formalization in which any of milestones 4–7 or the goal holds by definition is ruled out.
  • Series are real tsums. LαL_\alphaLα​ is defined by the series (7) and rαr_\alpharα​ by the first line of (9), i.e. through the law Pr⁡[T(d)=i]=Φi−1(d)−Φi(d)\Pr[T(d) = i] = \Phi^{i-1}(d) - \Phi^i(d)Pr[T(d)=i]=Φi−1(d)−Φi(d); the paper's derivations of these series from T(d)T(d)T(d) are not formalized. For α<1\alpha < 1α<1 all series converge for every GαG_\alphaGα​, because after period 111 the stock after ordering lies in the finite set {S}∪[s,max⁡(x,S)]\{S\} \cup [s, \max(x, S)]{S}∪[s,max(x,S)].
  • Hypotheses. Milestones 1–3 assume 0≤α≤10 \le \alpha \le 10≤α≤1 and αφ(0)<1\alpha\varphi(0) < 1αφ(0)<1, the paper's standing assumption on p. 533. Milestones 4–7 and the goal assume 0≤α<10 \le \alpha < 10≤α<1, K≥0K \ge 0K≥0 and s≤Ss \le Ss≤S. The paper's standing assumptions that GαG_\alphaGα​ is convex and tends to +∞+\infty+∞ as ∣y∣→∞|y| \to \infty∣y∣→∞ are not imposed: the statements hold for every GαG_\alphaGα​ when α<1\alpha < 1α<1, and the paper's derivation does not use them. This is a disclosed generalization.
  • Printed slips. None found in the formalized statements.
  • Not formalized: the recursion (A1) for mαm_\alphamα​, the limit (12) as α→1\alpha \to 1α→1, and the stationary analysis (13)–(20).

Contributions welcome: proofs of the milestones, general lemmas on discrete renewal sequences and convolution powers, and a first-passage decomposition for integer-valued Markov chains, which is reusable beyond this mission.

Selected references

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

Markov-Renewal Programming. II: Infinite Return Models, Example II: Gain and Bias of the Infinite-Step ReturnResearch Paper

Motivation

A Markov-renewal program is a sequential decision model in which a system moves among finitely many states, the time between transitions is random and may depend on both the current and the next state, and a reward accrues during each sojourn. It generalizes the Markov decision process, where every transition takes one time unit, and is the standard model for maintenance, inventory and queueing control problems in which decisions are made at irregular epochs. W. S. Jewell introduced the model in two companion papers in Operations Research in 1963 (Part I, Part II).

Part II studies returns over an unbounded planning horizon. When the horizon is measured in number of transitions and rewards are not discounted, the expected return of a stationary policy grows linearly, and the paper's policy-improvement algorithm for this model rests on the precise form of that growth: a rate, the gain, and a state-dependent offset, the bias. Appendix A of Part II derives this asymptotic form from the Kemeny–Snell theory of finite Markov chains. This mission formalizes that derivation.

The result is the transition-counting counterpart of Howard's gain–bias analysis for Markov decision processes (R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960), and the fundamental matrix it uses is that of J. G. Kemeny and J. L. Snell, Finite Markov Chains, Van Nostrand, 1960.

Setting

Fix a stationary policy. Only the embedded chain and the mean one-step rewards matter for the infinite-step undiscounted model (the paper, p. 961: these processes "depend only on the means"). The data are:

  • a finite nonempty state set SSS and a transition matrix P=(pij)i,j∈SP = (p_{ij})_{i,j\in S}P=(pij​)i,j∈S​ with pij≥0p_{ij}\ge 0pij​≥0 and ∑jpij=1\sum_j p_{ij} = 1∑j​pij​=1;
  • the one-step expected rewards ρ∈RS\rho \in \mathbb R^Sρ∈RS (the paper's (I 17));
  • the terminal rewards V(0)∈RSV(0)\in\mathbb R^SV(0)∈RS.

The chain is ergodic (assumption 2, p. 951): PPP is irreducible, meaning every state can be reached from every other state with positive probability. PPP may be periodic. A stationary probability vector is π∈RS\pi\in\mathbb R^Sπ∈RS with πi≥0\pi_i\ge 0πi​≥0, ∑iπi=1\sum_i\pi_i = 1∑i​πi​=1 and πP=π\pi P = \piπP=π; Π\PiΠ denotes the matrix every row of which is π\piπ.

The nnn-step return of the policy is the recursion (I 16) without the maximization:

Vi(n)=ρi+∑jpijVj(n−1),n=1,2,…V_i(n) = \rho_i + \sum_{j} p_{ij}V_j(n-1),\qquad n = 1,2,\ldotsVi​(n)=ρi​+j∑​pij​Vj​(n−1),n=1,2,…

The system gain is G=∑iπiρiG = \sum_i \pi_i\rho_iG=∑i​πi​ρi​ (A 6), the bias after nnn steps is Wi(n)=Vi(n)−GnW_i(n) = V_i(n) - GnWi​(n)=Vi​(n)−Gn, and the fundamental matrix is Z=(I−P+Π)−1Z = (I - P + \Pi)^{-1}Z=(I−P+Π)−1 (A 7).

Formalization targets

Goal: gain and Cesàro bias of the infinite-step return

For every irreducible row-stochastic PPP, stationary π\piπ, rewards ρ\rhoρ and terminal rewards V(0)V(0)V(0): the matrix I−P+ΠI - P + \PiI−P+Π is invertible, and

lim⁡n→∞1n∑m=1nW(m)=(Z−Π)ρ+ΠV(0).\lim_{n\to\infty}\frac1n\sum_{m=1}^{n} W(m) = (Z - \Pi)\rho + \Pi V(0).n→∞lim​n1​m=1∑n​W(m)=(Z−Π)ρ+ΠV(0).

This is (A 4) with (A 5)–(A 7), in the form that is true for every ergodic chain and every terminal-reward vector.

Milestones

In order: the stationary vector exists, is unique and positive, and 1n∑k<nPk→Π\frac1n\sum_{k<n}P^k\to\Pin1​∑k<n​Pk→Π (Appendix A); the increment identity V(n)−V(n−1)=Pn−1ρV(n)-V(n-1) = P^{n-1}\rhoV(n)−V(n−1)=Pn−1ρ (A 1) for constant V(0)V(0)V(0); the Cesàro limit Πρ=G1\Pi\rho = G\mathbf 1Πρ=G1 of the increments (A 2); invertibility of I−(P−Π)I-(P-\Pi)I−(P−Π) and the relations PZ=ZPPZ = ZPPZ=ZP, πZ=π\pi Z = \piπZ=π, I−Z=Π−PZI - Z = \Pi - PZI−Z=Π−PZ; the Cesàro summability of I+∑j=1n−1(Pj−Π)I+\sum_{j=1}^{n-1}(P^j-\Pi)I+∑j=1n−1​(Pj−Π) to ZZZ; the finite-nnn bias formula (A 3) for constant V(0)V(0)V(0); the relative-value equations Wi+G=ρi+∑jpijWjW_i + G = \rho_i + \sum_j p_{ij}W_jWi​+G=ρi​+∑j​pij​Wj​ (4) for the limiting bias; and the paper's two-state machine example, where the four stationary policies have gains 70,50,80,6070, 50, 80, 6070,50,80,60, the policy (B,A)(B,A)(B,A) is optimal for every nnn with V1(n)=80n+170+(−1)n+1170V_1(n) = 80n+170+(-1)^{n+1}170V1​(n)=80n+170+(−1)n+1170, the limiting biases are ±170\pm170±170, and the relative values of (5) are 340340340 and 000.

Stronger: aperiodic chains

If PPP is moreover primitive (aperiodic), W(n)W(n)W(n) itself converges to (Z−Π)ρ+ΠV(0)(Z-\Pi)\rho + \Pi V(0)(Z−Π)ρ+ΠV(0). This is included as a supporting statement.

Significance

The asymptotic V(n)≈Gn+WV(n)\approx Gn + WV(n)≈Gn+W is what makes average-reward policy improvement work: substituting it into the recursion yields the linear equations (4), whose solution (the relative values) is the test quantity of the paper's algorithm. The gain identifies which stationary policy earns most per transition in the long run, and the bias separates policies of equal gain. The same gain–bias decomposition underlies average-cost dynamic programming, the analysis of Markov reward processes, and the deviation matrix used in sensitivity analysis of Markov chains.

The result is classical and proved on paper. Formalizing it adds, first, a machine-checked account of the fundamental matrix of an irreducible, possibly periodic, finite chain: invertibility of I−P+ΠI - P + \PiI−P+Π, its algebraic relations and its Cesàro characterization. Mathlib has irreducible and primitive nonnegative matrices and row-stochastic matrices, but no stationary-vector uniqueness for irreducible chains, no Cesàro ergodic theorem for finite chains, and no fundamental matrix. Second, it fixes two slips of the printed appendix (below) with an exact statement. No machine-checked proof of this result is known.

Difficulty

The obvious argument writes W(n)=∑k<n(Pk−Π)ρ+PnV(0)W(n) = \sum_{k<n}(P^k - \Pi)\rho + P^nV(0)W(n)=∑k<n​(Pk−Π)ρ+PnV(0) and passes to the limit term by term. This fails for periodic chains: PkP^kPk does not converge, Pk−ΠP^k - \PiPk−Π does not tend to zero, and the series ∑k(Pk−Π)\sum_k (P^k - \Pi)∑k​(Pk−Π) does not converge. The paper's own example (PPP swaps two states) is of this kind, and there W(n)W(n)W(n) oscillates forever. What survives is Cesàro convergence, and establishing it needs control of all eigenvalues of PPP of modulus one (they are simple roots of unity for an irreducible stochastic matrix) or an equivalent combinatorial argument. Invertibility of I−P+ΠI - P + \PiI−P+Π requires that 111 be a simple eigenvalue of PPP with left eigenvector π\piπ, which is the Perron–Frobenius uniqueness statement for irreducible matrices; positivity of all entries of PPP, or a one-step Doeblin condition, is not available.

Formalization scope

States are a finite type with decidable equality and at least one element; vectors are S → ℝ, matrices Matrix S S ℝ, column vectors act by P *ᵥ v, the row vector π\piπ by π ᵥ* P. Ergodicity is P ∈ Matrix.rowStochastic ℝ S ∧ P.IsIrreducible. The stationary vector is a hypothesis-constrained parameter (nonnegative, summing to one, πP=π\pi P = \piπP=π), which is unique by the first milestone. Π\PiΠ, GGG and ZZZ are definitions computed from PPP, π\piπ and ρ\rhoρ, never free variables. Cesàro means are 1n∑m=1n\frac1n\sum_{m=1}^{n}n1​∑m=1n​, equal to 000 at n=0n = 0n=0. Mathlib's matrix inverse is 000 on singular matrices, so the goal asserts invertibility of I−P+ΠI - P + \PiI−P+Π explicitly.

Two printed slips are corrected, and the milestone texts are kept verbatim:

  1. The paper's (A 4)–(A 5) have +V(0)+V(0)+V(0) where iterating (I 16) gives PnV(0)P^nV(0)PnV(0), whose Cesàro limit is ΠV(0)\Pi V(0)ΠV(0). The goal uses ΠV(0)\Pi V(0)ΠV(0); this is also the only form consistent with the paper's equation (4). Accordingly (A 1) and (A 3), which hold exactly when PV(0)=V(0)PV(0) = V(0)PV(0)=V(0), carry the hypothesis that V(0)V(0)V(0) is constant. The paper's example has V(0)=0V(0) = 0V(0)=0, where both readings agree.
  2. The paper writes ordinary limits while noting that Pn−1P^{n-1}Pn−1 "converges or is Cesàro-summable". The goal and (A 2) are Cesàro limits; an ordinary limit is false for periodic chains.

The printed π={π1,…,πn}\pi = \{\pi_1,\ldots,\pi_n\}π={π1​,…,πn​} uses nnn for the number of states NNN.

A trivializing formalization is ruled out: ZZZ is not a junk inverse (invertibility is part of the goal), π\piπ is a genuine stationary probability vector of PPP rather than an arbitrary vector, GGG is computed from π\piπ and ρ\rhoρ, and the hypotheses are met by the paper's periodic two-state example.

Needed infrastructure: stationary vectors of irreducible stochastic matrices (existence, positivity, uniqueness), the Cesàro ergodic theorem 1n∑k<nPk→Π\frac1n\sum_{k<n}P^k\to\Pin1​∑k<n​Pk→Π, and the fundamental matrix. These are reusable for any finite-chain average-reward result. Contributions proving any milestone, or the aperiodic variant, are welcome.

Selected references

  • W. S. Jewell, Markov-Renewal Programming. II: Infinite Return Models, Example, Operations Research 11(6), 949–971, 1963. https://doi.org/10.1287/opre.11.6.949
  • W. S. Jewell, Markov-Renewal Programming. I: Formulation, Finite Return Models, Operations Research 11(6), 938–948, 1963. https://doi.org/10.1287/opre.11.6.938
  • J. G. Kemeny and J. L. Snell, Finite Markov Chains, Van Nostrand, 1960.
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
  • E. Seneta, Non-negative Matrices and Markov Chains, 2nd ed., Springer, 2006. https://doi.org/10.1007/0-387-32792-4
10 thms2 active usersReviewed
🏆Completed
Dynamic ProgrammingMarkov ChainOperations Research·Captain: mikedeng1

Markov-Renewal Programming. II: Infinite Return Models, Example I: Policy Iteration Finds a Stationary Policy of Maximal Gain RateResearch Paper

Motivation

Many controlled systems do not move in unit time steps. A machine runs for a random time before it breaks down, a repair takes a random time, a queue sits in a state until the next arrival or departure. A Markov-renewal program (in later terminology a semi-Markov decision process) models such a system: the sequence of visited states is a Markov chain controlled by the decision maker, but each transition takes a random time and earns a reward that may depend on that time. When the horizon is long and rewards are not discounted, the natural criterion is the gain rate, the long-run expected reward per unit of time, not per transition.

Howard's policy-iteration algorithm (Howard 1960) finds a policy of maximal gain per transition for finite Markov decision processes. W. S. Jewell's Markov-Renewal Programming. II (Oper. Res. 11 (1963) 949–971) extends it to the time-average criterion. The paper's Fig. 2 gives the algorithm; pp. 954–955 state its claim: the algorithm "will find an optimal stationary policy for the infinite-time, undiscounted model, in the sense that the policy will have a gain rate, ggg, which is at least as large as that obtained for any other policy". Appendix D compares Jewell's test quantity with an alternative one proposed by P. Schweitzer, and states the identity (D 3) that measures the gain-rate improvement produced by either.

Timeline. Howard (1960) introduced policy iteration for the per-transition gain of finite Markov decision processes, and sketched a semi-Markov version. Jewell (1963, Parts I and II) developed Markov-renewal programming, with the ratio test quantity of Fig. 2 for the undiscounted time-average case. Schweitzer (unpublished MIT report, cited in Appendix D) proposed the test quantity (D 1). The ratio criterion was later treated systematically for semi-Markov decision processes (e.g. Puterman 1994, Ch. 11).

Setting

There are finitely many states i=1,…,Ni = 1, \dots, Ni=1,…,N and, in each state, finitely many alternatives zzz. Under alternative zzz in state iii the next state is jjj with probability pijzp^z_{ij}pijz​ (pijz≥0p^z_{ij} \ge 0pijz​≥0, ∑jpijz=1\sum_j p^z_{ij} = 1∑j​pijz​=1). The transition i→ji \to ji→j takes a random time with finite mean νijz\nu^z_{ij}νijz​, and the transition out of iii earns an expected reward ρiz\rho^z_iρiz​. The mean sojourn time is νiz=∑jpijzνijz\nu^z_i = \sum_j p^z_{ij}\nu^z_{ij}νiz​=∑j​pijz​νijz​, and it is positive.

A stationary policy zzz picks one alternative z(i)z(i)z(i) in each state. Its chain has transition matrix Pijz=pijz(i)P^z_{ij} = p^{z(i)}_{ij}Pijz​=pijz(i)​, and ρi\rho_iρi​, νi\nu_iνi​ denote the data of z(i)z(i)z(i). The paper's standing assumption 2 is that this chain is ergodic (irreducible) for every policy. Let π\piπ be the stationary probability vector of PzP^zPz (πi≥0\pi_i \ge 0πi​≥0, ∑iπi=1\sum_i \pi_i = 1∑i​πi​=1, πPz=π\pi P^z = \piπPz=π). The gain rate of zzz is (B 7):

g=∑i=1Nπiρi∑k=1Nπkνk.g = \frac{\sum_{i=1}^{N} \pi_i \rho_i}{\sum_{k=1}^{N} \pi_k \nu_k}.g=∑k=1N​πk​νk​∑i=1N​πi​ρi​​.

The value-determination equations (13) of zzz are, in the N+1N+1N+1 unknowns g,v1,…,vNg, v_1, \dots, v_Ng,v1​,…,vN​,

vi+g νi=ρi+∑j=1Npijvj(i=1,…,N),vN=0.v_i + g\,\nu_i = \rho_i + \sum_{j=1}^{N} p_{ij} v_j \quad (i = 1, \dots, N), \qquad v_N = 0.vi​+gνi​=ρi​+j=1∑N​pij​vj​(i=1,…,N),vN​=0.

The test quantity of Fig. 2 for alternative zzz in state iii is 1νiz{ρiz+∑jpijzvj−vi}\frac{1}{\nu^z_i}\{\rho^z_i + \sum_j p^z_{ij} v_j - v_i\}νiz​1​{ρiz​+∑j​pijz​vj​−vi​}. One cycle of the algorithm solves (13) for the current policy and then chooses, in every state, an alternative that maximizes the test quantity, retaining the current alternative when it already attains the maximum. The algorithm stops when the policy does not change.

Formalization targets

Goal: Fig. 2 terminates at a policy of maximal gain rate

For every run z0,z1,…z_0, z_1, \dotsz0​,z1​,… of the algorithm, from any initial policy and with any choice among tied maximizers, there is KKK with zK+1=zKz_{K+1} = z_KzK+1​=zK​; and whenever zK+1=zKz_{K+1} = z_KzK+1​=zK​, gKg_KgK​ is the gain rate of zKz_KzK​ and, for every stationary policy z′z'z′,

gz′=∑iπi′ρiz′(i)∑kπk′νkz′(k)  ≤  gK.g^{z'} = \frac{\sum_i \pi'_i \rho^{z'(i)}_i}{\sum_k \pi'_k \nu^{z'(k)}_k} \;\le\; g_K .gz′=∑k​πk′​νkz′(k)​∑i​πi′​ρiz′(i)​​≤gK​.

Milestones

  1. (12)–(13), p. 955. The equations (13) have exactly one solution, and its ggg equals (B 7).
  2. (D 3), p. 970. For policies AAA, BBB, with Γj\Gamma_jΓj​ and γj\gamma_jγj​ the changes in the test quantities (D 1) and (D 2) computed with AAA's (g,v)(g, v)(g,v), and PjB=νjBπjB/∑kπkBνkBP^B_j = \nu^B_j\pi^B_j / \sum_k \pi^B_k\nu^B_kPjB​=νjB​πjB​/∑k​πkB​νkB​ the time-stationary probabilities (C 12),
gB−gA=∑jΓjνjBPjB=∑jγjPjB.g^B - g^A = \sum_{j} \frac{\Gamma_j}{\nu^B_j} P^B_j = \sum_j \gamma_j P^B_j .gB−gA=j∑​νjB​Γj​​PjB​=j∑​γj​PjB​.
  1. p. 955. If the test quantity indicates a change from z1z_1z1​ to z2z_2z2​, then gz2>gz1g^{z_2} > g^{z_1}gz2​>gz1​.
  2. (29)–(30), p. 961. For two states with p12,p21>0p_{12}, p_{21} > 0p12​,p21​>0: g=(p21ρ1+p12ρ2)/(ν1p21+ν2p12)g = (p_{21}\rho_1 + p_{12}\rho_2)/(\nu_1 p_{21} + \nu_2 p_{12})g=(p21​ρ1​+p12​ρ2​)/(ν1​p21​+ν2​p12​) and v1=(ν2ρ1−ν1ρ2)/(ν1p21+ν2p12)v_1 = (\nu_2\rho_1 - \nu_1\rho_2)/(\nu_1 p_{21} + \nu_2 p_{12})v1​=(ν2​ρ1​−ν1​ρ2​)/(ν1​p21​+ν2​p12​), v2=0v_2 = 0v2​=0.

Significance

The result makes the time-average criterion computable: a finite sequence of linear solves and pointwise maximizations produces a policy whose reward per unit time is optimal among all stationary policies. The identity (D 3) is the quantitative content: it expresses the gain-rate change as an average of local improvements, weighted by the fraction of time the new policy spends in each state. Both test quantities, Jewell's (D 2) and Schweitzer's (D 1), are covered by it. When every νiz=1\nu^z_i = 1νiz​=1 the model is a Markov decision process and the algorithm is Howard's.

The result is classical and has textbook proofs for semi-Markov decision processes. The paper states the proof as "elementary" and does not write it out. None of it is machine-checked on Prove2Me, and no semi-Markov or ratio-criterion result is on the platform. The mission produces a checked account of value determination for irreducible finite chains, the improvement identity, and termination of policy iteration under ties.

Difficulty

The gain rate is a ratio, so the per-transition argument for Markov decision processes does not transfer by rescaling rewards: the denominator ∑kπkνk\sum_k\pi_k\nu_k∑k​πk​νk​ changes with the policy. Comparing two policies requires weighting local improvements by the new policy's time-stationary probabilities, and a strict improvement needs those probabilities to be positive in every state, which uses irreducibility of the new policy, not only of the current one. Termination rests on the retain-on-tie rule: without it the algorithm can cycle among tied maximizers without improving. Finally, (13) has N+1N+1N+1 unknowns and N+1N+1N+1 equations only because of the normalization vN=0v_N = 0vN​=0; its unique solvability is a statement about the kernel and range of I−PI - PI−P for an irreducible stochastic PPP.

Formalization scope

States are Fin N with NeZero N; the paper's state NNN is index N−1N-1N−1 (lastState N). Alternatives form a type α; the goal assumes Fintype α and Nonempty α. The model records only pijzp^z_{ij}pijz​, νijz≥0\nu^z_{ij} \ge 0νijz​≥0 and ρiz\rho^z_iρiz​, with νiz>0\nu^z_i > 0νiz​>0 as a field. The transition-time distributions and reward functions of the paper enter the undiscounted infinite-time model only through these means, and every such choice of means is realized by some distributions, so nothing is lost. Ergodicity is Matrix.IsIrreducible of the policy matrix for every policy. Stationary vectors are nonnegative, sum to one and satisfy πP=π\pi P = \piπP=π; every statement quantifies over all of them.

The gain rate is defined by its closed form (B 7). Its identification with lim⁡t→∞vi(t)/t\lim_{t\to\infty} v_i(t)/tlimt→∞​vi​(t)/t ((B 6), argued in Appendix B from renewal theory) is not part of the mission. (13) is stated with the full sum ∑j=1N\sum_{j=1}^N∑j=1N​, equal to the paper's ∑j=1N−1\sum_{j=1}^{N-1}∑j=1N−1​ because vN=0v_N = 0vN​=0. The paper states (D 3) for a policy AAA "which led to an improved policy BBB"; the identity holds for any two policies and is stated that way. A run of the algorithm is a relation, not a chosen argmax: the goal quantifies over every run, so the termination claim cannot be met by a particular tie-breaking. A run begins at an arbitrary policy; the "initial set of returns" entry of Fig. 2 is a run started one cycle later.

A formalization in which the improvement step already asserts optimality, or in which termination is assumed, would be trivial; here the step only asks for pointwise maximization of the test quantity, and termination is part of the conclusion.

Needed infrastructure: stationary vectors of irreducible stochastic matrices (existence, uniqueness, strict positivity), the kernel of I−PI - PI−P, and finite-policy termination arguments. These are reusable for any finite Markov decision or semi-Markov model. Proofs of any milestone, and of the ν≡1\nu \equiv 1ν≡1 specialization, are welcome.

Selected references

  • W. S. Jewell, Markov-Renewal Programming. II: Infinite Return Models, Example, Operations Research 11(6), 949–971, 1963. https://doi.org/10.1287/opre.11.6.949
  • W. S. Jewell, Markov-Renewal Programming. I: Formulation, Finite Return Models, Operations Research 11(6), 938–948, 1963. https://doi.org/10.1287/opre.11.6.938
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960. https://mitpress.mit.edu/9780262080095/
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
7 thms2 active usersReviewed
Algorithmic Game TheoryDynamical SystemsProbability·Captain: mikedeng1

On the Global Convergence of Stochastic Fictitious Play III: Almost Sure Convergence to Linearly Stable Rest Points in Potential GamesResearch Paper

Motivation

Stochastic fictitious play is a basic model of learning in repeated games. Each period every player best responds to the empirical frequencies of the opponents' past play, after the player's payoffs have been hit by a fresh random shock. It was introduced by Fudenberg and Kreps (1993), is a standard object in the theory of learning in games (Fudenberg and Levine, The Theory of Learning in Games, 1998), and underlies the quantal-response and logit-learning models used in experimental economics and multi-agent reinforcement learning. The question is whether the players' beliefs settle down, and on what.

Potential games, in which all players receive the same payoff, cover pure coordination games and, after the usual payoff transformations, congestion games and weighted potential games. For them Hofbauer and Sandholm (Econometrica 70, 2002) proved that stochastic fictitious play converges almost surely, and that under a generic regularity condition the limit is a single linearly stable rest point of the perturbed best response dynamic.

Timeline. Fudenberg and Kreps (1993) and Kaniovski and Young (1995) established convergence in 2×2 games. Benaïm and Hirsch (1999) related the process to its mean ordinary differential equation and proved convergence in some ppp player, two strategy games. Hofbauer (2000) and Hofbauer and Hopkins (2000) constructed Lyapunov functions for the deterministically perturbed dynamics. Hofbauer and Sandholm (2002) combined these with a representation theorem for random utility models and with Pemantle's (1990) nonconvergence theorem to obtain the result formalized here.

Setting

A ppp player game has finite strategy sets Sα={0,…,nα−1}S^\alpha = \{0,\dots,n^\alpha-1\}Sα={0,…,nα−1} and utilities uα:S→Ru^\alpha : S \to \mathbb Ruα:S→R on pure profiles S=∏βSβS = \prod_\beta S^\betaS=∏β​Sβ. The game is a potential game if uα(s)=uβ(s)u^\alpha(s) = u^\beta(s)uα(s)=uβ(s) for all players and all profiles. Mixed profiles form Σ=∏αΔSα\Sigma = \prod_\alpha \Delta S^\alphaΣ=∏α​ΔSα, and player α\alphaα's payoff vector is Uiα(x−α)=∑s: sα=iuα(s)∏β≠αxsββU^\alpha_i(x^{-\alpha}) = \sum_{s:\,s^\alpha=i} u^\alpha(s)\prod_{\beta\ne\alpha}x^\beta_{s^\beta}Uiα​(x−α)=∑s:sα=i​uα(s)∏β=α​xsββ​.

Player α\alphaα's payoffs are perturbed by a random vector εα\varepsilon^\alphaεα with a strictly positive density fαf^\alphafα on Rnα\mathbb R^{n^\alpha}Rnα. The choice function is Ciα(π)=P(arg⁡max⁡jπj+εjα=i)C^\alpha_i(\pi) = P(\arg\max_j \pi_j + \varepsilon^\alpha_j = i)Ciα​(π)=P(argmaxj​πj​+εjα​=i), assumed continuously differentiable, and the perturbed best response is B~α(x−α)=Cα(Uα(x−α))\tilde B^\alpha(x^{-\alpha}) = C^\alpha(U^\alpha(x^{-\alpha}))B~α(x−α)=Cα(Uα(x−α)).

In standard stochastic fictitious play, shocks εtα\varepsilon^\alpha_tεtα​ are independent over time and across players. From an arbitrary initial pure profile, at time t+1t+1t+1 each player plays a maximizer of Ukα(Zt−α)+(εtα)kU^\alpha_k(Z_t^{-\alpha}) + (\varepsilon^\alpha_t)_kUkα​(Zt−α​)+(εtα​)k​, where the beliefs are the time averages

Zt=1t∑u=1tζu.Z_t = \frac1t\sum_{u=1}^t \zeta_u .Zt​=t1​u=1∑t​ζu​.

The mean dynamic of this process is the perturbed best response dynamic

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

A rest point x∗x^*x∗ of (P) is hyperbolic if every eigenvalue of DF(x∗)DF(x^*)DF(x∗) restricted to the tangent space ∏αR0nα\prod_\alpha \mathbb R^{n^\alpha}_0∏α​R0nα​ of Σ\SigmaΣ has nonzero real part, and linearly stable if every such eigenvalue has negative real part. RP(P)RP(P)RP(P) and LS(P)LS(P)LS(P) denote the rest points and the linearly stable rest points.

By Theorem 2.1 of the paper, Cα(π)=arg⁡max⁡y∈int⁡Δ(y⋅π−Vα(y))C^\alpha(\pi) = \arg\max_{y\in\operatorname{int}\Delta}(y\cdot\pi - V^\alpha(y))Cα(π)=argmaxy∈intΔ​(y⋅π−Vα(y)) for an admissible deterministic perturbation VαV^\alphaVα, so (P) coincides with the deterministically perturbed dynamic (PV), in which the argmax replaces CαC^\alphaCα.

Formalization targets

Goal: Theorem 6.1(iii)

For every potential game, every family of densities meeting the conditions above, every probability space, independent shock family and initial profile:

  1. if the shocks are smooth enough that the VαV^\alphaVα are CNC^NCN, N=∑α(nα−1)N = \sum_\alpha(n^\alpha-1)N=∑α​(nα−1), then
P(ω(Zt) is a connected subset of RP(P))=1;P\big(\omega(Z_t)\text{ is a connected subset of } RP(P)\big) = 1;P(ω(Zt​) is a connected subset of RP(P))=1;
  1. if every rest point of (P) is hyperbolic and the field of (P) is C2C^2C2, then
P(lim⁡t→∞Zt exists and lies in LS(P))=1.P\Big(\lim_{t\to\infty} Z_t \text{ exists and lies in } LS(P)\Big) = 1.P(t→∞lim​Zt​ exists and lies in LS(P))=1.

Milestones

In attack order: Theorem 2.1 (the representation), Proposition 4.1 (the function Π(x)=∑su1(s)∏αxsαα−∑αVα(xα)\Pi(x) = \sum_s u^1(s)\prod_\alpha x^\alpha_{s^\alpha} - \sum_\alpha V^\alpha(x^\alpha)Π(x)=∑s​u1(s)∏α​xsαα​−∑α​Vα(xα) is a strict Lyapunov function for (PV)), the identification of the critical points of Π\PiΠ with the rest points of (PV), Proposition 4.2 (CR(PV)=RP(PV)CR(PV) = RP(PV)CR(PV)=RP(PV) under CNC^NCN smoothness), Proposition 4.3 (under hyperbolicity RP(PV)RP(PV)RP(PV) is finite and equals CR(PV)CR(PV)CR(PV)), and Lemmas A.5 and A.4 (a uniform nondegeneracy condition for the noise of the process).

Significance

The result. Theorem 6.1(iii) says that decentralised, boundedly rational learning in common-interest games does not cycle or wander: beliefs converge to a rest point of the perturbed dynamic, and generically to one that is linearly stable, hence a local maximizer of the perturbed potential Π\PiΠ. Rest points approximate Nash equilibria as the noise vanishes (Proposition 3.1 of the paper), so the theorem is a selection result for equilibria reached by learning. It is also a template for the stochastic-approximation analysis of learning algorithms whose mean dynamic has a Lyapunov function.

Formalizing it. The theorem is proved in the paper, but none of its ingredients is machine-checked: the random utility representation, chain recurrence of flows, Lyapunov arguments for (PV), and the stochastic-approximation step (Benaïm–Hirsch, Benaïm, Pemantle) are all absent from Mathlib and from this platform. A complete development produces a reusable stochastic-approximation layer, not only this theorem.

Difficulty

The obvious argument, "(P) has a strict Lyapunov function, so the process converges to its rest points", fails twice. First, a strict Lyapunov function does not by itself make every chain recurrent point a rest point (the paper cites counterexamples of Akin and of Benaïm); the step needs either Sard's theorem for a CNC^NCN function or finiteness of the rest points, and the stochastic-approximation theory controls the process only through the chain recurrent set. Second, convergence to linearly stable points requires showing that the process avoids unstable rest points. This rests on Pemantle's theorem, whose nondegeneracy hypothesis must be verified uniformly over states and directions (Lemma A.4). Neither step follows from the ODE alone: the theorem is about the random process ZtZ_tZt​.

Formalization scope

Players are Fin p with p ≥ 2, strategies Fin (n α) with n α ≥ 1, and mixed profiles live in the ambient space (α : Fin p) → Fin (n α) → ℝ, on which every vector field is defined. Choice probabilities are probabilities of strict argmax events under volume.withDensity (f α). The process ZtZ_tZt​ is defined pathwise from the shocks, ties broken by the smallest index (a null event), and the theorem quantifies over every probability space and every independent shock family with the given laws. Derivatives of VαV^\alphaVα are those of VαV^\alphaVα composed with the projection onto the plane ∑iyi=1\sum_i y_i = 1∑i​yi​=1. Eigenvalues are the complex roots of the characteristic polynomial of the derivative restricted to the tangent space of Σ\SigmaΣ. Solutions of a dynamic are differentiable curves on [0,∞)[0,\infty)[0,∞) that stay in Σ\SigmaΣ, and chain recurrence uses ε\varepsilonε-chains with times ti≥1t_i \ge 1ti​≥1.

A formalization about the ODE (P) in place of the process ZtZ_tZt​, a fixed noise law such as logit, or convergence to RP(P)RP(P)RP(P) in place of LS(P)LS(P)LS(P) would prove a different and weaker statement. These are excluded.

Needed infrastructure: the random utility representation (mission I of this series), flows and chain recurrence of C1C^1C1 vector fields on compact sets, Sard's theorem for real-valued CNC^NCN functions, and the stochastic-approximation theorems of Benaïm–Hirsch (1999, Thm 3.3), Benaïm (1999, Props. 5.3 and 6.4) and Pemantle (1990, Thm 1). The last three are reusable well beyond this mission, and contributions of any of them are welcome.

Selected references

  • J. Hofbauer and W. H. Sandholm, On the Global Convergence of Stochastic Fictitious Play, Econometrica 70(6), 2265–2294, 2002. https://doi.org/10.1111/1468-0262.00376
  • M. Benaïm and M. W. Hirsch, Mixed Equilibria and Dynamical Systems Arising from Fictitious Play in Perturbed Games, Games and Economic Behavior 29, 36–72, 1999. https://doi.org/10.1006/game.1999.0717
  • M. Benaïm, Dynamics of Stochastic Approximation Algorithms, Séminaire de Probabilités XXXIII, Lecture Notes in Mathematics 1709, 1–68, 1999. https://doi.org/10.1007/BFb0096509
  • R. Pemantle, Nonconvergence to Unstable Points in Urn Models and Stochastic Approximations, Annals of Probability 18(2), 698–712, 1990. https://doi.org/10.1214/aop/1176990853
  • D. Fudenberg and D. M. Kreps, Learning Mixed Equilibria, Games and Economic Behavior 5, 320–367, 1993. https://doi.org/10.1006/game.1993.1021
  • J. Hofbauer and E. Hopkins, Learning in Perturbed Asymmetric Games, Games and Economic Behavior 52, 133–152, 2005. https://doi.org/10.1016/j.geb.2004.06.006
13 thms2 active usersReviewed
Algorithmic Game TheoryDynamical SystemsProbability·Captain: mikedeng1

On the Global Convergence of Stochastic Fictitious Play II: Almost Sure Convergence in Zero-Sum Games and Symmetric Games with an Interior ESSResearch Paper

Motivation

Fictitious play is the oldest model of learning in games: players repeatedly play a fixed normal form game, and each round every player best-responds to the empirical frequencies of the opponents' past play. Brown (1951) proposed it as an algorithm for computing the value of a zero-sum game, and Robinson (1951) proved that the empirical frequencies converge to the set of equilibria in that case. In stochastic fictitious play (Fudenberg and Kreps 1993) each player's payoffs are perturbed by fresh random shocks before every choice. The shocks make best responses single-valued and smooth in beliefs, which puts the process within reach of stochastic approximation theory: its long-run behaviour is governed by a deterministic perturbed best response dynamic.

Before Hofbauer and Sandholm (2002), convergence of stochastic fictitious play was known only for 2×2 games (Fudenberg and Kreps 1993; Kaniovski and Young 1995) and for certain games with two strategies per player (Benaïm and Hirsch 1999). The difficulty was the perturbed dynamic itself, whose vector field involves choice probabilities with no closed form for general noise distributions. Hofbauer and Sandholm showed that every such dynamic can be rewritten with a deterministic payoff perturbation (their Theorem 2.1), and used that to carry Lyapunov functions over to arbitrary noise distributions. This mission covers the first two classes of games in their main convergence theorem: symmetric games with an interior evolutionarily stable strategy, and two player zero-sum games.

Setting

A two player normal form game has strategy sets S1={1,…,n1}S^1 = \{1,\dots,n^1\}S1={1,…,n1} and S2={1,…,n2}S^2 = \{1,\dots,n^2\}S2={1,…,n2} and utilities uα:S1×S2→Ru^\alpha : S^1 \times S^2 \to \mathbb Ruα:S1×S2→R. Player α\alphaα's mixed strategies form the simplex ΔSα\Delta S^\alphaΔSα, and Σ=ΔS1×ΔS2\Sigma = \Delta S^1 \times \Delta S^2Σ=ΔS1×ΔS2. The payoff vector Uα(x−α)∈RnαU^\alpha(x^{-\alpha}) \in \mathbb R^{n^\alpha}Uα(x−α)∈Rnα lists the expected payoff of each pure strategy of α\alphaα against the opponent's mixed strategy. The game is zero-sum if u1(s)=−u2(s)u^1(s) = -u^2(s)u1(s)=−u2(s) for every profile sss.

Each player α\alphaα has a shock density fαf^\alphafα on Rnα\mathbb R^{n^\alpha}Rnα. The choice function Cα(π)i=P(argmax⁡jπj+εj=i)C^\alpha(\pi)_i = P(\operatorname{argmax}_j \pi_j + \varepsilon_j = i)Cα(π)i​=P(argmaxj​πj​+εj​=i), for ε\varepsilonε with density fαf^\alphafα, gives the perturbed best response B~α(x−α)=Cα(Uα(x−α))\tilde B^\alpha(x^{-\alpha}) = C^\alpha(U^\alpha(x^{-\alpha}))B~α(x−α)=Cα(Uα(x−α)). The densities are required to be strictly positive with continuously differentiable choice functions ("the conditions of Theorem 2.1").

Standard stochastic fictitious play. Pure strategies are identified with basis vectors eie_iei​. Choices ζ1\zeta_1ζ1​ are arbitrary. At every time t≥1t \ge 1t≥1 each player α\alphaα draws a shock εtα\varepsilon^\alpha_tεtα​ with density fαf^\alphafα and plays at time t+1t+1t+1 the pure strategy maximizing Ukα(Zt−α)+(εtα)kU^\alpha_k(Z^{-\alpha}_t) + (\varepsilon^\alpha_t)_kUkα​(Zt−α​)+(εtα​)k​, where the beliefs are the time averages

Zt=1t∑u=1tζu∈Σ.Z_t = \frac1t \sum_{u=1}^t \zeta_u \in \Sigma .Zt​=t1​u=1∑t​ζu​∈Σ.

The shocks are independent over time and across players. The expected motion of ZtZ_tZt​ is the perturbed best response dynamic

(P)x˙α=B~α(x−α)−xαon Σ.\text{(P)}\qquad \dot x^\alpha = \tilde B^\alpha(x^{-\alpha}) - x^\alpha \quad\text{on } \Sigma .(P)x˙α=B~α(x−α)−xαon Σ.

Symmetric games. A two player game is symmetric if S1=S2={1,…,m}S^1 = S^2 = \{1,\dots,m\}S1=S2={1,…,m} and u1(i,j)=u2(j,i)u^1(i,j) = u^2(j,i)u1(i,j)=u2(j,i); it is described by the matrix Aij=u1(i,j)A_{ij} = u^1(i,j)Aij​=u1(i,j), and U1(z)=AzU^1(z) = AzU1(z)=Az. In symmetric stochastic fictitious play two players in roles 1 and 2 play at every time, their shocks are independent and identically distributed with one density fff, and the state is the average of all past plays in both roles,

Z^t=12t∑u=1t(ζ^u1+ζ^u2)∈ΔS1.\hat Z_t = \frac1{2t}\sum_{u=1}^t \big(\hat\zeta^1_u + \hat\zeta^2_u\big) \in \Delta S^1 .Z^t​=2t1​u=1∑t​(ζ^​u1​+ζ^​u2​)∈ΔS1.

Its mean dynamic is (SP) x˙=C(Ax)−x\text{(SP)}\ \dot x = C(Ax) - x(SP) x˙=C(Ax)−x on ΔS1\Delta S^1ΔS1. A mixed strategy x∗x^*x∗ in the interior of ΔS1\Delta S^1ΔS1 is an interior evolutionarily stable strategy (ESS) if x∗⋅Ax>x⋅Axx^*\cdot Ax > x\cdot Axx∗⋅Ax>x⋅Ax for all mixed x≠x∗x \ne x^*x=x∗ near x∗x^*x∗.

Rest points and chain recurrence. For a dynamic x˙=F(x)\dot x = F(x)x˙=F(x) on a compact set XXX, the rest points are the zeros of FFF in XXX. A point xxx is chain recurrent if for every ε>0\varepsilon > 0ε>0 one can return from xxx to xxx by following solution segments of length at least 111, with jumps of size less than ε\varepsilonε between segments.

Formalization targets

Goal: Theorem 6.1 (i) and (ii)

(i) If AAA has an interior ESS, then (SP) has a unique rest point x^\hat xx^ and

P(lim⁡t→∞Z^t=x^)=1.P\Big(\lim_{t\to\infty} \hat Z_t = \hat x\Big) = 1 .P(t→∞lim​Z^t​=x^)=1.

(ii) If the two player game is zero-sum, then (P) has a unique rest point x∗x^*x∗ and

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

Both hold for all shock densities meeting the conditions of Theorem 2.1, all probability spaces carrying the shocks, and all initial choices.

Milestones

  1. Theorem 2.1: for such a density, the choice function CCC is the unique maximizer C(π)=argmax⁡y∈int⁡Δ(y⋅π−V(y))C(\pi) = \operatorname{argmax}_{y \in \operatorname{int}\Delta}(y\cdot\pi - V(y))C(π)=argmaxy∈intΔ​(y⋅π−V(y)) for one admissible deterministic perturbation VVV.
  2. With an interior ESS, Λ^(x)=x⋅Ax−V(x)−W(Ax)\hat\Lambda(x) = x\cdot Ax - V(x) - W(Ax)Λ^(x)=x⋅Ax−V(x)−W(Ax), where W(π)=max⁡y(y⋅π−V(y))W(\pi) = \max_y (y\cdot\pi - V(y))W(π)=maxy​(y⋅π−V(y)), is strictly concave and a strict Lyapunov function for the deterministically perturbed dynamic (SPV).
  3. Its maximizer is the unique chain recurrent point of (SPV).
  4. In zero-sum games, Λ(x1,x2)=−V1(x1)−W1(U1(x2))−V2(x2)−W2(U2(x1))\Lambda(x^1,x^2) = -V^1(x^1) - W^1(U^1(x^2)) - V^2(x^2) - W^2(U^2(x^1))Λ(x1,x2)=−V1(x1)−W1(U1(x2))−V2(x2)−W2(U2(x1)) is strictly concave and a strict Lyapunov function for (PV).
  5. Its maximizer is the unique chain recurrent point of (P).
  6. The maximizer of Λ^\hat\LambdaΛ^ is the unique chain recurrent point of (SP).

Significance

The theorem gives global, almost sure convergence of a learning process for arbitrary noise distributions, not only for the logit (Gumbel) noise under which the perturbed dynamic has a closed form. For zero-sum games it is the stochastic counterpart of Robinson's theorem. For symmetric games with an interior ESS it shows that a population learning by stochastic fictitious play settles at a single mixed state. Since the choice functions are continuous, the players' choice probabilities converge as well. The limit is the rest point of the perturbed dynamic, which approximates a Nash equilibrium (in case (i), the ESS) as the noise vanishes.

On the formal side, the paper's results are proved, but no part of them is machine-checked, and the platform has no model of learning in games, of chain recurrence, or of stochastic approximation. The mission produces a formal model of stochastic fictitious play as a random process, formal statements of the Hofbauer and Hofbauer–Hopkins Lyapunov functions, and the chain recurrence characterizations that connect them to the process.

Difficulty

The obvious route replaces the process ZtZ_tZt​ by the ODE (P) and argues that (P) converges. That step is where the argument is incomplete: convergence of every solution of (P) does not give convergence of the stochastic process, because a stochastic approximation can in principle circulate near a set of orbits the ODE never follows. The right invariant is the chain recurrent set, and the limit sets of the process lie in a connected component of it (Benaïm and Hirsch 1999; Benaïm 1999). The characterization therefore has to be of chain recurrence, which is strictly weaker than asymptotic stability of individual orbits.

The second obstacle is that (P) itself is defined through the noise distribution and admits no useful Lyapunov function in general. The Lyapunov functions exist for the deterministic form (PV)/(SPV), and moving between the two forms requires the representation of Theorem 2.1, whose perturbation VVV has no closed form either.

Formalization scope

Players and strategies are indexed from 000. Mixed profiles live in ∏αRnα\prod_\alpha \mathbb R^{n^\alpha}∏α​Rnα and every vector field is defined on that ambient space. The processes are defined pathwise from a family of shock vectors on an arbitrary probability space. Ties in the argmax are broken by the smallest index, an event of probability zero because the shocks have densities. The shock drawn at time ttt produces the choice at time t+1t+1t+1. Shock densities are arbitrary strictly positive densities with continuously differentiable choice functions; no noise law is fixed, and the two players' densities in (ii) may differ. Independence is joint over times and players (and roles in (i)). The symmetric process has its own state in one simplex and is not the standard process applied to a symmetric game.

Deterministic perturbations are functions defined on the whole space whose values off the open simplex are ignored; derivatives are taken of their composition with the projection onto the affine plane {∑iyi=1}\{\sum_i y_i = 1\}{∑i​yi​=1}. Perturbed best responses in (PV) and (SPV) are supplied as maps together with the hypothesis that they are the unique maximizers. A strict Lyapunov function must increase strictly along every non-constant solution on (0,∞)(0,\infty)(0,∞). The ESS definition includes x≠x∗x \ne x^*x=x∗, which the source omits.

The conclusions assert existence and uniqueness of the rest point; they are not hypotheses. A statement for the ODE (P) in place of the process ZtZ_tZt​, for one fixed noise law, or with the ESS as the limit point would be a different theorem.

A complete development needs Theorem 2.1 (convex duality and the Legendre transform on the simplex), existence and uniqueness of solutions of (P), basic chain recurrence theory, and the stochastic approximation results of Benaïm and Hirsch, which are not restated here and are welcome as independent contributions. The model layer (games, payoff vectors, choice functions, stochastic fictitious play) is shared with the other missions of this series.

Selected references

  • J. Hofbauer and W. H. Sandholm, On the Global Convergence of Stochastic Fictitious Play, Econometrica 70(6), 2265–2294, 2002. https://doi.org/10.1111/1468-0262.00376 (theorem numbers and pages here follow the authors' manuscript of February 21, 2002).
  • D. Fudenberg and D. M. Kreps, Learning Mixed Equilibria, Games and Economic Behavior 5, 320–367, 1993. https://doi.org/10.1006/game.1993.1021
  • Y. M. Kaniovski and H. P. Young, Learning Dynamics in Games with Stochastic Perturbations, Games and Economic Behavior 11, 330–363, 1995. https://doi.org/10.1006/game.1995.1054
  • M. Benaïm and M. W. Hirsch, Mixed Equilibria and Dynamical Systems Arising from Fictitious Play in Perturbed Games, Games and Economic Behavior 29, 36–72, 1999. https://doi.org/10.1006/game.1999.0717
  • M. Benaïm, Dynamics of Stochastic Approximation Algorithms, Séminaire de Probabilités XXXIII, Lecture Notes in Mathematics 1709, 1–68, 1999. https://doi.org/10.1007/BFb0096509
  • J. Robinson, An Iterative Method of Solving a Game, Annals of Mathematics 54, 296–301, 1951. https://doi.org/10.2307/1969530
  • J. Hofbauer and E. Hopkins, Learning in Perturbed Asymmetric Games, Games and Economic Behavior 52, 133–152, 2005. https://doi.org/10.1016/j.geb.2004.06.006
11 thms2 active usersReviewed
AnalysisOperations Research·Captain: mikedeng1

Diffusion approximations for open queueing networks with service interruptions 1: explicit Lipschitz bounds for the oblique reflection mapResearch Paper

Motivation

Heavy-traffic and fluid approximations for open queueing networks are obtained by writing the queue-content process as a deterministic function of a simpler netput process (arrivals minus potential service, corrected for routing) and then transferring a functional limit theorem for the netput through that function. The function is the multidimensional reflection map of Harrison and Reiman (Harrison and Reiman 1981), extended from continuous paths to paths with jumps by Reiman (Reiman 1984). The transfer works only if the map is continuous, and quantitative bounds on the approximation error require it to be Lipschitz with a known modulus.

Chen and Whitt (Chen and Whitt 1993) use this map to derive diffusion approximations for networks whose servers are subject to interruptions. Before doing so, Section 2 of the paper supplies "explicit Lipschitz bounds" for the map in the uniform topology: a bound in the Harrison–Reiman scaling (Proposition 2.1) and a new bound that depends on the routing matrix only through its powers (Proposition 2.3).

Timeline. Harrison and Reiman (1981) proved existence, uniqueness and continuity of the map on continuous paths for a routing matrix of spectral radius less than one. Reiman (1984) extended it to paths with jumps. Chen and Mandelbaum (Leontief systems, RBV's and RBM's, 1991, cited in the paper as [4]) noted that a minor extension of the argument makes the map Lipschitz on D([0,T],Rn)D([0,T],\mathbb R^n)D([0,T],Rn) with the uniform topology. Chen and Whitt (1993, Section 2) made the Lipschitz constants explicit.

Setting

Fix a dimension nnn and an n×nn\times nn×n matrix QQQ whose transpose QtQ^{\mathsf t}Qt is substochastic: all entries of QQQ are nonnegative and every column sum of QQQ is at most 111. Assume also Qk→0Q^k \to 0Qk→0 as k→∞k\to\inftyk→∞. With Markovian routing, QtQ^{\mathsf t}Qt is the routing matrix of an open network of nnn queues.

Vectors c∈Rnc\in\mathbb R^nc∈Rn carry the norm ∥c∥=∑j∣cj∣\|c\| = \sum_j |c_j|∥c∥=∑j​∣cj​∣, and matrices carry the maximum absolute column sum ∥P∥=max⁡j∑i∣Pij∣\|P\| = \max_j \sum_i |P_{ij}|∥P∥=maxj​∑i​∣Pij​∣ (Eq. (2.5)). D([0,T],Rn)D([0,T],\mathbb R^n)D([0,T],Rn) is the space of paths that are right-continuous with left limits on [0,T][0,T][0,T]. For a path xxx, ∣x∣∈Rn|x|\in\mathbb R^n∣x∣∈Rn is the vector of coordinatewise sup norms, ∣x∣j=sup⁡0≤t≤T∣xj(t)∣|x|_j = \sup_{0\le t\le T}|x_j(t)|∣x∣j​=sup0≤t≤T​∣xj​(t)∣, and ∥x∥=∥∣x∣∥=∑jsup⁡t∣xj(t)∣\|x\| = \big\||x|\big\| = \sum_j \sup_{t}|x_j(t)|∥x∥=​∣x∣​=∑j​supt​∣xj​(t)∣.

The reflection of x∈Dx \in Dx∈D is the pair (y,z)=(ψ(x),ϕ(x))(y,z) = (\psi(x),\phi(x))(y,z)=(ψ(x),ϕ(x)) with y∈Dy \in Dy∈D and

z=x+(I−Q) y≥0,yj nondecreasing, yj(0)=0,∫0Tzj(t) dyj(t)=0(1≤j≤n).z = x + (I-Q)\,y \ge 0, \qquad y_j \text{ nondecreasing},\ y_j(0) = 0, \qquad \int_0^T z_j(t)\,dy_j(t) = 0 \quad (1\le j\le n).z=x+(I−Q)y≥0,yj​ nondecreasing, yj​(0)=0,∫0T​zj​(t)dyj​(t)=0(1≤j≤n).

The last condition says that yjy_jyj​ increases only when zj=0z_j = 0zj​=0. In queueing terms, zzz is the vector of queue contents and yyy the cumulative idleness. The operator πx(y)=(Qy−x)↑∨0\pi_x(y) = (Qy - x)^{\uparrow}\vee 0πx​(y)=(Qy−x)↑∨0, where f↑(t)=sup⁡0≤s≤tf(s)f^{\uparrow}(t) = \sup_{0\le s\le t} f(s)f↑(t)=sup0≤s≤t​f(s) coordinatewise, has the reflection as its fixed point (Eq. (2.4)). Write γ=∥Qn∥\gamma = \|Q^n\|γ=∥Qn∥.

Formalization targets

Goal: Proposition 2.3

For all x1,x2∈Dx_1,x_2\in Dx1​,x2​∈D with reflections (ψ(xi),ϕ(xi))(\psi(x_i),\phi(x_i))(ψ(xi​),ϕ(xi​)),

∣ψ(x1)−ψ(x2)∣≤(I−Q)−1∣x1−x2∣componentwise,(2.9)|\psi(x_1)-\psi(x_2)| \le (I-Q)^{-1}|x_1-x_2| \quad\text{componentwise},\tag{2.9}∣ψ(x1​)−ψ(x2​)∣≤(I−Q)−1∣x1​−x2​∣componentwise,(2.9) ∥ψ(x1)−ψ(x2)∥≤∥(I−Q)−1∥ ∥x1−x2∥≤∑k=0∞∥Qk∥ ∥x1−x2∥≤n1−γ∥x1−x2∥,(2.10)\|\psi(x_1)-\psi(x_2)\| \le \|(I-Q)^{-1}\|\,\|x_1-x_2\| \le \sum_{k=0}^\infty \|Q^k\|\,\|x_1-x_2\| \le \frac{n}{1-\gamma}\|x_1-x_2\|,\tag{2.10}∥ψ(x1​)−ψ(x2​)∥≤∥(I−Q)−1∥∥x1​−x2​∥≤k=0∑∞​∥Qk∥∥x1​−x2​∥≤1−γn​∥x1​−x2​∥,(2.10) ∥ϕ(x1)−ϕ(x2)∥≤(1+∥I−Q∥ ∥(I−Q)−1∥)∥x1−x2∥≤(1+2n1−γ)∥x1−x2∥.(2.11)\|\phi(x_1)-\phi(x_2)\| \le \big(1+\|I-Q\|\,\|(I-Q)^{-1}\|\big)\|x_1-x_2\| \le \Big(1+\frac{2n}{1-\gamma}\Big)\|x_1-x_2\|.\tag{2.11}∥ϕ(x1​)−ϕ(x2​)∥≤(1+∥I−Q∥∥(I−Q)−1∥)∥x1​−x2​∥≤(1+1−γ2n​)∥x1​−x2​∥.(2.11)

The constants are those of the paper. The goal fixes nothing beyond the standing assumptions on QQQ.

Milestones

  1. Existence and uniqueness of the reflection for x∈Dx\in Dx∈D with x(0)≥0x(0)\ge0x(0)≥0 (Section 2, p. 337).
  2. Eq. (2.4): given (2.1)–(2.2), the complementarity condition (2.3) is equivalent to y=πx(y)y = \pi_x(y)y=πx​(y).
  3. γ=∥Qn∥<1\gamma = \|Q^n\| < 1γ=∥Qn∥<1 (p. 338).
  4. Proposition 2.2: ∥πxk(y1)−πxk(y2)∥≤∥Qk∣y1−y2∣∥≤∥y1−y2∥\|\pi_x^k(y_1)-\pi_x^k(y_2)\| \le \|Q^k|y_1-y_2|\| \le \|y_1-y_2\|∥πxk​(y1​)−πxk​(y2​)∥≤∥Qk∣y1​−y2​∣∥≤∥y1​−y2​∥ for k≥1k\ge1k≥1, the factor γ\gammaγ for k≥nk\ge nk≥n, and πxk(y1)→ψ(x)\pi_x^k(y_1)\to\psi(x)πxk​(y1​)→ψ(x).
  5. Proposition 2.1: for Q∗=Λ−1QΛQ^* = \Lambda^{-1}Q\LambdaQ∗=Λ−1QΛ with Λ\LambdaΛ diagonal and ∥Q∗∥=α<1\|Q^*\| = \alpha<1∥Q∗∥=α<1, the moduli ∥Λ∥∥Λ−1∥/(1−α)\|\Lambda\|\|\Lambda^{-1}\|/(1-\alpha)∥Λ∥∥Λ−1∥/(1−α) for ψ\psiψ and 1+∥I−Q∥∥Λ∥∥Λ−1∥/(1−α)1 + \|I-Q\|\|\Lambda\|\|\Lambda^{-1}\|/(1-\alpha)1+∥I−Q∥∥Λ∥∥Λ−1∥/(1−α) for ϕ\phiϕ.
  6. Remark (2.1): for n=1n=1n=1, Q=0Q=0Q=0 the bounds are attained.
  7. Remark (2.2): for two queues in series, (2.10) gives modulus 222, while (2.7) gives at best 444 (every modulus ≥4\ge 4≥4 is attained, 444 at z=1/2z = 1/2z=1/2).

Significance

Proposition 2.3 makes the queue-content and idleness processes of an open network Lipschitz functions of the netput, in the uniform norm, with a modulus computed from the routing matrix alone. Combined with the fact that Lipschitz continuity in the uniform topology passes to the Skorohod J1J_1J1​ and M1M_1M1​ topologies (Section 2 of the paper), it is what turns a functional central limit theorem for arrival and service processes into a heavy-traffic limit for the network. The paper uses it in exactly this way in Sections 3–4. Explicit moduli also yield rates: an error of order ε\varepsilonε in the netput produces an error of at most nε/(1−γ)n\varepsilon/(1-\gamma)nε/(1−γ) in the idleness process.

On the formal side, the results are proved in the paper, but neither the reflection map nor D([0,T],Rn)D([0,T],\mathbb R^n)D([0,T],Rn) has a machine-checked development in Mathlib or on this platform. The mission would provide a reusable definition of the oblique reflection map with a Lebesgue–Stieltjes complementarity condition, its fixed-point characterization, and certified Lipschitz constants, as a foundation for any later formal heavy-traffic limit.

Difficulty

The componentwise bound (2.9) is short once the fixed-point form of the map is available. The difficulty lies in the infrastructure beneath it. The fixed-point characterization (2.4) is a one-dimensional Skorokhod-problem argument carried out coordinatewise for paths with jumps, where the complementarity condition must be handled through Lebesgue–Stieltjes measures. A jump of yjy_jyj​ is allowed at a time where zj=0z_j = 0zj​=0 even if zjz_jzj​ was positive just before. Existence needs the iterates πxk(0)\pi_x^k(0)πxk​(0) to converge in DDD and the limit to satisfy (2.1)–(2.3). The explicit constants involve (I−Q)−1(I-Q)^{-1}(I−Q)−1, ∑k∥Qk∥\sum_k\|Q^k\|∑k​∥Qk∥ and γ=∥Qn∥<1\gamma = \|Q^n\|<1γ=∥Qn∥<1. The last inequality is a combinatorial fact about transient substochastic matrices. It does not follow from ∥Q∥≤1\|Q\|\le1∥Q∥≤1.

Formalization scope

Vectors are Fin n → ℝ, matrices Matrix (Fin n) (Fin n) ℝ, and ∥P∥\|P\|∥P∥ is the maximum absolute column sum. Paths are functions ℝ → Fin n → ℝ, of which only the restriction to [0,T][0,T][0,T] matters. Membership in D([0,T],Rn)D([0,T],\mathbb R^n)D([0,T],Rn) is the predicate IsCadlagOn T x: right-continuous on [0,T)[0,T)[0,T), left limits on (0,T](0,T](0,T], and (redundantly) bounded on [0,T][0,T][0,T]. The reflection is the predicate IsReflection Q T x y z. Every theorem is stated for all pairs satisfying it, so no choice function and no junk value are involved. Condition (2.3) is encoded as "the Lebesgue–Stieltjes measure dyjdy_jdyj​ of {t∈[0,T]:zj(t)>0}\{t\in[0,T]: z_j(t)>0\}{t∈[0,T]:zj​(t)>0} is zero". For z≥0z\ge0z≥0 this is equivalent to ∫0Tzj dyj=0\int_0^T z_j\,dy_j=0∫0T​zj​dyj​=0. πxk\pi_x^kπxk​ is Nat.iterate, (I−Q)−1(I-Q)^{-1}(I−Q)−1 is Mathlib's matrix inverse (invertible under the standing assumptions), and ∑k∥Qk∥\sum_k\|Q^k\|∑k​∥Qk∥ is a tsum stated together with its summability.

Corrections and conventions, each disclosed in the item concerned:

  • The norm (2.6). The page prints ∥x∥=sup⁡t∑j∣xj(t)∣\|x\| = \sup_t\sum_j|x_j(t)|∥x∥=supt​∑j​∣xj​(t)∣. Under that norm Propositions 2.1 and 2.3 are false for n≥2n\ge2n≥2. With Q=0Q=0Q=0, n=2n=2n=2, T=1T=1T=1, x1≡0x_1\equiv0x1​≡0 and x2=(−1[0.1,0.2),−1[0.3,0.4))x_2 = (-\mathbf 1_{[0.1,0.2)}, -\mathbf 1_{[0.3,0.4)})x2​=(−1[0.1,0.2)​,−1[0.3,0.4)​), one gets ∥x1−x2∥=1\|x_1-x_2\|=1∥x1​−x2​∥=1 but ψ(x2)=(1[0.1,1],1[0.3,1])\psi(x_2) = (\mathbf 1_{[0.1,1]},\mathbf 1_{[0.3,1]})ψ(x2​)=(1[0.1,1]​,1[0.3,1]​) has norm 222. The paper's proofs are valid for ∥x∥=∑jsup⁡t∣xj(t)∣\|x\| = \sum_j\sup_t|x_j(t)|∥x∥=∑j​supt​∣xj​(t)∣, which is used throughout. In dimension one the two norms coincide.
  • (2.8) prints ϕ(x1)−ϕ(x1)\phi(x_1)-\phi(x_1)ϕ(x1​)−ϕ(x1​). The formalization states ϕ(x1)−ϕ(x2)\phi(x_1)-\phi(x_2)ϕ(x1​)−ϕ(x2​).
  • (2.2)–(2.3) print the index range 1≤j≤J1\le j\le J1≤j≤J. The dimension is nnn.
  • x(0)≥0x(0)\ge0x(0)≥0 is added to the existence item. Conditions (2.1)–(2.2) force z(0)=x(0)z(0)=x(0)z(0)=x(0), so no reflection exists otherwise. The Lipschitz bounds are stated for all solution pairs and are vacuous exactly when some xi(0)x_i(0)xi​(0) has a negative coordinate.
  • Proposition 2.1 assumes only that Λ\LambdaΛ is diagonal with nonzero entries. All quantities depend on ∣Λ∣|\Lambda|∣Λ∣, so this covers the positive scaling of Harrison and Reiman.
  • Eq. (2.4) keeps the standing assumptions on QQQ as on the page, although the equivalence does not use them.

A trivializing formalization would read (2.3) through a Bochner integral, which is 000 for non-integrable integrands, or take suprema over unbounded families. The measure-zero encoding and the boundedness built into IsCadlagOn rule both out. A sorry-free check shows that Remark (2.1)'s jump example satisfies IsReflection.

Welcome contributions: a general API for càdlàg paths on [0,T][0,T][0,T] (boundedness, measurability, running suprema), the one-dimensional Skorokhod lemma for càdlàg paths, and the Neumann series for transient substochastic matrices. All of these are reusable beyond this mission.

Selected references

  • H. Chen and W. Whitt, Diffusion approximations for open queueing networks with service interruptions, Queueing Systems 13 (1993) 335–359. https://doi.org/10.1007/BF01149260
  • J. M. Harrison and M. I. Reiman, Reflected Brownian motion on an orthant, Annals of Probability 9 (1981) 302–308. https://doi.org/10.1214/aop/1176994428
  • M. I. Reiman, Open queueing networks in heavy traffic, Mathematics of Operations Research 9 (1984) 441–458. https://doi.org/10.1287/moor.9.3.441
  • H. Chen and A. Mandelbaum, Discrete flow networks: diffusion approximations and bottlenecks, Annals of Probability 19 (1991) 1463–1519. https://doi.org/10.1214/aop/1176990220
10 thms2 active usersReviewed
Operations ResearchProbability·Captain: Shuze Chen

Processing Networks XIV: Random Proportional Scheduling for Packet NetworksTextbook

Motivation

Every packet-switched network — an internet router, a data-center fabric, a wireless base station — must decide, timeslot by timeslot, which of many competing transfers to schedule under shared physical constraints (link capacities, interference between simultaneous transmissions). Walton (2015) introduced the random proportional scheduler (RPS): rather than solving a combinatorial scheduling problem exactly, RPS picks a randomized link configuration whose mean matches the proportionally-fair allocation of Kelly (1997) applied at the link level, then disaggregates the resulting transfer budget across competing packet classes by independent random selection. J. G. Dai and J. Michael Harrison's Processing Networks: Fluid Models and Stability (Cambridge University Press, forthcoming; cited here from the authors' pre-publication draft, 2020-4-2, http://spnbook.org) devotes Sections 12.6-12.7 to this policy, and closes the book with Theorem 12.28: under an explicit load condition, RPS is stable. This mission formalizes that closing result and the machinery beneath it. It is the fourteenth and final mission of a series covering the book chapter by chapter; the series as a whole runs from the equivalence of stochastic-processing-network stability and fluid-model stability (mission I, Theorem 3.5/6.2) through discrete-time, slotted packet networks (missions XII-XIV), and this mission's own goal theorem is the last numbered result the book proves.

Setting

A packet network with fixed routing (Section 12.6) has I packet classes; each class i routes, after one hop of processing, deterministically to a single successor class or exits the network — encoded here as a function route:I→I∪{exit}\mathrm{route} : I \to I \cup \{\text{exit}\}route:I→I∪{exit}. The K links are indexed by K\mathcal KK, and a matrix AAA assigns each class to the single link its next transfer uses; I(k)\mathcal I(k)I(k) denotes the classes belonging to link kkk. At the start of a timeslot, z∈Z+Iz\in\mathbb Z^I_+z∈Z+I​ is the vector of class-level packet counts and y:=Azy := Azy:=Az the corresponding link-level counts. The RPS algorithm (four steps, page 245 of the printed book): (a) solve the concave program ψ(y):=argmax⁡{∑kyklog⁡(c^k):c^∈⟨C⟩}\psi(y) := \operatorname{argmax}\{\sum_k y_k\log(\hat c_k) : \hat c \in \langle C\rangle\}ψ(y):=argmax{∑k​yk​log(c^k​):c^∈⟨C⟩} (Eq. 12.57), where CCC is the finite set of feasible link configurations and ⟨C⟩\langle C\rangle⟨C⟩ its convex hull; (b) randomize a link configuration ccc with mean ψ(y)\psi(y)ψ(y); (c) transfer min⁡(ck,yk)\min(c_k,y_k)min(ck​,yk​) packets over link kkk; (d) select which packets to transfer uniformly at random from each link's queue. This makes Z={Z(τ):τ∈Z+}Z=\{Z(\tau):\tau\in\mathbb Z_+\}Z={Z(τ):τ∈Z+​} a discrete-time Markov chain. The function ψ\psiψ is exactly the proportionally fair (PF) allocation function of Section 10.1, applied here with the link-level demand vector yyy in place of the PF model's job-class demand vector.

Formalization targets

Goal: Theorem 12.28 — the load condition implies RPS stability

ρ<c^ for some c^∈⟨C⟩,ρ:=Aα,α:=R−1λ⟹(a) the RPS fluid model is stable, and hence\rho < \hat c \text{ for some } \hat c \in \langle C\rangle, \quad \rho := A\alpha, \quad \alpha := R^{-1}\lambda \quad\Longrightarrow\quad \text{(a) the RPS fluid model is stable, and hence}ρ<c^ for some c^∈⟨C⟩,ρ:=Aα,α:=R−1λ⟹(a) the RPS fluid model is stable, and hence (b) the discrete-time Markov chain Z under RPS control is positive recurrent.\text{(b) the discrete-time Markov chain } Z \text{ under RPS control is positive recurrent.}(b) the discrete-time Markov chain Z under RPS control is positive recurrent.

Here λ\lambdaλ is the vector of external arrival rates, α\alphaα the resulting vector of total (external plus internally routed) arrival rates into each class, and RRR the input-output matrix determined by route\mathrm{route}route. The load condition (12.50) is the natural feasibility requirement — average link traffic strictly below some feasible mean capacity — and the theorem asserts it is also sufficient for stability.

Supporting milestones

Lemma 12.23 is an almost-sure convergence result for a residual process ξiz(τ):=∑m=1τ(si(m)−s^i(m))\xi^z_i(\tau) := \sum_{m=1}^\tau (s_i(m) - \hat s_i(m))ξiz​(τ):=∑m=1τ​(si​(m)−s^i​(m)) tracking the gap between RPS's actual per-class transfers and their conditional means — a bounded martingale-difference sum, hence governed by the strong law of large numbers. Theorem 12.24 is the RPS fluid equation: along any fluid limit on the event where both Lemma 12.12's arrival-process SLLN and Lemma 12.23's residual-process SLLN hold, every occupied class's departure rate is pinned to (Z^i(t)/Y^k(t)) ψk(Y^(t))(\hat Z_i(t)/\hat Y_k(t))\,\psi_k(\hat Y(t))(Z^i​(t)/Y^k​(t))ψk​(Y^(t)). Proposition 12.26 identifies the resulting RPS fluid model as literally a special case of the PF fluid model of Section 10.4 (one demand group per link, ⟨C⟩\langle C\rangle⟨C⟩ playing the role of the PF model's reduced allocation set), and Theorem 12.27 is this chapter's own version of the fluid-to-stochastic transfer theorem (Theorem 6.2's slotted-time analogue, restricted to RPS): fluid stability of the RPS model implies positive recurrence of ZZZ.

Significance

The result itself. Theorem 12.28 closes the loop the book opens with proportional fairness in Chapter 10: PF was introduced there as a static resource-allocation rule with no queueing content; Theorem 12.28 shows that layering PF onto a genuinely dynamic, multi-hop, discrete-time packet network — RPS — inherits stability under exactly the load condition one would hope for, with no loss from the randomized disaggregation step (d) of the algorithm. Combined with Theorem 12.8 (packet-network stability implies subcriticality, mission XII) and Eq. (12.50)'s equivalence to that subcritical region under fixed routing, this makes RPS maximally stable: it is stable whenever any Markovian policy could be.

Formalizing it. A live prior-art check (GET /theorems?q=proportional+scheduling) finds no relevant hits on the platform. This mission's genuine content is Proposition 12.26's reduction: rather than re-deriving an entropy-Lyapunov stability argument specific to RPS, it identifies the RPS fluid model precisely with mission IX's PF fluid model under an explicit correspondence, so that Theorem 12.28(a) is a direct instance of mission IX's own Theorem 10.5 and Theorem 12.28(b) a direct instance of this mission's own Theorem 12.27. This is the payoff the whole proportional-fairness apparatus (missions IX-X) was built for.

Difficulty

The central subtlety is that Theorem 12.24's departure-rate equation is stated in terms of a class-indexed process D^i(t)\hat D_i(t)D^i​(t), while the chapter's own general fluid-equation machinery (Theorem 12.13, mission XII) is built around an activity-indexed process — a distinction that matters when a packet network has more service types than classes. Under Sections 12.6-12.7's own fixed-routing model, however, the book's remark that "s(τ)s(\tau)s(τ) ... is an I-vector of actual packet transfers by class" (page 245) collapses this distinction: each class has a single associated activity, so the activity-indexed and class-indexed views coincide, and the RPS fluid model can be built directly on the same class-indexed apparatus the PF fluid model (Section 10.4) already uses. Missing this identification is the natural way to get stuck restating Proposition 12.26 as a mere analogy rather than the literal equivalence the book states. A second difficulty is Lemma 12.23 itself: its proof cites Feller's strong law for bounded martingale-difference sequences as an external fact rather than deriving it, so a faithful statement must commit to an explicit representation of "martingale difference sequence" (a filtration and Mathlib's Martingale predicate) even though no full measure-theoretic construction of the underlying probability space is attempted.

Formalization scope

Classes and links are Fin-indexed; route : Fin I → Option (Fin I) records each class's deterministic routing successor (none meaning exit), and the resulting input-output matrix RRR and routing matrix PPP are derived from it rather than taken as independent data (this chunk verifies R=I−P⊤R = I - P^\topR=I−P⊤, the identity Proposition 12.26's reduction to the PF model relies on). The RPS optimization apparatus (psi, groupAggregate, the PF fluid-model predicate) is restated verbatim from mission IX, and the general packet-network fluid equations restated from mission XII, since concurrently-drafted chunks in this series never import one another's Lean files even within a shared sub-namespace. The formalization does not admit a trivializing reading: the load condition in Theorem 12.28 is a genuine strict inequality against the convex hull of feasible configurations (not weakened to ≤\le≤ or to a single configuration), RPSFluidStable quantifies over every solution of the RPS fluid model (not a hand-picked one), and Proposition 12.26 is stated as a two-sided equivalence, not a one-directional inclusion that would understate "special case." Contributions completing the five by sorry proofs are welcome, particularly Lemma 12.23's martingale strong law (Feller 1971, Theorem 3, Section VII.8) and Theorem 12.24's fluid-limit argument (mirroring mission XII's own Theorem 12.13 proof).

Selected references

  • J. G. Dai and J. Michael Harrison, Processing Networks: Fluid Models and Stability, Cambridge University Press (forthcoming), pre-publication draft 2020-4-2. http://spnbook.org
  • N. S. Walton, "Concave switching in single and multihop networks," Queueing Systems 81 (2015), 265-299.
  • F. P. Kelly, "Charging and rate control for elastic traffic," European Transactions on Telecommunications 8 (1997), 33-37.
  • W. Feller, An Introduction to Probability Theory and Its Applications, Volume II, 2nd edition, Wiley, 1971.
8 thms2 active usersReviewed
Dynamical SystemsProbabilityReinforcement Learning·Captain: mikedeng1

The O.D.E. Method for Convergence of Stochastic Approximation and Reinforcement Learning I: Stability and Almost-Sure Convergence under Tapering StepsizesResearch Paper

Motivation

Stochastic approximation is the family of recursive algorithms that locate a zero of a function observed only through noisy evaluations. It goes back to Robbins and Monro (1951) and today underlies stochastic gradient descent, temporal-difference learning, Q-learning and actor–critic methods in reinforcement learning, and models of learning by boundedly rational agents.

The standard analysis is the O.D.E. method (Ljung 1977; see Kushner and Yin 1997): the interpolated iterates are compared with the solutions of an ordinary differential equation, and convergence of the algorithm follows from the stability of that ODE. The method has one well-known gap. It assumes, rather than proves, that the iterates remain bounded with probability one. In applications this stability hypothesis is often the hardest part: for asynchronous Q-learning and adaptive critic algorithms, almost sure boundedness had been proved only for discounted cost or after adding a projection step (Borkar and Meyn, p. 460).

Borkar and Meyn (SIAM J. Control Optim. 38 (2000)) close this gap with a scaling argument borrowed from the fluid-model approach to the stability of queueing networks (Dai 1995; Dai and Meyn 1995). They show that boundedness itself follows from the asymptotic stability of the origin for a second, "fluid-limit" ODE obtained by rescaling the drift. This mission formalizes that stability theorem for tapering step sizes, and the convergence theorem that follows from it.

Setting

Fix d≥0d\ge 0d≥0 and work in Rd\mathbb R^dRd with the Euclidean norm. Let h:Rd→Rdh:\mathbb R^d\to\mathbb R^dh:Rd→Rd and let {a(n)}n≥0\{a(n)\}_{n\ge0}{a(n)}n≥0​ be a deterministic sequence of positive step sizes. On a probability space (Ω,F,P)(\Omega,\mathcal F,\mathsf P)(Ω,F,P), random vectors X(n)X(n)X(n) and M(n)M(n)M(n) satisfy the stochastic approximation recursion

X(n+1)=X(n)+a(n)[h(X(n))+M(n+1)],n≥0.(1.1)X(n+1) = X(n) + a(n)\big[h(X(n)) + M(n+1)\big], \qquad n\ge0. \tag{1.1}X(n+1)=X(n)+a(n)[h(X(n))+M(n+1)],n≥0.(1.1)

Its mean ODE is x˙=h(x)\dot x = h(x)x˙=h(x) (1.2). For r>0r>0r>0 the scaled field is hr(x)=h(rx)/rh_r(x)=h(rx)/rhr​(x)=h(rx)/r, with the scaled ODE x˙=hr(x)\dot x = h_r(x)x˙=hr​(x) (1.4).

  • (A1) hhh is Lipschitz; hr(x)→h∞(x)h_r(x)\to h_\infty(x)hr​(x)→h∞​(x) as r→∞r\to\inftyr→∞ for every xxx; and the origin is an asymptotically stable equilibrium of the fluid-limit ODE x˙=h∞(x)\dot x = h_\infty(x)x˙=h∞​(x) (1.5).
  • (A2) With Fn\mathcal F_nFn​ the history of the iterates up to time nnn, {M(n)}\{M(n)\}{M(n)} is a martingale difference sequence, E[M(n+1)∣Fn]=0\mathsf E[M(n+1)\mid\mathcal F_n]=0E[M(n+1)∣Fn​]=0, and for some constant C0<∞C_0<\inftyC0​<∞, E[∥M(n+1)∥2∣Fn]≤C0(1+∥X(n)∥2)\mathsf E[\|M(n+1)\|^2\mid\mathcal F_n]\le C_0(1+\|X(n)\|^2)E[∥M(n+1)∥2∣Fn​]≤C0​(1+∥X(n)∥2).
  • (TS) Tapering step sizes: 0<a(n)≤10<a(n)\le10<a(n)≤1, ∑na(n)=∞\sum_n a(n)=\infty∑n​a(n)=∞, ∑na(n)2<∞\sum_n a(n)^2<\infty∑n​a(n)2<∞.

A point x∗x^*x∗ is globally asymptotically stable for x˙=h(x)\dot x = h(x)x˙=h(x) if it is a Lyapunov-stable equilibrium and every solution converges to it.

Formalization targets

Goal: Theorem 2.2 (almost sure convergence)

Under (A1), (A2) and (TS), if x˙=h(x)\dot x=h(x)x˙=h(x) has a unique globally asymptotically stable equilibrium x∗x^*x∗, then for every initial condition X(0)∈RdX(0)\in\mathbb R^dX(0)∈Rd,

X(n)⟶x∗almost surely.X(n)\longrightarrow x^* \qquad \text{almost surely.}X(n)⟶x∗almost surely.

The goal contains no constants and no rates, only the qualitative conclusion.

Milestone: Theorem 2.1 (i) (almost sure boundedness)

Under (A1), (A2) and (TS), for every initial condition,

sup⁡n∥X(n)∥<∞almost surely.\sup_n \|X(n)\| < \infty \qquad \text{almost surely.}nsup​∥X(n)∥<∞almost surely.

Milestones: the lemmas of Section 4.1

  • Lemma 4.1: the fluid-limit ODE is globally exponentially asymptotically stable.
  • Lemma 4.2: the piecewise ODE solutions ϕ^\hat\phiϕ^​, ϕ∞\phi^\inftyϕ∞ used for comparison are bounded by a constant independent of the initial condition.
  • Lemma 4.3 (i), (ii): two discrete Bellman–Gronwall inequalities.
  • Lemma 4.4: for large scale rrr, every solution of x˙=hr(x)\dot x = h_r(x)x˙=hr​(x) from the unit ball is ϵ\epsilonϵ-small on a window [T,T+1][T,T+1][T,T+1].
  • Lemma 4.5: the rescaled iterates have uniformly bounded second moments, and the rescaled noise sum ξ\xiξ is an L2L^2L2-bounded martingale.
  • Lemma 4.6: almost surely the rescaled interpolated iterates ϕ\phiϕ track ϕ^\hat\phiϕ^​ and stay bounded.

Significance

The result. Theorem 2.1 (i) turns the stability hypothesis of the O.D.E. method into a checkable condition on a deterministic ODE. Theorem 2.2 then gives convergence to x∗x^*x∗ with no a priori boundedness assumption. The paper applies this to reinforcement learning, obtaining the first convergence proof for asynchronous Q-learning and adaptive critic algorithms for average-cost Markov decision processes (the asynchronous extension, Theorem 2.5, is sketched in the paper and is not part of this mission). The same fluid-limit criterion is now a textbook tool; see Borkar, Stochastic Approximation: A Dynamical Systems Viewpoint (2008), Chapter 3.

Formalizing it. The theorems are proved in the paper, and the proofs are short but rely on several standard facts stated informally: uniform convergence of hrh_rhr​ to h∞h_\inftyh∞​ on compact sets, continuous dependence of ODE solutions on initial data and on the vector field, and the martingale convergence theorem. No machine-checked version of the O.D.E. method or of this stability criterion is known to exist. A formal development would give a verified link between discrete-time stochastic recursions, martingale convergence in Mathlib, and the stability theory of Lipschitz ODEs.

Difficulty

The obvious approach is to compare the iterates with solutions of x˙=h(x)\dot x = h(x)x˙=h(x) over windows of fixed ODE time and to control the accumulated noise by martingale convergence. This fails without boundedness: the noise bound in (A2) grows with ∥X(n)∥\|X(n)\|∥X(n)∥, so the deviation from the ODE can only be controlled relative to the current size of the iterate, and nothing prevents the iterates from escaping to infinity.

A second difficulty is that the hypothesis (A1) concerns only the fluid limit h∞h_\inftyh∞​, which describes the drift at infinite scale. It says nothing directly about hhh at any finite state, and nothing about the noise. Any argument therefore has to transfer information from the limit r→∞r\to\inftyr→∞ to the recursion at random, path-dependent scales, uniformly over those scales, while the noise is controlled only relative to the current size of the iterate. In Lean this involves ODE comparison and Gronwall estimates on a random partition of the time axis, conditional second-moment estimates for a rescaled recursion, and a vector-valued L2L^2L2 martingale convergence argument, none of which is available off the shelf for this setting.

Formalization scope

The state space is EuclideanSpace ℝ (Fin d). An ODE solution is a forward solution on [0,∞)[0,\infty)[0,∞): the derivative is taken within [0,∞)[0,\infty)[0,∞) at each t≥0t\ge0t≥0, which makes solutions continuous there. Stability notions are the standard ones (Lyapunov stability; asymptotic, global asymptotic and global exponential stability, the last in the form ∥x(t)−x∗∥≤be−δt∥x(0)−x∗∥\|x(t)-x^*\|\le b e^{-\delta t}\|x(0)-x^*\|∥x(t)−x∗∥≤be−δt∥x(0)−x∗∥). All vector fields in the mission are Lipschitz, so forward solutions exist and are unique, and quantifying over "every solution" is meaningful.

The filtration in (A2) is the natural filtration of the iterates. Because a(n)>0a(n)>0a(n)>0, it carries the same information as the paper's σ(X(i),M(i),i≤n)\sigma(X(i),M(i),i\le n)σ(X(i),M(i),i≤n). (A2) includes integrability of M(n+1)M(n+1)M(n+1) and ∥M(n+1)∥2\|M(n+1)\|^2∥M(n+1)∥2, so that the conditional expectations are meaningful. The theorems quantify over every probability space and every noise process satisfying (A2); the goal and Theorem 2.1 (i) take a deterministic initial condition, as the paper does. Stating the goal for a particular noise model (no noise, or i.i.d. noise) would be a different and much weaker theorem, and is ruled out. "sup⁡n∥X(n)∥<∞\sup_n\|X(n)\|<\inftysupn​∥X(n)∥<∞" is boundedness above of the set of norms, not a real supremum, which Lean sets to 000 on unbounded sets. Second-moment suprema in Lemma 4.5 are taken in [0,∞][0,\infty][0,∞].

The proof objects of Section 4.1 (time grid t(n)t(n)t(n), blocks m(j)m(j)m(j) and T(j)T(j)T(j), scales r(j)r(j)r(j), the interpolation ϕ\phiϕ, the rescaled iterates and noise sum) are separate definitions built from the step sizes and the sample path, as on the page. The piecewise ODE solutions ϕ^\hat\phiϕ^​ and ϕ∞\phi^\inftyϕ∞ are characterized by a predicate, and the lemmas hold for every function satisfying it.

Useful infrastructure, reusable beyond this mission: Lipschitz ODE comparison and continuous-dependence estimates in Mathlib's ODE library, uniform convergence of hrh_rhr​ on compact sets, the discrete Gronwall lemmas, and L2L^2L2-bounded vector-valued martingale convergence. Contributions are welcome on any milestone. The two Gronwall lemmas and Lemma 4.1 are self-contained entry points.

Selected references

  • V. S. Borkar and S. P. Meyn, The O.D.E. Method for Convergence of Stochastic Approximation and Reinforcement Learning, SIAM J. Control Optim. 38(2):447–469, 2000. https://doi.org/10.1137/S0363012997331639
  • H. Robbins and S. Monro, A Stochastic Approximation Method, Ann. Math. Statist. 22(3):400–407, 1951. https://doi.org/10.1214/aoms/1177729586
  • L. Ljung, Analysis of Recursive Stochastic Algorithms, IEEE Trans. Automat. Control 22(4):551–575, 1977. https://doi.org/10.1109/TAC.1977.1101561
  • H. J. Kushner and G. G. Yin, Stochastic Approximation Algorithms and Applications, Springer, 1997. https://doi.org/10.1007/978-1-4899-2696-8
  • J. G. Dai, On Positive Harris Recurrence of Multiclass Queueing Networks: A Unified Approach via Fluid Limit Models, Ann. Appl. Probab. 5(1):49–77, 1995. https://doi.org/10.1214/aoap/1177004828
  • J. G. Dai and S. P. Meyn, Stability and Convergence of Moments for Multiclass Queueing Networks via Fluid Limit Models, IEEE Trans. Automat. Control 40(11):1889–1904, 1995. https://doi.org/10.1109/9.471210
  • V. S. Borkar, Stochastic Approximation: A Dynamical Systems Viewpoint, Cambridge University Press / Hindustan Book Agency, 2008. https://doi.org/10.1007/978-93-86279-38-5
17 thms2 active usersReviewed
Operations ResearchProbability·Captain: Shuze Chen

Processing Networks VII: Global Stability, Rings, and the Rybko–Stolyar BoundaryTextbook

Motivation

Mission VI showed that two structural families of queueing networks — feedforward routing, and any network under HLSPS control — are stable throughout their entire subcritical region: no extra condition beyond the standard load condition is ever needed. Until the early 1990s it was widely conjectured that this held for every queueing network. Rybko and Stolyar's 1992 example disproved it: a specific, entirely reasonable two-station network, still subcritical, whose buffer contents grow without bound under a particular non-idling policy. J. G. Dai and J. Michael Harrison's Processing Networks: Fluid Models and Stability (Cambridge University Press, forthcoming; cited here from the authors' pre-publication draft, 2020-4-2, http://spnbook.org) devotes the third part of Chapter 8 to mapping the boundary this discovery opened up: which network structures still enjoy subcriticality-implies-stability (unidirectional rings), and, for a network that does not, exactly what extra condition restores it (the two-station, five-class re-entrant line, the book's own worked instance of the Rybko–Stolyar phenomenon).

Setting

A queueing network is globally stable (Definition 8.22) if it is Markov-chain stable under every simply structured, non-idling control policy — the strongest policy-independent notion of stability a network can have. At the fluid-model level (Definition 8.23, restricting to single-server stations, b≡1b \equiv 1b≡1), this becomes: every solution of the fluid equations (8.20)-(8.23) plus the non-idling condition (8.42) is driven to the origin, uniformly in its starting size. A unidirectional ring network routes each customer type through a fixed cyclic sequence of stations; a two-station, five-class re-entrant line (Figure 8.3) routes its single input stream through five classes in a fixed order, alternating between two stations.

Formalization targets

Goal: Theorem 8.25 — the Rybko–Stolyar-style boundary for a re-entrant line

The two-station, five-class re-entrant network's fluid model is globally stable if and only if

λ1(m1+m3+m5)<1,λ1(m2+m4)<1,λ1(m2+m5)<1.\lambda_1(m_1+m_3+m_5) < 1, \qquad \lambda_1(m_2+m_4) < 1, \qquad \lambda_1(m_2+m_5) < 1.λ1​(m1​+m3​+m5​)<1,λ1​(m2​+m4​)<1,λ1​(m2​+m5​)<1.

The first two conditions together are the standard load condition; the third is a genuinely new "virtual station condition," the direct analogue of the Rybko–Stolyar network's own extra requirement. This is the weakest possible target for the phenomenon it captures: a two-sided iff, so it cannot be strengthened by dropping either the necessity or the sufficiency direction, and it isolates the exact extra condition rather than a merely sufficient one.

Supporting milestones

Lemma 8.20 (restated from mission VI, since this chunk's page range overlaps mission VI's at page 164) is a general departure-rate extinction criterion. Theorem 8.21 proves stability of an "assembly with complementary side business" network via a first two-dimensional piecewise-linear Lyapunov function. Theorem 8.24 shows unidirectional ring networks are globally stable throughout their entire subcritical region — no extra condition needed, in sharp contrast to the goal theorem's network. Lemma 8.26 gives four algebraic sufficient conditions for the workload derivative inequalities the goal theorem's Lyapunov argument needs; Lemma 8.27 shows these conditions are simultaneously satisfiable exactly when (8.47)-(8.49) hold — the geometric core of the sufficiency direction.

Significance

The result itself. Theorem 8.25 is the book's own fully worked instance of the field's most cited stability-boundary phenomenon: it pins down, for a specific and analyzable network, exactly how much more than subcriticality is required, and shows the extra requirement (8.49) is not an artifact of the proof technique but a genuine necessary condition, via an explicit unstable sample path under the "extreme" priority policy that violates it. Theorem 8.24, by contrast, demonstrates that the ring topology is not automatically pathological in this way, delineating the boundary from the other side.

Formalizing it. Searches for "re-entrant line," "Rybko-Stolyar," and "virtual station" (q=re-entrant%20line, q=Rybko-Stolyar, q=virtual%20station) return no results specific to this material; this mission is a from-scratch formalization of global stability at both the Markov-chain and fluid-model tiers, unidirectional ring networks, the two-station five-class re-entrant line, and the assembly-with-side-business network.

Difficulty

Theorem 8.25's necessity direction needs an entirely different proof technique from its sufficiency direction: rather than a Lyapunov argument, it requires exhibiting an explicit unstable fluid model solution under a specific "extreme" static-buffer-priority policy — a sample-path construction, echoing the divergent-cycle construction mission III's own chapter (Section 6.2) gives for the original Rybko–Stolyar network, that the book itself says is "omitted" as analogous. A formalization that stated only the sufficiency direction (dropping the "only if") would misrepresent the theorem entirely, since sufficiency alone is not what makes this result the field's canonical boundary-of-stability statement. A second difficulty is genuinely geometric: Lemma 8.27's proof intersects a parallelogram of admissible (x2,x4)(x_2,x_4)(x2​,x4​) pairs with a wedge region, then separately solves an analogous system for (x1,x3,x5)(x_1,x_3,x_5)(x1​,x3​,x5​) — reducing a five-dimensional existence claim to two two-dimensional geometric arguments, each depending on (8.47)-(8.49) in a way that is not visible from the inequalities' surface form alone.

Formalization scope

Missions IV/VI's queueing-network model data, fluid-equation specialization, and workload operator are restated locally (drafts in this series do not import one another), as is mission VI's non-idling fluid model (renamed to track Definition 8.23's own name, FluidModelGloballyStable, even though defeq in shape). Definition 8.22 (network-level global stability) is stated abstractly over an uninterpreted policy type and two predicates, since the concrete "simply structured non-idling policy" and "positive recurrence under a policy" notions belong to mission I's apparatus, not a dependency of this chunk. The unidirectional ring network is characterized as a structural property of an ordinary flat-indexed queueing network (a partial successor function encoding the deterministic route) rather than by re-introducing the book's own two-index type/stage bookkeeping — a faithful re-encoding, since every ring network in the book's sense is representable this way. The re-entrant line's routing (station 1 serves classes 1,3,5; station 2 serves classes 2,4) was recovered from the explicit computations in Lemma 8.26's own proof, not read off Figure 8.3 directly, though the two are cross-checked as consistent. The assembly-with-side-business network, which needs a genuinely multi-input activity outside Chapter 2's "unitary network" vocabulary, is packaged directly via its already-derived fluid equations (8.36)-(8.39) rather than a general SPN activity structure. Theorem 8.25 is stated as a bare ↔, exposing neither the sufficiency direction's Lyapunov witnesses nor the necessity direction's instability construction — a formalization that dropped either direction of the iff, or that conflated the unidirectional ring's cyclic structure with an unrestricted deterministic routing graph, would each be an unfaithful weakening. IsGloballyStable, FluidModelGloballyStable, IsUnidirectionalRing, and the re-entrant line's Lyapunov ingredients (reentrantG1/reentrantG2/ reentrantH1/reentrantH2) are the primary reusable contributions; contributions completing the six by sorry proofs — Theorem 8.25's necessity direction in particular, which needs machinery this mission does not otherwise build — are welcome.

Selected references

  • J. G. Dai and J. Michael Harrison, Processing Networks: Fluid Models and Stability, Cambridge University Press (forthcoming), pre-publication draft 2020-4-2. http://spnbook.org
  • A. N. Rybko and A. L. Stolyar, "Ergodicity of stochastic processes describing the operation of open queueing networks," Problemy Peredachi Informatsii 28 (1992), 3–26.
  • J. G. Dai and J. H. Vande Vate, "The stability of two-station multitype fluid networks," Operations Research 48 (2000), 721–744.
13 thms2 active usersReviewed
🏆Completed
Operations ResearchProbability·Captain: Shuze Chen

Processing Networks VI: Feedforward and Generalized Jackson Network StabilityTextbook

Motivation

Mission V supplied the general Lyapunov machinery — the extinction criteria of Lemmas 8.5, 8.6 and 8.11 — but a Lyapunov function does not construct itself. For a specific network structure and control policy, one must exhibit a concrete function and verify the drift condition. J. G. Dai and J. Michael Harrison's Processing Networks: Fluid Models and Stability (Cambridge University Press, forthcoming; cited here from the authors' pre-publication draft, 2020-4-2, http://spnbook.org) devotes the second half of Chapter 8 to two such constructions, chosen to illustrate the two basic templates every later stability chapter follows: a piecewise-linear Lyapunov function tailored to a structural network property (feedforward routing), and a linear one that works for an unrestricted network but is tailored to a specific control policy (head-of-line proportional service, HLSPS). Together they cover, as a corollary, the generalized Jackson network — the classical multiclass queueing network with one server per class — under ordinary non-idling FCFS.

Setting

A queueing network (Section 2.6, restated from mission IV) is feedforward (Definition 8.13) if its stations admit a numbering under which no station routes work to a lower-numbered one (feedback to the same station is still allowed). The workload operator W(z):=AM(I−P′)−1zW(z) := AM(I-P')^{-1}zW(z):=AM(I−P′)−1z (Eq. 8.24) gives, for any buffer-contents vector zzz, the total service effort each pool would need to drain zzz to emptiness with no further arrivals; the load vector of the standard load condition is ρ=W(λ)\rho = W(\lambda)ρ=W(λ) (Eq. 8.25), and the total arrival rate vector α\alphaα (including internally routed traffic) is the unique solution of the traffic equations α=λ+P′α\alpha = \lambda + P'\alphaα=λ+P′α. A queueing network under HLSPS control (Definition 8.17) splits each pool's capacity among its classes in fixed proportions γi:=αimi/ρp(i)\gamma_i := \alpha_i m_i/\rho_{p(i)}γi​:=αi​mi​/ρp(i)​ (Eq. 8.30) — a policy general enough to reduce, for a generalized Jackson network (one class per pool), to ordinary non-idling FCFS.

Formalization targets

Goal: Theorem 8.18 — HLSPS control is stable under the standard load condition

For any queueing network under HLSPS control with proportion vector γ\gammaγ, if

ρ<b(the standard load condition, Eq. 5.1),\rho < b \qquad (\text{the standard load condition, Eq. 5.1}),ρ<b(the standard load condition, Eq. 5.1),

the corresponding fluid model is stable, and hence (Theorem 6.2) the network itself is stable under HLSPS control. This is the weaker of the two possible capstones only in the sense that it fixes one specific policy; it is chosen over Theorem 8.14 as the goal because it needs the full generality of the workload-based linear Lyapunov argument (Lemma 8.20) with no structural restriction on the network's routing, whereas Theorem 8.14 trades policy generality for a feedforward restriction.

Supporting milestones

Lemma 8.15 isolates the workload derivative identity W˙k(Z(t))=ρk−bk\dot W_k(Z(t)) = \rho_k - b_kW˙k​(Z(t))=ρk​−bk​ at a busy station under any non-idling policy — the calculational engine both Theorem 8.14 and (via Lemma 8.20's analogous linear-potential argument) Theorem 8.18 rely on. Theorem 8.14 shows a feedforward network is stable under any non-idling policy, via a piecewise-linear Lyapunov function built from the routing matrix's block-triangular structure. Lemma 8.20 (numbered in the book but omitted from this mission's planning brief — added here, see STATUS.md) is the direct structural engine behind the goal theorem: a uniform excess departure rate over the total arrival rate at every non-empty class forces extinction. Corollary 8.19 specializes Theorem 8.18 to generalized Jackson networks, where HLSPS provably reduces to non-idling FCFS.

Significance

The result itself. Theorem 8.18 is the book's demonstration that dropping a structural network restriction (feedforward) is possible at the cost of committing to one specific, practically implementable control policy — and Corollary 8.19 shows this specific policy's stability theorem recovers, as a special case, the folklore stability result for the classical multiclass Jackson network under FCFS, arguably the single most studied queueing model in the field. Theorem 8.14, in turn, is the sharpest possible policy-agnostic statement: for feedforward networks, subcriticality alone (with no assumption at all beyond non-idling) suffices.

Formalizing it. Searches for "Jackson network" and "workload" (q=Jackson%20network, q=workload) return no relevant results (per triage.json); this mission is a from-scratch formalization of feedforward networks, the workload operator, HLSPS control, and their stability theorems, building directly on mission III's Theorem 6.2 and mission V's Lyapunov criteria.

Difficulty

Theorem 8.14's proof needs a genuinely delicate construction: a sequence of positive weights δk\delta_kδk​, chosen via the routing matrix's block-triangular structure (guaranteed by feedforwardness) so that the piecewise-linear function H(z)=max⁡kδkWk(z)H(z) = \max_k \delta_k W_k(z)H(z)=maxk​δk​Wk​(z) is positive-definite and has the right drift everywhere — an inductive argument over stations that does not generalize to non-feedforward networks, which is exactly why Theorem 8.18 needs an entirely different (linear, policy-specific) argument rather than a direct strengthening of 8.14's. A second, more subtle difficulty is that Theorem 8.14 and Theorem 8.18 are not related as special case and generalization in the book's own proof structure, despite their overlapping conclusions on feedforward networks under FCFS-like policies: 8.14 is agnostic to policy but needs feedforward structure, while 8.18 is agnostic to structure but needs the specific HLSPS policy — formalizing one as a corollary of the other would misrepresent the book's actual logical dependencies.

Formalization scope

Mission IV's queueing-network model data and fluid-equation specialization are restated locally (drafts in this series do not import one another). The workload operator's matrix inverse (I−P′)−1(I-P')^{-1}(I−P′)−1 is supplied as external data with its defining two-sided-inverse property, rather than derived from substochasticity/transience hypotheses on PPP (Chapter 2 material, out of series scope) — the same convention mission III used for its process-family apparatus. The non-idling and HLSPS fluid models are each packaged as their own predicate plus a Definition-6.3-style stability specialization, and Corollary 8.19 deliberately reuses the non-idling stability object (not a separately restated "FCFS fluid model") since the book's own remark identifies the two exactly for generalized Jackson networks. A formalization that stated Theorem 8.14 as a corollary of Theorem 8.18, or vice versa, would misrepresent the chapter's actual proof architecture (see Difficulty); this mission keeps them as independent milestones/ goal, per BRIEF.md's own instruction. Lemma 8.20, numbered and within this chunk's page range but absent from the planning brief's disposition table, is added as a milestone rather than silently dropped, since it is the structural step the goal theorem's own proof cites by name. QueueingNetworkData, workloadOperator, IsFeedforward, and the non-idling/HLSPS fluid-model predicates are the primary reusable contributions; contributions completing the five by sorry proofs are welcome.

Selected references

  • J. G. Dai and J. Michael Harrison, Processing Networks: Fluid Models and Stability, Cambridge University Press (forthcoming), pre-publication draft 2020-4-2. http://spnbook.org
  • J. G. Dai, "On positive Harris recurrence of multiclass queueing networks: a unified approach via fluid limit models," Annals of Applied Probability 5 (1995), 49–77.
  • M. Bramson, "Convergence to equilibria for fluid models of FIFO queueing networks," Queueing Systems 22 (1996), 5–45.
10 thms2 active usersReviewed
PreviousPage 3 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