Claim (d), p. 946 — the algorithm of Fig. 1 terminates in a finite number of cycles
ProvedJewellMRP.Discounted.claim_d_finite_terminationLet a Markov-renewal program with states and alternatives be given and let . For every run of the algorithm of Fig. 1 (each solves (15) for , and is obtained from and by the policy-improvement step with the retention rule), there is a cycle with
where is the number of stationary policies.
The paper writes "(d) The algorithm terminates in a finite number of cycles", justified by "the fact that there are only a finite number of policies". The bound makes "finite" explicit using the paper's own count of stationary policies (p. 946: "there are of them").
Formalization Note The algorithm is modelled as an infinite sequence of cycles; termination means that two successive policies coincide, which is the "Done" test of Fig. 1. The retention rule is essential: without it the iterates may alternate forever between two policies that tie. The bound is written as less than the cardinality of the type of maps from states to alternatives.
import Mathlib import Definitions.Def_JewellMRP_Discounted_MRP import Definitions.Def_JewellMRP_Discounted_PolicyIteration open Filter Topology
namespace JewellMRP.Discounted
/-- Claim (d), p. 946: every run of the algorithm of Fig. 1 produces two identical successive
policies within at most as many cycles as there are stationary policies. -/
theorem claim_d_finite_termination {S A : Type*} [Fintype S] [DecidableEq S] [Fintype A]
[Nonempty A] (M : MRP S A) {α : ℝ} (hα : 0 < α) {d : ℕ → S → A} {v : ℕ → S → ℝ}
(hrun : IsFig1Run M α d v) :
∃ K, K < Fintype.card (S → A) ∧ d (K + 1) = d K := by sorry
end JewellMRP.Discounted
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
This theorem concerns a structure as follows:
- a finite state set and a finite, nonempty alternative set ;
- row-stochastic matrices ;
- probability measures supported on ;
- arbitrary returns.
Take any real , a sequence of stationary policies and a sequence of vectors . The hypothesis is that they form a run: for every , both of these hold.
- solves for all .
- is an improvement of with respect to . That is, attains in every state, and whenever already attains it.
Here is the test quantity with .
The conclusion is that there exists an index with
The bound is the number of stationary policies. The statement says nothing about the policies after .
Degenerate cases: the case is excluded. If is empty, then , and works because all policies coincide. If has one element, works for the same reason. The hypothesis also requires a solution to exist for every .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.