Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3 — under (W*) and (B̲), a stationary φ satisfies (9) with u of (21), (10) holds, and the properties (a)–(e) of u, A*(x) and A_*(x)

Proved
FKZAvg.WStar.theorem_3

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

average-costmarkov-decision-processoptimality-inequalitystationary-policy

Consider a discrete-time Markov decision process whose state space X\mathbb XX and action space A\mathbb AA are Borel subsets of Polish spaces, with nonempty Borel action sets A(x)A(x)A(x), Borel graph Gr(A)\mathrm{Gr}(A)Gr(A), a measurable selector of AAA, a bounded below one-step cost ccc and a transition probability qqq. Let w(x)w(x)w(x) be the optimal average cost, w∗=inf⁡xw(x)w^*=\inf_x w(x)w∗=infx​w(x), vαv_\alphavα​ the optimal discounted cost, mα=inf⁡xvα(x)m_\alpha=\inf_x v_\alpha(x)mα​=infx​vα​(x), uα=vα−mαu_\alpha=v_\alpha-m_\alphauα​=vα​−mα​, wˉ=lim sup⁡α↑1(1−α)mα\bar w=\limsup_{\alpha\uparrow1}(1-\alpha)m_\alphawˉ=limsupα↑1​(1−α)mα​,

u(x)=lim inf⁡α↑1, y→xuα(y),(21)u(x)=\liminf_{\alpha\uparrow1,\,y\to x}u_\alpha(y),\tag{21}u(x)=α↑1,y→xliminf​uα​(y),(21)

A∗(x)={a∈A(x):wˉ+u(x)≥c(x,a)+∫u(y) q(dy∣x,a)}A^*(x)=\{a\in A(x): \bar w+u(x)\ge c(x,a)+\int u(y)\,q(dy\mid x,a)\}A∗(x)={a∈A(x):wˉ+u(x)≥c(x,a)+∫u(y)q(dy∣x,a)} (26), and A∗(x)={a∈A(x):c(x,a)+∫u dq(⋅∣x,a)=min⁡b∈A(x)[c(x,b)+∫u dq(⋅∣x,b)]}A_*(x)=\{a\in A(x): c(x,a)+\int u\,dq(\cdot\mid x,a)=\min_{b\in A(x)}[c(x,b)+\int u\,dq(\cdot\mid x,b)]\}A∗​(x)={a∈A(x):c(x,a)+∫udq(⋅∣x,a)=minb∈A(x)​[c(x,b)+∫udq(⋅∣x,b)]} (17).

Suppose Assumptions (W∗)(\mathrm W^*)(W∗) and (B‾)(\underline{\mathrm B})(B​) hold. Then there is a stationary policy ϕ\phiϕ with

wˉ+u(x) ≥ c(x,ϕ(x))+∫Xu(y) q(dy∣x,ϕ(x)),x∈X,(9)\bar w+u(x)\ \ge\ c(x,\phi(x))+\int_{\mathbb X}u(y)\,q(dy\mid x,\phi(x)),\qquad x\in\mathbb X,\tag{9}wˉ+u(x) ≥ c(x,ϕ(x))+∫X​u(y)q(dy∣x,ϕ(x)),x∈X,(9)

