Lemma 10.1 -- the random target lemma
ProvedMarkovMixing.random_target_lemmaLet be an irreducible Markov chain on a finite state space with stationary distribution . For states and , write for the expected hitting time of from — the expected number of steps for the chain started at to first reach (formalized, as throughout this series, by the tail-sum ).
The theorem (the Random Target Lemma, Lemma 10.1 of Levin–Peres–Wilmer) asserts that the expected time to hit a -random target does not depend on the starting state: for any two states ,
Choosing the target according to the stationary distribution erases the advantage of any starting position — a surprising exact identity, proved by observing that the quantity is a harmonic function of the start and hence constant for an irreducible chain.
import Definitions.Def_mm_network
namespace MarkovMixing
/-- **Lemma 10.1, the Random Target Lemma** (LPW): for an irreducible chain
with stationary distribution `π`, the quantity `∑_y E_a(τ_y) π(y)` does not
depend on the starting state `a`. -/
theorem random_target_lemma {V : Type*} [Fintype V] [DecidableEq V]
(P : Matrix V V ℝ) (hP : IsStochastic P) (hirr : Irreducible P)
(π : V → ℝ) (hπ : IsStationary P π) (a b : V) :
∑ y, expSetHitTime P a {y} * π y = ∑ y, expSetHitTime P b {y} * π y := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Let be a finite type with decidable equality, and let be a real matrix that is stochastic ( for all , and each row sums to ) and irreducible in the sense that for every pair there exists a natural number with (since is the identity, this is automatic when ). Let be a stationary distribution for : for all , , and as a row vector. For vertices , let denote the quantity , where is the total weight of all paths with that avoid at every step , including step ; probabilistically, is the chance that the chain started at has not visited by time , so is the expected first hitting time of , where the hitting time counts time (in particular , since a path starting at fails the avoidance condition at step , and every term is zero). The infinite sum here is a Lean tsum: if the series fails to converge, the expression takes the junk value rather than . The theorem then asserts that for any two vertices (with no assumption that ),
i.e. the -weighted average over targets of the expected hitting time of from the fixed start equals the same average computed from the start — the quantity does not depend on the starting vertex . Note that no aperiodicity or reversibility is assumed, and nothing is asserted about the common value itself.
Confirmed by the mission captain (proposal self-audit).