Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Markov Chain

189 missions · 85 completed

Missions

Open104Completed85All189
Functional AnalysisProbability·Captain: mikedeng1

Logarithmic Sobolev Inequalities for Finite Markov Chains 3: Lower Bound α ≥ (1 − 2/q)λ / 2(λt_q + log M_q + (q − 2)/q) from a Bound on ‖H_{t_q}‖_{2→q}Research Paper

Motivation

A finite Markov chain describes a system that changes state according to fixed transition probabilities. For a chain that settles toward an equilibrium distribution, a central question is how quickly the effect of its starting state disappears. The logarithmic Sobolev constant supplies quantitative control of this convergence and, through hypercontractive estimates, also governs how the continuous-time transition operator changes the size of functions measured in different norms. Diaconis and Saloff-Coste's 1996 paper develops these relations for finite chains and uses them to study mixing on graphs and product spaces.

The constant can be hard to calculate directly. Its definition is an infimum over all nonconstant functions, while a particular Markov semigroup may admit an accessible bound from ℓ2\ell^2ℓ2 to ℓq\ell^qℓq at one time. Theorem 3.9 turns such an operator estimate into a numerical lower bound for the log-Sobolev constant. This mission formalizes that result, including both finite qqq and the supremum-norm endpoint.

Setting

Let X\mathcal XX be a finite state space. A Markov kernel K(x,y)K(x,y)K(x,y) is nonnegative, with ∑yK(x,y)=1\sum_yK(x,y)=1∑y​K(x,y)=1 for every xxx. A strictly positive stationary distribution π\piπ satisfies ∑xπ(x)K(x,y)=π(y)\sum_x\pi(x)K(x,y)=\pi(y)∑x​π(x)K(x,y)=π(y) and ∑xπ(x)=1\sum_x\pi(x)=1∑x​π(x)=1. The chain is reversible when π(x)K(x,y)=π(y)K(y,x)\pi(x)K(x,y)=\pi(y)K(y,x)π(x)K(x,y)=π(y)K(y,x) for every pair of states. Its continuous-time heat semigroup is Ht=e−t(I−K)H_t=e^{-t(I-K)}Ht​=e−t(I−K), acting on a function fff by HtfH_tfHt​f. These conventions follow §§2.1–2.3 of the source paper.

For a real function on X\mathcal XX, write ∥f∥p=(∑x∣f(x)∣pπ(x))1/p\|f\|_p=(\sum_x|f(x)|^p\pi(x))^{1/p}∥f∥p​=(∑x​∣f(x)∣pπ(x))1/p when ppp is finite, and ∥f∥∞=max⁡x∣f(x)∣\|f\|_\infty=\max_x|f(x)|∥f∥∞​=maxx​∣f(x)∣. The Dirichlet form is E(f,g)=∑x(f(x)−Kf(x))g(x)π(x)\mathcal E(f,g)=\sum_x(f(x)-Kf(x))g(x)\pi(x)E(f,g)=∑x​(f(x)−Kf(x))g(x)π(x). The quadratic entropy functional is L(f)=∑x∣f(x)∣2log⁡(∣f(x)∣2/∥f∥22)π(x)\mathcal L(f)=\sum_x|f(x)|^2\log(|f(x)|^2/\|f\|_2^2)\pi(x)L(f)=∑x​∣f(x)∣2log(∣f(x)∣2/∥f∥22​)π(x), with a zero contribution where f(x)=0f(x)=0f(x)=0. Write Ef=∑xf(x)π(x)Ef=\sum_xf(x)\pi(x)Ef=∑x​f(x)π(x) and Var⁡π(f)=∥f−Ef∥22\operatorname{Var}_\pi(f)=\|f-Ef\|_2^2Varπ​(f)=∥f−Ef∥22​.

The spectral gap in this mission is the variational constant λ=inf⁡Var⁡π(f)≠0E(f,f)/Var⁡π(f)\lambda=\inf_{\operatorname{Var}_\pi(f)\ne0}\mathcal E(f,f)/\operatorname{Var}_\pi(f)λ=infVarπ​(f)=0​E(f,f)/Varπ​(f), as in (2.4). The log-Sobolev constant is α=inf⁡L(f)≠0E(f,f)/L(f)\alpha=\inf_{\mathcal L(f)\ne0}\mathcal E(f,f)/\mathcal L(f)α=infL(f)=0​E(f,f)/L(f), as in (3.1). These definitions specify the quantities that Theorem 3.9 relates; in particular, λ\lambdaλ is the paper's variational quantity, rather than an eigenvalue expression imported from a different convention.

Formalization targets

Theorem 3.9: a single heat-operator estimate bounds α\alphaα

Suppose 2<q<∞2<q<\infty2<q<∞, tq>0t_q>0tq​>0, and MqM_qMq​ satisfy ∥Htqf∥q≤Mq∥f∥2\|H_{t_q}f\|_q\le M_q\|f\|_2∥Htq​​f∥q​≤Mq​∥f∥2​ for every function fff. The paper's theorem asserts

α≥(1−2/q)λ2(λtq+log⁡Mq+(q−2)/q).\alpha\ge\frac{(1-2/q)\lambda}{2\left(\lambda t_q+\log M_q+(q-2)/q\right)}.α≥2(λtq​+logMq​+(q−2)/q)(1−2/q)λ​.

It also covers q=∞q=\inftyq=∞: the hypothesis then uses ∥Htqf∥∞\|H_{t_q}f\|_\infty∥Htq​​f∥∞​, and the two fractions involving qqq in the displayed bound become 111.

Companion results

Theorem 3.10 replaces HtqH_{t_q}Htq​​ in the norm hypothesis with Htq−EH_{t_q}-EHtq​​−E, where EEE sends a function to its constant mean. Corollary 3.11 relates α\alphaα to τ\tauτ, the first time at which every heat-kernel density htx(y)=Ht(x,y)/π(y)h_t^x(y)=H_t(x,y)/\pi(y)htx​(y)=Ht​(x,y)/π(y) is within 1/e1/e1/e of 111 in ℓ2(π)\ell^2(\pi)ℓ2(π):

12α≤τ≤4+log⁡log⁡(1/π∗)4α,π∗=min⁡xπ(x).\frac1{2\alpha}\le\tau\le\frac{4+\log\log(1/\pi_*)}{4\alpha}, \qquad \pi_*=\min_x\pi(x).2α1​≤τ≤4α4+loglog(1/π∗​)​,π∗​=xmin​π(x).

The three milestones reproduce the interpolation estimate (3.6), the resulting entropy inequality, and the centering inequality (3.7). Theorem 3.10's printed finite-qqq denominator contains (q−2)/2(q-2)/2(q−2)/2; its displayed proof and the q=∞q=\inftyq=∞ use in Corollary 3.11 require (q−2)/q(q-2)/q(q−2)/q. That proof also needs log⁡Mq+(q−2)/q≥0\log M_q+(q-2)/q\ge0logMq​+(q−2)/q≥0, which the page does not state and without which the printed statement fails on a four-state product chain. The formal companion records both corrections, while the main goal follows the printed Theorem 3.9 exactly.

Significance

Theorem 3.9 makes a norm bound at a chosen time useful beyond that time: it yields a bound on a functional inequality that holds for every function on the state space. Thus estimates obtained from an explicit heat kernel or another analytic method can be compared across chains using the same constant α\alphaα. The centered version and the bound for τ\tauτ connect this functional viewpoint back to convergence from a point mass, as the paper explains in §3.4.

The mathematical results are proved in the 1996 paper. Here the remaining work is to give their finite-state objects, norm hypotheses, and constants machine-checked meanings, then formalize the proofs. The definition layer and the centering inequality have use beyond this mission: they can support other statements about entropy decay and heat-kernel convergence in the same paper.

Difficulty

A bound for HtH_tHt​ in the same norm is too weak to recover the displayed lower bound: the information here is the change from an ℓ2\ell^2ℓ2 input to an ℓq\ell^qℓq output. The dependence of the exponent on time must retain the factors (1−2/q)(1-2/q)(1−2/q) and (q−2)/q(q-2)/q(q−2)/q exactly. The endpoint q=∞q=\inftyq=∞ also requires a separate norm statement, since a real exponent cannot represent infinity. The centering inequality (3.7) is another substantial step; the paper points to earlier proofs rather than treating it as immediate.

Formalization scope

The state space is a finite Lean type, the kernel a real matrix, and the invariant law a positive real-valued probability vector. Reversibility is detailed balance, and irreducibility is retained from the standing setting of §3.1. The heat semigroup uses the already published Poissonized heat kernel. Operator norms are represented by inequalities quantified over every real function. The finite-qqq and q=∞q=\inftyq=∞ conclusions are separate clauses of the goal. Time is real; tq>0t_q>0tq​>0 makes explicit the positive-time convention used in §3.4. Theorem 3.10 carries the condition Mq≥e−(q−2)/qM_q\ge e^{-(q-2)/q}Mq​≥e−(q−2)/q (and M∞≥e−1M_\infty\ge e^{-1}M∞​≥e−1) described above; Corollary 3.11 is stated without any extra condition.

The variational constants are real infima, the logarithms and real powers use Lean's total operations, and the supremum norm is a supremum over the finite state space. The stationary probability hypothesis rules out an empty state space; the operator hypothesis on the constant function forces Mq≥1M_q\ge1Mq​≥1 in Theorem 3.9. These facts prevent the bound from arising from a zero norm, an empty operator test, an invalid logarithm, or an eigenvalue convention different from (2.4). Useful contributions include finite-state entropy inequalities, interpolation machinery, estimates for the heat operator, and proofs of the three stated milestones.

Selected references

  • P. Diaconis and L. Saloff-Coste, Logarithmic Sobolev inequalities for finite Markov chains, Annals of Applied Probability 6 (1996), 695–750. DOI.
10 thms2 active usersReviewed
Operations ResearchStochastic Systems·Captain: mikedeng1

Stability Properties of Constrained Queueing Systems and Scheduling Policies for Maximum Throughput in Multihop Radio Networks I: Policy π₀ Is Throughput-Optimal, C′ ⊂ C_π₀ ⊂ C ⊂ C̄′Research Paper

Motivation

In a wireless multihop network, a switch, or a parallel computer, transmissions interfere: two links that share a receiver, or two crossbar paths that share a port, cannot be active in the same time slot. The scheduler must choose, slot by slot, a set of links that may operate together and decide which traffic each one carries. The basic question is which arrival rates a network can sustain at all, and whether a single scheduling rule sustains every one of them without knowing the rates.

Tassiulas and Ephremides answered both questions in 1992 for a general slotted model with interference constraints, multihop routing and several traffic classes (IEEE Trans. Automat. Control 37(12):1936–1948). Their policy, here called π0\pi_0π0​, weighs each link by the largest queue-length difference it can reduce and activates a maximum-weight feasible set. It is the origin of the max-weight and back-pressure scheduling rules that later became standard in switch scheduling (McKeown, Mekkittikul, Anantharam and Walrand, 1999) and in stochastic network optimization (Georgiadis, Neely and Tassiulas, 2006).

Setting

A constrained queueing network has LLL nodes, NNN servers (links) and JJJ customer classes. Server iii moves customers from its origin node q(i)q(i)q(i) to its destination node h(i)h(i)h(i). Class jjj leaves the network on reaching a node of its destination set VjV_jVj​; at every other node lll it has a queue (l,j)(l,j)(l,j), whose length at the end of slot ttt is Xlj(t)∈NX_{lj}(t)\in\mathbb NXlj​(t)∈N.

The constraint set SSS is the family of sets of servers that may be active in the same slot. Assumption C.1 says that every subset of an activation set is an activation set. In each slot a stationary policy, given the state x=X(t−1)x=X(t-1)x=X(t−1), chooses a set of servers in SSS and the class each active server serves; an activation rule never activates more servers of queue (l,j)(l,j)(l,j) than there are customers xljx_{lj}xlj​. The class of all such rules is HHH. An activated server iii completes its service with probability mim_imi​, independently. New arrivals Alj(t)A_{lj}(t)Alj​(t) are i.i.d. over slots, independent across queues and of the services, with finite second moments and means alja_{lj}alj​. Under a stationary rule the vector X(t)X(t)X(t) is a Markov chain on N{queues}\mathbb N^{\{\text{queues}\}}N{queues}.

The chain is stable (Definition 3.1) if, from every transient state, it enters a closed communicating class with probability one, and every state of a closed communicating class is positive recurrent. The stability region CπC_\piCπ​ of a policy is the set of rate vectors aaa for which the system is stable under π\piπ; the stability region of the system is C=⋃π∈HCπC=\bigcup_{\pi\in H}C_\piC=⋃π∈H​Cπ​.

A family f=(fij)≥0f=(f_{ij})\ge0f=(fij​)≥0 is an aaa-admissible flow if it satisfies flow conservation, alj=∑q(i)=lfij−∑h(i)=lfija_{lj}=\sum_{q(i)=l}f_{ij}-\sum_{h(i)=l}f_{ij}alj​=∑q(i)=l​fij​−∑h(i)=l​fij​ at every queue; f^i=∑jfij\hat f_i=\sum_jf_{ij}f^​i​=∑j​fij​ is its total flow through server iii. With co(S)\mathrm{co}(S)co(S) the convex hull of the indicator vectors of the activation sets,

C′={a≥0: ∃f∈Fa, c∈co(S), mi−1f^i<ci if f^i>0, f^i=0 if ci=0}.C'=\{a\ge0:\ \exists f\in F_a,\ c\in\mathrm{co}(S),\ m_i^{-1}\hat f_i<c_i\text{ if }\hat f_i>0,\ \hat f_i=0\text{ if }c_i=0\}.C′={a≥0: ∃f∈Fa​, c∈co(S), mi−1​f^​i​<ci​ if f^​i​>0, f^​i​=0 if ci​=0}.

Formalization targets

Goal: Theorem 3.2

C′⊂C⊂Cˉ′,C′⊂Cπ0⊂C⊂Cˉπ0.C'\subset C\subset\bar C',\qquad C'\subset C_{\pi_0}\subset C\subset\bar C_{\pi_0}.C′⊂C⊂Cˉ′,C′⊂Cπ0​​⊂C⊂Cˉπ0​​.

The system stability region is pinned between C′C'C′ and its closure, and policy π0\pi_0π0​, whatever its tie-breaking, stabilizes every rate vector in C′C'C′. Inclusions are not strict.

Milestones

  1. Lemma A.1: co(S)\mathrm{co}(S)co(S) is closed under 0≤a≤c0\le a\le c0≤a≤c (under C.1).
  2. Lemma 3.1: Cˉ′={a:∃f∈Fa, c∈co(S), M−1f^≤c}\bar C'=\{a:\exists f\in F_a,\ c\in\mathrm{co}(S),\ M^{-1}\hat f\le c\}Cˉ′={a:∃f∈Fa​, c∈co(S), M−1f^​≤c}.
  3. Theorem 3.1: a function bounded below with drift ≤−ϵ\le-\epsilon≤−ϵ outside a finite set, and finite conditional expectation on it, makes a countable chain stable in the sense of Definition 3.1.
  4. (A.6)–(A.7): for V(x)=∑l,jxlj2V(x)=\sum_{l,j}x_{lj}^2V(x)=∑l,j​xlj2​, the one-step drift under π0\pi_0π0​ is finite everywhere and below −ϵ-\epsilon−ϵ once V(x)≥bV(x)\ge bV(x)≥b.
  5. Lemma 3.2: C′⊂Cπ0C'\subset C_{\pi_0}C′⊂Cπ0​​.
  6. Lemma 3.3: for a∉Cˉ′a\notin\bar C'a∈/Cˉ′, the system is unstable under every policy in HHH.

An optional item states the claim of Remark 1: if a∈Cˉ′∖C′a\in\bar C'\setminus C'a∈Cˉ′∖C′, then δa∉Cˉ′\delta a\notin\bar C'δa∈/Cˉ′ for every δ>1\delta>1δ>1.

Significance

Theorem 3.2 shows that a throughput-optimal stationary policy exists, which is not obvious: stability regions of different policies need not be nested, so a policy whose region contains all the others has to be exhibited. It also describes the system stability region by a deterministic flow condition, C′C'C′, which can be checked without simulating any policy. The same drift argument underlies the stability proofs of max-weight switch schedulers, back-pressure routing and the drift-plus-penalty method.

The result is proved in the paper, with a proof sketched in places (Theorem 3.1 is called "a trivial extension of Foster's criteria", Lemma A.1 is omitted, Lemma 3.3 is argued by ergodicity in a paragraph). As far as a search of the platform shows, none of these statements has a machine-checked proof: Foster's criterion is posed on the platform only for irreducible chains on N\mathbb NN, and the back-pressure results already posed concern fluid models of other networks. A complete formal development would supply the reducible-chain Foster criterion, the convex-geometry lemma on co(S)\mathrm{co}(S)co(S), the quadratic drift computation and the ergodic converse.

Difficulty

The obvious argument is a quadratic Lyapunov drift bound, but it does not go through as is in three places. First, the drift bound needs a direction of decrease from every large state: the largest queue must be connected to a destination through servers that can actually be activated, which is where assumption C.2 and the topology of SSS enter (A.21)–(A.24). Second, stage 3 of π0\pi_0π0​ defers some activations to respect the rule "no service for nonexisting customers", so the chosen schedule is not exactly maximum-weight and the loss has to be bounded uniformly. Third, the chain is in general reducible, so Foster's criterion for irreducible chains does not apply; the extension must show that every closed class meets the finite exceptional set and that transient states are left almost surely. The converse, Lemma 3.3, needs a law-of-large-numbers argument for an arbitrary stationary rule on a positive recurrent class, together with compactness of acyclic flows (Lemma 3.1).

Formalization scope

Nodes, servers and classes are Fin L, Fin N, Fin J (0-based). SSS is a Set (Finset (Fin N)); a queue is a pair (l,j)(l,j)(l,j) with l∉Vjl\notin V_jl∈/Vj​, and a state is a function from queues to N\mathbb NN. A multiclass activation vector assigns to each server an optional class. The transition matrix of the queue-length chain is written out explicitly as a sum over arrival vectors and Bernoulli service outcomes; Definition 3.1 is stated through this matrix (first-entry probabilities, essential states, positive recurrence), with values in [0,∞][0,\infty][0,∞].

Conventions committed to, and hypotheses added relative to the page:

  • Standing assumptions of the goal: C.1; ∅∈S\emptyset\in S∅∈S (the idle schedule is always allowed); 0<mi≤10<m_i\le10<mi​≤1; and C.2 in a topological form, a chain of servers from every non-destination node of class jjj to VjV_jVj​ (stronger than the printed sentence, which covers only nodes that class jjj can reach).
  • Every single server is an activation set, {i}∈S\{i\}\in S{i}∈S. The proof of Lemma 3.2 uses this at (A.24) without stating it; without it a server that can never be activated breaks the drift bound and Lemma 3.2.
  • Stability regions quantify over laws. CπC_\piCπ​ is the set of nonnegative rate vectors for which the chain is stable for every arrival law with finite second moments and those means. C′C'C′ is intersected with a≥0a\ge0a≥0.
  • π0\pi_0π0​ is a family. Statements hold for every rule satisfying the three stages, with arbitrary tie-breaking.
  • Expectations of unbounded functions are real series with explicit summability, so a divergent expectation is never read as 000.

A formalization in which CπC_\piCπ​ asks for stability under one convenient arrival law, or in which negative rates are admitted, or in which π0\pi_0π0​ is one fixed tie-break, would be a different theorem; the definitions rule each of these out.

Infrastructure needed: hitting probabilities and positive recurrence for countable chains (reusable beyond this mission), convex hulls of finite point sets, a cycle-cancelling bound for multicommodity flows, and the ergodic theorem for positive recurrent chains. Proofs of any milestone, and reusable lemmas on countable Markov chains, are welcome.

Selected references

  • L. Tassiulas and A. Ephremides, Stability properties of constrained queueing systems and scheduling policies for maximum throughput in multihop radio networks, IEEE Trans. Automat. Control 37(12):1936–1948, 1992. https://doi.org/10.1109/9.182479
  • F. G. Foster, On the stochastic matrices associated with certain queuing processes, Ann. Math. Statist. 24(3):355–360, 1953. https://doi.org/10.1214/aoms/1177728976
  • N. McKeown, A. Mekkittikul, V. Anantharam and J. Walrand, Achieving 100% throughput in an input-queued switch, IEEE Trans. Commun. 47(8):1260–1267, 1999. https://doi.org/10.1109/26.780463
  • L. Georgiadis, M. J. Neely and L. Tassiulas, Resource allocation and cross-layer control in wireless networks, Found. Trends Netw. 1(1):1–144, 2006. https://doi.org/10.1561/1300000001
9 thms2 active usersReviewed
ProbabilityStochastic Systems·Captain: mikedeng1

Random Walks in a Random Environment 3: With One-Way Mirrors σ ∈ {0, θ}, X_n/(n/log_θ n) → ½ in Probability if γθ = 1, and n^(−1/ρ)X_n Has Limit Laws Along Subsequences if γθ > 1Research Paper

Why the walk slows down

A random walk in a random environment uses transition probabilities selected once for each site, rather than probabilities resampled at every step. Even when the site environments are independent and identically distributed, the walker revisits the same local bias whenever it returns to a site. Its long-time motion can therefore differ sharply from that of a walk with a single averaged right-step probability. Solomon’s 1975 paper established the recurrence and speed classification for this one-dimensional model and then examined a two-value example in which some sites are one-way mirrors: the walker can pass through them to the right but cannot cross them to the left. The example isolates how a sequence of random intervals between mirrors produces slow growth and phase-dependent limit laws Solomon 1975, §2.

The present mission concerns §2 of that paper, pp. 10–20. Its central question is how far the walker has traveled after nnn steps when the mean crossing time reaches or exceeds the critical threshold. At criticality, a logarithmic correction replaces ordinary linear speed. Above criticality, the paper gives limits along subsequences whose logarithmic fractional parts approach a fixed phase.

The walk and its mirror environment

Let (Ω,F,P)(\Omega,\mathcal F,P)(Ω,F,P) be a probability space and let αj\alpha_jαj​, j∈Zj\in\mathbb Zj∈Z, be independent, identically distributed random variables in [0,1][0,1][0,1]. The environment is the complete sequence α=(αj)j∈Z\alpha=(\alpha_j)_{j\in\mathbb Z}α=(αj​)j∈Z​. Conditional on a fixed environment, a nearest-neighbour walk starts at X0=0X_0=0X0​=0 and, from site jjj, moves to j+1j+1j+1 with probability αj\alpha_jαj​ and to j−1j-1j−1 with probability 1−αj1-\alpha_j1−αj​. The annealed probability PPP averages the conditional path law over the environment. In Lean this joint law is specified on every finite path cylinder together with every measurable event of the whole environment, so it determines the dependence between XXX and α\alphaα.

Fix θ>1\theta>1θ>1 and 0<γ<10<\gamma<10<γ<1. Solomon’s example has αj=1\alpha_j=1αj​=1 with probability 1−γ1-\gamma1−γ and αj=(1+θ)−1\alpha_j=(1+\theta)^{-1}αj​=(1+θ)−1 with probability γ\gammaγ. Equivalently, the left-to-right odds ratio σj=(1−αj)/αj\sigma_j=(1-\alpha_j)/\alpha_jσj​=(1−αj​)/αj​ takes values 000 and θ\thetaθ. A site with σj=0\sigma_j=0σj​=0 is a one-way mirror. Write V0=0V_0=0V0​=0 and let VnV_nVn​ be the position of the nnnth mirror strictly to the right of zero. Let TjT_jTj​ be the first time the walk reaches site jjj, with Tj=∞T_j=\inftyTj​=∞ if it never does. For b>0b>0b>0, log⁡bx\log_b xlogb​x means the logarithm in base bbb, and {x}=x−⌊x⌋\{x\}=x-\lfloor x\rfloor{x}=x−⌊x⌋ is the fractional part.

The parameters used below are

ν=2θ(θ−1)2,K=1−γγν,ρ=log⁡1/γθ.\nu=\frac{2\theta}{(\theta-1)^2},\qquad K=\frac{1-\gamma}{\gamma}\nu,\qquad \rho=\log_{1/\gamma}\theta.ν=(θ−1)22θ​,K=γ1−γ​ν,ρ=log1/γ​θ.

When γθ>1\gamma\theta>1γθ>1, the paper specifies a probability law FεF_\varepsilonFε​ on [0,∞)[0,\infty)[0,∞) by its Laplace transform

∫0∞e−ux dFε(x)=exp⁡[−Ku∑j∈Z(γθ)j−ε1+νuθj−ε],u>0.\int_0^\infty e^{-ux}\,dF_\varepsilon(x)=\exp\left[-Ku\sum_{j\in\mathbb Z}\frac{(\gamma\theta)^{j-\varepsilon}}{1+\nu u\theta^{j-\varepsilon}}\right],\qquad u>0.∫0∞​e−uxdFε​(x)=exp​−Kuj∈Z∑​1+νuθj−ε(γθ)j−ε​​,u>0.

Here Fε(t)F_\varepsilon(t)Fε​(t) also denotes that law’s distribution function at ttt. The bilateral series converges in the supercritical parameter range. The source’s notation uses the same letter for a distribution and its distribution function; the Lean development keeps these roles separate as a measure and its value on (−∞,t](-\infty,t](−∞,t].

Formalization targets

The first clause of Theorem (2.20) is the critical growth law. If γθ=1\gamma\theta=1γθ=1, then

Xnn/log⁡θn→P12.\frac{X_n}{n/\log_\theta n}\xrightarrow{P}\frac12.n/logθ​nXn​​P​21​.

The second clause describes the supercritical case. If γθ>1\gamma\theta>1γθ>1, nk→∞n_k\to\inftynk​→∞, and {log⁡θnk}→ε\{\log_\theta n_k\}\to\varepsilon{logθ​nk​}→ε, then for each x>0x>0x>0,

P ⁣(nk−1/ρXnk<x)⟶1−Fλ(x) ⁣(((1−γ)x)−ρ),λ(x)=ε+log⁡1/γ((1−γ)x).P\!\left(n_k^{-1/\rho}X_{n_k}<x\right)\longrightarrow 1-F_{\lambda(x)}\!\left(((1-\gamma)x)^{-\rho}\right), \qquad \lambda(x)=\varepsilon+\log_{1/\gamma}((1-\gamma)x).P(nk−1/ρ​Xnk​​<x)⟶1−Fλ(x)​(((1−γ)x)−ρ),λ(x)=ε+log1/γ​((1−γ)x).

Both clauses are the goal. The milestones record the transform identity of Lemma (2.5), its approximation and scaling limits in Lemmas (2.6)–(2.7), the mirror passage-time limits of Lemma (2.10), and the ordinary passage-time limits of Theorem (2.18). The fractional part in the goal uses base θ\thetaθ; the two passage-time results use base 1/γ1/\gamma1/γ, exactly as printed Solomon 1975, pp. 12–19.

What the result gives

The critical law identifies the constant in the growth scale n/log⁡θnn/\log_\theta nn/logθ​n. The supercritical law shows that a single power normalization n1/ρn^{1/\rho}n1/ρ does not erase the logarithmic phase of the environment: the limiting distribution depends on the phase approached by the chosen subsequence. These assertions describe the position XnX_nXn​ itself, rather than only the time needed to reach a distant site. They complement the paper’s general speed theorem by resolving the zero-speed behavior in a concrete model Solomon 1975, Theorems (1.16) and (2.20).

The results are proved in the 1975 paper; the open work here is machine checking their definitions, statements, and proofs. The development also yields reusable interfaces for a nearest-neighbour chain specified by cylinder probabilities, first-passage times that can be infinite, and Laplace-transform arguments for random time changes. The mission’s statements currently compile locally with proof placeholders, so they are formalization targets rather than machine-checked theorems.

Where the difficulty lies

The one-way mirrors create independent, identically distributed blocks of crossing times, but those times have tails governed by the random spacing between mirrors. At γθ=1\gamma\theta=1γθ=1, their accumulation produces a logarithmic correction; at γθ>1\gamma\theta>1γθ>1, the underlying geometric scales preserve the fractional part of a logarithm. An ordinary law of large numbers for passage times therefore cannot supply both limits. Moreover, a limit for passage times to the random mirror positions VnV_nVn​ does not immediately give a limit for passage times to deterministic sites, and converting a passage-time limit into a position limit requires control of the inverse time change. The source separates these tasks across the milestone results Solomon 1975, pp. 11–20.

Formalization scope

The Lean environment is the pinned Mathlib revision 0df444a360eaa60ab8c11dca51a86af692955474. The position and environment are integer-indexed; time is natural-number-indexed. The one-way-mirror parameter range is θ>1\theta>1θ>1, 0<γ<10<\gamma<10<γ<1, γθ≥1\gamma\theta\ge1γθ≥1. The strict bounds on γ\gammaγ make both atom probabilities meaningful and the logarithm base 1/γ1/\gamma1/γ valid. The source uses these bounds implicitly. All probabilities concern the annealed joint law, not an arbitrary process with the same one-time marginals.

First-passage times are extended natural numbers, with infinity on paths that never hit the target. The real-valued limits convert finite passage times to real numbers; under the stated model, infinite passage times form a null event. The location of a nonexistent next mirror is assigned zero for a total Lean function, again only on a null event in this model. The Laplace transform of an infinite passage time is defined as zero. Convergence in probability uses TendstoInMeasure; convergence in law is expressed by convergence of distribution functions at continuity points. The limit-law family is constrained to probability measures supported on [0,∞)[0,\infty)[0,∞) with the exact transform (2.12), preventing a degenerate or unrelated choice of FFF.

A complete proof needs measurable cylinder laws, independence of the mirror gaps, hitting-time and transform calculations, asymptotics of one-sided and bilateral series, distributional convergence from Laplace transforms, and inversion from passage time to position. Work on any of these components is in scope. The statement keeps both source regimes and every constant; replacing the joint walk law by independent marginals or choosing an arbitrary limit distribution would change the theorem.

Selected references

  • Fred Solomon, Random Walks in a Random Environment, The Annals of Probability 3(1):1–31, 1975. DOI: 10.1214/aop/1176996444.
9 thms2 active usersReviewed
CombinatoricsProbability·Captain: mikedeng1

Coalescents With Multiple Collisions 1: A Coalescent on Partitions of ℕ With k-Fold Merger Rates λ_{b,k} Exists Iff λ_{b,k} = ∫ x^{k−2}(1−x)^{b−k} Λ(dx)Research Paper

Motivation

A coalescent models a collection of ancestral lineages merging as time runs backward. If every event joins exactly two lineages, a single pairwise merger rate describes the finite system. Pitman’s 1999 paper asks which rates permit an event to join any number of blocks, while still giving one process on partitions of all positive integers. This matters when a sample of any finite size must be a restriction of the same population model: specifying a chain separately at every sample size is insufficient unless the chains agree when labels are removed. The paper supplies an exact answer in terms of a finite measure on the unit interval. See Pitman (1999), Theorem 1 and §3.1.

Setting

Let Pn\mathcal P_nPn​ be the partitions of [n]={1,…,n}[n]=\{1,\ldots,n\}[n]={1,…,n} and P∞\mathcal P_\inftyP∞​ the partitions of the positive integers. A partition records which labels belong to the same block. The map RnR_nRn​ restricts a partition to [n][n][n]. A partition π\piπ refines π′\pi'π′ when every block of π\piπ is contained in a block of π′\pi'π′. Thus blocks can merge as time grows, but never split.

A P∞\mathcal P_\inftyP∞​-valued process is a coalescent here when its paths refine with time and each finite restriction RnR_nRn​ has right-continuous step-function paths. For a partition of [n][n][n] with bbb blocks, each unordered choice of kkk blocks, 2≤k≤b2\le k\le b2≤k≤b, merges into one block at rate λb,k\lambda_{b,k}λb,k​. Different choices are different possible transitions, each with that rate; the rate is not multiplied by the number of choices. The finite chain’s generator QnQ_nQn​ records these transition rates, with each diagonal entry the negative sum of the other entries in its row. Its transition matrix after time ttt is exp⁡(tQn)\exp(tQ_n)exp(tQn​).

An array (λb,k)(\lambda_{b,k})(λb,k​) is consistent when, for every n<mn<mn<m and every initial partition of [m][m][m], restricting the mmm-label chain to [n][n][n] gives the same process law as the nnn-label chain started at the restricted partition. A finite nonnegative Borel measure Λ\LambdaΛ on [0,1][0,1][0,1] supplies a rate array through an integral. The point mass at zero is included: because 00=10^0=100=1 for natural powers, it gives pairwise mergers while higher-order merger rates vanish. These definitions follow Pitman (1999), pp. 1871–1872 and Lemma 18.

Formalization targets

Characterization of admissible rates

