p. 947 — the policy-iteration algorithm of Fig. 1 produces an optimal stationary policy as good as any nonstationary policy
ProvedJewellMRP.Discounted.policyIteration_optimal_stationaryLet a Markov-renewal program with finitely many states ( of them) and a nonempty finite set of alternatives ( of them) be given, and let . Then:
- for every stationary policy , the value-determination equations (15) of have exactly one solution;
- for every run of the algorithm of Fig. 1, there is a cycle with , and for that :
- the -step return of the stationary policy converges to as , for every choice of boundary rewards;
- for every nonstationary policy , every choice of boundary rewards and every state , the -step return converges to a limit with ;
- the optimal -step returns of (6) converge to , for every choice of boundary rewards:
The paper states: "Thus the algorithm of Fig. 1 produces an optimal, stationary policy that is as good as any optimal, nonstationary policy", resting on Claims (a)–(d) of p. 946 and the existence of an optimal stationary policy. Together these say that policy iteration solves the infinite-step discounted Markov-renewal program exactly, in finitely many cycles.
Formalization Note "Terminates in a finite number of cycles" is made explicit by the bound (the paper's count of stationary policies). "Optimal" is read as: the returned policy's return dominates the limiting return of every policy of the paper's class (deterministic, Markov, possibly nonstationary) from every state, and equals the "maximum expected, discounted returns" of (14). All limits are asserted to exist. The one-transition returns are arbitrary real data, a generalization of the paper's (4). The returns of policies are defined by the one-step recursion of (6).
import Mathlib import Definitions.Def_JewellMRP_Discounted_MRP import Definitions.Def_JewellMRP_Discounted_PolicyIteration open Filter Topology
namespace JewellMRP.Discounted
/-- p. 947 with Claims (a)–(d) of p. 946: for `α > 0`, the value-determination equations (15)
of every stationary policy are uniquely solvable, and every run of the algorithm of Fig. 1
reaches two identical successive policies `d K = d (K + 1)` within at most `Z^N` cycles; the
stationary policy `d K` then has limiting return `v K`, which is at least the limiting return
of every nonstationary policy and equals the limit of the optimal `n`-step returns of (6). -/
theorem policyIteration_optimal_stationary {S A : Type*} [Fintype S] [DecidableEq S]
[Fintype A] [Nonempty A] (M : MRP S A) {α : ℝ} (hα : 0 < α) :
(∀ d : S → A, ∃! v : S → ℝ, SolvesEval M α d v) ∧
∀ (d : ℕ → S → A) (v : ℕ → S → ℝ), IsFig1Run M α d v →
∃ K, K < Fintype.card (S → A) ∧ d (K + 1) = d K ∧
(∀ V0 : S → ℝ,
Tendsto (fun n => policyReturn M α (fun _ => d K) V0 n) atTop (𝓝 (v K))) ∧
(∀ (π : ℕ → S → A) (V0 : S → ℝ) (i : S), ∃ x : ℝ,
Tendsto (fun n => policyReturn M α π V0 n i) atTop (𝓝 x) ∧ x ≤ v K i) ∧
(∀ V0 : S → ℝ, Tendsto (optValue M α V0) atTop (𝓝 (v K))) := by sorry
end JewellMRP.Discounted
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Throughout, the names , , , and come from two imported definition files. Those files are not part of the code supplied here. The statement uses them only as opaque predicates and functions, so what each one means rests entirely on those definitions. They are described below only by how they are applied.
Setting. Let (the "states") and (the "actions") be types. is finite and has decidable equality. is finite and nonempty. Let be an object of type , and let be a real number with . No upper bound is placed on . A decision rule is a function . There are exactly decision rules. A policy is a sequence of decision rules, indexed by . A terminal vector is any . For a policy , a terminal vector , a horizon and a state , write for the real number . For each , write for .
The theorem asserts the conjunction of two claims.
-
Unique evaluation. For every decision rule there is exactly one such that holds.
-
Behaviour of every run. Take any sequence of decision rules and any sequence of vectors such that holds. Then there exists a natural number with all of the following properties:
- , the number of functions (a strict inequality);
- , as functions on ;
- Let be the stationary policy that uses at every step. For every terminal vector :
This is convergence in $\mathbb{R}^S$, which here means convergence at every state $i$.
- For every policy (stationary or not), every terminal vector and every state , there is a real number with
The number $x$ may depend on $\pi$, $V_0$ and $i$. In particular, this says that the return of *every* policy converges at every state to a finite real limit. It does not say that such a limit fails to exist.
- For every terminal vector :
again as convergence in $\mathbb{R}^S$.
The statement does not directly say that is the unique solution from claim 1 for . Any such link would have to come from the definition of . The inequality is non-strict. is only asserted to exist; it is not stated to be the first index at which two successive decision rules coincide.
Degenerate cases. The type can never be empty. If has exactly one element, or if is empty, there is only one decision rule. Then , so , and holds automatically. If is empty, has a single element. In that case every "exists exactly one " is automatically true, every limit statement is trivially true, and the quantifier over states is empty. So when is empty, the theorem reduces to claim 2 holding for whatever runs admits. If is satisfied by no pair of sequences for a given and , then claim 2 is vacuously true, and only claim 1 has content. Whether that happens depends on the imported definitions, which are not visible here. Likewise, the statement contains no conditions on , such as nonnegativity or summing to one of any transition data. Any such conditions would have to be built into the type or the other definitions. The horizon is included in each sequence, but it does not affect any of the limits. The statement's own text contains no division, natural-number subtraction, integral or supremum. Any such junk-value behaviour would sit inside the imported definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.