Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Closed walks of at most n arcs recover the least cycle mean

Proved
MDPComplexity.AverageCost.closed_walk_mean

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

cycle-meangraph-theorymin-plusp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Let n=∣S∣n=|S|n=∣S∣, and let C0C_0C0​ be a reachable simple cycle with least mean among all reachable simple cycles. Compare every closed decision walk of length 1≤k≤n1\leq k\leq n1≤k≤n based at a state reachable from s0s_0s0​. Its cost divided by kkk cannot be smaller than the mean of C0C_0C0​, and some such closed walk attains equality:

mean⁡(C0)=min⁡u reachable from s01≤k≤nW:u→u, ∣W∣=kc(W)k.\operatorname{mean}(C_0)=\min_{\substack{u\text{ reachable from }s_0\\1\leq k\leq n\\W:u\to u,\ |W|=k}}\frac{c(W)}{k}.mean(C0​)=u reachable from s0​1≤k≤nW:u→u, ∣W∣=k​min​kc(W)​.

This justifies comparing the shortest closed walks of bounded lengths, even though a matrix power ranges over walks that may repeat states.

Formalization Note The paper numbers lengths from 111 to nnn; the Lean bound is inclusive. A closed walk records decisions and can use loops or parallel arcs.

Preamble
import Definitions.Def_MDPComplexity_AverageCost_Model
Formal statement
namespace MDPComplexity.AverageCost

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

/-- §3, p. 446: comparing closed walks with lengths 1 through n gives
the least mean of a reachable simple cycle. -/
theorem closed_walk_mean (M : DetMDP S) (s₀ : S) :
    ∀ C₀ : M.Cycle, M.Reachable s₀ C₀.base →
      (∀ C : M.Cycle, M.Reachable s₀ C.base → C₀.mean ≤ C.mean) →
      IsLeast {μ : ℝ | ∃ (u : S) (k : ℕ) (W : M.Walk k),
        M.Reachable s₀ u ∧ 1 ≤ k ∧ k ≤ Fintype.card S ∧
        W.start = u ∧ W.finish = u ∧ μ = W.cost / k} 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