is a martingale
ProvedMarkovMixing.evolving_sets_martingaleLet be a Markov chain on a finite state space with strictly positive stationary distribution , and write for the stationary flow from a set into a state . The evolving-set process is the Markov chain on subsets of that, from , draws uniform on and passes to the superlevel set ; its transition probability from to is the length of the interval of thresholds realizing . A process adapted to a chain is a martingale when its one-step conditional expectation is neutral (the pointwise finite-sum identity of this mission's definitions).
The theorem (Lemma 17.13 of Levin–Peres–Wilmer) asserts that the stationary mass of the evolving set,
is a martingale for the evolving-set process: for every set , , where is the process's transition matrix.
The mass gained when the threshold is small exactly balances the mass lost when it is large — stationarity of in disguise. This martingale is the engine of the whole chapter: the goal theorem controls the square root as a strict supermartingale whose decay rate is the bottleneck constant, and optional stopping converts that decay into mixing bounds.
import Definitions.Def_mm_martingale
namespace MarkovMixing
/-- **Lemma 17.13** (LPW): for the evolving-set process, the sequence
`π(S_t)` is a martingale. -/
theorem evolving_sets_martingale {V : Type*} [Fintype V] [DecidableEq V]
(P : Matrix V V ℝ) (hP : IsStochastic P)
(π : V → ℝ) (hπ : IsStationary P π) (hpos : ∀ x : V, 0 < π x) :
IsChainMartingale (evolvingSets P π)
(fun t ω => ∑ v ∈ ω (Fin.last t), π v) := by
sorry
end MarkovMixingRead-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back: evolving_sets_martingale
Let be a finite type with decidable equality, let be a real matrix on that is stochastic (all entries nonnegative, every row summing to ), and let be stationary for (i.e. is a probability distribution — nonnegative, summing to — and the row vector satisfies ) with for every .
Let be the evolving-set matrix of , a real matrix indexed by all subsets of , with entries
where, with the clamped threshold (total real division, never dividing by zero here since is strictly positive), is the minimum of over (or if ) and is the maximum of over the complement of (or if ).
The theorem asserts that the family — assigning to each path the -mass of its last entry — is a chain martingale with respect to the matrix on the state space of subsets of . Unfolding that definition, the assertion is: for every and every sequence of subsets (arbitrary — no positivity of the path's weight under is required, and only the last entry actually enters the equation),
where the sum runs over all subsets of (including , for which , and itself, for which ). Equivalently: for every subset , . Nothing in the statement asserts that is a stochastic matrix; the claim is exactly this one-step averaging identity for the specific functional "-mass of the current set".
Confirmed by the mission captain (proposal self-audit).