Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Following a reachable cycle forever attains its mean cost

Proved
MDPComplexity.AverageCost.follow_cycle

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

average-costcyclesdeterministicp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let MMM be a finite stationary deterministic Markov decision process, s0s_0s0​ an initial state and CCC a simple cycle whose starting state can be reached from s0s_0s0​. There is a state-and-time policy δ\deltaδ whose finite averages converge to the cycle mean:

lim⁡T→∞1T∑t=0Tc(st,δ(st,t))=1∣C∣∑e∈Cc(e).\lim_{T\to\infty}\frac{1}{T}\sum_{t=0}^{T}c(s_t,\delta(s_t,t))=\frac{1}{|C|}\sum_{e\in C}c(e).T→∞lim​T1​t=0∑T​c(st​,δ(st​,t))=∣C∣1​e∈C∑​c(e).

This is the attainment half of the paper's reduction of average-cost optimization to reachable cycles.

Formalization Note A cycle retains its decision arcs, including parallel arcs and loops. Its states are distinct; the initial finite walk can have repeated states. At T=0T=0T=0 the finite average is set to zero, with no effect on convergence.

Preamble
import Definitions.Def_MDPComplexity_AverageCost_Model
Formal statement
namespace MDPComplexity.AverageCost

open Filter

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

/-- §3, p. 446: an infinite path which reaches a cycle and follows it forever
has limiting average cost equal to that cycle's mean. -/
theorem follow_cycle (M : DetMDP S) (s₀ : S) :
    ∀ C : M.Cycle, M.Reachable s₀ C.base →
      ∃ δ : M.Policy, Tendsto (M.average s₀ δ) atTop (nhds C.mean) := 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, proof of 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