Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in

Get started

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

Dynamic Programming

291 missions · 170 completed

Missions

Open121Completed170All291
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Robust Assortment Optimization in Revenue Management Under the Multinomial Logit Choice Model 3: Robust Dynamic Assortments Grow with Remaining Capacity and over TimeResearch Paper

Motivation

Single-leg capacity allocation under customer choice is the basic dynamic problem of revenue management: a firm holds a fixed stock of a perishable resource (seats on a flight leg, rooms on a night), and in every period of a finite selling horizon it decides which products (fare classes) to offer to the arriving customer. Talluri and van Ryzin (Management Science, 2004) showed that under a multinomial logit (MNL) choice model with known parameters, the optimal assortment in every period is revenue-ordered and shrinks as capacity becomes scarcer ("nesting by fare order"), which is what justifies the protection levels and bid prices used in practice.

The MNL parameters are estimated from data and are never known exactly. Rusmevichientong and Topaloglu (Operations Research, 2012) study the robust version, in which an adversary picks the parameters of each period from an uncertainty set after seeing the offered assortment, following the robust Markov decision process framework of Iyengar (Mathematics of Operations Research, 2005). Their Section 4 shows that the structure of the known-parameter problem survives: the value function is concave in capacity, the optimal assortment is a revenue threshold set, and it grows with remaining capacity and, when uncertainty does not shrink, over time. This mission formalizes those results.

Setting

There are nnn products A={1,…,n}\mathcal A = \{1,\dots,n\}A={1,…,n} with revenues r1,…,rnr_1,\dots,r_nr1​,…,rn​. An MNL parameter vector is v=(v0,v1,…,vn)∈R++n+1v = (v_0, v_1, \dots, v_n) \in \mathbb R^{n+1}_{++}v=(v0​,v1​,…,vn​)∈R++n+1​; offered the assortment S⊆AS \subseteq \mathcal AS⊆A, a customer buys product i∈Si \in Si∈S with probability

ϕi(S,v)=viv0+∑ℓ∈Svℓ,\phi_i(S,v) = \frac{v_i}{v_0 + \sum_{\ell\in S} v_\ell},ϕi​(S,v)=v0​+∑ℓ∈S​vℓ​vi​​,

and nothing with probability 1−∑i∈Sϕi(S,v)1 - \sum_{i\in S}\phi_i(S,v)1−∑i∈S​ϕi​(S,v). The expected revenue is f(S,v)=∑i∈Sriϕi(S,v)f(S,v) = \sum_{i\in S} r_i \phi_i(S,v)f(S,v)=∑i∈S​ri​ϕi​(S,v).

Static problem (Section 3). For a compact nonempty uncertainty set V⊆R++n+1\mathcal V \subseteq \mathbb R^{n+1}_{++}V⊆R++n+1​,

Z∗(V)=max⁡S⊆A min⁡v∈Vf(S,v),Z^*(\mathcal V) = \max_{S\subseteq\mathcal A}\ \min_{v\in\mathcal V} f(S,v),Z∗(V)=S⊆Amax​ v∈Vmin​f(S,v),

and S∗(V)S^*(\mathcal V)S∗(V) is an optimal assortment of smallest cardinality.

Dynamic problem (Section 4). Periods t=1,…,Tt = 1,\dots,Tt=1,…,T each bring one customer, whose parameter vector lies in a compact nonempty Vt⊆R++n+1\mathcal V_t \subseteq \mathbb R^{n+1}_{++}Vt​⊆R++n+1​. A purchase consumes one unit of capacity. The value function Jt(x)J_t(x)Jt​(x), the maximum worst-case revenue from period ttt on with xxx units of capacity, satisfies

Jt(x)=max⁡St⊆A min⁡vt∈Vt{∑i∈Stϕi(St,vt)(ri+Jt+1(x−1))+(1−∑i∈Stϕi(St,vt))Jt+1(x)}J_t(x) = \max_{S_t\subseteq\mathcal A}\ \min_{v_t\in\mathcal V_t}\Big\{\sum_{i\in S_t}\phi_i(S_t,v_t)\big(r_i + J_{t+1}(x-1)\big) + \Big(1-\sum_{i\in S_t}\phi_i(S_t,v_t)\Big)J_{t+1}(x)\Big\}Jt​(x)=St​⊆Amax​ vt​∈Vt​min​{i∈St​∑​ϕi​(St​,vt​)(ri​+Jt+1​(x−1))+(1−i∈St​∑​ϕi​(St​,vt​))Jt+1​(x)}

for x≥1x \ge 1x≥1, with Jt(0)=0J_t(0) = 0Jt​(0)=0 and JT+1≡0J_{T+1} \equiv 0JT+1​≡0. The marginal value of capacity is ΔJt(x)=Jt(x)−Jt(x−1)\Delta J_t(x) = J_t(x) - J_t(x-1)ΔJt​(x)=Jt​(x)−Jt​(x−1), and St∗(x)S^*_t(x)St∗​(x) is a maximizer of the right-hand side of smallest cardinality.

Formalization targets

Goal: Theorem 4.3 (p. 17)

For every 1≤t≤T1 \le t \le T1≤t≤T and x≥1x \ge 1x≥1, and, in the second part, every 1≤t≤T−11 \le t \le T-11≤t≤T−1 with Vt⊆Vt+1\mathcal V_t \subseteq \mathcal V_{t+1}Vt​⊆Vt+1​:

St∗(x)⊆St∗(x+1),Vt⊆Vt+1  ⟹  St∗(x)⊆St+1∗(x).S^*_t(x) \subseteq S^*_t(x+1), \qquad \mathcal V_t \subseteq \mathcal V_{t+1} \implies S^*_t(x) \subseteq S^*_{t+1}(x).St∗​(x)⊆St∗​(x+1),Vt​⊆Vt+1​⟹St∗​(x)⊆St+1∗​(x).

