Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition C.2.1 — on a positive recurrent class, Ji(n)→JR=cii/miiJ^{(n)}_i \to J_R = c_{ii}/m_{ii}Ji(n)​→JR​=cii​/mii​

Proved
SennottDP.MarkovCost.class_average_cost

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

average-costmarkov-chainp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let Γ\GammaΓ be a Markov chain on a countable state space SSS with finite nonnegative costs C(i)C(i)C(i), let RRR be a positive recurrent class, and let

JR=∑j∈RπjC(j)∈[0,∞].J_R = \sum_{j \in R} \pi_j C(j) \in [0,\infty].JR​=j∈R∑​πj​C(j)∈[0,∞].
  1. For i∈Ri \in Ri∈R, lim⁡n→∞Ji(n)\lim_{n\to\infty} J^{(n)}_ilimn→∞​Ji(n)​ exists and equals JRJ_RJR​ (finite or infinite).
  2. For i∈Ri \in Ri∈R, JR=cii/miiJ_R = c_{ii}/m_{ii}JR​=cii​/mii​, the expected cost of a return to iii divided by the expected return time.
  3. For every n≥0n \ge 0n≥0,
JR=∑j∈Rπj E[C(Xn)∣X0=j].J_R = \sum_{j \in R} \pi_j\, E[C(X_n) \mid X_0 = j].JR​=j∈R∑​πj​E[C(Xn​)∣X0​=j].

The result identifies the long-run average cost from any state of a positive recurrent class as a single constant.

Formalization Note E[C(Xn)∣X0=j]=∑kPjk(n)C(k)E[C(X_n)\mid X_0=j] = \sum_k P^{(n)}_{jk} C(k)E[C(Xn​)∣X0​=j]=∑k​Pjk(n)​C(k); limits are taken in [0,∞][0,\infty][0,∞], so part 1 covers JR=∞J_R = \inftyJR​=∞. miim_{ii}mii​ is finite and at least 111 on a positive recurrent class.

Preamble
import Mathlib
import Definitions.Def_SennottDP_MarkovCost_Chain
import Definitions.Def_SennottDP_MarkovCost_Costs

open scoped ENNReal NNReal
open Filter Topology
Formal statement
namespace SennottDP.MarkovCost

/-- Sennott (1999), Proposition C.2.1, p. 298. Let `R` be a positive recurrent class and
`J_R = ∑_{j ∈ R} π_j C(j)` (finite or infinite).
(i) For `i ∈ R`, `lim_{n→∞} J^{(n)}_i` exists and equals `J_R`.
(ii) For `i ∈ R`, `J_R = c_{ii}/m_{ii}`.
(iii) `J_R = ∑_{j ∈ R} π_j E[C(X_n) | X_0 = j]` for `n ≥ 0`. -/
theorem class_average_cost {S : Type} [Countable S] (M : MC S) (C : S → ℝ≥0) (R : Set S)
    (hR : IsPosRecClass M R) :
    (∀ i ∈ R, Tendsto (fun n : ℕ => avgCostN M C n i) atTop (𝓝 (classAvgCost M C R))) ∧
    (∀ i ∈ R, classAvgCost M C R = passageCost M C {i} i / meanPassage M {i} i) ∧
    (∀ n : ℕ, classAvgCost M C R =
      ∑' j : R, steadyState M j * ∑' k, nStep M n j k * (C k : ℝ≥0∞)) := by sorry

end SennottDP.MarkovCost
Source
Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999), p. 298, Proposition C.2.1, Eq. (C.11)
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

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