Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 3 — the optimistic value function depends on the current state alone, Π_MD suffices, and recursion (18) holds

Proved
RobustDP.FiniteHorizon.theorem3_optimistic

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

dynamic-programmingmarkov-decision-processesp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1robust-optimization

For a finite horizon AMDP with horizon NNN, let Vˉnπ(hn)=sup⁡P∈TnπEP[∑t=nN−1rt+rN(sN)]\bar V^\pi_n(h_n)=\sup_{\mathbf P\in\mathcal T^\pi_n}E^{\mathbf P}[\sum_{t=n}^{N-1}r_t+r_N(s_N)]Vˉnπ​(hn​)=supP∈Tnπ​​EP[∑t=nN−1​rt​+rN​(sN​)] be the optimistic value of a policy and Vˉn∗(hn)=sup⁡πVˉnπ(hn)\bar V^*_n(h_n)=\sup_\pi\bar V^\pi_n(h_n)Vˉn∗​(hn​)=supπ​Vˉnπ​(hn​) the optimistic value function, the supremum taken over all history dependent randomized policies. Then there is a function Vˉn∗(s)\bar V^*_n(s)Vˉn∗​(s) of the epoch and the state such that:

  1. for n=0,…,Nn=0,\dots,Nn=0,…,N and every history hnh_nhn​, Vˉn∗(hn)=Vˉn∗(sn)\bar V^*_n(h_n)=\bar V^*_n(s_n)Vˉn∗​(hn​)=Vˉn∗​(sn​) depends on the current state alone;
  2. for n∈T={0,…,N−1}n\in T=\{0,\dots,N-1\}n∈T={0,…,N−1}, the optimistic value Vˉnπ(hn)\bar V^\pi_n(h_n)Vˉnπ​(hn​) of a deterministic Markov policy depends on hnh_nhn​ only through sns_nsn​, and Vˉn∗(sn)=sup⁡π∈ΠMDVˉnπ(sn)\bar V^*_n(s_n)=\sup_{\pi\in\Pi_{MD}}\bar V^\pi_n(s_n)Vˉn∗​(sn​)=supπ∈ΠMD​​Vˉnπ​(sn​);
  3. for n∈Tn\in Tn∈T and every state sss,
Vˉn∗(s)=sup⁡a∈An(s) sup⁡p∈Pn(s,a) ∑s′p(s′)[rn(s,a,s′)+Vˉn+1∗(s′)].(18)\bar V^*_n(s)=\sup_{a\in\mathcal A_n(s)}\ \sup_{p\in\mathcal P_n(s,a)}\ \sum_{s'}p(s')\big[r_n(s,a,s')+\bar V^*_{n+1}(s')\big].\tag{18}Vˉn∗​(s)=a∈An​(s)sup​ p∈Pn​(s,a)sup​ s′∑​p(s′)[rn​(s,a,s′)+Vˉn+1∗​(s′)].(18)

It is the optimistic counterpart of Theorem 2 announced in Remark 1.

Formalization Note The state-only function is an existentially quantified W(n,s)W(n,s)W(n,s); the theorem asserts that the history-based value equals it. Clause 2 makes explicit that the page's notation Vˉnπ(sn)\bar V^\pi_n(s_n)Vˉnπ​(sn​) for Markov policies is well defined.

Preamble
import Mathlib
import Definitions.Def_RobustDP_FiniteHorizon_Value
Formal statement
namespace RobustDP.FiniteHorizon

/-- Theorem 3 (Iyengar, TR-2002-07, p. 8), the optimistic analogue of Theorem 2. There is a
function `W(n, s)` (the state-only optimistic value `V̄*_n(s)`) such that:
1. for all `n = 0, …, N`, `V̄*_n(h_n) = W(n, s_n)`;
2. for `n ∈ T`, the optimistic value `V̄^π_n(h_n)` of a deterministic Markov policy depends on
   `h_n` only through `s_n`, and `W(n, s_n) = sup_{π ∈ Π_{MD}} V̄^π_n(s_n)`;
3. for `n ∈ T`, (18): `W(n, s) = sup_{a ∈ A(s)} sup_{p ∈ P_n(s, a)} E^p[r_n(s, a, s') + W(n + 1, s')]`. -/
theorem theorem3_optimistic {S A : Type*} [Countable S] [Countable A] (M : AMDP S A) :
    ∃ W : ℕ → S → ℝ,
      (∀ n ≤ M.N, ∀ h : History S A n, VbarStar M n h = W n h.cur) ∧
      (∀ n < M.N, ∀ π : Policy M, IsDetMarkov π →
        ∀ h h' : History S A n, h.cur = h'.cur → Vbar M π n h = Vbar M π n h') ∧
      (∀ n < M.N, ∀ h : History S A n,
        W n h.cur = ⨆ π : {π : Policy M // IsDetMarkov π}, Vbar M π.1 n h) ∧
      (∀ n < M.N, ∀ s : S,
        W n s =
          ⨆ a : M.Aset n s,
            ⨆ p : M.P n s a, expect (p : PMF S) (fun s' => M.r n s a s' + W (n + 1) s')) := by sorry

end RobustDP.FiniteHorizon
Source
Iyengar, Robust dynamic programming, CORC Tech Report TR-2002-07 (rev. May 4, 2004), p. 8, Theorem 3, eq. (18); optimistic values (6)–(7), p. 5
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

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