The goal is the existence-and-rates part of Theorem 1. For every nonnegative array (λb,k:2≤k≤b)(\lambda_{b,k}:2\le k\le b)(λb,k​:2≤k≤b), a coalescent with these finite-chain merger rates exists from every π∈P∞\pi\in\mathcal P_\inftyπ∈P∞​ if and only if there is a finite nonnegative measure Λ\LambdaΛ on [0,1][0,1][0,1] such that

λb,k=∫[0,1]xk−2(1−x)b−k Λ(dx)(2≤k≤b).\lambda_{b,k}=\int_{[0,1]}x^{k-2}(1-x)^{b-k}\,\Lambda(dx) \qquad(2\le k\le b).λb,k​=∫[0,1]​xk−2(1−x)b−kΛ(dx)(2≤k≤b).

The statement asks for one measure representing every rate in the infinite array, and a process from every initial partition. It fixes neither a particular measure nor a sample size. This is Theorem 1, equation (1).

Supporting claims

The milestone list follows §3.1: adjacent-size restrictions suffice to check consistency; consistency is equivalent to

λb,k=λb+1,k+λb+1,k+1(2≤k≤b);\lambda_{b,k}=\lambda_{b+1,k}+\lambda_{b+1,k+1} \qquad(2\le k\le b);λb,k​=λb+1,k​+λb+1,k+1​(2≤k≤b);

and the nonnegative normalized array relation

μi,j=μi+1,j+μi,j+1,μ0,0=1,\mu_{i,j}=\mu_{i+1,j}+\mu_{i,j+1},\qquad \mu_{0,0}=1,μi,j​=μi+1,j​+μi,j+1​,μ0,0​=1,

is equivalent to a representation μi,j=E[Xi(1−X)j]\mu_{i,j}=\mathbb E[X^i(1-X)^j]μi,j​=E[Xi(1−X)j] for X∈[0,1]X\in[0,1]X∈[0,1]. The final milestone states the uniqueness as well as the existence of the representing measure: equation (1) is a bijection between consistent arrays and finite measures. These are the claims in Lemma 18 and its proof, p. 1882.

Significance

The characterization turns an infinite family of nonnegative rates into one finite measure, and says exactly when finite chains at different sample sizes can be restrictions of a common partition process. The bijection also makes the measure identifiable from the rates. Without consistency, a chain specified at one size can change its law when an unobserved extra label is added; there would be no single process on P∞\mathcal P_\inftyP∞​ with those restrictions.

Pitman proved these results in 1999. The mission concerns machine-checking their statements and, eventually, their proofs. The current Lean items are open theorems with compiled statements; they do not yet have machine-checked proofs. The reusable part of a complete development would include finite partition generators, restriction of continuous-time Markov chains, and the moment representation for normalized nonnegative arrays. These tools also apply to other consistent families of random combinatorial structures.

Difficulty

Checking that each QnQ_nQn​ defines a finite-state chain does not by itself construct a process on partitions of all integers. Deleting one label can change which apparent merger occurs in the smaller chain, so the rates must satisfy a precise identity across adjacent sizes. Even once those identities hold, the conclusion requires one joint law whose finite restrictions agree for all sizes and times, with right-continuous paths. The representation step must recover a genuine finite measure, including possible mass at zero, and must prove uniqueness; a mere numerical fit for finitely many entries cannot establish the theorem.

Formalization scope

The Lean partition type is Setoid (Fin n) at finite size and a type synonym of Setoid ℕ at infinite size. The paper’s positive labels are shifted to zero-based labels, preserving their order. The measurable structure on infinite partitions is generated by pairwise equivalence coordinates, equivalently by finite restrictions; finite partition spaces use the discrete measurable structure. The process path predicate requires refinement at every pair of ordered times and right continuity of every finite restriction. Finite-chain laws are specified at all finite collections of times through exp⁡(tQn)\exp(tQ_n)exp(tQn​), so a process cannot qualify merely by having the right initial state or a single marginal.

