Section 9.1 -- the network walk is reversible
ProvedMarkovMixing.network_walk_reversibleA network on a finite vertex set is a conductance function : a symmetric assignment of nonnegative weights to pairs of vertices. Write for the total conductance at the vertex — assumed strictly positive at every vertex — and for the total over all vertices. The weighted random walk on the network steps from to with probability proportional to the conductance:
The theorem (§9.1 of Levin–Peres–Wilmer) asserts:
- is a genuine Markov chain: nonnegative entries with every row summing to one;
- satisfies the detailed balance equations with respect to the distribution — it is reversible;
- is a stationary distribution for : for every .
This is the dictionary's first entry: every network yields a reversible chain, and conversely every reversible chain arises this way — which is why the electrical machinery of Chapters 9–10 computes hitting times of reversible chains.
import Definitions.Def_mm_network
namespace MarkovMixing
/-- **§9.1** (LPW): the weighted random walk on a network is a Markov chain,
reversible with respect to `π(x) = c(x)/c_G`, which is therefore its
stationary distribution. -/
theorem network_walk_reversible {V : Type*} [Fintype V] [DecidableEq V]
[Nonempty V] (c : V → V → ℝ) (hc : IsConductance c)
(hpos : ∀ x : V, 0 < vertexConductance c x) :
IsStochastic (networkWalk c) ∧
DetailedBalance (networkWalk c)
(fun x => vertexConductance c x / totalConductance c) ∧
IsStationary (networkWalk c)
(fun x => vertexConductance c x / totalConductance c) := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Read-back: network_walk_reversible
Let be a finite, nonempty type with decidable equality, and let be a function subject to two hypotheses. First, is a "conductance" in the bundle's sense: for all and for all (self-loop values are allowed and included in all sums below). Second, every vertex has strictly positive total conductance: writing for the sum over all in (including ), the hypothesis asserts for every . Define the matrix by (in Lean division by zero would give , but here every denominator is positive by hypothesis), let be the sum of all vertex conductances (so each unordered edge is counted twice and each loop once), and define by (again real division; follows from the hypotheses since is nonempty). The conclusion is the conjunction of three claims about this specific and :
-
is stochastic, meaning both for all and for every ;
-
detailed balance holds for with respect to : for all ,
- is a stationary distribution of , which unfolds to two parts: (a) is a probability distribution, i.e. for all and ; and (b) the row vector is fixed by right-multiplication by , i.e. as an equality of functions on ,
Nothing beyond the stated hypotheses is assumed — no irreducibility, aperiodicity, or connectivity of the network — and the theorem claims all three conclusions for every such on every finite nonempty .
Confirmed by the mission captain (proposal self-audit).