Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§ The Optimal Policy with Discounting, p. 946 — among all policies of the infinite-step discounted problem there is an optimal stationary policy

Proved
JewellMRP.Discounted.exists_optimal_stationary

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

dynamic-programmingmarkov-renewal-processoptimal-policyp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1stationary-policy

Let a Markov-renewal program be given and let α>0\alpha > 0α>0. There is a stationary policy ddd with return vvv (the solution of (15) for ddd) such that for every nonstationary policy π=(π0,π1,… )\pi = (\pi_0, \pi_1, \dots)π=(π0​,π1​,…), every vector of boundary rewards V0V^0V0 and every state iii, the nnn-step return Viπ(n)V^\pi_i(n)Viπ​(n) converges as n→∞n \to \inftyn→∞ to a limit xxx with

x≤vi.x \le v_i .x≤vi​.

The paper writes: "among all the optimal policies for the infinite-step or infinite-time discounted case, there exists an optimal, stationary policy". This is the statement that restricting attention to stationary policies, as the algorithm of Fig. 1 does, loses nothing.

Formalization Note Only the infinite-step case is formalized; the infinite-time case uses the continuous-time returns vi(t,α)v_i(t,\alpha)vi​(t,α) of (10), which are outside this mission. The comparison class is the paper's: deterministic Markov policies, possibly depending on the number of transitions made. The limit of the return of every such policy is asserted to exist, not assumed.

Preamble
import Mathlib
import Definitions.Def_JewellMRP_Discounted_MRP
import Definitions.Def_JewellMRP_Discounted_PolicyIteration

open Filter Topology
Formal statement
namespace JewellMRP.Discounted

/-- § The Optimal Policy with Discounting, p. 946: in the infinite-step discounted problem there
is a stationary policy `d` whose return `v` (the solution of (15)) is at least the limiting
return of every, possibly nonstationary, policy, from every state and for all boundary
rewards. -/
theorem exists_optimal_stationary {S A : Type*} [Fintype S] [Fintype A] [Nonempty A]
    (M : MRP S A) {α : ℝ} (hα : 0 < α) :
    ∃ (d : S → A) (v : S → ℝ), SolvesEval M α d v ∧
      ∀ (π : ℕ → S → A) (V0 : S → ℝ) (i : S), ∃ x : ℝ,
        Tendsto (fun n => policyReturn M α π V0 n i) atTop (𝓝 x) ∧ x ≤ v i := by sorry

end JewellMRP.Discounted
Source
Jewell, Markov-Renewal Programming. I: Formulation, Finite Return Models, Operations Research 11(6), 1963, pp. 946-947, The Optimal Policy with Discounting
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

This theorem concerns a structure MMM as follows:

  • a finite state set SSS and a finite, nonempty alternative set AAA;
  • row-stochastic matrices pzp^zpz;
  • probability measures FijzF^z_{ij}Fijz​ supported on (0,∞)(0,\infty)(0,∞);
  • arbitrary returns ρijz(α)\rho^z_{ij}(\alpha)ρijz​(α).

Write the test quantity as

Tiz(α,u)=∑jpijzρijz(α)+∑jpijzf~ijz(α)uj,f~ijz(α)=∫(0,∞)e−αt dFijz(t).T^z_i(\alpha,u) = \sum_j p^z_{ij}\rho^z_{ij}(\alpha) + \sum_j p^z_{ij}\tilde f^z_{ij}(\alpha)u_j, \qquad \tilde f^z_{ij}(\alpha)=\int_{(0,\infty)}e^{-\alpha t}\,dF^z_{ij}(t).Tiz​(α,u)=j∑​pijz​ρijz​(α)+j∑​pijz​f~​ijz​(α)uj​,f~​ijz​(α)=∫(0,∞)​e−αtdFijz​(t).

Take any real α>0\alpha > 0α>0. The theorem asserts that there are a stationary policy d:S→Ad : S \to Ad:S→A and a vector v∈RSv \in \mathbb{R}^Sv∈RS with two properties.

  1. vi=Tid(i)(α,v)v_i = T^{d(i)}_i(\alpha, v)vi​=Tid(i)​(α,v) for all iii.
  2. Take any sequence of decision rules π=(π0,π1,… )\pi = (\pi_0, \pi_1, \dots)π=(π0​,π1​,…) with πk:S→A\pi_k : S \to Aπk​:S→A, any boundary vector V0V^0V0 and any state iii. Then the nnn-step return Vnπ(i)V^{\pi}_n(i)Vnπ​(i) converges as n→∞n \to \inftyn→∞ to some real number xxx, and x≤vix \le v_ix≤vi​. The return is defined by
V0π=V0,Vn+1π(i)=Tiπ0(i)(α,Vn(π1,π2,… )).V^{\pi}_0 = V^0, \qquad V^{\pi}_{n+1}(i) = T^{\pi_0(i)}_i\big(\alpha, V^{(\pi_1,\pi_2,\dots)}_n\big).V0π​=V0,Vn+1π​(i)=Tiπ0​(i)​(α,Vn(π1​,π2​,…)​).

So π0\pi_0π0​ governs the first transition, πn−1\pi_{n-1}πn−1​ governs the last, and V0V^0V0 comes after the last.

The limit xxx may depend on π\piπ, V0V^0V0 and iii. The policies compared are exactly the sequences of state-dependent decision rules indexed by transition number. The statement does not cover rules that depend on the past history, nor randomized rules.

Degenerate cases: the case α≤0\alpha \le 0α≤0 is excluded. If SSS is empty, the statement is trivial. At n=0n = 0n=0 the return equals V0V^0V0, but only the limit as n→∞n \to \inftyn→∞ is compared with vvv.

Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me