Milestones

  1. (Dynamic Robust), second line (p. 16): Jt(x)=max⁡Smin⁡v∈Vt∑i∈Sϕi(S,v) (ri−ΔJt+1(x))+Jt+1(x)J_t(x) = \max_{S}\min_{v\in\mathcal V_t}\sum_{i\in S}\phi_i(S,v)\,(r_i - \Delta J_{t+1}(x)) + J_{t+1}(x)Jt​(x)=maxS​minv∈Vt​​∑i∈S​ϕi​(S,v)(ri​−ΔJt+1​(x))+Jt+1​(x).
  2. Proof of Theorem 4.2 (pp. 16–17): St∗(x)S^*_t(x)St∗​(x) is the static S∗(Vt)S^*(\mathcal V_t)S∗(Vt​) for revenues ri−ΔJt+1(x)r_i - \Delta J_{t+1}(x)ri​−ΔJt+1​(x), and Jt(x)−Jt+1(x)J_t(x) - J_{t+1}(x)Jt​(x)−Jt+1​(x) is the corresponding Z∗(Vt)Z^*(\mathcal V_t)Z∗(Vt​).
  3. Theorem 3.2 (p. 7): S∗(V)={i:ri>Z∗(V)}S^*(\mathcal V) = \{i : r_i > Z^*(\mathcal V)\}S∗(V)={i:ri​>Z∗(V)}.
  4. Theorem 3.7 (p. 10): for δ≥0\delta \ge 0δ≥0, S∗(V)S^*(\mathcal V)S∗(V) is contained in the robust assortment for revenues r+δr + \deltar+δ.
  5. Corollary 3.5 (p. 9): V⊆V′  ⟹  Z∗(V′)≤Z∗(V)\mathcal V \subseteq \mathcal V' \implies Z^*(\mathcal V') \le Z^*(\mathcal V)V⊆V′⟹Z∗(V′)≤Z∗(V) and S∗(V)⊆S∗(V′)S^*(\mathcal V) \subseteq S^*(\mathcal V')S∗(V)⊆S∗(V′).
  6. Theorem 4.1, first inequality (p. 16): ΔJt(x+1)≤ΔJt(x)\Delta J_t(x+1) \le \Delta J_t(x)ΔJt​(x+1)≤ΔJt​(x).
  7. Theorem 4.1, second inequality (p. 16): ΔJt+1(x)≤ΔJt(x)\Delta J_{t+1}(x) \le \Delta J_t(x)ΔJt+1​(x)≤ΔJt​(x).
  8. Theorem 4.2 (p. 16): St∗(x)={i:ri>Jt(x)−Jt+1(x−1)}S^*_t(x) = \{i : r_i > J_t(x) - J_{t+1}(x-1)\}St∗​(x)={i:ri​>Jt​(x)−Jt+1​(x−1)}.

Significance

The result. Theorems 4.1–4.3 say that robustness costs nothing structurally: the robust policy is still a nested threshold policy, so it can be implemented with the protection levels or bid-price controls already in use, and it can be computed by examining at most nnn revenue-ordered assortments per state instead of 2n2^n2n. Theorem 4.3 gives the operational content: with less inventory, offer fewer, higher-revenue products; nearer the end of the season (when the uncertainty sets are nested), offer more.

Formalizing it. The results are proved in the paper; none of them has a machine-checked proof. A formalization produces a checked robust finite-horizon dynamic program over finite action sets with compact adversary sets, the reduction of each Bellman step to a static max–min problem with shifted revenues, and checked concavity and time-monotonicity arguments that are reusable for other single-resource problems. The known-parameter analogues for general regular choice models and for the Markov chain choice model are separate drafts on the platform (RevenueOrdered.Nesting.*, MarkovChainChoice.SingleResource.*); they have no uncertainty set and are not used here.

Difficulty

The obvious route to concavity, an induction on ttt in which JtJ_tJt​ is a maximum of concave functions, fails: a maximum of concave functions is not concave, and here each candidate assortment is evaluated by a minimum over Vt\mathcal V_tVt​, and the worst-case parameter vector changes with the capacity level, so the known-parameter argument cannot be reused term by term. Any induction on ttt also has to handle the boundary x=0x = 0x=0, where the Bellman equation does not apply and only Jt(0)=0J_t(0) = 0Jt​(0)=0 is given. Every step involving a minimum must use that the minimum over a compact set is attained, and translating a minimum by a constant must be justified rather than assumed.

Formalization scope

  • Representation. Products are Fin n (Lean index iii is product i+1i+1i+1). A parameter vector is p : ℝ × (Fin n → ℝ) with p.1 =v0= v_0=v0​. f(S,v)f(S,v)f(S,v) is the published ChoiceCDLP.MNL.mnlObjective. Minima over uncertainty sets are real infima (sInf), equal to the attained minima under the standing hypotheses; maxima are Finset.sup' over all 2n2^n2n assortments.
  • Standing assumptions. Every V t, 1≤t≤T1 \le t \le T1≤t≤T, is compact, nonempty and contained in R++n+1\mathbb R^{n+1}_{++}R++n+1​ (IsUncertaintySeq); the static results assume the same of V. The paper writes "V⊂R++n\mathcal V \subset \mathbb R^n_{++}V⊂R++n​" in Theorem 3.2 and Corollary 3.5; this is read as R++n+1\mathbb R^{n+1}_{++}R++n+1​, compact.
  • Revenues are arbitrary reals. The paper orders r1≥⋯≥rn>0r_1 \ge \dots \ge r_n > 0r1​≥⋯≥rn​>0 "without loss of generality"; no proof uses it, and the dynamic reduction applies Theorem 3.2 to ri−ΔJt+1(x)r_i - \Delta J_{t+1}(x)ri​−ΔJt+1​(x), which may be negative. Dropping it strengthens every statement.
  • The value function is defined by the recursion. The max–min policy formulation (p. 15) and Iyengar's theorem that it satisfies the Bellman equation are not formalized. Jt(x)J_t(x)Jt​(x) is defined for every x∈Nx \in \mathbb Nx∈N; the initial capacity CCC never enters the recursion, so the paper's JtJ_tJt​ on {0,…,C}\{0,\dots,C\}{0,…,C} is the restriction.
  • Capacity x≥1x \ge 1x≥1. Theorem 4.1 is printed "for any x∈{0,1,…,C}x \in \{0,1,\dots,C\}x∈{0,1,…,C}", which includes the undefined ΔJt(0)\Delta J_t(0)ΔJt​(0); Theorems 4.2 and 4.3 say "for any xxx", but St∗(0)S^*_t(0)St∗​(0) is not defined by the Bellman equation. All statements assume x≥1x \ge 1x≥1.
  • Tie-break. S∗(V)S^*(\mathcal V)S∗(V) and St∗(x)S^*_t(x)St∗​(x) are predicates ("SSS is an optimal assortment of smallest cardinality"), not choice functions; Theorems 3.2 and 4.2 are stated as "↔ SSS is the threshold set", which also asserts the threshold set is optimal. Without the tie-break Theorems 4.2 and 4.3 are false, since a product with revenue exactly at the threshold can be added.
  • Ruled out. Defining JJJ as a maximum over revenue-ordered assortments, or through the threshold formula, would make Theorem 4.2 definitional; JJJ is defined with the minimum inside a maximum over all subsets.
  • Restatements. Theorems 3.2, 3.7 and Corollary 3.5 restate, in RobustMNL.Dynamic, the companion mission on Section 3 of the same paper, identically up to namespace.
  • Source. The source is the authors' manuscript of 20 September 2011 of the Operations Research 2012 article; its printed page numbers equal the PDF's.
  • Welcome contributions. Lemmas on attained minima of continuous functions on compact sets of positive parameter vectors, the translation of a max–min by a constant, and the bound ∑i∈Sϕi(S,v)≤1\sum_{i\in S}\phi_i(S,v) \le 1∑i∈S​ϕi​(S,v)≤1 are reusable across all three missions of this paper.

Selected references

  • P. Rusmevichientong, H. Topaloglu, Robust Assortment Optimization in Revenue Management Under the Multinomial Logit Choice Model, Operations Research 60(4), 2012. https://doi.org/10.1287/opre.1120.1063
  • K. Talluri, G. van Ryzin, Revenue Management Under a General Discrete Choice Model of Consumer Behavior, Management Science 50(1), 2004. https://doi.org/10.1287/mnsc.1030.0147
  • G. N. Iyengar, Robust Dynamic Programming, Mathematics of Operations Research 30(2), 2005. https://doi.org/10.1287/moor.1040.0129
17 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Robust Dynamic Programming 2: The Discounted Robust Value Function Is the Unique Fixed Point of the Robust Bellman OperatorResearch Paper

Motivation

Markov decision processes model sequential decisions under uncertainty, and their optimal policies are computed from transition probabilities that in practice are estimated from data. Optimal policies can be sensitive to estimation error in those probabilities. Robust dynamic programming replaces each transition law by a set of plausible laws and evaluates a policy by its worst-case expected reward over that set. Garud Iyengar's Robust dynamic programming (CORC Tech Report TR-2002-07, 2002, rev. 2004; Mathematics of Operations Research 30(2), 2005) set up this theory for countable state spaces and history-dependent policies. It isolated the Rectangularity assumption under which the robust problem keeps a Bellman equation. In the same period, Nilim and El Ghaoui studied robust control of Markov decision processes with finite state spaces.

Timeline:

  • 1968, 1973. Satia (PhD thesis) and Satia and Lave (Operations Research 21) treat finite-state, finite-action Markov decision processes with uncertain transition probabilities. They state the max–min optimality equation and the optimality of stationary policies, assuming convex uncertainty sets, and do not prove that the solution of the equation is the robust value function.
  • 2001. Bagnell, Ng and Schneider analyse robust policies when the decision maker is restricted to stationary policies.
  • 2002–2005. Iyengar (this paper) and Nilim and El Ghaoui (Operations Research 53, 2005) give the rectangular theory. Iyengar proves the discounted robust Bellman equation for countable state spaces, against history-dependent randomized policies and an adversary that may change the law at every visit.

Setting

A discounted ambiguous Markov decision process has a countable state set S\mathcal SS, for each state sss a nonempty set A(s)\mathcal A(s)A(s) of admissible actions, for each admissible pair (s,a)(s,a)(s,a) a nonempty set P(s,a)\mathcal P(s,a)P(s,a) of probability measures on S\mathcal SS (the ambiguity set), a bounded reward r(s,a,s′)r(s,a,s')r(s,a,s′) and a discount factor λ∈(0,1)\lambda\in(0,1)λ∈(0,1). Decisions are made at epochs t=0,1,2,…t=0,1,2,\dotst=0,1,2,….

A policy π=(d0,d1,… )\pi=(d_0,d_1,\dots)π=(d0​,d1​,…) maps each history ht=(s0,a0,…,st)h_t=(s_0,a_0,\dots,s_t)ht​=(s0​,a0​,…,st​) to a probability measure on A(st)\mathcal A(s_t)A(st​). Π\PiΠ is the set of all such policies. A deterministic Markov policy plays dt(st)d_t(s_t)dt​(st​) for maps dt:S→Ad_t:\mathcal S\to\mathcal Adt​:S→A with dt(s)∈A(s)d_t(s)\in\mathcal A(s)dt​(s)∈A(s). A stationary policy uses one such rule ddd at every epoch.

Under Rectangularity, the adversary picks a law p∈P(st,at)p\in\mathcal P(s_t,a_t)p∈P(st​,at​) separately at every epoch and history, and may pick a different law each time a state–action pair recurs. This is the dynamic model, and the set of path measures it generates is Tπ\mathcal T^\piTπ. In the static model the adversary fixes one pˉsa∈P(s,a)\bar p_{sa}\in\mathcal P(s,a)pˉ​sa​∈P(s,a) per pair. The robust value of a policy and the robust value function are

Vλπ(s)=inf⁡P∈TπEP[∑t=0∞λtr(st,dt(ht),st+1)],Vλ∗(s)=sup⁡π∈ΠVλπ(s).V^\pi_\lambda(s)=\inf_{\mathbf P\in\mathcal T^\pi}\mathbf E^{\mathbf P}\Big[\sum_{t=0}^\infty\lambda^t r(s_t,d_t(h_t),s_{t+1})\Big],\qquad V^*_\lambda(s)=\sup_{\pi\in\Pi}V^\pi_\lambda(s).Vλπ​(s)=P∈Tπinf​EP[t=0∑∞​λtr(st​,dt​(ht​),st+1​)],Vλ∗​(s)=π∈Πsup​Vλπ​(s).

Let V\mathbf VV be the bounded functions on S\mathcal SS with ∥V∥=sup⁡s∣V(s)∣\|V\|=\sup_s|V(s)|∥V∥=sups​∣V(s)∣. For a set D\mathcal DD of deterministic Markov rules, the robust Bellman operator is

LDV(s)=sup⁡d∈D inf⁡p∈P(s,d(s))Ep[r(s,d(s),s′)+λV(s′)].\mathcal L_{\mathcal D}V(s)=\sup_{d\in\mathcal D}\ \inf_{p\in\mathcal P(s,d(s))}\mathbf E^p\big[r(s,d(s),s')+\lambda V(s')\big].LD​V(s)=d∈Dsup​ p∈P(s,d(s))inf​Ep[r(s,d(s),s′)+λV(s′)].

Formalization targets

Goal: Corollary 2(b)

Vλ∗(s)=sup⁡a∈A(s) inf⁡p∈P(s,a)Ep[r(s,a,s′)+λVλ∗(s′)],s∈S,V^*_\lambda(s)=\sup_{a\in\mathcal A(s)}\ \inf_{p\in\mathcal P(s,a)}\mathbf E^p\big[r(s,a,s')+\lambda V^*_\lambda(s')\big],\qquad s\in\mathcal S,Vλ∗​(s)=a∈A(s)sup​ p∈P(s,a)inf​Ep[r(s,a,s′)+λVλ∗​(s′)],s∈S,

Vλ∗V^*_\lambdaVλ∗​ is the only bounded solution of this equation, and for every ϵ>0\epsilon>0ϵ>0 some stationary deterministic policy πϵ\pi^\epsilonπϵ has Vλπϵ≥Vλ∗−ϵV^{\pi^\epsilon}_\lambda\ge V^*_\lambda-\epsilonVλπϵ​≥Vλ∗​−ϵ.

Milestones

  1. Theorem 5(a). LD\mathcal L_{\mathcal D}LD​ maps V\mathbf VV to V\mathbf VV and ∥LDU−LDV∥≤λ∥U−V∥\|\mathcal L_{\mathcal D}U-\mathcal L_{\mathcal D}V\|\le\lambda\|U-V\|∥LD​U−LD​V∥≤λ∥U−V∥.
  2. Theorem 5(b). For D=∏sD(s)\mathcal D=\prod_s\mathcal D(s)D=∏s​D(s), the equation LDV=V\mathcal L_{\mathcal D}V=VLD​V=V has a unique bounded solution, equal to the robust value over deterministic Markov policies with rules in D\mathcal DD.
  3. Corollary 2(a). The robust value of a stationary policy (d,d,… )(d,d,\dots)(d,d,…) is the unique bounded solution of V(s)=inf⁡p∈P(s,d(s))Ep[r(s,d(s),s′)+λV(s′)]V(s)=\inf_{p\in\mathcal P(s,d(s))}\mathbf E^p[r(s,d(s),s')+\lambda V(s')]V(s)=infp∈P(s,d(s))​Ep[r(s,d(s),s′)+λV(s′)].
  4. Theorem 4. Vλ∗(s)=sup⁡π∈ΠMDVλπ(s)V^*_\lambda(s)=\sup_{\pi\in\Pi_{MD}}V^\pi_\lambda(s)Vλ∗​(s)=supπ∈ΠMD​​Vλπ​(s).
  5. Lemma 3. For a stationary policy, the dynamic and static models give the same value.
  6. Lemma 2. The value of a stationary policy is the optimal solution of the robust program (31).
  7. Lemma 1, first claim. The output of robust value iteration is within ϵ/4\epsilon/4ϵ/4 of Vλ∗V^*_\lambdaVλ∗​.

Significance

Corollary 2(b) justifies computing the robust value function by solving a state-wise max–min equation. Value iteration, policy iteration and their approximations all rely on that equation. It also shows that a decision maker facing a history-dependent adversary loses at most ϵ\epsilonϵ by committing to a stationary deterministic rule. Corollary 2(a) and Lemma 2 make robust policy evaluation a fixed point problem and a robust optimization problem. Lemma 3 shows that, for stationary policies, the dynamic model costs nothing relative to the static model, in which the true transition law is fixed but unknown.

The results are proved on paper. The page proves Theorem 4 only by citation to Puterman's non-robust arguments. No machine-checked proof of any of them is known. The platform has finite-state analogues posed by the Nilim–El Ghaoui and Satia–Lave missions, which compare only stationary or Markov controllers. This mission poses the countable, history-dependent version, and proving it would establish them in this generality.

Difficulty

The contraction property is a state-by-state ϵ\epsilonϵ-argument. The hard step is to identify the fixed point with the value of the game against all history-dependent randomized policies. The adversary's choices at different epochs interact only through Rectangularity, so splitting the infimum over path measures into a first-step infimum and a continuation infimum must be justified for an infinite horizon, uncountably many adversary strategies and no attainment of the infima. The ambiguity sets need not be convex or closed. The naive route, "take the minimizing law at each state", is unavailable, and every bound must be carried with an ϵ\epsilonϵ slack. Truncating the infinite sum needs the uniform reward bound. Theorem 4 needs a separate argument that randomization and history dependence do not help the decision maker against the dynamic adversary.

Formalization scope

States and actions are countable Lean types; A(s)\mathcal A(s)A(s) and P(s,a)\mathcal P(s,a)P(s,a) are sets, assumed nonempty, with no convexity or closedness. Laws are PMFs and Ep[f]=∑xp(x)f(x)\mathbf E^p[f]=\sum_x p(x)f(x)Ep[f]=∑x​p(x)f(x) as a tsum. The rewards satisfy ∣r(s,a,s′)∣≤R|r(s,a,s')|\le R∣r(s,a,s′)∣≤R on admissible actions. This is the reading of the page's "sup⁡r=R<∞\sup r=R<\inftysupr=R<∞", which its bounds ±R/(1−λ)\pm R/(1-\lambda)±R/(1−λ) require. The discount factor satisfies 0<λ<10<\lambda<10<λ<1. Epochs start at 000, so the first reward is undiscounted.

A policy maps (n,hn)(n, h_n)(n,hn​) to a PMF supported on A(sn)\mathcal A(s_n)A(sn​). The dynamic adversary maps (n,hn,a)(n,h_n,a)(n,hn​,a) to a law in P(sn,a)\mathcal P(s_n,a)P(sn​,a). The path law is built by PMF.bind, and the discounted reward is ∑tλtE[r(st,at,st+1)]\sum_t\lambda^t\mathbf E[r(s_t,a_t,s_{t+1})]∑t​λtE[r(st​,at​,st+1​)], which converges absolutely. Values are real infima and suprema over nonempty families bounded by R/(1−λ)R/(1-\lambda)R/(1−λ), so no junk value arises. V\mathbf VV is the predicate "bounded", and ∥⋅∥\|\cdot\|∥⋅∥ is a supremum (the page writes max). All uniqueness claims are uniqueness among bounded functions.

Vλ∗V^*_\lambdaVλ∗​ is a supremum over all history-dependent randomized policies. Defining it over deterministic Markov or stationary policies would make Theorem 4 trivial and weaken the goal, so it is ruled out. The adversary in VλπV^\pi_\lambdaVλπ​ is the dynamic one; the static adversary appears only in Lemma 3.

The mission deviates from the page in three places:

  • Theorem 5(b) is stated for product sets D=∏sD(s)\mathcal D=\prod_s\mathcal D(s)D=∏s​D(s). For an arbitrary D\mathcal DD the printed statement fails, because its proof pastes ϵ\epsilonϵ-greedy actions state by state. Both uses in Corollary 2 are products.
  • Lemma 3 is stated for randomized Markov rules, which is the page's "any decision rule". The page proves it for deterministic rules.
  • Lemma 2 adds ∑sα(s)<∞\sum_s\alpha(s)<\infty∑s​α(s)<∞ and restricts the program to bounded VVV.

Only the first claim of Lemma 1 is posed. Its second claim, that an ϵ/2\epsilon/2ϵ/2-greedy rule is ϵ\epsilonϵ-optimal, is false as printed.

A complete development needs a general toolkit that is reusable beyond this mission: path laws of countable controlled processes with history-dependent policies, a uniform ϵ\epsilonϵ-optimal selection argument for real infima over arbitrary sets, and the Banach fixed point theorem on bounded functions (Mathlib's ContractingWith). Proofs of individual milestones are welcome in any order. Theorem 5(a) is the natural entry point.

Selected references

  • G. Iyengar, Robust dynamic programming, CORC Tech Report TR-2002-07, Columbia University, 2002 (rev. May 4, 2004); published in Mathematics of Operations Research 30(2):257–280, 2005. https://doi.org/10.1287/moor.1040.0129
  • A. Nilim and L. El Ghaoui, Robust control of Markov decision processes with uncertain transition matrices, Operations Research 53(5):780–798, 2005. https://doi.org/10.1287/opre.1050.0216
  • J. K. Satia and R. E. Lave, Markovian decision processes with uncertain transition probabilities, Operations Research 21(3):728–740, 1973. https://doi.org/10.1287/opre.21.3.728
  • J. A. Bagnell, A. Y. Ng and J. Schneider, Solving uncertain Markov decision problems, Tech. Report CMU-RI-TR-01-25, Carnegie Mellon University, 2001. https://www.ri.cmu.edu/publications/solving-uncertain-markov-decision-problems/
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
12 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

Robust Dynamic Programming 1: The Robust Bellman Recursion and Optimality of Deterministic Markov Policies in Finite HorizonResearch Paper

Motivation

Markov decision processes assume that the transition law is known exactly. In practice it is estimated from data, and the optimal policy computed for the point estimate can perform badly when the true law differs. Robust dynamic programming replaces each transition law by a set of plausible laws and evaluates a policy by its worst-case expected reward over that set. The worst case is taken against an adversary (nature) who may choose a law from the set at every step.

For this worst case to be computable by backward induction, the set of path measures of a policy has to decompose epoch by epoch. Garud Iyengar named this property Rectangularity and proved that under it the classical finite horizon theory carries over: a robust Bellman equation holds, and deterministic Markov policies are optimal among all history dependent randomized policies, with state and action sets that may be countably infinite and ambiguity sets that need not be convex (Iyengar, CORC Tech Report TR-2002-07, rev. 2004; published in Math. Oper. Res. 30(2), 2005).

Timeline:

  • 1973: Satia and Lave study Markov decision processes with uncertain transition probabilities, finite states and actions (Oper. Res. 21(3)).
  • 2001: Epstein and Schneider axiomatize recursive multiple priors, the decision-theoretic origin of rectangular ambiguity (J. Econ. Theory 113, working paper 2001).
  • 2002–2005: Nilim and El Ghaoui give a robust counterpart of the Bellman recursion for finite state and action spaces and convex ambiguity sets, against Markov controllers (Oper. Res. 53(5)).
  • 2002–2005: Iyengar proves the robust Bellman equation and Markov optimality for countable spaces, arbitrary ambiguity sets and all history dependent randomized policies, under Rectangularity.

Setting

A finite horizon ambiguous Markov decision process (AMDP) has decision epochs t∈T={0,…,N−1}t \in T = \{0,\dots,N-1\}t∈T={0,…,N−1}, N≥1N\ge 1N≥1, and a terminal epoch NNN. States lie in a countable set S\mathcal SS and actions in a countable set A\mathcal AA. In state sss at epoch ttt the admissible actions form a nonempty set At(s)\mathcal A_t(s)At​(s). For each admissible action aaa, the next state is drawn from some probability measure p∈Pt(s,a)p \in \mathcal P_t(s,a)p∈Pt​(s,a), where Pt(s,a)\mathcal P_t(s,a)Pt​(s,a) is a nonempty set of probability measures on S\mathcal SS, the ambiguity set. The decision maker receives rt(s,a,s′)r_t(s,a,s')rt​(s,a,s′) when aaa is taken in sss and the next state is s′s's′, and rN(s)r_N(s)rN​(s) at the terminal epoch.

A history at epoch nnn is hn=(s0,a0,…,sn−1,an−1,sn)h_n=(s_0,a_0,\dots,s_{n-1},a_{n-1},s_n)hn​=(s0​,a0​,…,sn−1​,an−1​,sn​). A policy π=(dt)\pi=(d_t)π=(dt​) assigns to each history hth_tht​ a probability measure dt(ht)d_t(h_t)dt​(ht​) on At(st)\mathcal A_t(s_t)At​(st​). It is deterministic (ΠD\Pi_DΠD​) if every dt(ht)d_t(h_t)dt​(ht​) is a point mass, and deterministic Markov (ΠMD\Pi_{MD}ΠMD​) if moreover the chosen action depends on the current state sts_tst​ alone. Π\PiΠ denotes all history dependent randomized policies.

Under Rectangularity (Assumption 1), the set Tπ\mathcal T^\piTπ of path measures consistent with π\piπ is a product of one-epoch sets: nature chooses, for every epoch ttt, every history hth_tht​ and every admissible action aaa, a measure pht,a∈Pt(st,a)p_{h_t,a}\in\mathcal P_t(s_t,a)pht​,a​∈Pt​(st​,a), and the path measure is P(hN)=∏tdt(ht)(at) pht,at(st+1)\mathbf P(h_N)=\prod_t d_t(h_t)(a_t)\,p_{h_t,a_t}(s_{t+1})P(hN​)=∏t​dt​(ht​)(at​)pht​,at​​(st+1​). The robust value of π\piπ from hnh_nhn​ and the robust value function are

Vnπ(hn)=inf⁡P∈TnπEP[∑t=nN−1rt(st,at,st+1)+rN(sN)],Vn∗(hn)=sup⁡π∈ΠVnπ(hn).V^\pi_n(h_n)=\inf_{\mathbf P\in\mathcal T^\pi_n}E^{\mathbf P}\Big[\sum_{t=n}^{N-1}r_t(s_t,a_t,s_{t+1})+r_N(s_N)\Big],\qquad V^*_n(h_n)=\sup_{\pi\in\Pi}V^\pi_n(h_n).Vnπ​(hn​)=P∈Tnπ​inf​EP[t=n∑N−1​rt​(st​,at​,st+1​)+rN​(sN​)],Vn∗​(hn​)=π∈Πsup​Vnπ​(hn​).

The optimistic values Vˉnπ\bar V^\pi_nVˉnπ​, Vˉn∗\bar V^*_nVˉn∗​ replace the infimum over Tnπ\mathcal T^\pi_nTnπ​ by a supremum.

Formalization targets

Goal: Theorem 2 (Markov optimality)

For n=0,…,Nn=0,\dots,Nn=0,…,N, Vn∗(hn)V^*_n(h_n)Vn∗​(hn​) depends on hnh_nhn​ only through sns_nsn​; for n∈Tn\in Tn∈T, Vn∗(sn)=sup⁡π∈ΠMDVnπ(sn)V^*_n(s_n)=\sup_{\pi\in\Pi_{MD}}V^\pi_n(s_n)Vn∗​(sn​)=supπ∈ΠMD​​Vnπ​(sn​); and

Vn∗(s)=sup⁡a∈An(s) inf⁡p∈Pn(s,a)Ep[rn(s,a,s′)+Vn+1∗(s′)],n∈T.(16)V^*_n(s)=\sup_{a\in\mathcal A_n(s)}\ \inf_{p\in\mathcal P_n(s,a)}E^p\big[r_n(s,a,s')+V^*_{n+1}(s')\big],\qquad n\in T. \tag{16}Vn∗​(s)=a∈An​(s)sup​ p∈Pn​(s,a)inf​Ep[rn​(s,a,s′)+Vn+1∗​(s′)],n∈T.(16)

Milestones

  1. Proof of Theorem 1, eq. (15): at one epoch, randomizing over actions does not raise the worst-case value, and the adversary may choose its measure separately per action.
  2. Theorem 1 (Bellman equation): VN∗(hN)=rN(sN)V^*_N(h_N)=r_N(s_N)VN∗​(hN​)=rN​(sN​) and Vn∗(hn)=sup⁡ainf⁡p∈Pn(sn,a)Ep[rn(sn,a,s)+Vn+1∗(hn,a,s)]V^*_n(h_n)=\sup_{a}\inf_{p\in\mathcal P_n(s_n,a)}E^p[r_n(s_n,a,s)+V^*_{n+1}(h_n,a,s)]Vn∗​(hn​)=supa​infp∈Pn​(sn​,a)​Ep[rn​(sn​,a,s)+Vn+1∗​(hn​,a,s)] (11).
  3. Corollary 1: Vn∗(hn)=sup⁡π∈ΠDVnπ(hn)V^*_n(h_n)=\sup_{\pi\in\Pi_D}V^\pi_n(h_n)Vn∗​(hn​)=supπ∈ΠD​​Vnπ​(hn​) for n∈Tn\in Tn∈T.
  4. Theorem 3: the optimistic analogue of Theorem 2, with recursion (18) in which both the outer and the inner optimizations are suprema.

The mission also contains, as a draft theorem that is not a milestone, the per-policy identity of the proof of Theorem 1, eq. (12): for each policy, Vnπ(hn)=inf⁡p∈TdnEp[rn+Vn+1π(hn,an,sn+1)]V^\pi_n(h_n)=\inf_{p\in\mathcal T^{d_n}}E^p[r_n+V^\pi_{n+1}(h_n,a_n,s_{n+1})]Vnπ​(hn​)=infp∈Tdn​​Ep[rn​+Vn+1π​(hn​,an​,sn+1​)].

Significance

Theorem 2 is the basis of robust dynamic programming in finite horizon: computing an optimal robust policy reduces to NNN backward passes, each a family of one-stage problems inf⁡p∈Pn(s,a)Ep[v]\inf_{p\in\mathcal P_n(s,a)}E^p[v]infp∈Pn​(s,a)​Ep[v]. It also justifies restricting attention to deterministic Markov policies, which is what every algorithm in the robust MDP literature computes. Theorem 1 isolates the role of Rectangularity: without it the worst case over path measures does not decompose and the recursion characterizes nothing.

The results are proved on paper; no machine-checked proof is known. The platform holds the finite-state, Markov-controller special case (the Nilim–El Ghaoui RobustMDP series, posed, not proved), whose comparison class is too small to express the claim ΠMD\Pi_{MD}ΠMD​ suffices against Π\PiΠ. A formal proof here supplies the history dependent policy and adversary machinery on countable spaces that the discounted robust theory and the robust MDP literature reuse.

Difficulty

The obvious argument writes the robust value as an inf–sup over path measures and pushes the infimum inside the expectation epoch by epoch. That step is the content of (12): the infimum of an expectation equals the expectation of an infimum only because nature's continuation choice may depend on the realized action and next state, so near-worst continuations for different branches can be glued into one admissible adversary. Infima need not be attained (the ambiguity sets are arbitrary, the state set countable), so the gluing is an ϵ\epsilonϵ-argument over countably many branches. The supremum over policies needs a matching splicing of ϵ\epsilonϵ-optimal continuation policies (13)–(14). Finally, randomized decision rules must be eliminated (15), which uses Rectangularity again, now per action. Restricting either the policies or the adversary to Markov ones from the start is not allowed: it changes the comparison class and makes the goal circular.

Formalization scope

  • One countable state type S and one countable action type A serve all epochs; the page's epoch-dependent sets St\mathcal S_tSt​ embed into their disjoint union. Epochs are 0-based natural numbers, with terminal epoch M.N and 1 ≤ N.
  • A history at epoch nnn is (Fin n → S × A) × S. Probability measures are PMF; Ep[f]=∑sp(s)f(s)E^p[f]=\sum_s p(s)f(s)Ep[f]=∑s​p(s)f(s) as a tsum. The expected reward under a policy and an adversary is computed by backward iterated sums, which is the expectation under the product path measure (3).
  • A policy is a decision rule for every epoch, admissible for t < N; the supremum over Π\PiΠ equals that over the page's Πn\Pi_nΠn​ because VnπV^\pi_nVnπ​ uses only dn,…,dN−1d_n,\dots,d_{N-1}dn​,…,dN−1​. An adversary chooses pht,a∈Pt(st,a)p_{h_t,a}\in\mathcal P_t(s_t,a)pht​,a​∈Pt​(st​,a) for every epoch, history and admissible action.
  • Added and implicit hypotheses: At(s)≠∅\mathcal A_t(s)\neq\emptysetAt​(s)=∅ and Pt(s,a)≠∅\mathcal P_t(s,a)\neq\emptysetPt​(s,a)=∅ (implicit on the page), and a uniform bound ∣rt∣≤R|r_t|\le R∣rt​∣≤R, ∣rN∣≤R|r_N|\le R∣rN​∣≤R (added: Section 2 states none, but with countable states the expectations and the real suprema and infima need it). All values then lie in a bounded interval, so no supremum or infimum is a junk value.
  • Ambiguity sets are arbitrary nonempty sets of measures: no convexity, closedness or attainment is assumed anywhere.
  • "Vn∗V^*_nVn∗​ is a function of the current state alone" is stated as the existence of W(n,s)W(n,s)W(n,s) with Vn∗(hn)=W(n,sn)V^*_n(h_n)=W(n,s_n)Vn∗​(hn​)=W(n,sn​); the value is not defined on states, which would hide the claim. The notation Vnπ(sn)V^\pi_n(s_n)Vnπ​(sn​) for Markov policies is made explicit as a clause.
  • Ruled out: restricting Π\PiΠ or the adversary to Markov or stationary objects, a static adversary that fixes one ppp per (s,a)(s,a)(s,a) for the whole horizon, and suprema over unbounded or empty families; each makes some target false or trivial.

Definitions: AMDP, History, History.extend, IsPolicy, Policy, IsDeterministic, IsDetMarkov, Adversary, Selection, expect, expTail, expectedReward, V, Vstar, Vbar, VbarStar, all in RobustDP.FiniteHorizon. Lemmas about gluing adversaries along history prefixes and about suprema of bounded families indexed by subtypes are reusable. Contributions to any milestone are welcome, in any order; (15) is a one-epoch statement independent of the rest.

Selected references

  • G. Iyengar, Robust dynamic programming, CORC Tech Report TR-2002-07, Columbia University, revised May 4, 2004; Math. Oper. Res. 30(2):257–280, 2005. https://doi.org/10.1287/moor.1040.0129
  • A. Nilim and L. El Ghaoui, Robust control of Markov decision processes with uncertain transition matrices, Oper. Res. 53(5):780–798, 2005. https://doi.org/10.1287/opre.1050.0216
  • J. K. Satia and R. E. Lave, Markovian decision processes with uncertain transition probabilities, Oper. Res. 21(3):728–740, 1973. https://doi.org/10.1287/opre.21.3.728
  • L. G. Epstein and M. Schneider, Recursive multiple-priors, J. Econ. Theory 113(1):1–31, 2003. https://doi.org/10.1016/S0022-0531(03)00097-8
  • M. L. Puterman, Markov Decision Processes: Discrete Stochastic Dynamic Programming, Wiley, 1994. https://doi.org/10.1002/9780470316887
7 thms2 active usersReviewed
🏆Completed
Machine LearningProbabilityReinforcement Learning·Captain: mikedeng1

On the Sample Complexity of Reinforcement Learning VI: In a Deterministic MDP an Algorithm Acts T-Step Optimally at All but NAT TimestepsTextbook

Motivation

A reinforcement-learning agent that does not know its environment has to act and learn at once. Each step spent gathering information about unfamiliar states is a step not spent collecting reward, and an agent that only exploits what it already knows may never find better behaviour. Chapter 8 of Kakade's thesis (Kakade 2003) turns this trade-off into a counting question. Run an algorithm for an arbitrarily long time on one unbroken path of experience, with no resets. At how many timesteps does it fail to act optimally with respect to a fixed planning horizon TTT? Kakade calls this number the sample complexity of exploration.

The question builds on two algorithms. E3E^3E3 (Kearns and Singh 2002) gave the first polynomial-time guarantee for near-optimal behaviour in an unknown MDP. RmaxR_{max}Rmax​ (Brafman and Tennenholtz 2002) replaced E3E^3E3's explicit explore-or-exploit switch by optimism: unknown states are treated as maximally rewarding. Kakade's chapter sharpens the analysis of RmaxR_{max}Rmax​. For deterministic MDPs it shows that the number of non-optimal steps is at most NATNATNAT, which matches its own lower bound. The thesis notes that its deterministic results are similar to those of Koenig and Simmons (1993), with the dependence on NNN, AAA and TTT made explicit (pp. 99, 104). The later PAC-MDP literature (for example Strehl, Li and Littman 2009) took this counting notion as its standard measure of exploration efficiency.

Setting

An MDP MMM has a finite set SSS of NNN states, a finite nonempty set of AAA actions, a transition model P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) and a deterministic reward r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1]. A deterministic MDP has a next-state map fff, with P(s′∣s,a)=1P(s'\mid s,a)=1P(s′∣s,a)=1 exactly when s′=f(s,a)s'=f(s,a)s′=f(s,a).

Online model. An algorithm A\mathcal AA is a deterministic function that maps the path observed so far, (s0,a0,r0,…,st)(s_0,a_0,r_0,\dots,s_t)(s0​,a0​,r0​,…,st​), to the next action ata_tat​. Started at s0s_0s0​, it produces one path c=(s0,a0,s1,a1,… )c=(s_0,a_0,s_1,a_1,\dots)c=(s0​,a0​,s1​,a1​,…); ctc_tct​ is the subpath up to sts_tst​. The TTT-step end time t′t't′ of ttt is the smallest multiple of TTT larger than ttt. The TTT-step value of the algorithm on ctc_tct​ is the normalized reward it collects until t′t't′,

UA(ct)=1T E[∑τ=tt′−1r(sτ,aτ)],U_{\mathcal A}(c_t)=\frac1T\,\mathbb E\Big[\sum_{\tau=t}^{t'-1}r(s_\tau,a_\tau)\Big],UA​(ct​)=T1​E[τ=t∑t′−1​r(sτ​,aτ​)],

and U∗(ct)U^*(c_t)U∗(ct​) is the supremum of this quantity over all algorithms continuing from ctc_tct​.

TTT-step policies. A TTT-step policy π\piπ is a sequence of deterministic decision rules π(⋅,0),…,π(⋅,T−1)\pi(\cdot,0),\dots,\pi(\cdot,T-1)π(⋅,0),…,π(⋅,T−1). Its ttt-value is Uπ,t,M(s)=1TE[∑τ=tT−1r(sτ,aτ)∣st=s]U_{\pi,t,M}(s)=\frac1T\mathbb E[\sum_{\tau=t}^{T-1}r(s_\tau,a_\tau)\mid s_t=s]Uπ,t,M​(s)=T1​E[∑τ=tT−1​r(sτ​,aτ​)∣st​=s], and Ut,M∗(s)U^*_{t,M}(s)Ut,M∗​(s) is the supremum over TTT-step policies. For a set of states KKK, the induced MDP MKM_KMK​ agrees with MMM on KKK and makes every state outside KKK absorbing with reward 111. The escape probability Pr⁡(escape from K∣π,M,st=s)\Pr(\text{escape from }K\mid\pi,M,s_t=s)Pr(escape from K∣π,M,st​=s) is the probability that the path (st,…,sT−1)(s_t,\dots,s_{T-1})(st​,…,sT−1​) of π\piπ in MMM leaves KKK. A transition model P^\hat PP^ is an ε\varepsilonε-approximation to PPP if ∑s′∣P^(s′∣s,a)−P(s′∣s,a)∣<ε\sum_{s'}|\hat P(s'\mid s,a)-P(s'\mid s,a)|<\varepsilon∑s′​∣P^(s′∣s,a)−P(s′∣s,a)∣<ε for every (s,a)(s,a)(s,a).

Formalization targets

Goal: Theorem 8.3.5 (deterministic sample complexity)

For every NNN, AAA and T≥1T\ge1T≥1 there is one algorithm A\mathcal AA such that, for every deterministic MDP with rewards in [0,1][0,1][0,1], every start state and every LLL,

#{ t<L: UA(ct)≠U∗(ct) } ≤ NAT.\#\{\,t<L:\ U_{\mathcal A}(c_t)\neq U^*(c_t)\,\}\ \le\ NAT .#{t<L: UA​(ct​)=U∗(ct​)} ≤ NAT.

Milestones

  • Lemma 8.4.4 (induced inequalities). For every TTT-step policy, every t<Tt<Tt<T and every state sss,
Uπ,t,MK(s)≥Uπ,t,M(s)≥Uπ,t,MK(s)−Pr⁡(escape from K∣π,M,st=s).U_{\pi,t,M_K}(s)\ge U_{\pi,t,M}(s)\ge U_{\pi,t,M_K}(s)-\Pr(\text{escape from }K\mid\pi,M,s_t=s).Uπ,t,MK​​(s)≥Uπ,t,M​(s)≥Uπ,t,MK​​(s)−Pr(escape from K∣π,M,st​=s).
  • Corollary 8.4.5 (implicit explore or exploit). If π\piπ is TTT-step optimal in MKM_KMK​, then for every t<Tt<Tt<T and every state sss,
Uπ,t,M(s)≥Ut,M∗(s)−Pr⁡(escape from K∣π,M,st=s).U_{\pi,t,M}(s)\ge U^*_{t,M}(s)-\Pr(\text{escape from }K\mid\pi,M,s_t=s).Uπ,t,M​(s)≥Ut,M∗​(s)−Pr(escape from K∣π,M,st​=s).
  • Deterministic escapes (p. 114). In a deterministic MDP every escape probability is 000 or 111.
  • Non-escaping steps are optimal (p. 114). In a deterministic MDP, an optimal policy of MKM_KMK​ that does not escape from (s,t)(s,t)(s,t) satisfies Uπ,t,M(s)=Ut,M∗(s)U_{\pi,t,M}(s)=U^*_{t,M}(s)Uπ,t,M​(s)=Ut,M∗​(s).
  • Lemma 8.5.4 (ε\varepsilonε-approximation condition). If P^\hat PP^ is an ε\varepsilonε-approximation to PPP and the rewards agree, then ∣Uπ,t,M^(s)−Uπ,t,M(s)∣<εT|U_{\pi,t,\hat M}(s)-U_{\pi,t,M}(s)|<\varepsilon T∣Uπ,t,M^​(s)−Uπ,t,M​(s)∣<εT for all π\piπ, sss and t<Tt<Tt<T.
  • Lemma 8.5.5, pinned. If m≥8Nε2log⁡2Nδm\ge\frac{8N}{\varepsilon^2}\log\frac{2N}\deltam≥ε28N​logδ2N​ with ε>0\varepsilon>0ε>0, 0<δ<10<\delta<10<δ<1, then the empirical distribution of mmm independent samples from a distribution ppp on NNN points satisfies ∑i∣p^(i)−p(i)∣≤ε\sum_i|\hat p(i)-p(i)|\le\varepsilon∑i​∣p^​(i)−p(i)∣≤ε with probability greater than 1−δ1-\delta1−δ.

Significance

The result. The bound NATNATNAT does not depend on LLL. However long the agent runs, only a fixed number of its steps fail to be TTT-step optimal. The thesis's Theorem 8.3.6 shows that every algorithm has Ω(NAT)\Omega(NAT)Ω(NAT) such steps on some deterministic MDP, so for deterministic MDPs the upper and lower bounds coincide. The induced-MDP lemmas carry over unchanged to stochastic MDPs. Together with Lemmas 8.5.4 and 8.5.5, they give the chapter's general bound (Theorem 8.3.1). They are the template for later optimism-based analyses, which compare an optimistic model with the true one and charge the difference to the probability of leaving the known region.

Formalizing it. The results are proved in the thesis; neither Mathlib nor the Prove2Me catalog contains a machine-checked version of any of them. A complete development would contain:

  • a verified finite-horizon dynamic-programming layer (backward recursions, optimal TTT-step values as suprema);
  • a simulation lemma in ℓ1\ell_1ℓ1​;
  • a concentration bound for empirical distributions whose sample size is linear in NNN;
  • an explicit construction of an online exploration algorithm, with a counting argument about its run.

The proof of Lemma 8.5.5 in the thesis uses a Chernoff bound of the form P(∣p^i−pi∣>αpi)≤2e−α2pim/2P(|\hat p_i-p_i|>\alpha p_i)\le2e^{-\alpha^2p_im/2}P(∣p^​i​−pi​∣>αpi​)≤2e−α2pi​m/2. This form fails for the upper tail when α>1\alpha>1α>1, so the pinned statement needs a different argument.

Difficulty

The algorithm must be fixed before the MDP. It knows nothing about fff or rrr beyond what its own path reveals, yet the count has to hold for every MDP, every start state and every run length at once. A direct approach could explore each state-action pair once and then plan. That does not bound the count. Exploration is interleaved with exploitation, the agent can only reach unknown pairs through known states, and every step on the way is judged against the full TTT-step optimum of the current cycle. The work lies in charging each non-optimal step to a distinct newly tried state-action pair, with at most TTT steps charged per pair, while the planning policy is recomputed every time the set of known states grows. In the stochastic lemmas, the main issue is that Ut,M∗U^*_{t,M}Ut,M∗​ is a supremum over all TTT-step policies, so the comparison has to go through MKM_KMK​ for every competing policy, not only the planner's.

Formalization scope

  • Model. SSS and AAA are finite types, AAA nonempty; N=∣S∣N=|S|N=∣S∣ and A=∣A∣A=|A|A=∣A∣. Rewards are deterministic, with 0≤r≤10\le r\le10≤r≤1 a hypothesis of every statement. Transition models are IsTransitionKernel functions P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a).
  • Normalization and time. Values carry the factor 1/T1/T1/T, so they lie in [0,1][0,1][0,1]; epochs are 0-based. TTT-step policies are functions N→S→A\mathbb N\to S\to AN→S→A, entered into the canonical stochastic TTT-epoch layer as indicator policies. Ut,M∗U^*_{t,M}Ut,M∗​ is the supremum over these policies, which is bounded under the hypotheses.
  • Online model. In the online model the algorithm has type List (S × A × ℝ) → S → A. The run is defined by recursion and is infinite. UA(ct)U_{\mathcal A}(c_t)UA​(ct​) is the realised normalized sum up to the end time, and U∗(ct)U^*(c_t)U∗(ct​) is the backward recursion Wt′−t(st)W_{t'-t}(s_t)Wt′−t​(st​), which is the supremum over algorithms by the Markov property. The count runs over t<Lt<Lt<L for every LLL.
  • Corrections to the printed text. Corollary 8.4.5 is stated for t<Tt<Tt<T, where its quantities are defined; the printed range is t≤Tt\le Tt≤T. Lemma 8.5.5 carries an explicit sample size in place of O(⋅)O(\cdot)O(⋅).

Four formalizations would make the goal trivial or false, and each is excluded:

  • quantifying the algorithm after the MDP, which lets it read fff and rrr;
  • giving the algorithm a type that takes fff or rrr as an argument;
  • defining U∗U^*U∗ as a junk real supremum;
  • hiding rewards from the observed path, which makes the statement false.

Reusable beyond this mission are the finite-horizon value layer, the induced-MDP and escape-probability lemmas, and the ℓ1\ell_1ℓ1​ concentration bound. Contributions to any of these are useful independently of the goal.

Selected references

  • S. M. Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, Gatsby Computational Neuroscience Unit, University College London, 2003. https://discovery.ucl.ac.uk/id/eprint/10100726/
  • R. I. Brafman and M. Tennenholtz, R-max — a general polynomial time algorithm for near-optimal reinforcement learning, Journal of Machine Learning Research 3, 2002. https://www.jmlr.org/papers/v3/brafman02a.html
  • M. Kearns and S. Singh, Near-optimal reinforcement learning in polynomial time, Machine Learning 49, 2002. https://doi.org/10.1023/A:1017984413808
  • A. L. Strehl, L. Li and M. L. Littman, Reinforcement learning in finite MDPs: PAC analysis, Journal of Machine Learning Research 10, 2009. https://jmlr.org/papers/v10/strehl09a.html
14 thms2 active usersReviewed
🏆Completed
Machine LearningReinforcement Learning·Captain: mikedeng1

On the Sample Complexity of Reinforcement Learning II: The Gradient of the Normalized Discounted Value Is the Sum over Actions of ∇π·Q under the Discounted Future State DistributionTextbook

Why the gradient of the value matters

Policy gradient methods search a parameterized family of stochastic policies π(a∣s,θ)\pi(a\mid s,\theta)π(a∣s,θ), θ∈Rk\theta\in\mathbb R^kθ∈Rk, by following the gradient of the policy's performance. They are the standard tool when the state space is too large for tabular dynamic programming and when a compact policy class (a neural network, a linear softmax) is easier to represent than a value function. Every such method rests on one identity: a formula for the gradient of the value with respect to θ\thetaθ that involves only quantities of the current policy, so that it can be estimated from the policy's own trajectories.

Chapter 4 of S. M. Kakade's PhD thesis, On the Sample Complexity of Reinforcement Learning (University College London, 2003), states this identity in two settings, the TTT-epoch undiscounted setting and the γ\gammaγ-discounted setting, both in the thesis's normalized convention, in which values lie in [0,1][0,1][0,1]. The thesis then uses the formula to analyse how many samples a gradient estimate needs (§4.2.3), and in §5.4.2 rewrites it in terms of advantages to explain why gradient methods can stall far from optimal: the gradient weights advantages by the current policy's state distribution, not by the distribution of an optimal policy.

Timeline:

  • 1992: R. J. Williams introduces the likelihood-ratio (REINFORCE) estimator for episodic tasks.
  • 2000: Sutton, McAllester, Singh and Mansour state the policy gradient theorem with function approximation, for discounted and average-reward criteria (NeurIPS 1999 proceedings, 2000); Konda and Tsitsiklis give actor-critic counterparts.
  • 2001: Baxter and Bartlett analyse biased gradient estimation in the infinite-horizon setting.
  • 2003: Kakade's thesis restates both theorems for normalized values, introduces the future state-time distribution dπ,s0d_{\pi,s_0}dπ,s0​​ for non-stationary TTT-epoch policies, and draws the "mismeasure" consequence.

Setting

A finite MDP has a finite state set SSS, a finite nonempty action set AAA, a transition kernel P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) and a deterministic reward r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1].

TTT-epoch case. Epochs are t∈{0,…,T−1}t\in\{0,\dots,T-1\}t∈{0,…,T−1}, T≥1T\ge1T≥1. A non-stationary policy chooses aaa at epoch ttt in state sss with probability π(a∣s,t)\pi(a\mid s,t)π(a∣s,t). Starting from s0s_0s0​, Pr⁡(st=s∣π,s0)\Pr(s_t=s\mid\pi,s_0)Pr(st​=s∣π,s0​) is the probability of being in sss at epoch ttt. The normalized ttt-value is

Vπ,t(s)=1T E[∑τ=tT−1r(sτ,aτ) ∣ π,st=s],Vπ=Vπ,0,V_{\pi,t}(s)=\frac1T\,\mathbb E\Big[\sum_{\tau=t}^{T-1}r(s_\tau,a_\tau)\,\Big|\,\pi,s_t=s\Big],\qquad V_\pi=V_{\pi,0},Vπ,t​(s)=T1​E[τ=t∑T−1​r(sτ​,aτ​)​π,st​=s],Vπ​=Vπ,0​,

the ttt state-action value is Qπ,t(s,a)=1Tr(s,a)+Es′∼P(⋅∣s,a)[Vπ,t+1(s′)]Q_{\pi,t}(s,a)=\frac1T r(s,a)+\mathbb E_{s'\sim P(\cdot\mid s,a)}[V_{\pi,t+1}(s')]Qπ,t​(s,a)=T1​r(s,a)+Es′∼P(⋅∣s,a)​[Vπ,t+1​(s′)] with Vπ,T=0V_{\pi,T}=0Vπ,T​=0, and the future state-time distribution on S×{0,…,T−1}S\times\{0,\dots,T-1\}S×{0,…,T−1} is dπ,s0(s,t)=1TPr⁡(st=s∣π,s0)d_{\pi,s_0}(s,t)=\frac1T\Pr(s_t=s\mid\pi,s_0)dπ,s0​​(s,t)=T1​Pr(st​=s∣π,s0​).

Discounted case. For a stationary policy π(a∣s)\pi(a\mid s)π(a∣s) and 0≤γ<10\le\gamma<10≤γ<1, the normalized value, state-action value, advantage and discounted future state distribution are

Vπ,γ(s)=(1−γ) E[∑τ≥0γτr(sτ,aτ) ∣ π,s0=s],Qπ,γ(s,a)=(1−γ)r(s,a)+γ Es′[Vπ,γ(s′)],V_{\pi,\gamma}(s)=(1-\gamma)\,\mathbb E\Big[\sum_{\tau\ge0}\gamma^\tau r(s_\tau,a_\tau)\,\Big|\,\pi,s_0=s\Big],\qquad Q_{\pi,\gamma}(s,a)=(1-\gamma)r(s,a)+\gamma\,\mathbb E_{s'}[V_{\pi,\gamma}(s')],Vπ,γ​(s)=(1−γ)E[τ≥0∑​γτr(sτ​,aτ​)​π,s0​=s],Qπ,γ​(s,a)=(1−γ)r(s,a)+γEs′​[Vπ,γ​(s′)], Aπ(s,a)=Qπ,γ(s,a)−Vπ,γ(s),dπ,s0,γ(s)=(1−γ)∑t≥0γtPr⁡(st=s∣π,s0).A_\pi(s,a)=Q_{\pi,\gamma}(s,a)-V_{\pi,\gamma}(s),\qquad d_{\pi,s_0,\gamma}(s)=(1-\gamma)\sum_{t\ge0}\gamma^t\Pr(s_t=s\mid\pi,s_0).Aπ​(s,a)=Qπ,γ​(s,a)−Vπ,γ​(s),dπ,s0​,γ​(s)=(1−γ)t≥0∑​γtPr(st​=s∣π,s0​).

A parameterized policy is a family π(a∣s,θ)\pi(a\mid s,\theta)π(a∣s,θ) (resp. π(a∣s,t,θ)\pi(a\mid s,t,\theta)π(a∣s,t,θ)) of policies indexed by θ∈Rk\theta\in\mathbb R^kθ∈Rk, each entry differentiable in θ\thetaθ; ∇\nabla∇ is the gradient in θ\thetaθ.

Formalization targets

Goal: Theorem 4.2.4 (p. 48)

∇Vπ,γ(s0)=11−γ Es∼dπ,s0,γ[∑a∇π(a∣s,θ) Qπ,γ(s,a)].\nabla V_{\pi,\gamma}(s_0)=\frac1{1-\gamma}\,\mathbb E_{s\sim d_{\pi,s_0,\gamma}}\Big[\sum_a\nabla\pi(a\mid s,\theta)\,Q_{\pi,\gamma}(s,a)\Big].∇Vπ,γ​(s0​)=1−γ1​Es∼dπ,s0​,γ​​[a∑​∇π(a∣s,θ)Qπ,γ​(s,a)].

The statement asserts that θ↦Vπθ,γ(s0)\theta\mapsto V_{\pi_\theta,\gamma}(s_0)θ↦Vπθ​,γ​(s0​) is differentiable at the given parameter and that its derivative is the right-hand side. It is the thesis's version of the Sutton–McAllester–Singh–Mansour theorem, and the result the rest of the thesis's discussion of gradient methods builds on.

Milestones

  • Value representations (p. 47): Vπ(s0)=E(s,t)∼dπ,s0Ea∼π(⋅∣s,t)[r(s,a)]V_\pi(s_0)=\mathbb E_{(s,t)\sim d_{\pi,s_0}}\mathbb E_{a\sim\pi(\cdot\mid s,t)}[r(s,a)]Vπ​(s0​)=E(s,t)∼dπ,s0​​​Ea∼π(⋅∣s,t)​[r(s,a)] and Vπ,γ(s0)=Es∼dπ,s0,γEa∼π(⋅∣s)[r(s,a)]V_{\pi,\gamma}(s_0)=\mathbb E_{s\sim d_{\pi,s_0,\gamma}}\mathbb E_{a\sim\pi(\cdot\mid s)}[r(s,a)]Vπ,γ​(s0​)=Es∼dπ,s0​,γ​​Ea∼π(⋅∣s)​[r(s,a)].
  • Theorem 4.2.3 (p. 48), the TTT-epoch gradient:
∇Vπ(s0)=T E(s,t)∼dπ,s0[∑a∇π(a∣s,t,θ) Qπ,t(s,a)].\nabla V_\pi(s_0)=T\,\mathbb E_{(s,t)\sim d_{\pi,s_0}}\Big[\sum_a\nabla\pi(a\mid s,t,\theta)\,Q_{\pi,t}(s,a)\Big].∇Vπ​(s0​)=TE(s,t)∼dπ,s0​​​[a∑​∇π(a∣s,t,θ)Qπ,t​(s,a)].
  • The advantage form (§5.4.2, p. 66), with A=∣A∣A=|A|A=∣A∣ the number of actions:
∇Vπ(s0)=A1−γ Es∼dπ,s0 Ea∼Uniform[Aπ(s,a) ∇π(a∣s,θ)].\nabla V_\pi(s_0)=\frac{A}{1-\gamma}\,\mathbb E_{s\sim d_{\pi,s_0}}\,\mathbb E_{a\sim\mathrm{Uniform}}\big[A_\pi(s,a)\,\nabla\pi(a\mid s,\theta)\big].∇Vπ​(s0​)=1−γA​Es∼dπ,s0​​​Ea∼Uniform​[Aπ​(s,a)∇π(a∣s,θ)].

Significance

The result. The gradient formula contains no derivative of the state distribution: the effect of θ\thetaθ on which states are visited cancels, and the gradient is an expectation over states drawn from the current policy, weighted by a sum over actions. This is what makes Monte Carlo and actor-critic estimators possible, and it is the reason the thesis's sample-size analysis of §4.2.3 has no dependence on the size of the state space. The advantage form makes the limitation equally explicit: a small gradient certifies small advantages only under dπ,s0d_{\pi,s_0}dπ,s0​​, while the performance difference lemma (Lemma 5.2.1) shows that closeness to optimal is governed by advantages under dπ∗,s0d_{\pi^*,s_0}dπ∗,s0​​. That gap motivates the conservative policy iteration of Chapter 7.

Formalizing it. The theorems are proved in the thesis and in the cited literature; none of them is machine-checked in this normalized convention. The platform has a proved finite-horizon policy gradient theorem for a scalar parameter, a stationary policy and unnormalized values (policy_gradient_discounted_finite, policy_gradient_finite_horizon), and a posed direct-parameterization gradient for Agarwal et al.'s unnormalized discounted value (PolicyGradTheory.ProjGA.direct_gradient). This mission adds the multi-parameter statements, the non-stationary TTT-epoch version with its state-time distribution, and the infinite-horizon discounted version, where differentiability of an infinite series must be established rather than computed from a finite recursion.

Difficulty

In the TTT-epoch case the value is a finite polynomial in the policy entries, and the work is bookkeeping: unrolling the backward recursion for Vπ,tV_{\pi,t}Vπ,t​ against the forward recursion for Pr⁡(st=⋅)\Pr(s_t=\cdot)Pr(st​=⋅) so that the terms involving ∇Vπ,t+1\nabla V_{\pi,t+1}∇Vπ,t+1​ telescope. In the discounted case the obvious route, differentiating the recursion V=(1−γ)rπ+γPπVV=(1-\gamma)r_\pi+\gamma P_\pi VV=(1−γ)rπ​+γPπ​V term by term and recursing forever, presupposes that θ↦Vπθ,γ(s)\theta\mapsto V_{\pi_\theta,\gamma}(s)θ↦Vπθ​,γ​(s) is differentiable, which the thesis's proof takes for granted. The value is an infinite series in ttt, so that differentiability is a genuine part of the claim, and the resulting formula must be matched with dπ,s0,γd_{\pi,s_0,\gamma}dπ,s0​,γ​ and Qπ,γQ_{\pi,\gamma}Qπ,γ​, which are themselves defined as infinite series.

Formalization scope

  • Finite SSS and AAA (Fintype), AAA nonempty; transition kernel IsTransitionKernel P; rewards in [0,1][0,1][0,1] as a standing hypothesis of every statement; 0≤γ<10\le\gamma<10≤γ<1; T≥1T\ge1T≥1. The thesis's later chapters allow infinite state spaces; this mission is finite.
  • Normalization exactly as in the thesis: TTT-epoch values and dπ,s0d_{\pi,s_0}dπ,s0​​ carry 1/T1/T1/T, discounted values and dπ,s0,γd_{\pi,s_0,\gamma}dπ,s0​,γ​ carry 1−γ1-\gamma1−γ. Hence the factors TTT and 1/(1−γ)1/(1-\gamma)1/(1−γ) in the gradient formulas.
  • The discounted layer is the published normalized model ApproxOptRL.Shared.Model (value, qValue, advantage, futureStateDist; dπ,s0,γd_{\pi,s_0,\gamma}dπ,s0​,γ​ is futureStateDist at the point mass on s0s_0s0​). The TTT-epoch layer is defined in this mission (TEpoch): 0-based epochs, tValue by backward recursion, tQValue, stateDist, stateTimeDist.
  • Parameters live in EuclideanSpace ℝ (Fin k). Every statement assumes that π(⋅∣s,θ)\pi(\cdot\mid s,\theta)π(⋅∣s,θ) (resp. π(⋅∣s,t,θ)\pi(\cdot\mid s,t,\theta)π(⋅∣s,t,θ) for t<Tt<Tt<T) is a probability distribution for every θ\thetaθ, and that each entry is differentiable at the parameter θ0\theta_0θ0​ ("the derivatives ∇π\nabla\pi∇π exist", p. 48). Differentiability of the value is not assumed.
  • Gradients are stated with HasFDerivAt: the value map has the right-hand side as its Fréchet derivative at θ0\theta_0θ0​. A statement with fderiv of the value alone, or with a policy that does not depend on θ\thetaθ, would reduce to 0=00=00=0 and is ruled out.
  • Expectations over finite sets are finite sums; the uniform expectation over actions is 1∣A∣∑a\frac1{|A|}\sum_a∣A∣1​∑a​.
  • Contributions welcome: the forward/backward recursion identity for TTT-epoch values, summability and differentiability of the discounted series, and the closed form of Vπ,γV_{\pi,\gamma}Vπ,γ​ via (I−γPπ)−1(I-\gamma P_\pi)^{-1}(I−γPπ​)−1; all are reusable by the other missions of this series.

Selected references

  • S. M. Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, Gatsby Computational Neuroscience Unit, University College London, 2003. https://discovery.ucl.ac.uk/id/eprint/10100726/
  • R. S. Sutton, D. McAllester, S. Singh, Y. Mansour, Policy Gradient Methods for Reinforcement Learning with Function Approximation, Advances in Neural Information Processing Systems 12, 2000. https://proceedings.neurips.cc/paper/1999/hash/464d828b85b0bed98e80ade0a5c43b0f-Abstract.html
  • R. J. Williams, Simple statistical gradient-following algorithms for connectionist reinforcement learning, Machine Learning 8, 229–256, 1992. https://doi.org/10.1007/BF00992696
  • J. Baxter, P. L. Bartlett, Infinite-Horizon Policy-Gradient Estimation, Journal of Artificial Intelligence Research 15, 319–350, 2001. https://doi.org/10.1613/jair.806
  • V. R. Konda, J. N. Tsitsiklis, Actor-Critic Algorithms, Advances in Neural Information Processing Systems 12, 2000. https://proceedings.neurips.cc/paper/1999/hash/6449f44a102fde848669bdd9eb6b76fa-Abstract.html
9 thms2 active usersReviewed
🏆Completed
Machine LearningOptimizationReinforcement Learning·Captain: mikedeng1

On the Sample Complexity of Reinforcement Learning I: Approximate Policy Iteration with Max-Norm Evaluation Error ε Is Eventually Within 2ε/(1−γ)² of OptimalTextbook

Motivation

Most practical reinforcement-learning methods do not compute value functions exactly. They alternate between estimating a value function from data, usually with a parametric approximator, and acting greedily with respect to that estimate. Approximate value iteration and approximate policy iteration are the two classical schemes of this kind, and their error analysis decides how accuracy in the estimation step translates into quality of the policies produced. Chapter 3 of S. M. Kakade's thesis On the Sample Complexity of Reinforcement Learning (University College London, 2003) collects the basic guarantees, developed from Bertsekas (Dynamic Programming: Deterministic and Stochastic Models, 1987) for greedy policies, Singh and Yee (1994), and Bertsekas and Tsitsiklis, Neuro-Dynamic Programming (Athena Scientific, 1996). The bounds are stated in terms of the worst-case (max-norm) error of the evaluation step, and the thesis uses them to argue that max-norm error is the obstacle to state-space-independent sample complexity results for these methods, which motivates the later chapters of the thesis.

Setting

A finite discounted Markov decision process consists of a finite set of states SSS, a finite nonempty set of actions AAA, a transition kernel P(s′∣s,a)P(s'\mid s,a)P(s′∣s,a) (for every (s,a)(s,a)(s,a) a probability distribution over SSS), a deterministic reward r(s,a)∈[0,1]r(s,a)\in[0,1]r(s,a)∈[0,1], and a discount factor 0≤γ<10\le\gamma<10≤γ<1. A policy π(a∣s)\pi(a\mid s)π(a∣s) is a probability distribution over actions for every state; a deterministic policy is a map f:S→Af:S\to Af:S→A, identified with the policy that plays f(s)f(s)f(s) with probability one.

Values are normalized: the value of π\piπ at sss is

Vπ(s)=(1−γ) E[∑t≥0γtr(st,at) ∣ π, s0=s],V_\pi(s)=(1-\gamma)\,\mathbb E\Big[\sum_{t\ge0}\gamma^t r(s_t,a_t)\,\Big|\,\pi,\ s_0=s\Big],Vπ​(s)=(1−γ)E[t≥0∑​γtr(st​,at​)​π, s0​=s],

and the state-action value is Qπ(s,a)=(1−γ)r(s,a)+γ Es′∼P(⋅∣s,a)[Vπ(s′)]Q_\pi(s,a)=(1-\gamma)r(s,a)+\gamma\,\mathbb E_{s'\sim P(\cdot\mid s,a)}[V_\pi(s')]Qπ​(s,a)=(1−γ)r(s,a)+γEs′∼P(⋅∣s,a)​[Vπ​(s′)]. With rewards in [0,1][0,1][0,1], every value lies in [0,1][0,1][0,1]. An optimal policy π∗\pi^*π∗ has Vπ∗(s)≥Vπ(s)V_{\pi^*}(s)\ge V_\pi(s)Vπ∗​(s)≥Vπ​(s) for every policy π\piπ and state sss; write V∗=Vπ∗V^*=V_{\pi^*}V∗=Vπ∗​ and Q∗=Qπ∗Q^*=Q_{\pi^*}Q∗=Qπ∗​. The max norm is ∥x∥∞=max⁡s∣x(s)∣\|x\|_\infty=\max_s|x(s)|∥x∥∞​=maxs​∣x(s)∣ on state vectors and max⁡s,a∣x(s,a)∣\max_{s,a}|x(s,a)|maxs,a​∣x(s,a)∣ on state-action arrays.

The backup operator is [BJ](s)=max⁡a((1−γ)r(s,a)+γ Es′∼P(⋅∣s,a)[J(s′)])[BJ](s)=\max_a\big((1-\gamma)r(s,a)+\gamma\,\mathbb E_{s'\sim P(\cdot\mid s,a)}[J(s')]\big)[BJ](s)=maxa​((1−γ)r(s,a)+γEs′∼P(⋅∣s,a)​[J(s′)]). A deterministic policy fff is greedy with respect to QQQ if f(s)∈arg⁡max⁡aQ(s,a)f(s)\in\arg\max_a Q(s,a)f(s)∈argmaxa​Q(s,a) for every sss.

  • γ\gammaγ-approximate value iteration produces vectors J0=0,J1,J2,…J_0=0,J_1,J_2,\dotsJ0​=0,J1​,J2​,… with ∥Jt−BJt−1∥∞≤ε\|J_t-BJ_{t-1}\|_\infty\le\varepsilon∥Jt​−BJt−1​∥∞​≤ε, and greedy policies πt\pi_tπt​ for the lookahead (1−γ)r(s,a)+γ Es′[Jt(s′)](1-\gamma)r(s,a)+\gamma\,\mathbb E_{s'}[J_t(s')](1−γ)r(s,a)+γEs′​[Jt​(s′)].
  • γ\gammaγ-approximate policy iteration starts from any deterministic π0\pi_0π0​, forms an estimate Q~t\tilde Q_tQ~​t​ of QπtQ_{\pi_t}Qπt​​ with ∥Q~t−Qπt∥∞≤ε\|\tilde Q_t-Q_{\pi_t}\|_\infty\le\varepsilon∥Q~​t​−Qπt​​∥∞​≤ε, and takes πt+1\pi_{t+1}πt+1​ greedy with respect to Q~t\tilde Q_tQ~​t​.

Formalization targets

Goal: Theorem 3.2.2 (approximate policy iteration)

lim sup⁡t→∞∥V∗−Vπt∥∞≤2ε(1−γ)2.\limsup_{t\to\infty}\|V^*-V_{\pi_t}\|_\infty\le\frac{2\varepsilon}{(1-\gamma)^2}.t→∞limsup​∥V∗−Vπt​​∥∞​≤(1−γ)22ε​.

The policies need not converge; the statement bounds where they end up.

Milestones

  • Theorem 3.1.1: if ∥Q~−Q∗∥∞≤ε\|\tilde Q-Q^*\|_\infty\le\varepsilon∥Q~​−Q∗∥∞​≤ε and π\piπ is greedy for Q~\tilde QQ~​, then Vπ(s)≥V∗(s)−2ε1−γV_\pi(s)\ge V^*(s)-\frac{2\varepsilon}{1-\gamma}Vπ​(s)≥V∗(s)−1−γ2ε​ for all sss.
  • Lemma 3.2.3: ∥V∗−Vπt+1∥∞≤γ∥V∗−Vπt∥∞+2ε1−γ\|V^*-V_{\pi_{t+1}}\|_\infty\le\gamma\|V^*-V_{\pi_t}\|_\infty+\frac{2\varepsilon}{1-\gamma}∥V∗−Vπt+1​​∥∞​≤γ∥V∗−Vπt​​∥∞​+1−γ2ε​.
  • Rate of approximate policy iteration (p. 41): ∥V∗−Vπt∥∞≤γt+2ε(1−γ)2\|V^*-V_{\pi_t}\|_\infty\le\gamma^t+\frac{2\varepsilon}{(1-\gamma)^2}∥V∗−Vπt​​∥∞​≤γt+(1−γ)22ε​.
  • Contraction of the backup (p. 26): ∥BJ−BJ′∥∞≤γ∥J−J′∥∞\|BJ-BJ'\|_\infty\le\gamma\|J-J'\|_\infty∥BJ−BJ′∥∞​≤γ∥J−J′∥∞​.
  • Approximate value iteration (p. 40): ∥V∗−Jt∥∞≤γt+ε1−γ\|V^*-J_t\|_\infty\le\gamma^t+\frac{\varepsilon}{1-\gamma}∥V∗−Jt​∥∞​≤γt+1−γε​.
  • Rate of approximate value iteration (p. 41): ∥V∗−Vπt∥∞≤2γt1−γ+2ε(1−γ)2\|V^*-V_{\pi_t}\|_\infty\le\frac{2\gamma^t}{1-\gamma}+\frac{2\varepsilon}{(1-\gamma)^2}∥V∗−Vπt​​∥∞​≤1−γ2γt​+(1−γ)22ε​.
  • Theorem 3.2.1: the same lim sup bound 2ε(1−γ)2\frac{2\varepsilon}{(1-\gamma)^2}(1−γ)22ε​ for approximate value iteration.

Significance

The results give the standard performance guarantee for greedy approximate dynamic programming: an evaluation error of ε\varepsilonε in max norm costs at most 2ε/(1−γ)22\varepsilon/(1-\gamma)^22ε/(1−γ)2 in max-norm suboptimality, uniformly over the asymptotic set of policies, with a geometric rate of approach. Example 3.1.2 of the thesis shows that the factor 2ε/(1−γ)2\varepsilon/(1-\gamma)2ε/(1−γ) of Theorem 3.1.1 is attained, so the greedy step itself cannot be improved; the two factors of the horizon 1/(1−γ)1/(1-\gamma)1/(1−γ) in the limit bound are the reason the thesis turns to other error measures in later chapters.

All the statements are classical and proved in the literature (Bertsekas–Tsitsiklis 1996, Chapter 6, in the unnormalized model and with a factor γ\gammaγ to spare in the limit bounds); Lemma 3.2.3 and Theorem 3.2.2 are stated in the thesis without proof. To our knowledge none has a machine-checked proof. The mission produces formal proofs in the normalized model shared with the formalization of Kakade–Langford (2002) on this platform, so later chapters of the series (conservative policy iteration, policy search) can compare against them.

Difficulty

Approximate policy iteration is not monotone: with evaluation errors, Vπt+1V_{\pi_{t+1}}Vπt+1​​ can be worse than VπtV_{\pi_t}Vπt​​ at some states, so the argument of exact policy iteration, which uses Vπt+1≥VπtV_{\pi_{t+1}}\ge V_{\pi_t}Vπt+1​​≥Vπt​​ everywhere, does not apply. The difficulty of Lemma 3.2.3 is to control the distance to optimality without improvement at each step, combining the greedy step with the lack of monotonicity of the new policy's value; the thesis calls the proof of Theorem 3.2.2 "somewhat technical" and omits it. A second, mechanical difficulty is that the normalized value VπV_\piVπ​ is defined as an infinite series, so its Bellman equation Vπ(s)=Qπ(s,π(s))V_\pi(s)=Q_\pi(s,\pi(s))Vπ​(s)=Qπ​(s,π(s)), the optimality equation V∗=BV∗V^*=BV^*V∗=BV∗ and the bound 0≤Vπ≤10\le V_\pi\le10≤Vπ​≤1 have to be derived from that definition before any of the recursions can be run.

Formalization scope

  • The model is the published normalized model ApproxOptRL.Shared.Model: value P r γ π is VπV_\piVπ​ (defined as (1−γ)(1-\gamma)(1−γ) times a tsum), qValue is QπQ_\piQπ​. SSS and AAA are finite types, AAA nonempty; PPP satisfies IsTransitionKernel; every statement assumes 0≤r≤10\le r\le10≤r≤1 and 0≤γ<10\le\gamma<10≤γ<1.
  • The optimal policy is a binder π∗\pi^*π∗ with IsOptimalPolicy P r γ πstar (a stationary stochastic policy dominating every stationary stochastic policy at every state). Such a policy exists for every finite MDP (p. 26 of the thesis), and for finite MDPs it is optimal among all policies.
  • Policies of the runs are deterministic, S → A, and are evaluated through the indicator policy detPolicy. "Greedy" is the relation ∀ s a, Q s a ≤ Q s (f s): every tie-breaking rule is covered.
  • The runs are sequences indexed by ℕ, with the greedy and accuracy conditions as hypotheses at every index; the value-iteration condition is written for indices t+1t+1t+1 and ttt.
  • ∥⋅∥∞\|\cdot\|_\infty∥⋅∥∞​ is Mathlib's sup norm on S → ℝ and S → A → ℝ.
  • The lim sup statements are in ε\varepsilonε–NNN form: for every δ>0\delta>0δ>0 the bound plus δ\deltaδ holds eventually.
  • Ruled out: the accuracy hypothesis is stated against QπtQ_{\pi_t}Qπt​​, the value of the current policy, not against Q∗Q^*Q∗, and the greedy relation genuinely constrains πt+1\pi_{t+1}πt+1​; with either changed, the hypotheses would be unsatisfiable or the policies unconstrained and the theorem empty.
  • Infrastructure needed and reusable beyond this mission: the Bellman equation of the normalized value for indicator policies, V∗=BV∗V^*=BV^*V∗=BV∗, monotonicity and contraction of policy-evaluation and backup operators in the normalized model, and the bound 0≤Vπ≤10\le V_\pi\le10≤Vπ​≤1. Contributions of these lemmas are welcome.

Selected references

  • S. M. Kakade, On the Sample Complexity of Reinforcement Learning, PhD thesis, Gatsby Computational Neuroscience Unit, University College London, 2003. https://discovery.ucl.ac.uk/id/eprint/10100726/
  • D. P. Bertsekas and J. N. Tsitsiklis, Neuro-Dynamic Programming, Athena Scientific, 1996. ISBN 1-886529-10-8.
  • S. P. Singh and R. C. Yee, An upper bound on the loss from approximate optimal-value functions, Machine Learning 16 (1994), 227–233. https://doi.org/10.1007/BF00993104
  • S. M. Kakade and J. Langford, Approximately optimal approximate reinforcement learning, ICML 2002. https://dl.acm.org/doi/10.5555/645531.656005
13 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Algorithms for Scheduling Runway Operations Under Constrained Position Shifting 1: Dynamic Programming on the CPS Network Gives the Minimum MakespanResearch Paper

Motivation

A busy runway is the bottleneck of an airport, and the order in which arriving or departing aircraft use it determines how many operations fit into an hour. Consecutive aircraft must be spaced by minimum separations that depend on both aircraft (a light aircraft behind a heavy one needs a long gap because of wake turbulence), so reordering the first-come-first-served (FCFS) queue can raise throughput considerably. Unrestricted reordering is unacceptable in practice: it makes the controllers' job harder and can push one aircraft to the back of the queue indefinitely. Following Dear (1976), constrained position shifting (CPS) allows each aircraft to move at most kkk positions away from its FCFS position, with kkk between 1 and 3 in practice.

Earlier algorithms for CPS either exploited a small number of aircraft types and ignored time windows and precedence constraints (Psaraftis 1980), or needed exponentially many parallel processors (Trivizas 1998), and Carr (2004) conjectured that runway scheduling under CPS has exponential complexity in general. Balakrishnan and Chandran (Oper. Res. 58(6), 2010) showed that, for fixed kkk, the problem with time windows and precedence constraints is solved by dynamic programming on a network whose size is linear in the number of aircraft. This mission formalizes the core of that result: the network, its precedence pruning, and the dynamic program for the minimum makespan.

Setting

There are n≥1n\ge 1n≥1 aircraft, labelled 0,…,n−10,\dots,n-10,…,n−1 in FCFS order, and the landing positions are also 0,…,n−10,\dots,n-10,…,n−1. An instance consists of

  1. the maximum position shift k∈Nk\in\mathbb Nk∈N;
  2. separations δab≥0\delta_{ab}\ge 0δab​≥0, the minimum time between a leading aircraft aaa and a trailing aircraft bbb, satisfying the triangle inequality δac≤δab+δbc\delta_{ac}\le\delta_{ab}+\delta_{bc}δac​≤δab​+δbc​ (which holds for wake-vortex separations in arrivals-only or departures-only operation);
  3. a time window [e(a),l(a)][e(a),l(a)][e(a),l(a)] for each aircraft;
  4. a finite set of precedence pairs (x,y)(x,y)(x,y) of distinct aircraft, meaning that xxx lands before yyy.

A kkk-CPS sequence is a bijection σ\sigmaσ from positions to aircraft with ∣σ(p)−p∣≤k|\sigma(p)-p|\le k∣σ(p)−p∣≤k for all ppp. A feasible schedule is such a σ\sigmaσ with landing times tpt_ptp​ such that e(σ(p))≤tp≤l(σ(p))e(\sigma(p))\le t_p\le l(\sigma(p))e(σ(p))≤tp​≤l(σ(p)), δσ(p)σ(q)≤tq−tp\delta_{\sigma(p)\sigma(q)}\le t_q-t_pδσ(p)σ(q)​≤tq​−tp​ for all positions p<qp<qp<q, and every precedence pair is respected. The makespan is tn−1t_{n-1}tn−1​, the landing time of the last aircraft.

The CPS network has stages p=1,…,np=1,\dots,np=1,…,n. A node of stage ppp is a list of min⁡{2k+1,p}\min\{2k+1,p\}min{2k+1,p} distinct aircraft occupying the positions that end at p−1p-1p−1, each within kkk of its FCFS position; its last entry is its final aircraft. An arc joins a stage-ppp node iii to a stage-(p+1)(p+1)(p+1) node jjj when the first min⁡{2k,p}\min\{2k,p\}min{2k,p} entries of jjj are the last min⁡{2k,p}\min\{2k,p\}min{2k,p} entries of iii. A source-sink path picks one node per stage, joined by arcs, and its sequence puts the final aircraft of the stage-(q+1)(q+1)(q+1) node at position qqq. The pruned network GGG deletes the nodes that violate a precedence pair (x,y)(x,y)(x,y): those containing yyy before xxx, or yyy at a position less than x−kx-kx−k, or xxx at a position greater than y+ky+ky+k.

On GGG, with e(j),l(j)e(j),l(j)e(j),l(j) the window of the final aircraft of jjj, δi(j)\delta_i(j)δi​(j) the separation between the final aircraft of iii and jjj, and P(j)P(j)P(j) the predecessors of jjj, the dynamic program is T∗(j)=e(j)T^*(j)=e(j)T∗(j)=e(j) at stage 1 and

T∗(j)=max⁡{e(j), min⁡i∈P(j): T∗(i)≤l(i)(T∗(i)+δi(j))}(1)T^*(j)=\max\Big\{e(j),\ \min_{i\in P(j):\,T^*(i)\le l(i)}\big(T^*(i)+\delta_i(j)\big)\Big\}\qquad(1)T∗(j)=max{e(j), i∈P(j):T∗(i)≤l(i)min​(T∗(i)+δi​(j))}(1)

with min⁡∅=+∞\min\emptyset=+\inftymin∅=+∞.

Formalization targets

Goal: §4.1, the minimum makespan rule

∃ feasible schedule  ⟺  ∃ j∈Gn: T∗(j)≤l(j),\exists\ \text{feasible schedule}\iff \exists\, j\in G_n:\ T^*(j)\le l(j),∃ feasible schedule⟺∃j∈Gn​: T∗(j)≤l(j), min⁡{makespan of a feasible schedule}=min⁡{T∗(j):j∈Gn, T∗(j)≤l(j)},\min\{\text{makespan of a feasible schedule}\}=\min\{T^*(j): j\in G_n,\ T^*(j)\le l(j)\},min{makespan of a feasible schedule}=min{T∗(j):j∈Gn​, T∗(j)≤l(j)},

where GnG_nGn​ is stage nnn of GGG; the second identity is stated as "τ\tauτ is the least makespan iff τ\tauτ is the least admissible T∗(j)T^*(j)T∗(j)" for every real τ\tauτ.

Milestones

  1. Theorem 1. σ\sigmaσ is a kkk-CPS sequence iff it is the sequence of a source-sink path of the CPS network.
  2. Lemma 1 (Case I). For a<ba<ba<b, a path whose sequence puts aaa after bbb has a node containing bbb before aaa.
  3. Lemma 2 (Case II). For a<ba<ba<b, in the position-constrained network, a path whose sequence puts aaa before bbb has a node containing aaa before bbb.
  4. §3.1 conclusion. The source-sink paths of GGG are exactly the kkk-CPS sequences respecting all precedence pairs.
  5. Lemma 3. For every node jjj of GGG, T∗(j)T^*(j)T∗(j) is the earliest landing time of the final aircraft of jjj over all partial schedules ending at jjj, and +∞+\infty+∞ exactly when there is none.

Significance

The network turns a search over permutations into a shortest-path-like computation over O(n(2k+1)2k+1)O(n(2k+1)^{2k+1})O(n(2k+1)2k+1) nodes, so for the small values of kkk used in practice the minimum makespan with time windows and precedence constraints is computed in time linear in nnn. The same network underlies the paper's algorithms for total delay (§5.2) and, in a time-expanded form, for arbitrary separable costs without the triangle inequality (§6).

The paper's proofs are short and informal. A formalization pins down exactly what T∗(j)T^*(j)T∗(j) means (the paper describes it only as "arrival time of the final aircraft of node iii in an optimal solution"), makes precise which nodes the precedence pruning removes, and checks the correctness of the stage-nnn rule. The result has not been machine-checked before.

Difficulty

Two features of the model make the correctness of the network nontrivial. First, a node records only a window of at most 2k+12k+12k+1 consecutive positions, so nothing local prevents a path from using the same aircraft twice or omitting one; Theorem 1 asserts that the global sequence is nevertheless a permutation, and Lemmas 1 and 2 assert that precedence, a global property of the sequence, is detected inside single nodes. Second, the recursion (1) adds the separation only between consecutive aircraft, while feasibility constrains every pair of aircraft; the triangle inequality is what reconciles the two, and without it Lemma 3 fails.

The obvious reading of §4.1 also fails: taking the least T∗(j)T^*(j)T∗(j) over all stage-nnn nodes, as the paper prints, can select a node whose final aircraft lands after its latest time. The goal filters stage nnn by T∗(j)≤l(j)T^*(j)\le l(j)T∗(j)≤l(j).

Formalization scope

All data are real numbers; aircraft and positions are Fin n, 0-based; stages are 1-based natural numbers; [NeZero n] encodes n≥1n\ge 1n≥1. Separations are pairwise in the definition of feasibility, never only consecutive. The recursion takes values in WithTop ℝ, with ⊤=+∞\top=+\infty⊤=+∞; optima are stated with IsLeast over sets of makespans, never with a real infimum. Precedence pairs are a Finset of ordered pairs of distinct aircraft, covering both of the paper's cases.

Explicit readings of loose phrases:

  • "corresponding source-sink path" (Theorem 1) is the path whose final aircraft, stage by stage, form the sequence, as defined in the proof;
  • "the values of T∗(⋅)T^*(\cdot)T∗(⋅)" (Lemma 3) are earliest landing times over partial schedules ending at the node: paths in GGG with times satisfying the windows of the earlier aircraft, the earliest time of the last one, and all pairwise separations;
  • "the minimum makespan is the lowest value of T∗(⋅)T^*(\cdot)T∗(⋅) among all nodes in stage nnn" is corrected to the nodes with T∗(j)≤l(j)T^*(j)\le l(j)T∗(j)≤l(j), which is the paper's own feasibility check;
  • the Case II position filter uses the printed rule (<b−k<b-k<b−k, >a+k>a+k>a+k).

Not formalized: running times (Proposition 1 and the O(k)O(k)O(k) preprocessing remark), the predecessor pointers and tie-breaking that reconstruct an optimal sequence, the removal of nodes unreachable from the source or the sink (it does not change the set of source-sink paths), asymmetric shifts (§3.2) and disjoint time windows.

A formalization that defines feasibility with consecutive separations only, defines T∗T^*T∗ by the recursion and states Lemma 3 as an unfolding, or states Theorem 1 as "some CPS sequence exists iff some path exists" would be trivial; the statements here avoid all three.

The definitions (instance, kkk-CPS sequences, the CPS network and its pruning) are shared with the two other missions of this series (total delay, discrete time) and may be consolidated later. Proofs of the milestones, and lemmas about the window structure of the network, are welcome.

Selected references

  • H. Balakrishnan, B. G. Chandran, Algorithms for Scheduling Runway Operations Under Constrained Position Shifting, Operations Research 58(6), 1650–1665, 2010. https://doi.org/10.1287/opre.1100.0869
  • H. N. Psaraftis, A Dynamic Programming Approach for Sequencing Groups of Identical Jobs, Operations Research 28(6), 1347–1359, 1980. https://doi.org/10.1287/opre.28.6.1347
  • R. G. Dear, The Dynamic Scheduling of Aircraft in the Near Terminal Area, MIT Flight Transportation Laboratory Report R76-9, 1976.
  • D. A. Trivizas, Optimal Scheduling with Maximum Position Shift (MPS) Constraints: A Runway Scheduling Application, Journal of Navigation 51(2), 250–266, 1998.
  • F. R. Carr, Robust Decision-Support Tools for Airport Surface Traffic, Ph.D. thesis, Massachusetts Institute of Technology, 2004.
8 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Algorithms for Scheduling Runway Operations Under Constrained Position Shifting 2: The Minimum Total Delay Is a Shortest Source-Sink Path in the CPS NetworkResearch Paper

Motivation

Runway capacity is the binding constraint at many busy airports. An aircraft landing or taking off behind another must wait a minimum separation time that depends on the two aircraft's weight classes, because of wake vortices; the US Federal Aviation Administration publishes these spacing requirements. Reordering aircraft changes the sum of the separations incurred and hence the delays, but unrestricted reordering is unacceptable to airlines and controllers: an aircraft that arrived early could be pushed to the end of the queue. Constrained position shifting (CPS), introduced by Psaraftis (1980) and used in the United States and Europe since, allows each aircraft to move at most kkk positions from its first-come-first-served (FCFS) position.

Balakrishnan and Chandran (Operations Research 58(6), 2010) recast CPS scheduling as dynamic programming on a layered network, the CPS network, whose size is polynomial in the number of aircraft nnn for fixed kkk. Their §4 minimizes the makespan (the landing time of the last aircraft). §5.2 minimizes the total delay, equivalently the average delay, which measures passenger and airline cost more directly. This mission formalizes §5.2.

Setting

There are nnn aircraft labelled 1,…,n1,\dots,n1,…,n in FCFS order, a maximum position shift k∈Nk\in\mathbb Nk∈N, separations δab≥0\delta_{ab}\ge 0δab​≥0 (the minimum time between leading aircraft aaa and trailing aircraft bbb), and a finite set of precedence pairs (x,y)(x,y)(x,y) with x≠yx\ne yx=y, meaning that xxx must land before yyy. The separations satisfy the triangle inequality δac≤δab+δbc\delta_{ac}\le\delta_{ab}+\delta_{bc}δac​≤δab​+δbc​, as wake-vortex separations do for arrivals-only or departures-only operations.

A kkk-CPS sequence is a permutation σ\sigmaσ of the aircraft (position ppp receives aircraft σ(p)\sigma(p)σ(p)) with ∣σ(p)−p∣≤k|\sigma(p)-p|\le k∣σ(p)−p∣≤k for every ppp. A feasible schedule is a kkk-CPS sequence that places xxx before yyy for each precedence pair, together with landing times t1,…,tnt_1,\dots,t_nt1​,…,tn​ (by position) such that

tp≥0,tq−tp≥δσ(p)σ(q)(p<q).t_p\ge 0,\qquad t_q-t_p\ge\delta_{\sigma(p)\sigma(q)}\quad(p<q).tp​≥0,tq​−tp​≥δσ(p)σ(q)​(p<q).

There are no time windows. Its total delay is t1+⋯+tnt_1+\dots+t_nt1​+⋯+tn​, measured from time 000, at which all aircraft are available.

The CPS network has stages 1,…,n1,\dots,n1,…,n. A node of stage ppp is a sequence of min⁡{2k+1,p}\min\{2k+1,p\}min{2k+1,p} distinct aircraft that can occupy positions p−min⁡{2k+1,p}+1,…,pp-\min\{2k+1,p\}+1,\dots,pp−min{2k+1,p}+1,…,p (each within kkk of its position). Its last aircraft is its final aircraft. An arc joins a stage-ppp node iii to a stage-(p+1)(p+1)(p+1) node jjj when the sequences overlap: the first min⁡{2k,p}\min\{2k,p\}min{2k,p} aircraft of jjj are the last min⁡{2k,p}\min\{2k,p\}min{2k,p} aircraft of iii. A source-sink path picks one node per stage, and its sequence assigns position ppp to the final aircraft of the stage-ppp node. Precedence is incorporated by deleting every node that places yyy before xxx for some pair (x,y)(x,y)(x,y), or that places an aircraft outside the positions a pair allows it (§3.1). The result is the pruned network GGG. For nodes i,ji,ji,j, δi(j)\delta_i(j)δi​(j) is the separation between their final aircraft.

For a node jjj in stage ppp and times t1,…,tpt_1,\dots,t_pt1​,…,tp​ along a path to jjj, the paper uses the partial objective

θj(p)=t1+⋯+tp−1+(n−p+1) tp.\theta_j(p)=t_1+\dots+t_{p-1}+(n-p+1)\,t_p .θj​(p)=t1​+⋯+tp−1​+(n−p+1)tp​.

Formalization targets

Goal: the shortest-path equivalence (§5.2, p. 1656)

Give the arc (i,j)(i,j)(i,j) from stage p−1p-1p−1 to stage ppp the distance (n−p+1)δi(j)(n-p+1)\delta_i(j)(n−p+1)δi​(j), and source and sink arcs distance 000. Then a feasible schedule exists if and only if GGG has a source-sink path, and

min⁡(σ,t) feasible ∑p=1ntp  =  min⁡v source-sink path of G ∑p=2n(n−p+1) δvp−1(vp),\min_{(\sigma,t)\ \text{feasible}}\ \sum_{p=1}^{n}t_p\;=\;\min_{v\ \text{source-sink path of }G}\ \sum_{p=2}^{n}(n-p+1)\,\delta_{v_{p-1}}(v_p),(σ,t) feasiblemin​ p=1∑n​tp​=v source-sink path of Gmin​ p=2∑n​(n−p+1)δvp−1​​(vp​),

where each minimum exists exactly when the other does.

Milestones

  1. Theorem 1 with Lemmas 1–2 (pp. 1652–1654): the source-sink paths of GGG are exactly the kkk-CPS sequences respecting the precedence pairs.
  2. Proposition 2 (p. 1656): in a schedule of minimum total delay, tp−tp−1=δσ(p−1)σ(p)t_p-t_{p-1}=\delta_{\sigma(p-1)\sigma(p)}tp​−tp−1​=δσ(p−1)σ(p)​ for every p≥2p\ge 2p≥2.
  3. Proposition 3 (p. 1656): all paths from the source to a node lying on some source-sink path contain the same set of aircraft.
  4. The recursion of §5.2 (p. 1656): with θj∗(p)\theta^*_j(p)θj∗​(p) the minimum of θj(p)\theta_j(p)θj​(p) over partial schedules ending at jjj, θj∗(1)=0\theta^*_j(1)=0θj∗​(1)=0 and
θj∗(p)=min⁡i∈P(j)(θi∗(p−1)+(n−p+1) δi(j)),\theta^*_j(p)=\min_{i\in P(j)}\big(\theta^*_i(p-1)+(n-p+1)\,\delta_i(j)\big),θj∗​(p)=i∈P(j)min​(θi∗​(p−1)+(n−p+1)δi​(j)),

where P(j)P(j)P(j) is the set of predecessors of jjj in GGG.

Significance

The result turns a sequencing problem over up to n!n!n! orders into a shortest-path computation on a directed acyclic graph with O(n(2k+1)2k+1)O(n(2k+1)^{2k+1})O(n(2k+1)2k+1) nodes, and it does so while respecting precedence constraints, which earlier CPS algorithms (Psaraftis 1980; Trivizas 1998) could not handle. It is the average-delay counterpart of the makespan algorithm of §4 and shares its network. The same network carries the discrete-time models of §6.

The paper's proof of the equivalence is one sentence ("follows from properties of shortest paths and is omitted here"). Propositions 2 and 3 are proved in a few lines, and Theorem 1 by an argument about windows of 2k+12k+12k+1 consecutive positions. None of these results has a machine-checked proof. A formal development makes explicit the conventions the prose leaves implicit (the time origin, pairwise separations, which nodes Proposition 3 refers to) and checks that the recursion and the shortest-path value really compute the minimum total delay.

Difficulty

The arc distances weight the separation into stage ppp by n−p+1n-p+1n−p+1, the number of aircraft whose landing it delays. The equivalence needs two directions. A path's length must be the total delay of the schedule that lands each aircraft at its predecessor's time plus the separation, and that schedule must satisfy every pairwise separation, not only the consecutive ones; this is where the triangle inequality enters. Conversely, every feasible schedule must have total delay at least the length of its sequence's path, and every feasible sequence must be a path of GGG. The last point is Theorem 1 with precedence pruning: a node sees only 2k+12k+12k+1 consecutive positions, so detecting a violated precedence pair inside one node requires the position filter of §3.1 for pairs that reverse FCFS order. Proposition 3 is false for nodes that lie on no source-sink path, which the printed statement does not exclude.

Formalization scope

Aircraft and positions are Fin n, 0-based, and stages are 0-based natural numbers, so the arc into stage sss has distance (n−s)δi(j)(n-s)\delta_i(j)(n−s)δi​(j). Separations are real, nonnegative and satisfy the triangle inequality; feasibility requires them between every pair of positions. Landing times are real and nonnegative. The paper fixes no time origin, but its path length equals the total delay exactly when delays are measured from 000, and without a lower bound on the times the objective has no minimum. Minima are stated with IsLeast on sets of values, never with a real infimum. Feasibility and the existence of a path are stated separately, because the equality of least elements alone does not force them to exist.

The following loose phrases are given explicit readings. "In an optimal solution" (Proposition 2) means a feasible schedule whose total delay is at most that of every feasible schedule. "The CPS network" in Proposition 3 means nodes lying on a source-sink path, stated for the network without precedence pruning, which also covers the pruned one. "θ∗\theta^*θ∗" means the least element of the set of values of θj(p)\theta_j(p)θj​(p) over partial schedules ending at jjj, and the printed θj∗(s)\theta^*_j(s)θj∗​(s) is read as θj∗(p)\theta^*_j(p)θj∗​(p). The boundary value θj∗(1)=0\theta^*_j(1)=0θj∗​(1)=0 is not printed and is stated explicitly. Precedence pruning uses the printed Case II rule. Running times (the O(n(2k+1)2k+2)O(n(2k+1)^{2k+2})O(n(2k+1)2k+2) bound) are not formalized.

A trivializing formalization would require separations only between consecutive aircraft, define the minimum by the recursion itself, or use a network whose nodes need not be distinct or admissible. Here the minimum is defined directly over feasible schedules, separations are pairwise, and the nodes are checked against the paper's Figure 1 (stage sizes 2, 4, 7, 14, 14, 7 and 13 paths for n=6n=6n=6, k=1k=1k=1).

The development needs finite sums, permutations of Fin n and lists. The network layer (stages, arcs, precedence pruning, Theorem 1) is shared with the makespan and discrete-time missions of this series and reusable for any CPS objective. Proofs of any milestone, alternative proofs of the goal, and generalizations (asymmetric shifts, §3.2) are welcome.

Selected references

  • H. Balakrishnan, B. G. Chandran, Algorithms for Scheduling Runway Operations Under Constrained Position Shifting, Operations Research 58(6), 1650–1665, 2010. https://doi.org/10.1287/opre.1100.0869
  • H. N. Psaraftis, A Dynamic Programming Approach for Sequencing Groups of Identical Jobs, Operations Research 28(6), 1347–1359, 1980. https://doi.org/10.1287/opre.28.6.1347
  • R. G. Dear, Y. S. Sherif, An Algorithm for Computer Assisted Sequencing and Scheduling of Terminal Area Operations, Transportation Research Part A 25(2–3), 129–139, 1991.
  • D. A. Trivizas, Optimal Scheduling with Maximum Position Shift (MPS) Constraints: A Runway Scheduling Application, Journal of Navigation 51(2), 250–266, 1998.
  • R. de Neufville, A. Odoni, Airport Systems: Planning, Design, and Management, McGraw-Hill, 2003.
6 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

On the Structure of Lost-Sales Inventory Models 3: If Demand Increases in the Convex Order, the Optimal Lost-Sales Cost f̄_t(v; φ) Is Nondecreasing in φResearch Paper

Motivation

In the periodic-review inventory model with lost sales, demand that cannot be met from stock is lost rather than backordered. With a positive order lead time LLL the state of the system is a vector of length LLL: on-hand stock plus the L−1L-1L−1 orders still in the pipeline. This model is standard in retail, where a customer facing an empty shelf buys elsewhere. Its optimal policy is not a base-stock policy and depends on the whole pipeline vector, which makes it much harder to analyse than the backorder model.

A basic question for any stochastic inventory model is how its optimal cost responds to uncertainty in demand. For the backorder model it is classical that more variable demand costs more (Song 1994). Zipkin's paper (Oper. Res. 56(4), 2008, 937–944) recasts the lost-sales model in a transformed state in which the optimal cost functions are L♮^\natural♮-convex. Its §5 uses this structure to prove the lost-sales analogue: if demand becomes more variable in the convex order, the optimal cost does not decrease. The paper presents this as new in the lost-sales setting.

Timeline of the structural results the mission rests on:

  • 1958: Karlin and Scarf analyse the lost-sales model with lead time one and show that the optimal order decreases in the on-hand stock, with sensitivity less than one.
  • 1969: Morton extends these monotonicity and bounded-sensitivity properties to general lead times and derives bounds on the optimal order.
  • 2008: Zipkin reproves these properties through L♮^\natural♮-convexity in the transformed state (Theorem 4) and adds the parametric result of §5 (Theorem 11).

Setting

The order lead time is a positive integer LLL. The cost factors are the unit procurement cost ccc, the unit holding cost h^\hat hh^, the unit lost-sales penalty ppp and the discount factor γ\gammaγ. Demands in different periods are independent and nonnegative, with a common law. The paper treats states and orders as continuous.

Transformed state. A state is a vector v=(v0,…,vL−1)v=(v_0,\dots,v_{L-1})v=(v0​,…,vL−1​), where vlv_lvl​ is the stock on hand plus all orders due to arrive lll or more periods hence, and vL=0v_L=0vL​=0 by convention. So v0v_0v0​ is the inventory position and v0−v1v_0-v_1v0​−v1​ is the stock on hand. The state space is

V={v∈RL: v0≥v1≥⋯≥vL−1≥0}.V=\{v\in\mathbb R^L:\ v_0\ge v_1\ge\cdots\ge v_{L-1}\ge0\}.V={v∈RL: v0​≥v1​≥⋯≥vL−1​≥0}.

The action is ζ=−z≤0\zeta=-z\le0ζ=−z≤0, where z≥0z\ge0z≥0 is the order quantity, and eee is the all-ones vector. After demand ddd, the next state is

v+=([v0−v1−d]++v1, v2, …, vL−1, 0)−ζe.v_+=\big([v_0-v_1-d]^++v_1,\ v_2,\ \dots,\ v_{L-1},\ 0\big)-\zeta e.v+​=([v0​−v1​−d]++v1​, v2​, …, vL−1​, 0)−ζe.

Costs and recursion. The end-of-period holding and penalty cost is q^(u)=h^u++pu−\hat q(u)=\hat hu^++pu^-q^​(u)=h^u++pu−, and its expectation given on-hand stock yyy is q^0(y)=E[q^(y−d)]\hat q^0(y)=E[\hat q(y-d)]q^​0(y)=E[q^​(y−d)]. The optimal cost functions satisfy

gˉt(v,ζ)=−γLcζ+q^0(v0−v1)+γE[fˉt+1(v+)],fˉt(v)=min⁡ζ≤0gˉt(v,ζ),\bar g_t(v,\zeta)=-\gamma^Lc\zeta+\hat q^0(v_0-v_1)+\gamma E[\bar f_{t+1}(v_+)],\qquad \bar f_t(v)=\min_{\zeta\le0}\bar g_t(v,\zeta),gˉ​t​(v,ζ)=−γLcζ+q^​0(v0​−v1​)+γE[fˉ​t+1​(v+​)],fˉ​t​(v)=ζ≤0min​gˉ​t​(v,ζ),

with fˉT+L+1=0\bar f_{T+L+1}=0fˉ​T+L+1​=0. This is the paper's recursion (1)–(2), written in the state vvv.

Program (4). Fix a demand ddd. Choosing the next stock level v+v_+v+​, with −d≤v+−v0≤0-d\le v_+-v_0\le0−d≤v+​−v0​≤0 and v+≥v1v_+\ge v_1v+​≥v1​, gives

κˉt(v,ζ∣d)=min⁡v+{h^(v+−v1)+p(v+−v0+d)+γfˉt+1[(v+,v2,…,vL−1,0)−ζe]}.\bar\kappa_t(v,\zeta\mid d)=\min_{v_+}\Big\{\hat h(v_+-v_1)+p(v_+-v_0+d)+\gamma\bar f_{t+1}\big[(v_+,v_2,\dots,v_{L-1},0)-\zeta e\big]\Big\}.κˉt​(v,ζ∣d)=v+​min​{h^(v+​−v1​)+p(v+​−v0​+d)+γfˉ​t+1​[(v+​,v2​,…,vL−1​,0)−ζe]}.

Here v+−v1v_+-v_1v+​−v1​ is the leftover stock and d−(v0−v+)d-(v_0-v_+)d−(v0​−v+​) the unmet demand.

Parametric demand. The demand d(ϕ)d(\phi)d(ϕ) depends on a real parameter ϕ\phiϕ, with law μϕ\mu_\phiμϕ​, and fˉt(v;ϕ)\bar f_t(v;\phi)fˉ​t​(v;ϕ) is the optimal cost under μϕ\mu_\phiμϕ​. A random variable XXX is smaller than YYY in the convex order if E g(X)≤E g(Y)E\,g(X)\le E\,g(Y)Eg(X)≤Eg(Y) for every convex g:R→Rg:\mathbb R\to\mathbb Rg:R→R for which both expectations exist. This forces equal means and a variance that does not decrease.

Formalization targets

Goal: Theorem 11 (p. 941)

If d(ϕ)d(\phi)d(ϕ) is increasing in ϕ\phiϕ with respect to the convex order, then for all ttt and all v∈Vv\in Vv∈V,

ϕ≤ϕ′ ⟹ fˉt(v;ϕ)≤fˉt(v;ϕ′).\phi\le\phi'\ \Longrightarrow\ \bar f_t(v;\phi)\le\bar f_t(v;\phi').ϕ≤ϕ′ ⟹ fˉ​t​(v;ϕ)≤fˉ​t​(v;ϕ′).

