Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 (i), (iv)–(vi) — under (W*): lower semicontinuity and convergence of values, the discounted optimality equation (20), A_α, stationary optimal policies

Proved
FKZAvg.WStar.theorem_2

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

discounted-costdynamic-programmingmarkov-decision-process

Consider a Borel Markov decision process with action sets A(x)A(x)A(x), one-step cost ccc and transition probability qqq, satisfying Assumption (W∗)(\mathrm W^*)(W∗), and fix a discount factor α∈[0,1)\alpha\in[0,1)α∈[0,1). Let vn,αv_{n,\alpha}vn,α​ be the optimal nnn-horizon discounted cost (v0,α=0v_{0,\alpha}=0v0,α​=0) and vαv_\alphavα​ the optimal infinite-horizon discounted cost. Then:

  1. (i) the functions vn,αv_{n,\alpha}vn,α​, n=0,1,2,…n=0,1,2,\dotsn=0,1,2,…, and vαv_\alphavα​ are lower semicontinuous on X\mathbb XX, and vn,α(x)→vα(x)v_{n,\alpha}(x)\to v_\alpha(x)vn,α​(x)→vα​(x) as n→∞n\to\inftyn→∞ for every xxx;
  2. (iv) vαv_\alphavα​ satisfies
vα(x)=min⁡a∈A(x){c(x,a)+α∫Xvα(y) q(dy∣x,a)},x∈X,(20)v_\alpha(x)=\min_{a\in A(x)}\Big\{c(x,a)+\alpha\int_{\mathbb X}v_\alpha(y)\,q(dy\mid x,a)\Big\},\qquad x\in\mathbb X,\tag{20}vα​(x)=a∈A(x)min​{c(x,a)+α∫X​vα​(y)q(dy∣x,a)},x∈X,(20)

the minimum being attained, so the sets Aα(x)={a∈A(x):vα(x)=c(x,a)+α∫vα dq(⋅∣x,a)}A_\alpha(x)=\{a\in A(x): v_\alpha(x)=c(x,a)+\alpha\int v_\alpha\,dq(\cdot\mid x,a)\}Aα​(x)={a∈A(x):vα​(x)=c(x,a)+α∫vα​dq(⋅∣x,a)} are nonempty; Gr(Aα)\mathrm{Gr}(A_\alpha)Gr(Aα​) is Borel; Aα(x)=A(x)A_\alpha(x)=A(x)Aα​(x)=A(x) if vα(x)=+∞v_\alpha(x)=+\inftyvα​(x)=+∞, and Aα(x)A_\alpha(x)Aα​(x) is compact if vα(x)<+∞v_\alpha(x)<+\inftyvα​(x)<+∞; 3. (v) there is a stationary discount optimal policy, and a stationary policy ϕ\phiϕ is discount optimal if and only if ϕ(x)∈Aα(x)\phi(x)\in A_\alpha(x)ϕ(x)∈Aα​(x) for all xxx; 4. (vi) if Assumption (Wu)(\mathrm{Wu})(Wu) holds, the functions vn,αv_{n,\alpha}vn,α​, n≥1n\ge1n≥1, and vαv_\alphavα​ are inf-compact on X\mathbb XX.

