Kac's lemma
ProvedMarkovMixing.kac_lemmaLet be an irreducible Markov chain on a countable state space (nonnegative entries, rows summing to one as convergent series, every state reaching every other), and suppose is a stationary distribution for it: nonnegative, summing to one, with for every . For a nonempty set of states and , the first return time to is , with expectation given by the tail-sum formula .
The theorem (Kac's lemma, Lemma 21.13 of Levin–Peres–Wilmer) asserts the exact identity
the series over converging to exactly .
Started from stationarity conditioned on being in , the expected time to return to is exactly — and for a singleton, : stationary mass is inverse return time. The identity is a mass-transport double count — every time-step of the stationary chain is the -th step of exactly one excursion from — and it is the quantitative link between stationary distributions and return times that drives the positive-recurrence theory of this mission.
import Definitions.Def_mm_countable
namespace MarkovMixing
/-- **Lemma 21.13 (Kac)** (LPW): for an irreducible chain with stationary
distribution `π` and any nonempty set `S` of states,
`∑_{x ∈ S} π(x) E_x(τ⁺_S) = 1`. -/
theorem kac_lemma {V : Type*} [Countable V] [DecidableEq V]
(P : V → V → ℝ) (hP : IsStochasticC P) (hirr : IrreducibleC P)
(π : V → ℝ) (hπ : IsStationaryC P π) (S : Set V) (hS : S.Nonempty) :
HasSum (fun x : S => π x.1 * expSetReturnC P x.1 S) 1 := by
sorry
end MarkovMixingRead-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back: kac_lemma
Let be an arbitrary countable type with decidable equality and a kernel. Assume: (a) is stochastic — all entries nonnegative and each row has sum in the unconditional (HasSum) sense; (b) is irreducible — for all there is (with permitted, which trivializes the diagonal case) such that the iterated-kernel value is strictly positive, where is defined by identity indicator and (tsum, junk value if non-summable); (c) is stationary — pointwise, has sum (HasSum), and for every the family has sum exactly ; and (d) is a nonempty set (not assumed finite). The conclusion asserts that the family indexed by the elements of ,
has sum exactly in the unconditional (HasSum) sense — so in particular this family is genuinely summable, not merely a tsum evaluating to . Here is the quantity
i.e. is the total path-weight of length- paths that start at (which is itself in ; only indices must avoid ) and stay outside at all times , and sums these tail values over all . Edge-case behavior baked into these totals: always (the empty product over the constant path); each inner path-sum is a tsum over all functions and takes the junk value if that family is not summable; and the outer sum over likewise takes the junk value if the sequence is not summable, in which case the term for that is .
Confirmed by the mission captain (proposal self-audit).