Milestones, in attack order

  1. Reformulation (proof of Theorem 4, p. 939). For v∈Vv\in Vv∈V, ζ≤0\zeta\le0ζ≤0, d≥0d\ge0d≥0, the stock level v+=[v0−v1−d]++v1v_+=[v_0-v_1-d]^++v_1v+​=[v0​−v1​−d]++v1​ is optimal in program (4):
κˉt(v,ζ∣d)=q^(v0−v1−d)+γfˉt+1(v+).\bar\kappa_t(v,\zeta\mid d)=\hat q(v_0-v_1-d)+\gamma\bar f_{t+1}(v_+).κˉt​(v,ζ∣d)=q^​(v0​−v1​−d)+γfˉ​t+1​(v+​).
  1. Convexity of the optimal cost (Theorem 4, p. 939, with the remark on p. 938). fˉt\bar f_tfˉ​t​ is convex on VVV for every ttt.
  2. The key step (proof of Theorem 11, p. 941). If FFF is convex and nonnegative on VVV, then program (4) with continuation FFF is jointly convex in (v,ζ,d)(v,\zeta,d)(v,ζ,d) on {v∈V, ζ≤0, d≥0}\{v\in V,\ \zeta\le0,\ d\ge0\}{v∈V, ζ≤0, d≥0}.
  3. The induction step (proof of Theorem 11, p. 941). If fˉt+1(v;ϕ)\bar f_{t+1}(v;\phi)fˉ​t+1​(v;ϕ) is nondecreasing in ϕ\phiϕ on VVV, then so is gˉt(v,ζ;ϕ)\bar g_t(v,\zeta;\phi)gˉ​t​(v,ζ;ϕ) for every ζ≤0\zeta\le0ζ≤0.

