Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Optimal deterministic average cost equals the least reachable cycle mean

Proved
MDPComplexity.AverageCost.theorem3_min_mean_cycle

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

average-costcycle-meandeterministicmin-plusp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let MMM be a finite stationary deterministic Markov decision process with initial state s0s_0s0​, and let n=∣S∣n=|S|n=∣S∣. Policies choose a decision for every state and time. The optimal upper-limit average cost is the least mean cost of a reachable simple cycle. A policy attains this value with genuinely convergent finite averages. The same value is obtained from the min-plus adjacency matrix AAA:

g∗(s0)=min⁡C simple cycleC reachable from s0mean⁡(C)=min⁡u reachable from s01≤k≤n(Ak)uu<+∞(Ak)uuk.g^*(s_0)=\min_{\substack{C\text{ simple cycle}\\C\text{ reachable from }s_0}}\operatorname{mean}(C)=\min_{\substack{u\text{ reachable from }s_0\\1\leq k\leq n\\(A^k)_{uu}<+\infty}}\frac{(A^k)_{uu}}{k}.g∗(s0​)=C simple cycleC reachable from s0​​min​mean(C)=u reachable from s0​1≤k≤n(Ak)uu​<+∞​min​k(Ak)uu​​.

This is the mathematical identity behind the paper's parallel algorithm for deterministic average cost.

Formalization Note The paper's Theorem 3 asserts membership in NC; this item formalizes the exact optimization identity used there, not the complexity bound. The paper writes a limit for arbitrary policies, although a time-dependent policy's averages may oscillate; the optimum here uses limsup, and the least-cost policy has a genuine limit. The formula excludes unreachable cycles and infinite matrix entries. The printed T+1T+1T+1 terms divided by TTT are retained, with the T=0T=0T=0 value irrelevant to the limit.

Preamble
import Definitions.Def_MDPComplexity_AverageCost_Model
Formal statement
namespace MDPComplexity.AverageCost

open Filter

variable {S : Type*} [Fintype S] [DecidableEq S]

/-- The identity underlying Theorem 3 (p. 446). The optimum over all
time-dependent policies is the least reachable simple-cycle mean, is attained
as a limit, and equals the min-plus calculation over closed walks of length at most n. -/
theorem theorem3_min_mean_cycle (M : DetMDP S) (s₀ : S) :
    IsLeast {μ : ℝ | ∃ C : M.Cycle,
      M.Reachable s₀ C.base ∧ μ = C.mean} (M.optAvg s₀) ∧
    (∃ δ : M.Policy, Tendsto (M.average s₀ δ) atTop (nhds (M.optAvg s₀))) ∧
    IsLeast {μ : ℝ | ∃ (u : S) (k : ℕ) (r : ℝ),
      M.Reachable s₀ u ∧ 1 ≤ k ∧ k ≤ Fintype.card S ∧
      M.minPlusPow k u u = (r : WithTop ℝ) ∧ μ = r / k} (M.optAvg s₀) := by sorry

end MDPComplexity.AverageCost
Source
Papadimitriou and Tsitsiklis, The Complexity of Markov Decision Processes, Math. Oper. Res. 12(3) (1987), p. 446, §3 The infinite horizon undiscounted case and Theorem 3, https://doi.org/10.1287/moor.12.3.441
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

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