The measure is represented on R\mathbb RR with zero mass outside [0,1]‘;integralsareover[0,1]`; integrals are over [0,1]‘;integralsareover[0,1].Finitenessisexplicit,preventinganonintegrableBochnerintegralfromacquiringLean’sdefaultvalue.Natural−numberexponentsretain. Finiteness is explicit, preventing a nonintegrable Bochner integral from acquiring Lean’s default value. Natural-number exponents retain .Finitenessisexplicit,preventinganonintegrableBochnerintegralfromacquiringLean’sdefaultvalue.Natural−numberexponentsretainx^0=1atatatx=0.Theratearrayisreadonlyfor. The rate array is read only for .Theratearrayisreadonlyfor2\le k\le b$, and the zero measure is allowed. The Fin 0 restriction is an additional tautological boundary case introduced by Lean’s natural numbers. The process sample space is a small Lean type, and the law is a probability measure on it.

Only the characterization sentence of Theorem 1 is targeted. Its later assertions about the strong Markov property, Feller semigroup, Skorohod path-space law, and weak continuity of the law map are outside this mission. Contributions toward those properties would need further path-space infrastructure. The formalized foundations and milestones can also support the paper’s Poisson construction and its later results, but those are separate targets.

Selected references

  • Jim Pitman, Coalescents with multiple collisions, Annals of Probability 27(4), 1870–1902, 1999. DOI: 10.1214/aop/1022874819.
7 thms2 active usersReviewed
Dynamic ProgrammingLinear OptimizationOperations Research·Captain: mikedeng1

Linear Programming and Markov Decision Chains 2: Representatives of Average Optimal Stationary Policies Are Optimal Dual Solutions, and Every Optimal Dual Solution Gives an Average Optimal PolicyResearch Paper

Motivation

A finite Markov decision process may have several recurrent classes under one policy. In that setting, its long-run reward depends on the initial state, and a single stationary distribution does not describe the whole decision problem. Hordijk and Kallenberg developed a linear program with two families of variables to handle this multichain case. Their Theorem 8 relates policies to feasible points of that program in both directions: optimal stationary policies give optimal dual solutions, and every optimal dual solution gives an average optimal stationary policy. This relationship explains why the dual program represents the original sequential decision problem rather than merely bounding its value. Hordijk and Kallenberg (1979)

An earlier frequency formulation associated stationary randomized policies with one family of occupation variables in a more restricted Markov-chain setting. The present theorem uses both xxx and yyy variables, and its policy comparison covers history-dependent randomized decisions. The corresponding formalization therefore addresses the finite multichain model of the 1979 paper, with its own dual equations and representative map. Hordijk and Kallenberg (1979), §§1 and 3.3

Setting

Let EEE be a nonempty finite set of states. At state iii, an action aaa is chosen from a nonempty finite set A(i)A(i)A(i). It earns a real reward riar_{ia}ria​ and moves to state jjj with probability piajp_{iaj}piaj​. The transition probabilities are nonnegative and sum to one over jjj. A general policy RRR may randomize and use the complete past history. Its average reward ϕi(R)\phi_i(R)ϕi​(R) is the liminf, as the horizon grows, of expected total reward divided by the horizon when the initial state is iii. The optimal value ϕi\phi_iϕi​ is the supremum of ϕi(R)\phi_i(R)ϕi​(R) over all such policies. A policy is average optimal when it attains that value at every state. These are the conventions of §2.1 of the paper. Hordijk and Kallenberg (1979), p. 353

A stationary randomized policy π∞\pi^\inftyπ∞ chooses each admissible action aaa at state iii with a fixed probability πia\pi_{ia}πia​, independently of the epoch and history. Its transition matrix is P(π)ij=∑a∈A(i)πiapiajP(\pi)_{ij}=\sum_{a\in A(i)}\pi_{ia}p_{iaj}P(π)ij​=∑a∈A(i)​πia​piaj​, and its reward vector is r(π)i=∑a∈A(i)πiariar(\pi)_i=\sum_{a\in A(i)}\pi_{ia}r_{ia}r(π)i​=∑a∈A(i)​πia​ria​. The Cesàro limit matrix P∗(π)P^*(\pi)P∗(π) and deviation matrix D(π)D(\pi)D(π) describe the recurrent and transient behavior of this finite chain. In particular, ϕ(π∞)=P∗(π)r(π)\phi(\pi^\infty)=P^*(\pi)r(\pi)ϕ(π∞)=P∗(π)r(π). Hordijk and Kallenberg (1979), p. 359

Fix positive state weights βj\beta_jβj​ summing to one. The primal linear program minimizes ∑jβjϕ~j\sum_j\beta_j\widetilde\phi_j∑j​βj​ϕ​j​ over pairs (ϕ~,u~)(\widetilde\phi,\widetilde u)(ϕ​,u) that are superharmonic: for every iii and a∈A(i)a\in A(i)a∈A(i), the first vector dominates its one-step expected continuation, and the sum of the two vectors dominates one-step reward plus the continuation of the second. The dual linear program maximizes ∑i,ariaxia\sum_{i,a}r_{ia}x_{ia}∑i,a​ria​xia​ over nonnegative xiax_{ia}xia​ and yiay_{ia}yia​ satisfying the two flow equations (3) and (4). Variables are present only for admissible state-action pairs. The set ExE_xEx​ consists of states where ∑axia>0\sum_a x_{ia}>0∑a​xia​>0. Hordijk and Kallenberg (1979), pp. 356–357

For a feasible dual point (x,y)(x,y)(x,y), the associated policy π(x,y)\pi(x,y)π(x,y) normalizes the xxx row at states in ExE_xEx​ and the yyy row at other states. Conversely, equation (6) constructs a representative (x(π),y(π))(x(\pi),y(\pi))(x(π),y(π)) of a stationary randomized policy. Its xxx coordinates use βTP∗(π)\beta^TP^*(\pi)βTP∗(π). Its yyy coordinates use βTD(π)+γTP∗(π)\beta^TD(\pi)+\gamma^TP^*(\pi)βTD(π)+γTP∗(π), where γ\gammaγ is zero at transient states and is chosen separately on each recurrent class by a maximum formula. The formalization restricts that formula's denominator to the recurrent class, as required by the subsequent nonnegativity calculation; the printed unrestricted denominator has a two-state counterexample. Hordijk and Kallenberg (1979), pp. 359–360

Formalization targets

Optimality correspondence

The goal is Theorem 8, with both directions in one statement:

π∞ average optimal ⟹ (x(π),y(π)) dual optimal,(x,y) dual optimal ⟹ π∞(x,y) average optimal.\pi^\infty\text{ average optimal}\ \Longrightarrow\ (x(\pi),y(\pi))\text{ dual optimal}, \qquad (x,y)\text{ dual optimal}\ \Longrightarrow\ \pi^\infty(x,y)\text{ average optimal}.π∞ average optimal ⟹ (x(π),y(π)) dual optimal,(x,y) dual optimal ⟹ π∞(x,y) average optimal.

The second implication applies to every optimal dual point. It produces the stationary randomized policy given by the printed normalization rule, including its existence as a valid policy. The first implication uses the particular representative defined by equation (6). Neither direction imposes an extreme-point condition. Hordijk and Kallenberg (1979), Theorem 8, p. 360

Supporting results

The milestones state the least-superharmonic characterization of ϕ\phiϕ; the positivity that makes the dual-to-policy normalization meaningful; the stationary gain identity; feasibility and objective value of the representative; and Propositions 4 and 5, which describe tight actions and identify ExE_xEx​ with the recurrent states of P(π(x,y))P(\pi(x,y))P(π(x,y)). Each is a statement about the same finite model and the same primal–dual pair. Hordijk and Kallenberg (1979), pp. 356–361

Significance

The theorem establishes an exact relation between two ways of expressing average optimality. The LP direction turns an optimal stationary policy into a dual optimum with a concrete state-action representation. The converse says an arbitrary optimal dual point can be read as an average optimal policy, even when its xxx coordinates vanish at some states. Proposition 5 specifies what those vanishing coordinates mean for the induced chain: those states are transient. These statements permit optimization over a finite LP while preserving the policy interpretation of its solutions. Hordijk and Kallenberg (1979), Theorem 8 and Proposition 5

The result was proved in 1979; this mission asks for a machine-checked proof of its precise finite-state statement. The shared MDP model and the limit and deviation matrix definitions already exist as published formal objects. The new work is the correspondence for Hordijk and Kallenberg's dual equations, with the representative, its class-wise correction, and the connection to liminf average reward. The definitions of stationary policy mixtures, admissible-pair LP coordinates, and finite-chain recurrence can support later results about average-reward optimization.

Difficulty

Normalizing xxx alone does not define a policy at every state: its row sum can be zero. The dual program's second variable yyy supplies the action weights there, and the feasibility equations must ensure its row sum is positive. In the other direction, the natural βTD(π)\beta^TD(\pi)βTD(π) term in y(π)y(\pi)y(π) need not be nonnegative. The correction γ\gammaγ is chosen by a maximum over each recurrent class, while transient states require a different case. These issues remain in a multichain process even though the state and action sets are finite. Hordijk and Kallenberg (1979), pp. 359–361

Formalization scope

Lean uses finite types for states and actions, a nonempty state type, and a nonempty admissible action set at every state. The published StationaryMDP definition provides real rewards and stochastic transition rows. General policies are its history-dependent randomized AvgHRPolicy values; average reward is its liminf reward, and optimal gain is the supremum over that entire policy class. The mission defines its own average-optimality predicate because the published Puterman predicate uses a stronger limsup comparison. For finite rewards, the liminf gains and their supremum are bounded real numbers.

Stationary randomized weights are nonnegative, sum to one on each A(i)A(i)A(i), and vanish outside A(i)A(i)A(i). The dual variables are functions on the subtype of admissible state-action pairs. The primal and dual optima mean feasible points attaining the relevant objective against every other feasible point. The paper's positive, normalized β\betaβ remains explicit. The raw formula for π(x,y)\pi(x,y)π(x,y) is used only with a feasible dual point, and the policy-well-definedness milestone supplies its nonzero denominators. The representative uses a maximum over the ergodic class of each recurrent state, with the class-restricted denominator needed by the paper's proof; replacing γ\gammaγ by zero or by one global maximum would change the target.

The known matrix objects P∗P^*P∗ and DDD are imported from the published Blackwell development. Their convergence and identities are theorem obligations, not assumptions hidden in definitions. Contributions proving the finite-chain identities, representative feasibility, complementary slackness, and the final policy comparison are within scope. A statement restricted to a unichain model, an extreme dual point, or a pure selected action would not establish this theorem.

Selected references

  • A. Hordijk and L. C. M. Kallenberg, Linear Programming and Markov Decision Chains, Management Science 25(4):352–362, 1979. DOI: 10.1287/mnsc.25.4.352.
13 thms2 active usersReviewed
Dynamic ProgrammingOperations Research·Captain: mikedeng1

On Finding Optimal Policies in Discrete Dynamic Programming with No Discounting 1: If G(f) ∪ H(f) Is Empty, f Maximizes the Gain and Then the Bias, and Each Improvement Step Raises (x, y, z)Research Paper

Motivation

A controller observes a finite system period after period, chooses an action in each state, earns an income and moves the system at random. When future income is not discounted, the natural criterion is the average return per unit time (the gain), but many policies share the maximal gain while differing in their transient income. Blackwell (1962) showed that the policies that are optimal as the discount factor tends to one, the 1-optimal policies, are exactly the stationary policies that first maximize the gain and then, among those, the bias. He gave no finite procedure for the second maximization. Veinott (1966) supplied one: an extension of Howard's policy improvement method in which a second improvement test, on the bias, is run after the gain test is exhausted, with a third vector z(f)z(f)z(f) guaranteeing termination. The method and its sensitivity hierarchy became the starting point of the nnn-discount optimality theory developed by Veinott (1969) and treated in Puterman's Markov Decision Processes (1994), Chapter 10.

Timeline:

  • 1960: Howard, Dynamic Programming and Markov Processes: policy improvement for the discounted and the average-return problems.
  • 1962: Blackwell, Discrete Dynamic Programming: existence of stationary policies optimal for all discount factors near one; the expansion Vβ(f∞)=x(f)/(1−β)+y(f)+o(1)V_\beta(f^\infty)=x(f)/(1-\beta)+y(f)+o(1)Vβ​(f∞)=x(f)/(1−β)+y(f)+o(1); nearly optimal (1-optimal) policies characterized by lexicographic maximization of (x,y)(x,y)(x,y).
  • 1966: Veinott, this paper: the extended policy improvement method that finds a 1-optimal stationary policy in finitely many steps (Theorem 6), and a finite-horizon characterization of the same policies (Theorem 7).
  • 1969: Veinott, Discount optimality and sensitive optimality: the full hierarchy of nnn-discount optimal policies and the corresponding nested improvement method.

Setting

There are finitely many states sss and a finite set of actions. Choosing action aaa in state sss earns the income i(s,a)i(s,a)i(s,a) and moves the system to state s′s's′ with probability q(s′∣s,a)q(s'\mid s,a)q(s′∣s,a). A decision rule f∈Ff\in Ff∈F picks an action f(s)f(s)f(s) in each state; r(f)r(f)r(f) is the vector with entries i(s,f(s))i(s,f(s))i(s,f(s)) and Q(f)Q(f)Q(f) the stochastic matrix with entries q(s′∣s,f(s))q(s'\mid s,f(s))q(s′∣s,f(s)). A policy is a sequence (f1,f2,… )(f_1,f_2,\dots)(f1​,f2​,…) of decision rules, f∞=(f,f,… )f^\infty=(f,f,\dots)f∞=(f,f,…) is a stationary policy, and for 0≤β<10\le\beta<10≤β<1

Vβ(π)=∑n=0∞βnQ(f1)⋯Q(fn) r(fn+1)V_\beta(\pi)=\sum_{n=0}^\infty \beta^n Q(f_1)\cdots Q(f_n)\,r(f_{n+1})Vβ​(π)=n=0∑∞​βnQ(f1​)⋯Q(fn​)r(fn+1​)

is the vector of expected discounted returns. For vectors, u≥vu\ge vu≥v is coordinatewise and u>vu>vu>v means u≥vu\ge vu≥v and u≠vu\ne vu=v.

Let Q∗(f)Q^*(f)Q∗(f) be the Cesàro limit of the powers of Q(f)Q(f)Q(f). The gain x(f)x(f)x(f) and the bias y(f)y(f)y(f) are the unique solutions of

[I−Q(f)]x=0,Q∗(f)x=Q∗(f)r(f);[I−Q(f)]y=r(f)−x(f),Q∗(f)y=0,[I-Q(f)]x=0,\quad Q^*(f)x=Q^*(f)r(f);\qquad [I-Q(f)]y=r(f)-x(f),\quad Q^*(f)y=0,[I−Q(f)]x=0,Q∗(f)x=Q∗(f)r(f);[I−Q(f)]y=r(f)−x(f),Q∗(f)y=0,

and z(f)z(f)z(f) is the unique solution of [I−Q(f)]z=−y(f)[I-Q(f)]z=-y(f)[I−Q(f)]z=−y(f), Q∗(f)z=0Q^*(f)z=0Q∗(f)z=0. Write F′F'F′ for the decision rules of maximal gain and F′′⊂F′F''\subset F'F′′⊂F′ for those of maximal bias within F′F'F′.

The two improvement sets compare fff with a decision rule ggg through the state-by-state tests

(i) [Q(g)x(f)]s≥[x(f)]s,(ii) [r(g)+Q(g)y(f)]s≥[x(f)+y(f)]s.\text{(i) } [Q(g)x(f)]_s\ge[x(f)]_s,\qquad \text{(ii) } [r(g)+Q(g)y(f)]_s\ge[x(f)+y(f)]_s .(i) [Q(g)x(f)]s​≥[x(f)]s​,(ii) [r(g)+Q(g)y(f)]s​≥[x(f)+y(f)]s​.

G(f)G(f)G(f) consists of the ggg for which (i) holds everywhere, (ii) holds wherever (i) is an equality, some inequality is strict, and g(s)=f(s)g(s)=f(s)g(s)=f(s) wherever both are equalities. E(f)E(f)E(f) consists of the ggg for which (i) and (ii) are equalities at every state. For g∈E(f)g\in E(f)g∈E(f),

(iii) [−y(f)+Q(g)z(f)]s≥[z(f)]s,\text{(iii) } [-y(f)+Q(g)z(f)]_s\ge[z(f)]_s,(iii) [−y(f)+Q(g)z(f)]s​≥[z(f)]s​,

and H(f)H(f)H(f) consists of the g∈E(f)g\in E(f)g∈E(f) for which (iii) holds everywhere, strictly somewhere, with g(s)=f(s)g(s)=f(s)g(s)=f(s) wherever it is an equality.

Formalization targets

Goal: Theorem 6 (p. 1290)

For every f∈Ff\in Ff∈F:

  1. G(f)=∅ ⇒ f∈F′G(f)=\varnothing\ \Rightarrow\ f\in F'G(f)=∅ ⇒ f∈F′;
  2. G(f)∪H(f)=∅ ⇒ f∈F′′G(f)\cup H(f)=\varnothing\ \Rightarrow\ f\in F''G(f)∪H(f)=∅ ⇒ f∈F′′;
  3. g∈G(f) ⇒ x(g)>x(f)g\in G(f)\ \Rightarrow\ x(g)>x(f)g∈G(f) ⇒ x(g)>x(f), or x(g)=x(f)x(g)=x(f)x(g)=x(f) and y(g)>y(f)y(g)>y(f)y(g)>y(f);
  4. g∈H(f) ⇒ x(g)=x(f)g\in H(f)\ \Rightarrow\ x(g)=x(f)g∈H(f) ⇒ x(g)=x(f), and y(g)>y(f)y(g)>y(f)y(g)>y(f), or y(g)=y(f)y(g)=y(f)y(g)=y(f) and z(g)>z(f)z(g)>z(f)z(g)>z(f).

Part 2 is the stopping certificate and parts 3 and 4 are the progress guarantee; together they say that the extended method raises (x,y,z)(x,y,z)(x,y,z) lexicographically and stops at a decision rule in F′′F''F′′.

Milestones

  • Theorem 3 (Blackwell): Vβ(f∞)=x(f)/(1−β)+y(f)+ϵ(β,f)V_\beta(f^\infty)=x(f)/(1-\beta)+y(f)+\epsilon(\beta,f)Vβ​(f∞)=x(f)/(1−β)+y(f)+ϵ(β,f) with ϵ(β,f)→0\epsilon(\beta,f)\to0ϵ(β,f)→0 as β→1−\beta\to1^-β→1−, and the unique-solution characterizations of x(f)x(f)x(f), y(f)y(f)y(f) (already posed on the platform, referenced).
  • Lemma 1 (Blackwell): g∈E(f)⇒x(g)=x(f)g\in E(f)\Rightarrow x(g)=x(f)g∈E(f)⇒x(g)=x(f), and y(g)=y(f)y(g)=y(f)y(g)=y(f) if moreover Q∗(g)Q∗(f)=Q∗(g)Q^*(g)Q^*(f)=Q^*(g)Q∗(g)Q∗(f)=Q∗(g) (referenced).
  • Theorem 1: for fixed 0≤β<10\le\beta<10≤β<1, exactly one of "f∞f^\inftyf∞ has no one-step improvement and is β\betaβ-optimal" and "some ggg gives Vβ(g,f∞)>Vβ(f∞)V_\beta(g,f^\infty)>V_\beta(f^\infty)Vβ​(g,f∞)>Vβ​(f∞) and Vβ(g∞)>Vβ(f∞)V_\beta(g^\infty)>V_\beta(f^\infty)Vβ​(g∞)>Vβ​(f∞)".
  • Theorem 4: F′′F''F′′ is the nonempty set of fff with f∞f^\inftyf∞ 1-optimal.
  • Theorem 5 and Corollary 1: G(f)=∅⇒f∈F′G(f)=\varnothing\Rightarrow f\in F'G(f)=∅⇒f∈F′; g∈G(f)⇒Vβ(g∞)>Vβ(f∞)g\in G(f)\Rightarrow V_\beta(g^\infty)>V_\beta(f^\infty)g∈G(f)⇒Vβ​(g∞)>Vβ​(f∞) for β\betaβ near one, hence the lexicographic increase of (x,y)(x,y)(x,y).
  • Lemma 4: for g∈E(f)g\in E(f)g∈E(f), y(g)=y(f)+w(g)y(g)=y(f)+w(g)y(g)=y(f)+w(g), where w(g)w(g)w(g) is the unique solution of [I−Q(g)]w=0[I-Q(g)]w=0[I−Q(g)]w=0, Q∗(g)w=Q∗(g)(−y(f))Q^*(g)w=Q^*(g)(-y(f))Q∗(g)w=Q∗(g)(−y(f)).
  • (12): z(f)z(f)z(f) is the unique solution of its system.
  • Lemma 5: G(f)=∅G(f)=\varnothingG(f)=∅ and y(f)≥y(g)y(f)\ge y(g)y(f)≥y(g) for all g∈E(f)g\in E(f)g∈E(f) imply f∈F′′f\in F''f∈F′′.
  • Two steps of the proof of Theorem 6: H(f)=∅⇒y(g)≤y(f)H(f)=\varnothing\Rightarrow y(g)\le y(f)H(f)=∅⇒y(g)≤y(f) on E(f)E(f)E(f); and g∈H(f)⇒w(g)>w(f)=0g\in H(f)\Rightarrow w(g)>w(f)=0g∈H(f)⇒w(g)>w(f)=0, or w(g)=w(f)=0w(g)=w(f)=0w(g)=w(f)=0 and z(g)>z(f)z(g)>z(f)z(g)>z(f).

Significance

Theorem 6 turns Blackwell's existence result into an algorithm. Blackwell's characterization requires maximizing the bias over F′F'F′, a set with no explicit description; Lemma 5 shows that maximizing over the explicitly available set E(f)E(f)E(f) suffices, and Lemma 4 shows that this maximization has the same form as the original gain maximization, so the familiar policy improvement machinery applies a second time. The same mechanism, iterated, gives the nnn-discount optimal policies of the later sensitivity theory and the lexicographic policy improvement algorithms in standard texts.

The results are proved in the paper (with a correction to the proof of Lemma 5 credited to Bruce Miller). They are not formalized in any proof assistant known to the mission. A complete development yields machine-checked policy improvement for average and bias optimality on top of the published Blackwell model, including the convergence-free closed forms of gain, bias and zzz and the facts about the limit matrix Q∗Q^*Q∗ and the deviation matrix they rest on.

Difficulty

Parts 1 and 3 are Blackwell's policy improvement for the gain, transported to Veinott's set G(f)G(f)G(f). The new content is in parts 2 and 4, and in both the obvious argument fails at the same place: the bias of g∈E(f)g\in E(f)g∈E(f) cannot be compared with the bias of fff by a state-by-state test in the original problem, because E(f)E(f)E(f) is a product of action sets E(s,f)E(s,f)E(s,f) different from the original ones, and Blackwell's comparison works only after a reduction to a problem in which the reward is −y(f)-y(f)−y(f) and the role of the gain is played by w(g)w(g)w(g). A second difficulty is Lemma 5: E(f)E(f)E(f) may be a proper subset of F′F'F′ (Example 3 of the paper), so maximizing the bias over E(f)E(f)E(f) does not obviously maximize it over F′F'F′. The certificate does not follow from the gain and bias tests at fff alone, and the paper's original proof of it contained an error (corrected, as the paper records, by Bruce Miller).

Formalization scope

Everything is built on the published Blackwell definitions (BlackwellDiscreteDP.NearOne.Model, LimitMatrix, GainBias): one finite action type available in every state (Veinott's AsA_sAs​ are all equal to it), decision rules St → Act, policies indexed from 000 (π 0 is f1f_1f1​), real vectors St → ℝ with the pointwise order, and VecGt for the paper's >>> (not coordinatewise strict). Q∗(f)Q^*(f)Q∗(f) is the published Cesàro limit lim⁡(N+1)−1∑i=0NQ(f)i\lim (N+1)^{-1}\sum_{i=0}^N Q(f)^ilim(N+1)−1∑i=0N​Q(f)i, the same limit as Veinott's N−1∑i=0N−1N^{-1}\sum_{i=0}^{N-1}N−1∑i=0N−1​. The gain and bias are the published closed forms x(f)=Q∗(f)r(f)x(f)=Q^*(f)r(f)x(f)=Q∗(f)r(f) and y(f)=H(f)r(f)y(f)=H(f)r(f)y(f)=H(f)r(f) with the deviation matrix H(f)H(f)H(f); the new vectors are closed forms too: w(g)=Q∗(g)(−y(f))w(g)=Q^*(g)(-y(f))w(g)=Q∗(g)(−y(f)) and z(f)=H(f)(−y(f))z(f)=H(f)(-y(f))z(f)=H(f)(−y(f)), and their characterizations by (10) and (12) are milestones. 1-optimality is the published IsNearlyOptimal, which compares against every policy. Veinott's set H(f)H(f)H(f) is HSet, to keep it apart from the deviation matrix Hf.

G(f)G(f)G(f) and H(f)H(f)H(f) are defined literally from the paper's inequalities, including the clauses "at least one strict" and "g(s)=f(s)g(s)=f(s)g(s)=f(s) where the tests are equalities". Dropping either clause makes parts 3 and 4 false (a ggg that only reshuffles ties would count as an improvement); replacing F′′F''F′′ or G(f)G(f)G(f) by a set defined through the conclusion of the theorem would make the goal trivial. Neither is acceptable.

The reduction "replace AsA_sAs​ by E(s,f)E(s,f)E(s,f) and r(g)r(g)r(g) by −y(f)-y(f)−y(f)" is not instantiated, since the published model has a single action set; its two uses in the proof of Theorem 6 are milestones stated in the original model. A development of the general model with state-dependent action sets, and of the limit-matrix identities Q∗Q=QQ∗=Q∗Q∗=Q∗Q^*Q=QQ^*=Q^*Q^*=Q^*Q∗Q=QQ∗=Q∗Q∗=Q∗, (I−Q)H=I−Q∗(I-Q)H=I-Q^*(I−Q)H=I−Q∗, Q∗H=0Q^*H=0Q∗H=0, would be reusable well beyond this mission. Proofs of any milestone are welcome, as is a proof of the published Theorem 3 and Lemma 1, on which most of the mission rests.

Selected references

  • D. Blackwell, Discrete Dynamic Programming, Ann. Math. Statist. 33(2):719–726, 1962. https://doi.org/10.1214/aoms/1177704593
  • A. F. Veinott, Jr., On Finding Optimal Policies in Discrete Dynamic Programming with No Discounting, Ann. Math. Statist. 37(5):1284–1294, 1966. https://doi.org/10.1214/aoms/1177699272
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
  • A. F. Veinott, Jr., Discount Optimality and Sensitive Optimality, Ann. Math. Statist. 40(5):1635–1660, 1969. https://doi.org/10.1214/aoms/1177697379
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
16 thms2 active usersReviewed
ProbabilityStochastic Systems·Captain: mikedeng1

Random Walks in a Random Environment 1: Transience to +∞, to −∞, or Recurrence According to Σ n⁻¹P(ρ_n > 1) < ∞, Σ n⁻¹P(ρ_n < 1) < ∞, or Both Infinite (E ln σ < 0, > 0, = 0)Research Paper

Motivation

A random walk on the integers in which the probability of stepping right depends on the current site is the simplest model of motion through a disordered medium: a particle diffusing in a crystal with impurities, a molecule moving along a heterogeneous polymer, or a gene frequency drifting under fluctuating selection. When the site-dependent probabilities are themselves drawn at random, the result is a random walk in a random environment (RWRE). Fred Solomon's 1975 paper [Solomon 1975] gave the first rigorous analysis of this model on Z\mathbb ZZ with independent, identically distributed site probabilities, and its recurrence criterion opened the subject now surveyed in [Zeitouni 2004].

Timeline. Chung [Chung 1960, pp. 65–71] gave the hitting probabilities and the recurrence/transience criterion for a nearest-neighbour chain on Z\mathbb ZZ with fixed, site-dependent transition probabilities. Fluctuation theory, as presented in Chung's A Course in Probability Theory [Chung 1968, Ch. 8], characterises when a sum of i.i.d. random variables drifts to −∞-\infty−∞, to +∞+\infty+∞, or oscillates, through the series ∑1nP(Sn>0)\sum\frac1nP(S_n>0)∑n1​P(Sn​>0) and ∑1nP(Sn<0)\sum\frac1nP(S_n<0)∑n1​P(Sn​<0). Solomon (1975) combined the two to classify the RWRE on Z\mathbb ZZ, and also computed its speed and exhibited sub-ballistic and non-Gaussian behaviour. Kesten, Kozlov and Spitzer (1975) [KKS 1975] identified stable limit laws in the transient sub-ballistic regime, and Sinai (1982) [Sinai 1982] found the (log⁡n)2(\log n)^2(logn)2 scaling of the recurrent case.

Setting

Let α=(αn)n∈Z\alpha=(\alpha_n)_{n\in\mathbb Z}α=(αn​)n∈Z​ be independent, identically distributed random variables with values in [0,1][0,1][0,1]. Given a fixed sequence a=(an)a=(a_n)a=(an​) in [0,1][0,1][0,1] (an environment), the chain MaM_aMa​ on Z\mathbb ZZ jumps from nnn to n+1n+1n+1 with probability ana_nan​ and to n−1n-1n−1 with probability βn=1−an\beta_n=1-a_nβn​=1−an​. The random walk in a random environment (Xn)n≥0(X_n)_{n\ge0}(Xn​)n≥0​ is the process obtained by first drawing α\alphaα and then running MαM_\alphaMα​ from X0=0X_0=0X0​=0; jointly,

P(α∈A, X0=x0,…,Xn=xn)=∫{α∈A}1{x0=0}∏k<nMα(xk,xk+1) dP.P(\alpha\in A,\ X_0=x_0,\dots,X_n=x_n)=\int_{\{\alpha\in A\}}\mathbf 1\{x_0=0\}\prod_{k<n}M_\alpha(x_k,x_{k+1})\,dP .P(α∈A, X0​=x0​,…,Xn​=xn​)=∫{α∈A}​1{x0​=0}k<n∏​Mα​(xk​,xk+1​)dP.

The walk is a Markov chain given the environment, but not after averaging over it. Define

σn=βnαn∈[0,∞],ρn=σ1⋯σn (n≥1),ρ−n=σ−1⋯σ−n (n≥1),\sigma_n=\frac{\beta_n}{\alpha_n}\in[0,\infty],\qquad \rho_n=\sigma_1\cdots\sigma_n\ (n\ge1),\qquad \rho_{-n}=\sigma_{-1}\cdots\sigma_{-n}\ (n\ge1),σn​=αn​βn​​∈[0,∞],ρn​=σ1​⋯σn​ (n≥1),ρ−n​=σ−1​⋯σ−n​ (n≥1),

and, for a fixed environment, the hitting probability fij=P(Xn=j for some n>0∣X0=i)f_{ij}=P(X_n=j\text{ for some }n>0\mid X_0=i)fij​=P(Xn​=j for some n>0∣X0​=i). The quantity E(ln⁡σ)E(\ln\sigma)E(lnσ) is defined when the expectation of the positive or of the negative part of ln⁡σ∈[−∞,∞]\ln\sigma\in[-\infty,\infty]lnσ∈[−∞,∞] is finite.

Formalization targets

Goal: Theorem (1.7)

Assume α0\alpha_0α0​ is not almost surely constant and either 0≤αn<10\le\alpha_n<10≤αn​<1 for all nnn or 0<αn≤10<\alpha_n\le10<αn​≤1 for all nnn. Then

∑n≥11nP(ρn>1)<∞⇒Xn→+∞,∑n≥11nP(ρn<1)<∞⇒Xn→−∞,\sum_{n\ge1}\tfrac1nP(\rho_n>1)<\infty\Rightarrow X_n\to+\infty,\qquad \sum_{n\ge1}\tfrac1nP(\rho_n<1)<\infty\Rightarrow X_n\to-\infty,n≥1∑​n1​P(ρn​>1)<∞⇒Xn​→+∞,n≥1∑​n1​P(ρn​<1)<∞⇒Xn​→−∞,

and if both series diverge, −∞=lim inf⁡Xn<lim sup⁡Xn=+∞-\infty=\liminf X_n<\limsup X_n=+\infty−∞=liminfXn​<limsupXn​=+∞, all almost surely. When E(ln⁡σ)E(\ln\sigma)E(lnσ) is defined, the three cases are exactly E(ln⁡σ)<0E(\ln\sigma)<0E(lnσ)<0, >0>0>0, =0=0=0.

Milestones

Theorem (0.1): almost-sure properties of the walk in almost every fixed environment transfer to the RWRE. Lemma (1.1)(i)–(ii): the hitting probabilities fijf_{ij}fij​ in a fixed environment with 0<an<10<a_n<10<an​<1, as ratios of series in σ\sigmaσ. Lemma (1.5): in a fixed environment, ∑(ρ−n)−1\sum(\rho_{-n})^{-1}∑(ρ−n​)−1 and ∑ρn\sum\rho_n∑ρn​ decide transience to +∞+\infty+∞, to −∞-\infty−∞, or recurrence. Lemma (1.6): fluctuation theory for i.i.d. sums, including the summability of eSne^{S_n}eSn​. Two claims from the proof of (1.7) (p. 5): the boundary cases where αn\alpha_nαn​ equals 111 or 000 with positive probability, and the equivalence E(ln⁡σ)<0  ⟺  Sn→−∞  ⟺  ∑1nP(ρn>1)<∞E(\ln\sigma)<0\iff S_n\to-\infty\iff\sum\frac1nP(\rho_n>1)<\inftyE(lnσ)<0⟺Sn​→−∞⟺∑n1​P(ρn​>1)<∞ for Sn=ln⁡σ1+⋯+ln⁡σnS_n=\ln\sigma_1+\dots+\ln\sigma_nSn​=lnσ1​+⋯+lnσn​. A companion item asserts that the RWRE exists for every law of α0\alpha_0α0​ on [0,1][0,1][0,1].

Significance

The theorem classifies the long-run behaviour of the RWRE on Z\mathbb ZZ by a condition on the law of a single site variable, with no moment assumption. It shows that the averaged drift Eα0−Eβ0E\alpha_0-E\beta_0Eα0​−Eβ0​ is not the right quantity: a walk can be recurrent or transient to the left while its average step is positive, because the criterion involves Eln⁡σE\ln\sigmaElnσ, a geometric rather than arithmetic mean. The criterion is the starting point for the speed law (Theorem (1.16) of the same paper), for the limit laws of Kesten–Kozlov–Spitzer and Sinai, and for the large-deviation theory of RWRE.

Solomon's results are proved; none of them, nor the fixed-environment criterion of Chung, is formalized in Lean. This mission produces machine-checked statements of the full trichotomy including the boundary cases σ∈{0,∞}\sigma\in\{0,\infty\}σ∈{0,∞}, of the classical hitting-probability formulas for birth–death chains on Z\mathbb ZZ, and of the fluctuation-theory criterion with infinite-valued expectations allowed.

Difficulty

The naive approach applies the law of large numbers to XnX_nXn​; it fails because the increments Xj−Xj−1X_{j}-X_{j-1}Xj​−Xj−1​ are neither independent nor stationary once the environment is averaged out. The argument must instead pass through a fixed environment, where the criterion of Lemma (1.5) involves the full random series ∑ρn\sum\rho_n∑ρn​ and ∑ρ−n−1\sum\rho_{-n}^{-1}∑ρ−n−1​, and then decide when these series converge almost surely. That step requires fluctuation theory for ln⁡ρn=∑k≤nln⁡σk\ln\rho_n=\sum_{k\le n}\ln\sigma_klnρn​=∑k≤n​lnσk​, a random walk whose steps may be infinite and may have no mean. In Lean, the main missing infrastructure is the fluctuation-theory criterion ∑1nP(Sn>0)<∞  ⟺  Sn→−∞\sum\frac1nP(S_n>0)<\infty\iff S_n\to-\infty∑n1​P(Sn​>0)<∞⟺Sn​→−∞, which Mathlib does not have, and the transfer from quenched to annealed statements for a process defined only through its cylinder laws.

Formalization scope

Everything lives in the namespace SolomonRWRE.Recurrence. The fixed-environment chain is IsChainInEnv P a i X, specified by its cylinder probabilities. The RWRE is IsRWRE P α X on an arbitrary probability space: measurable αn\alpha_nαn​ with values in [0,1][0,1][0,1] at every outcome, iIndepFun α P, identically distributed, and the joint cylinder law above. σn\sigma_nσn​, ρn\rho_nρn​, fijf_{ij}fij​ and all series are in [0,∞][0,\infty][0,∞] (ℝ≥0∞), so "<∞<\infty<∞" and "=∞=\infty=∞" are literal; series over n≥1n\ge1n≥1 are indexed by n+1n+1n+1 in Lean. ln⁡σ\ln\sigmalnσ and SnS_nSn​ are extended reals, E(ln⁡σ)E(\ln\sigma)E(lnσ) is the difference of two lower Lebesgue integrals, and "defined" means one of them is finite. Recurrence is always stated in the paper's "in fact" form: lim inf⁡Xn=−∞\liminf X_n=-\inftyliminfXn​=−∞ and lim sup⁡Xn=+∞\limsup X_n=+\inftylimsupXn​=+∞. "Correspond respectively" is formalized as three equivalences between the series conditions and the sign conditions.

Two trivializing formalizations are ruled out. Without nondegeneracy (α≡12\alpha\equiv\frac12α≡21​) both series vanish and (i), (ii) would contradict each other; the hypothesis is part of every statement that needs it. A cylinder law that cannot be met would make every theorem vacuous; a sorry-free check confirms that the environment α≡1\alpha\equiv1α≡1 with Xn=nX_n=nXn​=n satisfies IsRWRE, and the companion item asserts existence for every law of α0\alpha_0α0​. The page's alternative "0≤αn<10\le\alpha_n<10≤αn​<1 for all nnn or 0<αn≤10<\alpha_n\le10<αn​≤1 for all nnn" is kept, since a single range [0,1][0,1][0,1] would let 0⋅∞=00\cdot\infty=00⋅∞=0 change ρn\rho_nρn​.

Needed infrastructure: hitting probabilities of birth–death chains (reusable for any nearest-neighbour chain), the fluctuation-theory criterion for i.i.d. sums with extended values (reusable throughout applied probability), and a quenched-to-annealed transfer lemma. Contributions to any of these are welcome.

Selected references

  • F. Solomon, Random walks in a random environment, The Annals of Probability 3(1):1–31, 1975. https://doi.org/10.1214/aop/1176996444
  • K. L. Chung, Markov Chains with Stationary Transition Probabilities, Springer, Berlin, 1960 (pp. 65–71; reference [1] of Solomon 1975, https://doi.org/10.1214/aop/1176996444).
  • K. L. Chung, A Course in Probability Theory, Harcourt, Brace and World, New York, 1968 (Ch. 8; reference [2] of Solomon 1975, https://doi.org/10.1214/aop/1176996444).
  • H. Kesten, M. V. Kozlov, F. Spitzer, A limit law for random walk in a random environment, Compositio Mathematica 30(2):145–168, 1975. http://www.numdam.org/item/CM_1975__30_2_145_0/
  • Ya. G. Sinai, The limiting behavior of a one-dimensional random walk in a random medium, Theory of Probability and its Applications 27(2):256–268, 1982. https://doi.org/10.1137/1127028
  • O. Zeitouni, Random walks in random environment, Lectures on Probability Theory and Statistics (Saint-Flour 2001), Lecture Notes in Mathematics 1837, Springer, 2004. https://doi.org/10.1007/978-3-540-39874-5_2
9 thms2 active usersReviewed
🏆Completed
Dynamic ProgrammingOperations ResearchStochastic Systems·Captain: mikedeng1

Quality Control under Markovian Deterioration 1: A Discounted-Optimal Policy Produces, Inspects, Produces Again and Revises on Successive Intervals of the BeliefResearch Paper

Motivation

A production process deteriorates over time, and the state it is in cannot be observed directly. Each period the operator chooses among three actions: produce without looking, produce and inspect the item (which reveals the current state at a cost), or revise the process back to its good state. This is one of the earliest partially observed Markov decision problems with a costly observation action, and it is the prototype of the inspection and machine-replacement models that followed in operations research and maintenance theory. Ross (Management Science 17(9), 1971) set it up for a countable state space, reduced it to a fully observed problem on beliefs, and determined the structure of an optimal policy for two states.

Intuition suggests a three-region policy for two states: produce while the probability of the bad state is small, inspect at intermediate probabilities, revise when it is large. Ross showed that the true structure has up to four regions: produce, inspect, produce again, revise. This mission formalizes that structure theorem and the general results it rests on.

Setting

The underlying process has a countable set of states 0,1,2,…0,1,2,\dots0,1,2,…, with transition probabilities PijP_{ij}Pij​ from state iii at the end of a period to state jjj at the beginning of the next. In state iii, producing without inspection costs CiC_iCi​, producing with inspection costs IiI_iIi​, and revising costs RiR_iRi​; costs are bounded, and future costs are discounted by β∈(0,1)\beta\in(0,1)β∈(0,1). A revision puts the process in state 000.

The decision maker tracks a belief P=(P0,P1,… )P=(P_0,P_1,\dots)P=(P0​,P1​,…), a probability vector on the states, ranging over

S={P:Pi≥0, ∑iPi=1}.S=\Big\{P: P_i\ge0,\ \sum_iP_i=1\Big\}.S={P:Pi​≥0, i∑​Pi​=1}.

Producing without inspection moves the belief to TPTPTP, with (TP)i=∑jPjPji(TP)_i=\sum_jP_jP_{ji}(TP)i​=∑j​Pj​Pji​. Inspecting reveals the state; if it is iii, the next belief is the row ei=(Pi0,Pi1,… )e^i=(P_{i0},P_{i1},\dots)ei=(Pi0​,Pi1​,…). Revising leads to e0e^0e0.

The β\betaβ-discounted optimal cost VβV_\betaVβ​ is the limit of value iteration: V0=0V^0=0V0=0 and

Vn+1(P)=min⁡{∑iPiCi+βVn(TP); ∑iPiIi+β∑iPiVn(ei); ∑iPiRi+βVn(e0)}.V^{n+1}(P)=\min\Big\{\sum_iP_iC_i+\beta V^n(TP);\ \sum_iP_iI_i+\beta\sum_iP_iV^n(e^i);\ \sum_iP_iR_i+\beta V^n(e^0)\Big\}.Vn+1(P)=min{i∑​Pi​Ci​+βVn(TP); i∑​Pi​Ii​+βi∑​Pi​Vn(ei); i∑​Pi​Ri​+βVn(e0)}.

The three terms with VnV^nVn replaced by VβV_\betaVβ​ form the right side of the optimality equation (1). The β\betaβ-optimal produce, inspect and revise regions are the sets of beliefs at which the corresponding term equals Vβ(P)V_\beta(P)Vβ​(P), and a stationary rule is β\betaβ-optimal when it always selects an action attaining the minimum.

In the two-state process of §3, state 000 is good and state 111 is bad: P00=1−πP_{00}=1-\piP00​=1−π, P11=1P_{11}=1P11​=1, C0=0C_0=0C0​=0, C1=CC_1=CC1​=C, I0=I1=II_0=I_1=II0​=I1​=I, R0=R1=RR_0=R_1=RR0​=R1​=R, with C<I<RC<I<RC<I<R. The belief is a number P∈[0,1]P\in[0,1]P∈[0,1], the probability of the bad state, TP=P+π−πPTP=P+\pi-\pi PTP=P+π−πP, and the optimality equation becomes

Vβ(P)=min⁡{CP+βVβ(TP); I+βPVβ(1)+β(1−P)Vβ(π); R+βVβ(π)}.(3)V_\beta(P)=\min\{CP+\beta V_\beta(TP);\ I+\beta PV_\beta(1)+\beta(1-P)V_\beta(\pi);\ R+\beta V_\beta(\pi)\}.\tag{3}Vβ​(P)=min{CP+βVβ​(TP); I+βPVβ​(1)+β(1−P)Vβ​(π); R+βVβ​(π)}.(3)

Formalization targets

Goal: Theorem 3.3, the four-region structure

There are thresholds π≤P1≤P2≤P3\pi\le P_1\le P_2\le P_3π≤P1​≤P2​≤P3​ with P2≤1P_2\le1P2​≤1 such that the rule

produce on [0,P1),inspect on [P1,P2),produce on [P2,P3),revise on [P3,1]\text{produce on }[0,P_1),\quad\text{inspect on }[P_1,P_2),\quad\text{produce on }[P_2,P_3),\quad\text{revise on }[P_3,1]produce on [0,P1​),inspect on [P1​,P2​),produce on [P2​,P3​),revise on [P3​,1]

is β\betaβ-optimal, and P3≤1P_3\le1P3​≤1 whenever revising is β\betaβ-optimal at some belief. Degenerate thresholds (empty intervals) are allowed, so the statement fixes only the order of the regions, not their number.

Milestones

  1. (1): value iteration converges on SSS, VβV_\betaVβ​ is bounded, solves (1), and is its unique bounded solution.
  2. Lemma 2.1: VβV_\betaVβ​ is concave on SSS.
  3. Theorem 2.2: the β\betaβ-optimal inspect and revise regions are convex.
  4. (3): the two-state optimality equation, as an instance of (1).
  5. Lemma 3.1: in the two-state model VβV_\betaVβ​ is nondecreasing on [0,1][0,1][0,1].
  6. Lemma 3.2: for 0≤P≤π0\le P\le\pi0≤P≤π, producing is strictly better than inspecting and than revising.

Significance

Theorem 3.3 reduces the search for an optimal policy in the two-state problem to the choice of three numbers, and it fixes the order of the regions: there is never a revise region below an inspect region, and inspection never occurs below the deterioration probability π\piπ. Together with Theorems 3.4 and 3.7 of the same paper (separate missions in this series), it is the basis for computing optimal inspection policies by searching over thresholds. Theorem 2.2 holds for any countable state space and is the general form of the observation that, in partially observed problems with linear-in-belief action costs, the regions of the "information" and "reset" actions are convex while the region of the passive action need not be.

The results are proved in the paper. As far as a search of the Prove2Me library shows (October 2026), none of them is formalized. Related formal work treats other models: belief-state reductions of finite POMDPs, and abstract contraction models for discounted dynamic programming. The mission produces machine-checked versions of the general model's optimality equation, the concavity of its value function, the convexity of two of its regions, and the two-state structure theorem.

Difficulty

The paper's proofs are short and lean on facts quoted from the literature. Theorem 3.3's proof is two sentences long. Filling it in requires several facts that the paper leaves implicit. The revise region of the two-state model is a closed right-hand interval. The inspect region meets [0,1][0,1][0,1] in an interval, through the affine embedding P↦(1−P,P)P\mapsto(1-P,P)P↦(1−P,P) of [0,1][0,1][0,1] into SSS. The half-open endpoints of the rule select optimal actions. That last point needs continuity of VβV_\betaVβ​ inside (0,1)(0,1)(0,1), a consequence of concavity, and Lemma 3.2 at the left end. The naive reading of the printed theorem, with all three thresholds in [0,1][0,1][0,1], is false in general (see below), so the threshold bookkeeping cannot be skipped.

On the general side, the optimality equation (1) is quoted from Blackwell. Here it must be proved for value iteration on the belief simplex of a countable state space, where the inspect term is an infinite series of values at the rows eie^iei. Its convergence and the contraction estimates use the boundedness of the costs.

Formalization scope

The general model is a structure over a type ι with [Countable ι], a distinguished state i₀, a transition matrix Pm, costs C I R : ι → ℝ and β. A separate predicate Model.Valid requires nonnegative entries, rows with HasSum (Pm i) 1, bounded costs and 0 < β < 1. The simplex uses HasSum P 1, never tsum, so it consists of genuine probability vectors. VβV_\betaVβ​ is defined as limUnder atTop of value iteration from V0=0V^0=0V0=0, which is the paper's own characterization in the proof of Lemma 2.1. It is not an arbitrary function assumed to satisfy (1). The paper's definition as an infimum over measurable policies is not formalized; the policy class would be a separate mission. Regions are subsets of SSS.

The two-state model is the instance ι = Fin 2 with P00=1−πP_{00}=1-\piP00​=1−π, P01=πP_{01}=\piP01​=π, P10=0P_{10}=0P10​=0, P11=1P_{11}=1P11​=1, and its value at the scalar belief PPP is the general VβV_\betaVβ​ at (1−P,P)(1-P,P)(1−P,P). The general Lemma 2.1 and Theorem 2.2 therefore apply to it without restatement. Standing hypotheses of §3 are 0<β<10<\beta<10<β<1, 0≤π≤10\le\pi\le10≤π≤1 and 0<C<I<R0<C<I<R0<C<I<R. 0<C0<C0<C is implicit in the paper, where the good state costs 000 and the bad state CCC. "β\betaβ-optimal rule" means a rule selecting a minimizer of the right side of (3) at every P∈[0,1]P\in[0,1]P∈[0,1], the criterion the paper quotes on p. 588. "Every β\betaβ-optimal policy produces" (Lemma 3.2) means that producing is the unique minimizer.

Threshold repair. The paper prints π≤P1≤P2≤P3≤1\pi\le P_1\le P_2\le P_3\le1π≤P1​≤P2​≤P3​≤1. This is false when revising is never optimal, for instance when R>C/(1−β(1−π))R>C/(1-\beta(1-\pi))R>C/(1−β(1−π)): then always producing is optimal and revising at P=1P=1P=1 is strictly worse, so no rule revising on a nonempty [P3,1][P_3,1][P3​,1] is optimal. The goal keeps P3≤1P_3\le1P3​≤1 exactly when the β\betaβ-optimal revise region is nonempty and otherwise allows P3>1P_3>1P3​>1; the rest of the printed chain, π≤P1≤P2≤1\pi\le P_1\le P_2\le1π≤P1​≤P2​≤1, is kept. Adding the hypothesis R<C/(1−β(1−π))R<C/(1-\beta(1-\pi))R<C/(1−β(1−π)) instead would drop a case the paper covers.

The statement admits no trivializing reading. The thresholds are quantified existentially, but the rule must be optimal at every belief in [0,1][0,1][0,1], VβV_\betaVβ​ is pinned down by its definition, and the paper's numbers (C=4C=4C=4, π=0.1\pi=0.1π=0.1, I=6I=6I=6, R=10R=10R=10, β=0.9\beta=0.9β=0.9) satisfy all hypotheses.

Infrastructure needed: tsum manipulations on the belief simplex (linearity of TTT, summability of ∑iPiV(ei)\sum_iP_iV(e^i)∑i​Pi​V(ei) for bounded VVV), a sup-norm contraction argument for value iteration, and closure of concavity under minima and pointwise limits. The value-iteration and contraction lemmas are reusable for any discounted model with bounded costs. Contributions of intermediate lemmas, such as continuity of the two-state VβV_\betaVβ​ on (0,1](0,1](0,1] or the bridge identities T(1−P,P)=(1−TP,TP)T(1-P,P)=(1-TP,TP)T(1−P,P)=(1−TP,TP), are welcome.

Selected references

  • S. M. Ross, Quality Control under Markovian Deterioration, Management Science 17(9):587–596, 1971. https://doi.org/10.1287/mnsc.17.9.587
  • D. Blackwell, Discounted Dynamic Programming, Annals of Mathematical Statistics 36(1):226–235, 1965. https://doi.org/10.1214/aoms/1177700285
  • K. J. Åström, Optimal Control of Markov Processes with Incomplete State Information, Journal of Mathematical Analysis and Applications 10(1):174–205, 1965. https://doi.org/10.1016/0022-247X(65)90154-X
9 thms2 active usersReviewed
Dynamic ProgrammingLinear OptimizationOperations Research·Captain: mikedeng1

Linear Programming and Sequential Decisions: An Optimal Solution of the Equilibrium LP Yields a Stationary Decision Rule of Least Expected Monthly CostResearch Paper

Motivation

Alan S. Manne's Linear Programming and Sequential Decisions (Management Science 6(3), 1960, pp. 259–267) is the first formulation of an infinite-horizon, average-cost sequential decision problem as a linear program. The illustration is a single-item inventory problem, but the construction, with unknowns indexed by a state and a decision and constraints expressing statistical equilibrium, became the standard state–action frequency linear program of Markov decision processes. Later LP approaches to average-cost Markov decision processes, including constrained ones, build on it.

Timeline of the LP approach to average-cost problems:

  • 1960 — Manne: the inventory model as a linear program in the joint probabilities of (stock level, production quantity); mixed strategies allowed; the decision rule is read off as a conditional probability.
  • 1960 — H. M. Wagner, in a companion note in the same issue, shows that an optimal solution consisting of pure strategies exists.
  • 1962 — C. Derman (Management Science 9(1), 1962) gives the general finite-state, finite-action version, assuming every stationary randomized rule yields an irreducible chain.
  • 1960 — F. d'Epenoux (Revue Française de Recherche Opérationnelle 4, No. 14; English translation 1963) treats the discounted criterion by linear programming, as Manne's closing note records.

Setting

A positive integer TTT bounds inventory accumulation; the stock levels are 0,1,…,T0,1,\dots,T0,1,…,T. At the start of a month the initial stock iii is observed and a production quantity jjj is chosen; the available stock is k=i+jk=i+jk=i+j. The month's demand n∈{0,1,2,… }n\in\{0,1,2,\dots\}n∈{0,1,2,…} is independent of everything else and has law pnp_npn​. Backlogs are excluded, so the terminal stock is t=max⁡(0,k−n)t=\max(0,k-n)t=max(0,k−n), which becomes the next initial stock. A finite set AAA of admissible pairs (i,j)(i,j)(i,j), all with i+j≤Ti+j\le Ti+j≤T and containing (i,0)(i,0)(i,0) for every i≤Ti\le Ti≤T, lists the decisions available at each stock level. Costs are three arbitrary real functions: C1(i)C_1(i)C1​(i) of the initial stock, C2(j)C_2(j)C2​(j) of the production quantity, and C3(n−k)C_3(n-k)C3​(n−k) of the shortage level.

A stationary randomized decision rule q(j∣i)q(j\mid i)q(j∣i) is a conditional probability of producing jjj at stock iii, supported on admissible pairs. It makes the initial stock a Markov chain. A statistical equilibrium of qqq is a stationary distribution y=(y0,…,yT)y=(y_0,\dots,y_T)y=(y0​,…,yT​) of that chain: the law y′y'y′ of the terminal stock equals the law yyy of the initial stock, (2). The expected monthly cost (1) of qqq in the equilibrium yyy is

EC1(i)+EC2(j)+EC3(n−k),\mathcal EC_1(i)+\mathcal EC_2(j)+\mathcal EC_3(n-k),EC1​(i)+EC2​(j)+EC3​(n−k),

the expectation taken under the joint law yi q(j∣i) pny_i\,q(j\mid i)\,p_nyi​q(j∣i)pn​ of (initial stock, production, demand).

The linear program has one unknown xijx_{ij}xij​ per admissible pair, the joint probability of (initial stock iii, production jjj). Its constraints are xij≥0x_{ij}\ge0xij​≥0, (4) ∑i,jxij=1\sum_{i,j}x_{ij}=1∑i,j​xij​=1, and the equilibrium equations

(8.t)∑jxtj=∑i,j,n:i+j−n=tpnxij(t=1,…,T),\text{(8.t)}\qquad \sum_j x_{tj}=\sum_{\substack{i,j,n:\\ i+j-n=t}}p_nx_{ij}\qquad(t=1,\dots,T),(8.t)j∑​xtj​=i,j,n:i+j−n=t​∑​pn​xij​(t=1,…,T),

and its objective (9) is ∑i,jcijxij\sum_{i,j}c_{ij}x_{ij}∑i,j​cij​xij​ with the cost coefficients (10)

cij=C1(i)+C2(j)+∑npnC3(n−i−j).c_{ij}=C_1(i)+C_2(j)+\sum_np_nC_3(n-i-j).cij​=C1​(i)+C2​(j)+n∑​pn​C3​(n−i−j).

The companion equation (8.0) for t=0t=0t=0 has right-hand side ∑i+j−n≤0pnxij\sum_{i+j-n\le0}p_nx_{ij}∑i+j−n≤0​pn​xij​ and is omitted from the constraints. A feasible xxx is decoded into yi=∑jxijy_i=\sum_jx_{ij}yi​=∑j​xij​ and q(j∣i)=xij/yiq(j\mid i)=x_{ij}/y_iq(j∣i)=xij​/yi​.

Formalization targets

The paper labels no theorem or lemma. The goal is assembled from §1 (third paragraph), §3 (N.B.), §4 (last two paragraphs), §5 and §7 (3), and every milestone is cited by section, display, table or footnote.

Goal: an LP optimum gives an optimal stationary rule

Assume ∑npn∣C3(n−i−j)∣<∞\sum_np_n|C_3(n-i-j)|<\infty∑n​pn​∣C3​(n−i−j)∣<∞ for every admissible pair. Then the linear program has an optimal solution, and for every optimal solution x∗x^*x∗, with decoding (q∗,y∗)(q^*,y^*)(q∗,y∗), q∗q^*q∗ is a stationary randomized rule, y∗y^*y∗ is a statistical equilibrium of q∗q^*q∗, and

Cost(q∗,y∗)=∑i,jcijxij∗≤Cost(q,y)\mathrm{Cost}(q^*,y^*)=\sum_{i,j}c_{ij}x^*_{ij}\le \mathrm{Cost}(q,y)Cost(q∗,y∗)=i,j∑​cij​xij∗​≤Cost(q,y)

for every stationary randomized rule qqq and every statistical equilibrium yyy of qqq.

Milestones

  1. (7): under a rule in a distribution yyy, the law of the terminal stock is the right-hand side of (7)/(8) evaluated at xij=yiq(j∣i)x_{ij}=y_iq(j\mid i)xij​=yi​q(j∣i).
  2. (8.0)–(8.T): a rule in statistical equilibrium yields a point satisfying x≥0x\ge0x≥0, (4) and all of (8.0)–(8.T).
  3. (8.0) is redundant: (4) and (8.1)–(8.T) imply (8.0).
  4. §3, N.B.: every feasible xxx equals yiq(j∣i)y_iq(j\mid i)yi​q(j∣i) for its decoding (q,y)(q,y)(q,y), with yyy an equilibrium of qqq.
  5. (10): the expected monthly cost (1) under the joint law xijpnx_{ij}p_nxij​pn​ equals ∑cijxij\sum c_{ij}x_{ij}∑cij​xij​.
  6. Table 1: the cost coefficients of the §6 example (T=3T=3T=3, p=(2/3,0,1/3)p=(2/3,0,1/3)p=(2/3,0,1/3), C1(i)=iC_1(i)=iC1​(i)=i, C2(j)=3jC_2(j)=3jC2​(j)=3j, C3(m)=max⁡[0,6m]C_3(m)=\max[0,6m]C3​(m)=max[0,6m], j∈{0,1}j\in\{0,1\}j∈{0,1}) are 4,5,3,4,2,5,34,5,3,4,2,5,34,5,3,4,2,5,3.
  7. Table 2, footnote 3: x01=1/3x_{01}=1/3x01​=1/3, x11=2/9x_{11}=2/9x11​=2/9, x20=4/9x_{20}=4/9x20​=4/9 is optimal with cost 31/931/931/9; the do-nothing solution costs 444.
  8. Footnote 5: the implicit prices −7/3,−13/3,−11/3-7/3,-13/3,-11/3−7/3,−13/3,−11/3 of (8.1)–(8.3), with 31/931/931/9 on (4), are an optimal dual solution.

Significance

The result turns an infinite-horizon control problem into a finite linear program. Equilibrium joint laws of (state, decision) under stationary randomized rules are exactly the feasible points of a polytope, and the average cost is linear on it. Consequences include computability by the simplex method; an economic reading of the dual variables (Manne's footnote 5 interprets them as the relative advantage of starting at a given stock level, related to Bellman's functional equation); and, in later work, the treatment of side constraints, which dynamic programming handles poorly.

The result is classical and proved in the paper (largely by inspection of the definitions). It has not been formalized. The formalization adds three things. First, a precise statement of what is optimized when the chain of a rule is not irreducible: the paper's §7 (3) concedes that a "decomposable" optimum makes the equilibrium depend on initial conditions, and the goal resolves this by optimizing over (rule, equilibrium) pairs. Second, an explicit treatment of the stock levels the equilibrium never visits, where the paper's quotient xij/∑jxijx_{ij}/\sum_jx_{ij}xij​/∑j​xij​ is undefined. Third, a machine-checked numerical example whose LP is derived from the general definitions, not entered by hand. Derman's later irreducible-case version exists on the platform as a separate open statement; this mission covers Manne's irreducibility-free version on state-dependent action sets.

Difficulty

Each step is elementary; the work is bookkeeping across three descriptions of the same object. The equilibrium is defined through the transition kernel of the controlled chain, the LP through the displayed sums over (i,j,n)(i,j,n)(i,j,n) with conditions i+j−n≤0i+j-n\le0i+j−n≤0 and i+j−n=ti+j-n=ti+j−n=t, and the cost through the joint law of three variables. Identifying them needs a reindexing of the admissible pairs by stock level, the interchange of a finite sum with an infinite sum over demands, and ∑npn=1\sum_np_n=1∑n​pn​=1. The naive argument "the LP constraints are the equilibrium equations, so the LP optimum is the optimal rule" skips two points. The constraints omit (8.0), so equilibrium at stock level 000 must be recovered from (4) and the bound i+j≤Ti+j\le Ti+j≤T. And the decoding fails at unvisited stock levels unless a default action is supplied. Existence of an LP optimum requires compactness of the feasible polytope, not just its nonemptiness.

Formalization scope

All statements live in the namespace ManneLP.Equilibrium. Conventions:

  • Stock levels and production quantities are natural numbers; a model carries T>0T>0T>0, the admissible set AAA (a Finset (ℕ × ℕ) with i+j≤Ti+j\le Ti+j≤T and every (i,0)∈A(i,0)\in A(i,0)∈A), a demand law p:N→Rp:\mathbb N\to\mathbb Rp:N→R with pn≥0p_n\ge0pn​≥0 and HasSum p 1, and costs C1,C2:N→RC_1,C_2:\mathbb N\to\mathbb RC1​,C2​:N→R, C3:Z→RC_3:\mathbb Z\to\mathbb RC3​:Z→R. The shortage level n−i−jn-i-jn−i−j is an integer; no convexity, sign or monotonicity of the costs is assumed.
  • The admissible set is a parameter: §6 imposes a capacity limit j≤1j\le1j≤1. Reading of the page: i+j≤Ti+j\le Ti+j≤T is how §2's requirement max⁡(0,k−n)≤T\max(0,k-n)\le Tmax(0,k−n)≤T holds whatever the demand; (i,0)∈A(i,0)\in A(i,0)∈A (producing nothing is possible) is implicit in §2.
  • The terminal stock is computed by truncated subtraction in N\mathbb NN, which equals max⁡(0,k−n)\max(0,k-n)max(0,k−n). Sums over demands are tsums; the demand is not assumed bounded. The goal and the cost identity assume the expected shortage cost at each admissible pair is finite (absolutely summable), which the page takes for granted.
  • A statistical equilibrium is a stationary distribution of the chain of the rule, defined from the transition probabilities, not from (8). The expected monthly cost is defined from the joint law of (stock, production, demand), not as ∑cijxij\sum c_{ij}x_{ij}∑cij​xij​. The LP constraint set omits (8.0), exactly as the page does.
  • The decoded rule uses the default action j=0j=0j=0 at stock levels with ∑jxij=0\sum_jx_{ij}=0∑j​xij​=0; any admissible default would do.
  • Table 2's x30=εx_{30}=\varepsilonx30​=ε is the paper's device against degeneracy; the example's solution has x30=0x_{30}=0x30​=0. Footnote 5 prints no price for (4); 31/931/931/9 is the price forced by equal objectives, and the dual optimum is not claimed unique.

Trivializing formalizations are ruled out: equilibrium is not defined as (8) (which would make milestone 2 vacuous), (8.0) is not a constraint (which would make milestone 3 vacuous), the cost is not defined as ∑cijxij\sum c_{ij}x_{ij}∑cij​xij​ (which would make milestone 5 and the goal's cost clause definitional), and the optimality comparison ranges over all rules and all of their equilibria, not over irreducible chains or pure rules.

Contributions welcome: proofs of the milestones and the goal; computations of the §6 example from the general definitions; reusable lemmas on stationary distributions of finite stochastic matrices and on the existence of LP optima over compact polytopes.

Selected references

  • A. S. Manne, Linear Programming and Sequential Decisions, Management Science 6(3), 259–267, 1960. https://doi.org/10.1287/mnsc.6.3.259
  • H. M. Wagner, On the Optimality of Pure Strategies, Management Science 6(3), 268–269, 1960. https://doi.org/10.1287/mnsc.6.3.268
  • C. Derman, On Sequential Decisions and Markov Chains, Management Science 9(1), 16–24, 1962. https://doi.org/10.1287/mnsc.9.1.16
  • F. d'Epenoux, A Probabilistic Production and Inventory Problem, Management Science 10(1), 98–108, 1963 (translation of the 1960 French paper). https://doi.org/10.1287/mnsc.10.1.98
13 thms2 active usersReviewed
CombinatoricsProbabilityStochastic Systems·Captain: mikedeng1

On the Generalized “Birth-and-Death” Process 2: For Constant Rates λ₀ ≤ μ₀ the Cumulative Population M_∞ Has Law Q_M = ((λ₀+μ₀)/2λ₀)(2M)! x^M/(2^{2M}(M!)²(2M−1))Research Paper

Motivation

A birth-and-death process describes a population in which each individual independently gives birth and dies at given rates. Kendall's 1948 paper (doi:10.1214/aoms/1177730285) solved the process with arbitrary time-dependent rates and, in its §4, introduced a second random variable alongside the population size: the cumulative population MtM_tMt​, the number of individuals that have ever been alive up to time ttt. Kendall gives two readings. If ntn_tnt​ is the number of current cases of a disease, MtM_tMt​ is the total number of cases recorded so far, and for an epidemic that is almost certain to die out, M∞M_\inftyM∞​ measures its overall severity. If ntn_tnt​ is the viable count of a bacterial population, MtM_tMt​ is the total count, in which living and dead organisms are not distinguished.

The question of this mission is the exact distribution of M∞M_\inftyM∞​ for the simplest transient process, with constant rates. Kendall answers it in §5 by solving a first-order partial differential equation for the joint generating function of (nt,Mt)(n_t, M_t)(nt​,Mt​). The resulting law involves central binomial coefficients, the same numbers that count the total progeny of a critical binary branching process.

Setting

Let λ0>0\lambda_0 > 0λ0​>0 and μ0>0\mu_0 > 0μ0​>0 be constants. In the simple birth-and-death process with these rates, a population of size nnn moves to n+1n + 1n+1 at rate λ0n\lambda_0 nλ0​n and to n−1n - 1n−1 at rate μ0n\mu_0 nμ0​n. It starts from one ancestor, n0=1n_0 = 1n0​=1. The cumulative population MtM_tMt​ starts at M0=n0=1M_0 = n_0 = 1M0​=n0​=1 and shares all the positive jumps of ntn_tnt​, so it never decreases. The process is transient (dies out with probability one) when λ0≤μ0\lambda_0 \le \mu_0λ0​≤μ0​.

Write Pn,M(t)P_{n,M}(t)Pn,M​(t) for the joint law of (nt,Mt)(n_t, M_t)(nt​,Mt​) and

ψ(z,w,t)=∑n=0∞∑M=0∞Pn,M(t) znwM\psi(z, w, t) = \sum_{n=0}^\infty\sum_{M=0}^\infty P_{n,M}(t)\,z^n w^Mψ(z,w,t)=n=0∑∞​M=0∑∞​Pn,M​(t)znwM

for its generating function (30). Kendall shows that ψ\psiψ satisfies

∂ψ∂t={λ0wz2−(λ0+μ0)z+μ0}∂ψ∂z,ψ(z,w,0)=zw,(31–32)\frac{\partial\psi}{\partial t} = \{\lambda_0 w z^2 - (\lambda_0 + \mu_0) z + \mu_0\}\frac{\partial\psi}{\partial z}, \qquad \psi(z, w, 0) = zw, \tag{31–32}∂t∂ψ​={λ0​wz2−(λ0​+μ0​)z+μ0​}∂z∂ψ​,ψ(z,w,0)=zw,(31–32)

and solves it with the roots α<β\alpha < \betaα<β of the quadratic (49), λ0wz2−(λ0+μ0)z+μ0=0\lambda_0 w z^2 - (\lambda_0 + \mu_0) z + \mu_0 = 0λ0​wz2−(λ0​+μ0​)z+μ0​=0:

ψ(z,w,t)=w α(β−z)+β(z−α)e−λ0w(β−α)t(β−z)+(z−α)e−λ0w(β−α)t.(50)\psi(z, w, t) = w\,\frac{\alpha(\beta - z) + \beta(z - \alpha)e^{-\lambda_0 w(\beta - \alpha)t}}{(\beta - z) + (z - \alpha)e^{-\lambda_0 w(\beta - \alpha)t}}. \tag{50}ψ(z,w,t)=w(β−z)+(z−α)e−λ0​w(β−α)tα(β−z)+β(z−α)e−λ0​w(β−α)t​.(50)

Setting z=1z = 1z=1 forgets ntn_tnt​, so ψ(1,w,t)\psi(1, w, t)ψ(1,w,t) generates the law of MtM_tMt​. Finally

x=4λ0μ0(λ0+μ0)2,QM=λ0+μ02λ0 (2M)!22M(M!)2 xM2M−1(M=1,2,3,… ).(52–53)x = \frac{4\lambda_0\mu_0}{(\lambda_0 + \mu_0)^2}, \qquad Q_M = \frac{\lambda_0 + \mu_0}{2\lambda_0}\,\frac{(2M)!}{2^{2M}(M!)^2}\,\frac{x^M}{2M - 1}\quad(M = 1, 2, 3, \dots). \tag{52–53}x=(λ0​+μ0​)24λ0​μ0​​,QM​=2λ0​λ0​+μ0​​22M(M!)2(2M)!​2M−1xM​(M=1,2,3,…).(52–53)

The Lean names are disc, alpha, beta, psi, x, Q and SolvesPDE, in the namespace KendallBD.Cumul.

Formalization targets

Goal: the law of the cumulative population (§5, (50)–(53), p. 11)

For 0<λ0≤μ00 < \lambda_0 \le \mu_00<λ0​≤μ0​:

  1. for every w∈(0,1)w \in (0, 1)w∈(0,1), ψ\psiψ of (50) satisfies (31) at every z∈[0,1]z \in [0, 1]z∈[0,1], t≥0t \ge 0t≥0, and ψ(z,w,0)=zw\psi(z, w, 0) = zwψ(z,w,0)=zw;
  2. for every w∈(0,1)w \in (0, 1)w∈(0,1),
lim⁡t→∞ψ(1,w,t)=∑M≥1QMwM;\lim_{t\to\infty}\psi(1, w, t) = \sum_{M \ge 1} Q_M w^M;t→∞lim​ψ(1,w,t)=M≥1∑​QM​wM;
  1. QM≥0Q_M \ge 0QM​≥0 and ∑M≥1QM=1\sum_{M\ge1} Q_M = 1∑M≥1​QM​=1.

Milestones (pp. 10–11)

  • (49): for 0<w<10 < w < 10<w<1 the roots satisfy 0<α<1<β0 < \alpha < 1 < \beta0<α<1<β.
  • (50): ψ\psiψ solves (31) with the boundary condition (32).
  • (51): ψ(1,w,∞)=wα=[λ0+μ0−(λ0+μ0)2−4λ0μ0w]/(2λ0)\psi(1, w, \infty) = w\alpha = [\lambda_0 + \mu_0 - \sqrt{(\lambda_0 + \mu_0)^2 - 4\lambda_0\mu_0 w}]/(2\lambda_0)ψ(1,w,∞)=wα=[λ0​+μ0​−(λ0​+μ0​)2−4λ0​μ0​w​]/(2λ0​).

Companions

  • (54): (Q1,Q2,Q3,Q4)=μ0λ0+μ0(1,14x,18x2,564x3)(Q_1, Q_2, Q_3, Q_4) = \frac{\mu_0}{\lambda_0 + \mu_0}(1, \frac14 x, \frac18 x^2, \frac{5}{64}x^3)(Q1​,Q2​,Q3​,Q4​)=λ0​+μ0​μ0​​(1,41​x,81​x2,645​x3).
  • (48): for λ0<μ0\lambda_0 < \mu_0λ0​<μ0​ the law has mean μ0/(μ0−λ0)\mu_0/(\mu_0 - \lambda_0)μ0​/(μ0​−λ0​) and variance λ0μ0(λ0+μ0)/(μ0−λ0)3\lambda_0\mu_0(\lambda_0 + \mu_0)/(\mu_0 - \lambda_0)^3λ0​μ0​(λ0​+μ0​)/(μ0​−λ0​)3.
  • The balanced case λ0=μ0\lambda_0 = \mu_0λ0​=μ0​: x=1x = 1x=1, QMQ_MQM​ decays like M−3/2M^{-3/2}M−3/2, and the mean of M∞M_\inftyM∞​ is infinite.

Significance

The result. The law (52) gives the full distribution of the total size of a transient linear birth-and-death population, not only its moments: the probability Q1=μ0/(λ0+μ0)Q_1 = \mu_0/(\lambda_0 + \mu_0)Q1​=μ0​/(λ0​+μ0​) that the ancestor dies childless, the tail behaviour, and the dichotomy between the subcritical case (finite mean μ0/(μ0−λ0)\mu_0/(\mu_0 - \lambda_0)μ0​/(μ0​−λ0​), geometric-type tail with ratio x<1x < 1x<1) and the critical case (heavy M−3/2M^{-3/2}M−3/2 tail, infinite mean). In the epidemic reading this is the distribution of the final size of a minor outbreak; it is also the total-progeny law of the embedded binary Galton–Watson tree (Harris 1963).

Formalizing it. The result is classical and proved, but it is not formalized anywhere known to this mission. A formal proof would combine three separate pieces: the explicit solution of a first-order PDE by characteristics, checked as a classical solution on the region where a probability generating function lives; a limit t→∞t \to \inftyt→∞ that selects one root of a quadratic; and the binomial series of 1−1−y1 - \sqrt{1 - y}1−1−y​ together with its boundary value at y=1y = 1y=1. The companions make the moments (48), which §4 derives by a separate route, a consequence of the law.

Difficulty

Checking that (50) satisfies (31) is calculus once the derivatives exist. The obstacles are elsewhere. First, the roots must be ordered as 0<α<1<β0 < \alpha < 1 < \beta0<α<1<β, which fails at w=1w = 1w=1 when λ0<μ0\lambda_0 < \mu_0λ0​<μ0​ (the roots are then 111 and μ0/λ0\mu_0/\lambda_0μ0​/λ0​): every statement about α\alphaα, β\betaβ, ψ\psiψ has to be made for 0<w<10 < w < 10<w<1, and the law is identified from the power series on that interval. Second, the normalization ∑QM=1\sum Q_M = 1∑QM​=1 is a statement at the boundary y=xw=xy = xw = xy=xw=x of the series for 1−1−y1 - \sqrt{1 - y}1−1−y​; at λ0=μ0\lambda_0 = \mu_0λ0​=μ0​ this is y=1y = 1y=1, the edge of the disc of convergence, where convergence of the series is not automatic and where the value 1−x=(μ0−λ0)/(λ0+μ0)\sqrt{1 - x} = (\mu_0 - \lambda_0)/(\lambda_0 + \mu_0)1−x​=(μ0​−λ0​)/(λ0​+μ0​) uses λ0≤μ0\lambda_0 \le \mu_0λ0​≤μ0​. For λ0>μ0\lambda_0 > \mu_0λ0​>μ0​ the same series sums to μ0/λ0<1\mu_0/\lambda_0 < 1μ0​/λ0​<1, so the hypothesis is essential. Third, the asymptotic M−3/2M^{-3/2}M−3/2 in the balanced case needs the asymptotics of central binomial coefficients.

Formalization scope

All objects are real functions; the process and the joint law Pn,M(t)P_{n,M}(t)Pn,M​(t) are not constructed, exactly as in the paper. "The law of M∞M_\inftyM∞​" is read, as on p. 11, as the coefficients of the generating function lim⁡t→∞ψ(1,w,t)\lim_{t\to\infty}\psi(1, w, t)limt→∞​ψ(1,w,t), and ψ\psiψ is tied to the process through the equation (31) and the boundary condition (32). The committed conventions are:

  • constant rates 0<λ0≤μ00 < \lambda_0 \le \mu_00<λ0​≤μ0​ (strict λ0<μ0\lambda_0 < \mu_0λ0​<μ0​ for the moment companion, λ0=μ0\lambda_0 = \mu_0λ0​=μ0​ for the balanced companion);
  • α\alphaα and β\betaβ are given by the quadratic formula, α\alphaα with the minus sign, Real.sqrt the nonnegative root;
  • statements about α\alphaα, β\betaβ, ψ\psiψ hold for w∈(0,1)w \in (0, 1)w∈(0,1); (31) is asserted for z∈[0,1]z \in [0, 1]z∈[0,1], t≥0t \ge 0t≥0, and the boundary condition for every real zzz;
  • (31) is SolvesPDE: both partial derivatives exist as HasDerivAt facts and satisfy the equation, never an equation between deriv values;
  • Q0=0Q_0 = 0Q0​=0 (since M∞≥M0=1M_\infty \ge M_0 = 1M∞​≥M0​=1), and QMQ_MQM​ keeps the printed shape (2M)!/(22M(M!)2)(2M)!/(2^{2M}(M!)^2)(2M)!/(22M(M!)2) with 2M−12M - 12M−1 in the reals;
  • "infinite mean" is non-summability of ∑MQM\sum M Q_M∑MQM​; the variance is stated through the second moment.

A goal that only asserted the power series identity 1−1−y=∑M≥1(2M)!22M(M!)2(2M−1)yM1 - \sqrt{1 - y} = \sum_{M\ge1}\frac{(2M)!}{2^{2M}(M!)^2(2M-1)}y^M1−1−y​=∑M≥1​22M(M!)2(2M−1)(2M)!​yM would be a different and easier theorem with no birth-and-death content; the goal therefore ties QMQ_MQM​ to ψ\psiψ of (50) and ψ\psiψ to the equation (31)–(32).

A complete development needs the binomial series for 1−y\sqrt{1 - y}1−y​ with real coefficients (Mathlib has Nat.centralBinom and general binomial series, and the platform has the generating function of the central binomial coefficients as a proof tool), the boundary behaviour of a power series with nonnegative coefficients, and Stirling-type asymptotics of (2MM)4−M\binom{2M}{M}4^{-M}(M2M​)4−M. These are reusable well beyond this mission. Contributions proving any milestone or companion, or the series lemma on its own, are welcome.

Selected references

  • D. G. Kendall, On the generalized "birth-and-death" process, Annals of Mathematical Statistics 19(1):1–15, 1948. doi:10.1214/aoms/1177730285
  • T. E. Harris, The Theory of Branching Processes, Springer, 1963. doi:10.1007/978-3-642-51866-9
5 thms2 active usersReviewed
Dynamic ProgrammingLinear OptimizationOperations Research+1·Captain: mikedeng1

Linear Programming and Finite Markovian Control Problems VII: Bias Optimality — Four Equivalent Characterizations of a Bias Optimal Pure Stationary PolicyTextbook

Why bias optimality matters

A finite Markov decision problem can have several policies with the same long-run average reward even though they behave differently before reaching a recurrent class. Average reward discards a finite initial advantage: dividing total reward by the horizon sends any fixed transient contribution to zero. In applications where the process runs for a long but unspecified time, this leaves a genuine choice among average-optimal policies. Bias optimality uses discounted values as the discount factor approaches one to resolve that choice. Kallenberg develops the criterion in Chapter 5 of Linear Programming and Finite Markovian Control Problems, following Blackwell's earlier notion of a nearly optimal policy.

The chapter asks for a way to recognize a bias optimal policy without comparing it directly with every possible sequence of history-dependent, randomized decisions. Its central characterization, Theorem 5.2.2, gives three tests involving only pure stationary policies. That change in the comparison class matters: there are finitely many pure stationary rules, while a general policy may depend on an unbounded history. The theorem also explains why average optimality alone leaves policies untied only at the gain level, while their bias vectors can differ. The two-state example in Figure 5.2.1 exhibits an average-optimal stationary rule that is not bias optimal (Kallenberg, pp. 163–164).

The finite decision model

The state space is E={1,…,N}E=\{1,\ldots,N\}E={1,…,N} with N>0N>0N>0. Each state iii has its own finite, nonempty set A(i)A(i)A(i) of admissible actions. Choosing a∈A(i)a\in A(i)a∈A(i) earns the real reward riar_{ia}ria​ immediately and moves to state jjj with probability piajp_{iaj}piaj​. The rows are stochastic: piaj≥0p_{iaj}\ge0piaj​≥0 and ∑jpiaj=1\sum_jp_{iaj}=1∑j​piaj​=1. This is the chapter's standing assumption, stated at the opening of §5.2 (Kallenberg, p. 162).

A policy R∈CR\in CR∈C assigns a probability distribution on the actions available at the current state after every finite history. Thus CCC includes randomized and history-dependent decisions. A pure stationary policy f∞∈CDf^\infty\in C_Df∞∈CD​ instead fixes one action f(i)∈A(i)f(i)\in A(i)f(i)∈A(i) for each state and uses it in every period. Time starts at t=1t=1t=1. From initial state iii, let vit(R)v_i^t(R)vit​(R) be expected reward in period ttt, and let viα(R)=∑t≥1αt−1vit(R)v_i^\alpha(R)=\sum_{t\ge1}\alpha^{t-1}v_i^t(R)viα​(R)=∑t≥1​αt−1vit​(R) be expected discounted reward for 0≤α<10\le\alpha<10≤α<1. The optimal discounted value viαv_i^\alphaviα​ is the supremum of viα(R)v_i^\alpha(R)viα​(R) over all R∈CR\in CR∈C, taken separately for each state.

The average reward is ϕi(R)=lim inf⁡T→∞T−1∑t=1Tvit(R)\phi_i(R)=\liminf_{T\to\infty}T^{-1}\sum_{t=1}^T v_i^t(R)ϕi​(R)=liminfT→∞​T−1∑t=1T​vit​(R); its optimal value ϕi\phi_iϕi​ is again the statewise supremum over CCC. The corresponding limsup is ϕ^i(R)\hat\phi_i(R)ϕ^​i​(R). A policy is average optimal when ϕi(R)=ϕi\phi_i(R)=\phi_iϕi​(R)=ϕi​ at every state. It is bias optimal when viα(R)−viα→0v_i^\alpha(R)-v_i^\alpha\to0viα​(R)−viα​→0 as α↑1\alpha\uparrow1α↑1 at every state (Kallenberg, pp. 21–23 and 161).

For a pure stationary fff, write P(f)ij=pi,f(i),jP(f)_{ij}=p_{i,f(i),j}P(f)ij​=pi,f(i),j​ and r(f)i=ri,f(i)r(f)_i=r_{i,f(i)}r(f)i​=ri,f(i)​. The stationary matrix P∗(f)P^*(f)P∗(f) is the Cesàro limit of the powers of P(f)P(f)P(f). The deviation matrix and bias vector are

D(f)=(I−P(f)+P∗(f))−1−P∗(f),u(f∞)=D(f)r(f).D(f)=\bigl(I-P(f)+P^*(f)\bigr)^{-1}-P^*(f), \qquad u(f^\infty)=D(f)r(f).D(f)=(I−P(f)+P∗(f))−1−P∗(f),u(f∞)=D(f)r(f).

The gain of f∞f^\inftyf∞ is ϕ(f∞)=P∗(f)r(f)\phi(f^\infty)=P^*(f)r(f)ϕ(f∞)=P∗(f)r(f). These are the book's Definitions 2.4.2 and notation (2.5.5), and their finite stochastic-matrix properties are recorded in Theorem 2.4.1 (Kallenberg, pp. 29 and 33–34).

Formalization targets

The goal is Theorem 5.2.2, for each pure stationary f∗∞f_*^\inftyf∗∞​. It asserts that the following are equivalent: (i) f∗∞f_*^\inftyf∗∞​ is bias optimal against the value over all CCC; (ii) for every f∞∈CDf^\infty\in C_Df∞∈CD​, the vector limit lim⁡α↑1(vα(f∗∞)−vα(f∞))\lim_{\alpha\uparrow1}\bigl(v^\alpha(f_*^\infty)-v^\alpha(f^\infty)\bigr)limα↑1​(vα(f∗∞​)−vα(f∞)) exists and is nonnegative; (iii) f∗∞f_*^\inftyf∗∞​ is average optimal and, at every state iii, its bias is maximal among pure stationary policies optimal at that state; and (iv) for every f∞∈CDf^\infty\in C_Df∞∈CD​, the vector limit

lim⁡T→∞1T∑t=1T∑s=1t(vs(f∗∞)−vs(f∞))≥0\lim_{T\to\infty}\frac1T\sum_{t=1}^T\sum_{s=1}^t \bigl(v^s(f_*^\infty)-v^s(f^\infty)\bigr)\ge0T→∞lim​T1​t=1∑T​s=1∑t​(vs(f∗∞​)−vs(f∞))≥0

exists. These limits are read in the extended reals: a strictly positive gain gap makes a difference tend to +∞+\infty+∞, which satisfies the displayed inequality. The period rewards vsv^svs in the last formula are not discounted values. The printed clause (iii) has a typographical error in the set following max; its proof on p. 164 supplies the intended restriction ϕi(f∞)=ϕi\phi_i(f^\infty)=\phi_iϕi​(f∞)=ϕi​. The formal statement uses that reading and records it explicitly.

Two earlier chapter results are milestones. Lemma 5.2.1 bounds the Abel limsup (1−α)viα(R)(1-\alpha)v_i^\alpha(R)(1−α)viα​(R) by the upper average reward ϕ^i(R)\hat\phi_i(R)ϕ^​i​(R) for any policy. Theorem 5.2.1 says that bias optimality implies average optimality, with a two-state example showing that average optimality does not imply bias optimality. The later §5.3 linear-programming construction is a separate route to finding a bias optimal policy and is outside this mission's statement layer.

What the characterization gives

The equivalence allows bias optimality to be checked through discounted differences, bias vectors, or accumulated period rewards. Its bias-vector clause identifies the relevant comparison set: a policy can be optimal in average reward at one state without being optimal at every state, and that statewise distinction cannot be discarded. It also makes the bias criterion finer than average optimality, as the two-state counterexample shows (Kallenberg, pp. 163–165).

The source proves these results; the mission asks for machine-checked proofs of the stated equivalence and its two supporting results. The finite history and reward definitions can support later formalizations of Kallenberg's average-reward and constrained models. The matrix definitions can also be reused for results about finite Markov chains, including the Cesàro limit and deviation matrix. No machine-checked proof of this specific four-way characterization is claimed here.

Where the difficulty lies

Comparing average rewards alone loses the transient reward information that bias is designed to retain. The discounted comparison has an apparent divergence of order (1−α)−1(1-\alpha)^{-1}(1−α)−1 whenever two policies have different gains; the finite residual becomes meaningful only after those gain terms are separated. The accumulated-reward test also takes a second Cesàro average, so a direct identification with ordinary average reward would miss its bias contribution. The theorem has to preserve both the gain ordering and the finite bias remainder across these limiting regimes (Kallenberg, pp. 164–165).

For a general policy, the discounted value is defined by infinitely many history-dependent choices, whereas P∗P^*P∗ and DDD apply to one fixed stationary matrix. This is the obstacle in passing from clause (i), which compares with all CCC, to the tests against CDC_DCD​. Treating the optimal discounted value as a supremum over stationary policies by definition would erase that obstacle and change the theorem.

Formalization scope

Lean uses Fin N with N>0N>0N>0 for states and a finite action type with nonempty state-dependent admissible subsets. Rewards are real, transition rows are stochastic, and policies are distributions on actions after complete finite histories. The finite sum of products defining each history's probability supplies vit(R)v_i^t(R)vit​(R); no measure-theoretic path space is needed. Discounted rewards use a real infinite sum for α\alphaα near one from below. Average rewards are real liminf and limsup values of bounded sequences. Optimal values are statewise suprema over all admissible policies, not over just CDC_DCD​.

The matrix P∗P^*P∗ is a Cesàro limit and DDD uses the book's inverse formula. Their convergence and nonsingularity for finite stochastic matrices are mathematical obligations, not added assumptions of the goal. The T=0T=0T=0 value of a totalized average and the value of a discounted sum outside its summable range do not enter the limits. Contributions to the finite-chain limit facts, boundedness of reward criteria, the Abel/Cesàro comparison, and the four equivalences are all within scope. A formalization that restricts the optimum in bias optimality to pure stationary policies would not be this theorem.

Selected references

  • L. C. M. Kallenberg, Linear Programming and Finite Markovian Control Problems, Mathematical Centre Tracts 148, Mathematisch Centrum, Amsterdam, 1983. Publisher repository.
  • David Blackwell, “Discrete Dynamic Programming,” Annals of Mathematical Statistics 33 (1962), 719–726. DOI.
8 thms2 active usersReviewed
Dynamic ProgrammingLinear OptimizationOperations Research·Captain: mikedeng1

Linear Programming and Markov Decision Chains 3: The Representative of a Pure Stationary Policy Is an Extreme Point of the Dual LPResearch Paper

Linear programs for average-reward Markov decision chains

A Markov decision chain is a controlled Markov chain: in each state the controller picks an action, collects a reward and moves to a random next state with probabilities that depend on the state and the action. Under the average reward criterion, the long-run reward per step, an optimal policy can be computed by linear programming. For chains in which every stationary policy has a single recurrent class (the unichain case) this goes back to Manne (1960), de Ghellinck (1960) and d'Epenoux (1960): the variables of the dual linear program are long-run state–action frequencies, and the vertices of its feasible set are exactly the pure stationary policies.

In the general multichain case a policy may split the state space into several recurrent classes with transient states between them, and the frequency picture breaks down. Denardo and Fox (1968) and Denardo (1970) gave linear programs that require solving several programs in sequence. Hordijk and Kallenberg (Management Science 25(4), 1979) showed that one pair of dual linear programs suffices: from an optimal dual solution one reads off an average optimal policy (their Theorems 7 and 8). To make the correspondence between policies and dual solutions explicit, they attach to every stationary policy a representative, a particular feasible solution of the dual program, and prove (Theorem 10) that the representative of a pure stationary policy is a vertex of the feasible set. This mission formalizes Theorem 10.

Timeline:

  • 1960: Manne; de Ghellinck; d'Epenoux. The linear program for unichain average-reward problems, with pure policies at the vertices.
  • 1962: Blackwell. The limit matrix P∗P^*P∗ and deviation matrix DDD of a finite stochastic matrix, and their identities (Ann. Math. Statist. 33).
  • 1968–1970: Denardo and Fox; Denardo. Multichain problems by a sequence of linear programs.
  • 1979: Hordijk and Kallenberg. A single dual pair for the multichain case; representatives of stationary policies; Theorem 10.

Setting

The state space EEE is finite. Each state iii has a finite nonempty set A(i)A(i)A(i) of actions; action aaa in state iii earns riar_{ia}ria​ and moves to jjj with probability piaj≥0p_{iaj}\ge 0piaj​≥0, ∑jpiaj=1\sum_j p_{iaj}=1∑j​piaj​=1. Fix weights βj>0\beta_j>0βj​>0 with ∑jβj=1\sum_j\beta_j=1∑j​βj​=1.

The dual linear program has one pair of variables xia,yiax_{ia},y_{ia}xia​,yia​ for each state iii and each admissible action a∈A(i)a\in A(i)a∈A(i). Its feasible set consists of the (x,y)(x,y)(x,y) with

∑i∑a(δij−piaj)xia=0,∑axja+∑i∑a(δij−piaj)yia=βj(j∈E),x,y≥0.\textstyle\sum_i\sum_a(\delta_{ij}-p_{iaj})x_{ia}=0,\qquad \sum_a x_{ja}+\sum_i\sum_a(\delta_{ij}-p_{iaj})y_{ia}=\beta_j\qquad(j\in E),\qquad x,y\ge 0 .∑i​∑a​(δij​−piaj​)xia​=0,∑a​xja​+∑i​∑a​(δij​−piaj​)yia​=βj​(j∈E),x,y≥0.

A pure stationary policy f∞f^\inftyf∞ uses the action f(i)∈A(i)f(i)\in A(i)f(i)∈A(i) whenever the chain is in state iii. Its transition matrix is P(f)=(pif(i)j)P(f)=(p_{if(i)j})P(f)=(pif(i)j​). For a stochastic matrix PPP, the limit matrix P∗=lim⁡n1n∑k=1nPk−1P^*=\lim_n\frac1n\sum_{k=1}^nP^{k-1}P∗=limn​n1​∑k=1n​Pk−1 exists, and the deviation matrix is D=(I−P+P∗)−1−P∗D=(I-P+P^*)^{-1}-P^*D=(I−P+P∗)−1−P∗. A state is recurrent if every state reachable from it can reach it back, and transient otherwise; the set TTT collects the transient states, and the states reachable from a recurrent state form an ergodic set. Write E1,…,EmE_1,\dots,E_mE1​,…,Em​ for the ergodic sets of P(f)P(f)P(f).

The representative of f∞f^\inftyf∞ is

xia(f)=[βTP∗(f)]i δaf(i),yia(f)=[βTD(f)+γTP∗(f)]i δaf(i),x_{ia}(f)=[\beta^TP^*(f)]_i\,\delta_{af(i)},\qquad y_{ia}(f)=[\beta^TD(f)+\gamma^TP^*(f)]_i\,\delta_{af(i)},xia​(f)=[βTP∗(f)]i​δaf(i)​,yia​(f)=[βTD(f)+γTP∗(f)]i​δaf(i)​,

with γl=0\gamma_l=0γl​=0 for l∈Tl\in Tl∈T and, for l∈Ejl\in E_jl∈Ej​, γl=max⁡i∈Ej(−∑kβkdki)/∑k∈Ejpki∗\gamma_l=\max_{i\in E_j}\big(-\sum_k\beta_kd_{ki}\big)\big/\sum_{k\in E_j}p^*_{ki}γl​=maxi∈Ej​​(−∑k​βk​dki​)/∑k∈Ej​​pki∗​. The paper defines the same formulas for randomized stationary policies π\piπ, with πia\pi_{ia}πia​ in place of δaf(i)\delta_{af(i)}δaf(i)​.

Formalization targets

Goal: Theorem 10 (p. 361)

(x(f),y(f)) is an extreme point of the feasible set of the dual linear program(x(f),y(f))\ \text{is an extreme point of the feasible set of the dual linear program}(x(f),y(f)) is an extreme point of the feasible set of the dual linear program

for every finite Markov decision chain, every positive probability vector β\betaβ and every pure stationary policy f∞f^\inftyf∞. The statement contains feasibility of the representative.

Milestones

  1. §3.3, pp. 359–360: the representative (x(π),y(π))(x(\pi),y(\pi))(x(π),y(π)) of any stationary policy is feasible.
  2. Proof of Theorem 10, p. 362: for a stochastic PPP, every solution of xT(I−P)=0x^T(I-P)=0xT(I−P)=0, xT+yT(I−P)=βTx^T+y^T(I-P)=\beta^TxT+yT(I−P)=βT (system (7)) satisfies xT=βTP∗x^T=\beta^TP^*xT=βTP∗ and yT=βTD+yTP∗y^T=\beta^TD+y^TP^*yT=βTD+yTP∗.
  3. Proof of Theorem 10, p. 362: such a solution has yi=(βTD)iy_i=(\beta^TD)_iyi​=(βTD)i​ for i∈Ti\in Ti∈T.
  4. Proof of Theorem 10, p. 362: on each ergodic set EkE_kEk​ of P(f)P(f)P(f) there is a state i(k)i(k)i(k) with yi(k)f(i(k))(f)=0y_{i(k)f(i(k))}(f)=0yi(k)f(i(k))​(f)=0.
  5. Proof of Theorem 10, p. 362 (Chung, p. 33): a row vector zzz with zi=∑l∈Ekzlpliz_i=\sum_{l\in E_k}z_lp_{li}zi​=∑l∈Ek​​zl​pli​ on an ergodic set EkE_kEk​ that vanishes at one state of EkE_kEk​ vanishes on all of EkE_kEk​.

Significance

Theorem 10 is the vertex half of the policy–solution correspondence of Hordijk and Kallenberg: every pure stationary policy appears as a basic feasible solution of one linear program, in the multichain case and without any communication assumption. It connects the simplex method on that program with the set of pure policies, and it is a building block for the later literature on linear programming for multichain Markov decision problems. The paper also records that the converse fails: an extreme point may induce a randomized policy.

The result is proved in the paper. As far as is known it has not been machine-checked. A formal proof also checks the exact form of γ\gammaγ: the paper prints the denominator of γl\gamma_lγl​ as ∑kpki∗\sum_k p^*_{ki}∑k​pki∗​, a sum over all states, and with that reading the representative is not feasible as soon as transient states feed an ergodic set (two states, 0→1→10\to1\to10→1→1: y1=−β0/2y_1=-\beta_0/2y1​=−β0​/2). The denominator ∑k∈Ejpki∗\sum_{k\in E_j}p^*_{ki}∑k∈Ej​​pki∗​ is the one the paper's own feasibility computation on p. 360 uses, and it is the one stated here.

Difficulty

Feasibility is a calculation with the identities PP∗=P∗P=P∗P∗=P∗PP^*=P^*P=P^*P^*=P^*PP∗=P∗P=P∗P∗=P∗ and (I−P)D=I−P∗(I-P)D=I-P^*(I−P)D=I−P∗. Extremality is the substance. Restricted to the pairs (i,f(i))(i,f(i))(i,f(i)), the constraints become the square system (7) in the state variables, and system (7) determines xxx and the transient part of yyy, but on each ergodic set it determines yyy only up to adding a multiple of the stationary distribution of that class: the matrix I−PI-PI−P is singular, with one degree of freedom per ergodic set. The naive argument, that the equality constraints alone pin the point down, therefore fails as soon as there is an ergodic set; the extra information has to come from the nonnegativity constraints, and that is why the exact value of γ\gammaγ matters. In the general multichain setting this requires the class structure of a finite Markov chain (closed classes, transient states, the support of P∗P^*P∗, uniqueness of invariant vectors on a closed communicating class), little of which is in Mathlib in usable form.

Formalization scope

  • The model is the published MarkovDecisionProcesses.StationaryMDP: finite states, finite actions, admissible sets A(i)A(i)A(i) (nonempty), transition probabilities nonnegative with unit row sums. P∗P^*P∗ and DDD are the published limitMatrix and deviationMatrix of Blackwell's Lemma 1, whose identities are the open platform theorems BlackwellDiscreteDP.NearOne.lemma_1a and lemma_1d.
  • The dual variables are functions on the subtype of admissible state–action pairs, so non-admissible actions have no coordinates. The feasible set is a subset of (Pair→R)×(Pair→R)(\mathrm{Pair}\to\mathbb R)\times(\mathrm{Pair}\to\mathbb R)(Pair→R)×(Pair→R) and "extreme point" is Mathlib's Set.extremePoints ℝ. Membership in it includes feasibility.
  • Row vectors act by vecMul. Recurrence and accessibility are the published IsRecurrent and Accessible; the ergodic set of a recurrent lll is the set of states accessible from lll. The maximum in γ\gammaγ is a Finset.sup' over that finite nonempty set.
  • γ\gammaγ uses the corrected denominator ∑k∈Ejpki∗\sum_{k\in E_j}p^*_{ki}∑k∈Ej​​pki∗​. A formalization with γ=0\gamma=0γ=0, or one in which the non-admissible coordinates of the program are free, is a different and false or trivial statement and is ruled out.
  • Stationary randomized rules are nonnegative weights on A(i)A(i)A(i) summing to one; the pure rule of fff is the indicator of f(i)f(i)f(i).
  • Useful contributions: the class decomposition of a finite stochastic matrix (closed classes, pki∗=0p^*_{ki}=0pki∗​=0 for transient iii, positivity of pii∗p^*_{ii}pii∗​ on recurrent states), uniqueness of invariant vectors on a closed communicating class, and proofs of Blackwell's Lemma 1(a), 1(d). All of these are reusable beyond this mission.

Selected references

  • A. Hordijk and L. C. M. Kallenberg, Linear Programming and Markov Decision Chains, Management Science 25(4):352–362, 1979. https://doi.org/10.1287/mnsc.25.4.352
  • D. Blackwell, Discrete Dynamic Programming, Annals of Mathematical Statistics 33(2):719–726, 1962. https://doi.org/10.1214/aoms/1177704593
  • K. L. Chung, Markov Chains with Stationary Transition Probabilities, Springer, 1960. https://doi.org/10.1007/978-3-642-49686-8
  • E. V. Denardo, On Linear Programming in a Markov Decision Problem, Management Science 16(5):281–288, 1970. https://doi.org/10.1287/mnsc.16.5.281
  • E. V. Denardo and B. L. Fox, Multichain Markov Renewal Programs, SIAM Journal on Applied Mathematics 16(3):468–487, 1968. https://doi.org/10.1137/0116038
  • A. S. Manne, Linear Programming and Sequential Decisions, Management Science 6(3):259–267, 1960. https://doi.org/10.1287/mnsc.6.3.259
9 thms2 active usersReviewed
🏆Completed
Linear algebraMachine LearningReinforcement Learning·Captain: mikedeng1

Learning to Predict by the Methods of Temporal Differences: Linear TD(0) Converges in Expected Value to the Ideal Predictions on Absorbing Markov ChainsResearch Paper

Motivation

Temporal-difference (TD) methods learn to predict an eventual outcome from the differences between successive predictions rather than from the difference between each prediction and the final outcome. Sutton's 1988 paper Learning to predict by the methods of temporal differences introduced the TD(λ\lambdaλ) family and gave the first convergence proof for a TD method; before it, as the paper notes (p. 23), "no TD method has ever been proved stable or convergent to the correct predictions". TD learning is now the core of policy evaluation in reinforcement learning, and later analyses (Dayan 1992, Tsitsiklis and Van Roy 1997) start from the setting fixed here.

Timeline:

  • 1960 — Widrow and Hoff introduce the LMS (Widrow–Hoff) rule; its predictions converge in expected value to the ideal predictions for small step sizes (Widrow and Stearns 1985).
  • 1977 — Witten sketches a convergence proof for a TD-like procedure on discounted costs; many steps were left out, and Sutton (footnote 4) writes that it "now appears that the theorem he proposed is not true".
  • 1988 — Sutton proves Theorem 2 (linear TD(0), expected-value convergence on absorbing chains) and Theorem 3 (convergence of batch linear TD(0) to the maximum-likelihood predictions).
  • 1992–1997 — Dayan extends expected convergence to TD(λ\lambdaλ); Tsitsiklis and Van Roy prove almost-sure convergence of linear TD(λ\lambdaλ) under decreasing step sizes.

Setting

An absorbing Markov chain has a finite set NNN of nonterminal states, a finite set TTT of terminal states and transition probabilities pij≥0p_{ij}\ge0pij​≥0 (i∈Ni\in Ni∈N, j∈N∪Tj\in N\cup Tj∈N∪T) with ∑j∈N∪Tpij=1\sum_{j\in N\cup T}p_{ij}=1∑j∈N∪T​pij​=1. Let QQQ be the N×NN\times NN×N matrix [Q]ij=pij[Q]_{ij}=p_{ij}[Q]ij​=pij​. "Absorbing" means that every sequence terminates with probability one; for a finite chain this is Qk→0Q^k\to0Qk→0.

A sequence starts in a nonterminal state drawn from a distribution μ\muμ, follows the chain through nonterminal states q1,…,qmq_1,\dots,q_mq1​,…,qm​ until it enters a terminal state qm+1=jq_{m+1}=jqm+1​=j, and then produces a scalar outcome zzz drawn from a distribution νj\nu_jνj​ with finite mean zˉj\bar z_jzˉj​. Let [h]i=∑j∈Tpijzˉj[h]_i=\sum_{j\in T}p_{ij}\bar z_j[h]i​=∑j∈T​pij​zˉj​. The ideal prediction of state iii is the expected outcome from iii,

E{z∣i}=[∑k≥0Qkh]i=[(I−Q)−1h]i.E\{z\mid i\}=\Bigl[\sum_{k\ge0}Q^kh\Bigr]_i=\bigl[(I-Q)^{-1}h\bigr]_i .E{z∣i}=[k≥0∑​Qkh]i​=[(I−Q)−1h]i​.

The learner does not see states, only an observation vector xi∈RKx_i\in\mathbb R^Kxi​∈RK for each i∈Ni\in Ni∈N, and predicts linearly, Pt=w⊤xqtP_t=w^\top x_{q_t}Pt​=w⊤xqt​​. Linear TD(0) with weight updates after each sequence keeps www fixed during a sequence and then sets, with Pm+1=zP_{m+1}=zPm+1​=z,

w←w+∑t=1mα (Pt+1−Pt) xqt.w\leftarrow w+\sum_{t=1}^m\alpha\,(P_{t+1}-P_t)\,x_{q_t}.w←w+t=1∑m​α(Pt+1​−Pt​)xqt​​.

Sequences are experienced independently; wnw_nwn​ is the weight vector after nnn sequences. Let did_idi​ be the expected number of visits to iii in one sequence, D=diag⁡(d)D=\operatorname{diag}(d)D=diag(d), and XXX the matrix with columns xix_ixi​.

Formalization targets

Goal: Theorem 2

For every absorbing chain, start distribution μ\muμ, outcome laws with finite means and linearly independent {xi}\{x_i\}{xi​}, with every di>0d_i>0di​>0, there is ε>0\varepsilon>0ε>0 such that for 0<α<ε0<\alpha<\varepsilon0<α<ε and every w0w_0w0​,

lim⁡n→∞E{xi⊤wn}=[(I−Q)−1h]i∀i∈N.\lim_{n\to\infty}E\{x_i^\top w_n\}=\bigl[(I-Q)^{-1}h\bigr]_i\qquad\forall i\in N .n→∞lim​E{xi⊤​wn​}=[(I−Q)−1h]i​∀i∈N.

The threshold ε\varepsilonε is existential, as in the paper; no explicit value is fixed.

Milestones on the goal's path

Theorem A.1 (Neumann series under An→0A^n\to0An→0); (5) the ideal predictions; (7) d⊤=μ⊤(I−Q)−1d^\top=\mu^\top(I-Q)^{-1}d⊤=μ⊤(I−Q)−1; the mean recursion wˉn+1=wˉn+αXD(h+QX⊤wˉn−X⊤wˉn)\bar w_{n+1}=\bar w_n+\alpha XD(h+QX^\top\bar w_n-X^\top\bar w_n)wˉn+1​=wˉn​+αXD(h+QX⊤wˉn​−X⊤wˉn​); Theorem A.2 (A⊤AA^\top AA⊤A nonsingular); Theorem A.3 (A≻0  ⟺  A+A⊤≻0A\succ0\iff A+A^\top\succ0A≻0⟺A+A⊤≻0); the Lemma of p. 27; D(I−Q)D(I-Q)D(I−Q) positive definite; the eigenvalues of X⊤XD(I−Q)X^\top XD(I-Q)X⊤XD(I−Q) have positive real parts; and (I−αX⊤XD(I−Q))n→0(I-\alpha X^\top XD(I-Q))^n\to0(I−αX⊤XD(I−Q))n→0 for small α\alphaα.

Further results

Theorem 3: under repeated presentations of a finite training set, batch linear TD(0) converges (deterministically) to the maximum-likelihood predictions [(I−Q^)−1h^]i[(I-\hat Q)^{-1}\hat h]_i[(I−Q^​)−1h^]i​, with its two supporting steps (Q^n→0\hat Q^n\to0Q^​n→0 and d^⊤=μ^⊤(I−Q^)−1\hat d^\top=\hat\mu^\top(I-\hat Q)^{-1}d^⊤=μ^​⊤(I−Q^​)−1). Theorem 1: linear TD(1) and Widrow–Hoff produce the same per-sequence weight changes.

Significance

Theorem 2 shows that a bootstrapping method, which learns from its own earlier predictions, is not biased by them in the limit: in expectation it reaches the same predictions as supervised (Widrow–Hoff) learning. Theorem 3 says more: on a fixed data set, TD(0) converges to the predictions that would be exact if the maximum-likelihood model of the process were correct, which differs from the least-squares answer Widrow–Hoff converges to. Together they are the formal basis for preferring TD to Monte-Carlo targets in multi-step prediction.

The results are proved on paper, and not formalized in Lean. A formalization adds a precise model of the experience (i.i.d. sequences of an absorbing chain with terminal-dependent outcome laws), the integrability facts the paper leaves implicit, and a correct proof of the positive definiteness of D(I−Q)D(I-Q)D(I−Q), whose printed argument has a gap (see below). The matrix lemmas (Neumann series under An→0A^n\to0An→0; real-part positivity of eigenvalues of GMGMGM for G≻0G\succ0G≻0 symmetric and MMM positive definite in the non-symmetric sense; the step-size threshold) are reusable for other linear stochastic-approximation analyses.

Difficulty

The obvious argument writes E{wn+1}E\{w_{n+1}\}E{wn+1​} as a linear function of E{wn}E\{w_n\}E{wn​} and observes that the iteration matrix I−αX⊤XD(I−Q)I-\alpha X^\top XD(I-Q)I−αX⊤XD(I−Q) is a contraction for small α\alphaα. Two steps of this fail as printed. First, the paper proves that D(I−Q)D(I-Q)D(I−Q) is positive definite through the Lemma of p. 27 with a weakened notion of diagonal dominance (weak in every row, strict in one), under which the Lemma is false; with the standard notion, D(I−Q)+(D(I−Q))⊤D(I-Q)+(D(I-Q))^\topD(I−Q)+(D(I−Q))⊤ is in general not strictly diagonally dominant (a row with μi=0\mu_i=0μi​=0 that cannot leave NNN in one step has row sum 000). A correct proof combines weak dominance with reachability of every state from the support of μ\muμ, which is where di>0d_i>0di​>0 enters. Second, X⊤XD(I−Q)X^\top XD(I-Q)X⊤XD(I−Q) is not symmetric, so a small α\alphaα does not make I−αX⊤XD(I−Q)I-\alpha X^\top XD(I-Q)I−αX⊤XD(I−Q) a contraction in the Euclidean norm; the argument goes through its eigenvalues, and turning eigenvalues of modulus below one into (I−αX⊤XD(I−Q))n→0(I-\alpha X^\top XD(I-Q))^n\to0(I−αX⊤XD(I−Q))n→0 is a spectral-radius argument. The probabilistic step is also not free: wnw_nwn​ is a polynomial in nnn random sequences of unbounded length, and its integrability and the factorization E{ηijwn}=dipijE{wn}E\{\eta_{ij}w_n\}=d_ip_{ij}E\{w_n\}E{ηij​wn​}=di​pij​E{wn​} need independence across sequences.

Formalization scope

States are finite types N (nonempty) and T; the chain is the structure AbsorbingChain with blocks pN, pT and the field Qk→0Q^k\to0Qk→0. Observation vectors are x : N → Fin K → ℝ with LinearIndependent ℝ x; XXX is Matrix (Fin K) N ℝ. A sequence is an Episode (list of nonterminal states, terminal state, outcome); IsEpisodeStream states measurability, mutual independence (iIndepFun) and the law P(path=s,term=j,out∈B)=μs1ps1s2⋯psmj νj(B)P(\text{path}=s,\text{term}=j,\text{out}\in B)=\mu_{s_1}p_{s_1s_2}\cdots p_{s_mj}\,\nu_j(B)P(path=s,term=j,out∈B)=μs1​​ps1​s2​​⋯psm​j​νj​(B). Expectations are Bochner integrals, and the goal asserts integrability of xi⊤wnx_i^\top w_nxi⊤​wn​, so a non-integrable junk value 000 cannot satisfy it. did_idi​ is defined as an expectation (a sum over sequences), not as [μ⊤(I−Q)−1]i[\mu^\top(I-Q)^{-1}]_i[μ⊤(I−Q)−1]i​, so (7) is not circular. "Positive definite" is the paper's footnote 6 (y⊤Ay>0y^\top Ay>0y⊤Ay>0 for real y≠0y\ne0y=0, no symmetry), not Mathlib's Matrix.PosDef.

Trivializations ruled out: the hypothesis di>0d_i>0di​>0 is the paper's own discarding of never-visited states (without it the goal is false: an unvisited state's weight never moves); N is nonempty and μ\muμ sums to one, so the hypotheses are satisfiable and the goal is not vacuous; the sequences cannot be arbitrary random variables or a fixed sequence, since their law is pinned to μ\muμ, ppp and ν\nuν; ε\varepsilonε is chosen before α\alphaα, w0w_0w0​ and the probability space; and the update is per sequence, not the intra-sequence variant of §5.

Corrected slips: "For each nonterminal state jjj" (p. 24) means terminal; the diagonal-dominance definition of p. 27 is replaced by the standard one; I−αXD(I−Q)X⊤I-\alpha XD(I-Q)X^\topI−αXD(I−Q)X⊤ (p. 28) means I−αX⊤XD(I−Q)I-\alpha X^\top XD(I-Q)I−αX⊤XD(I−Q). Not formalized: the variance and TD(λ\lambdaλ) conjectures of p. 29, §4.3, and the extension claims of §5.

Related open goals on this platform (different models, credited, not re-posed): SuttonBartoRL.BatchTD.batch_td_converges_to_certainty_equivalence (tabular, discounted analogue of Theorem 3), and SuttonBartoRL.LinearTD.keyMatrix_posDef, posDef_of_row_col_sums, expected_td_update (continuing discounted chain with stationary DDD, where every row sum of D(I−γP)D(I-\gamma P)D(I−γP) is positive). Contributions of any milestone, of general matrix lemmas, and of reusable infrastructure for i.i.d. episode streams are welcome.

Selected references

  • R. S. Sutton, Learning to predict by the methods of temporal differences, Machine Learning 3(1), 9–44, 1988. https://doi.org/10.1023/A:1022633531479
  • B. Widrow and M. E. Hoff, Adaptive switching circuits, IRE WESCON Convention Record, 96–104, 1960.
  • B. Widrow and S. D. Stearns, Adaptive Signal Processing, Prentice-Hall, 1985.
  • J. G. Kemeny and J. L. Snell, Finite Markov Chains, Springer, 1976. https://link.springer.com/book/9780387901923
  • R. S. Varga, Matrix Iterative Analysis, Prentice-Hall, 1962 (2nd ed., Springer, 2000: https://doi.org/10.1007/978-3-642-05156-2).
  • P. Dayan, The convergence of TD(λ) for general λ, Machine Learning 8, 341–362, 1992. https://doi.org/10.1007/BF00992701
  • J. N. Tsitsiklis and B. Van Roy, An analysis of temporal-difference learning with function approximation, IEEE Transactions on Automatic Control 42(5), 674–690, 1997. https://doi.org/10.1109/9.580874
24 thms2 active usersReviewed
🏆Completed
Dynamic ProgrammingOperations ResearchOptimization·Captain: mikedeng1

An Analysis of Stochastic Shortest Path Problems: If Every Improper Policy Has Infinite Cost, the Optimal Cost Is the Unique Fixed Point of Bellman's Operator and Value Iteration Converges to ItResearch Paper

Motivation

A shortest path problem asks how to reach a destination at minimum cost. In a stochastic shortest path problem, a decision at a state selects a probability distribution over successor states, so both the route and its total cost are random. Costs may have either sign. This makes the problem relevant to finite-state control models where rewards and expenses occur before eventual termination. Bertsekas and Tsitsiklis analyze this setting without requiring all one-stage costs to be nonnegative or all to be nonpositive. Their condition instead rules out an improper stationary policy whose costs stay finite from every initial state. Bertsekas and Tsitsiklis (1991), pp. 580–583.

Earlier treatments established Bellman-equation and algorithmic conclusions under positive or nonnegative costs. The 1991 paper traces the finite-control development from Eaton and Zadeh and the compact-control extension from Kushner, then removes the sign restriction while retaining finite state space. It also explains why the Bellman mapping need not contract when an improper policy is available. Bertsekas and Tsitsiklis (1991), pp. 581, 585. A separate, proved Prove2Me theorem from Bertsekas's textbook treats the special case in which every policy is proper and controls are finite; the result here permits improper policies and compact control spaces.

Setting

There are n≥1n\ge1n≥1 states. State 111 is the destination. At state iii, a control u∈U(i)u\in U(i)u∈U(i) incurs a real cost ci(u)c_i(u)ci​(u) and moves the process to state jjj with probability pij(u)p_{ij}(u)pij​(u). A selector μ\muμ chooses one control μ(i)\mu(i)μ(i) at every state. A policy π=(μ0,μ1,…)\pi=(\mu_0,\mu_1,\ldots)π=(μ0​,μ1​,…) may change selectors over time; a stationary policy repeats one selector. The matrix P(μ)P(\mu)P(μ) has entries pij(μ(i))p_{ij}(\mu(i))pij​(μ(i)), and c(μ)c(\mu)c(μ) is the vector of one-stage costs. Bertsekas and Tsitsiklis (1991), p. 582.

The cost vector x(π)x(\pi)x(π) is the coordinatewise limit inferior of expected partial costs, including the possibility of infinite values. The optimal cost xi∗x_i^*xi∗​ is the infimum of xi(π)x_i(\pi)xi​(π) over all policies, including nonstationary ones. Optimality of a policy means it attains that infimum from every initial state. The fixed-selector operator is Tμ(x)=c(μ)+P(μ)xT_\mu(x)=c(\mu)+P(\mu)xTμ​(x)=c(μ)+P(μ)x; the Bellman operator TTT takes the coordinatewise infimum of these vectors over selectors. Bertsekas and Tsitsiklis (1991), pp. 582–583, equations (2)–(6).

A stationary policy is proper when its probability of reaching state 111 tends to one from every starting state. Assumption 1 says state 111 is absorbing and cost-free, at least one proper stationary policy exists, and every improper stationary policy has a partial-cost coordinate tending to +∞+\infty+∞. Assumption 2 makes each control space compact, each cost function lower semicontinuous, and each transition-probability coordinate continuous. Work takes place in X={x∈Rn:x1=0}X=\{x\in\mathbb R^n:x_1=0\}X={x∈Rn:x1​=0}. Bertsekas and Tsitsiklis (1991), pp. 583–584.

Formalization targets

Proposition 2: Bellman's equation and value iteration

Under Assumptions 1 and 2, the optimal cost is finite and is the unique fixed point of TTT in XXX. Every initial x∈Xx\in Xx∈X has

lim⁡t→∞Tt(x)=x∗.\lim_{t\to\infty}T^t(x)=x^*.t→∞lim​Tt(x)=x∗.

A stationary selector μ\muμ is optimal exactly when Tμ(x∗)=T(x∗)T_\mu(x^*)=T(x^*)Tμ​(x∗)=T(x∗); an optimal proper stationary selector exists. These are all clauses of Proposition 2, rather than separate targets selected from it. Bertsekas and Tsitsiklis (1991), p. 586, Proposition 2.

Supporting results

The milestone list follows the source's Proposition 1, Lemmas 1–3, and the numbered equations used by their proof. Proposition 1 supplies a weighted maximum-norm contraction when every stationary policy is proper. Lemma 1 describes fixed costs of a proper policy and characterizes properness through a Bellman inequality. Lemma 2 gives continuity of TTT. Lemma 3 controls limits of proper policies; its second part detects a limit that becomes improper through diverging costs. Appendix equations (22) and (24), and the policy-improvement equation (15), provide the paper's intermediate targets. Bertsekas and Tsitsiklis (1991), pp. 585–587, 591–592.

Significance

Proposition 2 identifies the cost of the best policy by a finite-dimensional Bellman equation even though the definition of optimal cost ranges over all, possibly nonstationary, policies. Its convergence clause justifies value iteration from any vector whose destination coordinate is zero. Its policy criterion and existence clause connect a fixed point to an implementable stationary decision rule. The paper applies these conclusions to successive approximation and policy iteration in §4. Bertsekas and Tsitsiklis (1991), pp. 586, 590–591.

The paper proves these statements. This mission seeks machine-checked proofs of their exact finite-state formulation and of the listed intermediate results. The resulting finite stochastic-matrix, hitting, and policy-cost infrastructure can also support other undiscounted control problems. The related proved Prove2Me result for the all-proper finite-control case does not settle this mission's compact-control or improper-policy cases.

Difficulty

When every stationary policy is proper, a common weighted maximum norm makes the Bellman mapping contract. An improper policy can destroy this route: Figure 2 has an absorbing destination and satisfies both assumptions, yet T(0,x2)=(0,min⁡{1+x2,2})T(0,x_2)=(0,\min\{1+x_2,2\})T(0,x2​)=(0,min{1+x2​,2}) is not a contraction in any norm on XXX. The main result therefore needs a way to retain fixed-point uniqueness and convergence without a uniform contraction rate. Compactness matters because a sequence of proper selectors may converge to an improper selector; Lemma 3 explains the associated cost behavior. Bertsekas and Tsitsiklis (1991), pp. 585–586, 591–595.

Formalization scope

States are Fin n, with the paper's state 111 represented by 0; the model requires n≥1n\ge1n≥1. A control set U(i)U(i)U(i) is a type with a metric, with compactness asserted for its whole carrier. Transition rows explicitly have nonnegative entries summing to one. These are the probability-vector conditions implicit in the word “probability.” Assumption 1 supplies a selector and therefore nonempty control sets. The paper writes T:Rn→RnT:\mathbb R^n\to\mathbb R^nT:Rn→Rn; where a theorem uses only Assumption 1, finite real Bellman infima are made explicit through TRealValued. Under Assumption 2, compactness and lower semicontinuity give real attained minima. Bertsekas and Tsitsiklis (1991), pp. 582–584.

Policy costs and their infimum use extended reals so that an improper policy's +∞+\infty+∞ cost is represented without a default finite value. Proposition 2 concludes, rather than assumes, that x∗x^*x∗ has real coordinates. Its policy infimum ranges over every sequence of selectors. Matrix products use the identity at time zero; T0T^0T0 is the identity. The destination-zero restriction is retained in every fixed-point and iteration claim. Defining optimal cost as a Bellman fixed point, or restricting the infimum to stationary policies, would remove the result the paper proves. Solvers can contribute the finite-chain, matrix-inverse, semicontinuity, and convergence arguments needed by these targets.

Selected references

  • Dimitri P. Bertsekas and John N. Tsitsiklis, An Analysis of Stochastic Shortest Path Problems, Mathematics of Operations Research 16(3), 580–595, 1991. DOI.
11 thms2 active usersReviewed
Dynamic ProgrammingOperations Research·Captain: mikedeng1

Discrete-Time Controlled Markov Processes with Average Cost Criterion: A Survey 4: Under Sennott's Conditions an Average-Cost Optimal Stationary Policy ExistsResearch Paper

Motivation

Many controlled queueing, inventory and maintenance systems are modelled as controlled Markov processes (CMPs) on a countable state space whose one-stage cost grows without bound: the holding cost of a queue grows with its length. For such systems the natural performance measure is the long-run average cost, and the basic question is whether some simple policy, one that looks only at the current state and never randomizes, is optimal among all policies, including those that use the whole history.

When the cost is bounded, the classical answer goes through a bounded solution of the average cost optimality equation (ACOE). For unbounded costs, bounded solutions are rare: in many queueing models the relative value function grows with the state, and growth conditions such as (5.2) of the survey may fail (Arapostathis et al. 1993, p. 307). Sennott (1986; 1989) replaced boundedness by one-sided conditions on the discounted value functions, which are often easy to verify for queueing models because the relative values are bounded below. This mission formalizes Sennott's existence theorem in the form given in the survey of Arapostathis, Borkar, Fernández-Gaucherand, Ghosh and Marcus, Theorem 5.9.

Timeline. For bounded costs, Ross (1983, the survey's Theorem 5.2) obtained a bounded ACOE solution, and with it an optimal stationary policy, when the differential discounted values are uniformly bounded. Federgruen, Hordijk and Tijms (1979) treated unbounded costs under Lyapunov-type recurrence conditions, which restrict how fast the cost may grow (survey, Remark 5.7). Sennott (1986, 1989) replaced these by a uniform lower bound and a pointwise, one-step integrable upper bound on the differential discounted values. The survey (1993, Theorem 5.9) states the result with compact action sets and continuous data, and Sennott's 1999 book (§7.2) gives the finite-action version in textbook form.

Setting

The state space is S={0,1,2,… }S=\{0,1,2,\dots\}S={0,1,2,…}. For each state iii the set U(i)U(i)U(i) of admissible actions is a nonempty compact subset of a metric space AAA. Choosing a∈U(i)a\in U(i)a∈U(i) in state iii costs c(i,a)≥0c(i,a)\ge0c(i,a)≥0, and the next state is jjj with probability P(j∣i,a)P(j\mid i,a)P(j∣i,a). For fixed i,ji,ji,j, the maps a↦c(i,a)a\mapsto c(i,a)a↦c(i,a) and a↦P(j∣i,a)a\mapsto P(j\mid i,a)a↦P(j∣i,a) are continuous on U(i)U(i)U(i).

An admissible policy π∈Π\pi\in\Piπ∈Π chooses the action at time ttt according to a probability distribution πt(⋅∣ht)\pi_t(\cdot\mid h_t)πt​(⋅∣ht​) concentrated on U(xt)U(x_t)U(xt​), where ht=(x0,a0,…,xt)h_t=(x_0,a_0,\dots,x_t)ht​=(x0​,a0​,…,xt​) is the history; it may use the whole history and may randomize. A stationary deterministic policy f∈ΠSDf\in\Pi_{SD}f∈ΠSD​ is a map f:S→Af:S\to Af:S→A with f(i)∈U(i)f(i)\in U(i)f(i)∈U(i), applied at every step. Given an initial state iii and a policy π\piπ, the states and actions (Xt,At)(X_t,A_t)(Xt​,At​) form a stochastic process with law PiπP^\pi_iPiπ​ and expectation EiπE^\pi_iEiπ​.

For β∈(0,1)\beta\in(0,1)β∈(0,1), the discounted cost and the average cost of π\piπ from iii are

Jβ(i,π)=Eiπ∑t=0∞βtc(Xt,At),J(i,π)=lim sup⁡N→∞1N Eiπ∑t=0N−1c(Xt,At),J_\beta(i,\pi)=E^\pi_i\sum_{t=0}^\infty\beta^tc(X_t,A_t),\qquad J(i,\pi)=\limsup_{N\to\infty}\frac1N\,E^\pi_i\sum_{t=0}^{N-1}c(X_t,A_t),Jβ​(i,π)=Eiπ​t=0∑∞​βtc(Xt​,At​),J(i,π)=N→∞limsup​N1​Eiπ​t=0∑N−1​c(Xt​,At​),

both in [0,∞][0,\infty][0,∞]. The optimal values are Jβ∗(i)=inf⁡π∈ΠJβ(i,π)J^*_\beta(i)=\inf_{\pi\in\Pi}J_\beta(i,\pi)Jβ∗​(i)=infπ∈Π​Jβ​(i,π) and J∗(i)=inf⁡π∈ΠJ(i,π)J^*(i)=\inf_{\pi\in\Pi}J(i,\pi)J∗(i)=infπ∈Π​J(i,π), and the differential discounted value is hβ(i)=Jβ∗(i)−Jβ∗(0)h_\beta(i)=J^*_\beta(i)-J^*_\beta(0)hβ​(i)=Jβ∗​(i)−Jβ∗​(0). A policy f∈ΠSDf\in\Pi_{SD}f∈ΠSD​ is AC-optimal if J(i,f)=J∗(i)J(i,f)=J^*(i)J(i,f)=J∗(i) for every iii.

Sennott's conditions (Assumptions 5.14–5.16) are:

  1. Jβ∗(i)<∞J^*_\beta(i)<\inftyJβ∗​(i)<∞ for all i∈Si\in Si∈S and β∈(0,1)\beta\in(0,1)β∈(0,1);
  2. there is a nonnegative integer LLL with hβ(i)≥−Lh_\beta(i)\ge-Lhβ​(i)≥−L for all iii and β\betaβ;
  3. there is M:S→R+M:S\to\mathbb R_+M:S→R+​ with hβ(i)≤M(i)h_\beta(i)\le M(i)hβ​(i)≤M(i) for all iii and β\betaβ, and for each iii some a(i)∈U(i)a(i)\in U(i)a(i)∈U(i) with ∑jP(j∣i,a(i))M(j)<∞\sum_jP(j\mid i,a(i))M(j)<\infty∑j​P(j∣i,a(i))M(j)<∞.

Formalization targets

Goal: Theorem 5.9

Under Assumptions 5.14–5.16, there is f∈ΠSD with J(i,f)=inf⁡π∈ΠJ(i,π)  for every i∈S.\text{Under Assumptions 5.14–5.16, there is } f\in\Pi_{SD}\text{ with } J(i,f)=\inf_{\pi\in\Pi}J(i,\pi)\ \text{ for every } i\in S.Under Assumptions 5.14–5.16, there is f∈ΠSD​ with J(i,f)=π∈Πinf​J(i,π)  for every i∈S.

The goal asserts only existence. It does not fix the optimal cost, and it does not claim that the optimal cost is constant or that an optimality equation holds.

Milestones

  1. Theorem 2.1 (i), (iii), countable form: the discounted cost optimality equation Jβ∗(i)=inf⁡a∈U(i){c(i,a)+β∑jP(j∣i,a)Jβ∗(j)}J^*_\beta(i)=\inf_{a\in U(i)}\{c(i,a)+\beta\sum_jP(j\mid i,a)J^*_\beta(j)\}Jβ∗​(i)=infa∈U(i)​{c(i,a)+β∑j​P(j∣i,a)Jβ∗​(j)} and a β\betaβ-discount optimal fβ∈ΠSDf_\beta\in\Pi_{SD}fβ​∈ΠSD​.
  2. Display (5.15): (1−β)Jβ∗(0)+hβ(i)=c(i,fβ(i))+β∑jP(j∣i,fβ(i))hβ(j)(1-\beta)J^*_\beta(0)+h_\beta(i)=c(i,f_\beta(i))+\beta\sum_jP(j\mid i,f_\beta(i))h_\beta(j)(1−β)Jβ∗​(0)+hβ​(i)=c(i,fβ​(i))+β∑j​P(j∣i,fβ​(i))hβ​(j).
  3. The limit objects: along a subsequence βn→1\beta_n\to1βn​→1, fβn→ff_{\beta_n}\to ffβn​​→f, hβn→h≥−Lh_{\beta_n}\to h\ge-Lhβn​​→h≥−L pointwise, and (1−βn)Jβn∗(i)→ρ∗(1-\beta_n)J^*_{\beta_n}(i)\to\rho^*(1−βn​)Jβn​∗​(i)→ρ∗, a constant.
  4. The average cost optimality inequality (ACOI) ρ∗+h(i)≥c(i,f(i))+∑jP(j∣i,f(i))h(j)\rho^*+h(i)\ge c(i,f(i))+\sum_jP(j\mid i,f(i))h(j)ρ∗+h(i)≥c(i,f(i))+∑j​P(j∣i,f(i))h(j).
  5. An ACOI along fff with hhh bounded below gives J(i,f)≤ρJ(i,f)\le\rhoJ(i,f)≤ρ.
  6. Theorem A.2: the Abelian inequalities between Cesàro and Abel means (already on the platform).
  7. J(i,π)≥ρ∗J(i,\pi)\ge\rho^*J(i,π)≥ρ∗ for every π∈Π\pi\in\Piπ∈Π.

Significance

The result. Theorem 5.9 is the standard existence theorem for average-optimal stationary policies with unbounded costs on countable state spaces. Its conditions are verified routinely for controlled queues, where relative values are monotone in the queue length and hence bounded below. It shows that randomization and memory do not reduce the long-run average cost, and the ACOI it produces is the starting point for value and policy iteration and for structural results such as threshold policies.

Formalizing it. The theorem is proved in the literature (Sennott 1989; Sennott 1999, Theorem 7.2.3; survey, p. 308). It has no machine-checked proof. The finite-action version, SennottDP.SEN.thm_7_2_3_sen_acoi, is posed on Prove2Me and still open; this mission poses the compact-action version, which needs continuity and compactness arguments that the finite case avoids. A formal proof also requires a general theory of history-dependent policies on path space (Ionescu-Tulcea), the discounted optimality equation with unbounded costs, and the passage from Abel to Cesàro means. All three are reusable well beyond this paper.

Difficulty

The obvious argument lets β→1\beta\to1β→1 in the discounted optimality equation (5.6). Two steps fail without more structure. First, hβh_\betahβ​ need not converge, and with unbounded costs it is not uniformly bounded, so the limit has to be taken pointwise along a subsequence, with only a lower bound uniform in the state. Second, the limit cannot be passed through the infinite sum ∑jP(j∣i,a)hβ(j)\sum_jP(j\mid i,a)h_\beta(j)∑j​P(j∣i,a)hβ​(j) by dominated convergence, because no integrable dominating function exists for every action. Only an inequality survives (Fatou), so the limit is an ACOI, not an equation. The inequality then has to be turned into optimality against all of Π\PiΠ, which includes history-dependent randomized policies whose costs are not described by any optimality equation. The lower bound for these comes from comparing Cesàro and Abel means, not from dynamic programming.

Formalization scope

The Lean development uses the following representation and conventions.

  • States, actions, model. The state space is ℕ. The action space is a metric space with its Borel σ-algebra. U i is nonempty and compact, c is measurable and nonnegative on admissible pairs, P is a Markov kernel, and c(i,⋅)c(i,\cdot)c(i,⋅), P(j∣i,⋅)P(j\mid i,\cdot)P(j∣i,⋅) are continuous on U(i)U(i)U(i).
  • Policies. Π\PiΠ consists of all history-dependent randomized policies, with admissibility required almost surely. J∗J^*J∗ and Jβ∗J^*_\betaJβ∗​ are infima over all of Π\PiΠ, never over stationary policies only. Restricting the infimum to ΠSD\Pi_{SD}ΠSD​ would drop the Tauberian half of the theorem and is not the paper's statement.
  • Costs. Costs are lower Lebesgue integrals in [0,∞][0,\infty][0,∞] against the Ionescu-Tulcea path measure, and the average cost is a limsup in [0,∞][0,\infty][0,∞].
  • Explicit hypotheses. hβh_\betahβ​ is a difference of real parts and is used only under Assumption 5.14, so it is never read off an infinite Jβ∗J^*_\betaJβ∗​. The quantifiers over iii and β\betaβ in Assumption 5.15, implicit on the page, are universal, and LLL is a natural number as printed. Every series ∑jP(j∣i,a)h(j)\sum_jP(j\mid i,a)h(j)∑j​P(j∣i,a)h(j) carries a summability hypothesis or conclusion.
  • Corrected claim. Remark 5.8(a) as printed claims that any scalar ρ\rhoρ satisfying the ACOI with hhh bounded below is the optimal average cost. That is false (h≡0h\equiv0h≡0, ρ=sup⁡c\rho=\sup cρ=supc), so only the inequality J(i,f)≤ρJ(i,f)\le\rhoJ(i,f)≤ρ, which the proof uses, is stated.
  • Sequences. The milestones about limits are stated for any sequence βn∈(0,1)\beta_n\in(0,1)βn​∈(0,1) with βn→1\beta_n\to1βn​→1, not only increasing ones.

A trivializing formalization is excluded. Sennott's conditions are satisfiable (a one-action, zero-cost model satisfies all three), and AC-optimality is measured against all admissible policies, so the goal cannot hold vacuously or by a junk value.

Welcome contributions: the Markov property of the path measure for history-dependent policies; the discounted optimality equation for nonnegative unbounded costs; a measurable-selection or compactness argument for minimizing actions on compact U(i)U(i)U(i); Fatou's lemma for series with converging weights; and the Abelian inequalities in a form applied to expected costs.

Selected references

  • A. Arapostathis, V. S. Borkar, E. Fernández-Gaucherand, M. K. Ghosh, S. I. Marcus, Discrete-time controlled Markov processes with average cost criterion: a survey, SIAM J. Control Optim. 31(2) (1993) 282–344. https://doi.org/10.1137/0331018
  • L. I. Sennott, Average cost optimal stationary policies in infinite state Markov decision processes with unbounded costs, Oper. Res. 37(4) (1989) 626–633. https://doi.org/10.1287/opre.37.4.626
  • L. I. Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems, Wiley, 1999. https://doi.org/10.1002/9780470317037
  • L. I. Sennott, A new condition for the existence of optimal stationary policies in average cost Markov decision processes, Oper. Res. Lett. 5 (1986) 17–23 (reference [155] of the survey; no stable link checked).
  • S. M. Ross, Introduction to Stochastic Dynamic Programming, Academic Press, New York, 1983 (reference [150] of the survey).
  • A. Federgruen, A. Hordijk, H. C. Tijms, Denumerable state semi-Markov decision processes with unbounded costs, average cost criterion, Stochastic Process. Appl. 9 (1979) 223–235 (reference [53] of the survey).
  • R. Sznajder, J. A. Filar, Some comments on a theorem of Hardy and Littlewood, J. Optim. Theory Appl. 75 (1992) (reference [176] of the survey, cited for Theorem A.2).
11 thms2 active usersReviewed
🏆Completed
Control TheoryDynamic ProgrammingOperations Research·Captain: mikedeng1

Optimal Control of Markov Processes with Incomplete State Information 1: Reduction to Complete State Information on the Conditional State Distributions, with the Same Optimal LawResearch Paper

Motivation

A controller often cannot see the state of the system it steers. It sees only measurements that are noisy functions of that state. In operations research this happens in machine maintenance and inspection, in queues observed only partially, and in inventory systems with inexact stock records. In control engineering it is the usual case. The question is what the controller should base its decisions on. The full record of past measurements is the obvious choice, but that record grows with time, so a law that uses it is a function on a space whose dimension grows with the horizon.

K. J. Åström's 1965 paper Optimal Control of Markov Processes with Incomplete State Information answered this question for finite Markov chains. The answer is that the conditional distribution of the hidden state given the measurements is a sufficient statistic. The problem with incomplete information is equivalent to a problem with complete information whose state is that distribution. This is the model now called a partially observable Markov decision process (POMDP), and the conditional distribution is now called the belief state.

Timeline. For linear systems with quadratic cost and Gaussian noise, the separation theorem of Joseph and Tou (1961) and Gunckel and Franklin (1963) says that the optimal control is a fixed function of the conditional mean of the state. Åström (1965) proved the reduction for finite-state Markov chains with arbitrary costs, with the conditional distribution as the new state. Smallwood and Sondik (1973) showed that for finite horizons the value function is piecewise linear and concave in the belief, which made exact computation possible. Bertsekas and Shreve (1978) and Bäuerle and Rieder (2011) gave the reduction for general Borel models.

Setting

The hidden state xtx_txt​, t=1,…,Nt = 1, \dots, Nt=1,…,N, takes values in a finite set SSS. The controls u=(u1,…,ur)u = (u_1, \dots, u_r)u=(u1​,…,ur​) range over a compact nonempty set U⊂RrU \subset \mathbb R^rU⊂Rr. The state moves by the transition probabilities pij(u,t)=P{xt=j∣xt−1=i}p_{ij}(u, t) = P\{x_t = j \mid x_{t-1} = i\}pij​(u,t)=P{xt​=j∣xt−1​=i}, which are continuous in uuu. The state is observed through outputs yty_tyt​ in a finite set YYY, with qij=P{yt=j∣xt=i}q_{ij} = P\{y_t = j \mid x_t = i\}qij​=P{yt​=j∣xt​=i}, conditionally independent given the states. The law of x1x_1x1​ is p1p^1p1. An instantaneous cost g(u,i,t)g(u, i, t)g(u,i,t), continuous in uuu, is paid at each time.

A control law chooses u(t)=c(η1,…,ηt,t)∈Uu(t) = c(\eta_1, \dots, \eta_t, t) \in Uu(t)=c(η1​,…,ηt​,t)∈U from the outputs observed so far, η(t)=(η1,…,ηt)\eta(t) = (\eta_1, \dots, \eta_t)η(t)=(η1​,…,ηt​). With u(t)u(t)u(t) moving xtx_txt​ to xt+1x_{t+1}xt+1​, a law determines the joint law of (x1,…,xN,y1,…,yN)(x_1, \dots, x_N, y_1, \dots, y_N)(x1​,…,xN​,y1​,…,yN​) and the expected cost

EL=E∑t=1Ng(u(t),xt,t).(2.6)EL = E \sum_{t=1}^N g(u(t), x_t, t). \tag{2.6}EL=Et=1∑N​g(u(t),xt​,t).(2.6)

Problem P.1 is to find an admissible law minimizing (2.6).

The conditional state distribution is wi(t)=P{xt=i∣η(t)}w_i(t) = P\{x_t = i \mid \eta(t)\}wi​(t)=P{xt​=i∣η(t)}. It is updated by Bayes' rule: with zj(u,w)i=∑sqij psi(u,t+1) wsz^j(u, w)_i = \sum_s q_{ij}\, p_{si}(u, t+1)\, w_szj(u,w)i​=∑s​qij​psi​(u,t+1)ws​ and ∥z∥=∑i∣zi∣\|z\| = \sum_i |z_i|∥z∥=∑i​∣zi​∣, the output ηt+1=j\eta_{t+1} = jηt+1​=j gives w(t+1)=zj(u(t),w(t))/∥zj(u(t),w(t))∥w(t+1) = z^j(u(t), w(t)) / \|z^j(u(t), w(t))\|w(t+1)=zj(u(t),w(t))/∥zj(u(t),w(t))∥, and ∥zj∥\|z^j\|∥zj∥ is the probability of that output. The cost-to-go Vk(w)V_k(w)Vk​(w) is the minimal expected cost of the steps k,…,Nk, \dots, Nk,…,N when xkx_kxk​ has distribution www, with VN+1=0V_{N+1} = 0VN+1​=0. Problem P.2 controls the process w(t)w(t)w(t) directly: a law chooses u(t)u(t)u(t) from w(1),…,w(t)w(1), \dots, w(t)w(1),…,w(t) to minimize E∑t=1N∑ig(u(t),i,t) wi(t)E\sum_{t=1}^N \sum_i g(u(t), i, t)\, w_i(t)E∑t=1N​∑i​g(u(t),i,t)wi​(t).

Formalization targets

Goal: Theorem 3

P.1 has a solution if and only if P.2 has one. For every solution (V,c0)(V, c^0)(V,c0) of the functional equation

Vk(w)=min⁡u∈U{∑ig(u,i,k) wi+∑jVk+1(zj(u,w)∥zj(u,w)∥)∥zj(u,w)∥},VN+1=0,(3.28)V_k(w) = \min_{u \in U} \Big\{ \sum_i g(u, i, k)\, w_i + \sum_j V_{k+1}\Big(\frac{z^j(u, w)}{\|z^j(u, w)\|}\Big) \|z^j(u, w)\| \Big\}, \qquad V_{N+1} = 0, \tag{3.28}Vk​(w)=u∈Umin​{i∑​g(u,i,k)wi​+j∑​Vk+1​(∥zj(u,w)∥zj(u,w)​)∥zj(u,w)∥},VN+1​=0,(3.28)

with c0(w,k)c^0(w, k)c0(w,k) attaining the minimum, the law

u(t)=c0(w(t),t)u(t) = c^0(w(t), t)u(t)=c0(w(t),t)

is optimal for P.1 and for P.2, among all admissible laws of each, and both minimal values equal Eη1V1(w(1))E_{\eta_1} V_1(w(1))Eη1​​V1​(w(1)).

Milestones

  1. (3.20)–(3.25): the conditional distributions obey the Bayes recursion, and ∥zj∥=P[yt+1=j∣η(t)]\|z^j\| = P[y_{t+1} = j \mid \eta(t)]∥zj∥=P[yt+1​=j∣η(t)].
  2. Theorem 1: the cost-to-go satisfies (3.28) with the minimum attained, and an optimal Markov law attains it.
  3. Theorem 2: a solution of (3.28) gives an optimal law for P.1 with value (3.29).
  4. Lemma 1: under u(t)=c(w(t),t)u(t) = c(w(t), t)u(t)=c(w(t),t), {w(t)}\{w(t)\}{w(t)} is a Markov process with transition probabilities P(y,Γ,u)=∑k∈K∥zk(u,y)∥P(y, \Gamma, u) = \sum_{k \in K} \|z^k(u, y)\|P(y,Γ,u)=∑k∈K​∥zk(u,y)∥.
  5. Proof of Theorem 3: the integral against this kernel is the sum in (3.28).

Significance

The result. Theorem 3 replaces a minimization over functions of ever longer measurement records with a recursion over a fixed space, the probability simplex over the states. Every exact and approximate POMDP algorithm starts from it: value iteration on beliefs, the piecewise-linear representation of Smallwood and Sondik, point-based methods. It also splits the controller in two. A filter computes w(t)w(t)w(t) in real time, and the function c0c^0c0 can be computed off-line. This is the decomposition the paper draws on p. 189, and it extends the linear-quadratic separation theorem to arbitrary finite chains.

Formalizing it. The theorem is proved. The platform has the reduction in Bäuerle and Rieder's discounted Borel model with an observable state component and rewards in extended reals. It does not have Åström's model: finite chains, time-dependent transition matrices, an unobservable state, costs, and laws of the raw output history. This mission formalizes Åström's statements as he gives them. The cost (2.6) is defined from the joint law of states and outputs, and the comparison classes are all laws of the outputs (P.1) and all laws of the distribution history (P.2). The finite setting makes every expectation a finite sum, so a complete development needs no measure theory.

Difficulty

The obvious argument is backward induction on the conditional distributions. The difficulty is that w(t)w(t)w(t) depends on the controls already used, so it is not given in advance: the state of the reduced problem is produced by the law being optimized. It has to be shown that the expected cost of an arbitrary law of the outputs, computed from the joint law, splits as the reduced recursion says. In particular, laws that use more of the record than w(t)w(t)w(t) must gain nothing. Restricting the comparison class to laws of the form c(w(t),t)c(w(t), t)c(w(t),t) assumes this conclusion.

A second difficulty is attainment. "Min" in (3.28) and "has a solution" presuppose that minima over UUU are attained, which needs continuity of Vk+1V_{k+1}Vk+1​ on the simplex. The weights ∥zj(u,w)∥\|z^j(u, w)\|∥zj(u,w)∥ can vanish, and then the update zj/∥zj∥z^j/\|z^j\|zj/∥zj∥ is undefined.

Formalization scope

States and outputs are finite types, St and Obs, with the chain given by the structure Model. Controls are Fin r → ℝ, and UUU is compact and nonempty. The law p1p^1p1 of x1x_1x1​ is the datum in place of the paper's law of x0x_0x0​, since no control u(0)u(0)u(0) exists. The transition from xtx_txt​ to xt+1x_{t+1}xt+1​ uses u(t)u(t)u(t) and the matrix p(u(t),t+1)p(u(t), t+1)p(u(t),t+1). Times 1,…,N1, \dots, N1,…,N are indexed by Fin N as 0,…,N−10, \dots, N-10,…,N−1.

The norm ∥⋅∥\|\cdot\|∥⋅∥ is the ℓ1\ell^1ℓ1 norm l1, not Mathlib's sup norm. Conditional distributions are ratios of path sums, condState, and are claimed only on output histories of positive probability. When ∥zj∥=0\|z^j\| = 0∥zj∥=0 the update is the zero vector and is always multiplied by 000.

The cost-to-go costToGo is an infimum over admissible tail laws. Its index set is nonempty and the costs are bounded below, so the real infimum is a true infimum. It is never defined through (3.28), since that would make Theorem 1 circular. The P.2 functional sums branch by branch over the outputs, with weights ∥zj∥\|z^j\|∥zj∥. "Given by Theorem 1" is read as "c0(w,k)∈Uc^0(w, k) \in Uc0(w,k)∈U attains the minimum in (3.28)" (IsSolution328).

The goal is not the bare equivalence of solvability. In this compact, continuous, finite setting both problems always have solutions, so that sentence alone is trivially true. The goal also requires the law c0(w(t),t)c^0(w(t), t)c0(w(t),t) to be optimal in both problems, against every admissible law, with equal minimal values.

Reusable beyond this mission are the finite POMDP model, the joint path law, the Bayes filter and the belief-MDP kernel. Welcome contributions include proofs of the milestones, the continuity of VkV_kVk​ on the simplex, and existence of solutions of (3.28).

Selected references

  • K. J. Åström, Optimal control of Markov processes with incomplete state information, Journal of Mathematical Analysis and Applications 10(1):174–205, 1965. https://doi.org/10.1016/0022-247X(65)90154-X
  • R. D. Smallwood and E. J. Sondik, The optimal control of partially observable Markov processes over a finite horizon, Operations Research 21(5):1071–1088, 1973. https://doi.org/10.1287/opre.21.5.1071
  • D. P. Bertsekas and S. E. Shreve, Stochastic Optimal Control: The Discrete-Time Case, Academic Press, 1978, Chapter 10. https://web.mit.edu/dimitrib/www/soc.html
  • N. Bäuerle and U. Rieder, Markov Decision Processes with Applications to Finance, Springer, 2011, Chapter 5. https://doi.org/10.1007/978-3-642-18324-9
  • P. D. Joseph and J. T. Tou, On linear control theory, Transactions of the AIEE, Part II 80(4):193–196, 1961. https://doi.org/10.1109/TAI.1961.6371743
10 thms2 active usersReviewed
Dynamic ProgrammingOperations Research·Captain: mikedeng1

Discrete-Time Controlled Markov Processes with Average Cost Criterion: A Survey 1: Uniformly Bounded Differential Discounted Values Give a Bounded Solution of the Average Cost Optimality EquationResearch Paper

Motivation

Many control problems in queueing, inventory and communication systems run indefinitely, and the quantity of interest is the long-run cost per unit time rather than a discounted total. The average cost criterion is harder to analyse than the discounted one: the discounted dynamic programming operator is a contraction, while the average cost problem has no contraction, and on an infinite state space its behaviour depends on the recurrence structure of the controlled chain. The survey of Arapostathis, Borkar, Fernández-Gaucherand, Ghosh and Marcus (SIAM J. Control Optim. 31 (1993)) organises the theory around the average cost optimality equation (ACOE) and the conditions under which it has a solution.

Timeline (as recorded in the survey's §3 and §5). Derman studied the ACOE and characterized optimal stationary policies by its solutions (Derman, On sequential decisions and Markov chains, Management Sci. 1962; Denumerable state Markovian decision processes — average cost criterion, Ann. Math. Statist. 1966). Taylor introduced a vanishing discount argument for a replacement problem (Ann. Math. Statist. 1965). Ross extended it to general countable models, showing that uniformly bounded differential discounted value functions yield a bounded solution of the ACOE (Ann. Math. Statist. 1968, two papers; Introduction to Stochastic Dynamic Programming, 1983). Sennott replaced the uniform bound by one-sided bounds and obtained the average cost optimality inequality (Oper. Res. 1989). The survey presents Ross's result as Theorem 5.2, following the 1983 book; this mission formalizes it.

Setting

A controlled Markov process on the countable state space S={0,1,2,… }S=\{0,1,2,\dots\}S={0,1,2,…} consists of a metric space A\mathbf AA of actions; for each state iii a nonempty compact set U(i)⊆AU(i)\subseteq\mathbf AU(i)⊆A of admissible actions; a cost c(i,a)≥0c(i,a)\ge0c(i,a)≥0; and transition probabilities P(j∣i,a)P(j\mid i,a)P(j∣i,a). For fixed i,ji,ji,j, the maps a↦c(i,a)a\mapsto c(i,a)a↦c(i,a) and a↦P(j∣i,a)a\mapsto P(j\mid i,a)a↦P(j∣i,a) are continuous on U(i)U(i)U(i).

An admissible policy π\piπ chooses, at each time ttt, a probability distribution on U(Xt)U(X_t)U(Xt​) that may depend on the whole past (X0,A0,…,Xt)(X_0,A_0,\dots,X_t)(X0​,A0​,…,Xt​). The class of all of them is Π\PiΠ, and ΠSD\Pi_{SD}ΠSD​ is the class of stationary deterministic policies, maps fff with f(i)∈U(i)f(i)\in U(i)f(i)∈U(i). Each initial state iii and policy π\piπ define a law PiπP^\pi_iPiπ​ of the trajectory, with expectation EiπE^\pi_iEiπ​. For a discount factor 0<β<10<\beta<10<β<1,

Jβ(i,π)=Eiπ∑t=0∞βtc(Xt,At),J(i,π)=lim sup⁡N→∞1NEiπ∑t=0N−1c(Xt,At),J_\beta(i,\pi)=E^\pi_i\sum_{t=0}^\infty\beta^tc(X_t,A_t),\qquad J(i,\pi)=\limsup_{N\to\infty}\frac1N E^\pi_i\sum_{t=0}^{N-1}c(X_t,A_t),Jβ​(i,π)=Eiπ​t=0∑∞​βtc(Xt​,At​),J(i,π)=N→∞limsup​N1​Eiπ​t=0∑N−1​c(Xt​,At​),

and Jβ∗(i)=inf⁡π∈ΠJβ(i,π)J^*_\beta(i)=\inf_{\pi\in\Pi}J_\beta(i,\pi)Jβ∗​(i)=infπ∈Π​Jβ​(i,π), J∗(i)=inf⁡π∈ΠJ(i,π)J^*(i)=\inf_{\pi\in\Pi}J(i,\pi)J∗(i)=infπ∈Π​J(i,π). The differential discounted value function is hβ(i)=Jβ∗(i)−Jβ∗(0)h_\beta(i)=J^*_\beta(i)-J^*_\beta(0)hβ​(i)=Jβ∗​(i)−Jβ∗​(0). A pair (ρ,h)(\rho,h)(ρ,h), ρ∈R\rho\in\mathbb Rρ∈R, h:S→Rh:S\to\mathbb Rh:S→R, solves the ACOE if

ρ+h(i)=min⁡a∈U(i){c(i,a)+∑j∈SP(j∣i,a)h(j)},i∈S.(5.1)\rho+h(i)=\min_{a\in U(i)}\Big\{c(i,a)+\sum_{j\in S}P(j\mid i,a)h(j)\Big\},\qquad i\in S.\tag{5.1}ρ+h(i)=a∈U(i)min​{c(i,a)+j∈S∑​P(j∣i,a)h(j)},i∈S.(5.1)

In the Lean development these objects are CMP, Policy, StationaryPolicy, pathMeasure, discCost, avgCost, discValue (Jβ∗J^*_\betaJβ∗​), optAvg (J∗J^*J∗), hRel (hβh_\betahβ​) and ACOE.

Formalization targets

Goal: Theorem 5.2 (p. 301)

Assume Jβ∗(i)<∞J^*_\beta(i)<\inftyJβ∗​(i)<∞ for all β∈(0,1)\beta\in(0,1)β∈(0,1) and i∈Si\in Si∈S, and that there is K>0K>0K>0 with ∣hβ(i)∣≤K|h_\beta(i)|\le K∣hβ​(i)∣≤K for all such β\betaβ and iii. Then there are ρ∈R\rho\in\mathbb Rρ∈R, a bounded h:S→Rh:S\to\mathbb Rh:S→R and a sequence βn∈(0,1)\beta_n\in(0,1)βn​∈(0,1), βn→1\beta_n\to1βn​→1, with

(ρ,h) solves (5.1),h(i)=lim⁡n→∞hβn(i),lim⁡β↑1(1−β)Jβ∗(i)=ρ(i∈S).(\rho,h)\text{ solves (5.1)},\qquad h(i)=\lim_{n\to\infty}h_{\beta_n}(i),\qquad \lim_{\beta\uparrow1}(1-\beta)J^*_\beta(i)=\rho\qquad(i\in S).(ρ,h) solves (5.1),h(i)=n→∞lim​hβn​​(i),β↑1lim​(1−β)Jβ∗​(i)=ρ(i∈S).

The goal does not assert that ρ\rhoρ is the optimal average cost; that follows from Theorem 5.1 and Remark 5.1(a), which are milestones.

Milestones

  1. Lemma 2.1 (p. 289): the dynamic programming map T(v)(i)=inf⁡a∈U(i){c(i,a)+∑jP(j∣i,a)v(j)}T(v)(i)=\inf_{a\in U(i)}\{c(i,a)+\sum_jP(j\mid i,a)v(j)\}T(v)(i)=infa∈U(i)​{c(i,a)+∑j​P(j∣i,a)v(j)} satisfies T(v+k)=T(v)+kT(v+k)=T(v)+kT(v+k)=T(v)+k and is monotone.
  2. Theorem 2.1 (i), (iii) (p. 289), in the countable model: Jβ∗=TβJβ∗J^*_\beta=T_\beta J^*_\betaJβ∗​=Tβ​Jβ∗​ and a β\betaβ-discount optimal f∈ΠSDf\in\Pi_{SD}f∈ΠSD​ exists.
  3. Equation (5.6) (p. 301): (1−β)Jβ∗(0)+hβ(i)=min⁡a∈U(i){c(i,a)+β∑jP(j∣i,a)hβ(j)}(1-\beta)J^*_\beta(0)+h_\beta(i)=\min_{a\in U(i)}\{c(i,a)+\beta\sum_jP(j\mid i,a)h_\beta(j)\}(1−β)Jβ∗​(0)+hβ​(i)=mina∈U(i)​{c(i,a)+β∑j​P(j∣i,a)hβ​(j)}.
  4. Theorem 5.1 (p. 299): a solution of (5.1) with lim⁡t1tEiπh(Xt)=0\lim_t\frac1tE^\pi_ih(X_t)=0limt​t1​Eiπ​h(Xt​)=0 gives ρ=J(i,f)=J∗(i)\rho=J(i,f)=J^*(i)ρ=J(i,f)=J∗(i) for a minimizing selector fff; minimizing selectors are average optimal; conversely, an average optimal fff with an irreducible positive recurrent chain is a minimizing selector.
  5. Remark 5.1(a) (p. 300): a bounded solution of (5.1) satisfies the growth condition of Theorem 5.1.

Significance

Theorem 5.2 is the template of the vanishing discount method. Under its hypothesis the average cost problem has a bounded solution of the ACOE, so (through Theorem 5.1) the optimal average cost is a constant ρ\rhoρ independent of the initial state, it is attained by a stationary deterministic policy, and it is the Abelian limit of the scaled discounted values. Recurrence conditions on the controlled chain, such as uniformly bounded mean return times to a fixed state (Theorem 5.3 of the survey), are verified by checking the hypothesis of Theorem 5.2; the later results of §5 refine its conclusion under weaker hypotheses.

The theorem itself is classical. What this mission adds is a machine-checked statement and, eventually, proof, on a model with history-dependent randomized policies, compact action sets and unbounded costs, together with the supporting verification theorem (Theorem 5.1) and the discounted optimality equation. To our knowledge none of these results has been formalized in Lean; Mathlib has the Ionescu-Tulcea construction of the path measure but no controlled Markov processes.

Difficulty

The obvious argument fixes a sequence βn↑1\beta_n\uparrow1βn​↑1, extracts a pointwise convergent subsequence of the bounded functions hβnh_{\beta_n}hβn​​ and of the bounded numbers (1−βn)Jβn∗(0)(1-\beta_n)J^*_{\beta_n}(0)(1−βn​)Jβn​∗​(0), and passes to the limit in (5.6). Two steps resist this. First, the limit of a minimum over U(i)U(i)U(i) is not in general the minimum of the limits: the convergence of a↦∑jP(j∣i,a)hβn(j)a\mapsto\sum_jP(j\mid i,a)h_{\beta_n}(j)a↦∑j​P(j∣i,a)hβn​​(j) must be shown to be uniform on the compact set U(i)U(i)U(i), which requires more than pointwise continuity of each P(j∣i,⋅)P(j\mid i,\cdot)P(j∣i,⋅). Second, the subsequential limit ρ\rhoρ could depend on the subsequence, so part (iii), a limit along all β↑1\beta\uparrow1β↑1, needs an independent identification of ρ\rhoρ, here as the optimal average cost through Theorem 5.1, which in turn needs the comparison with arbitrary history-dependent policies. The discounted optimality equation behind (5.6) also has to be established for unbounded costs, where Jβ∗J^*_\betaJβ∗​ is not the unique fixed point of TβT_\betaTβ​.

Formalization scope

The state space is ℕ; state 0 is the reference state of hβh_\betahβ​. Policies are history-dependent randomized stochastic kernels with the admissibility constraint πt(U(xt)∣ht)=1\pi_t(U(x_t)\mid h_t)=1πt​(U(xt​)∣ht​)=1, and J∗J^*J∗, Jβ∗J^*_\betaJβ∗​ are infima over all of them. Costs are lower Lebesgue integrals with values in [0,∞][0,\infty][0,∞], built from Mathlib's Kernel.trajMeasure. The following choices make implicit hypotheses explicit:

  • Finiteness of Jβ∗J^*_\betaJβ∗​. The paper's bound ∣hβ∣≤K|h_\beta|\le K∣hβ​∣≤K presupposes finite values; the goal assumes Jβ∗(i)<∞J^*_\beta(i)<\inftyJβ∗​(i)<∞, and (5.6) assumes it for its β\betaβ.
  • Convergent series in the ACOE. A solution of (5.1) requires every series ∑jP(j∣i,a)h(j)\sum_jP(j\mid i,a)h(j)∑j​P(j∣i,a)h(j), a∈U(i)a\in U(i)a∈U(i), to converge, and the minimum to be attained.
  • (5.2) over all policies. The paper prints the growth condition of Theorem 5.1 for π∈ΠSD\pi\in\Pi_{SD}π∈ΠSD​, but its conclusion ρ=J∗(i)\rho=J^*(i)ρ=J∗(i) concerns all policies, and the proof uses the condition for arbitrary π\piπ. It is stated for every π∈Π\pi\in\Piπ∈Π, with integrability of h(Xt)h(X_t)h(Xt​) explicit.
  • Theorem 2.1 is cited without proof in the survey for Borel models; in the countable model its Assumptions 2.2–2.3 follow from the continuity assumptions of §5. Only parts (i) and (iii) are stated.
  • Lemma 2.1 is stated for functions bounded below (on discrete ℕ these are the lower semicontinuous functions bounded below), with convergent series.
  • Irreducible, positive recurrent (converse of Theorem 5.1): every state is reached with positive probability from every state, and every state has finite expected return time.

A formalization in which J∗J^*J∗ is an infimum over stationary policies only, in which the ACOE is an inequality or holds for one fixed action, or in which hβh_\betahβ​ is computed from +∞+\infty+∞ values through a junk conversion, would trivialize the goal; all three are excluded by the definitions above.

A complete development needs the Ionescu-Tulcea path measure for history-dependent policies, the discounted optimality equation for nonnegative unbounded costs, Scheffé-type uniform convergence on compact action sets, and the martingale identity behind Theorem 5.1. The model file is reusable by the other missions of this series and by any countable-state average cost result; proofs of the milestones are welcome independently of the goal.

Selected references

  • A. Arapostathis, V. S. Borkar, E. Fernández-Gaucherand, M. K. Ghosh, S. I. Marcus, Discrete-time controlled Markov processes with average cost criterion: a survey, SIAM J. Control Optim. 31(2) (1993) 282–344. https://doi.org/10.1137/0331018
  • C. Derman, On sequential decisions and Markov chains, Management Sci. 9 (1962) 16–24 (reference [38] of the survey).
  • C. Derman, Denumerable state Markovian decision processes — average cost criterion, Ann. Math. Statist. 37 (1966) 1545–1553 (reference [39]).
  • H. M. Taylor, Markovian sequential replacement processes, Ann. Math. Statist. 36 (1965) 1677–1694 (reference [177]).
  • S. M. Ross, Non-discounted denumerable Markovian decision models, Ann. Math. Statist. 39 (1968) 412–423, and Arbitrary state Markovian decision processes, Ann. Math. Statist. 39 (1968) 2118–2122 (references [147], [148]).
  • S. M. Ross, Introduction to Stochastic Dynamic Programming, Academic Press, New York, 1983 (reference [150]).
  • L. I. Sennott, Average cost optimal stationary policies in infinite state Markov decision processes with unbounded costs, Oper. Res. 37 (1989) 626–633 (reference [156]).
9 thms2 active usersReviewed
🏆Completed
CombinatoricsOperations ResearchProbability+1·Captain: mikedeng1

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

Motivation

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

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

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

Setting

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

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

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

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

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

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

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

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

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

Formalization targets

Goal: consistency under sampling (Theorem 7.1)

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

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

Milestones

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

Significance

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

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

Difficulty

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

Formalization scope

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

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

Selected references

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

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

Motivation

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

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

Timeline:

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

Setting

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

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

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

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

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

the mean number of arrivals per service.

Formalization targets

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

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

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

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

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

Significance

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

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

Difficulty

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

Formalization scope

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

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

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

Selected references

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

Linear Least-Squares Algorithms for Temporal Difference Learning II: Probability-One Convergence of LS TD on Ergodic Markov ChainsResearch Paper

Motivation

Temporal-difference (TD) learning estimates the value function of a Markov chain — the expected discounted sum of future rewards from each state — from a single stream of observed transitions, without knowing the transition probabilities. With a linear function approximator the value of state xxx is represented as ϕx′θ\phi_x'\thetaϕx′​θ for a feature vector ϕx\phi_xϕx​ and a parameter θ\thetaθ. Classical TD(λ\lambdaλ) updates θ\thetaθ by stochastic approximation, and its behaviour depends on a step-size schedule that must be tuned.

Bradtke and Barto (Machine Learning 22, 1996) replaced the stochastic-approximation update by a least-squares solve: LS TD (Eq. (11)) recomputes θt\theta_tθt​ at every step as the instrumental-variable least-squares solution of the empirical consistency condition. The method, later generalized as LSTD(λ\lambdaλ) by Boyan (Machine Learning 49, 2002), is the basis of least-squares policy iteration and of the "LSTD" methods in standard reinforcement-learning texts (Sutton and Barto, Reinforcement Learning, 2nd ed., 2018, §9.8). Its appeal is that it has no step size; the question this mission formalizes is whether it nonetheless converges, with probability one, to the true parameter.

Timeline. Sutton (1988) introduced TD(λ\lambdaλ). Watkins and Dayan (1992) and Tsitsiklis (1994) proved probability-one convergence of tabular TD(0) and Q-learning. Bradtke and Barto (1996) proved probability-one convergence of LS TD on absorbing chains (Theorem 1) and on ergodic chains (Theorem 2). Tsitsiklis and Van Roy (IEEE TAC 42, 1997) proved convergence of linear TD(λ\lambdaλ) with general features on ergodic chains.

Setting

A finite Markov chain on a finite nonempty set XXX is a matrix PPP with P(x,y)≥0P(x,y)\ge0P(x,y)≥0 and ∑yP(x,y)=1\sum_yP(x,y)=1∑y​P(x,y)=1. A transition x→yx\to yx→y earns reward R(x,y)R(x,y)R(x,y); the expected reward out of xxx is rˉx=∑yP(x,y)R(x,y)\bar r_x=\sum_yP(x,y)R(x,y)rˉx​=∑y​P(x,y)R(x,y). For a discount factor γ\gammaγ the value function is

V(x)=E{∑k=0∞γkrk ∣ x0=x}=∑k=0∞γk(Pkrˉ)(x).V(x)=E\Big\{\sum_{k=0}^\infty\gamma^kr_k\ \Big|\ x_0=x\Big\}=\sum_{k=0}^\infty\gamma^k(P^k\bar r)(x).V(x)=E{k=0∑∞​γkrk​ ​ x0​=x}=k=0∑∞​γk(Pkrˉ)(x).

The chain is ergodic (Kemeny and Snell) if every state can be reached from every state: for all x,yx,yx,y there is nnn with Pn(x,y)>0P^n(x,y)>0Pn(x,y)>0. An invariant distribution is a probability vector π\piπ with πP=π\pi P=\piπP=π; write Π=diag⁡(π)\Pi=\operatorname{diag}(\pi)Π=diag(π).

Each state has a feature vector ϕx∈Rm\phi_x\in\mathbb R^mϕx​∈Rm; Φ\PhiΦ is the matrix with rows ϕx\phi_xϕx​. The true parameter θ∗\theta^*θ∗ is a vector with V(x)=ϕx′θ∗V(x)=\phi_x'\theta^*V(x)=ϕx′​θ∗ for all xxx.

The algorithm (Figure 3) starts at an arbitrary state x0x_0x0​, lets the chain move x0→x1→⋯x_0\to x_1\to\cdotsx0​→x1​→⋯, and after ttt transitions computes

θt=[1t∑kϕxk(ϕxk−γϕxk+1)′]−1[1t∑kϕxkR(xk,xk+1)],(11)\theta_t=\Big[\frac1t\sum_{k}\phi_{x_k}(\phi_{x_k}-\gamma\phi_{x_{k+1}})'\Big]^{-1}\Big[\frac1t\sum_k\phi_{x_k}R(x_k,x_{k+1})\Big],\tag{11}θt​=[t1​k∑​ϕxk​​(ϕxk​​−γϕxk+1​​)′]−1[t1​k∑​ϕxk​​R(xk​,xk+1​)],(11)

the sums running over the ttt transitions observed so far.

Formalization targets

Goal: Theorem 2 (p. 44)

If PPP is ergodic, (1) {ϕx}\{\phi_x\}{ϕx​} is linearly independent, (2) each ϕx\phi_xϕx​ has dimension ∣X∣|X|∣X∣, and (3) 0<γ<10<\gamma<10<γ<1, then θ∗\theta^*θ∗ is finite and, from any initial law,

θt⟶θ∗with probability 1.\theta_t\longrightarrow\theta^*\qquad\text{with probability }1 .θt​⟶θ∗with probability 1.

The goal leaves the chain, the rewards, the features and the initial law arbitrary.

Milestones, in the order of the proof

  1. Visit frequencies (Proof of Theorem 2, p. 45): an ergodic chain visits every state infinitely often and #{k<t:xk=x}/t→πx\#\{k<t:x_k=x\}/t\to\pi_x#{k<t:xk​=x}/t→πx​ almost surely.
  2. Invertibility (Proof of Theorem 2, p. 45): πx>0\pi_x>0πx​>0 for all xxx, and Φ′Π(I−γP)Φ\Phi'\Pi(I-\gamma P)\PhiΦ′Π(I−γP)Φ is invertible.
  3. The pathwise limit (Proof of Lemma 5, pp. 54–55): along any path whose transition frequencies converge to πxP(x,y)\pi_xP(x,y)πx​P(x,y), θt→[Φ′Π(I−γP)Φ]−1[Φ′Πrˉ]\theta_t\to[\Phi'\Pi(I-\gamma P)\Phi]^{-1}[\Phi'\Pi\bar r]θt​→[Φ′Π(I−γP)Φ]−1[Φ′Πrˉ].
  4. Lemma 5 (p. 43): for any chain, if almost surely every state is visited infinitely often and in proportion π\piπ, and Φ′Π(I−γP)Φ\Phi'\Pi(I-\gamma P)\PhiΦ′Π(I−γP)Φ is invertible, then θt→[Φ′Π(I−γP)Φ]−1[Φ′Πrˉ]\theta_t\to[\Phi'\Pi(I-\gamma P)\Phi]^{-1}[\Phi'\Pi\bar r]θt​→[Φ′Π(I−γP)Φ]−1[Φ′Πrˉ] almost surely.
  5. Eq. (12) (p. 44): the value series converges and rˉ=(I−γP)Φθ∗\bar r=(I-\gamma P)\Phi\theta^*rˉ=(I−γP)Φθ∗.

Significance

The result. Theorem 2 shows that an LS TD learner running on one long trajectory recovers the exact value function whenever the features can represent every function on the states, with no step-size schedule. It is the step-size-free counterpart of the tabular TD(0) convergence theorems and the starting point for the later analysis of LSTD with fewer features than states, where the limit is the TD fixed point [Φ′Π(I−γP)Φ]−1Φ′Πrˉ[\Phi'\Pi(I-\gamma P)\Phi]^{-1}\Phi'\Pi\bar r[Φ′Π(I−γP)Φ]−1Φ′Πrˉ rather than θ∗\theta^*θ∗. Lemma 5 is the general identification of that fixed point as the almost-sure limit of LSTD.

Formalizing it. The result is proved in the paper; it has not been machine-checked. A formalization adds three things the paper delegates: the strong law of large numbers for occupation times of a finite irreducible Markov chain, which the paper cites to Kemeny and Snell and which is not in Mathlib; the per-state transition frequencies used in the first sentence of the proof of Lemma 5; and the linear algebra of the limit. The first is reusable well beyond reinforcement learning.

Difficulty

The algebra is short once the empirical averages in (11) are known to converge. The difficulty is probabilistic: the averages are over a dependent sequence, so the ordinary strong law of large numbers does not apply. Two facts are needed: that the fraction of time in each state converges to πx\pi_xπx​ almost surely for any starting law, including periodic chains, where PnP^nPn itself does not converge; and that, among the visits to xxx, the fraction followed by a move to yyy converges to P(x,y)P(x,y)P(x,y), which needs the strong Markov property at successive visit times. Neither follows from convergence of the chain's distribution, and neither holds for a chain started at a fixed state without an argument that every state is reached.

Formalization scope

  • The model is a finite state type X with Fintype, DecidableEq, Nonempty, a row-stochastic matrix P : Matrix X X ℝ (structure Chain), rewards R : X → X → ℝ, features φ : X → Fin m → ℝ. Condition (2) is m = Fintype.card X; condition (1) is LinearIndependent ℝ φ.
  • "Ergodic" is read as irreducible, periodic chains allowed (Kemeny–Snell's aperiodic case is "regular"). "Arbitrary initial state" is read as every initial law ν\nuν, which contains every point mass.
  • The path is any process ZZZ on any probability space whose finite-dimensional distributions are ν(x0)P(x0,x1)⋯P(xn−1,xn)\nu(x_0)P(x_0,x_1)\cdots P(x_{n-1},x_n)ν(x0​)P(x0​,x1​)⋯P(xn−1​,xn​), with measurable events {Zt=x}\{Z_t=x\}{Zt​=x}.
  • VVV is the discounted series, never (I−γP)−1rˉ(I-\gamma P)^{-1}\bar r(I−γP)−1rˉ; Lean's tsum is 000 on a divergent series, so "θ* is finite" is stated as convergence of the series together with existence of θ∗\theta^*θ∗ with V=Φθ∗V=\Phi\theta^*V=Φθ∗. θ∗\theta^*θ∗ is existential, never defined as Lemma 5's limit.
  • (11) uses the transitions k=0,…,t−1k=0,\dots,t-1k=0,…,t−1 (the paper prints k=1,…,tk=1,\dots,tk=1,…,t with ϕt+1\phi_{t+1}ϕt+1​; an index shift), keeps the factors 1/t1/t1/t, and uses Lean's matrix inverse, which is 000 on a singular matrix: the paper notes θt\theta_tθt​ is undefined for small ttt, and finitely many junk values do not affect convergence. No εI\varepsilon IεI regularization, no pseudo-inverse.
  • θLSTD=lim⁡tθt\theta_{\rm LSTD}=\lim_t\theta_tθLSTD​=limt​θt​ is formalized as convergence of θt\theta_tθt​ (existence of the limit is part of the claim).
  • The convergence is almost sure. A formalization that assumes the visit frequencies converge in the goal, starts the chain from π\piπ, or weakens the conclusion to convergence in probability or along a subsequence is a different theorem.

Needed infrastructure: the strong law for occupation times of a finite irreducible chain under an arbitrary initial law (milestone 1), the strong Markov property at visit times, positivity of the invariant distribution of an irreducible chain, and the invertibility of I−γPI-\gamma PI−γP for ∣γ∣<1|\gamma|<1∣γ∣<1. Contributions to any of these, as standalone lemmas, are welcome.

Selected references

  • S. J. Bradtke and A. G. Barto, Linear Least-Squares Algorithms for Temporal Difference Learning, Machine Learning 22, 33–57, 1996. https://doi.org/10.1023/A:1018056104778
  • J. G. Kemeny and J. L. Snell, Finite Markov Chains, Springer, 1976.
  • J. A. Boyan, Technical Update: Least-Squares Temporal Difference Learning, Machine Learning 49, 233–246, 2002. https://doi.org/10.1023/A:1017936530646
  • J. N. Tsitsiklis and B. Van Roy, An Analysis of Temporal-Difference Learning with Function Approximation, IEEE Transactions on Automatic Control 42(5), 674–690, 1997. https://doi.org/10.1109/9.580874
  • R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018. http://incompleteideas.net/book/the-book-2nd.html
8 thms2 active usersReviewed
🏆Completed
ProbabilityReinforcement Learning·Captain: mikedeng1

Linear Least-Squares Algorithms for Temporal Difference Learning I: Probability-One Convergence of Trial-Based LS TD on Absorbing Markov ChainsResearch Paper

Motivation

Temporal-difference learning estimates the value of a policy from observed state transitions and rewards. In a finite Markov decision process, fixing a policy produces a Markov chain, so policy evaluation becomes the task of estimating the expected return from each state. Bradtke and Barto's 1996 paper introduced a least-squares temporal-difference method, LS TD, that uses each observed transition in a linear system instead of selecting a learning-rate schedule. Their Theorem 1 states probability-one convergence for trials that end at absorbing states under explicit conditions on state access, rewards, and features. This mission formalizes that result and the statements the authors use to reach it. Bradtke and Barto, 1996.

The result matters for episodic policy evaluation: a learner may collect many short trajectories, each begun from a prescribed start distribution, and update the same estimate as data accumulate. The theorem identifies conditions under which the limit is the true value parameter even when the discount factor is one. That endpoint is useful for undiscounted tasks ending in an absorbing goal state; it also makes the convergence claim more delicate than the standard discounted case. The paper proves the result mathematically. The Lean statements in this mission are targets for machine-checked proofs, not claims of proofs already present in Mathlib. Bradtke and Barto, Theorem 1, pp. 43–44.

Setting

Let XXX be a finite, nonempty set of states. After a policy is fixed, P(x,y)P(x,y)P(x,y) is the probability of a transition from xxx to yyy, so each row of PPP is nonnegative and sums to one. A transition earns a deterministic real reward R(x,y)R(x,y)R(x,y). A state is absorbing when P(x,x)=1P(x,x)=1P(x,x)=1; let T\mathcal TT be the absorbing states and N=X∖T\mathcal N=X\setminus\mathcal TN=X∖T the others. The chain is absorbing when some absorbing state can be reached with positive probability from every state. A start distribution SSS gives the state at the beginning of each trial. No state is inaccessible when every state can be reached from the positive support of SSS.

For a discount γ\gammaγ, the expected immediate reward is rˉ(x)=∑yP(x,y)R(x,y)\bar r(x)=\sum_yP(x,y)R(x,y)rˉ(x)=∑y​P(x,y)R(x,y). The true value function is defined by the expected return

V(x)=∑k=0∞γk(Pkrˉ)(x).V(x)=\sum_{k=0}^{\infty}\gamma^k(P^k\bar r)(x).V(x)=k=0∑∞​γk(Pkrˉ)(x).

A feature vector ϕx∈Rm\phi_x\in\mathbb R^mϕx​∈Rm represents state xxx. The matrix Φ\PhiΦ has row xxx equal to ϕx⊤\phi_x^\topϕx⊤​. The target parameter θ∗\theta^*θ∗ is a vector for which V(x)=ϕx⊤θ∗V(x)=\phi_x^\top\theta^*V(x)=ϕx⊤​θ∗ at every state; it is something the theorem must establish, not an input chosen by a formula. Equation (11) forms an LS TD estimate θn\theta_nθn​ from the observed feature differences and rewards. Bradtke and Barto, §2, Table 1, Eq. (11).

Figure 2 collects trials. Each starts from SSS, follows PPP while the current state is non-absorbing, and ends upon entry into T\mathcal TT. The next trial starts with a fresh draw from SSS. The estimator includes transitions taken within trials; a draw that starts the next trial is not an observed transition for Eq. (11). Bradtke and Barto, Figure 2, p. 42.

Formalization targets

Theorem 1: convergence of trial-based LS TD

If every state is accessible from SSS, rewards between absorbing states vanish, the feature vectors on N\mathcal NN are linearly independent, features on T\mathcal TT are zero, m=∣N∣m=|\mathcal N|m=∣N∣, and 0≤γ≤10\le\gamma\le10≤γ≤1, then the expected-return series converges and there is a parameter θ∗\theta^*θ∗ satisfying

V(x)=ϕx⊤θ∗(x∈X),θn⟶θ∗with probability one.V(x)=\phi_x^\top\theta^*\quad(x\in X),\qquad \theta_n\longrightarrow\theta^*\quad\text{with probability one}.V(x)=ϕx⊤​θ∗(x∈X),θn​⟶θ∗with probability one.

The theorem keeps the paper's endpoint γ=1\gamma=1γ=1. The return series' convergence is explicit because a real infinite sum in Lean has a default value when it diverges. Bradtke and Barto, Theorem 1, p. 43.

Supporting targets

The milestone list follows the statements used in the paper: almost-sure visits and departure proportions for the trials; invertibility of the non-absorbing block of I−γPI-\gamma PI−γP; invertibility of Φ⊤Π(I−γP)Φ\Phi^\top\Pi(I-\gamma P)\PhiΦ⊤Π(I−γP)Φ for positive non-absorbing weights; Lemma 5's probability-one limit [Φ⊤Π(I−γP)Φ]−1Φ⊤Πrˉ[\Phi^\top\Pi(I-\gamma P)\Phi]^{-1}\Phi^\top\Pi\bar r[Φ⊤Π(I−γP)Φ]−1Φ⊤Πrˉ; and Eq. (12), rˉ=(I−γP)Φθ∗\bar r=(I-\gamma P)\Phi\theta^*rˉ=(I−γP)Φθ∗, together with finiteness of the true parameter. Here Π=diag⁡(π)\Pi=\operatorname{diag}(\pi)Π=diag(π). Bradtke and Barto, Lemma 5, p. 43; Proof of Theorem 1, p. 44.

Significance

Theorem 1 identifies the target of the asymptotic LS TD estimate: the value function defined from rewards, rather than merely a vector satisfying a sampled linear system. It covers an undiscounted absorbing chain, where a general fixed-point equation for values would fail to determine the values of absorbing states. The zero-reward and zero-feature conditions determine that boundary correctly. The result also explains the dimension condition: one independent feature vector for each non-absorbing state permits exact representation of the return. Bradtke and Barto, pp. 43–44.

A complete formal development would connect finite-state stochastic-process laws, visit frequencies, matrix limits, and the return-defined value function in one checked statement. The reusable parts include a finite row-stochastic chain model, a path-law description of restarts, a filtered least-squares estimator, and results about transient blocks of stochastic matrices. The paper's mathematical proof exists; this mission asks for formal proofs of its Lean targets. It also leaves room for alternative proofs and sharper, separately stated variants without weakening Theorem 1.

Difficulty

Ordinary matrix convergence cannot be applied until the observed transition frequencies are known to converge and the limiting matrix is invertible. A trial has random length, and the process resets after absorption, so a sequence indexed by all restart-process steps does not have the same raw state proportions as a count indexed by trials. The proof must account for both clocks while retaining the in-trial data of Eq. (11). At γ=1\gamma=1γ=1, a direct geometric-series argument for the value function is unavailable; its finiteness depends on absorption and the reward convention. The matrix I−γPI-\gamma PI−γP itself is singular at the undiscounted endpoint because of absorbing states, while its non-absorbing block is the relevant invertible matrix. Bradtke and Barto, Proof of Theorem 1, p. 44.

Formalization scope

The Lean state type is finite and nonempty. The paper evaluates one fixed policy, so PPP is a real row-stochastic matrix and RRR is a deterministic real reward on transitions; there is no action type in the formal statement. Absorbing states are exactly those with P(x,x)=1P(x,x)=1P(x,x)=1, and “absorbing chain” means that an absorbing state is reachable from every state. The paper does not define “inaccessible”; the formalization reads it as unreachable from the positive support of SSS. The state space carries the discrete measurable structure. Theorem 1's restart process and Lemma 5's ordinary Markov chain are each constrained by their finite-dimensional cylinder probabilities, not by assumed transition frequencies.

The feature space is Rm\mathbb R^mRm, and mmm equals the cardinality of the subtype N\mathcal NN. LS TD uses only departures from N\mathcal NN. Index nnn counts restart-process steps, so the estimate repeats at a restart draw; the paper counts in-trial transitions. These indices have the same asymptotic estimate when transitions continue. The 1/t1/t1/t factors in Eq. (11) cancel, and early singular inverses take Lean's total-inverse default. The value function is the return series, and the goal explicitly asserts its summability. The true parameter is existential, never defined by the formula whose convergence the theorem is meant to prove.

The paper defines πx\pi_xπx​ for absorbing chains as expected departures from xxx per trial. The Theorem 1 visit-frequency milestone normalizes by restart-process steps, which rescales all weights by one positive common factor; Lemma 5's matrix expression is invariant under that rescaling. Lemma 5 itself counts every ordinary-chain transition and carries the paper's “any Markov chain” scope. The milestone on invertibility allows arbitrary weights at absorbing states because their feature rows are zero. These conventions are recorded with each Lean item. Contributions toward the path-law frequency theorem, transient-matrix invertibility, return-series summability, and the matrix limit are all within scope. A vacuous path law or a value function defined from the desired linear equation would not establish the stated goal.

Selected references

  • S. J. Bradtke and A. G. Barto, Linear Least-Squares Algorithms for Temporal Difference Learning, Machine Learning 22, 33–57 (1996). DOI: 10.1023/A:1018056104778.
8 thms2 active usersReviewed
🏆Completed
Operations ResearchProbabilityStochastic Systems·Captain: mikedeng1

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

Motivation

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

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

Timeline:

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

Setting

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

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

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

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

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

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

Formalization targets

Goal: Theorem 4.1

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

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

where

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

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

Milestones

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

Significance

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

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

Difficulty

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

Formalization scope

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

Conventions fixed in Lean:

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

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

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

Selected references

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

Discrete Dynamic Programming 2: A Stationary Policy Is Nearly Optimal as the Discount Factor Tends to 1 Exactly When It Maximizes x(g) and, Among Those, y(g)Research Paper

Motivation

A finite Markov decision problem with discounting is solved by Howard's policy improvement routine: start from a stationary policy, switch to actions that do better against its value, repeat. When the discount factor β\betaβ tends to 111 the total discounted income typically diverges, and the natural targets become the long-run average income and, among policies with the best average, the policy that does best in the transient phase. Howard treated this undiscounted case directly (Howard, 1960). David Blackwell's 1962 paper (Blackwell, 1962) treats β=1\beta = 1β=1 as a limit of β<1\beta < 1β<1: it expands the discounted return of a stationary policy in powers of 1−β1-\beta1−β and reads off which policies remain good as β→1\beta \to 1β→1. The two leading coefficients of that expansion, the gain x(f)x(f)x(f) and the bias y(f)y(f)y(f), became the standard objects of average-reward and sensitive-discount optimality (Veinott, 1969; Puterman, 1994, Ch. 8–10).

Timeline. Howard (1960) gives policy iteration for discounted and average-income problems. Blackwell (1962) proves that some stationary policy is optimal for all β\betaβ near 111 (his Theorem 5, the subject of a companion mission) and, in Theorem 4, characterizes the nearly optimal stationary policies through xxx and yyy. Miller and Veinott (1969) and Veinott (1969) extend the expansion to all orders (nnn-discount optimality).

Setting

There are finitely many states s∈Ss \in Ss∈S and a finite nonempty set AAA of actions. Action aaa in state sss pays an income i(s,a)∈Ri(s,a) \in \mathbb Ri(s,a)∈R and moves the system to s′s's′ with probability q(s′∣s,a)q(s' \mid s,a)q(s′∣s,a). FFF is the finite set of decision rules f:S→Af : S \to Af:S→A. A policy is a sequence π={f1,f2,… }\pi = \{f_1, f_2, \dots\}π={f1​,f2​,…} of decision rules; f(∞)f^{(\infty)}f(∞) uses fff every day, and (g,π)(g, \pi)(g,π) uses ggg first and then π\piπ. For f∈Ff \in Ff∈F, r(f)r(f)r(f) is the vector (i(s,f(s)))s(i(s,f(s)))_s(i(s,f(s)))s​ and Q(f)Q(f)Q(f) the Markov matrix (q(s′∣s,f(s)))s,s′(q(s' \mid s,f(s)))_{s,s'}(q(s′∣s,f(s)))s,s′​. The discounted return of π\piπ is the vector

Vβ(π)=∑n=0∞βnQ(f1)⋯Q(fn) r(fn+1),0≤β<1,V_\beta(\pi) = \sum_{n=0}^\infty \beta^n Q(f_1)\cdots Q(f_n)\, r(f_{n+1}), \qquad 0 \le \beta < 1,Vβ​(π)=n=0∑∞​βnQ(f1​)⋯Q(fn​)r(fn+1​),0≤β<1,

and Vβ(f)V_\beta(f)Vβ​(f) abbreviates Vβ(f(∞))V_\beta(f^{(\infty)})Vβ​(f(∞)). Vectors are compared coordinatewise; w1>w2w_1 > w_2w1​>w2​ means w1≥w2w_1 \ge w_2w1​≥w2​ and w1≠w2w_1 \neq w_2w1​=w2​. A policy is β-optimal if its return dominates that of every policy, and U(β)U(\beta)U(β) is the return of a β-optimal policy. It is optimal if it is β-optimal for all β\betaβ sufficiently near 111, and nearly optimal if U(β)−Vβ(π)→0U(\beta) - V_\beta(\pi) \to 0U(β)−Vβ​(π)→0 as β→1\beta \to 1β→1.

For any Markov matrix QQQ, the limit matrix Q∗Q^*Q∗ is the limit of (I+Q+⋯+QN)/(N+1)(I + Q + \cdots + Q^N)/(N+1)(I+Q+⋯+QN)/(N+1), and the deviation matrix is H=(I−Q+Q∗)−1−Q∗H = (I - Q + Q^*)^{-1} - Q^*H=(I−Q+Q∗)−1−Q∗. For a rule fff, Q∗(f)Q^*(f)Q∗(f) and H(f)H(f)H(f) are those of Q(f)Q(f)Q(f), and

x(f)=Q∗(f) r(f),y(f)=H(f) r(f).x(f) = Q^*(f)\, r(f), \qquad y(f) = H(f)\, r(f).x(f)=Q∗(f)r(f),y(f)=H(f)r(f).

With p(s,a)w=∑s′q(s′∣s,a)ws′p(s,a)w = \sum_{s'} q(s' \mid s,a) w_{s'}p(s,a)w=∑s′​q(s′∣s,a)ws′​, the set G(s,f)G(s,f)G(s,f) consists of the actions aaa with p(s,a)x(f)>xs(f)p(s,a)x(f) > x_s(f)p(s,a)x(f)>xs​(f), or with p(s,a)x(f)=xs(f)p(s,a)x(f) = x_s(f)p(s,a)x(f)=xs​(f) and i(s,a)+p(s,a)y(f)>xs(f)+ys(f)i(s,a) + p(s,a)y(f) > x_s(f) + y_s(f)i(s,a)+p(s,a)y(f)>xs​(f)+ys​(f); E(s,f)E(s,f)E(s,f) consists of those with equality in both.

Formalization targets

Goal: Theorem 4(e)

For any f0f_0f0​ with G(s,f0)=∅G(s,f_0) = \varnothingG(s,f0​)=∅ for all sss:

x(f0)≥x(g)  ∀g∈F;∃f∗∈F∗:={g:x(g)=x(f0)} with y(f∗)≥y(g) ∀g∈F∗;x(f_0) \ge x(g)\ \ \forall g \in F;\qquad \exists f^* \in F^* := \{g : x(g) = x(f_0)\}\ \text{with}\ y(f^*) \ge y(g)\ \forall g \in F^*;x(f0​)≥x(g)  ∀g∈F;∃f∗∈F∗:={g:x(g)=x(f0​)} with y(f∗)≥y(g) ∀g∈F∗; g(∞) is nearly optimal  ⟺  x(g)=x(f∗) and y(g)=y(f∗).g^{(\infty)} \text{ is nearly optimal} \iff x(g) = x(f^*) \text{ and } y(g) = y(f^*).g(∞) is nearly optimal⟺x(g)=x(f∗) and y(g)=y(f∗).

Milestones and intermediate results

Milestones: Lemma 1(b) (rank⁡(I−Q)+rank⁡Q∗=S\operatorname{rank}(I-Q) + \operatorname{rank} Q^* = Srank(I−Q)+rankQ∗=S), Theorem 4(b) (improvement for β near 1), 4(c) (a sufficient condition for optimality), Lemma 2, and 4(d) (a sufficient condition for near optimality).

The mission also states, as intermediate results:

  • Lemma 1(a), (c), (d): for every Markov matrix, convergence of the Cesàro means to a Markov Q∗Q^*Q∗ with QQ∗=Q∗Q=Q∗Q∗=Q∗QQ^* = Q^*Q = Q^*Q^* = Q^*QQ∗=Q∗Q=Q∗Q∗=Q∗; unique solvability of Qx=xQx = xQx=x, Q∗x=Q∗cQ^*x = Q^*cQ∗x=Q∗c; nonsingularity of I−Q+Q∗I - Q + Q^*I−Q+Q∗, ∑nβn(Qn−Q∗)→H\sum_n \beta^n (Q^n - Q^*) \to H∑n​βn(Qn−Q∗)→H and the identities for HHH.
  • Theorem 4(a): Vβ(f)=x(f)/(1−β)+y(f)+o(1)V_\beta(f) = x(f)/(1-\beta) + y(f) + o(1)Vβ​(f)=x(f)/(1−β)+y(f)+o(1), with x(f),y(f)x(f), y(f)x(f),y(f) the unique solutions of their linear systems; display (2), the same expansion for (g,f(∞))(g, f^{(\infty)})(g,f(∞)).
  • Theorem 3 and its Corollary for fixed β<1\beta < 1β<1, and the first assertion of 4(e).

Significance

Theorem 4(e) says that near optimality for β near 1 is exactly lexicographic maximization: first of the average income xxx, then of the bias yyy. It justifies the two-level optimality equations used throughout average-reward dynamic programming and shows that, once the β = 1 improvement routine stops, the remaining problem is a bias maximization over the gain-optimal rules. Theorem 4(a) is the first two terms of the Laurent expansion of discounted values, the starting point of sensitive-discount optimality.

The results are classical and proved in the paper (Lemma 1 with a reference to Kemeny and Snell); no machine-checked proof of them is known on the platform. A complete development produces a multichain theory of Cesàro limit and deviation matrices of arbitrary finite Markov matrices, which Mathlib does not have, and the expansion of discounted returns near β = 1.

Difficulty

Lemma 1 must be proved for every Markov matrix, including reducible and periodic ones, where QnQ^nQn does not converge and the stationary distribution is not unique; arguments through the Perron–Frobenius eigenvector of an irreducible chain do not apply. In Theorem 4(e) the hard part is the existence of a single f∗f^*f∗ whose bias dominates every gain-optimal rule in every coordinate at once; a rule maximizing each coordinate separately is not enough. The final characterization compares a stationary policy with all policies, including time-dependent ones, through U(β)U(\beta)U(β).

Formalization scope

States and actions are finite nonempty types; incomes are real of any sign; a policy is a sequence ℕ → (St → Act) with π 0 the paper's f1f_1f1​. VβV_\betaVβ​ is a real tsum. Q∗Q^*Q∗ is limUnder of the Cesàro means, and its existence is Lemma 1(a), not an assumption; H(β)H(\beta)H(β) is a matrix tsum, whose summability for 0≤β<10 \le \beta < 10≤β<1 is part of Lemma 1(d); HHH uses Mathlib's total inverse, whose nonsingularity is also part of Lemma 1(d). x(f)x(f)x(f) and y(f)y(f)y(f) are defined by the closed forms Q∗(f)r(f)Q^*(f)r(f)Q∗(f)r(f) and H(f)r(f)H(f)r(f)H(f)r(f) from the paper's proof, and Theorem 4(a) asserts that they are the unique solutions of the paper's defining systems. Limits "as β → 1" are along β→1−\beta \to 1^-β→1−. "Nearly optimal" is encoded without UUU: for every ε>0\varepsilon > 0ε>0, for all β in some interval (β0,1)(\beta_0, 1)(β0​,1), every policy's return is at most Vβ(π)+εV_\beta(\pi) + \varepsilonVβ​(π)+ε in every coordinate; this is equivalent to U(β)−Vβ(π)→0U(\beta) - V_\beta(\pi) \to 0U(β)−Vβ​(π)→0 because a β-optimal policy exists. "Optimal" (§4) and "β-optimal" (§3) are distinct definitions, and Theorem 3's β-dependent improvement set is distinct from the §4 set G(s,f)G(s,f)G(s,f).

A formalization in which optimality or near optimality is tested only against stationary policies, or in which Q∗Q^*Q∗ is assumed to exist or the chain to be irreducible, proves a different and easier theorem and does not meet the targets.

Contributions are welcome at every level: the Cesàro and Abel limit theory of finite Markov matrices (reusable well beyond this paper), the policy improvement theorem for fixed β, and the comparison arguments of Theorem 4. Theorem 3 and the Corollary are also drafted in the companion mission on Theorem 5 in another namespace.

Selected references

  • D. Blackwell, Discrete Dynamic Programming, Ann. Math. Statist. 33(2):719–726, 1962. https://doi.org/10.1214/aoms/1177704593
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
  • J. G. Kemeny and J. L. Snell, Finite Markov Chains, Van Nostrand, 1960.
  • B. L. Miller and A. F. Veinott, Discrete Dynamic Programming with a Small Interest Rate, Ann. Math. Statist. 40(2):366–370, 1969.
  • A. F. Veinott, Discrete Dynamic Programming with Sensitive Discount Optimality Criteria, Ann. Math. Statist. 40(5):1635–1660, 1969. https://doi.org/10.1214/aoms/1177697379
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
10 thms2 active usersReviewed
🏆Completed
Dynamic ProgrammingMachine LearningReinforcement Learning·Captain: mikedeng1

Reinforcement Learning: An Introduction IX: Average Reward and the Futility of Discounting in Continuing ProblemsTextbook

Motivation

Reinforcement learning formulates control as maximizing reward accumulated over time. For continuing tasks, where interaction never terminates, the standard textbook objective is the discounted return with a discount rate γ<1\gamma < 1γ<1. Chapter 10 of Sutton and Barto, Reinforcement Learning: An Introduction (2nd ed., MIT Press, 2018), argues that once values are approximated by a function of features rather than stored per state, this objective is the wrong one, and it proposes the average-reward setting, long standard in dynamic programming (Puterman, Markov Decision Processes, 1994), as its replacement.

The central piece of evidence is a short calculation printed in the box The Futility of Discounting in Continuing Problems (p. 254). If one tries to rescue discounting by averaging discounted values over the states the policy actually visits, the resulting objective is a constant multiple of the average reward, so the discount rate has no effect on which policy is preferred. This mission formalizes that calculation together with the definitions of §10.3 that it rests on, and the two exercises of §10.3 that illustrate the differential value (10.13).

Setting

A finite MDP has finite state set S\mathcal SS, finite action set A\mathcal AA, finite reward set R⊂R\mathcal R \subset \mathbb RR⊂R and dynamics p(s′,r∣s,a)p(s', r \mid s, a)p(s′,r∣s,a), a probability distribution over next state and reward for each state–action pair (3.2)–(3.3). Write p(s′∣s,a)=∑rp(s′,r∣s,a)p(s' \mid s, a) = \sum_r p(s', r\mid s,a)p(s′∣s,a)=∑r​p(s′,r∣s,a). A policy π(a∣s)\pi(a \mid s)π(a∣s) is a distribution over actions for each state. It turns the MDP into a Markov chain with transition matrix Pπ(s,s′)=∑aπ(a∣s) p(s′∣s,a)P_\pi(s, s') = \sum_a \pi(a\mid s)\, p(s'\mid s,a)Pπ​(s,s′)=∑a​π(a∣s)p(s′∣s,a) and expected one-step reward rπ(s)=∑aπ(a∣s)∑s′,rp(s′,r∣s,a) rr_\pi(s) = \sum_a \pi(a\mid s)\sum_{s',r} p(s',r\mid s,a)\, rrπ​(s)=∑a​π(a∣s)∑s′,r​p(s′,r∣s,a)r, so that Pr⁡{St=s∣S0=s0}=Pπt(s0,s)\Pr\{S_t = s\mid S_0=s_0\} = P_\pi^t(s_0,s)Pr{St​=s∣S0​=s0​}=Pπt​(s0​,s) and E[Rt+1∣S0=s0]=(Pπtrπ)(s0)\mathbb E[R_{t+1}\mid S_0 = s_0] = (P_\pi^t r_\pi)(s_0)E[Rt+1​∣S0​=s0​]=(Pπt​rπ​)(s0​).

A stationary distribution of π\piπ is a probability vector μ\muμ on S\mathcal SS with

∑sμ(s)∑aπ(a∣s) p(s′∣s,a)=μ(s′)for all s′(10.8).\sum_s \mu(s)\sum_a \pi(a\mid s)\,p(s'\mid s,a) = \mu(s') \quad\text{for all } s' \qquad (10.8).s∑​μ(s)a∑​π(a∣s)p(s′∣s,a)=μ(s′)for all s′(10.8).

The average reward of π\piπ is

r(π)=lim⁡h→∞1h∑t=1hE[Rt∣S0,A0:t−1∼π](10.6),r(π)=∑sμπ(s)∑aπ(a∣s)∑s′,rp(s′,r∣s,a) r(10.7),r(\pi) = \lim_{h\to\infty}\frac1h\sum_{t=1}^h \mathbb E[R_t\mid S_0, A_{0:t-1}\sim\pi] \quad (10.6), \qquad r(\pi) = \sum_s \mu_\pi(s)\sum_a\pi(a\mid s)\sum_{s',r}p(s',r\mid s,a)\,r \quad (10.7),r(π)=h→∞lim​h1​t=1∑h​E[Rt​∣S0​,A0:t−1​∼π](10.6),r(π)=s∑​μπ​(s)a∑​π(a∣s)s′,r∑​p(s′,r∣s,a)r(10.7),

the second form holding when the steady-state distribution μπ(s)=lim⁡t→∞Pr⁡{St=s}\mu_\pi(s) = \lim_{t\to\infty}\Pr\{S_t = s\}μπ​(s)=limt→∞​Pr{St​=s} exists and does not depend on S0S_0S0​ (an ergodic MDP).

The discounted value function is vπγ(s)=Eπ[∑k≥0γkRt+k+1∣St=s]v^\gamma_\pi(s) = \mathbb E_\pi\big[\sum_{k\ge0}\gamma^k R_{t+k+1}\mid S_t = s\big]vπγ​(s)=Eπ​[∑k≥0​γkRt+k+1​∣St​=s], and the objective of the box is

J(π)=∑sμπ(s) vπγ(s).J(\pi) = \sum_s \mu_\pi(s)\, v^\gamma_\pi(s).J(π)=s∑​μπ​(s)vπγ​(s).

Finally, the differential value of a state (10.13) is vπ(s)=lim⁡γ→1lim⁡h→∞∑t=0hγt(Eπ[Rt+1∣S0=s]−r(π))v_\pi(s) = \lim_{\gamma\to1}\lim_{h\to\infty}\sum_{t=0}^h\gamma^t\big(\mathbb E_\pi[R_{t+1}\mid S_0 = s] - r(\pi)\big)vπ​(s)=limγ→1​limh→∞​∑t=0h​γt(Eπ​[Rt+1​∣S0​=s]−r(π)).

Formalization targets

Goal: the futility of discounting

For 0≤γ<10 \le \gamma < 10≤γ<1, every policy π\piπ and every stationary distribution μπ\mu_\piμπ​ of π\piπ,

J(π)=∑sμπ(s) vπγ(s)=11−γ r(π),J(\pi) = \sum_s \mu_\pi(s)\, v^\gamma_\pi(s) = \frac{1}{1-\gamma}\, r(\pi),J(π)=s∑​μπ​(s)vπγ​(s)=1−γ1​r(π),

and therefore, for a fixed γ\gammaγ and policies π,π′\pi, \pi'π,π′ with their own stationary distributions,

J(π)≤J(π′)  ⟺  r(π)≤r(π′).J(\pi) \le J(\pi') \iff r(\pi) \le r(\pi').J(π)≤J(π′)⟺r(π)≤r(π′).

Milestones

  1. (10.6)–(10.7): if Pr⁡{St=s∣S0=s0}→μ(s)\Pr\{S_t = s\mid S_0 = s_0\}\to\mu(s)Pr{St​=s∣S0​=s0​}→μ(s) for all s0,ss_0, ss0​,s, then from every start both lim⁡tE[Rt]\lim_t \mathbb E[R_t]limt​E[Rt​] and the Cesàro limit (10.6) exist and equal the μ\muμ-sum.
  2. (10.8): such a limit μ\muμ is a stationary distribution.
  3. (3.14): vπγv^\gamma_\pivπγ​ satisfies the Bellman equation, the step "(Bellman Eq.)" of the box.
  4. Offset invariance (p. 250): the differential Bellman equations for vπ,qπ,v∗,q∗v_\pi, q_\pi, v_*, q_*vπ​,qπ​,v∗​,q∗​ and the differential TD errors (10.10)–(10.11) are unchanged when all values are shifted by a constant.
  5. Exercise 10.6: for expected rewards 1,0,1,0,…1,0,1,0,\dots1,0,1,0,… from A\mathsf AA and 0,1,0,1,…0,1,0,1,\dots0,1,0,1,… from B\mathsf BB, the average reward is 12\tfrac1221​, the limit (10.7) and a steady-state distribution do not exist, and vπ(A)=14v_\pi(\mathsf A) = \tfrac14vπ​(A)=41​, vπ(B)=−14v_\pi(\mathsf B) = -\tfrac14vπ​(B)=−41​.
  6. Exercise 10.7: in the three-state ring with reward +1+1+1 on arrival in A\mathsf AA, the average reward is 13\tfrac1331​ and the differential values are v(A)=−13v(\mathsf A) = -\tfrac13v(A)=−31​, v(B)=0v(\mathsf B) = 0v(B)=0, v(C)=13v(\mathsf C) = \tfrac13v(C)=31​.

The book prints no answers to Exercises 10.6 and 10.7; the values above were computed for this mission.

Significance

The result itself. The identity shows that the discount rate cannot enter the ranking of policies once performance is measured over the on-policy state distribution: any objective of the form "discounted value averaged over where the policy goes" is the average reward up to a positive factor. The book draws from it the conclusion (p. 253) that γ\gammaγ changes from a problem parameter to a solution-method parameter, and that discounting algorithms with function approximation, which do not optimize this averaged objective, are not guaranteed to optimize average reward either. Milestones 1–2 connect the closed form of r(π)r(\pi)r(π) to its definition as a long-run rate; milestone 4 explains why differential methods determine values only up to an offset; the exercises show that (10.13) gives finite differential values in periodic chains where the differential return (10.9) has no limit.

Formalizing it. The results are classical and elementary, but the book's derivation is informal: it takes the Bellman equation for granted, sums a geometric series of equalities, and leaves implicit which distribution μπ\mu_\piμπ​ is meant and when (10.6) and (10.7) agree. This mission fixes each of those points: vπγv^\gamma_\pivπγ​ is defined from returns, the identity is proved for every stationary distribution, and the ergodicity hypothesis is made the exact limit condition the text states. No machine-checked version of these statements is known to exist; the platform's Markov-chain and average-reward libraries (Puterman's unichain optimality equation, Doeblin convergence) state different results.

Difficulty

The box reads as a chain of equalities, and each individual step is short. The one step that is not algebra is "(Bellman Eq.)": with vπγv^\gamma_\pivπγ​ defined as an expected discounted return, the Bellman equation requires exchanging an infinite sum with a finite expectation and shifting the index of a convergent series, which needs absolute convergence for γ<1\gamma < 1γ<1 and bounded rewards. The final line, which unrolls J=r+γJJ = r + \gamma JJ=r+γJ into a geometric series, is only valid because JJJ is finite. For milestone 1, the book's hypothesis is the existence of an S0S_0S0​-independent limiting distribution, not irreducibility or aperiodicity; replacing it by either would change the statement. The exercises require the iterated limit in (10.13) to be computed explicitly: the inner limit is a periodic series summed in closed form, and the outer limit is a removable singularity at γ=1\gamma = 1γ=1.

Formalization scope

The Lean development lives in the namespace SuttonBartoRL.AverageReward. States, actions and rewards are finite; one action set serves every state; the dynamics are the four-argument p(s′,r∣s,a)p(s', r\mid s,a)p(s′,r∣s,a). Probabilities Pr⁡{St=s∣S0=s0}\Pr\{S_t = s\mid S_0 = s_0\}Pr{St​=s∣S0​=s0​} and E[Rt+1∣S0=s0]\mathbb E[R_{t+1}\mid S_0=s_0]E[Rt+1​∣S0​=s0​] are computed from the matrix powers PπtP_\pi^tPπt​. The discounted value vπγv^\gamma_\pivπγ​ is a real series ∑kγk(Pπkrπ)(s)\sum_k \gamma^k (P_\pi^k r_\pi)(s)∑k​γk(Pπk​rπ​)(s); it is not defined as the solution of the Bellman equation, since that definition would reduce the goal to three lines of algebra. The average reward and JJJ take the state distribution μ\muμ as an explicit argument; the goal holds for every stationary distribution of π\piπ and assumes no ergodicity, which is all the box uses (under ergodicity μπ\mu_\piμπ​ is the unique one). γ=0\gamma = 0γ=0 is allowed. The differential value (10.13) is stated as the existence of both limits with the given value, with γ→1\gamma \to 1γ→1 from below, so no default value of a nonexistent limit can make a statement true. The optimality equations use a nonempty action set. The sum ∑t=1hE[Rt]\sum_{t=1}^h \mathbb E[R_t]∑t=1h​E[Rt​] of (10.6) is written with the index shifted to t=0,…,h−1t = 0,\dots,h-1t=0,…,h−1.

The Lean does not formalize a trajectory probability space: expectations and probabilities are the matrix expressions above, which is what they equal for a Markov chain. The Exercise 10.6 hypothesis constrains expected rewards of one policy, which is all the exercise uses.

Reusable parts: the finite-MDP layer duplicates the one drafted for the other missions of this series and is expected to be merged with it; the Cesàro and stationary-distribution lemmas of milestones 1–2 are general facts about finite Markov chains. Contributions welcome: proofs of any milestone, and a proof of the goal from milestone 3.

Selected references

  • R. S. Sutton, A. G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018, ISBN 9780262039246, §§10.3–10.4, pp. 249–254. http://incompleteideas.net/book/the-book-2nd.html
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
  • S. Mahadevan, "Average reward reinforcement learning: foundations, algorithms, and empirical results", Machine Learning 22, 159–195, 1996. https://doi.org/10.1007/BF00114727
11 thms2 active usersReviewed
🏆Completed
Linear algebraMachine LearningReinforcement Learning·Captain: mikedeng1

Reinforcement Learning: An Introduction VIII: The TD Fixed Point of Linear Semi-gradient TD(0) and Its Error BoundTextbook

Motivation

Reinforcement learning methods estimate the value function vπv_\pivπ​ of a policy π\piπ: the expected discounted sum of future rewards from each state. When the state space is large, vπv_\pivπ​ cannot be stored as a table and is approximated by a parametrized function. The most studied case is linear function approximation, where each state sss carries a feature vector x(s)∈Rd\mathbf x(s) \in \mathbb R^dx(s)∈Rd and the estimate is v^(s,w)=w⊤x(s)\hat v(s, \mathbf w) = \mathbf w^\top \mathbf x(s)v^(s,w)=w⊤x(s). Temporal-difference learning with this approximation, linear semi-gradient TD(0), is one of the basic algorithms of the field, and Chapter 9 of Sutton and Barto's Reinforcement Learning: An Introduction (2nd ed., MIT Press, 2018) presents its analysis: where the algorithm can converge, why that point exists, and how good it is.

The history is short. Sutton (1988, doi:10.1007/BF00115009) introduced TD learning and showed positive definiteness of the matrix governing its expected update. Dayan (1992, doi:10.1007/BF00992701) extended convergence to TD(λ). Tsitsiklis and Van Roy (1997, doi:10.1109/9.580874) proved convergence with probability one for linear TD(λ) under on-policy sampling and bounded the error of the limit. Bradtke and Barto (1996) introduced least-squares TD (LSTD), which computes the same limit directly.

Setting

A finite Markov decision process has finite sets of states S\mathcal SS, actions A\mathcal AA and rewards R⊂R\mathcal R \subset \mathbb RR⊂R, and dynamics p(s′,r∣s,a)p(s', r \mid s, a)p(s′,r∣s,a), the probability of next state s′s's′ and reward rrr after action aaa in state sss. A policy π(a∣s)\pi(a \mid s)π(a∣s) is a probability distribution over actions for each state. It induces a Markov chain on states with transition matrix P\mathbf PP, P(s,s′)=p(s′∣s)=∑aπ(a∣s)∑rp(s′,r∣s,a)\mathbf P(s, s') = p(s' \mid s) = \sum_a \pi(a \mid s) \sum_r p(s', r \mid s, a)P(s,s′)=p(s′∣s)=∑a​π(a∣s)∑r​p(s′,r∣s,a), and expected one-step reward rπ(s)r_\pi(s)rπ​(s). For a discount rate 0≤γ<10 \le \gamma < 10≤γ<1, the true value is vπ(s)=∑k≥0γk(Pkrπ)(s)v_\pi(s) = \sum_{k \ge 0} \gamma^k (\mathbf P^k r_\pi)(s)vπ​(s)=∑k≥0​γk(Pkrπ​)(s), the expected discounted return.

A state distribution μ\muμ is stationary if μ⊤P=μ⊤\mu^\top \mathbf P = \mu^\topμ⊤P=μ⊤; write D=diag(μ)\mathbf D = \mathrm{diag}(\mu)D=diag(μ). The feature matrix X\mathbf XX is the ∣S∣×d|\mathcal S| \times d∣S∣×d matrix with rows x(s)\mathbf x(s)x(s). The mean square value error of a weight vector is

VE‾(w)=∑sμ(s) [vπ(s)−w⊤x(s)]2.\overline{\mathrm{VE}}(\mathbf w) = \sum_{s} \mu(s)\,[v_\pi(s) - \mathbf w^\top \mathbf x(s)]^2 .VE(w)=s∑​μ(s)[vπ​(s)−w⊤x(s)]2.

Linear semi-gradient TD(0) updates wt+1=wt+α(Rt+1+γwt⊤xt+1−wt⊤xt)xt\mathbf w_{t+1} = \mathbf w_t + \alpha(R_{t+1} + \gamma \mathbf w_t^\top \mathbf x_{t+1} - \mathbf w_t^\top \mathbf x_t)\mathbf x_twt+1​=wt​+α(Rt+1​+γwt⊤​xt+1​−wt⊤​xt​)xt​. In steady state its expected update involves

b=E[Rt+1xt],A=E[xt(xt−γxt+1)⊤],\mathbf b = \mathbb E[R_{t+1}\mathbf x_t], \qquad \mathbf A = \mathbb E[\mathbf x_t(\mathbf x_t - \gamma \mathbf x_{t+1})^\top],b=E[Rt+1​xt​],A=E[xt​(xt​−γxt+1​)⊤],

and the TD fixed point is wTD=A−1b\mathbf w_{\mathrm{TD}} = \mathbf A^{-1}\mathbf bwTD​=A−1b. A real square matrix MMM, not necessarily symmetric, is positive definite if y⊤My>0y^\top M y > 0y⊤My>0 for every y≠0y \ne 0y=0. The key matrix is D(I−γP)\mathbf D(\mathbf I - \gamma\mathbf P)D(I−γP).

Formalization targets

Goal: the TD fixed point exists and its error bound (9.12), (9.14)

Under the hypotheses above, with every μ(s)>0\mu(s) > 0μ(s)>0 and linearly independent feature columns, A\mathbf AA is invertible, b=AwTD\mathbf b = \mathbf A \mathbf w_{\mathrm{TD}}b=AwTD​, and

VE‾(wTD)≤11−γmin⁡wVE‾(w).\overline{\mathrm{VE}}(\mathbf w_{\mathrm{TD}}) \le \frac{1}{1-\gamma}\min_{\mathbf w} \overline{\mathrm{VE}}(\mathbf w).VE(wTD​)≤1−γ1​wmin​VE(w).

Milestones

  1. The expected update (9.13): E[wt+1∣wt]=(I−αA)wt+αb\mathbb E[\mathbf w_{t+1} \mid \mathbf w_t] = (\mathbf I - \alpha \mathbf A)\mathbf w_t + \alpha \mathbf bE[wt+1​∣wt​]=(I−αA)wt​+αb.
  2. The matrix form A=X⊤D(I−γP)X\mathbf A = \mathbf X^\top \mathbf D(\mathbf I - \gamma \mathbf P)\mathbf XA=X⊤D(I−γP)X.
  3. The criterion of Sutton (1988): positive diagonal, nonpositive off-diagonal entries, positive row sums and nonnegative column sums give positive definiteness.
  4. The column sums of the key matrix, 1⊤D(I−γP)=(1−γ)μ⊤\mathbf 1^\top \mathbf D(\mathbf I - \gamma \mathbf P) = (1-\gamma)\mu^\top1⊤D(I−γP)=(1−γ)μ⊤.
  5. The key matrix and A\mathbf AA are positive definite.
  6. A positive definite A\mathbf AA is invertible and A−1b\mathbf A^{-1}\mathbf bA−1b is the unique solution of b=Aw\mathbf b = \mathbf A \mathbf wb=Aw (9.12).
  7. The Sherman–Morrison update (9.22) of the LSTD inverse A^t−1\hat{\mathbf A}_t^{-1}A^t−1​.

Significance

Positive definiteness of A\mathbf AA is the reason on-policy linear TD(0) is stable: it makes the expected iteration contract toward the fixed point for small step sizes, and it guarantees that the fixed point exists and is unique. The error bound (9.14) quantifies the price of bootstrapping: the limit of TD can be worse than the best linear approximation, but by at most the factor 1/(1−γ)1/(1-\gamma)1/(1−γ). The same objects A\mathbf AA, b\mathbf bb and the key matrix reappear in LSTD, in the analysis of off-policy divergence (Chapter 11 of the book, where D\mathbf DD is no longer the stationary distribution of P\mathbf PP and positive definiteness fails), and in gradient-TD methods.

All results here are known. The book gives the positive definiteness argument in a box and cites (9.14) without proof. None of them has a machine-checked proof on the platform; the general Woodbury identity (FamousTheorems.woodbury_identity) is available, and (9.22) is its rank-one case written for the LSTD recursion. The mission produces a formal account of the finite-state theory of linear TD(0), with every hypothesis the book leaves implicit stated.

Difficulty

The key matrix D(I−γP)\mathbf D(\mathbf I - \gamma \mathbf P)D(I−γP) is not symmetric, so the usual tools for symmetric positive definite matrices do not apply directly, and A\mathbf AA is positive definite only because of the specific interplay between D\mathbf DD and P\mathbf PP: if μ\muμ is replaced by a non-stationary distribution the claim is false (this is the off-policy counterexample of Chapter 11). The error bound (9.14) is not a consequence of positive definiteness alone. The TD fixed point is not the minimizer of VE‾\overline{\mathrm{VE}}VE, and VE‾(wTD)\overline{\mathrm{VE}}(\mathbf w_{\mathrm{TD}})VE(wTD​) has to be compared with the error of the μ\muμ-weighted projection of vπv_\pivπ​, which requires controlling P\mathbf PP in the μ\muμ-weighted norm. The book gives no argument for this step.

Formalization scope

The Lean development lives in the namespace SuttonBartoRL.LinearTD. The MDP has four-argument dynamics p(s′,r∣s,a)p(s', r \mid s, a)p(s′,r∣s,a) with a finite reward set and one action set for all states; policies are stochastic. vπv_\pivπ​ is defined from expected discounted returns as the series ∑kγkPkrπ\sum_k \gamma^k \mathbf P^k r_\pi∑k​γkPkrπ​, never from a Bellman equation or from wTD\mathbf w_{\mathrm{TD}}wTD​. A\mathbf AA and b\mathbf bb are defined as the book's steady-state expectations (9.11), as finite sums over μ\muμ, π\piπ and ppp; the matrix form is a milestone, not a definition. Features are a matrix Matrix S (Fin d) ℝ with rows x(s)\mathbf x(s)x(s); linear independence of its columns is LinearIndependent ℝ Xᵀ. Positive definiteness is a custom predicate ∀y≠0, 0<y⊤My\forall y \ne 0,\ 0 < y^\top M y∀y=0, 0<y⊤My, not Mathlib's Matrix.PosDef, which requires symmetry. The minimum in (9.14) is expressed by quantifying over every w\mathbf ww. The matrix inverse is Mathlib's, which is zero on singular matrices; the goal therefore asserts invertibility of A\mathbf AA explicitly.

Hypotheses the book leaves implicit and the statements make explicit: 0≤γ<10 \le \gamma < 10≤γ<1 (the continuing case); μ\muμ a stationary distribution of the chain induced by π\piπ with μ(s)>0\mu(s) > 0μ(s)>0 for every sss (otherwise the key matrix is only positive semidefinite); linearly independent feature columns (the book's "degenerate cases", p. 205). The box calls the off-diagonal entries of the key matrix "negative"; they are zero wherever p(s′∣s)=0p(s' \mid s) = 0p(s′∣s)=0, so the criterion is stated with nonpositive entries. The book's sentence that εI\varepsilon\mathbf IεI "ensures that A^t\hat{\mathbf A}_tA^t​ is always invertible" (p. 229) is false in general, because the summands xk(xk−γxk+1)⊤\mathbf x_k(\mathbf x_k - \gamma \mathbf x_{k+1})^\topxk​(xk​−γxk+1​)⊤ are not positive semidefinite: with d=1d = 1d=1, ε=1/10\varepsilon = 1/10ε=1/10, γ=1/2\gamma = 1/2γ=1/2, x0=1\mathbf x_0 = 1x0​=1, x1=11/5\mathbf x_1 = 11/5x1​=11/5 one gets A^1=0\hat{\mathbf A}_1 = 0A^1​=0. It is not stated; (9.22) carries invertibility of A^t−1\hat{\mathbf A}_{t-1}A^t−1​ and a nonzero denominator as hypotheses.

A statement in which vπv_\pivπ​ is defined as the solution of the projected equation, or in which A\mathbf AA is assumed invertible or positive definite, would make the goal trivial or empty; neither is done. Convergence of the stochastic algorithm with probability one is not stated, since the book says it needs conditions and a step-size schedule it does not give. The bound for the episodic case and for other bootstrapping methods (p. 208) is stated only by reference in the book and is not a target.

Useful infrastructure: the μ\muμ-weighted inner product and orthogonal projection onto the column space of X\mathbf XX, the non-expansiveness of a stochastic matrix in the norm of its stationary distribution, and the positive definiteness criterion for non-symmetric matrices. All of these are reusable in the off-policy and average-reward chapters of the book. Contributions of these lemmas, and of alternative proofs of the milestones, are welcome.

Selected references

  • Richard S. Sutton and Andrew G. Barto, Reinforcement Learning: An Introduction, 2nd ed., MIT Press, 2018, ISBN 9780262039246, §§9.2, 9.4, 9.8.
  • Richard S. Sutton, Learning to predict by the methods of temporal differences, Machine Learning 3, 1988. doi:10.1007/BF00115009
  • John N. Tsitsiklis and Benjamin Van Roy, An analysis of temporal-difference learning with function approximation, IEEE Transactions on Automatic Control 42(5), 1997. doi:10.1109/9.580874
  • Steven J. Bradtke and Andrew G. Barto, Linear least-squares algorithms for temporal difference learning, Machine Learning 22, 1996. doi:10.1007/BF00114723
  • Richard S. Varga, Matrix Iterative Analysis, Prentice-Hall, 1962.
11 thms2 active usersReviewed
PreviousPage 4 of 8Next

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