Significance

Theorem 11 is a comparative-statics statement: replacing demand by a mean-preserving spread cannot lower the optimal cost from any starting state, at any horizon. It justifies valuing variance reduction in lost-sales systems, for example forecasting or demand pooling, without solving the high-dimensional dynamic program. The induction pattern of the proof transfers to other parametric questions about the model; §6 of the paper notes that the parametric analysis remains valid in several extensions.

The paper proves Theorem 11 in a few lines on top of Theorem 4. No machine-checked proof of the result or of its structural prerequisites is known: neither the lost-sales recursion in the transformed state nor its convexity is formalized. A complete development checks the measure-theoretic steps the paper leaves implicit: that the optimal costs are finite, the existence of the expectations, and the passage from convexity in ddd on [0,∞)[0,\infty)[0,∞) to the convex order's test functions on R\mathbb RR.

Difficulty

The argument looks immediate: the costs are convex, so the convex order should apply directly. It does not. The function to which the convex order must be applied is the end-of-period cost as a function of demand. In recursion (1) that function is q^(v0−v1−d)+γfˉt+1(v+(d))\hat q(v_0-v_1-d)+\gamma\bar f_{t+1}(v_+(d))q^​(v0​−v1​−d)+γfˉ​t+1​(v+​(d)), where the next state depends on ddd through the kink [v0−v1−d]+[v_0-v_1-d]^+[v0​−v1​−d]+. Convexity of fˉt+1\bar f_{t+1}fˉ​t+1​ alone does not make this composition convex in ddd. The paper avoids the issue by passing to program (4), where the amount of demand filled is a decision. That requires two facts: that selling as much as possible is optimal (milestone 1), and that the program is jointly convex in state, action and demand (milestone 3), which needs convexity of fˉt+1\bar f_{t+1}fˉ​t+1​ on all of VVV (milestone 2). A second difficulty is analytic: the optimal costs are defined by infima and expectations, and one must show that these are finite and integrable before any order comparison applies.

Formalization scope

  • Model. States are Fin L → ℝ with 0-based indices matching the paper. vL=0v_L=0vL​=0 is the helper vext. VVV is the set of antitone, nonnegative vectors.
  • Time. Data are stationary, so the optimal cost is indexed by the number of periods to go kkk, with fˉ=0\bar f=0fˉ​=0 at k=0k=0k=0. The paper's "for all ttt" is "for all kkk".
  • Demand. One-period demand has law μ\muμ, a probability measure on R\mathbb RR with μ((−∞,0))=0\mu((-\infty,0))=0μ((−∞,0))=0 and finite mean. The finite mean is not in the paper; it is added so that q^0\hat q^0q^​0 is finite.
  • Parametric family. A family μϕ\mu_\phiμϕ​, ϕ∈R\phi\in\mathbb Rϕ∈R, with every hypothesis imposed for every ϕ\phiϕ. Every object depending on demand takes the law as an argument, so fˉt(v;ϕ)\bar f_t(v;\phi)fˉ​t​(v;ϕ) is fbar … (μ φ) k v.
  • Costs. "Unit cost" and "discount rate" are read as c,h^,p≥0c,\hat h,p\ge0c,h^,p≥0 and 0<γ≤10<\gamma\le10<γ≤1.
  • Minima. "Min" over orders is an infimum over ζ≤0\zeta\le0ζ≤0, and program (4) is an infimum over the interval [max⁡(v0−d,v1),v0][\max(v_0-d,v_1),v_0][max(v0​−d,v1​),v0​]. Lean's infimum is 000 on sets that are unbounded below or empty. Nonnegative costs and demand keep the infima genuine, and the generic key-step milestone assumes the continuation is nonnegative.
  • Expectations. Bochner integrals.
  • Convex order. The platform definition StochasticOrders.Convex.ConvexOrder (Shaked–Shanthikumar (3.A.1)), applied to the identity on (R,μϕ)(\mathbb R,\mu_\phi)(R,μϕ​). Equal means are a consequence and are not assumed.
  • Convexity milestone. Stated for the model's fˉ\bar ffˉ​ only, not as "L♮^\natural♮-convex implies convex" in general, which fails without regularity.

Ruled out. Value functions that collapse to a junk constant would make Theorem 11 trivially true. This is excluded because the recursion is defined, not assumed, and every cost and demand hypothesis is imposed for every ϕ\phiϕ. Replacing the convex order by "variance nondecreasing", by the increasing convex order, or by test functions convex only on [0,∞)[0,\infty)[0,∞) changes the theorem and is not accepted.

Infrastructure and contributions. A complete development needs:

  • finiteness and integrability of the optimal costs;
  • convexity of partial infima over convex fibers;
  • monotone extension of a function convex on [0,∞)[0,\infty)[0,∞) to all of R\mathbb RR.

The model file is shared in shape with the series' missions 1 (L♮^\natural♮-convexity) and 2 (policy bounds), and its convexity lemmas are reusable for other parametric comparisons of the lost-sales model. Proofs of any milestone, and alternative arguments that bypass program (4), are welcome.

Selected references

  • P. Zipkin, On the structure of lost-sales inventory models, Operations Research 56(4), 937–944, 2008. https://doi.org/10.1287/opre.1070.0482
  • S. Karlin, H. Scarf, Inventory models of the Arrow–Harris–Marschak type with time lag, in Studies in the Mathematical Theory of Inventory and Production, Chapter 10, Stanford University Press, 1958.
  • T. E. Morton, Bounds on the solution of the lagged optimal inventory equation with no demand backlogging and proportional costs, SIAM Review 11, 572–576, 1969 (as cited in Zipkin 2008).
  • J.-S. Song, The effect of leadtime uncertainty in a simple stochastic inventory model, Management Science 40(5), 603–613, 1994. https://doi.org/10.1287/mnsc.40.5.603
  • D. Stoyan, Comparison Methods for Queues and Other Stochastic Models, Wiley, 1983.
  • M. Shaked, J. G. Shanthikumar, Stochastic Orders, Springer, 2007. https://doi.org/10.1007/978-0-387-34675-5
8 thms2 active usersReviewed
🏆Completed
Operations ResearchProbabilityStochastic Systems·Captain: mikedeng1

Old and New Methods for Lost-Sales Inventory Systems 1: Under Any Policy in Z(s) the State Enters X(s) and Never Leaves, So Every State Outside X(s) Is TransientResearch Paper

Why the lost-sales state space matters

The lost-sales inventory system with a positive lead time is one of the basic models of inventory theory. Demand that cannot be met from stock is lost rather than backlogged, and orders arrive a fixed number LLL of periods after they are placed. Unlike the backlog system, where the inventory position is a sufficient one-dimensional state and a base-stock policy is optimal, the lost-sales system needs the whole pipeline of outstanding orders as its state, and its optimal policy has no simple form. Computing optimal policies by dynamic programming therefore runs into the size of an LLL-dimensional state space.

Paul Zipkin's paper Old and New Methods for Lost-Sales Inventory Systems (Operations Research 56(5), 2008, doi:10.1287/opre.1070.0471) revisits this model, compares classical and new heuristics against optimal policies, and prepares the computation with a state-reduction result. Morton (1969, SIAM Review 11, Equation (83)) showed that under an optimal policy the state remains in a bounded set; Zipkin's §4 extends the argument to every policy in a class Z(s)Z(s)Z(s) that contains the usual heuristics. This mission formalizes that section: the reduced state space X(s)X(s)X(s), the policy class Z(s)Z(s)Z(s), and Claim 1, which says that states outside X(s)X(s)X(s) are transient.

Setting

Fix the lead time L≥1L\ge 1L≥1. The state is the LLL-vector x=(x0,…,xL−1)x=(x_0,\dots,x_{L-1})x=(x0​,…,xL−1​): x0x_0x0​ is the stock on hand after this period's delivery, and xlx_lxl​ (1≤l≤L−11\le l\le L-11≤l≤L−1) is the order that arrives lll periods later, so xL−1x_{L-1}xL−1​ is the most recent order. Given the state xxx, an order z≥0z\ge 0z≥0 and a demand d≥0d\ge 0d≥0, the next state is

x+=([x0−d]++x1, x2, …, xL−1, z),[a]+=max⁡(a,0).x_+ = \bigl([x_0-d]^+ + x_1,\ x_2,\ \dots,\ x_{L-1},\ z\bigr),\qquad [a]^+=\max(a,0).x+​=([x0​−d]++x1​, x2​, …, xL−1​, z),[a]+=max(a,0).

Demands in successive periods are independent with a common law DDD on [0,∞)[0,\infty)[0,∞).

The pipeline partial sums are vl=∑m=lL−1xmv_l=\sum_{m=l}^{L-1}x_mvl​=∑m=lL−1​xm​ for l=0,…,L−1l=0,\dots,L-1l=0,…,L−1 and vL=0v_L=0vL​=0; v0v_0v0​ is the inventory position and vL−1=xL−1v_{L-1}=x_{L-1}vL−1​=xL−1​ the most recent order. A level vector is s=(s0,…,sL)s=(s_0,\dots,s_L)s=(s0​,…,sL​) with s0≥s1≥⋯≥sL≥0s_0\ge s_1\ge\dots\ge s_L\ge 0s0​≥s1​≥⋯≥sL​≥0. For a level vector sss,

X(s)={x≥0: vl≤sl, l=0,…,L−1},X(s)=\{x\ge 0:\ v_l\le s_l,\ l=0,\dots,L-1\},X(s)={x≥0: vl​≤sl​, l=0,…,L−1},

and Z(s)Z(s)Z(s) is the set of stationary policies zzz (an order z(x)≥0z(x)\ge 0z(x)≥0 in each state x≥0x\ge 0x≥0) with z(x)=0z(x)=0z(x)=0 for x∉X(s)x\notin X(s)x∈/X(s) and vl+z(x)≤slv_l+z(x)\le s_lvl​+z(x)≤sl​ for l=0,…,Ll=0,\dots,Ll=0,…,L and x∈X(s)x\in X(s)x∈X(s). The vector base-stock policy with parameter sss is

zs(x)=[min⁡{sl−vl, l=0,…,L}]+,z_s(x)=\bigl[\min\{s_l-v_l,\ l=0,\dots,L\}\bigr]^+,zs​(x)=[min{sl​−vl​, l=0,…,L}]+,

equation (5) of the paper with a general sss in place of Morton's sˉ\bar ssˉ. Under a stationary policy zzz, from an initial state xxx and along a demand path (dt)(d_t)(dt​), the state process is x0=xx_0=xx0​=x, xt+1=(xt)+x_{t+1}=(x_t)_+xt+1​=(xt​)+​ with order z(xt)z(x_t)z(xt​) and demand dtd_tdt​. In Lean these are next, v, IsLevelVector, Xs, Zs, vectorBaseStock and traj in the namespace LostSalesOldNew.StateReduction.

Formalization targets

Goal: Claim 1 (p. 1259)

For a level vector sss, a policy z∈Z(s)z\in Z(s)z∈Z(s), i.i.d. demands with law DDD on [0,∞)[0,\infty)[0,∞) and P(d>0)>0P(d>0)>0P(d>0)>0, and any initial state x≥0x\ge 0x≥0, almost surely

∃ T ∀ t≥T:xt∈X(s).\exists\,T\ \forall\,t\ge T:\quad x_t\in X(s).∃T ∀t≥T:xt​∈X(s).

The paper's word is "transient"; the statement above says that every state outside X(s)X(s)X(s), indeed the whole complement, is visited only finitely often.

Milestones

  1. (5) and §4: for every level vector sss, zs∈Z(s)z_s\in Z(s)zs​∈Z(s).
  2. Invariance (proof of Claim 1): x∈X(s)x\in X(s)x∈X(s), z∈Z(s)z\in Z(s)z∈Z(s), d≥0d\ge 0d≥0 imply x+∈X(s)x_+\in X(s)x+​∈X(s).
  3. Entrance (proof of Claim 1): along a demand path with dt≥0d_t\ge 0dt​≥0 and ∑t<ndt→∞\sum_{t<n}d_t\to\infty∑t<n​dt​→∞, the process started at any x≥0x\ge 0x≥0 visits X(s)X(s)X(s).

A further item records the paper's remark that X(s)X(s)X(s) and Z(s)Z(s)Z(s) are increasing in sss.

Significance

Claim 1 lets the dynamic program be solved on the compact set X(sˉ)X(\bar s)X(sˉ) with policies restricted to Z(sˉ)Z(\bar s)Z(sˉ), which is what makes the paper's exact computations (lead times up to four, §6) feasible. Since Z(s)Z(s)Z(s) contains the vector base-stock policies and, for sss large enough, any policy that stops ordering in large states, the claim also says that every plausible policy eventually confines the state to a bounded set.

The result has a short proof in the paper and no machine-checked version. Formalizing it produces a reusable encoding of the lost-sales pipeline with general stationary policies, and makes explicit two points the paper leaves implicit: the probabilistic reading of "transient", and the demand condition under which the process must leave the complement of X(s)X(s)X(s). Related platform material treats the backlog analogue (VeinottBaseStock.base_stock_level_absorbing, a base-stock level set is absorbing) and lost-sales dynamics under other conventions (CappedBaseStock_Model, from an empty initial state under capped base-stock policies with average cost); those formulations use another state convention and cost criterion and are not imported here.

Difficulty

The invariance step is algebra on partial sums. The content of the claim is the entrance step: outside X(s)X(s)X(s) the policy orders nothing, so the process can only reach X(s)X(s)X(s) through demand draining the stock and the pipeline. That requires the cumulative demand to diverge, which fails pathwise (demand identically zero leaves a state with x0>s0x_0>s_0x0​>s0​ fixed forever) and holds only almost surely, from independence and P(d>0)>0P(d>0)>0P(d>0)>0. The naive reading of "transient" as invariance alone, or as the pathwise statement with divergent demand assumed, misses this step.

