Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Fig. 2: policy iteration terminates at a stationary policy of maximal gain rate (B 7)

Proved
JewellMRP.GainRate.policy_iteration_optimal_gain_rate

by mikedeng1 · Sep 28, 2026 · Mathlib 0df444a (Lean v4.33.1)

average-rewardmarkov-renewalp2o-batch-p200bp2o-gran-per-chapterp2o-plan-paperp2o-v1policy-iterationsemi-markov-decision-process

Let a Markov-renewal program have N≥1N \ge 1N≥1 states, a finite nonempty set of alternatives, positive mean sojourn times νiz\nu^z_iνiz​, and an irreducible chain for every stationary policy (standing assumption 2). Consider any run of the algorithm of Fig. 2: policies z0,z1,z2,…z_0, z_1, z_2, \dotsz0​,z1​,z2​,… (with z0z_0z0​ arbitrary) and pairs (gk,vk)(g_k, v_k)(gk​,vk​) such that, for every kkk,

  1. (gk,vk)(g_k, v_k)(gk​,vk​) solves the value-determination equations (13) of zkz_kzk​, with vk,N=0v_{k,N} = 0vk,N​=0, and
  2. in each state iii, zk+1(i)z_{k+1}(i)zk+1​(i) maximizes the test quantity 1νiz{ρiz+∑jpijzvk,j−vk,i}\frac{1}{\nu^z_i}\{\rho^z_i + \sum_j p^z_{ij} v_{k,j} - v_{k,i}\}νiz​1​{ρiz​+∑j​pijz​vk,j​−vk,i​} over the alternatives zzz, and zk+1(i)=zk(i)z_{k+1}(i) = z_k(i)zk+1​(i)=zk​(i) whenever zk(i)z_k(i)zk​(i) already attains the maximum.

Then the algorithm terminates: there is a KKK with zK+1=zKz_{K+1} = z_KzK+1​=zK​. Moreover, whenever zK+1=zKz_{K+1} = z_KzK+1​=zK​, the number gKg_KgK​ is the gain rate of zKz_KzK​, and zKz_KzK​ is an optimal stationary policy: for every stationary policy z′z'z′ and all stationary probability vectors π\piπ of zKz_KzK​'s chain and π′\pi'π′ of z′z'z′'s chain,

gK=∑iπiρizK(i)∑kπkνkzK(k)  ≥  ∑iπi′ρiz′(i)∑kπk′νkz′(k).g_K = \frac{\sum_i \pi_i \rho^{z_K(i)}_i}{\sum_k \pi_k \nu^{z_K(k)}_k} \;\ge\; \frac{\sum_i \pi'_i \rho^{z'(i)}_i}{\sum_k \pi'_k \nu^{z'(k)}_k}.gK​=∑k​πk​νkzK​(k)​∑i​πi​ρizK​(i)​​≥∑k​πk′​νkz′(k)​∑i​πi′​ρiz′(i)​​.

This is the main algorithmic claim of the paper for the infinite-time undiscounted Markov-renewal program: policy iteration with the ratio test quantity finds a stationary policy whose gain rate is at least that of any other stationary policy.

Formalization Note The theorem quantifies over every run, i.e. over every choice among tied maximizers; only the retain-on-tie rule is imposed. The gain rate is the closed form (B 7); its interpretation as the long-run return per unit time (B 6) is not part of the statement.

Preamble
import Mathlib
import Definitions.Def_JewellMRP_GainRate_MRP
import Definitions.Def_JewellMRP_GainRate_PolicyIteration
Formal statement
namespace JewellMRP.GainRate
theorem policy_iteration_optimal_gain_rate {N : ℕ} [NeZero N] {α : Type*} [Fintype α]
    [Nonempty α] (M : MRP N α) (hM : M.IsErgodic) (z : ℕ → Fin N → α) (g : ℕ → ℝ)
    (v : ℕ → Fin N → ℝ) (hrun : M.IsPolicyIterationRun z g v) :
    (∃ K, z (K + 1) = z K) ∧
      ∀ K, z (K + 1) = z K →
        (∀ π : Fin N → ℝ, IsStationaryDist (M.policyMatrix (z K)) π →
            g K = M.gainRate (z K) π) ∧
          ∀ (z' : Fin N → α) (π π' : Fin N → ℝ),
            IsStationaryDist (M.policyMatrix (z K)) π →
            IsStationaryDist (M.policyMatrix z') π' →
            M.gainRate z' π' ≤ M.gainRate (z K) π := by sorry
end JewellMRP.GainRate
Source
Jewell, Markov-Renewal Programming. II: Infinite Return Models, Example, Oper. Res. 11 (1963), pp. 954-955 (algorithm claim and termination claim), p. 956 Fig. 2, p. 954 Eq. (B 7), p. 951 assumptions 1-3
Human review
  • Endorsed by Shuze Chen · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 1, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

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