Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition C.2.2 — first passage cost identities, (C.13), and JR=∑i∈GπiciGJ_R = \sum_{i\in G}\pi_i c_{iG}JR​=∑i∈G​πi​ciG​

Proved
SennottDP.MarkovCost.passage_cost_identities

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

average-costfirst-passagemarkov-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), and let G⊆SG \subseteq SG⊆S be nonempty.

  1. If miG<∞m_{iG} < \inftymiG​<∞, then ciG=∑kC(k) Guikc_{iG} = \sum_k C(k)\, {}_G u_{ik}ciG​=∑k​C(k)G​uik​.
  2. If miG<∞m_{iG} < \inftymiG​<∞, then
ciG=C(i)+∑j∉GPij cjG.(C.13)c_{iG} = C(i) + \sum_{j \notin G} P_{ij}\, c_{jG}. \tag{C.13}ciG​=C(i)+j∈/G∑​Pij​cjG​.(C.13)
  1. If GGG is contained in a positive recurrent class RRR, then JR=∑i∈GπiciGJ_R = \sum_{i \in G} \pi_i c_{iG}JR​=∑i∈G​πi​ciG​.
  2. If RRR is a positive recurrent class with JR<∞J_R < \inftyJR​<∞, then cij<∞c_{ij} < \inftycij​<∞ for all i,j∈Ri, j \in Ri,j∈R.

These are the cost counterparts of the first passage time identities of Proposition C.1.4.

Formalization Note In (C.13) a term with Pij=0P_{ij} = 0Pij​=0 contributes 000; whenever Pij>0P_{ij} > 0Pij​>0, mjG<∞m_{jG} < \inftymjG​<∞ follows from miG<∞m_{iG} < \inftymiG​<∞, so every cjGc_{jG}cjG​ that matters is the book's first passage cost. Values are in [0,∞][0,\infty][0,∞].

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.2, p. 299. Let `G` be a nonempty subset of `S`.
(i) If `m_{iG} < ∞`, then `c_{iG} = ∑_k C(k) _G u_{ik}`.
(ii) Under the hypothesis of (i), (C.13) `c_{iG} = C(i) + ∑_{j ∉ G} P_{ij} c_{jG}`.
(iii) If `G` is contained in a positive recurrent class `R`, then `J_R = ∑_{i ∈ G} π_i c_{iG}`.
(iv) If `R` is a positive recurrent class with `J_R < ∞`, then `c_{ij} < ∞` for all `i, j ∈ R`. -/
theorem passage_cost_identities {S : Type} [Countable S] (M : MC S) (C : S → ℝ≥0) (G : Set S)
    (hG : G.Nonempty) :
    (∀ i, meanPassage M G i < ⊤ →
      passageCost M C G i = ∑' k, (C k : ℝ≥0∞) * visits M G i k) ∧
    (∀ i, meanPassage M G i < ⊤ →
      passageCost M C G i = (C i : ℝ≥0∞) + ∑' j : ↥Gᶜ, M.P i j * passageCost M C G j) ∧
    (∀ R : Set S, IsPosRecClass M R → G ⊆ R →
      classAvgCost M C R = ∑' i : G, steadyState M i * passageCost M C G i) ∧
    (∀ R : Set S, IsPosRecClass M R → classAvgCost M C R < ⊤ →
      ∀ i ∈ R, ∀ j ∈ R, passageCost M C {j} i < ⊤) := by sorry

end SennottDP.MarkovCost
Source
Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999), p. 299, Proposition C.2.2, Eq. (C.13)
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