Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3.1 — Distributional optimality and an attained saddle

Proved
XuDRMDP.Finite.theorem_3_1

by Shuze Chen · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

distributionally-robust-optimizationmarkov-decision-processp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let SSS be a finite nonempty staged state set with finite nonempty action sets AsA_sAs​, initial stage consisting of sinis^{ini}sini alone, finite horizon T≥1T\ge1T≥1, zero terminal rewards and discount 0<γ≤10<\gamma\le10<γ≤1. Assume the nested local parameter sets Ps1⊆⋯⊆PsnP_s^1\subseteq\cdots\subseteq P_s^nPs1​⊆⋯⊆Psn​ (n≥1n\ge1n≥1) are nonempty, convex and compact sets of valid transition/reward vectors. Local sets may couple all actions. Let 0=λ0≤λ1≤⋯≤λn=10=\lambda_0\le\lambda_1\le\cdots\le\lambda_n=10=λ0​≤λ1​≤⋯≤λn​=1. The local class CsC_sCs​ consists of all Borel probability laws supported on PsnP_s^nPsn​ with μs(Psi)≥λi\mu_s(P_s^i)\ge\lambda_iμs​(Psi​)≥λi​, and CSC_SCS​ consists of their statewise product laws. Policies are all history-dependent randomized policies on state/action histories, including null histories. Returns are the independent finite trajectory expectations, subsequently integrated against the parameter law.

Let π∗\pi^*π∗ be any S-robust policy: after every admissible nonterminal history its mixed action maximizes the local worst continuation value in Definition 3.2's backward recursion over P^s\widehat P_sPs​. Then:

  1. For every policy π\piπ, inf⁡μ∈CSW(π,μ)≤inf⁡μ∈CSW(π∗,μ)\inf_{\mu\in C_S}W(\pi,\mu)\le\inf_{\mu\in C_S}W(\pi^*,\mu)infμ∈CS​​W(π,μ)≤infμ∈CS​​W(π∗,μ).
  2. There exists one μ∗∈CS\mu^*\in C_Sμ∗∈CS​ with
sup⁡π∈ΠHRW(π,μ∗)=W(π∗,μ∗)=inf⁡μ∈CSW(π∗,μ).\sup_{\pi\in\Pi^{HR}}W(\pi,\mu^*)=W(\pi^*,\mu^*)=\inf_{\mu\in C_S}W(\pi^*,\mu).π∈ΠHRsup​W(π,μ∗)=W(π∗,μ∗)=μ∈CS​inf​W(π∗,μ).

The Lean saddle predicate gives membership and the equivalent inequalities W(π,μ∗)≤W(π∗,μ∗)≤W(π∗,μ)W(\pi,\mu^*)\le W(\pi^*,\mu^*)\le W(\pi^*,\mu)W(π,μ∗)≤W(π∗,μ∗)≤W(π∗,μ) for every competitor on each side. Since the witness and the chosen policy belong to their domains, these inequalities assert both equalities and their attainment, using the same witness.

Differences from the source:

  • encoding: finite states and state-dependent actions, one-based staged histories, and expected discounted trajectory returns → nonempty Fin types, zero-based stages, total policy extensions on unused histories, and explicit finite trajectory sums followed by Bochner integration; reason: finite relabeling and unused extensions preserve all source instances; compact outer support ensures integrability and finite bounded returns
  • reading: Definition 3.2 displays (r,p) in the weighted sum but (p,r) in its membership condition → consistent (p,r) coordinates in the reduction set; reason: Lemma 3.3 and its proof fix the intended order; see insight I1
  • encoding: attained minimum and maximum in the S-robust recursion and infima in distributional optimality → real infima and suprema of nonempty bounded images, and the all-competitor local maximizer predicate; reason: compact sets and finite simplices give finite attained extrema; the predicate retains every maximizing action
  • reading: Theorem 3.1 prose uses the local subscript C_s → the global product-law class C_S in both conclusions; reason: the displayed integral and the product-law construction in the proof require the global class; see insight I2
  • encoding: two equalities involving policy supremum and distribution infimum → membership and all-competitor saddle inequalities for the same witness; reason: the witness itself attains each extremum, so the encodings are equivalent
Preamble
import Definitions.Def_XuDRMDP_Finite_Setup
import Definitions.Def_XuDRMDP_Finite_Policies
import Definitions.Def_XuDRMDP_Finite_Ambiguity
import Definitions.Def_XuDRMDP_Finite_Returns
import Definitions.Def_XuDRMDP_Finite_Robustness
open MeasureTheory
Formal statement
namespace XuDRMDP.Finite