Formalization scope

  • States are Fin L → ℝ with L≥1L\ge 1L≥1 in the goal; theorems quantify over nonnegative states. The vector (x,z)(x,z)(x,z) is Fin.snoc x z; vvv takes a natural-number index and vanishes at l≥Ll\ge Ll≥L, so vL=0v_L=0vL​=0.
  • Level vectors are Fin (L+1) → ℝ, antitone with nonnegative last entry. X(s)X(s)X(s) constrains v0,…,vL−1v_0,\dots,v_{L-1}v0​,…,vL−1​; Z(s)Z(s)Z(s) constrains vl+z(x)v_l+z(x)vl​+z(x) for l=0,…,Ll=0,\dots,Ll=0,…,L.
  • Policies are deterministic stationary functions of the state, with no measurability required. The zero condition and the sign condition of Z(s)Z(s)Z(s) range over states x≥0x\ge 0x≥0 (the paper's state space); over all of RL\mathbb R^LRL the vector base-stock policy would not be in Z(s)Z(s)Z(s).
  • Demand is a probability measure DDD on R\mathbb RR with D((−∞,0))=0D((-\infty,0))=0D((−∞,0))=0; the demand sequence is the coordinate process under Measure.infinitePi (fun _ : ℕ => D). The hypothesis D((0,∞))>0D((0,\infty))>0D((0,∞))>0 is added to the paper's assumptions; without it the claim is false.
  • "Transient" is read as: almost surely the state lies in X(s)X(s)X(s) from some period on.
  • Ruled out: the goal is neither the invariance statement alone, which says nothing about states outside X(s)X(s)X(s), nor the pathwise entrance statement with divergent cumulative demand assumed, which drops the probabilistic content.

A complete development needs the partial-sum algebra of the pipeline, the second Borel–Cantelli lemma or the strong law for i.i.d. nonnegative sequences under Measure.infinitePi, and induction along traj. The pipeline encoding is shared with the second mission of this series (lead-time monotonicity). Proofs of any milestone and of the goal are welcome.

Selected references

  • P. Zipkin, Old and New Methods for Lost-Sales Inventory Systems, Operations Research 56(5):1256–1263, 2008. https://doi.org/10.1287/opre.1070.0471
  • T. Morton, Bounds on the Solution of the Lagged Optimal Inventory Equation with No Demand Backlogging and Proportional Costs, SIAM Review 11:572–576, 1969 (as cited in Zipkin 2008).
  • T. Morton, The Near-Myopic Nature of the Lagged-Proportional-Cost Inventory Problem with Lost Sales, Operations Research 19(7):1708–1716, 1971. https://doi.org/10.1287/opre.19.7.1708
  • R. Levi, G. Janakiraman, M. Nagarajan, Provably Near-Optimal Balancing Policies for Stochastic Inventory Control Models with Lost Sales, Mathematics of Operations Research, 2008 (forthcoming at the time of Zipkin 2008).
5 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimizationProbability·Captain: mikedeng1

On the Structure of Lost-Sales Inventory Models 1: In the Transformed State v = J⁻¹x, the Optimal Cost Functions f̄_t(v) and ḡ_t(v, ζ) Are L♮-ConvexResearch Paper

Motivation

The lost-sales inventory system is the inventory model in which demand that cannot be met from stock is lost, not backlogged. It is the natural model for retail and for any setting where a customer who finds the shelf empty buys elsewhere. With a positive order lead time it is also one of the classical hard problems of inventory theory. In the backorder model the state collapses to a single number, the inventory position, and a base-stock policy is optimal. Under lost sales the whole pipeline of outstanding orders matters, the state is an LLL-dimensional vector, and no simple policy is optimal.

Its structure has a long history:

  • Karlin and Scarf (1958) formulated the model and showed, for lead time one and continuous demand, that the optimal order decreases in on-hand inventory with slope bounded by one.
  • Morton (1969) extended these qualitative properties to general lead times, again by differentiating the optimal cost function, which required smooth demand distributions.
  • Zipkin (2008), the paper formalized here, recovered and unified both results with a change of state variables and a single structural property, L♮-convexity, from discrete convex analysis (Murota 2003). The argument needs no smoothness and works for discrete as well as continuous demand.

Setting

Time is discrete. In each period the order due arrives, a new order z≥0z\ge0z≥0 is placed, demand d≥0d\ge0d≥0 occurs, and a holding or penalty cost is charged. The lead time L≥1L\ge1L≥1 is an integer. The original state x=(x0,…,xL−1)x=(x_0,\dots,x_{L-1})x=(x0​,…,xL−1​) records on-hand inventory x0x_0x0​ followed by the orders in transit. Demands are independent with a common law μ\muμ. The costs are linear and stationary: unit procurement cost ccc, unit holding cost h^\hat hh^, unit lost-sales penalty ppp, and discount factor γ\gammaγ.

The transformed state is the vector of partial sums vl=∑k=lL−1xkv_l=\sum_{k=l}^{L-1}x_kvl​=∑k=lL−1​xk​, 0≤l<L0\le l<L0≤l<L, with the convention vL=0v_L=0vL​=0. It ranges over the cone

V={v∈RL:v0≥v1≥⋯≥vL−1≥0}.V=\{v\in\mathbb R^L : v_0\ge v_1\ge\dots\ge v_{L-1}\ge 0\}.V={v∈RL:v0​≥v1​≥⋯≥vL−1​≥0}.

The transformed order is ζ=−z≤0\zeta=-z\le0ζ=−z≤0. With eee the all-ones vector, the state moves to

v+=([v0−v1−d]++v1, v2, …, vL−1, 0)−ζe.v_+=\big([v_0-v_1-d]^+ + v_1,\ v_2,\ \dots,\ v_{L-1},\ 0\big)-\zeta e .v+​=([v0​−v1​−d]++v1​, v2​, …, vL−1​, 0)−ζe.

The one-period cost is q^(u)=h^u++pu−\hat q(u)=\hat hu^+ + pu^-q^​(u)=h^u++pu− on u=y−du=y-du=y−d, where y=v0−v1y=v_0-v_1y=v0​−v1​ is the on-hand stock, and q^0(y)=E[q^(y−d)]\hat q^0(y)=E[\hat q(y-d)]q^​0(y)=E[q^​(y−d)]. With kkk periods to go, the optimal cost functions are

fˉ0≡0,gˉk(v,ζ)=−γLcζ+q^0(v0−v1)+γE[fˉk(v+)],fˉk+1(v)=inf⁡ζ≤0gˉk(v,ζ).\bar f_0\equiv0,\qquad \bar g_k(v,\zeta)=-\gamma^Lc\zeta+\hat q^0(v_0-v_1)+\gamma E\big[\bar f_k(v_+)\big],\qquad \bar f_{k+1}(v)=\inf_{\zeta\le0}\bar g_k(v,\zeta).fˉ​0​≡0,gˉ​k​(v,ζ)=−γLcζ+q^​0(v0​−v1​)+γE[fˉ​k​(v+​)],fˉ​k+1​(v)=ζ≤0inf​gˉ​k​(v,ζ).

A function φ\varphiφ is submodular on a set S⊆RnS\subseteq\mathbb R^nS⊆Rn if φ(x∨y)+φ(x∧y)≤φ(x)+φ(y)\varphi(x\vee y)+\varphi(x\wedge y)\le\varphi(x)+\varphi(y)φ(x∨y)+φ(x∧y)≤φ(x)+φ(y) for all x,y∈Sx,y\in Sx,y∈S, with ∨,∧\vee,\wedge∨,∧ the componentwise maximum and minimum. A function f:V→Rf:V\to\mathbb Rf:V→R is L♮-convex if ψ(v,ζ)=f(v−ζe)\psi(v,\zeta)=f(v-\zeta e)ψ(v,ζ)=f(v−ζe) is submodular on V×ℜ−V\times\Re^-V×ℜ−. A function g(v,ζ)g(v,\zeta)g(v,ζ) on V×ℜ−V\times\Re^-V×ℜ− is L♮-convex if g((v,ζ)−ξ(e,1))g\big((v,\zeta)-\xi(e,1)\big)g((v,ζ)−ξ(e,1)) is submodular in (v,ζ,ξ)(v,\zeta,\xi)(v,ζ,ξ) over v∈Vv\in Vv∈V, ζ≤ξ≤0\zeta\le\xi\le0ζ≤ξ≤0.

Formalization targets

Goal: Theorem 4 (p. 939)

For every number of periods to go kkk,

fˉk is L♮-convex on Vandgˉk is L♮-convex on V×ℜ−.\bar f_k \text{ is L♮-convex on } V \quad\text{and}\quad \bar g_k \text{ is L♮-convex on } V\times\Re^- .fˉ​k​ is L♮-convex on Vandgˉ​k​ is L♮-convex on V×ℜ−.

The statement fixes no constants. It holds for every lead time, every demand law in the class below, and every cost vector.

Milestones, in the order the proof uses them

  1. Lemma 1 (p. 938): if f(v)f(v)f(v) is L♮-convex, so is ψ(v,ζ)=f(v−ζe)\psi(v,\zeta)=f(v-\zeta e)ψ(v,ζ)=f(v−ζe).
  2. Lemma 2 (p. 939): if g(v,ζ)g(v,\zeta)g(v,ζ) is L♮-convex, so is f(v)=min⁡ζ≤0g(v,ζ)f(v)=\min_{\zeta\le0}g(v,\zeta)f(v)=minζ≤0​g(v,ζ).
  3. Optimal filling (proof of Theorem 4): in the end-of-period program (3), filling as much demand as possible is optimal (a=min⁡{d,v0−v1}a=\min\{d,v_0-v_1\}a=min{d,v0​−v1​}). Consequently κˉt(v,ζ∣d)=q^(v0−v1−d)+γfˉt+1(v+)\bar\kappa_t(v,\zeta\mid d)=\hat q(v_0-v_1-d)+\gamma\bar f_{t+1}(v_+)κˉt​(v,ζ∣d)=q^​(v0​−v1​−d)+γfˉ​t+1​(v+​).
  4. ψt\psi_tψt​ is L♮-convex: the objective ψt(v+,v,ζ)=h^(v+−v1)+p(v+−v0+d)+γfˉt+1[(v+,v2,…,vL−1,0)−ζe]\psi_t(v_+,v,\zeta)=\hat h(v_+-v_1)+p(v_+-v_0+d)+\gamma\bar f_{t+1}[(v_+,v_2,\dots,v_{L-1},0)-\zeta e]ψt​(v+​,v,ζ)=h^(v+​−v1​)+p(v+​−v0​+d)+γfˉ​t+1​[(v+​,v2​,…,vL−1​,0)−ζe] of program (4) is L♮-convex on its constraint set.
  5. κˉt\bar\kappa_tκˉt​ is L♮-convex: the end-of-period cost κˉt(v,ζ∣d)\bar\kappa_t(v,\zeta\mid d)κˉt​(v,ζ∣d) is L♮-convex in (v,ζ)(v,\zeta)(v,ζ) for each ddd.
  6. gˉt\bar g_tgˉ​t​ is L♮-convex: if fˉt+1\bar f_{t+1}fˉ​t+1​ is L♮-convex, so is gˉt=−γLcζ+Ed[κˉt]\bar g_t=-\gamma^Lc\zeta+E_d[\bar\kappa_t]gˉ​t​=−γLcζ+Ed​[κˉt​], by (5).

Significance

The result. L♮-convexity of fˉt\bar f_tfˉ​t​ implies that fˉt\bar f_tfˉ​t​ is submodular and convex in the transformed state. L♮-convexity of gˉt\bar g_tgˉ​t​ yields, through Lemma 3 and Corollary 5 of the paper, that the optimal order zˉt(v)\bar z_t(v)zˉt​(v) is nonincreasing in vvv and changes by at most ω\omegaω when every component of vvv increases by ω\omegaω. These are exactly the Karlin–Scarf and Morton sensitivity results, obtained without derivatives. The same property underlies the paper's later results: the bounds on the optimal policy (§4), the monotonicity of cost in demand variability (§5), and the extensions to capacity limits, correlated demand and stochastic lead times (§6).

Formalizing it. The theorem is proved in the paper; nothing here is open mathematically. To our knowledge no machine-checked proof of L♮-convexity of an inventory value function exists. The mission produces three things:

  • a formal L♮-convexity theory on real cones (the shift characterization, its preservation under partial minimization, and its preservation under expectation);
  • a checked version of the induction behind Theorem 4;
  • a verified model of the lost-sales recursion in the transformed state, which missions on Corollary 5 and the later sections can import.

Difficulty

The obvious argument works with ordinary convexity and submodularity in the original state xxx. It stalls: the lost-sales transition [x0−d]+[x_0-d]^+[x0​−d]+ is not linear, and the order enters only the last pipeline component, so the comparative statics Karlin and Scarf and Morton obtained by differentiation do not follow from convexity in xxx. The paper's structure appears only in the partial sums vvv. Submodularity alone, moreover, is not preserved by the step that minimizes over the order. The shift structure of L♮-convexity is what survives the minimization over ζ\zetaζ (Lemma 2). Proving plain submodularity of fˉt\bar f_tfˉ​t​ on VVV therefore does not close the induction.

A second difficulty is the end-of-period program. Writing the next state as the minimum of a program over a constraint set that is a sublattice requires checking the order-theoretic structure of the set together with the sign pattern of every term. The equality between the program's value and the recursion's one-period cost (milestone 3) is a property of the model's own value function, not of an arbitrary L♮-convex continuation.

A third difficulty is measure-theoretic. Preservation under expectation needs integrability and measurability of d↦fˉk(v+)d\mapsto\bar f_k(v_+)d↦fˉ​k​(v+​), and these come from the model rather than from the definitions.

Formalization scope

  • Representation. States are functions Fin L → ℝ, indexed 0,…,L−10,\dots,L-10,…,L−1 as in the paper. A helper returns vlv_lvl​ for l<Ll<Ll<L and 000 at l=Ll=Ll=L. A function g(v,ζ)g(v,\zeta)g(v,ζ) is encoded on Fin (L+1) → ℝ with ζ\zetaζ last. The objective ψt\psi_tψt​ of (4) is encoded on Fin (L+2) → ℝ with coordinates (v+,v0,…,vL−1,ζ)(v_+,v_0,\dots,v_{L-1},\zeta)(v+​,v0​,…,vL−1​,ζ). The order is componentwise.
  • L♮-convexity on a domain DDD: (x,ξ)↦f(x−ξe)(x,\xi)\mapsto f(x-\xi e)(x,ξ)↦f(x−ξe) is submodular on {ξ≤0, x∈D, x−ξe∈D}\{\xi\le0,\ x\in D,\ x-\xi e\in D\}{ξ≤0, x∈D, x−ξe∈D}, with eee the all-ones vector on every coordinate. For D=VD=VD=V this is the paper's definition verbatim. This is the paper's definition, not Murota's translation-submodularity form, and it is stated on real vectors. The platform's discrete-convexity library (DiscreteConvex.LConvexFunctions.*) works on ZV\mathbb Z^VZV with values in R∪{+∞}\mathbb R\cup\{+\infty\}R∪{+∞}, a different domain and definition, and is not reused.
  • Time. Data are stationary, so the paper's fˉt\bar f_tfˉ​t​ depends on ttt only through the number of periods to go k=T+L+1−tk=T+L+1-tk=T+L+1−t, and "for all ttt" is "for all kkk". The minimum over z≥0z\ge0z≥0 is taken in every period, as printed in (1).
  • Explicit readings of the paper's phrases.
    • "min" (over ζ≤0\zeta\le0ζ≤0, over v+v_+v+​, over (a,w)(a,w)(a,w)) is an infimum over the constraint set. In the model every cost is nonnegative, so the infimum is genuine. The generic Lemma 2 assumes the values bounded below, and the generic milestone 5 assumes the continuation nonnegative on VVV.
    • "the dtd_tdt​ are independent and nonnegative": one law μ\muμ with μ(−∞,0)=0\mu(-\infty,0)=0μ(−∞,0)=0, since data are stationary.
    • "unit cost", "discount rate": c,h^,p≥0c,\hat h,p\ge0c,h^,p≥0 and 0<γ≤10<\gamma\le10<γ≤1.
    • Finite mean demand is added: without it q^0\hat q^0q^​0 is infinite.
    • "the optimal a=min⁡{d,v0−v1}a=\min\{d,v_0-v_1\}a=min{d,v0​−v1​}": stated as the equality of the infimum of program (4) with its value at v+=max⁡(v0−d,v1)v_+=\max(v_0-d,v_1)v+​=max(v0​−d,v1​).
  • Ruled out. A statement that holds because a value function is the junk constant 000 (constants are L♮-convex), plain submodularity on VVV in place of the shift condition, quantification over all of RL\mathbb R^LRL instead of VVV, and a goal about an arbitrary function assumed to satisfy the recursion. None of these is the paper's theorem; the goal is stated for the recursion itself.
  • Not in scope. "L♮-convex implies convex" for a generic function, which is false without regularity (a non-measurable additive function is L♮-convex in this sense); Lemma 3 and Corollary 5, for a follow-up mission that references Theorem 4; the smooth-case Hessian discussion; the infinite-horizon remarks.
  • Welcome contributions. Reusable lemmas on submodularity over sublattices of Rn\mathbb R^nRn (partial minimization, Topkis 2.7.6), on preservation of submodularity under integration, and on measurability of the value functions.

Selected references

  • P. Zipkin, On the structure of lost-sales inventory models, Operations Research 56(4) (2008) 937–944. https://doi.org/10.1287/opre.1070.0482
  • S. Karlin and H. Scarf, Inventory models of the Arrow–Harris–Marschak type with time lag, in Arrow, Karlin, Scarf (eds.), Studies in the Mathematical Theory of Inventory and Production, Stanford University Press, 1958.
  • T. E. Morton, Bounds on the solution of the lagged optimal inventory equation with no demand backlogging and proportional costs, SIAM Review 11(4) (1969) 572–596. https://doi.org/10.1137/1011090
  • K. Murota, Discrete Convex Analysis, SIAM, 2003. https://doi.org/10.1137/1.9780898718508
  • D. M. Topkis, Supermodularity and Complementarity, Princeton University Press, 1998.
8 thms2 active usersReviewed
🏆Completed
Operations ResearchProbability·Captain: mikedeng1

Optimal Inventory Policies for Assembly Systems Under Random Demands 2: If an Item and Its Predecessors Have Negative Discounted Echelon Holding Cost, the Minimal Cost Is Unbounded BelowResearch Paper

Motivation

Assembly systems — components purchased from outside, assembled into subassemblies, and those into an end product facing random customer demand — are the standard model of material requirements planning under uncertainty. Rosling's paper (Oper. Res. 37(4), 1989) shows that, under a cost assumption, the optimal policies of such a system are those of an equivalent series system, so that the Clark–Scarf decomposition of serial systems (Clark and Scarf, 1960) applies to assembly systems.

The cost assumption of the main results requires every echelon holding cost to be positive. In §4 Rosling replaces it by a weaker Generalized Assumption (GA), which allows some echelon holding costs to be negative, and then argues with Theorem 4 that GA "covers all cases of practical interest for a long-run analysis". Part (i) of Theorem 4 is the first step of that argument: when GA(i) fails strictly for some item, the model is degenerate, because its minimal cost is −∞-\infty−∞. This mission formalizes that statement.

Setting

There are N≥1N \ge 1N≥1 items 1,…,N1, \dots, N1,…,N; item 111 is the end item. Every item i≥2i \ge 2i≥2 has exactly one immediate successor s(i)s(i)s(i) with 1≤s(i)<i1 \le s(i) < i1≤s(i)<i, and s(1)=0s(1) = 0s(1)=0, so the items form a tree rooted at the end item. Write A(i)A(i)A(i) for the set of all successors of iii, B(i)B(i)B(i) for the set of all its predecessors, and P(i)P(i)P(i) for its immediate predecessors. Item iii has a lead time li∈Nl_i \in \mathbb Nli​∈N, and its total lead time is M0=0M_0 = 0M0​=0, Mi=li+∑k∈A(i)lkM_i = l_i + \sum_{k\in A(i)} l_kMi​=li​+∑k∈A(i)​lk​; the items are indexed so that Mi−1≤MiM_{i-1} \le M_iMi−1​≤Mi​.

Time runs in periods t=1,2,…t = 1, 2, \dotst=1,2,…. The demands ξ1,ξ2,…\xi_1, \xi_2, \dotsξ1​,ξ2​,… for the end item are independent, identically distributed, nonnegative, with a density and a finite mean λ>0\lambda > 0λ>0. In period ttt a policy chooses the echelon inventory positions after ordering Y1t,…,YNtY_{1t}, \dots, Y_{Nt}Y1t​,…,YNt​ as functions of the demands already observed. The position before ordering is Xit=Yi,t−1−ξt−1X_{it} = Y_{i,t-1} - \xi_{t-1}Xit​=Yi,t−1​−ξt−1​, and the echelon stock on hand after arrivals is Xitl=Yi,t−li−∑r=t−lit−1ξrX^l_{it} = Y_{i,t-l_i} - \sum_{r=t-l_i}^{t-1}\xi_rXitl​=Yi,t−li​​−∑r=t−li​t−1​ξr​; positions referring to periods before 111 are read off given initial data x0x^0x0. Problem P asks for a policy satisfying

Xit≤Yit≤Xktlfor all k∈P(i) and all i,t(3)X_{it} \le Y_{it} \le X^l_{kt}\qquad\text{for all } k\in P(i) \text{ and all } i,t \tag{3}Xit​≤Yit​≤Xktl​for all k∈P(i) and all i,t(3)

that minimizes

E{∑t=1∞αt−1(∑i=1NαlihiYit+αl1(p+H1)∫Y1t∞(ξ−Y1t) φ1l+1(ξ) dξ)}+constant,(2)E\Big\{\sum_{t=1}^\infty \alpha^{t-1}\Big(\sum_{i=1}^N \alpha^{l_i} h_i Y_{it} + \alpha^{l_1}(p+H_1)\int_{Y_{1t}}^\infty(\xi - Y_{1t})\,\varphi_1^{l+1}(\xi)\,d\xi\Big)\Big\} + \text{constant}, \tag{2}E{t=1∑∞​αt−1(i=1∑N​αli​hi​Yit​+αl1​(p+H1​)∫Y1t​∞​(ξ−Y1t​)φ1l+1​(ξ)dξ)}+constant,(2)

where hih_ihi​ is the echelon holding cost of item iii, ppp the backlogging cost, H1H_1H1​ the installation holding cost of the end item, α\alphaα the discount factor and φ1l+1\varphi_1^{l+1}φ1l+1​ the density of the demand over l1+1l_1 + 1l1​+1 periods.

The quantity of interest is the discounted echelon holding cost of item iii and its predecessors,

hi α−Ms(i)+∑k∈B(i)hk α−Ms(k).h_i\,\alpha^{-M_{s(i)}} + \sum_{k\in B(i)} h_k\,\alpha^{-M_{s(k)}}.hi​α−Ms(i)​+k∈B(i)∑​hk​α−Ms(k)​.

GA(i) asks it to be positive for every item.

Formalization targets

Goal: Theorem 4(i), p. 574

If for some item iii

hi α−Ms(i)+∑k∈B(i)hk α−Ms(k)<0,h_i\,\alpha^{-M_{s(i)}} + \sum_{k\in B(i)} h_k\,\alpha^{-M_{s(k)}} < 0,hi​α−Ms(i)​+k∈B(i)∑​hk​α−Ms(k)​<0,

then the minimal cost of Problem P is unbounded below: for every real CCC there is a feasible policy whose cost is a real number less than CCC.

Milestones: the proof of Theorem 4(i), p. 578

  1. The one-more-unit policy is feasible. Ordering extra units of every item kkk of the subsystem {i}∪B(i)\{i\}\cup B(i){i}∪B(i) in period Mm−Mk+1M_m - M_k + 1Mm​−Mk​+1, where MmM_mMm​ is the greatest total lead time in the subsystem, and holding them forever, preserves (3).
  2. The total cost increase. For a non-end item iii and a policy of finite cost, δ\deltaδ extra units change the cost by exactly
δ αMm−Mi αli(hi+∑k∈B(i)hk α−(Ms(k)−Ms(i)))1−α.\delta\,\alpha^{M_m - M_i}\,\frac{\alpha^{l_i}\big(h_i + \sum_{k\in B(i)} h_k\,\alpha^{-(M_{s(k)} - M_{s(i)})}\big)}{1-\alpha}.δαMm​−Mi​1−ααli​(hi​+∑k∈B(i)​hk​α−(Ms(k)​−Ms(i)​))​.

Significance

Theorem 4(i) explains why the Generalized Assumption is the natural boundary of the theory: a strict violation of GA(i) makes Problem P meaningless, since no policy is optimal and the infimum is −∞-\infty−∞. Together with parts (ii) and (iii) of Theorem 4 it reduces every case of interest to systems satisfying GA, for which Rosling's series-system results apply. The quantity in the condition is the natural "net value of stockpiling" of a subsystem, and the same exchange — buy more of a subsystem early and hold it forever — is the basic perturbation behind many optimality arguments for multi-echelon systems.

The result is proved in the paper, in a few lines. To our knowledge neither Theorem 4 nor the assembly model of Problem P has been machine-checked. A formalization adds a precise statement of what "the minimal cost is unbounded below" means for a stochastic infinite-horizon problem with an extended-real cost, and the definitions of the assembly model — product tree, total lead times, echelon positions, history-dependent policies, constraint (3) and objective (2) — which other statements of the same paper need.

Difficulty

The algebra of the cost increase is a geometric series. The work lies elsewhere. First, the one-more-unit policy must be shown feasible for every item of the subsystem in every period, including the boundary items: the successor of iii, whose constraint loosens, and predecessors with zero lead time. Second, the cost of a policy is an expectation of an infinite discounted sum whose terms have no sign; the cost increase can only be added to a cost that is finite, and the argument needs a feasible policy of finite cost to start from, which the paper takes for granted. Third, for the end item i=1i = 1i=1 the extra units also change the expected backlog term of (2), which the printed display omits, so the end item needs a separate bound.

Formalization scope

  • Periods start at Lean index k=0k = 0k=0 with k=t−1k = t - 1k=t−1; the discount weight αt−1\alpha^{t-1}αt−1 is αk\alpha^kαk, and coordinate jjj of a demand path is ξj+1\xi_{j+1}ξj+1​. Items are natural numbers 1..N1..N1..N.
  • Demand is the product law (Measure.infinitePi) of a probability measure ν\nuν on R\mathbb RR with ν((−∞,0))=0\nu((-\infty,0)) = 0ν((−∞,0))=0, ν≪\nu \llν≪ Lebesgue, ν\nuν integrable and ∫x dν>0\int x\,d\nu > 0∫xdν>0.
  • Policies are history-dependent and measurable; feasibility (3) holds almost surely.
  • Initial data xi0(s)x^0_i(s)xi0​(s), s≥1s \ge 1s≥1, the echelon position of item iii at the start of period 1 ordered sss periods ago or earlier, are assumed well formed: nonincreasing in sss, and xi0(s)≤xk0(s+lk)x^0_i(s) \le x^0_k(s + l_k)xi0​(s)≤xk0​(s+lk​) for k∈P(i)k \in P(i)k∈P(i). The paper takes this for granted; it is what makes Problem P feasible.
  • Cost is (2) without its policy-independent constant, as an extended real E[∑(αt−1ct)+]−E[∑(αt−1ct)−]E[\sum(\alpha^{t-1}c_t)^+] - E[\sum(\alpha^{t-1}c_t)^-]E[∑(αt−1ct​)+]−E[∑(αt−1ct​)−].
  • Added restriction: 0<α<10 < \alpha < 10<α<1. The page allows α=1\alpha = 1α=1, where the average cost is minimized and is defined only through a limit recipe.
  • No sign condition is imposed on hih_ihi​, ppp or H1H_1H1​; neither the Assumption nor GA is a hypothesis.

In the extended reals, ⊤−⊤=⊥\top - \top = \bot⊤−⊤=⊥: a policy whose positive and negative cost parts are both infinite gets the value −∞-\infty−∞. The goal therefore asks for policies of real cost below every bound; a formalization that only exhibits a policy of cost ⊥\bot⊥ would be trivially true and is ruled out. Milestone 2 is stated for i≥2i \ge 2i≥2, where the backlog term is unchanged.

Needed infrastructure: lower Lebesgue integrals of discounted sums under the infinite product measure, linearity of the cost under a deterministic perturbation, and the finiteness of the cost of the "never order" policy (whose decisions decrease linearly in the accumulated demand). Contributions of general lemmas on discounted costs of history-dependent policies under infinitePi are welcome and reusable.

Selected references

  • K. Rosling, Optimal Inventory Policies for Assembly Systems under Random Demands, Operations Research 37(4):565–579, 1989. https://doi.org/10.1287/opre.37.4.565
  • A. J. Clark and H. Scarf, Optimal Policies for a Multi-Echelon Inventory Problem, Management Science 6(4):475–490, 1960. https://doi.org/10.1287/mnsc.6.4.475
  • A. Federgruen and P. Zipkin, Computational Issues in an Infinite-Horizon, Multiechelon Inventory Model, Operations Research 32(4):818–836, 1984. https://doi.org/10.1287/opre.32.4.818
6 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Efficient Algorithms for Scheduling Semiconductor Burn-In Operations 3: Dynamic Program DP3 Minimizes the Number of Tardy Equal-Length Jobs on a Batch Machine with Agreeable Release and Due DatesResearch Paper

Motivation

Semiconductor burn-in tests hold several jobs in an oven at once. A production planner must decide which jobs share each oven run and in what order those runs take place. A job may become available only after earlier manufacturing steps, and a due date marks when its test should finish. The planning objective here is to minimize how many jobs finish after their due dates. Lee, Uzsoy, and Martin-Vega studied this batch scheduling problem and gave a dynamic program for the case of equal processing times and compatible release and due-date orders (Lee, Uzsoy, and Martin-Vega 1992, §4, pp. 770–771).

Setting

There are nnn jobs and one batch processing machine with capacity B≥1B\ge1B≥1. Job jjj has release time rjr_jrj​, due date djd_jdj​, and processing time pjp_jpj​. In the main problem every processing time equals a common value ppp. A batch is a nonempty set of at most BBB jobs. Its processing time is the longest processing time among its members; it begins only after all its jobs have been released and the previous batch has finished. Processing is uninterrupted. A schedule is an ordered list of disjoint batches that covers every job. Each batch starts at the earliest time allowed by these conditions.

The completion time Cj(S)C_j(S)Cj​(S) of job jjj in schedule SSS is the completion time of its batch. A job is on time when Cj(S)≤djC_j(S)\le d_jCj​(S)≤dj​ and tardy when dj<Cj(S)d_j<C_j(S)dj​<Cj​(S). Write U(S)=#{j:dj<Cj(S)}U(S)=\#\{j:d_j<C_j(S)\}U(S)=#{j:dj​<Cj​(S)} and let U∗U^*U∗ be the minimum of U(S)U(S)U(S) over all valid complete batch schedules. Tardy jobs still belong to a schedule and consume machine time. An on-time batch is one whose every member is on time.

For the structural lemmas, agreeable release times and due dates mean that ri<rjr_i<r_jri​<rj​ implies di≤djd_i\le d_jdi​≤dj​. For the dynamic program, jobs are indexed so that both rjr_jrj​ and djd_jdj​ are nondecreasing. A batch is in batch-EDD order relative to later batches when no job in it has a later due date than a job in a later batch. A batch of consecutive jobs contains exactly an index interval. These are the paper's Lemmas 4 and 5 and Definition 1 (pp. 767, 770).

Formalization targets

Structural optimal schedules

Lemma 4 asserts that some optimum has an initial list of wholly on-time batches in batch-EDD order, followed by batches containing only tardy jobs. Lemma 5 asserts that some optimum has every wholly on-time batch made of consecutive indexed jobs. These are existence statements about schedules of all jobs; neither restricts the feasible schedules over which U∗U^*U∗ is defined.

Correctness of Algorithm DP3

Let f(i,j)f(i,j)f(i,j) be the table defined by Algorithm DP3 for the first jjj jobs and a selected count iii of on-time jobs. Its boundary values are f(0,j)=0f(0,j)=0f(0,j)=0 and f(i,j)=+∞f(i,j)=+\inftyf(i,j)=+∞ for i>ji>ji>j. For 1≤i≤j1\le i\le j1≤i≤j, it takes the minimum of f(i,j−1)f(i,j-1)f(i,j−1) and the eligible transitions that append a batch of kkk jobs, 1≤k≤min⁡(B,i)1\le k\le\min(B,i)1≤k≤min(B,i). A transition uses max⁡{f(i−k,j−k),rj}+p\max\{f(i-k,j-k),r_j\}+pmax{f(i−k,j−k),rj​}+p and is eligible when that completion time does not exceed dj−k+1d_{j-k+1}dj−k+1​. The main target is

U∗=n−max⁡{i∈{0,…,n}:f(i,n)<+∞}.U^*=n-\max\{i\in\{0,\ldots,n\}:f(i,n)<+\infty\}.U∗=n−max{i∈{0,…,n}:f(i,n)<+∞}.

The maximum includes zero, which is always feasible in the table. The printed range begins at one and has no value when every job is tardy. This is the corrected boundary reading of the displayed answer on p. 771 (source).

Unequal processing times

The paper also gives a variant for jobs available at time zero, with nondecreasing processing times and due dates. Its transition replaces the release-time maximum and common ppp by f(i−k,j−k)+pjf(i-k,j-k)+p_jf(i−k,j−k)+pj​. The corresponding correctness statement is a further milestone (p. 771).

Significance

The structural results connect the optimization over arbitrary complete batch schedules to the restricted arrangements represented by the table. DP3 correctness then identifies the number of tardy jobs from finite table entries, including instances with no on-time job. The variable-time extension covers the related case where each job has its own duration but all jobs are available together.

The paper proves these results informally; this mission leaves their Lean proofs open. A complete formalization would supply reusable definitions of batch schedules, release-limited completion times, tardy-job counts, and a finite dynamic program with an explicit infinite value. The machine-checked statements and the local instance check establish the interface for that work, while the structural and correctness theorems remain solver targets.

Difficulty

The objective ranges over every valid batching and every processing order. The table examines an indexed prefix and places the last on-time batch among consecutive jobs. Establishing that the table's choices preserve the full optimum requires the existence statements in Lemmas 4 and 5. Reordering jobs is delicate because delaying a batch can change release feasibility and can make an earlier on-time job late. Equal due dates also require care: a due-date order alone need not put the latest release of a proposed batch at its last index.

Formalization scope

Jobs use Fin n, with index zero representing the paper's job 1; the table's jjj is a prefix length. Data and completion times are natural numbers, matching the paper's integer-data setting; +∞+\infty+∞ in the table is WithTop ℕ. The schedule model uses nonempty batches of cardinality at most BBB, pairwise disjointness, and complete coverage. A batch starts at the maximum of its latest release and the preceding completion time. This earliest-start convention is sufficient for minimizing the regular tardy-job objective. The empty job set is included: its empty schedule has zero tardy jobs.

The strict implication ri<rj⇒di≤djr_i<r_j\Rightarrow d_i\le d_jri​<rj​⇒di​≤dj​ makes the paper's loose “agreeable” condition precise without forcing equal due dates for tied release times. For the recurrence, both release times and due dates are nondecreasing in job index, including their ties. This ensures that rjr_jrj​ is the last batch's latest release and dj−k+1d_{j-k+1}dj−k+1​ its earliest due date. The variable-time version similarly indexes by nondecreasing processing times and due dates, so the last job gives the batch duration. The table uses a minimum over exactly the paper's range 1≤k≤min⁡(B,i)1\le k\le\min(B,i)1≤k≤min(B,i), with an empty range giving +∞+\infty+∞. Zero is included in the final maximum. Tardy jobs are scheduled in the underlying optimum; defining the optimum as an on-time subset or defining the table as that optimum would erase the two structural claims.

This mission covers correctness only. The paper's O(n2B)O(n^2B)O(n2B) running-time statement and the bisection procedure are outside the formalization because they would need a specified computational cost model. The paper's FBEDD remark for this objective is also excluded: a three-job instance contradicts it. Contributions to the open theorem proofs, schedule-existence facts, and reusable batch scheduling lemmas are welcome.

Selected references

  • C.-Y. Lee, R. Uzsoy, and L. A. Martin-Vega, Efficient Algorithms for Scheduling Semiconductor Burn-In Operations, Operations Research 40(4), 1992, pp. 764–775. DOI: 10.1287/opre.40.4.764.
9 thms2 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Economic Lot Sizing: An O(n log n) Algorithm That Runs in Linear Time in the Wagner-Whitin Case 2: The Greedy Forward Dual Solution Is Optimal and Its Value Is the Lot-Sizing CostResearch Paper

Motivation

Economic lot sizing asks when to produce goods across a finite planning horizon when demand in each period is known. Producing in a period incurs a fixed setup charge and a marginal cost per unit, while goods may be produced before the period in which they are needed. Such a decision has to balance paying another setup charge against producing more units earlier. The model is a standard setting for studying how dynamic programming and linear optimization describe the same planning decision. Wagelmans, Van Hoesel and Kolen study faster algorithms for this model and, in Section 4, connect the optimal lot-sizing cost to a greedy solution of a dual program Wagelmans et al. (1992).

The dual connection is useful in its own right. It supplies a certificate for the cost returned by the forward dynamic program: a feasible dual vector attains that cost. The paper allows demand to vanish in some periods, which makes the dual values at those periods free and forces care in defining the dynamic program. The mission targets precisely that case.

Setting

There are periods 1,…,n1,\ldots,n1,…,n. Demand dtd_tdt​ and setup cost fif_ifi​ are nonnegative for the periods in the horizon. The marginal production cost cic_ici​ is any real number. Write di,j=∑t=ijdtd_{i,j}=\sum_{t=i}^j d_tdi,j​=∑t=ij​dt​ for cumulative demand from iii through jjj. Values at period zero and beyond the horizon are bookkeeping only; every optimization constraint concerns periods 1,…,n1,\ldots,n1,…,n.

The forward lot-sizing cost F(j)F(j)F(j) describes the least cost of serving periods 1,…,j1,\ldots,j1,…,j under the zero-inventory property cited by the paper. Its recursion starts with F(0)=0F(0)=0F(0)=0. If dj=0d_j=0dj​=0, no new production is needed and F(j)=F(j−1)F(j)=F(j-1)F(j)=F(j−1). If dj>0d_j>0dj​>0, the last production setup may occur at some i≤ji\le ji≤j, giving

F(j)=min⁡1≤i≤j(fi+cidi,j+F(i−1)).F(j)=\min_{1\le i\le j}\bigl(f_i+c_i d_{i,j}+F(i-1)\bigr).F(j)=1≤i≤jmin​(fi​+ci​di,j​+F(i−1)).

This piecewise definition matters even when only one period has zero demand. Taking the displayed minimum at dj=0d_j=0dj​=0 would charge a setup that need not occur.

Program D′ chooses free real values v1,…,vnv_1,\ldots,v_nv1​,…,vn​ to maximize ∑t=1ndtvt\sum_{t=1}^n d_tv_t∑t=1n​dt​vt​, subject to

∑t=indtmax⁡{0,vt−ci}≤fi(1≤i≤n).\sum_{t=i}^n d_t\max\{0,v_t-c_i\}\le f_i \qquad(1\le i\le n).t=i∑n​dt​max{0,vt​−ci​}≤fi​(1≤i≤n).

“Free” means there is no nonnegativity constraint on vtv_tvt​. The paper obtains D′ from the dual of the linear relaxation of its simple plant location formulation, using the variables of Formulation III Wagelmans et al., pp. S147, S152–S153. The mission takes D′ as the defined optimization problem.

The greedy forward rule visits periods in increasing order. At a period with dj>0d_j>0dj​>0, the chosen value is the minimum of the upper bounds left by the constraints indexed i≤ji\le ji≤j:

vj=min⁡1≤i≤j(ci+fi−∑t=ij−1dtmax⁡{0,vt−ci}dj).v_j=\min_{1\le i\le j} \left(c_i+\frac{f_i-\sum_{t=i}^{j-1}d_t\max\{0,v_t-c_i\}}{d_j}\right).vj​=1≤i≤jmin​(ci​+dj​fi​−∑t=ij−1​dt​max{0,vt​−ci​}​).

When dj=0d_j=0dj​=0, the rule places no restriction on vjv_jvj​. This matches the paper's statement that it may be assigned an arbitrary value. One concrete recursive vector in the definitions sets each such value to zero, but the goal covers every assignment.

Formalization targets

The goal says that every vector satisfying the greedy rule is feasible for D′, agrees with the dynamic-programming cost at every prefix, and is optimal among all feasible D′ vectors:

∑t=1jdtvt=F(j)(1≤j≤n),∑t=1ndtut≤∑t=1ndtvtfor every feasible u.\sum_{t=1}^j d_tv_t=F(j)\quad(1\le j\le n), \qquad \sum_{t=1}^n d_tu_t\le\sum_{t=1}^n d_tv_t \quad\text{for every feasible }u.t=1∑j​dt​vt​=F(j)(1≤j≤n),t=1∑n​dt​ut​≤t=1∑n​dt​vt​for every feasible u.

The milestone path follows the Section 4 statements: feasibility of the greedy vector; decreasing greedy values across positive-demand periods; the prefix upper bound for any feasible dual vector; and Equation (2), which expresses a greedy prefix value using a minimizing production period. Equation (2) is stated with the induction hypothesis that appears immediately before it in the paper. The goal combines these claims without treating the desired value identity as a hypothesis.

Significance

The result identifies a dual certificate whose value matches the forward lot-sizing cost. It also explains why a greedy forward assignment can solve D′ despite each constraint linking the current value with all later periods. The full-horizon identity recovers the cost F(n)F(n)F(n), and the comparison with every feasible vector makes the word “optimal” precise. The paper additionally says that this dual computation directly provides an optimal primal solution; this mission does not encode that reconstruction because it would require the primal formulation and its correspondence to FFF Wagelmans et al., p. S153.

A formal proof would provide a reusable finite-horizon certificate theorem for this dual formulation and a careful treatment of empty and zero-demand prefixes. The paper's result is already proved mathematically. The Lean files in this proposal state the goal and its milestones; their theorem proofs remain to be supplied by solvers. Related platform goals about the convex hull of other lot-sizing formulations and the Federgruen–Tzur forward algorithm concern different objects, so they are credited as neighboring work rather than imported as this theorem.

Difficulty

A current greedy value is limited by every earlier production index, and feasibility must still hold for the entire horizon, not merely for the constraints truncated at the current period. Equality with F(j)F(j)F(j) also has to survive periods with zero demand, where the dual coordinate is unrestricted but its weighted contribution vanishes. The forward recurrence has a separate branch at exactly those periods. A formulation that assumes every demand is strictly positive would avoid the delicate case and would miss a feature the authors explicitly retain.

Formalization scope

Lean represents the horizon by natural-number indices 1,…,n1,\ldots,n1,…,n and the demand, setup, marginal-cost and dual sequences by functions N→R\mathbb N\to\mathbb RN→R. Finite sums use closed intervals; the sum before period jjj uses [i,j)[i,j)[i,j), so it is empty when i=ji=ji=j. Minima are over the nonempty finite set {1,…,j}\{1,\ldots,j\}{1,…,j}, only when j≥1j\ge1j≥1. The horizon n=0n=0n=0 has empty sums and no constraints. The cost and dual values are real, with no sign condition on cic_ici​ or viv_ivi​.

Several informal phrases are made explicit. “The solution is feasible” means every D′ constraint through nnn holds. “Optimal” includes feasibility, every prefix identity, and comparison with every feasible dual vector. “Can be given an arbitrary value” is represented by no greedy-rule condition at zero demand; the theorem quantifies over all vectors that satisfy the positive-demand conditions. The paper states monotonicity for consecutive nonzero-demand periods; the milestone uses any two positive-demand periods, skipping zero-demand positions so it holds for every choice of their dual values. The weak-duality milestone spells out the paper's reference to “duality and the structure of D′” as an inequality for each feasible vector and prefix.

The identification of FFF with the optimum of the primal lot-sizing model relies on the zero-inventory property cited by the authors and is not separately formalized. Neither the equivalence of Program D and D′ nor the recovery of a primal production plan is an item here. The paper's running-time claims, including O(n2)O(n^2)O(n2) for the greedy forward algorithm and O(nlog⁡n)O(n\log n)O(nlogn) for its backward algorithm, are outside the scope: the paper does not fix a machine model or constants for them. A definition of FFF as the optimum of D′ would make the value identity circular; the proposal defines it by the paper's forward recursion instead. The backward algorithm of pp. S153–S155 belongs to a separate development.

Selected references

  • A. Wagelmans, S. Van Hoesel and A. Kolen, Economic Lot Sizing: An O(n log n) Algorithm That Runs in Linear Time in the Wagner-Whitin Case, Operations Research 40, Supplement 1, 1992, S145–S156. DOI
7 thms2 active usersReviewed
🏆Completed
Bandit AlgorithmsOperations ResearchProbability·Captain: mikedeng1

Multi-armed Bandits and the Gittins Index: With Per-Project Horizons the Maximal M-Process Reward Is K − ∫_M^K ∏ᵢ ∂φᵢ/∂m dm and the Gittins Index Rule Attains ItResearch Paper

Motivation

The multi-armed bandit problem asks how to allocate effort sequentially among NNN independent projects, only one of which can be worked on at a time, so as to maximise expected total discounted reward. It is the model behind research planning, clinical-trial allocation and job scheduling, and it is the prototypical example of a Markov decision problem whose state space grows exponentially in NNN yet whose optimal policy is simple. Gittins and Jones (1974) and Gittins (1979) showed that each project can be given an index computed from that project alone, and that it is optimal always to engage a project of largest index. P. Whittle's 1980 paper gave a short proof of this theorem by attaching a retirement option to the process, and extended it to projects with individual horizons.

Timeline:

  • 1974–1979. Gittins and Jones introduce the dynamic allocation index; Gittins (1979, JRSS B) proves its optimality by an interchange argument.
  • 1980. Whittle (JRSS B 42, 143–149) introduces the MMM-process, proves the finite-horizon formula (Theorem 1 below), derives the infinite-horizon identity (12), and extends the result to superprocesses (Theorem 2).
  • 1980s–2010s. Weber (1992) and Tsitsiklis (1994) give further short proofs; the index theory is collected in Gittins, Glazebrook and Weber, Multi-armed Bandit Allocation Indices (Wiley, 2011).

Setting

There are NNN projects. Project iii has a state xix_ixi​ in a measurable space XiX_iXi​. Engaging project iii in state xix_ixi​ earns the expected reward Ri(xi)R_i(x_i)Ri​(xi​) and moves its state by a Markov kernel PiP_iPi​; the other projects' states do not change. Rewards are discounted by β\betaβ, 0≤β<10 \le \beta < 10≤β<1, and bounded:

k(1−β)≤Ri(xi)≤K(1−β).(1)k(1-\beta) \le R_i(x_i) \le K(1-\beta). \qquad (1)k(1−β)≤Ri​(xi​)≤K(1−β).(1)

The operator Liθ(x)=Ri(xi)+β E[θ(x(t+1))∣x(t)=x,i(t)=i]L_i\theta(x) = R_i(x_i) + \beta\,\mathbb E[\theta(x(t+1)) \mid x(t) = x, i(t) = i]Li​θ(x)=Ri​(xi​)+βE[θ(x(t+1))∣x(t)=x,i(t)=i] evaluates engaging project iii for one step.

In the MMM-process one may also retire at any time for the reward MMM. Its value F(x,M)F(x, M)F(x,M) solves F=max⁡(M,max⁡iLiF)F = \max(M, \max_i L_i F)F=max(M,maxi​Li​F) (4), and the value φi(xi,M)\varphi_i(x_i, M)φi​(xi​,M) of the single-project MMM-process solves φi=max⁡(M,Liφi)\varphi_i = \max(M, L_i\varphi_i)φi​=max(M,Li​φi​) (9).

With per-project horizons, project iii may be operated at most sis_isi​ more times. A project with si>0s_i > 0si​>0 is active, and DisD_i sDi​s lowers sis_isi​ by one. The single-project value φi(xi,si,M)\varphi_i(x_i, s_i, M)φi​(xi​,si​,M) satisfies φi(xi,0,M)=M\varphi_i(x_i, 0, M) = Mφi​(xi​,0,M)=M and

φi(xi,si,M)=max⁡[M, Ri(xi)+β E φi(xi(t+1),si−1,M)].(14)\varphi_i(x_i, s_i, M) = \max\big[M,\ R_i(x_i) + \beta\,\mathbb E\,\varphi_i(x_i(t+1), s_i - 1, M)\big]. \qquad (14)φi​(xi​,si​,M)=max[M, Ri​(xi​)+βEφi​(xi​(t+1),si​−1,M)].(14)

F(x,s,M)F(x, s, M)F(x,s,M) is the maximal expected reward of the MMM-process under these limits. The index Mi(xi,si)M_i(x_i, s_i)Mi​(xi​,si​) is the infimal MMM with φi(xi,si,M)=M\varphi_i(x_i, s_i, M) = Mφi​(xi​,si​,M)=M, and vi=(1−β)Miv_i = (1-\beta)M_ivi​=(1−β)Mi​ is the Gittins index. Finally

F^(x,s,M)=K−∫MK∏i∂φi(xi,si,m)∂m dm.(13)\hat F(x, s, M) = K - \int_M^K \prod_i \frac{\partial \varphi_i(x_i, s_i, m)}{\partial m}\, dm. \qquad (13)F^(x,s,M)=K−∫MK​i∏​∂m∂φi​(xi​,si​,m)​dm.(13)

Formalization targets

Goal: Theorem 1 (p. 147)

F(x,s,M)=F^(x,s,M),F(x, s, M) = \hat F(x, s, M),F(x,s,M)=F^(x,s,M),

and FFF is attained by the policy that, at (x,s)(x, s)(x,s), engages a project iii maximising Mi(xi,si)M_i(x_i, s_i)Mi​(xi​,si​) when this maximum exceeds MMM, and otherwise retires. The Lean goal has three conjuncts: F=F^F = \hat FF=F^, every measurable index rule (any tie-breaking) earns FFF, and no feasible measurable Markov policy earns more than FFF.

Milestones (the steps of the proof)

  • Lemma 1 (p. 144): F(x,M)F(x, M)F(x,M) is non-decreasing and convex in MMM, equals Φ(x)\Phi(x)Φ(x) for M≤kM \le kM≤k and MMM for M≥KM \ge KM≥K.
  • (18) (p. 147): Pi(x,s,M)=∏j≠i∂φj/∂MP_i(x,s,M) = \prod_{j \ne i}\partial\varphi_j/\partial MPi​(x,s,M)=∏j=i​∂φj​/∂M is a distribution function in MMM, equal to 111 for M≥M(i)=max⁡j≠iMjM \ge M_{(i)} = \max_{j\ne i} M_jM≥M(i)​=maxj=i​Mj​.
  • (19) (p. 147): F^=φiPi+∫M∞φi dmPi\hat F = \varphi_i P_i + \int_M^\infty \varphi_i\, d_m P_iF^=φi​Pi​+∫M∞​φi​dm​Pi​.
  • (21) (p. 148): F^≥LiF^\hat F \ge L_i\hat FF^≥Li​F^, with equality if Mi=max⁡jMj≥MM_i = \max_j M_j \ge MMi​=maxj​Mj​≥M.
  • Retirement case (p. 148): if max⁡jMj≤M\max_j M_j \le Mmaxj​Mj​≤M then F^=M\hat F = MF^=M.
  • (16) (p. 147): F^=max⁡(M,max⁡iLiF^)\hat F = \max(M, \max_i L_i\hat F)F^=max(M,maxi​Li​F^) and F^(x,0,M)=M\hat F(x, 0, M) = MF^(x,0,M)=M.

Further item

  • Infinite horizon (p. 148, formula (12) of p. 146): F(x,M)=K−∫MK∏i∂φi(xi,m)/∂m dmF(x, M) = K - \int_M^K \prod_i \partial\varphi_i(x_i, m)/\partial m\, dmF(x,M)=K−∫MK​∏i​∂φi​(xi​,m)/∂mdm, with the index rule optimal.

Significance

Theorem 1 reduces an NNN-project problem, whose state space is a product, to NNN one-dimensional retirement problems. The formula (13) shows more than optimality of the index rule: the derivative of the multi-project value in MMM is the product of the single-project derivatives, so the multi-project value is computable from the projects separately. The finite-horizon version gives an inductive argument that avoids the interchange arguments of earlier proofs, and the infinite-horizon identity (12) follows from it.

The result is classical and proved. What this mission adds is a machine-checked version in a generality not yet on the platform: heterogeneous projects (each with its own kernel and reward on its own measurable space), a retirement option, and per-project horizons. The platform already has a proved index theorem for identical arms sharing one kernel and reward without retirement, BanditAlgorithm.gittins_index_theorem (Lattimore–Szepesvári, Theorem 35.9), single-arm retirement values in charge form (GittinsFiniteRetirementValue), and open Beta–Bernoulli special cases from Bäuerle–Rieder (MDPFinance.InfiniteHorizonApplications.proposition_7_6_7, proposition_7_6_9, theorem_7_6_10). None of these states Theorem 1, formula (13) or formula (12).

Difficulty

The obvious approach, value iteration on the product state space, gives existence of an optimal policy but says nothing about its structure. The content of Theorem 1 lies in the identity of a multi-dimensional value with an integral of a product of one-dimensional derivatives. Verifying it requires differentiating single-project values in MMM (they are convex, but have a kink exactly at the index, where the choice of one-sided derivative matters), an integration by parts against a Stieltjes measure in MMM, and an exchange of the expectation over the next state with the MMM-integral. The exhausted projects (si=0s_i = 0si​=0) and the boundary M=MiM = M_iM=Mi​ need separate care in every step.

Formalization scope

  • Projects are indexed by Fin N (0-based; the paper uses 1,…,N1, \dots, N1,…,N). State spaces are arbitrary measurable spaces; no finiteness or countability is assumed. Kernels are Markov, rewards measurable and bounded as in (1), and 0≤β<10 \le \beta < 10≤β<1 (β = 0 is allowed). kkk and KKK are any constants satisfying (1).
  • Budgets are s : Fin N → ℕ; DisD_i sDi​s is Function.update s i (s i - 1) and is only applied to active projects.
  • F(x,s,M)F(x, s, M)F(x,s,M), the "maximal reward", is the backward-induction value: F(x,0,M)=MF(x, 0, M) = MF(x,0,M)=M and F=max⁡(M,max⁡i activeLiF)F = \max(M, \max_{i\ \text{active}} L_iF)F=max(M,maxi active​Li​F), defined by recursion on ∑isi\sum_i s_i∑i​si​. It is not defined through F^\hat FF^, the index, or a policy. φi(xi,si,M)\varphi_i(x_i, s_i, M)φi​(xi​,si​,M) is defined by (14) with φi(xi,0,M)=M\varphi_i(x_i, 0, M) = Mφi​(xi​,0,M)=M.
  • ∂/∂m\partial/\partial m∂/∂m is the right derivative. Since the φi\varphi_iφi​ are convex in mmm, this changes (13) at no point, and it makes (18) hold at the kink M=M(i)M = M_{(i)}M=M(i)​.
  • The index of an exhausted project is the paper's −∞-\infty−∞. In Lean index takes the junk value 0 there; every use (the index rule, M(i)M_{(i)}M(i)​, max⁡jMj\max_j M_jmaxj​Mj​) ranges over active projects only.
  • Policies are Markov in (x,s,M)(x, s, M)(x,s,M), valued in Option (Fin N) (none = retire), feasible (they engage only active projects) and measurable (each decision set is measurable), so that their expected rewards are well defined. The index rule allows arbitrary tie-breaking; the goal quantifies over every such rule.
  • Infinite-horizon values (Lemma 1, the further item) are any bounded measurable solutions of (2), (4), (9); such solutions exist and are unique by the contraction property.
  • (19) uses the Stieltjes measure of any monotone right-continuous function agreeing with PiP_iPi​, and integrates over m>Mm > Mm>M.
  • Trivializing formalizations are excluded: FFF is not F^\hat FF^ by definition, exhausted projects cannot be engaged by the index rule, and maxima over iii are seeded with MMM rather than taken as a junk real supremum.

A complete development needs measurability of the recursive values, convexity of φi\varphi_iφi​ in MMM with one-sided derivatives, Lebesgue–Stieltjes integration by parts, and Fubini for kernels. Convexity of finite-horizon retirement values and the integration-by-parts identity are reusable beyond this mission. Contributions to any milestone, and sorry-free lemmas on these ingredients, are welcome.

Selected references

  • P. Whittle, Multi-armed Bandits and the Gittins Index, J. R. Statist. Soc. B 42(2), 143–149, 1980. https://doi.org/10.1111/j.2517-6161.1980.tb01111.x
  • J. C. Gittins, Bandit Processes and Dynamic Allocation Indices, J. R. Statist. Soc. B 41(2), 148–177, 1979. https://doi.org/10.1111/j.2517-6161.1979.tb01068.x
  • D. Blackwell, Discounted Dynamic Programming, Ann. Math. Statist. 36(1), 226–235, 1965. https://doi.org/10.1214/aoms/1177700285
  • J. Gittins, K. Glazebrook, R. Weber, Multi-armed Bandit Allocation Indices, 2nd ed., Wiley, 2011. https://doi.org/10.1002/9780470980033
  • T. Lattimore, Cs. Szepesvári, Bandit Algorithms, Cambridge University Press, 2020, Chapter 35. https://doi.org/10.1017/9781108571401
8 thms2 active usersReviewed
🏆Completed
Markov ChainOperations Research·Captain: mikedeng1

Discrete Dynamic Programming with Sensitive Discount Optimality Criteria 1: If Every Stationary Policy Is Transient, Some Stationary Policy Maximizes the Expected Total Reward over All PoliciesResearch Paper

Motivation

A finite dynamic program with total reward is the basic model of sequential decision making without discounting: a system moves among finitely many states, a decision maker picks an action in each state, collects a reward, and the system moves on or stops. The quantity of interest is the expected total reward of a policy, summed over the whole (possibly infinite) horizon, and the question is whether a simple policy — one that uses the same decision rule at every step — is as good as any other.

For discounted or strictly substochastic models the answer has long been known. Shapley (1953) showed by successive approximations that, when every transition matrix has row sums strictly below one, some stationary policy maximizes the total reward among stationary policies; Howard (1960) gave the policy-improvement method for finding one; Blackwell (1962) showed that the maximum over all policies is attained among stationary ones. All of these rest on a contraction hypothesis ∥P(f)∥<1\|P(f)\|<1∥P(f)∥<1.

Veinott's 1969 paper (DOI 10.1214/aoms/1177697379), best known for its sensitive discount optimality criteria, opens in §2 by proving these classical results under the much weaker hypothesis that each stationary policy is transient, and without requiring the transition weights to be substochastic at all. Partial results in this direction were due to Eaton and Zadeh, Derman, and Denardo. The total-reward model without a contraction assumption covers stopping problems, shortest-path type problems and models in which "transition weights" are not probabilities (growth factors, populations), which is why the generalized model is of independent interest.

Setting

There are S≥1S\ge 1S≥1 states 1,…,S1,\dots,S1,…,S. In state sss a finite nonempty set AsA_sAs​ of actions is available; taking action aaa earns the real reward r(s,a)r(s,a)r(s,a) and assigns the transition weight p(t∣s,a)≥0p(t\mid s,a)\ge 0p(t∣s,a)≥0 to each state ttt. No bound on ∑tp(t∣s,a)\sum_t p(t\mid s,a)∑t​p(t∣s,a) is assumed. The set of decision rules is F=×s=1SAsF=\times_{s=1}^S A_sF=×s=1S​As​; for f∈Ff\in Ff∈F, r(f)r(f)r(f) is the vector (r(s,f(s)))s(r(s,f(s)))_s(r(s,f(s)))s​ and P(f)P(f)P(f) the matrix (p(t∣s,f(s)))s,t(p(t\mid s,f(s)))_{s,t}(p(t∣s,f(s)))s,t​.

A policy is a sequence π=(f1,f2,… )\pi=(f_1,f_2,\dots)π=(f1​,f2​,…) of decision rules. The policy f∞=(f,f,… )f^\infty=(f,f,\dots)f∞=(f,f,…) is stationary; (g,π)=(g,f1,f2,… )(g,\pi)=(g,f_1,f_2,\dots)(g,π)=(g,f1​,f2​,…) uses ggg first and then follows π\piπ; Nπ{}^N\piNπ repeats the first NNN rules of π\piπ forever and is called periodic. Let P0(π)=IP^0(\pi)=IP0(π)=I and PN(π)=P(f1)⋯P(fN)P^N(\pi)=P(f_1)\cdots P(f_N)PN(π)=P(f1​)⋯P(fN​). The policy π\piπ is transient if ∑N≥0PN(π)\sum_{N\ge0}P^N(\pi)∑N≥0​PN(π) converges, and then its vector of total returns is

V(π)=∑N=0∞PN(π) r(fN+1).V(\pi)=\sum_{N=0}^\infty P^N(\pi)\,r(f_{N+1}).V(π)=N=0∑∞​PN(π)r(fN+1​).

The one-step comparison v(g,π∗)=V(g,π∗)−V(π∗)v(g,\pi^*)=V(g,\pi^*)-V(\pi^*)v(g,π∗)=V(g,π∗)−V(π∗) measures the gain from deviating to ggg for one step. Vectors are compared coordinatewise, and x>yx>yx>y means x≥yx\ge yx≥y, x≠yx\ne yx=y. For a matrix BBB, ∥B∥=max⁡i∑j∣bij∣\|B\|=\max_i\sum_j|b_{ij}|∥B∥=maxi​∑j​∣bij​∣ and ∣σ(B)∣|\sigma(B)|∣σ(B)∣ is its spectral radius. Finally V∗=max⁡fV(f∞)V^*=\max_f V(f^\infty)V∗=maxf​V(f∞) and ℜV=max⁡g[r(g)+P(g)V]\Re V=\max_g[r(g)+P(g)V]ℜV=maxg​[r(g)+P(g)V], both coordinatewise.

Formalization targets

Goal: Corollary 6

If every stationary policy is transient, there is f∈Ff\in Ff∈F with

V(π)≤V(f∞)for every policy π.V(\pi)\le V(f^\infty)\qquad\text{for every policy }\pi.V(π)≤V(f∞)for every policy π.

The hypothesis concerns only the finitely many stationary policies; the conclusion compares against every policy, stationary or not.

Milestones

  1. Lemma 1. For transient π=(gi)\pi=(g_i)π=(gi​) and π∗\pi^*π∗: V(π)−V(π∗)=∑NPN(π) v(gN+1,π∗)V(\pi)-V(\pi^*)=\sum_N P^N(\pi)\,v(g_{N+1},\pi^*)V(π)−V(π∗)=∑N​PN(π)v(gN+1​,π∗), and V(g∞)−V(π∗)=[I−P(g)]−1v(g,π∗)V(g^\infty)-V(\pi^*)=[I-P(g)]^{-1}v(g,\pi^*)V(g∞)−V(π∗)=[I−P(g)]−1v(g,π∗).
  2. Lemma 2. If every stationary policy is transient and f∈Ff\in Ff∈F: either v(g,f∞)>0v(g,f^\infty)>0v(g,f∞)>0 for some ggg, and then V(g∞)>V(f∞)V(g^\infty)>V(f^\infty)V(g∞)>V(f∞), or v(g,f∞)≤0v(g,f^\infty)\le0v(g,f∞)≤0 for all ggg, which holds iff f∞f^\inftyf∞ is best among stationary policies.
  3. Corollary 1. If every stationary policy is transient, some stationary policy maximizes VVV over the stationary policies.
  4. Corollary 2. Under the same hypothesis, V∗V^*V∗ is the unique fixed point of ℜ\Reℜ.
  5. Lemma 3 (Hoffman). For every ε>0\varepsilon>0ε>0 and every program there is a positively similar program with max⁡g∥P~(g)∥<max⁡g∣σ(P(g))∣+ε\max_g\|\tilde P(g)\|<\max_g|\sigma(P(g))|+\varepsilonmaxg​∥P~(g)∥<maxg​∣σ(P(g))∣+ε.
  6. Corollary 4, read with "every" and with "some": stationary, periodic and arbitrary policies are transient together, and this is equivalent to ∥PN(π)∥<1\|P^N(\pi)\|<1∥PN(π)∥<1 for some N≥1N\ge1N≥1; with ∥P(g)∥≤1\|P(g)\|\le1∥P(g)∥≤1 also to ∥PS(π)∥<1\|P^S(\pi)\|<1∥PS(π)∥<1.
  7. Theorem 1. If every stationary policy is transient and π∗\pi^*π∗ is any policy: v(g,π∗)>0v(g,\pi^*)>0v(g,π∗)>0 implies V(g∞)>V(π∗)V(g^\infty)>V(\pi^*)V(g∞)>V(π∗), and v(⋅,π∗)≤0v(\cdot,\pi^*)\le0v(⋅,π∗)≤0 iff V(π)≤V(π∗)V(\pi)\le V(\pi^*)V(π)≤V(π∗) for all π\piπ.

Significance

Corollary 6 is the existence half of the theory of total-reward Markov decision processes: it says that the search for an optimal policy can be restricted to the finite set of stationary policies, and, together with Corollary 2 and Theorem 1, that such a policy is characterized by the optimality equation ℜV=V\Re V=VℜV=V and by the absence of one-step improvements. Corollary 4, which the paper's introduction singles out as the section's main new result, shows that transience of the finitely many stationary policies already forces transience of every policy, uniformly; this is what makes V(π)V(\pi)V(π) well defined for all policies. Hoffman's Lemma 3 converts transience into a contraction in a rescaled norm, the device behind geometric convergence of value iteration (Corollary 3 of the paper).

On the formal side, Mathlib has matrices, summability and spectral radii but no total-reward decision model. These results are proved in the 1969 paper and are standard in the textbook literature on Markov decision processes; none of them has a machine-checked proof that we know of. Related platform items concern other models: the stochastic shortest path results of Bertsekas and Tsitsiklis (a cost model with a termination state, stochastic rows and an infinite-cost assumption on improper policies) and Blackwell's discounted model; neither covers nonnegative, non-substochastic weights.

Difficulty

Without a contraction, the standard argument — ℜ\Reℜ is a contraction, so it has a unique fixed point attained by a stationary policy — has nothing to start from: ∥P(g)∥\|P(g)\|∥P(g)∥ may exceed one for every ggg, and the transition weights need not be probabilities, so no probabilistic coupling or stopping-time argument applies directly. Transience of each stationary policy is a statement about finitely many matrix powers P(g)NP(g)^NP(g)N, whereas the goal concerns infinite products of different matrices P(f1)P(f2)⋯P(f_1)P(f_2)\cdotsP(f1​)P(f2​)⋯, whose behaviour is not controlled by the spectral radii of the factors in general. Passing from the stationary policies to all policies is the step where the obvious argument fails.

Formalization scope

The Lean development fixes these conventions.

  • States are a nonempty finite type St; actions are a family of nonempty finite types A : St → Type, so FFF is the dependent function type (s : St) → A s, not a common action set.
  • A program is a structure Program St A with real rewards and nonnegative weights; no row-sum bound is part of the structure. Only 5° of Corollary 4 assumes ∥P(g)∥≤1\|P(g)\|\le1∥P(g)∥≤1.
  • Policies are deterministic Markov sequences ℕ → F, indexed from 000: π 0 is f1f_1f1​. "All policies" means all such sequences.
  • Transience is Summable of N↦PN(π)N\mapsto P^N(\pi)N↦PN(π) in the entrywise topology. VVV is a tsum; it is the genuine series exactly for transient policies.
  • >>> on vectors is written out as ≥\ge≥ and ≠\ne=; ∥⋅∥\|\cdot\|∥⋅∥ is the maximum absolute row sum, defined explicitly; ∣σ(⋅)∣|\sigma(\cdot)|∣σ(⋅)∣ is Mathlib's spectralRadius ℂ of the complexified matrix, valued in [0,∞][0,\infty][0,∞].
  • V∗V^*V∗ and ℜ\Reℜ are coordinatewise Finset.sup' over the finite set FFF.

A trivializing formalization is ruled out: the goal and Theorem 1 do not assume the competing policies transient (that would hide Corollary 4 inside the hypothesis), and since a non-summable tsum is 000, no statement compares VVV of a policy whose transience is not either assumed or implied by the hypotheses. The hypothesis "every stationary policy is transient" is satisfiable (for instance when all weights are zero) and is not implied by any row-sum bound.

A complete development needs Neumann series for nonnegative matrices, the Perron–Frobenius-type fact that a nonnegative matrix with spectral radius below one has a nonnegative (I−B)−1=∑BN(I-B)^{-1}=\sum B^N(I−B)−1=∑BN, and finite-dimensional spectral theory relating ∣σ(B)∣<1|\sigma(B)|<1∣σ(B)∣<1 to BN→0B^N\to0BN→0. These are reusable well beyond this mission; contributions of such lemmas, and of proofs of the milestones in any order, are welcome.

Selected references

  • A. F. Veinott, Jr., Discrete dynamic programming with sensitive discount optimality criteria, Ann. Math. Statist. 40(5):1635–1660, 1969. https://doi.org/10.1214/aoms/1177697379
  • D. Blackwell, Discrete dynamic programming, Ann. Math. Statist. 33(2):719–726, 1962. https://doi.org/10.1214/aoms/1177704593
  • L. S. Shapley, Stochastic games, Proc. Nat. Acad. Sci. 39(10):1095–1100, 1953. https://doi.org/10.1073/pnas.39.10.1095
  • R. A. Howard, Dynamic Programming and Markov Processes, MIT Press, 1960.
  • E. V. Denardo, Contraction mappings in the theory underlying dynamic programming, SIAM Review 9(2):165–177, 1967. https://doi.org/10.1137/1009030
  • C. Derman, On sequential decisions and Markov chains, Management Sci. 9(1):16–24, 1962. https://doi.org/10.1287/mnsc.9.1.16
12 thms2 active usersReviewed
🏆Completed
Markov ChainOperations 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
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Efficient Algorithms for Scheduling Semiconductor Burn-In Operations 1: Dynamic Program DP1 Finds a Minimum-Makespan On-Time Batch Schedule of Equal-Length Jobs with Agreeable Release and Due DatesResearch Paper

Motivation

Burn-in is the final testing stage of semiconductor manufacturing: finished integrated circuits are loaded on boards and held in an oven at high temperature for a prescribed minimum time, so that weak devices fail before shipment. An oven holds many boards at once, a load cannot be interrupted, and a board may stay in the oven longer than its specified time but never shorter. Because burn-in times are long compared to the other test operations, the ovens are frequently the bottleneck of the test facility, and the order in which lots enter them determines whether customer due dates are met.

Lee, Uzsoy and Martin-Vega (Operations Research 40(4), 1992) modelled an oven as a batch processing machine and gave polynomial algorithms for several due-date objectives. This mission covers the first of them: one machine, jobs with release times and a common processing time, and the question whether every job can be completed by its due date. Ikura and Gimple (Operations Research Letters 5(2), 1986) had already given an O(n2)O(n^2)O(n2) algorithm for this feasibility question when release times and due dates are agreeable; the paper replaces it by a simpler dynamic program, DP1, and uses DP1 with a bisection search to minimize the maximum tardiness.

Setting

There are nnn jobs, indexed 1,…,n1, \dots, n1,…,n. Job iii has a release time rir_iri​ (it cannot be processed earlier), a due date did_idi​, and the common processing time ppp; all data are natural numbers. One machine processes up to B≥1B \ge 1B≥1 jobs simultaneously.

A batch schedule of a set JJJ of jobs is a sequence of batches P1,…,PmP_1, \dots, P_mP1​,…,Pm​: nonempty, pairwise disjoint sets of at most BBB jobs whose union is JJJ, processed in this order. A batch cannot be interrupted, and no job joins it once it has started. It starts as soon as the previous batch is finished and all its jobs are released, and it takes time ppp:

C(Pk)=max⁡{r(Pk), C(Pk−1)}+p,r(P)=max⁡{ri:i∈P},C(P0)=0.C(P_k) = \max\{r(P_k),\, C(P_{k-1})\} + p,\qquad r(P) = \max\{r_i : i \in P\},\qquad C(P_0) = 0 .C(Pk​)=max{r(Pk​),C(Pk−1​)}+p,r(P)=max{ri​:i∈P},C(P0​)=0.

Job iii completes at Ci=C(Pk)C_i = C(P_k)Ci​=C(Pk​) for the batch Pk∋iP_k \ni iPk​∋i; the makespan is Cmax⁡=C(Pm)C_{\max} = C(P_m)Cmax​=C(Pm​). A schedule is feasible (has Tmax⁡=0T_{\max} = 0Tmax​=0) if Ci≤diC_i \le d_iCi​≤di​ for every job, and its maximum tardiness is Tmax⁡=max⁡imax⁡{0,Ci−di}T_{\max} = \max_i \max\{0, C_i - d_i\}Tmax​=maxi​max{0,Ci​−di​}.

Release times and due dates are agreeable if ri<rjr_i < r_jri​<rj​ implies di≤djd_i \le d_jdi​≤dj​. A schedule is in batch-EDD order if no job of an earlier batch has a larger due date than a job of a later batch.

Algorithm DP1. With the jobs indexed in nondecreasing order of due dates, let f(0)=0f(0) = 0f(0)=0 and, for j≥1j \ge 1j≥1,

f(j)=min⁡max⁡{1, j−B+1}≤i≤jfi(j),fi(j)={max⁡{f(i−1),rj}+pif max⁡{f(i−1),rj}+p≤di,∞otherwise.f(j) = \min_{\max\{1,\,j-B+1\} \le i \le j} f_i(j),\qquad f_i(j) = \begin{cases} \max\{f(i-1), r_j\} + p & \text{if } \max\{f(i-1), r_j\} + p \le d_i,\\ \infty & \text{otherwise.}\end{cases}f(j)=max{1,j−B+1}≤i≤jmin​fi​(j),fi​(j)={max{f(i−1),rj​}+p∞​if max{f(i−1),rj​}+p≤di​,otherwise.​

Formalization targets

Goal: correctness of DP1

For an index order nondecreasing in both ddd and rrr, and every 0≤j≤n0 \le j \le n0≤j≤n,

f(j)=min⁡{ Cmax⁡(S):S a feasible batch schedule of jobs 1,…,j },min⁡∅=∞.f(j) = \min\{\, C_{\max}(S) : S \text{ a feasible batch schedule of jobs } 1,\dots,j \,\},\qquad \min\emptyset = \infty .f(j)=min{Cmax​(S):S a feasible batch schedule of jobs 1,…,j},min∅=∞.

The minimum ranges over all batch schedules of the prefix: every batching and every batch order. The case j=nj = nj=n is the paper's statement that DP1 "will find a feasible schedule with minimum makespan if a feasible schedule exists" (p. 768).

Milestones

  1. Lemma 1 (p. 767): if a feasible schedule exists, a feasible schedule in batch-EDD order exists.
  2. Justification of DP1 (p. 768): every feasible schedule of jobs 1,…,j1, \dots, j1,…,j can be replaced by a feasible schedule whose batches are blocks of at most BBB consecutively indexed jobs, in increasing index order, with no larger makespan, so the problem "becomes a consecutive partition problem".
  3. Lemma 2 (p. 769): under rj+p≤djr_j + p \le d_jrj​+p≤dj​ for all jjj, some schedule has Tmax⁡≤(n−1)pT_{\max} \le (n-1)pTmax​≤(n−1)p.

Significance

DP1 decides feasibility of 1/ri,pi=p,B/Tmax⁡1/r_i, p_i = p, B/T_{\max}1/ri​,pi​=p,B/Tmax​ and, when the instance is feasible, returns the minimum makespan of an on-time schedule. Applied to due dates augmented by a trial value TTT, it decides whether Tmax⁡≤TT_{\max} \le TTmax​≤T is achievable, which together with the bound of Lemma 2 gives the paper's polynomial procedure for minimizing Tmax⁡T_{\max}Tmax​. The consecutive-partition structure behind it recurs in the paper's later dynamic programs (DP2 for agreeable processing times and due dates, DP3 for the number of tardy jobs), and in much of the later literature on batch scheduling with release dates.

The results are proved in the paper; none of them has a machine-checked proof. The mission formalizes the known proofs. Its formal statements also make explicit two assumptions that the printed text leaves loose: the tie-break of the index order, without which DP1 returns a wrong value, and the hypothesis rj+p≤djr_j + p \le d_jrj​+p≤dj​ of Lemma 2, without which the lemma is false.

Difficulty

The obvious argument for the goal is "by Lemma 1 the batches are consecutive, and DP1 enumerates consecutive partitions". Lemma 1 orders the batches by due dates, but it does not make the batches intervals of the index order: jobs with equal due dates may still be split across batches in an order that is not the index order, and when equal due dates are indexed against the release order DP1's value max⁡{f(i−1),rj}+p\max\{f(i-1), r_j\} + pmax{f(i−1),rj​}+p underestimates the start of the batch {i,…,j}\{i, \dots, j\}{i,…,j}. The step from batch-EDD order to consecutive batches, and the fact that the exchange never increases the makespan, are the content of the justification milestone. The goal also asserts two directions at once: that the DP value is attained by some feasible schedule, and that no feasible schedule, consecutive or not, finishes earlier.

Formalization scope

Jobs are Fin n, 0-based (the paper's job iii is i - 1); a prefix "jobs 1,…,j1, \dots, j1,…,j" is a prefix length j≤nj \le nj≤n. Data are natural numbers, as the paper assumes ("all data to be integers", p. 769). A batch schedule is a List (Finset (Fin n)); schedules are semi-active, starting every batch as early as possible, which loses nothing for the regular objectives here. DP1 is a def written as printed, with values in ℕ∞ and ∞=⊤\infty = \top∞=⊤; the minimum in the goal is an infimum in ℕ∞ over all valid feasible schedules, so its value on an infeasible prefix is ⊤\top⊤.

Explicit readings of loose phrases:

  • "Jobs are indexed in increasing order of due dates" (p. 767): the index order is nondecreasing in both ddd and rrr. Such an order exists for agreeable data (sort by (d,r)(d, r)(d,r)), and it implies agreeability. With ties in ddd ordered against rrr the goal is false: B=2B = 2B=2, p=1p = 1p=1, d=(2,2)d = (2, 2)d=(2,2), r=(1,0)r = (1, 0)r=(1,0) gives f(2)=1f(2) = 1f(2)=1, while every schedule finishes at time 222.
  • "Agreeable" is printed as "ri≤rjr_i \le r_jri​≤rj​ implies di≤djd_i \le d_jdi​≤dj​"; the strict form ri<rj⇒di≤djr_i < r_j \Rightarrow d_i \le d_jri​<rj​⇒di​≤dj​ is used, a weaker hypothesis.
  • "A solution with Tmax⁡=0T_{\max} = 0Tmax​=0" is a batch schedule in which every job is on time.
  • "(n−1)p(n - 1)p(n−1)p is an upper bound on the value of Tmax⁡T_{\max}Tmax​" (Lemma 2) is read as a bound on the optimal Tmax⁡T_{\max}Tmax​, with the hypothesis rj+p≤djr_j + p \le d_jrj​+p≤dj​ that its proof invokes ("by assumption rj+p<djr_j + p < d_jrj​+p<dj​"), in the weak form.
  • "If f(j)≤djf(j) \le d_jf(j)≤dj​, then it is possible to schedule jobs 1,…,j1, \dots, j1,…,j so that none are tardy" is not formalized separately; it is subsumed by the goal.

Not formalized: the O(nB)O(nB)O(nB) running time of DP1, Algorithm 1 (bisection over Tmax⁡T_{\max}Tmax​) and Corollary 1, whose content is a running time. A formalization that restricts the minimum in the goal to consecutive or batch-EDD schedules would assume the milestones and is excluded; so is a DP value defined as the optimum itself.

The development needs list-based schedule recursions and ℕ∞ arithmetic only; the exchange lemmas for batch schedules (moving a job between batches without delaying later batches) are reusable for the paper's other dynamic programs. Proofs of any milestone, and of auxiliary lemmas on finish, jobCompletion and permutations of batch lists, are welcome.

Selected references

  • C.-Y. Lee, R. Uzsoy, L. A. Martin-Vega, Efficient Algorithms for Scheduling Semiconductor Burn-In Operations, Operations Research 40(4), 764–775, 1992. https://doi.org/10.1287/opre.40.4.764
  • Y. Ikura, M. Gimple, Scheduling Algorithms for a Single Batch Processing Machine, Operations Research Letters 5(2), 61–65, 1986. https://doi.org/10.1016/0167-6377(86)90092-7
6 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

Efficient Algorithms for Scheduling Semiconductor Burn-In Operations 2: Dynamic Program DP2 Finds a Minimum-Makespan On-Time Batch Schedule When Processing Times and Due Dates Are AgreeableResearch Paper

Burn-in ovens as batch processing machines

In semiconductor manufacturing, finished chips go through burn-in: they are loaded on boards and held in an oven at high temperature to expose early failures. An oven holds a bounded number of boards, a load cannot be interrupted once started, and a chip may stay in the oven longer than its specified burn-in time but not shorter. Lee, Uzsoy and Martin-Vega (Oper. Res. 40(4), 1992) model the oven as a batch processing machine and give polynomial algorithms for several due-date objectives. The model has since become a standard one in scheduling theory; the survey of Potts and Kovalyov (2000) traces the batching literature that grew from it.

This mission formalizes the part of the paper's §3 on minimizing maximum tardiness when all jobs are available at time 000 and processing times and due dates are agreeable. That is the problem the paper writes 1/B/Tmax⁡1/B/T_{\max}1/B/Tmax​. The paper's own route is a feasibility test by dynamic programming, Algorithm DP2, which a bisection over due-date shifts turns into a Tmax⁡T_{\max}Tmax​ minimizer.

The batch machine

There are nnn jobs 1,…,n1,\dots,n1,…,n. Job iii has a processing time pip_ipi​ and a due date did_idi​, both natural numbers. The machine has capacity B≥1B\ge 1B≥1. A batch is a nonempty set of at most BBB jobs processed together. It occupies the machine for the processing time of its longest job,

t(P)=max⁡i∈Ppi.t(P)=\max_{i\in P}p_i .t(P)=i∈Pmax​pi​.

A batch schedule of a job set JJJ is a sequence S=(P1,…,Pm)S=(P_1,\dots,P_m)S=(P1​,…,Pm​) of pairwise disjoint batches covering JJJ, processed in this order and back to back from time 000. Batch PkP_kPk​ and all of its jobs complete at C(Pk)=t(P1)+⋯+t(Pk)C(P_k)=t(P_1)+\dots+t(P_k)C(Pk​)=t(P1​)+⋯+t(Pk​). The makespan is Cmax⁡(S)=C(Pm)C_{\max}(S)=C(P_m)Cmax​(S)=C(Pm​), and the maximum tardiness is

Tmax⁡(S)=max⁡kmax⁡i∈Pkmax⁡{0, C(Pk)−di}.T_{\max}(S)=\max_k\max_{i\in P_k}\max\{0,\,C(P_k)-d_i\}.Tmax​(S)=kmax​i∈Pk​max​max{0,C(Pk​)−di​}.

A schedule is feasible when Tmax⁡(S)=0T_{\max}(S)=0Tmax​(S)=0, that is, when every job meets its due date.

A sequence is in batch-EDD order (Definition 1) if no job in an earlier batch has a strictly later due date than a job in a later batch. Processing times and due dates are agreeable if pi<pjp_i<p_jpi​<pj​ implies di≤djd_i\le d_jdi​≤dj​. A schedule is consecutive when every batch is a block {i,i+1,…,k}\{i,i+1,\dots,k\}{i,i+1,…,k} of indices and the blocks appear in increasing order.

Algorithm DP2 computes values f(0),…,f(n)∈N∪{∞}f(0),\dots,f(n)\in\mathbb N\cup\{\infty\}f(0),…,f(n)∈N∪{∞}:

f(0)=0,f(j)=min⁡max⁡{1, j−B+1}≤i≤jfi(j),fi(j)={f(i−1)+pj,f(i−1)+pj≤di,∞,otherwise.f(0)=0,\qquad f(j)=\min_{\max\{1,\,j-B+1\}\le i\le j} f_i(j),\qquad f_i(j)=\begin{cases}f(i-1)+p_j,& f(i-1)+p_j\le d_i,\\ \infty,&\text{otherwise.}\end{cases}f(0)=0,f(j)=max{1,j−B+1}≤i≤jmin​fi​(j),fi​(j)={f(i−1)+pj​,∞,​f(i−1)+pj​≤di​,otherwise.​

Formalization targets

Goal: correctness of DP2

Index the jobs so that d1≤⋯≤dnd_1\le\dots\le d_nd1​≤⋯≤dn​ and p1≤⋯≤pnp_1\le\dots\le p_np1​≤⋯≤pn​. Then for every 0≤j≤n0\le j\le n0≤j≤n,

f(j)=min⁡{ Cmax⁡(S):S a batch schedule of jobs 1,…,j, Tmax⁡(S)=0 },f(j)=\min\{\,C_{\max}(S) : S \text{ a batch schedule of jobs } 1,\dots,j,\ T_{\max}(S)=0\,\},f(j)=min{Cmax​(S):S a batch schedule of jobs 1,…,j, Tmax​(S)=0},

with min⁡∅=∞\min\emptyset=\inftymin∅=∞. The minimum ranges over all schedules: any batching, any order. This is the paper's reading of f(j)f(j)f(j) as "the minimum completion time of jobs 1,…,j1,\dots,j1,…,j if they can be scheduled feasibly, and infinity otherwise".

Milestones

  1. Lemma 3. With agreeable processing times and due dates, if a feasible schedule exists, then a feasible schedule in batch-EDD order exists.
  2. Consecutive partition (justification of DP2). Under the index order above, if jobs 1,…,j1,\dots,j1,…,j can be scheduled feasibly, then some feasible schedule of minimum makespan is consecutive.
  3. FBEDD. With equal processing times and due dates in index order, the Full-Batch EDD schedule {1,…,B},{B+1,…,2B},…\{1,\dots,B\},\{B+1,\dots,2B\},\dots{1,…,B},{B+1,…,2B},… has Tmax⁡T_{\max}Tmax​ no larger than that of any batch schedule.

Significance

DP2 is the paper's feasibility test for 1/B/Tmax⁡1/B/T_{\max}1/B/Tmax​ with agreeable data. With a bisection over the common shift of the due dates, it yields a polynomial algorithm for minimizing Tmax⁡T_{\max}Tmax​. A correct statement of what DP2 computes is therefore the core of that result. The same consecutive-partition structure underlies the paper's DP1 (release times, equal processing times) and DP3 (number of tardy jobs), which are separate missions of this series.

No machine-checked proof of any of these statements is known. The dynamic program's correctness is argued in the paper only by reference ("the justification of this algorithm is similar to that of algorithm DP1"), and the index order it needs is left implicit. A formal proof pins down exactly which ordering of the jobs makes the recursion correct.

Difficulty

The recursion charges pjp_jpj​ for the last batch {i,…,j}\{i,\dots,j\}{i,…,j} and checks only did_idi​. Both shortcuts rely on the jobs being sorted by due date and by processing time at the same time. Lemma 3's exchange argument sorts a feasible schedule by due date, but it does not by itself produce consecutive blocks of a fixed index order. With ties in due dates the indexing also has to be compatible with processing times. Without that, the recursion is wrong: for B=2B=2B=2, p=(3,1)p=(3,1)p=(3,1), d=(5,5)d=(5,5)d=(5,5) it gives f(2)=1f(2)=1f(2)=1, while every schedule takes at least 333. The goal compares the DP with the optimum over all schedules, so the exchange arguments have to bridge arbitrary batchings and the consecutive ones the recursion enumerates. That bridge is the main step left to prove.

Formalization scope

  • Jobs are Fin n (job iii of the paper is index i−1i-1i−1); jobs 1,…,j1,\dots,j1,…,j are jobsUpTo n j. Data are natural numbers; the paper assumes integral data (p. 769).
  • A schedule is a List (Finset (Fin n)); validity requires nonempty batches of size at most BBB inside the job set, pairwise disjoint, covering the set. Batches start as early as possible. Batch time is the maximum processing time in the batch.
  • ∞\infty∞ is ⊤ : ℕ∞, and the goal's minimum is the infimum in ℕ∞, which is ⊤ exactly when no feasible schedule exists. DP2 is defined by the printed recursion, not as an optimum.
  • Explicit readings of loose phrases:
    • "jobs are indexed in increasing order of due dates" (p. 767) becomes Monotone d ∧ Monotone p for DP2 and its justification, and Monotone d for FBEDD;
    • "agreeable" (printed "pi≤pjp_i\le p_jpi​≤pj​ implies di≤djd_i\le d_jdi​≤dj​", which would force equal due dates for equal processing times) becomes the strict form pi<pj⇒di≤djp_i<p_j\Rightarrow d_i\le d_jpi​<pj​⇒di​≤dj​, a weaker hypothesis;
    • "optimally solves" for FBEDD becomes "valid, and Tmax⁡T_{\max}Tmax​ at most that of every valid schedule";
    • "a consecutive partition problem" becomes the existence of a consecutive minimum-makespan feasible schedule.
  • Not formalized: the O(nB)O(nB)O(nB) and O[nBlog⁡2(npmax⁡)]O[nB\log_2(np_{\max})]O[nBlog2​(npmax​)] running times, the bisection procedure, and the remark that npmax⁡np_{\max}npmax​ bounds Tmax⁡T_{\max}Tmax​.
  • Trivializations ruled out: the goal's minimum ranges over all valid schedules, not only batch-EDD or consecutive ones (which would assume the milestones), and DP2 is the printed recursion, not a restatement of the optimum.
  • Infrastructure needed: list-indexed schedules, exchange arguments on adjacent batches, and induction on prefix length for the recursion. The single-machine batch model is shared in spirit with missions 1 and 3 of this series. No published platform definition was reused, since nothing on batch machines exists yet.

Selected references

  • C.-Y. Lee, R. Uzsoy, L. A. Martin-Vega, Efficient Algorithms for Scheduling Semiconductor Burn-In Operations, Operations Research 40(4), 764–775, 1992. https://doi.org/10.1287/opre.40.4.764
  • Y. Ikura, M. Gimple, Efficient scheduling algorithms for a single batch processing machine, Operations Research Letters 5(2), 61–65, 1986. https://doi.org/10.1016/0167-6377(86)90104-5
  • C. N. Potts, M. Y. Kovalyov, Scheduling with batching: A review, European Journal of Operational Research 120(2), 228–249, 2000. https://doi.org/10.1016/S0377-2217(99)00153-8
7 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

A Functional Equation and Its Application to Resource Allocation and Sequencing Problems 3: The Minimum Weighted Number of Tardy Jobs Is Σ p_j Minus the Value f(n, d_n) of Equation (3)Research Paper

Motivation

Minimizing the weighted number of tardy jobs on a single machine, written 1∥∑wjUj1\|\sum w_jU_j1∥∑wj​Uj​ in later scheduling notation, is one of the basic due-date objectives: each job either meets its deadline or pays a fixed penalty, and the question is which jobs to sacrifice. Moore (Management Sci. 15, 1968) solved the unweighted case pj=1p_j = 1pj​=1 with a greedy procedure. Lawler and Moore (Management Sci. 16, 1969) handled arbitrary weights by recasting the problem as a knapsack problem with nested prefix constraints and solving it by a recursion, their Equation (3). This is the classical pseudo-polynomial algorithm for the weighted problem; Lenstra, Rinnooy Kan and Brucker (Ann. Discrete Math. 1, 1977) showed that the weighted problem is NP-hard, so a pseudo-polynomial method is the expected kind of exact algorithm.

The paper's Sections 5 and 6 state the reduction in a few sentences: on-time jobs can be taken in deadline order, the problem is "equivalent" to the prefix-constrained knapsack, and (3) solves the latter. This mission turns those sentences into precise statements.

Setting

There are n≥1n \ge 1n≥1 jobs, processed by a single machine one immediately following the other from time 000. Job jjj has a nonnegative integer processing time aj′a'_jaj′​, a nonnegative integer deadline djd_jdj​ and a penalty pj≥0p_j \ge 0pj​≥0. A sequence σ\sigmaσ is an ordering of all jobs; job jjj completes at time Cj(σ)C_j(\sigma)Cj​(σ), the total processing time of job jjj and the jobs before it. Job jjj is tardy in σ\sigmaσ if Cj(σ)>djC_j(\sigma) > d_jCj​(σ)>dj​, and the total loss of σ\sigmaσ is

W(σ)=∑j tardy in σpj,W(\sigma) = \sum_{j \text{ tardy in } \sigma} p_j ,W(σ)=j tardy in σ∑​pj​,

the loss cj(t)c_j(t)cj​(t) being 000 for t≤djt \le d_jt≤dj​ and pjp_jpj​ for t>djt > d_jt>dj​.

The jobs are numbered by deadline, d1≤d2≤⋯≤dnd_1 \le d_2 \le \cdots \le d_nd1​≤d2​≤⋯≤dn​. A 0–1 vector xxx (xj=1x_j = 1xj​=1: job jjj on time; xj=0x_j = 0xj​=0: tardy) is prefix-feasible if

a1′x1+⋯+ak′xk≤dk(k=1,…,n).a'_1x_1 + \cdots + a'_kx_k \le d_k \qquad (k = 1, \dots, n).a1′​x1​+⋯+ak′​xk​≤dk​(k=1,…,n).

Equation (3) defines f(j,t)f(j,t)f(j,t) for j=0,…,nj = 0, \dots, nj=0,…,n and integer ttt:

f(j,t)={max⁡{f(j,t−1), f(j−1,t), pj+f(j−1,t−aj′)},0≤t≤dj,f(j,dj),t>dj,f(j,t) = \begin{cases}\max\{f(j,t-1),\ f(j-1,t),\ p_j + f(j-1,t-a'_j)\}, & 0 \le t \le d_j,\\ f(j, d_j), & t > d_j,\end{cases}f(j,t)={max{f(j,t−1), f(j−1,t), pj​+f(j−1,t−aj′​)},f(j,dj​),​0≤t≤dj​,t>dj​,​

with f(0,t)=0f(0,t) = 0f(0,t)=0 for t≥0t \ge 0t≥0 and f(j,t)=−∞f(j,t) = -\inftyf(j,t)=−∞ for t<0t < 0t<0.

Formalization targets

Goal: the minimum weighted number of tardy jobs

With d1≤⋯≤dnd_1 \le \cdots \le d_nd1​≤⋯≤dn​ and pj≥0p_j \ge 0pj​≥0, f(n,dn)f(n, d_n)f(n,dn​) is finite and

min⁡σW(σ)=∑j=1npj−f(n,dn).\min_{\sigma} W(\sigma) = \sum_{j=1}^n p_j - f(n, d_n).σmin​W(σ)=j=1∑n​pj​−f(n,dn​).

This is the paper's claim that the problem "is solved by" its recursion, with the evaluation point made explicit.

Milestones (Section 5, Section 6, Eq. (3))

  1. Section 5. For any sequence, the on-time jobs, sequenced in order of their deadlines and followed by the tardy jobs in arbitrary order, stay on time, and the total loss does not increase.
  2. Section 6. Every sequence has a prefix-feasible xxx with ∑pj−∑pjxj≤W(σ)\sum p_j - \sum p_jx_j \le W(\sigma)∑pj​−∑pj​xj​≤W(σ), and every prefix-feasible xxx has a sequence with W(σ)≤∑pj−∑pjxjW(\sigma) \le \sum p_j - \sum p_jx_jW(σ)≤∑pj​−∑pj​xj​: the two problems have the same optimal value.
  3. Eq. (3). For 0≤j≤n0 \le j \le n0≤j≤n and t≥0t \ge 0t≥0,
f(j,t)=max⁡{∑i≤jpixi:∑i≤kai′xi≤dk (k≤j), ∑i≤jai′xi≤t}.f(j,t) = \max\Bigl\{\textstyle\sum_{i \le j} p_ix_i : \sum_{i\le k} a'_ix_i \le d_k\ (k \le j),\ \sum_{i\le j} a'_ix_i \le t\Bigr\}.f(j,t)=max{∑i≤j​pi​xi​:∑i≤k​ai′​xi​≤dk​ (k≤j), ∑i≤j​ai′​xi​≤t}.

The goal follows from milestones 2 and 3 at j=nj = nj=n, t=dnt = d_nt=dn​.

Significance

The result is the exact algorithm for 1∥∑wjUj1\|\sum w_jU_j1∥∑wj​Uj​ with running time proportional to n dnn\,d_nndn​, and the reduction behind it (on-time jobs in earliest-deadline order, then a knapsack over the on-time set) is the template reused by later work on due-date objectives, including the two-agent and batching variants. The prefix-constrained knapsack itself reappears whenever a set of jobs must be feasible under nested capacity limits.

On formalization: the paper's argument is three sentences long and leaves several points implicit: the base cases of (3), the role of the deadline numbering, the sign of the penalties, and what "equivalent" means. A machine-checked development fixes each of them and yields a verified pseudo-polynomial algorithm for an NP-hard scheduling problem. To our knowledge none of these statements has a machine-checked proof; the platform's SchedComplexity.OneMachine.* items (Lenstra, Rinnooy Kan and Brucker) state the NP-hardness of the same problem in another model, MooreLateJobs.NumLate.* covers Moore's unweighted case, and TwoAgentSched.LateLate.lemma_7_1 is a two-agent analogue of milestone 1.

Difficulty

The obvious argument works with the set of on-time jobs and asserts that this set can be sequenced on time iff its earliest-deadline order is. That step is Jackson's rule, an exchange argument on lists that is not in Mathlib; it is where both milestone 1 and the first half of milestone 2 sit. The second half of milestone 2 needs the deadline numbering: for a job kkk that is tardy, the prefix constraint at kkk is not a completion-time constraint of any job, and only the monotonicity di≤dkd_i \le d_kdi​≤dk​ for the last on-time job i≤ki \le ki≤k bounds it. Milestone 3 is a dynamic-programming correctness proof in which the cap f(j,t)=f(j,dj)f(j,t) = f(j,d_j)f(j,t)=f(j,dj​) for t>djt > d_jt>dj​ and the −∞-\infty−∞ base cases must be tracked through a well-founded recursion on (j,t)(j, t)(j,t).

Formalization scope

Jobs are Fin n, 0-based: Lean job jjj is the paper's job j+1j+1j+1, and the paper's f(j,⋅)f(j,\cdot)f(j,⋅) uses Lean job ⟨j-1, _⟩. Sequences are lists in the published model MooreLateJobs.Shared (IsSchedule Finset.univ l, completionTime, no idle time, start at 000), which replaces the paper's permutation π\piπ; tardy jobs are the published MooreLateJobs.NumLate.lateSet (strictly dj<Cjd_j < C_jdj​<Cj​). Processing times and deadlines are natural numbers, penalties real. Vectors xxx are Fin n → Bool. fff takes values in WithBot ℝ, with ⊥=−∞\bot = -\infty⊥=−∞ and p+⊥=⊥p + \bot = \botp+⊥=⊥; +∞+\infty+∞ never occurs.

Explicit readings of the paper's loose phrases:

  • Integer data: (3) steps ttt by 111 and subtracts aj′a'_jaj′​, so aj′a'_jaj′​ and djd_jdj​ are nonnegative integers.
  • Penalties pj≥0p_j \ge 0pj​≥0 ("a penalty pjp_jpj​ is exacted"); the goal, milestone 1 and milestone 2 assume it, milestone 3 does not need it.
  • Deadline numbering ("ordering the jobs by deadlines") is Monotone d on the job index; assumed in the goal and milestone 2 only.
  • Base cases of (3) are those of Equation (1), with −∞-\infty−∞ for a maximum: f(0,t)=0f(0,t) = 0f(0,t)=0 (t≥0t \ge 0t≥0), f(j,t)=−∞f(j,t) = -\inftyf(j,t)=−∞ (t<0t < 0t<0). The dominated term f(j,t−1)f(j,t-1)f(j,t−1) is kept as printed.
  • "Equivalent" is the pair of inequalities of milestone 2, i.e. equal optimal values.
  • "Solved by" means f(n,dn)f(n,d_n)f(n,dn​) is finite and ∑pj−f(n,dn)\sum p_j - f(n,d_n)∑pj​−f(n,dn​) is the least weighted number of tardy jobs (IsLeast over all schedules); n≥1n \ge 1n≥1 only so that dnd_ndn​ exists.
  • "Arbitrary order" of the tardy jobs in milestone 1 is a universal quantifier over the remaining lists.

Section 5 literally applies Equation (1) with aj=aj′a_j = a'_jaj​=aj′​, αj(t)=0\alpha_j(t) = 0αj​(t)=0, bj=0b_j = 0bj​=0, βj(t)=pj\beta_j(t) = p_jβj​(t)=pj​; read literally, that leaves the deadlines unenforced, so the mission formalizes the paper's own corrected form (3) instead. Trivializing formalizations are ruled out: the weighted number of tardy jobs is defined from completion times, not through xxx; the optimum is a minimum over sequences, not defined as fff; (3) keeps its cap f(j,t)=f(j,dj)f(j,t) = f(j,d_j)f(j,t)=f(j,dj​); the goal assumes pj≥0p_j \ge 0pj​≥0 and sorted deadlines, without which it is false.

Infrastructure: an exchange lemma for earliest-deadline order on lists (Jackson's rule, posed on the platform as MooreLateJobs.NumLate.jackson) and well-founded-recursion lemmas for WithBot ℝ maxima are reusable beyond this mission. Proofs of any milestone, and of Jackson's rule, are welcome.

Selected references

  • E. L. Lawler, J. M. Moore, A Functional Equation and Its Application to Resource Allocation and Sequencing Problems, Management Science 16(1), 1969, 77–84. https://doi.org/10.1287/mnsc.16.1.77
  • J. M. Moore, An n Job, One Machine Sequencing Algorithm for Minimizing the Number of Tardy Jobs, Management Science 15(1), 1968, 102–109. https://doi.org/10.1287/mnsc.15.1.102
  • J. R. Jackson, Scheduling a Production Line to Minimize Maximum Tardiness, Research Report 43, Management Science Research Project, UCLA, 1955.
  • J. K. Lenstra, A. H. G. Rinnooy Kan, P. Brucker, Complexity of Machine Scheduling Problems, Annals of Discrete Mathematics 1, 1977, 343–362. https://doi.org/10.1016/S0167-5060(08)70743-X
9 thms2 active usersReviewed
🏆Completed
Operations ResearchOptimization·Captain: mikedeng1

A Functional Equation and Its Application to Resource Allocation and Sequencing Problems 1: Equation (1) Computes the Minimum Total Loss of a Fixed Job Order with Two Processing Modes per JobResearch Paper

Motivation

Many single-machine scheduling problems have a structure that is easy to describe: the jobs must be processed in an order that is already known, and the only decisions are how and when to process each one. Lawler and Moore, in A Functional Equation and Its Application to Resource Allocation and Sequencing Problems (Management Science 16(1), 1969, 77–84), isolate this situation in its simplest form: each job has two processing modes, and each mode has its own processing time and loss as a function of the completion time. They solve it with a single functional equation, Eq. (1), closely related to the recursion for the knapsack problem.

The point of the paper is that Eq. (1) solves more than this fixed-order problem. Later sections apply it to resource allocation in critical-path scheduling and to several sequencing problems with deadlines, including minimization of the weighted number of tardy jobs, often written 1∥∑wjUj1\|\sum w_jU_j1∥∑wj​Uj​. Everything in those applications rests on the claim checked in this mission: that the recursion computes the minimum loss it is said to compute.

Setting

There are nnn jobs, performed one at a time in the fixed order 1,2,…,n1, 2, \dots, n1,2,…,n. Job jjj can be performed in one of two modes. In the first mode it takes aja_jaj​ time units, and a loss αj(t)\alpha_j(t)αj​(t) is incurred if it is completed at time ttt. In the other mode it takes bjb_jbj​ time units, with loss βj(t)\beta_j(t)βj​(t). Times are nonnegative integers.

A mode assignment mmm picks a mode for each job, which fixes its processing time pj∈{aj,bj}p_j \in \{a_j, b_j\}pj​∈{aj​,bj​}. A feasible timing of the first jjj jobs is a vector of completion times c1,…,cjc_1, \dots, c_jc1​,…,cj​ with

ci−1+pi≤ci(i=1,…,j),c0=0,c_{i-1} + p_i \le c_i \qquad (i = 1, \dots, j), \qquad c_0 = 0,ci−1​+pi​≤ci​(i=1,…,j),c0​=0,

so each job starts at time 000 or later and after its predecessor has finished; idle time between jobs is allowed. The total loss Lj(m,c)L_j(m, c)Lj​(m,c) is the sum of αi(ci)\alpha_i(c_i)αi​(ci​) over the jobs i≤ji \le ji≤j in the first mode and of βi(ci)\beta_i(c_i)βi​(ci​) over the others. The problem asks for the mode assignment and timing of all nnn jobs that minimize Ln(m,c)L_n(m, c)Ln​(m,c).

The paper's recursion is defined for j=0,…,nj = 0, \dots, nj=0,…,n and integer ttt, with values in R∪{+∞}\mathbb R \cup \{+\infty\}R∪{+∞}:

f(0,t)=0 (t≥0),f(j,t)=+∞ (t<0),f(0, t) = 0 \ (t \ge 0), \qquad f(j, t) = +\infty \ (t < 0),f(0,t)=0 (t≥0),f(j,t)=+∞ (t<0), f(j,t)=min⁡{f(j,t−1), αj(t)+f(j−1,t−aj), βj(t)+f(j−1,t−bj)}(j≥1, t≥0).(1)f(j, t) = \min\{f(j, t-1),\ \alpha_j(t) + f(j-1, t-a_j),\ \beta_j(t) + f(j-1, t-b_j)\} \quad (j \ge 1,\ t \ge 0). \tag{1}f(j,t)=min{f(j,t−1), αj​(t)+f(j−1,t−aj​), βj​(t)+f(j−1,t−bj​)}(j≥1, t≥0).(1)

Formalization targets

Milestone: Eq. (1) computes the constrained minimum

For 0≤j≤n0 \le j \le n0≤j≤n and every integer ttt, let L(j,t)\mathcal L(j, t)L(j,t) be the set of total losses of the first jjj jobs over all mode assignments and feasible timings with cj≤tc_j \le tcj​≤t. Then

f(j,t)=min⁡L(j,t),f(j, t) = \min \mathcal L(j, t),f(j,t)=minL(j,t),

meaning: f(j,t)=+∞f(j, t) = +\inftyf(j,t)=+∞ exactly when L(j,t)\mathcal L(j, t)L(j,t) is empty, and otherwise f(j,t)f(j,t)f(j,t) is an element of L(j,t)\mathcal L(j,t)L(j,t) and a lower bound for it. No assumption is made on the losses.

Goal: f(n,T)f(n, T)f(n,T) solves the problem

If every αj\alpha_jαj​ and βj\beta_jβj​ is monotone nondecreasing and

T=∑j=1nmax⁡{aj,bj},T = \sum_{j=1}^n \max\{a_j, b_j\},T=j=1∑n​max{aj​,bj​},

then f(n,T)f(n, T)f(n,T) is finite and equals the minimum of Ln(m,c)L_n(m, c)Ln​(m,c) over all mode assignments and all feasible timings of the nnn jobs, with no deadline. This is the paper's sentence "The problem is solved by the calculation of f(n,T)f(n, T)f(n,T), where TTT is a sufficiently large number. For example, if all of the αj\alpha_jαj​'s and βj\beta_jβj​'s are monotone nondecreasing, we may choose T=∑j=1nmax⁡{aj,bj}T = \sum_{j=1}^n \max\{a_j, b_j\}T=∑j=1n​max{aj​,bj​}."

Significance

The milestone is the correctness of a dynamic program: the value table computed by (1) coincides with the optimum of a combinatorial problem whose feasible set is infinite (timings are unbounded because of idle time). The goal turns that into a finite certificate for the unconstrained problem, with an explicit horizon. Downstream, the same equation with bj=0b_j = 0bj​=0 and suitable losses is the paper's algorithm for the weighted number of tardy jobs (§5–6), and the other sequencing applications are specializations of (1) as well; a formal version of this mission is the base on which those reductions can be stated.

The result is classical and its proof is short on paper. It has not been formalized: no item on Prove2Me states a two-mode fixed-order recursion. The work this mission asks for is a machine-checked proof of the two statements above, from the paper's own definitions.

Difficulty

The paper gives no argument beyond "the usual dynamic programming argumentation". The recursion is in two variables: f(j,⋅)f(j, \cdot)f(j,⋅) refers to itself at t−1t-1t−1 as well as to f(j−1,⋅)f(j-1, \cdot)f(j−1,⋅), so the correspondence with timings is not a plain stage-by-stage principle of optimality. The edge cases are where a careless reading fails: t=0t = 0t=0, where f(j,−1)=+∞f(j, -1) = +\inftyf(j,−1)=+∞; zero processing times aj=0a_j = 0aj​=0 or bj=0b_j = 0bj​=0, where f(j−1,t−aj)f(j-1, t-a_j)f(j−1,t−aj​) is evaluated at the same ttt; and j=0j = 0j=0, where the deadline constraint degenerates to 0≤t0 \le t0≤t. The goal is harder than the milestone: the problem's feasible set is unbounded, and the horizon TTT is only sufficient under monotone losses. Without monotonicity the goal is false: one job with a=b=1a = b = 1a=b=1, α(1)=5\alpha(1) = 5α(1)=5, α(t)=0\alpha(t) = 0α(t)=0 for t≥2t \ge 2t≥2 and β≡5\beta \equiv 5β≡5 has optimum 000, attained only at completion time 2>T=12 > T = 12>T=1, while f(1,1)=5f(1, 1) = 5f(1,1)=5.

Formalization scope

  • Jobs are Fin n and 0-based: Lean job i is the paper's job i+1i+1i+1. The recursion f takes the number j∈{0,…,n}j \in \{0,\dots,n\}j∈{0,…,n} of jobs done; for j>nj > nj>n its value is +∞+\infty+∞ and is never used.
  • Modes are Bool, with true the first mode (aja_jaj​, αj\alpha_jαj​). Processing times are natural numbers and may be 000. Losses are real-valued functions of the natural-number completion time.
  • Integer time is an explicit reading: the paper's recursion steps ttt by one, so time is discrete.
  • +∞+\infty+∞ is ⊤ : WithTop ℝ, so x+(+∞)=+∞x + (+\infty) = +\inftyx+(+∞)=+∞ as in the paper.
  • Idle time is allowed, and the first job starts at time 000 or later.
  • "Minimum total loss" is read as an attained least element of the set of total losses, with +∞+\infty+∞ exactly when that set is empty. "The problem is solved by f(n,T)f(n, T)f(n,T)" is read as: f(n,T)f(n, T)f(n,T) is finite, at most every feasible total loss, and attained.
  • "Monotone nondecreasing" is Monotone on the completion time; it is a hypothesis of the goal only.

The optimum is defined from the scheduling problem itself (lossesBy, IsFeasible, totalLoss), never as fff; statements in which the optimum is fff again, timings forced to have no idle time, an R\mathbb RR-valued fff with an arbitrary value for t<0t < 0t<0, or monotone losses assumed in the milestone are all ruled out by this choice of definitions.

Related platform items: GilmoreGomory61.CuttingStock.knapsack_dp_recursion (an unbounded-knapsack recursion) and the CriticalPath.CostCurve items (Kelley's continuous time–cost model) treat neighbouring recursions and models; neither states this problem. Proofs of the milestone and the goal, and reusable lemmas about the value function, are welcome.

Selected references

  • E. L. Lawler, J. M. Moore, A Functional Equation and Its Application to Resource Allocation and Sequencing Problems, Management Science 16(1) (1969) 77–84. https://doi.org/10.1287/mnsc.16.1.77
  • R. Bellman, Dynamic Programming, Princeton University Press, 1957. https://doi.org/10.1515/9781400835386
  • J. M. Moore, An n Job, One Machine Sequencing Algorithm for Minimizing the Number of Late Jobs, Management Science 15(1) (1968) 102–109. https://doi.org/10.1287/mnsc.15.1.102
4 thms2 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Linear Programming and Finite Markovian Control Problems IV: Positive Dynamic Programming — an Extreme Optimal Dual Solution Yields a Pure Stationary Optimal PolicyTextbook

Motivation

A finite Markov decision system asks how to choose actions while a changing state controls which actions are available. The choice can affect both the reward now and the distribution of future states. In a total-reward problem, the process can continue indefinitely; if transitions are substochastic, it can also terminate. Kallenberg's treatment of positive dynamic programming connects this control problem to a finite linear program and uses an optimal flow to identify a policy that is optimal from every initial state Kallenberg, Chapter 3.

The connection matters when an optimizer is easier to compute as state-action frequencies than as an infinite sequence of decisions. A policy may depend on the entire observed history and may randomize at every decision. The theorem under study says that, when the dual linear program has an extreme optimal solution, its positive coordinates identify a pure stationary policy as good as every such general policy. This assertion includes models in which the selected policy is not transient Kallenberg, Theorem 3.5.2 and Example 3.5.1.

Setting

Let E={1,…,N}E=\{1,\ldots,N\}E={1,…,N} be a nonempty finite state space. At state iii, one chooses an action from the nonempty finite set A(i)A(i)A(i). Action a∈A(i)a\in A(i)a∈A(i) earns a real reward riar_{ia}ria​ and moves to state jjj with probability piaj≥0p_{iaj}\ge0piaj​≥0. The sum ∑jpiaj\sum_jp_{iaj}∑j​piaj​ is at most one; any missing probability represents termination. Positive dynamic programming imposes ria≥0r_{ia}\ge0ria​≥0 for every admissible state-action pair Kallenberg, Section 2.2 and Assumption 3.5.1.

A policy R=(π1,π2,…)R=(\pi^1,\pi^2,\ldots)R=(π1,π2,…) assigns an action distribution after each finite history. The history records the initial state and all states and actions observed so far. Write CCC for this full policy class. A pure stationary policy f∞f^\inftyf∞ always chooses one fixed admissible action f(i)f(i)f(i) whenever it visits iii.

Starting from state iii, let vi(R)v_i(R)vi​(R) be the expected total reward of RRR, and let vi=sup⁡R∈Cvi(R)v_i=\sup_{R\in C}v_i(R)vi​=supR∈C​vi​(R). Because the rewards are nonnegative, the finite-horizon expected totals increase to vi(R)v_i(R)vi​(R); both policy and optimal values may be +∞+\infty+∞. A real vector w=(wi)w=(w_i)w=(wi​) is TMD superharmonic if wi≥ria+∑jpiajwjw_i\ge r_{ia}+\sum_jp_{iaj}w_jwi​≥ria​+∑j​piaj​wj​ for each iii and a∈A(i)a\in A(i)a∈A(i) Kallenberg, Definition 3.3.1.

For given weights βj>0\beta_j>0βj​>0, equation (3.5.2) is a linear program over nonnegative state-action flows xiax_{ia}xia​. It maximizes ∑i,ariaxia\sum_{i,a}r_{ia}x_{ia}∑i,a​ria​xia​ subject to

∑a∈A(j)xja−∑i∈E∑a∈A(i)piajxia≤βj(j∈E).\sum_{a\in A(j)}x_{ja}-\sum_{i\in E}\sum_{a\in A(i)}p_{iaj}x_{ia}\le\beta_j\qquad(j\in E).a∈A(j)∑​xja​−i∈E∑​a∈A(i)∑​piaj​xia​≤βj​(j∈E).

The set Ex={i:∑a∈A(i)xia>0}E_x=\{i:\sum_{a\in A(i)}x_{ia}>0\}Ex​={i:∑a∈A(i)​xia​>0} records the states with positive flow Kallenberg, Notation 3.1.1 and equation (3.5.2).

Formalization targets

Superharmonic value

Theorem 3.5.1 identifies vvv as the smallest nonnegative TMD-superharmonic vector. The original superharmonic definition ranges over real vectors; the value must also be allowed to take +∞+\infty+∞. The formal statement gives both the extended superharmonic inequalities for vvv and its componentwise bound by every nonnegative real superharmonic vector:

0≤vi,vi≥ria+∑jpiajvj,vi≤wifor every nonnegative real superharmonic w.0\le v_i,\qquad v_i\ge r_{ia}+\sum_jp_{iaj}v_j,\qquad v_i\le w_i\quad\text{for every nonnegative real superharmonic }w.0≤vi​,vi​≥ria​+j∑​piaj​vj​,vi​≤wi​for every nonnegative real superharmonic w.

This is the numbered milestone of the mission Kallenberg, Theorem 3.5.1.

Policy from an extreme optimal dual flow

The main goal is Theorem 3.5.2. Suppose x∗x^*x∗ is an extreme point of the feasible region of (3.5.2) and has objective at least as large as every feasible flow. Then every pure stationary rule fff choosing xi,f(i)∗>0x^*_{i,f(i)}>0xi,f(i)∗​>0 on Ex∗E_{x^*}Ex∗​, with arbitrary admissible actions outside Ex∗E_{x^*}Ex∗​, is total optimal:

vi(f∞)=vi=sup⁡R∈Cvi(R)(i∈E).v_i(f^\infty)=v_i=\sup_{R\in C}v_i(R)\qquad(i\in E).vi​(f∞)=vi​=R∈Csup​vi​(R)(i∈E).

The goal records the finite-optimum case by requiring an actual optimal solution x∗x^*x∗; it makes no extra assumption that every policy is transient Kallenberg, Theorem 3.5.2.

Significance

The theorem converts an extreme optimal state-action flow into one decision rule that is optimal simultaneously for all starting states. Since CCC includes policies that change with time, use full histories or randomize, it establishes that those freedoms cannot improve the total-reward value when the stated dual optimizer exists. The positive model also reveals when extended values matter: outside the finite-optimum case, the dual objective may be unbounded and an optimal total reward may be infinite Kallenberg, pp. 78–83.

A formal development of this result must keep the policy class and the linear program in the same model. It provides reusable definitions of a finite substochastic control system, finite-history probabilities, extended total rewards, state-action flows and superharmonic vectors. The result is proved in the book; the mission asks for a machine-checked proof of its statement, not for a new optimization theorem. The draft statements are open goals until such proofs are supplied.

Difficulty

A finite linear program has finitely many variables, while the value compares a flow-derived rule with every infinite, history dependent policy. A comparison restricted to stationary or transient policies would miss the main assertion. The proof also has to treat zero-flow states: the dual solution does not prescribe an action there, yet the theorem permits every admissible choice. Finally, the superharmonic milestone permits an infinite value, while the linear program itself uses real coordinates. A development must connect those representations without turning an infinite reward into an arbitrary default real value.

Formalization scope

Lean represents states as Fin N with N>0N>0N>0, and each A(i)A(i)A(i) as a nonempty finite subset of a finite action type. The transition rows sum to at most one. Histories carry past states and actions, and the first action has internal index zero, corresponding to the book's time one. Policy probabilities are nonnegative, vanish outside A(i)A(i)A(i) and sum to one. The expected reward of a finite horizon is a finite sum over histories; nonnegative total reward is its supremum in EReal. The value takes the supremum over the full policy type, not over a restricted policy subclass.

Dual flow coordinates exist only for admissible state-action pairs. Extreme points are taken in the feasible set of (3.5.2) in those coordinates, and its balance constraints retain the source's ≤βj\le\beta_j≤βj​ direction. The goal quantifies over every admissible pure rule satisfying the positive-flow condition. These choices exclude the vacuous shortcut of defining the value using only pure stationary policies or assuming optimality as a hypothesis.

The mathematical infrastructure includes finite policy histories, state-action occupancy probabilities, extended nonnegative reward limits, the real flow polyhedron and its extreme points. The history and flow definitions can support later work on other finite decision models. Contributions to those foundational results and to the full comparison with history dependent policies are within the mission's scope. The negative-reward regime of Section 3.6, whose claims involve average optimality and recurrent classes in an extended stochastic model, requires its own representation and is outside this positive-reward target.

Selected references

  • L. C. M. Kallenberg, Linear Programming and Finite Markovian Control Problems, Mathematical Centre Tracts 148, Mathematisch Centrum, Amsterdam, 1983. Publisher repository.
6 thms2 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization+2·Captain: mikedeng1

Linear Programming and Finite Markovian Control Problems IX: Discounted Semi-Markov Decision Processes — the Value Vector Is the Smallest Superharmonic VectorTextbook

Why semi-Markov control matters

A decision maker may choose an action whenever a system changes state, even though the time until the next change is random. Maintenance and replacement decisions are examples: a repair choice changes both the next operating state and the length of time before another choice is available. A discrete-time Markov decision model gives every decision epoch the same duration. A semi-Markov decision process allows the holding time to depend on the current state, action, and next state. Kallenberg's Chapter 7 develops discounted and average-reward versions of this finite-state model, including a characterization of optimal discounted value through inequalities and a linear program (Kallenberg 1983, Chapter 7).

The mission focuses on the discounted part of that chapter. The result is known: Kallenberg proves it as Theorem 7.2.1. The formalization task is to state and eventually prove the result for the same policy class and the same general holding-time distributions. Those details matter because a stationary-policy-only version would omit the comparison that the theorem makes with all admissible policies.

Model and notation

Let EEE be a nonempty finite state set. Each i∈Ei\in Ei∈E has a finite nonempty set A(i)A(i)A(i) of available actions. If action a∈A(i)a\in A(i)a∈A(i) is chosen, the next state is jjj with probability piaj≥0p_{iaj}\geq0piaj​≥0, with ∑jpiaj=1\sum_jp_{iaj}=1∑j​piaj​=1. Conditional on jjj, the nonnegative time until that transition has distribution FiajF_{iaj}Fiaj​. The action earns a lump reward riar_{ia}ria​ immediately and a reward rate sias_{ia}sia​ during the ensuing sojourn. Neither the holding-time laws nor the reward rates are required to be identical across transitions (Kallenberg 1983, pp. 210–212).

Fix a positive continuous discount rate λ\lambdaλ. The factor applied after elapsed time ttt is e−λte^{-\lambda t}e−λt. Assumption 7.2.1 requires the Laplace–Stieltjes transform of each conditional holding-time law to satisfy

Liaj(λ):=∫0∞e−λt dFiaj(t)<1(i,j∈E, a∈A(i)).L_{iaj}(\lambda):=\int_0^\infty e^{-\lambda t}\,dF_{iaj}(t)<1 \qquad(i,j\in E,\ a\in A(i)).Liaj​(λ):=∫0∞​e−λtdFiaj​(t)<1(i,j∈E, a∈A(i)).

The assumption is strict for every triple; it does not require a particular parametric family. Define the one-epoch expected discounted reward and discounted transition entry by

ria∗=∑jpiaj∫0∞(ria+sia∫0te−λu du)dFiaj(t),piaj∗=piajLiaj(λ).r^*_{ia}=\sum_jp_{iaj}\int_0^\infty \left(r_{ia}+s_{ia}\int_0^t e^{-\lambda u}\,du\right)dF_{iaj}(t), \qquad p^*_{iaj}=p_{iaj}L_{iaj}(\lambda).ria∗​=j∑​piaj​∫0∞​(ria​+sia​∫0t​e−λudu)dFiaj​(t),piaj∗​=piaj​Liaj​(λ).

A policy RRR is a sequence of randomized decisions. At each epoch its choice may depend on every previously observed state and chosen action and the current state. It does not observe previous sojourn times when choosing. Let viλ(R)v_i^\lambda(R)viλ​(R) be the expected sum of discounted lump and rate rewards from initial state iii, as in equation (7.2.1). The DRD value vector is viλ=sup⁡Rviλ(R)v_i^\lambda=\sup_R v_i^\lambda(R)viλ​=supR​viλ​(R), with the supremum over this full policy class. A real vector www is DRD-superharmonic when

wi≥ria∗+∑jpiaj∗wj(i∈E, a∈A(i)).w_i\geq r^*_{ia}+\sum_jp^*_{iaj}w_j \qquad(i\in E,\ a\in A(i)).wi​≥ria∗​+j∑​piaj∗​wj​(i∈E, a∈A(i)).

These are Kallenberg's Definitions 7.2.1 and 7.2.2 (p. 214).

Formalization targets

Goal: the smallest superharmonic vector

Theorem 7.2.1 states that the value vector itself satisfies the superharmonic inequalities and lies below every other vector satisfying them:

vλ is DRD-superharmonic,w is DRD-superharmonic⟹viλ≤wi(i∈E).v^\lambda\text{ is DRD-superharmonic},\qquad w\text{ is DRD-superharmonic}\Longrightarrow v_i^\lambda\leq w_i\quad(i\in E).vλ is DRD-superharmonic,w is DRD-superharmonic⟹viλ​≤wi​(i∈E).

This is the mission goal. Its content includes both clauses: merely showing that every superharmonic vector bounds policy rewards would leave out the assertion that the value is superharmonic.

Supporting results

Lemma 7.2.1 expresses viλ(R)v_i^\lambda(R)viλ​(R) as a sum of expected discounted state-action occupancies. Theorem 7.2.2 says that a feasible action choice attaining equality in the value equation at every state yields an optimal pure stationary policy. Theorem 7.2.3 says that positive support in an optimal solution of the dual linear program (7.2.11) yields such a policy. Their statements and exact conditions are the mission's milestones (Kallenberg 1983, pp. 212, 216–217).

What the results provide

The goal turns a supremum over possibly history-dependent randomized policies into a finite system of inequalities indexed by available state-action pairs. The next two results explain how equality in those inequalities and an optimal linear-programming solution identify a pure stationary policy with the same value. Thus the finite programs are statements about the original semi-Markov process rather than a separate discounted matrix model (Kallenberg 1983, pp. 214–217).

Kallenberg supplies paper proofs. This mission supplies Lean statements and a shared model interface; the proposed theorem items still require machine-checked proofs. The model's arbitrary conditional holding-time measures, its distinction between the current reward and future discounted value, and its history-dependent policy class are reusable for other finite semi-Markov arguments. The average-reward section of Chapter 7 is outside this mission.

Main difficulty

The straightforward finite-state discounted equation concerns expected one-step rewards. The source value, however, is defined from rewards earned at random physical times, and a policy can react to its entire discrete history. Identifying these two descriptions requires accounting for the joint state, action, and elapsed-time law without giving the policy access to past holding times. Holding times may equal zero with positive probability; the strict transform assumption excludes a degenerate law concentrated entirely at zero, but it does not make each holding time strictly positive. A second issue is real-valuedness: all-policy suprema and integrals must represent the finite quantities in the source rather than Lean's default values on ill-posed inputs.

Formalization scope

Lean uses finite types for states and actions, with a nonempty available-action finset for each state. Conditional sojourn laws are probability measures on R\mathbb RR with no mass on negative times. This includes arbitrary distributions on [0,∞)[0,\infty)[0,∞) and permits an atom at zero. The model stores stochastic transition rows, lump rewards, and rate rewards. The discounted layer stores λ>0\lambda>0λ>0 and the source's strict per-triple transform inequality. The expected one-epoch reward uses a Lebesgue integral against each sojourn law.

Policy decision rules read a list of past state-action pairs and the current state. Finite-horizon value recursively integrates the original epoch reward and its holding-time discount; policy value is its limit. The coordinatewise supremum ranges over all such policies. The occupation sum of Lemma 7.2.1 is a separate theorem, not the definition of policy value. A proof must establish convergence and boundedness from Assumption 7.2.1 so that Lean's total limit, integral, and real-supremum operations have their intended meanings.

The dual program sums only over actions available in each state and uses strictly positive weights βj\beta_jβj​, equality flow constraints, and nonnegative variables as printed. Its pure stationary selector must choose an available action with positive dual mass in every state. Contributions establishing the occupation identity, value bounds, Bellman inequalities, or dual decoding all fit the mission.

Selected references

  • L. C. M. Kallenberg, Linear Programming and Finite Markovian Control Problems, Mathematical Centre Tracts 148, Mathematisch Centrum, Amsterdam, 1983, Chapter 7, pp. 210–227. Publisher repository.
6 thms2 active usersReviewed
🏆Completed
Algorithmic Game TheoryLinear OptimizationOperations Research+1·Captain: mikedeng1

Linear Programming and Finite Markovian Control Problems VIII: Single-Controller Stochastic Games — a Dual Pair of Linear Programs Gives the Value and Stationary Optimal PoliciesTextbook

Motivation

A two-person zero-sum stochastic game (also called a Markov game) is a Markov decision problem with two decision makers who pull in opposite directions: at every time point both players choose an action simultaneously, one player pays the other, and the system moves to a random next state whose law depends on the current state and both actions. Stochastic games were introduced by Shapley (Shapley 1953) and are the standard model for adversarial sequential decisions in operations research, economics and computer science (pursuit–evasion, inspection, robust control against an adversarial environment).

Shapley proved that a discounted stochastic game has a value and that both players have stationary optimal policies. The value, however, is in general not computable by linear programming: it need not lie in the field generated by the data. Kallenberg's Example 6.2.1 (after Parthasarathy and Raghavan) has rational data and an irrational value in one state. When only one player controls the transition probabilities, the situation changes: the value and stationary optimal policies are the optimal solutions of one pair of dual linear programs (Parthasarathy & Raghavan, as cited in Kallenberg 1983, pp. 192 and 196; Kallenberg 1983, Chapter 6).

Timeline.

  • 1953: Shapley proves existence of the value and of stationary optimal policies for the discounted game.
  • 1977–1978: Parthasarathy and Raghavan study games in which one player controls the transitions and identify an order-field property for the value and optimal decision rules (cited in Kallenberg 1983, pp. 192, 196).
  • 1983: Kallenberg presents the dual pair (6.2.1)/(6.2.2), with the controlling player's policy read off the dual and the opponent's from the primal, and a constructive existence proof (Remark 6.2.2).

Setting

The state space is E={1,…,N}E = \{1,\dots,N\}E={1,…,N} with N>0N>0N>0. In state iii player I chooses an action aaa from a finite nonempty set A(i)A(i)A(i) and player II an action bbb from a finite nonempty set B(i)B(i)B(i). Player I then receives riabr_{iab}riab​ from player II, and the next state is jjj with probability piabj≥0p_{iabj} \ge 0piabj​≥0, where ∑jpiabj≤1\sum_j p_{iabj} \le 1∑j​piabj​≤1.

A history at time ttt is (i1,a1,b1,…,it−1,at−1,bt−1,it)(i_1,a_1,b_1,\dots,i_{t-1},a_{t-1},b_{t-1},i_t)(i1​,a1​,b1​,…,it−1​,at−1​,bt−1​,it​). A policy R1R_1R1​ of player I chooses, at each time and history, a probability distribution on A(it)A(i_t)A(it​); policies R2R_2R2​ of player II are defined likewise. A policy is stationary, written π∞\pi^\inftyπ∞ or ρ∞\rho^\inftyρ∞, if the distribution depends only on the current state. With vit(R1,R2)v_i^t(R_1,R_2)vit​(R1​,R2​) the expected reward in period ttt from initial state iii, the total reward is vi(R1,R2)=∑t≥1vit(R1,R2)v_i(R_1,R_2) = \sum_{t\ge1} v_i^t(R_1,R_2)vi​(R1​,R2​)=∑t≥1​vit​(R1​,R2​).

A pair (R1∗,R2∗)(R_1^*,R_2^*)(R1∗​,R2∗​) is optimal if, componentwise,

v(R1,R2∗)≤v(R1∗,R2∗)≤v(R1∗,R2)for all policies R1,R2,(6.1.1)v(R_1,R_2^*) \le v(R_1^*,R_2^*) \le v(R_1^*,R_2) \qquad\text{for all policies } R_1,R_2, \tag{6.1.1}v(R1​,R2∗​)≤v(R1∗​,R2∗​)≤v(R1∗​,R2​)for all policies R1​,R2​,(6.1.1)

and then val(TMG):=v(R1∗,R2∗)\mathrm{val(TMG)} := v(R_1^*,R_2^*)val(TMG):=v(R1∗​,R2∗​) is the value of the game.

Assumption 6.2.1 (contraction). There are μ≫0\mu \gg 0μ≫0 and α∈[0,1)\alpha\in[0,1)α∈[0,1) with ∑jpiabjμj≤αμi\sum_j p_{iabj}\mu_j \le \alpha\mu_i∑j​piabj​μj​≤αμi​ for all iii, a∈A(i)a\in A(i)a∈A(i), b∈B(i)b\in B(i)b∈B(i). The discounted game is the case μ=e\mu = eμ=e.

Assumption 6.2.2 (single controller). piabjp_{iabj}piabj​ does not depend on bbb; it is written piajp_{iaj}piaj​.

For a stationary ρ\rhoρ write ria(ρ)=∑briabρibr_{ia}(\rho) = \sum_b r_{iab}\rho_{ib}ria​(ρ)=∑b​riab​ρib​ and piaj(ρ)=∑bpiabjρibp_{iaj}(\rho)=\sum_b p_{iabj}\rho_{ib}piaj​(ρ)=∑b​piabj​ρib​. A vector yyy is TMG-superharmonic if some stationary ρ∞\rho^\inftyρ∞ of player II satisfies yi≥ria(ρ)+∑jpiaj(ρ)yjy_i \ge r_{ia}(\rho) + \sum_j p_{iaj}(\rho) y_jyi​≥ria​(ρ)+∑j​piaj​(ρ)yj​ for all a∈A(i)a\in A(i)a∈A(i), i∈Ei\in Ei∈E. For weights βj>0\beta_j>0βj​>0 the two linear programs are

min⁡{∑jβjyj ∣ ∑j(δij−piaj)yj−∑briabρib≥0; ∑bρib=1; ρib≥0}(6.2.1)\min\Big\{\textstyle\sum_j\beta_jy_j \ \Big|\ \sum_j(\delta_{ij}-p_{iaj})y_j-\sum_b r_{iab}\rho_{ib}\ge0;\ \sum_b\rho_{ib}=1;\ \rho_{ib}\ge0\Big\} \tag{6.2.1}min{∑j​βj​yj​ ​ ∑j​(δij​−piaj​)yj​−∑b​riab​ρib​≥0; ∑b​ρib​=1; ρib​≥0}(6.2.1) max⁡{∑izi ∣ ∑i∑a(δij−piaj)xia=βj; −∑ariabxia+zi≤0; xia≥0}(6.2.2)\max\Big\{\textstyle\sum_iz_i \ \Big|\ \sum_i\sum_a(\delta_{ij}-p_{iaj})x_{ia}=\beta_j;\ -\sum_a r_{iab}x_{ia}+z_i\le0;\ x_{ia}\ge0\Big\} \tag{6.2.2}max{∑i​zi​ ​ ∑i​∑a​(δij​−piaj​)xia​=βj​; −∑a​riab​xia​+zi​≤0; xia​≥0}(6.2.2)

Formalization targets

Goal: Theorem 6.2.3

Under Assumptions 6.2.1 and 6.2.2, let (y∗,ρ∗)(y^*,\rho^*)(y∗,ρ∗) and (x∗,z∗)(x^*,z^*)(x∗,z∗) be optimal solutions of (6.2.1) and (6.2.2), and πia∗:=xia∗/∑axia∗\pi^*_{ia} := x^*_{ia}/\sum_a x^*_{ia}πia∗​:=xia∗​/∑a​xia∗​. Then

v(R1,(ρ∗)∞)≤v((π∗)∞,(ρ∗)∞)=y∗≤v((π∗)∞,R2)for all policies R1,R2.v(R_1,(\rho^*)^\infty) \le v((\pi^*)^\infty,(\rho^*)^\infty) = y^* \le v((\pi^*)^\infty,R_2)\qquad\text{for all policies } R_1,R_2 .v(R1​,(ρ∗)∞)≤v((π∗)∞,(ρ∗)∞)=y∗≤v((π∗)∞,R2​)for all policies R1​,R2​.

The goal fixes no constants; it states that the LP pair produces the value and optimal stationary policies.

Milestones

  1. Theorem 6.2.1 (Shapley): under Assumption 6.2.1 both players have stationary optimal policies.
  2. Theorem 6.2.2: under Assumption 6.2.1, val(TMG)\mathrm{val(TMG)}val(TMG) is the smallest TMG-superharmonic vector.
  3. Theorem 6.2.4 (i): for a stationary π∞\pi^\inftyπ∞ of player I, xia(π)=[βT(I−P(π))−1]iπiax_{ia}(\pi) = [\beta^T(I-P(\pi))^{-1}]_i\pi_{ia}xia​(π)=[βT(I−P(π))−1]i​πia​ and zi(π)=min⁡brib(π)∑axia(π)z_i(\pi) = \min_{b} r_{ib}(\pi)\sum_a x_{ia}(\pi)zi​(π)=minb​rib​(π)∑a​xia​(π) give a feasible point of (6.2.2) with ∑izi(π)=min⁡ρ∑jβjvj(π∞,ρ∞)\sum_i z_i(\pi) = \min_\rho \sum_j\beta_j v_j(\pi^\infty,\rho^\infty)∑i​zi​(π)=minρ​∑j​βj​vj​(π∞,ρ∞).
  4. Theorem 6.2.4 (ii): every feasible (x,z)(x,z)(x,z) of (6.2.2) has x=x(π)x = x(\pi)x=x(π) and z≤z(π)z\le z(\pi)z≤z(π) for πia=xia/∑axia\pi_{ia} = x_{ia}/\sum_a x_{ia}πia​=xia​/∑a​xia​.

Theorems 6.2.1 and 6.2.2 hold for the general contracting game. Assumption 6.2.2 enters only from (6.2.1) on.

Significance

The result. Theorem 6.2.3 turns a single-controller game into a finite computation, Algorithm XXVII: solve one LP pair and read off the value and optimal stationary policies of both players. A consequence (Remark 6.2.1) is that the value and the optimal decision rules lie in the field generated by the rewards and transition probabilities. Example 6.2.1 shows this fails without Assumption 6.2.2. Theorem 6.2.4 matches the feasible points of the dual program with the stationary policies of the controlling player. This is the game version of the correspondence between state-action frequencies and policies in Markov decision problems.

Formalizing it. All results are proved in the book, and Theorem 6.2.1 is classical. None of them is formalized: the platform has turn-based stochastic games with positional strategies (TBSGStrategyIteration), which do not cover simultaneous moves or history-dependent randomized policies. The mission adds a reusable model of simultaneous-move stochastic games with history-dependent policies, together with machine-checked optimality of the LP solution against every such policy.

Difficulty

There are two difficulties. First, optimality in (6.1.1) is against every history-dependent randomized policy of the opponent, while the LP produces only stationary policies. Fixing one player's stationary policy reduces the game to a Markov decision problem for the other player (Remark 6.1.1), and the facts needed from that problem (stationary policies suffice, and the value is the smallest superharmonic vector) are theorems about contracting MDPs, not consequences of the LP. Second, Theorem 6.2.2 rests on Shapley's existence theorem, which is not a linear-programming fact: its usual proof is a fixed-point argument for the Shapley operator built from one-stage matrix games. Remark 6.2.2 indicates a route that avoids it, through the bounded polytope of state-action frequencies of a contracting MDP. Either way, LP duality alone does not give optimality against non-stationary opponents.

Formalization scope

  • Model. EEE is Fin N with N>0N>0N>0. Actions live in finite types α, β, and A(i)A(i)A(i), B(i)B(i)B(i) are nonempty Finsets. Rows are substochastic.
  • Policies. A history in Hn+1H_{n+1}Hn+1​ is a record of n+1n+1n+1 states and nnn actions of each player. A policy is a family of distributions indexed by time and history, supported on the current action set. Stationary policies are the image of state-dependent decision rules.
  • Probabilities and reward. History probabilities are explicit finite products, with no measure theory. The total reward is the tsum of the period rewards, which converges absolutely under Assumption 6.2.1, and every theorem assumes it.
  • Linear programs. Their variables are functions on all actions that vanish off A(i)A(i)A(i) (resp. B(i)B(i)B(i)). Optimality means feasible and attaining the min/max over the feasible set. The common piajp_{iaj}piaj​ is piab0jp_{iab_0j}piab0​j​ for a fixed b0∈B(i)b_0\in B(i)b0​∈B(i), and Assumption 6.2.2 makes the choice irrelevant. βj>0\beta_j>0βj​>0 is a hypothesis, as on p. 194.
  • The minimum in Theorem 6.2.4 (i) is over stationary policies of player II and is stated with attainment.

Restricting either player's policy class to stationary policies would make the optimality claims of Theorems 6.2.1 and 6.2.3 a statement about a finite family and is ruled out: the comparison class is all history-dependent randomized policies.

Lemma 6.1.1 is Mathlib's isSaddlePointOn_value (Mathlib/Order/SaddlePoint.lean) and is not restated. The LP duality theorems of Chapter 1 are proved on the platform (LinearOptimization.lp_strong_duality, lp_complementary_slackness) and may be used. Useful contributions include: the reduction of Remark 6.1.1 (a fixed stationary opponent gives an MDP), the contracting-MDP facts it needs, and a proof of Theorem 6.2.1. The model definitions are reusable for any finite stochastic game.

Selected references

  • L. C. M. Kallenberg, Linear Programming and Finite Markovian Control Problems, Mathematical Centre Tracts 148, Mathematisch Centrum, Amsterdam, 1983, Chapter 6. https://ir.cwi.nl/pub/13008
  • L. S. Shapley, Stochastic games, Proceedings of the National Academy of Sciences 39 (1953) 1095–1100. https://doi.org/10.1073/pnas.39.10.1095
  • T. Parthasarathy and T. E. S. Raghavan, Finite algorithms for stochastic games, International Conference on Dynamic Programming, Vancouver, 1977; cited in Kallenberg 1983, p. 232. https://ir.cwi.nl/pub/13008
  • T. Parthasarathy and T. E. S. Raghavan, An order field property for stochastic games when one player controls the transition probabilities, Game Theory Conference, Cornell, 1978; cited in Kallenberg 1983, p. 233. https://ir.cwi.nl/pub/13008
7 thms2 active usersReviewed
🏆Completed
Linear OptimizationOperations ResearchOptimization·Captain: mikedeng1

Linear Programming and Finite Markovian Control Problems II: An Extreme Optimal Solution of the Dual Linear Program Yields a Pure Stationary Policy Optimal among Transient PoliciesTextbook

Why optimize only transient policies?

A Markov decision model describes a system that repeatedly occupies a state, receives a reward when an action is chosen, and then moves according to action-dependent probabilities. Termination may occur after any action. In a model with signed rewards, a policy that continues indefinitely can have a different total-reward behavior from one that eventually leaves the active states. Section 3.3 of Kallenberg's 1983 monograph therefore asks for the best policy within the transient class. The restriction occurs naturally in stopping problems: a decision maker may continue for a while, but the expected number of visits to each active state must remain finite.

The chapter relates that policy problem to a finite linear program. The central question is stronger than finding a policy with a large average over initial states. It asks for one policy that is optimal from every initial state among all transient policies, including policies that randomize and use the entire observed history. Kallenberg's Theorem 3.3.5 says that an extreme optimal point of the program identifies such a policy, and that the policy can be pure and stationary. Theorem 3.3.5, p. 57.

The finite model and its policies

Let E={1,…,N}E=\{1,\ldots,N\}E={1,…,N} be a nonempty finite state set. Each state iii has a finite nonempty set A(i)A(i)A(i) of available actions. If action a∈A(i)a\in A(i)a∈A(i) is selected, the system earns the real reward riar_{ia}ria​ and then moves to jjj with probability piaj≥0p_{iaj}\ge0piaj​≥0. The row sum ∑jpiaj\sum_jp_{iaj}∑j​piaj​ is at most one; any missing mass represents termination. Action sets can differ across states. These are the conventions of Section 2.2, pp. 19–20.

A policy RRR selects an action distribution at each decision epoch. It may depend on the entire state-action history. A Markov policy depends only on time and the current state; a stationary policy uses the same state-dependent distribution at every time; a pure stationary policy selects one action f(i)∈A(i)f(i)\in A(i)f(i)∈A(i) in each state. These four classes are denoted CCC, CMC_MCM​, CSC_SCS​, and CDC_DCD​. The first decision occurs at time t=1t=1t=1 in the book.

Write PR(Xt=j,Yt=a∣X1=i)\mathbb P_R(X_t=j,Y_t=a\mid X_1=i)PR​(Xt​=j,Yt​=a∣X1​=i) for the chance of being in state jjj and choosing action aaa at time ttt, given initial state iii. A policy is transient if the expected number of visits to each state is finite from every initial state:

∑t=1∞PR(Xt=j∣X1=i)<∞(i,j∈E).\sum_{t=1}^{\infty}\mathbb P_R(X_t=j\mid X_1=i)<\infty\qquad(i,j\in E).t=1∑∞​PR​(Xt​=j∣X1​=i)<∞(i,j∈E).

For such a policy, its expected total reward vi(R)v_i(R)vi​(R) is finite. Section 3.3 assumes that at least one transient policy exists. Its transient value is wi=sup⁡{vi(R):R transient}w_i=\sup\{v_i(R):R\text{ transient}\}wi​=sup{vi​(R):R transient}, which can still be infinite as the policy varies. Section 2.2, pp. 21–23; §3.3, pp. 49–50.

Formalization targets

Fix positive weights βj>0\beta_j>0βj​>0. The linear program (3.3.7) maximizes ∑i,ariaxia\sum_{i,a}r_{ia}x_{ia}∑i,a​ria​xia​ over nonnegative state-action arrays satisfying the flow equations

∑i∈E∑a∈A(i)(δij−piaj)xia=βj(j∈E).\sum_{i\in E}\sum_{a\in A(i)}(\delta_{ij}-p_{iaj})x_{ia}=\beta_j\qquad(j\in E).i∈E∑​a∈A(i)∑​(δij​−piaj​)xia​=βj​(j∈E).

Its feasible set is PPP. A transient stationary rule π\piπ has an occupation vector x(π)x(\pi)x(π), where xiax_{ia}xia​ is the β\betaβ-weighted expected number of visits to state-action pair (i,a)(i,a)(i,a). Theorem 3.3.3 identifies transient stationary rules bijectively with PPP and identifies extreme points with pure rules. Theorem 3.3.4 compares the occupation sets of all four policy classes: K(D)‾⊂K(S)=K(M)=K=P\overline{K(D)}\subset K(S)=K(M)=K=PK(D)​⊂K(S)=K(M)=K=P, where the bar means closed convex hull. Theorems 3.3.3–3.3.4, pp. 54–55.

The goal is Theorem 3.3.5, p. 57. If x∗x^*x∗ is an extreme optimal solution of that program and f∗(i)f_*(i)f∗​(i) is the action with xif∗(i)∗>0x^*_{i f_*(i)}>0xif∗​(i)∗​>0, then the pure stationary policy f∗∞f_*^\inftyf∗∞​ is transient and

vi(R)≤vi(f∗∞)for every transient policy R and every i∈E.v_i(R)\le v_i(f_*^\infty) \qquad\text{for every transient policy }R\text{ and every }i\in E.vi​(R)≤vi​(f∗∞​)for every transient policy R and every i∈E.

A stronger companion statement is Theorem 3.3.6, p. 58: under the correspondence of Theorem 3.3.3, a stationary policy is optimal transient exactly when its occupation vector is optimal for (3.3.7), in the two directions printed on the page. The milestone list follows the chapter's numbered results on the finite-value Bellman equation, the smallest superharmonic vector, the stationary-policy/LP correspondence, the four occupation sets, and the preservation of optimality. The goal itself does not assume that www is finite; the existence of an extreme LP optimum is its stated premise.

What the result gives

An LP optimum is a vector of occupation amounts, not an implementable policy by itself. Theorem 3.3.5 converts an extreme optimum into an action choice at each state. It also upgrades a scalar objective weighted by β\betaβ to simultaneous optimality of the resulting policy from every initial state. This is the bridge between the finite optimization problem and the original control problem. The scope is specifically transient optimality: Example 3.3.4, p. 58 gives a policy outside that comparison class with larger total reward.

The result is proved in the book. The work here is to give its model, occupation map, linear program, and numbered supporting statements precise Lean interfaces that can later receive machine-checked proofs. The reusable parts include finite substochastic MDP data, history-dependent policy semantics, transient visit sums, and state-action occupation vectors. The theorem proofs are open in this proposal.

Where the difficulty lies

Optimizing a weighted sum of rewards is not, by itself, the same as optimizing every state's reward. The linear program also describes flows of expected visits, while the theorem talks about actual policies and all initial states. A solver must account for both links without assuming that all policies are stationary. The geometry of an extreme feasible point matters because the theorem selects an action from each state using a positive coordinate. Existence of a transient policy does not by itself bound the supremum of transient rewards; Example 3.3.1, p. 50 makes that distinction explicit.

Formalization scope

Lean uses Fin N with N>0N>0N>0 for states and a finite action type with a state-dependent finite nonempty available-action set. Only available state-action pairs index occupation vectors and LP variables. Transition rows are substochastic, not necessarily stochastic. Rewards are real and may have either sign. A general policy is a normalized action kernel on full finite histories; its Markov, stationary, and pure stationary subclasses remain distinct. The history list is stored newest first, and Lean's time index zero corresponds to the book's time one. All state-action probabilities are finite sums over histories; transience is summability of state-visit probabilities, and occupation counts are infinite sums used under that condition.

The LP flow constraints are equalities and β\betaβ is strictly positive. The goal does not normalize β\betaβ to a probability distribution, matching (3.3.7); Theorem 3.3.4 uses the initial-distribution convention of p. 55 and hence normalizes it. Theorem 3.3.3 uses the matrix inverse (I−P(π))−1(I-P(\pi))^{-1}(I−P(π))−1 only for transient stationary rules. For Theorems 3.3.1–3.3.2, nonemptiness of the transient class and boundedness above of each transient reward set make the real supremum meaningful. Theorem 3.3.5 uses neither boundedness as an extra hypothesis nor a restriction of the comparison class to stationary policies. A formalization that compares f∗∞f_*^\inftyf∗∞​ only with stationary (or Markov) policies, or that identifies the classes CCC, CMC_MCM​, CSC_SCS​, CDC_DCD​, would make Theorems 3.3.4 and 3.3.5 much weaker or trivial, and is ruled out: the comparison class is every history-dependent randomized transient policy. Mathlib's finite sums, matrices, summability, convex hull, and extreme-point definitions provide the general library interface. Contributions establishing the policy/occupation identities and the chapter's numbered milestones are within scope.

Selected references

  • L. C. M. Kallenberg, Linear Programming and Finite Markovian Control Problems, Mathematical Centre Tracts 148, Mathematisch Centrum, Amsterdam, 1983, §§2.2 and 3.3, pp. 19–23 and 49–60. Publisher repository.
9 thms2 active usersReviewed
PreviousPage 5 of 7Next

Get started

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

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me