and for this ϕ\phiϕ, w(x)=wϕ(x)=lim sup⁡α↑1(1−α)vα(x)=wˉ=w∗w(x)=w^\phi(x)=\limsup_{\alpha\uparrow1}(1-\alpha)v_\alpha(x)=\bar w=w^*w(x)=wϕ(x)=limsupα↑1​(1−α)vα​(x)=wˉ=w∗ for all xxx (10). Furthermore:

  1. (a) uuu takes finite nonnegative values and is lower semicontinuous;
  2. (b) the sets A∗(x)A^*(x)A∗(x) are nonempty, (b₁) Gr(A∗)\mathrm{Gr}(A^*)Gr(A∗) is a Borel subset of X×A\mathbb X\times\mathbb AX×A, and (b₂) each A∗(x)A^*(x)A∗(x) is compact;
  3. (c) every stationary policy ϕ\phiϕ with ϕ(x)∈A∗(x)\phi(x)\in A^*(x)ϕ(x)∈A∗(x) for all xxx is average cost optimal and satisfies (9);
  4. (d) there is a stationary policy ϕ\phiϕ with ϕ(x)∈A∗(x)\phi(x)\in A_*(x)ϕ(x)∈A∗​(x) for all xxx, and A∗(x)⊆A∗(x)A_*(x)\subseteq A^*(x)A∗​(x)⊆A∗(x) for all xxx;
  5. (e) if, in addition, Assumption (Wu)(\mathrm{Wu})(Wu) holds, uuu is inf-compact.

This is the main result of the paper: the average cost optimality inequality and a stationary average-cost optimal policy under the weak continuity assumption (W∗)(\mathrm W^*)(W∗), which allows noncompact action sets, and the boundedness assumption (B‾)(\underline{\mathrm B})(B​), weaker than Schäl's (B).

Formalization Note The state and action spaces are types X\mathbb XX, A\mathbb AA with a separable metrizable topology whose Borel σ\sigmaσ-algebra is standard Borel; by the Lusin–Souslin theorem these are, up to homeomorphism, exactly the Borel subsets of Polish spaces of the paper. The model is the published SchalAvg.AvgOpt.Model: nonempty action sets A(x)A(x)A(x) with measurable graph Gr(A)\mathrm{Gr}(A)Gr(A), a Markov kernel qqq on all of X×A\mathbb X\times\mathbb AX×A (only its values on Gr(A)\mathrm{Gr}(A)Gr(A) enter) and a cost ccc with values in [0,+∞][0,+\infty][0,+∞]. The paper's cost is only bounded below; adding a constant to ccc changes none of the statements (p. 595), so the nonnegative case is the general one. HasSelector is the paper's standing assumption (ii) of §2 (a measurable ϕ\phiϕ with ϕ(x)∈A(x)\phi(x)\in A(x)ϕ(x)∈A(x)). Optimal values are infima over all admissible (randomized, history-dependent) policies. Every equality of (10) is stated for every xxx; uuu is the fixed function (21), never a free parameter; and (W*), (Wu) constrain ccc and qqq on Gr(A)\mathrm{Gr}(A)Gr(A) only.

Preamble
import Mathlib
import Definitions.Def_FeinbergLiang_ACOE_MDP
import Definitions.Def_SchalAvg_AvgOpt_Model
import Definitions.Def_FKZAvg_WStar_Assumptions

open scoped ENNReal NNReal Topology
open MeasureTheory ProbabilityTheory Filter SchalAvg.AvgOpt
Formal statement
namespace FKZAvg.WStar

/-- Theorem 3 (p. 600), the main result: all of it. -/
theorem theorem_3 {X A : Type*}
    [TopologicalSpace X] [TopologicalSpace.MetrizableSpace X] [SecondCountableTopology X]
    [MeasurableSpace X] [BorelSpace X] [StandardBorelSpace X]
    [TopologicalSpace A] [TopologicalSpace.MetrizableSpace A] [SecondCountableTopology A]
    [MeasurableSpace A] [BorelSpace A] [StandardBorelSpace A]
    (M : Model X A) (hsel : HasSelector M)
    (hW : CondWStar M) (hB : CondBLow M) :
    -- a stationary φ satisfying (9) with u of (21), and (10) for it
    (∃ φ : X → A, ∃ hφ : IsStationary M φ, Ineq9 M (uAvg M) φ ∧ Eq10 M hφ) ∧
    -- (a)
    (LowerSemicontinuous (uAvg M) ∧ ∀ x, uAvg M x ≠ ⊤) ∧
    -- (b): nonempty, (b₁) Borel graph, (b₂) compact
    ((∀ x, (AsupStar M x).Nonempty) ∧
      MeasurableSet {p : X × A | p.2 ∈ AsupStar M p.1} ∧
      ∀ x, IsCompact (AsupStar M x)) ∧
    -- (c)
    (∀ φ : X → A, ∀ hφ : IsStationary M φ, (∀ x, φ x ∈ AsupStar M x) →
      IsAvgOpt M hφ ∧ Ineq9 M (uAvg M) φ) ∧
    -- (d)
    ((∃ φ : X → A, IsStationary M φ ∧ ∀ x, φ x ∈ AsubStar M (uAvg M) x) ∧
      ∀ x, AsubStar M (uAvg M) x ⊆ AsupStar M x) ∧
    -- (e)
    (CondWu M → InfCompactOn (uAvg M) Set.univ) := by sorry