theorem theorem_3_1 {n : ℕ} [NeZero n] {a : Fin n → ℕ} [∀ s, NeZero (a s)]
    (G : Setup n a) (U : Uncertainty G) (π : Policy a) (hπ : SRobust U π) :
    DistributionallyRobust U π ∧ ∃ ν : Measure (Parameters n a), Saddle U π ν := by sorry

end XuDRMDP.Finite
Source
Xu and Mannor (2012), Distributionally Robust Markov Decision Processes, Mathematics of Operations Research 37(2), 288–300, DOI:10.1287/moor.1120.0540. Published basis; printed page = PDF page + 287. Theorem 3.1, printed p. 291 (PDF p. 4).
Read-back

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

The statement concerns a finite-horizon, staged decision problem with n≥1n \ge 1n≥1 states {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1}. Each state sss has an action set As={0,…,as−1}A_s = \{0,\dots,a_s-1\}As​={0,…,as​−1} with as≥1a_s \ge 1as​≥1. All other objects are arbitrary inputs:

  • The setup GGG gives:

    • a horizon T∈NT \in \mathbb{N}T∈N with T>0T > 0T>0;
    • a discount factor λ\lambdaλ with 0<λ≤10 < \lambda \le 10<λ≤1, so λ=1\lambda = 1λ=1 is allowed;
    • a stage map σ\sigmaσ from states to N\mathbb{N}N with σ(s)<T\sigma(s) < Tσ(s)<T for every sss;
    • an initial state s0s_0s0​ with σ(s0)=0\sigma(s_0) = 0σ(s0​)=0, which is the only state of stage 000.

    Stages need not be contiguous or surjective.

  • Local parameters. A local parameter at state sss is a pair xs=(ps,rs)x_s = (p_s, r_s)xs​=(ps​,rs​):

    • ps(b,j)∈Rp_s(b, j) \in \mathbb{R}ps​(b,j)∈R is a "transition" entry for each action b∈Asb \in A_sb∈As​ and state jjj;
    • rs(b)∈Rr_s(b) \in \mathbb{R}rs​(b)∈R is a "reward" for each action bbb.

    A global parameter x=(xs)sx = (x_s)_sx=(xs​)s​ picks one local parameter per state.

  • Valid local parameters. xsx_sxs​ is valid at sss when all three of the following hold:

    1. There is some object of the imported general discounted-MDP type, with the same state and action sets, whose transition and reward components at sss equal (ps,rs)(p_s, r_s)(ps​,rs​). That type's definition is not shown here; its accompanying comment describes the transition rows as probability rows.
    2. If σ(s)+1=T\sigma(s) + 1 = Tσ(s)+1=T, then rs(b)=0r_s(b) = 0rs​(b)=0 for every bbb.
    3. If σ(s)+1<T\sigma(s) + 1 < Tσ(s)+1<T, then ps(b,j)=0p_s(b, j) = 0ps​(b,j)=0 for every bbb and every jjj with σ(j)≠σ(s)+1\sigma(j) \ne \sigma(s) + 1σ(j)=σ(s)+1.
  • The uncertainty UUU gives:

    • a number L∈NL \in \mathbb{N}L∈N, so there are layers 0,…,L0,\dots,L0,…,L;
    • confidence levels ε0≤ε1≤⋯≤εL=1\varepsilon_0 \le \varepsilon_1 \le \dots \le \varepsilon_L = 1ε0​≤ε1​≤⋯≤εL​=1, all ≥0\ge 0≥0;
    • for each state sss and layer iii, a set CsiC_s^iCsi​ of local parameters at sss.

    Each CsiC_s^iCsi​ is nonempty, convex and compact, and every element of it is valid at sss. The sets are nested: Cs0⊆Cs1⊆⋯⊆CsLC_s^0 \subseteq C_s^1 \subseteq \dots \subseteq C_s^LCs0​⊆Cs1​⊆⋯⊆CsL​.

  • Ambiguity sets of distributions.

    • The local class Ms\mathcal{M}_sMs​ consists of all probability measures μ\muμ on local parameters at sss (standard product/Borel σ\sigmaσ-algebra) with μ(CsL)=1\mu(C_s^L) = 1μ(CsL​)=1 and μ(Csi)≥εi\mu(C_s^i) \ge \varepsilon_iμ(Csi​)≥εi​ for every iii.
    • The global class N\mathcal{N}N consists of exactly the product measures ν=⨂sμs\nu = \bigotimes_s \mu_sν=⨂s​μs​ with every μs∈Ms\mu_s \in \mathcal{M}_sμs​∈Ms​.

