Documentation

CslibFrontier.Probability.MarkovChain.RotationMap

Hitting and return times of random walks on regular multigraphs #

The random walk on a D-regular multigraph G (a Cslib.RotationMap V D, with parallel edges and self-loops allowed) moves from x along a uniformly random edge label (Cslib.RotationMap.randomWalk). Its transition probabilities are edgeCount x y / |D| (randomWalk_apply), and the t-step probability of avoiding a vertex is the fraction of the |D| ^ t label sequences whose walk (Cslib.RotationMap.walkAt) avoids it (survival_randomWalk_mul_pow).

These are the facts of Arora and Barak, Chapter 7, Exercise 9:

The edge bound comes from the first-step equation of the return time: if x is a neighbor of y, then (1 / |D|) E_x[τ_y] ≤ E_y[τ⁺_y] ≤ n. The triangle inequality for hitting times sums it along a path, and Markov's inequality turns the expectation into the miss probability. Arora and Barak state (d) for d-regular graphs with d ≤ n; with unbounded edge multiplicity the bound in n alone fails, so the hypothesis |D| ≤ n is kept.

Main definitions #

Main results #

References #

noncomputable def Cslib.RotationMap.randomWalk {V : Type u_1} {D : Type u_2} [Fintype D] [Nonempty D] (G : RotationMap V D) :

The random walk on a regular multigraph: from x, follow a uniformly random edge label.

theorem Cslib.RotationMap.randomWalk_apply {V : Type u_1} {D : Type u_2} [DecidableEq V] [Fintype D] [Nonempty D] (G : RotationMap V D) (x y : V) :
(G.randomWalk.step x) y = ↑(G.edgeCount x y) / ↑(Fintype.card D)

The transition probabilities of the random walk are the edge multiplicities divided by the degree.

theorem Cslib.RotationMap.randomWalk_ne_zero_iff {V : Type u_1} {D : Type u_2} [DecidableEq V] [Fintype D] [Nonempty D] {G : RotationMap V D} {x y : V} :
(G.randomWalk.step x) y ≠ 0 ↔ G.edgeCount x y ≠ 0

Kac's formula on a component #

theorem Cslib.RotationMap.sum_component_mul_randomWalk {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty D] {G : RotationMap V D} (u y : V) :
∑ x : V, (if G.toSimpleGraph.Reachable u x then 1 else 0) * (G.randomWalk.step x) y = if G.toSimpleGraph.Reachable u y then 1 else 0

The uniform measure on the connected component of u is stationary.

In a regular multigraph, every vertex reaches every vertex of its component along transitions of positive probability, so expected hitting times within a component are finite.

Arora–Barak, Exercise 7.9(c). The expected return time of the random walk to u is the number of vertices of the connected component of u.

Arora–Barak, Exercise 7.9(c). On a connected regular multigraph, the expected return time to every vertex is the number of vertices.

Arora–Barak, Exercise 7.9(c), as stated: E_u ≤ 10 n².

Hitting times along paths #

If x is a neighbor of y, the expected hitting time of y from x is at most |D| n.

theorem Cslib.RotationMap.hittingTime_randomWalk_le_length_mul {V : Type u_1} {D : Type u_2} [Fintype V] [DecidableEq V] [Fintype D] [Nonempty D] {G : RotationMap V D} {u v : V} (p : G.toSimpleGraph.Walk u v) :

Along a path of length ℓ in the simple graph of G from u to v, E_u[τ_v] ≤ ℓ |D| n.

theorem Cslib.RotationMap.hittingTime_randomWalk_le_hundred_mul {V : Type u_1} {D : Type u_2} [Fintype V] [DecidableEq V] [Fintype D] [Nonempty D] {G : RotationMap V D} (hD : Fintype.card D ≤ Fintype.card V) {k : ℕ} {u v : V} (p : G.toSimpleGraph.Walk u v) (hk : p.length ≤ k) :
G.randomWalk.hittingTime v u ≤ 100 * ↑k * ↑(Fintype.card V) ^ 2

Arora–Barak, Exercise 7.9(d). If u and v are joined by a path of length at most k in a d-regular multigraph on n vertices with d ≤ n, then E_u[τ_v] ≤ 100 k n².

For vertices s, t in the same component of a d-regular multigraph on n vertices, E_s[τ_t] ≤ (n - 1) d n: a path has fewer than n edges.

Survival probabilities count label sequences #

theorem Cslib.RotationMap.survival_randomWalk_mul_pow {V : Type u_1} {D : Type u_2} [Fintype V] [DecidableEq V] [Fintype D] [Nonempty D] {G : RotationMap V D} (t : V) (T : ℕ) (s : V) :
G.randomWalk.survival t T s * ↑(Fintype.card D) ^ T = ↑{k : Fin T → D | ∀ i ≤ T, G.walkAt (s, k) i ≠ t}.card

The number of label sequences of length T whose walk from s avoids t at all times 0, …, T, as a fraction of |D| ^ T, is the survival probability P_s(τ_t > T).

theorem Cslib.RotationMap.ten_mul_card_filter_walkAt_ne_le {V : Type u_1} {D : Type u_2} [Fintype V] [DecidableEq V] [Fintype D] [Nonempty D] {G : RotationMap V D} (hD : Fintype.card D ≤ Fintype.card V) {s t : V} (h : G.toSimpleGraph.Reachable s t) :
10 * {k : Fin (1000 * Fintype.card V ^ 3) → D | ∀ i ≤ 1000 * Fintype.card V ^ 3, G.walkAt (s, k) i ≠ t}.card ≤ Fintype.card D ^ (1000 * Fintype.card V ^ 3)

Arora–Barak, Exercise 7.9(d), miss probability. In a d-regular multigraph on n vertices with d ≤ n, if s and t are connected, at most a tenth of the label sequences of length 1000 n³ give a walk from s that never visits t.

Uniqueness of the stationary distribution #

The uniform distribution is stationary for the random walk on a regular multigraph.

Arora–Barak, Exercise 7.9(b)(i). On a connected regular multigraph, the uniform distribution is the unique stationary distribution of the random walk.

Spectral expansion and total-variation mixing #

On a regular multigraph, G.randomWalk satisfies detailed balance with respect to the uniform distribution.

@[simp]

The Markov transition operator G.randomWalk.stepOp equals G.walk.

The random walk on the lazy multigraph G.lazy is the lazy chain G.randomWalk.lazy.

Spectral contraction of a regular random walk: λ_*(G.randomWalk, uniform) = λ(G).

Total-variation contraction of a regular random walk: d(t) ≤ (1 / 2) √(|V| - 1) · λ(G)^t.

theorem Cslib.RotationMap.mixingTime_randomWalk_le {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty D] {G : RotationMap V D} [Nonempty V] (hlam : G.spectralExpansion < 1) {ε : ℝ} (hε : 0 < ε) :

Mixing-time bound for a regular random walk from λ(G) < 1: t_mix(ε) ≤ ⌈(1 - λ(G))⁻¹ ((1 / 2) log |V| + log(1 / (2 ε)))⌉₊.

Cheeger mixing-time bound for the lazy random walk on a regular multigraph: if 0 < h(G), then G.randomWalk.lazy mixes to within ε of uniform in at most ⌈(4 |D|² / h(G)²) ((1 / 2) log |V| + log(1 / (2 ε)))⌉₊ steps.