end FKZAvg.WStar
Source
Feinberg, Kasyanov & Zadoianchuk, Average Cost Markov Decision Processes with Weakly Continuous Transition Probabilities, Math. Oper. Res. 37(4) 2012, p. 600, Theorem 3
Read-back

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

Let XXX (the state space) and AAA (the action space) be arbitrary types. Each carries a topology that is metrizable and second countable, together with a σ-algebra that is the Borel σ-algebra of that topology. Each is also a standard Borel space. Let MMM be a model on XXX and AAA, an object of the type Model X A defined in the imported module SchalAvg.AvgOpt. Its fields are not shown in this declaration. The theorem has three hypotheses on MMM, each a predicate defined in the imported modules whose content is not reproduced here:

  • HasSelector(M)\mathrm{HasSelector}(M)HasSelector(M);
  • CondWStar(M)\mathrm{CondWStar}(M)CondWStar(M), a condition named "W*";
  • CondBLow(M)\mathrm{CondBLow}(M)CondBLow(M), a condition named "B" (lower).

The statement also uses the following objects, all defined in the imported modules. Their definitions are not visible to this read-back:

  • a function u=uAvg(M)u = \mathrm{uAvg}(M)u=uAvg(M) on XXX, whose codomain has a top element ⊤\top⊤ and an order;
  • for each state xxx, two sets of actions: Asup⁡∗(x)=AsupStar(M,x)⊆AA^{*}_{\sup}(x) = \mathrm{AsupStar}(M,x) \subseteq AAsup∗​(x)=AsupStar(M,x)⊆A and A⊂∗(x)=AsubStar(M,u,x)⊆AA^{*}_{\sub}(x) = \mathrm{AsubStar}(M,u,x) \subseteq AA⊂∗​(x)=AsubStar(M,u,x)⊆A, where the second is formed with uuu as an argument;
  • predicates on a map φ:X→A\varphi : X \to Aφ:X→A:
    • IsStationary(M,φ)\mathrm{IsStationary}(M,\varphi)IsStationary(M,φ);
    • Ineq9(M,u,φ)\mathrm{Ineq9}(M,u,\varphi)Ineq9(M,u,φ), labelled "inequality (9)";
    • for a given proof hφh_\varphihφ​ of stationarity, Eq10(M,hφ)\mathrm{Eq10}(M,h_\varphi)Eq10(M,hφ​), labelled "equation (10)", and IsAvgOpt(M,hφ)\mathrm{IsAvgOpt}(M,h_\varphi)IsAvgOpt(M,hφ​), labelled "average-optimal";
  • a further condition CondWu(M)\mathrm{CondWu}(M)CondWu(M);
  • a predicate InfCompactOn(f,S)\mathrm{InfCompactOn}(f,S)InfCompactOn(f,S), read as "fff is inf-compact on SSS".