Histories and policies. A history hhh is a finite list of past (state, action) pairs together with a current state shs_hsh​, which has no action yet.

  • The initial history is the empty list with current state s0s_0s0​.
  • A history is admissible if it is obtained from the initial history by repeatedly appending the current pair (sh,b)(s_h, b)(sh​,b) and moving to a state jjj with σ(j)=σ(sh)+1\sigma(j) = \sigma(s_h) + 1σ(j)=σ(sh​)+1. Transition values play no role in admissibility.
  • A policy π\piπ assigns to every history hhh, admissible or not, a mixed action π(h)\pi(h)π(h): a probability vector on AshA_{s_h}Ash​​, meaning nonnegative entries summing to 111.
  • Policies see only past states and actions, never rewards or the parameter xxx.

Return of a policy. For a global parameter xxx and a history hhh, set k=T−1−σ(sh)k = T - 1 - \sigma(s_h)k=T−1−σ(sh​). This is exact, since σ(sh)≤T−1\sigma(s_h) \le T-1σ(sh​)≤T−1. The return u(π,x,h)u(\pi, x, h)u(π,x,h) is a sum over all sequences z=((s0′,b0),…,(sk−1′,bk−1))z = ((s_0', b_0), \dots, (s_{k-1}', b_{k-1}))z=((s0′​,b0​),…,(sk−1′​,bk−1​)) of kkk state-action pairs and all final states jjj, of a probability weight times ∑t<kλt rst′(bt)\sum_{t<k} \lambda^t\, r_{s_t'}(b_t)∑t<k​λtrst′​​(bt​).

The weight is nonzero only when all three of the following hold:

  • σ(st′)=σ(sh)+t\sigma(s_t') = \sigma(s_h) + tσ(st′​)=σ(sh​)+t for every ttt;
  • s0′=shs_0' = s_hs0′​=sh​ when k>0k > 0k>0;
  • σ(j)=σ(sh)+k=T−1\sigma(j) = \sigma(s_h) + k = T-1σ(j)=σ(sh​)+k=T−1.

In that case the weight equals

∏t<kπ(ht)(bt)  pst′(bt,st+1′),\prod_{t<k} \pi(h_t)(b_t)\; p_{s_t'}(b_t, s_{t+1}'),t<k∏​π(ht​)(bt​)pst′​​(bt​,st+1′​),

where:

  • sk′:=js_k' := jsk′​:=j;
  • hth_tht​ is the history whose past is hhh's past followed by the first ttt pairs of zzz, and whose current state is st′s_t'st′​.

So rewards are collected at stages σ(sh),…,T−2\sigma(s_h), \dots, T-2σ(sh​),…,T−2, with discounting restarted at hhh. The state reached at stage T−1T-1T−1 contributes no reward. Nothing in this definition requires ppp to be nonnegative or row-stochastic.

The performance of π\piπ under a measure ν\nuν on global parameters is

J(π,ν)=∫u(π,x,hinit) dν(x),J(\pi,\nu) = \int u(\pi, x, h_{\mathrm{init}})\, d\nu(x),J(π,ν)=∫u(π,x,hinit​)dν(x),

a Bochner integral, which by convention would be 000 if the integrand were not integrable.

Robust recursion. Write Δ0=ε0\Delta_0 = \varepsilon_0Δ0​=ε0​ and Δi=εi−εi−1\Delta_i = \varepsilon_i - \varepsilon_{i-1}Δi​=εi​−εi−1​ for i≥1i \ge 1i≥1. The reduced set at sss is

C^s={∑i=0LΔi yi  :  yi∈Csi for each i},\widehat{C}_s = \Big\{ \textstyle\sum_{i=0}^{L} \Delta_i\, y_i \;:\; y_i \in C_s^i \text{ for each } i \Big\},Cs​={∑i=0L​Δi​yi​:yi​∈Csi​ for each i},

where combination is coordinatewise in (p,r)(p, r)(p,r).

For a mixed action qqq at sss, a local parameter xsx_sxs​, and a vector v∈Rnv \in \mathbb{R}^nv∈Rn, define

Q(s,q,xs,v)=∑bqb(rs(b)+λ∑jps(b,j) vj),Q‾(s,q,v)=inf⁡xs∈C^sQ(s,q,xs,v).Q(s,q,x_s,v) = \sum_{b} q_b \Big( r_s(b) + \lambda \sum_{j} p_s(b,j)\, v_j \Big), \qquad \underline{Q}(s,q,v) = \inf_{x_s \in \widehat{C}_s} Q(s,q,x_s,v).Q(s,q,xs​,v)=b∑​qb​(rs​(b)+λj∑​ps​(b,j)vj​),Q​(s,q,v)=xs​∈Cs​inf​Q(s,q,xs​,v).

Define V0≡0V_0 \equiv 0V0​≡0 and

Vk+1(s)={sup⁡qQ‾(s,q,Vk)if σ(s)+1<T,0otherwise,V_{k+1}(s) = \begin{cases} \sup_{q} \underline{Q}(s,q,V_k) & \text{if } \sigma(s)+1 < T,\\ 0 & \text{otherwise,}\end{cases}Vk+1​(s)={supq​Q​(s,q,Vk​)0​if σ(s)+1<T,otherwise,​

with the supremum over all mixed actions qqq at sss. The robust value is V∗(s)=VT−1−σ(s)(s)V^*(s) = V_{T-1-\sigma(s)}(s)V∗(s)=VT−1−σ(s)​(s), so different states use different recursion depths.

Hypothesis. π\piπ is S-robust. For every admissible history hhh with σ(sh)+1<T\sigma(s_h) + 1 < Tσ(sh​)+1<T, and every mixed action qqq at shs_hsh​,

Q‾(sh,q,V∗)≤Q‾(sh,π(h),V∗).\underline{Q}(s_h, q, V^*) \le \underline{Q}(s_h, \pi(h), V^*).Q​(sh​,q,V∗)≤Q​(sh​,π(h),V∗).

Here V∗V^*V∗ is the whole vector (V∗(j))j(V^*(j))_j(V∗(j))j​. Inadmissible histories and histories at terminal states, those with σ(sh)+1=T\sigma(s_h)+1 = Tσ(sh​)+1=T, are unconstrained.

Conclusion. Two things hold.

(i) π\piπ is distributionally robust. Let

W(π′)=inf⁡ν∈NJ(π′,ν),W(\pi') = \inf_{\nu \in \mathcal{N}} J(\pi',\nu),W(π′)=ν∈Ninf​J(π′,ν),

where an infimum in R\mathbb{R}R of an empty or unbounded-below set would be 000. Then

W(π′)≤W(π)for every policy π′,W(\pi') \le W(\pi) \quad \text{for every policy } \pi',W(π′)≤W(π)for every policy π′,

where each competitor π′\pi'π′ is evaluated at its own infimum.

(ii) There exists a measure ν\nuν on global parameters with all three of:

  • ν∈N\nu \in \mathcal{N}ν∈N;
  • J(π′,ν)≤J(π,ν)J(\pi',\nu) \le J(\pi,\nu)J(π′,ν)≤J(π,ν) for every policy π′\pi'π′;
  • J(π,ν)≤J(π,ν′)J(\pi,\nu) \le J(\pi,\nu')J(π,ν)≤J(π,ν′) for every ν′∈N\nu' \in \mathcal{N}ν′∈N.

Degenerate and edge cases.

T=1T = 1T=1. Every state has stage 000, so uniqueness of the stage-000 state forces n=1n = 1n=1. Then:

  • every return uses k=0k = 0k=0, so it is the empty-product weight 111 times an empty reward sum, which is 000;
  • V∗≡0V^* \equiv 0V∗≡0;
  • the S-robustness hypothesis is vacuous;
  • J≡0J \equiv 0J≡0.

So every policy satisfies (i), and any ν∈N\nu \in \mathcal{N}ν∈N witnesses (ii).

A non-terminal state with no successor stage. This covers n=1n = 1n=1 with T≥2T \ge 2T≥2. More generally, it is any sss with σ(s)+1<T\sigma(s)+1 < Tσ(s)+1<T but no state of stage σ(s)+1\sigma(s)+1σ(s)+1. There, validity forces every ps(b,⋅)p_s(b,\cdot)ps​(b,⋅) to be the zero row. If the imported MDP type requires probability rows, as its comment indicates, no valid local parameter exists at sss. Then no UUU with nonempty CsiC_s^iCsi​ exists, and the theorem is vacuously true for such GGG.

L=0L = 0L=0. Then ε0=1\varepsilon_0 = 1ε0​=1, Δ0=1\Delta_0 = 1Δ0​=1, and C^s=Cs0\widehat{C}_s = C_s^0Cs​=Cs0​. Ms\mathcal{M}_sMs​ is all probability measures concentrated on Cs0C_s^0Cs0​.

Zero confidence levels. Any εi=0\varepsilon_i = 0εi​=0 imposes no constraint. The Δi\Delta_iΔi​ are nonnegative and sum to 111.

Single actions. A state with as=1a_s = 1as​=1 has a unique mixed action, so its S-robustness condition holds trivially.

Possible junk values. None arises from an empty set:

  • each C^s\widehat{C}_sCs​ is a nonempty compact set, so the infimum defining Q‾\underline{Q}Q​ is over a nonempty bounded set of reals;
  • N\mathcal{N}N is nonempty, for example the product of Dirac masses at points of Cs0C_s^0Cs0​.

Whether the suprema in Vk+1V_{k+1}Vk+1​ and the infimum in WWW are over bounded sets is not stated by the hypotheses. If either were unbounded, the convention value 000 would be used.

Discounting. With λ=1\lambda = 1λ=1, the returns are undiscounted sums.

Human review
  • Endorsed by Community (Bot) · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 29, 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