Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition C.1.4 — first passage identities (C.2)–(C.4), Kac's formula on a class, finite mean passage times

Proved
SennottDP.MarkovCost.first_passage_identities

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

first-passagemarkov-chainp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Let Γ\GammaΓ be a Markov chain on a countable state space SSS and G⊆SG \subseteq SG⊆S nonempty. With GPik(t)_G P^{(t)}_{ik}G​Pik(t)​ the taboo probabilities, Guik_G u_{ik}G​uik​ the expected number of visits to kkk in a first passage from iii to GGG and miGm_{iG}miG​ the expected first passage time:

  1. for k∉Gk \notin Gk∈/G,   Guik=δik+∑t=1∞GPik(t)\;{}_G u_{ik} = \delta_{ik} + \sum_{t=1}^{\infty} {}_G P^{(t)}_{ik}G​uik​=δik​+∑t=1∞​G​Pik(t)​;
  2. miG=∑k∈SGuikm_{iG} = \sum_{k \in S} {}_G u_{ik}miG​=∑k∈S​G​uik​;
  3. for all i,k∈Si, k \in Si,k∈S,
GPik(t+1)=∑j∉GPij GPjk(t) (t≥1),Guik=δik+∑j∉GPij Gujk,miG=1+∑j∉GPijmjG;{}_G P^{(t+1)}_{ik} = \sum_{j \notin G} P_{ij}\, {}_G P^{(t)}_{jk}\ (t \ge 1), \qquad {}_G u_{ik} = \delta_{ik} + \sum_{j \notin G} P_{ij}\, {}_G u_{jk}, \qquad m_{iG} = 1 + \sum_{j \notin G} P_{ij} m_{jG};G​Pik(t+1)​=j∈/G∑​Pij​G​Pjk(t)​ (t≥1),G​uik​=δik​+j∈/G∑​Pij​G​ujk​,miG​=1+j∈/G∑​Pij​mjG​;
  1. if GGG is contained in a positive recurrent class RRR, then πj=∑i∈Gπi Guij\pi_j = \sum_{i \in G} \pi_i\, {}_G u_{ij}πj​=∑i∈G​πi​G​uij​ for j∈Rj \in Rj∈R and ∑i∈GπimiG=1\sum_{i \in G} \pi_i m_{iG} = 1∑i∈G​πi​miG​=1;
  2. if RRR is a positive recurrent class, then mij<∞m_{ij} < \inftymij​<∞ for all i,j∈Ri, j \in Ri,j∈R.

These are the (C.2)–(C.4) first-step equations and the class results on which the Lyapunov bounds and the cost results of Appendix C rest.

Formalization Note All quantities are in [0,∞][0,\infty][0,∞] with 0⋅∞=00\cdot\infty=00⋅∞=0; sums over j∉Gj \notin Gj∈/G are sums over the subtype of the complement of GGG.

Preamble
import Mathlib
import Definitions.Def_SennottDP_MarkovCost_Chain

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

open Classical in
/-- Sennott (1999), Proposition C.1.4, pp. 295–296. Let `G` be a nonempty subset of `S`.
(i) For `k ∉ G`, `_G u_{ik} = δ_{ik} + ∑_{t ≥ 1} _G P^{(t)}_{ik}`.
(ii) `m_{iG} = ∑_{k ∈ S} _G u_{ik}`.
(iii) (C.2) `_G P^{(t+1)}_{ik} = ∑_{j ∉ G} P_{ij} _G P^{(t)}_{jk}` for `i, k ∈ S`, `t ≥ 1`;
(C.3) `_G u_{ik} = δ_{ik} + ∑_{j ∉ G} P_{ij} _G u_{jk}` for `i, k ∈ S`;
(C.4) `m_{iG} = 1 + ∑_{j ∉ G} P_{ij} m_{jG}` for `i ∈ S`.
(iv) If `G` is contained in a positive recurrent class `R`, then `π_j = ∑_{i ∈ G} π_i _G u_{ij}` for
`j ∈ R` and `∑_{i ∈ G} π_i m_{iG} = 1`.
(v) If `R` is a positive recurrent class, then `m_{ij} < ∞` for all `i, j ∈ R`. -/
theorem first_passage_identities {S : Type} [Countable S] (M : MC S) (G : Set S)
    (hG : G.Nonempty) :
    (∀ i, ∀ k ∉ G,
      visits M G i k = (if i = k then 1 else 0) + ∑' t : ℕ, taboo M G (t + 1) i k) ∧
    (∀ i, meanPassage M G i = ∑' k, visits M G i k) ∧
    ((∀ i k, ∀ t : ℕ, 1 ≤ t →
        taboo M G (t + 1) i k = ∑' j : ↥Gᶜ, M.P i j * taboo M G t j k) ∧
      (∀ i k, visits M G i k = (if i = k then 1 else 0) + ∑' j : ↥Gᶜ, M.P i j * visits M G j k) ∧
      (∀ i, meanPassage M G i = 1 + ∑' j : ↥Gᶜ, M.P i j * meanPassage M G j)) ∧
    (∀ R : Set S, IsPosRecClass M R → G ⊆ R →
      (∀ j ∈ R, steadyState M j = ∑' i : G, steadyState M i * visits M G i j) ∧
      ∑' i : G, steadyState M i * meanPassage M G i = 1) ∧
    (∀ R : Set S, IsPosRecClass M R → ∀ i ∈ R, ∀ j ∈ R, meanPassage M {j} i < ⊤) := by sorry

end SennottDP.MarkovCost
Source
Sennott, Stochastic Dynamic Programming and the Control of Queueing Systems (Wiley, 1999), pp. 295–296, Proposition C.1.4, Eqs. (C.2)–(C.4)
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