Under these hypotheses the theorem asserts all six of the following at once.

  1. Existence. There is a map φ:X→A\varphi : X \to Aφ:X→A with a proof hφh_\varphihφ​ that φ\varphiφ is stationary for MMM, such that Ineq9(M,u,φ)\mathrm{Ineq9}(M,u,\varphi)Ineq9(M,u,φ) holds and Eq10(M,hφ)\mathrm{Eq10}(M,h_\varphi)Eq10(M,hφ​) holds.
  2. (a) uuu is lower semicontinuous on XXX, and u(x)≠⊤u(x) \neq \topu(x)=⊤ for every x∈Xx \in Xx∈X.
  3. (b)
    • For every xxx, the set Asup⁡∗(x)A^{*}_{\sup}(x)Asup∗​(x) is nonempty.
    • The graph {(x,a)∈X×A:a∈Asup⁡∗(x)}\{(x,a) \in X \times A : a \in A^{*}_{\sup}(x)\}{(x,a)∈X×A:a∈Asup∗​(x)} is a measurable (Borel) subset of X×AX \times AX×A.
    • For every xxx, the set Asup⁡∗(x)A^{*}_{\sup}(x)Asup∗​(x) is compact.
  4. (c) Take any φ:X→A\varphi : X \to Aφ:X→A with any proof hφh_\varphihφ​ that it is stationary, and suppose φ(x)∈Asup⁡∗(x)\varphi(x) \in A^{*}_{\sup}(x)φ(x)∈Asup∗​(x) for all xxx. Then IsAvgOpt(M,hφ)\mathrm{IsAvgOpt}(M,h_\varphi)IsAvgOpt(M,hφ​) and Ineq9(M,u,φ)\mathrm{Ineq9}(M,u,\varphi)Ineq9(M,u,φ) both hold.
  5. (d)
    • There exists φ:X→A\varphi : X \to Aφ:X→A that is stationary for MMM and satisfies φ(x)∈A⊂∗(x)\varphi(x) \in A^{*}_{\sub}(x)φ(x)∈A⊂∗​(x) for all xxx.
    • For every xxx the inclusion holds:
A⊂∗(x)⊆Asup⁡∗(x).A^{*}_{\sub}(x) \subseteq A^{*}_{\sup}(x).A⊂∗​(x)⊆Asup∗​(x).
  1. (e) If CondWu(M)\mathrm{CondWu}(M)CondWu(M) holds, then uuu is inf-compact on all of XXX. This part is only an implication; the theorem does not assert CondWu(M)\mathrm{CondWu}(M)CondWu(M) itself.

Equation (10) and average-optimality are predicates on the proof hφh_\varphihφ​, not only on φ\varphiφ. Part (c) applies to every such proof.

Degenerate cases.

  • XXX empty. Every "for all xxx" clause holds vacuously, and the graph in (b) is the empty set, which is measurable. A map φ:X→A\varphi : X \to Aφ:X→A exists, namely the empty function. Whether the existence claims in parts 1 and (d) hold then depends only on how the hidden predicates IsStationary\mathrm{IsStationary}IsStationary, Ineq9\mathrm{Ineq9}Ineq9 and Eq10\mathrm{Eq10}Eq10 treat that empty function.
  • XXX nonempty and AAA empty. No map X→AX \to AX→A exists, and no subset of AAA is nonempty. So the conclusions in parts 1 and (b) would be false. In that situation the statement therefore amounts to saying that HasSelector(M)\mathrm{HasSelector}(M)HasSelector(M), CondWStar(M)\mathrm{CondWStar}(M)CondWStar(M) and CondBLow(M)\mathrm{CondBLow}(M)CondBLow(M) cannot all hold.
  • Values of uuu. Part (a) excludes only the value ⊤\top⊤. If the codomain of uuu also has a bottom element, such as −∞-\infty−∞, the statement says nothing that rules it out.
  • What cannot be settled here. Whether any hypothesis is vacuous or impossible to satisfy, and what junk values the hidden definitions might produce, cannot be determined from this declaration. Those definitions are not part of the code shown.
Human review
  • Endorsed by Community (Bot) · Oct 20, 2026

    Confirmed by the moderator at approval.

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