Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.1 — under r-rectangularity, VI-PI converges to v* = F(v*), z* = p₀ᵀv*, and its stopping rule yields an ε-optimal deterministic policy

Proved
FactorRMDP.ValueIter.theorem_5_1

by mikedeng1 · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

dynamic-programmingmarkov-decision-processp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1robust-mdpvalue-iteration

Consider a robust MDP whose factor matrix uncertainty set is r-rectangular, W=W1×⋯×Wr\mathcal W = \mathcal W^1\times\cdots\times\mathcal W^rW=W1×⋯×Wr, and a discount factor λ∈(0,1)\lambda\in(0,1)λ∈(0,1). Let FFF be the operator

F(v)s=max⁡a∈A{rsa+λ∑i=1rusaimin⁡wi∈Wiwi⊤v},F(v)_s = \max_{a\in\mathbb A}\Big\{ r_{sa} + \lambda\sum_{i=1}^r u^i_{sa}\min_{w_i\in\mathcal W^i} w_i^\top v\Big\},F(v)s​=a∈Amax​{rsa​+λi=1∑r​usai​wi​∈Wimin​wi⊤​v},

and let Algorithm VI-PI be v0=0v^0 = 0v0=0, vk+1=F(vk)v^{k+1} = F(v^k)vk+1=F(vk). Put θ(ε)=ε(1−λ)(2λ)−1\theta(\varepsilon) = \varepsilon(1-\lambda)(2\lambda)^{-1}θ(ε)=ε(1−λ)(2λ)−1. Then:

  1. FFF has a unique fixed point v∗v^*v∗, and p0⊤v∗p_0^\top v^*p0⊤​v∗ is the optimal value of the policy improvement problem: z∗=max⁡π∈Πz(π)=p0⊤v∗z^* = \max_{\pi\in\Pi} z(\pi) = p_0^\top v^*z∗=maxπ∈Π​z(π)=p0⊤​v∗, the maximum being attained.
  2. vk→v∗v^k \to v^*vk→v∗.
  3. For every ε>0\varepsilon>0ε>0 and kkk, if ∥vk+1−vk∥∞<θ(ε)\|v^{k+1}-v^k\|_\infty < \theta(\varepsilon)∥vk+1−vk∥∞​<θ(ε), then ∥vk+1−v∗∥∞≤ε\|v^{k+1}-v^*\|_\infty\le\varepsilon∥vk+1−v∗∥∞​≤ε, and every deterministic policy ddd computed by VI-PI at that iteration, i.e. with vsk+1=rs d(s)+λ∑ius d(s)imin⁡wi∈Wiwi⊤vkv^{k+1}_s = r_{s\,d(s)} + \lambda\sum_i u^i_{s\,d(s)}\min_{w_i\in\mathcal W^i}w_i^\top v^kvsk+1​=rsd(s)​+λ∑i​usd(s)i​minwi​∈Wi​wi⊤​vk for all sss, is ε\varepsilonε-optimal: R(d,W)≥z∗−εR(d,W)\ge z^*-\varepsilonR(d,W)≥z∗−ε for every W∈WW\in\mathcal WW∈W.
  4. For every ε>0\varepsilon>0ε>0, if all rewards are at most Rmax⁡R_{\max}Rmax​ and λkRmax⁡<θ(ε)\lambda^k R_{\max} < \theta(\varepsilon)λkRmax​<θ(ε), then ∥vk+1−vk∥∞<θ(ε)\|v^{k+1}-v^k\|_\infty<\theta(\varepsilon)∥vk+1−vk∥∞​<θ(ε): the stopping test is passed after O(log⁡ε−1)O(\log \varepsilon^{-1})O(logε−1) iterations.

So value iteration on FFF returns an ε\varepsilonε-optimal solution and an ε\varepsilonε-optimal deterministic policy for the robust MDP problem.

