Documentation

CslibFrontier.Foundations.Combinatorics.Expander.Visits

Visit counts of random walks on connected regular multigraphs #

On a connected d-regular multigraph on n vertices, the number of visits of a t-step random walk to a fixed vertex v is close to t / n with high probability, for all large t (eventually_visits_mem_Icc). This is Arora and Barak, Chapter 7, Exercise 9(b)(ii). No aperiodicity is needed: on a bipartite graph the walk alternates sides, but the fraction of time spent at v still converges.

The proof has two steps.

Main definitions #

Main results #

References #

The mean ergodic step #

theorem Cslib.RotationMap.abs_walk_le {V : Type u_1} {D : Type u_2} [Fintype D] [Nonempty D] {G : RotationMap V D} {f : V → ℝ} {c : ℝ} (hf : ∀ (x : V), |f x| ≤ c) (x : V) :
|G.walk f x| ≤ c

A function of absolute value at most c stays so under the walk operator.

theorem Cslib.RotationMap.abs_walk_pow_le {V : Type u_1} {D : Type u_2} [Fintype D] [Nonempty D] {G : RotationMap V D} {f : V → ℝ} {c : ℝ} (hf : ∀ (x : V), |f x| ≤ c) (j : ℕ) (x : V) :
|(G.walk ^ j) f x| ≤ c
theorem Cslib.RotationMap.exists_abs_sum_walk_pow_le {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty D] {G : RotationMap V D} (hG : G.toSimpleGraph.Preconnected) {f : V → ℝ} (hf : ∑ v : V, f v = 0) {ε : ℝ} (hε : 0 < ε) :
∃ (N₀ : ℕ), ∀ N ≥ N₀, ∀ (v : V), |∑ j ∈ Finset.range N, (G.walk ^ j) f v| ≤ ε * ↑N

Uniform Cesàro convergence. On a connected regular multigraph, for a function f of total 0 the sums ∑_{j < N} Pʲ f are eventually at most ε N in absolute value at every vertex.

Visit counts and their moments #

def Cslib.RotationMap.visits {V : Type u_1} {D : Type u_2} [DecidableEq V] (G : RotationMap V D) (u v : V) {t : ℕ} (k : Fin t → D) :

The number of visits to v at times 1, …, t of the walk from u along the labels k.

theorem Cslib.RotationMap.visits_eq {V : Type u_1} {D : Type u_2} [DecidableEq V] {G : RotationMap V D} (u v : V) {t : ℕ} (k : Fin t → D) :
G.visits u v k = {i ∈ Finset.range t | G.walkAt (u, k) (i + 1) = v}.card

The defining equation of visits: the count of times 1, …, t at which the walk is at v.

Concentration #

theorem Cslib.RotationMap.eventually_visits_mem_Icc {V : Type u_1} {D : Type u_2} [Fintype V] [DecidableEq V] [Fintype D] [Nonempty D] {G : RotationMap V D} (hG : G.toSimpleGraph.Connected) (u v : V) {ε : ℝ} (hε : 0 < ε) :
∀ᶠ (t : ℕ) in Filter.atTop, (1 - ε) * ↑(Fintype.card D) ^ t ≤ ↑{k : Fin t → D | ↑(G.visits u v k) ∈ Set.Icc ((1 - ε) * ↑t / ↑(Fintype.card V)) ((1 + ε) * ↑t / ↑(Fintype.card V))}.card

Arora–Barak, Exercise 7.9(b)(ii). On a connected d-regular multigraph on n vertices, for every u, v and ε > 0, for all large t, at least a 1 - ε fraction of the d ^ t label sequences give a walk from u whose number of visits to v at times 1, …, t lies in [(1 - ε) t / n, (1 + ε) t / n].

theorem Cslib.RotationMap.exists_visits_mem_Icc {V : Type u_1} {D : Type u_2} [Fintype V] [DecidableEq V] [Fintype D] [Nonempty D] {G : RotationMap V D} (hG : G.toSimpleGraph.Connected) (u v : V) {ε : ℝ} (hε : 0 < ε) :
∃ (t : ℕ), (1 - ε) * ↑(Fintype.card D) ^ t ≤ ↑{k : Fin t → D | ↑(G.visits u v k) ∈ Set.Icc ((1 - ε) * ↑t / ↑(Fintype.card V)) ((1 + ε) * ↑t / ↑(Fintype.card V))}.card

Arora–Barak, Exercise 7.9(b)(ii), in the source's form: for every u, v and ε > 0 there is t such that, with probability at least 1 - ε over the d ^ t label sequences, the number of visits to v of the t-step walk from u lies in [(1 - ε) t / n, (1 + ε) t / n].