Parts (ii) and (iii) of the paper's theorem (finite-horizon equations and Markov policies) are not used by the goal and are not stated here.

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. The discount factor ranges over [0,1)[0,1)[0,1), where vαv_\alphavα​ is defined. Discount optimality is the published SchalAvg.AvgOpt.IsDiscOptimal (vαϕ=vαv^\phi_\alpha=v_\alphavαϕ​=vα​ everywhere).

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 2 (i), (iv), (v), (vi) (pp. 598–599), for a discount factor `α ∈ [0, 1)`. -/
theorem theorem_2 {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) (α : ℝ) (hα0 : 0 ≤ α) (hα1 : α < 1) :
    -- (i)
    ((∀ n : ℕ, LowerSemicontinuous (vNOpt M n α)) ∧ LowerSemicontinuous (vβ M α) ∧
      ∀ x, Tendsto (fun n : ℕ => vNOpt M n α x) atTop (𝓝 (vβ M α x))) ∧
    -- (iv)
    ((∀ x, vβ M α x = ⨅ a ∈ M.Aset x, eta M (vβ M α) α x a) ∧
      (∀ x, (AAlpha M α x).Nonempty) ∧
      MeasurableSet {p : X × A | p.2 ∈ AAlpha M α p.1} ∧
      ∀ x, (vβ M α x = ⊤ → AAlpha M α x = M.Aset x) ∧
        (vβ M α x ≠ ⊤ → IsCompact (AAlpha M α x))) ∧
    -- (v)
    ((∃ φ : X → A, IsStationary M φ ∧ IsDiscOptimal M α φ) ∧
      ∀ φ : X → A, IsStationary M φ → (IsDiscOptimal M α φ ↔ ∀ x, φ x ∈ AAlpha M α x)) ∧
    -- (vi)
    (CondWu M → (∀ n : ℕ, 1 ≤ n → InfCompactOn (vNOpt M n α) Set.univ) ∧
      InfCompactOn (vβ 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, pp. 598–599, Theorem 2 (i), (iv), (v), (vi)
Read-back

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

Setting. XXX (the states) and AAA (the actions) are two types. Each carries a metrizable, second-countable topology and a measurable structure equal to its Borel σ-algebra, and each is a standard Borel space. MMM is a Model on XXX and AAA. Its content is given in imported definition files that are not shown here. The statement uses the following pieces of it, all of which are also defined only in those files:

  • A(x)A(x)A(x): a set of actions attached to each state xxx (M.Aset x).
  • vn,α(x)v_{n,\alpha}(x)vn,α​(x): a function indexed by a natural number nnn and a real number α\alphaα (vNOpt M n α).
  • vα(x)v_\alpha(x)vα​(x): a function indexed by α\alphaα (vβ M α).
  • η(w,α,x,a)\eta(w,\alpha,x,a)η(w,α,x,a): a quantity built from a function www on XXX, α\alphaα, a state xxx and an action aaa (eta M w α x a).
  • Aα(x)A_\alpha(x)Aα​(x): a subset of AAA attached to each state xxx (AAlpha M α x).
  • Predicates on maps φ:X→A\varphi : X \to Aφ:X→A: "stationary" (IsStationary M φ) and "α\alphaα-discount-optimal" (IsDiscOptimal M α φ).
  • Predicates on MMM: HasSelector M, CondWStar M and CondWu M.
  • InfCompactOn f S: a predicate on a function fff and a set SSS.

The values of vn,αv_{n,\alpha}vn,α​ and vαv_\alphavα​ lie in an ordered type that has a top element ⊤\top⊤, because the statement compares vα(x)v_\alpha(x)vα​(x) with ⊤\top⊤.

Hypotheses. HasSelector M and CondWStar M hold, and α\alphaα is a real number with

0≤α<1.0 \le \alpha < 1.0≤α<1.

Conclusion. All four of the following parts hold together.

(i)

  • For every n∈Nn \in \mathbb{N}n∈N, including n=0n = 0n=0, the function x↦vn,α(x)x \mapsto v_{n,\alpha}(x)x↦vn,α​(x) is lower semicontinuous on XXX.
  • The function x↦vα(x)x \mapsto v_\alpha(x)x↦vα​(x) is lower semicontinuous.
  • For every state xxx, vn,α(x)v_{n,\alpha}(x)vn,α​(x) converges to vα(x)v_\alpha(x)vα​(x) as n→∞n \to \inftyn→∞, in the topology of the value type.

(iv)

  • For every xxx,
vα(x)=inf⁡a∈A(x)η(vα,α,x,a).v_\alpha(x) = \inf_{a \in A(x)} \eta(v_\alpha, \alpha, x, a).vα​(x)=a∈A(x)inf​η(vα​,α,x,a).
  • For every xxx, the set Aα(x)A_\alpha(x)Aα​(x) is nonempty.
  • The graph {(x,a)∈X×A:a∈Aα(x)}\{(x,a) \in X \times A : a \in A_\alpha(x)\}{(x,a)∈X×A:a∈Aα​(x)} is a measurable subset of X×AX \times AX×A.
  • For every xxx: if vα(x)=⊤v_\alpha(x) = \topvα​(x)=⊤, then Aα(x)=A(x)A_\alpha(x) = A(x)Aα​(x)=A(x); if vα(x)≠⊤v_\alpha(x) \ne \topvα​(x)=⊤, then Aα(x)A_\alpha(x)Aα​(x) is a compact subset of AAA.

(v)

  • There exists a map φ:X→A\varphi : X \to Aφ:X→A that is both stationary and α\alphaα-discount-optimal.
  • For every stationary φ:X→A\varphi : X \to Aφ:X→A: φ\varphiφ is α\alphaα-discount-optimal if and only if φ(x)∈Aα(x)\varphi(x) \in A_\alpha(x)φ(x)∈Aα​(x) for every x∈Xx \in Xx∈X.

(vi) If in addition CondWu M holds, then:

  • for every n≥1n \ge 1n≥1, vn,αv_{n,\alpha}vn,α​ satisfies InfCompactOn on the whole of XXX;
  • vαv_\alphavα​ satisfies InfCompactOn on the whole of XXX.

This implication says nothing about n=0n = 0n=0.

Degenerate cases.

  • The case α=0\alpha = 0α=0 is allowed.
  • When some A(x)A(x)A(x) is empty, the infimum in (iv) is over an empty set and equals the top element of the value type.
  • When XXX is empty, every "for every xxx" clause holds vacuously and the graph in (iv) is the empty set. A map φ:X→A\varphi : X \to Aφ:X→A exists (the empty map). Whether it is stationary and α\alphaα-discount-optimal depends on the hidden definitions.
  • When AAA is empty and XXX is not, no map X→AX \to AX→A exists, and no Aα(x)A_\alpha(x)Aα​(x) can be nonempty. The conclusion is then false, so the statement asserts that HasSelector M and CondWStar M cannot both hold in that situation.
  • Whether the hypotheses can be satisfied at all, and what each named object means, cannot be determined from this text. That is settled by the imported definitions, and nothing in the statement excludes the possibility that HasSelector M ∧ CondWStar M is never satisfiable, in which case the theorem would be vacuous.
  • Part (vi) holds vacuously whenever CondWu M fails.
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