Formalization Note The paper's count of arithmetic operations, O(rSAlog⁡ε−1+∑icomp(Wi)log⁡2ε−1)O\big(rSA\log\varepsilon^{-1} + \sum_i \mathrm{comp}(\mathcal W^i)\log^2\varepsilon^{-1}\big)O(rSAlogε−1+∑i​comp(Wi)log2ε−1), counts calls to the optimization oracle of Assumption 2.4 and is not formalized; the iteration count is stated explicitly (item 4). The policy clause uses the policy VI-PI computes at iteration k+1k+1k+1 (greedy with respect to vkv^kvk). Norms on S → ℝ are sup norms. Rewards are nonnegative and A\mathbb AA is nonempty (fields of the model).

Preamble
import Mathlib
import Definitions.Def_FactorRMDP_ValueIter_Model
Formal statement
namespace FactorRMDP.ValueIter

open Matrix Filter Topology

/-- Theorem 5.1 (Goyal and Grand-Clément, arXiv:1811.00215v8, pp. 9–10), by its mathematical
content. Let the uncertainty set be r-rectangular and let `v^k = F^k(0)` be the iterates of Algorithm
VI-PI. Then:
1. `F` has a unique fixed point `v*`, and `p₀ᵀv*` is the optimal value `z* = max_{π ∈ Π} z(π)` of
   the policy improvement problem (the maximum is attained);
2. `v^k → v*`;
3. (stopping rule, p. 10) for `ε > 0`, if `‖v^{k+1} − v^k‖_∞ < ε(1 − λ)(2λ)⁻¹` then
   `‖v^{k+1} − v*‖_∞ ≤ ε`, and every deterministic policy `d` computed by VI-PI at that iteration
   (an action attaining the maximum in the update `v^{k+1} = F(v^k)` at every state) is `ε`-optimal:
   `R(d, W) ≥ z* − ε` for every `W ∈ 𝒲`;
4. (iteration count) if every reward is at most `R_max` and `λ^k R_max < ε(1 − λ)(2λ)⁻¹`, the
   stopping test holds at iteration `k`; this is the explicit form of "after at most `O(log ε⁻¹)`
   iterations".
The paper's count of arithmetic operations (which counts calls to the oracle of Assumption 2.4) is not
formalized. -/
theorem theorem_5_1 {S A : Type*} [Fintype S] [Fintype A] [DecidableEq S] [DecidableEq A]
    [Nonempty A] {r : ℕ} (M : Model S A r) (hR : M.IsRRect) {lam : ℝ} (hlam0 : 0 < lam)
    (hlam1 : lam < 1) :
    let v : ℕ → S → ℝ := fun k => M.viPI lam k
    let thr : ℝ → ℝ := fun ε => ε * (1 - lam) / (2 * lam)
    ∃ vstar : S → ℝ,
      M.F lam vstar = vstar ∧ (∀ w : S → ℝ, M.F lam w = w → w = vstar) ∧
      IsGreatest (M.z lam '' Policies S A) (M.p0 ⬝ᵥ vstar) ∧
      Tendsto v atTop (𝓝 vstar) ∧
      (∀ ε > 0, ∀ k : ℕ, ‖v (k + 1) - v k‖ < thr ε →
        ‖v (k + 1) - vstar‖ ≤ ε ∧
        ∀ d : S → A, (∀ s, v (k + 1) s =
            M.rew s (d s) + lam * ∑ i, M.u i s (d s) * M.minFactor i (v k)) →
          ∀ W ∈ M.Wset, M.p0 ⬝ᵥ vstar - ε ≤ M.R lam (fun s a => if a = d s then 1 else 0) W) ∧
      (∀ ε > 0, ∀ Rmax : ℝ, (∀ s a, M.rew s a ≤ Rmax) → ∀ k : ℕ, lam ^ k * Rmax < thr ε →
        ‖v (k + 1) - v k‖ < thr ε) := by sorry

end FactorRMDP.ValueIter
Source
Goyal and Grand-Clément, Robust Markov Decision Process: Beyond Rectangularity, arXiv:1811.00215v8 (2021), p. 9, Theorem 5.1, (VI-PI); proof and running time, pp. 9–10
Human review
  • Endorsed by Shuze Chen · Oct 14, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 14, 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