Documentation

CslibFrontier.Foundations.Combinatorics.Expander.VisitCount

Visit counts of expander walks #

Selected-time hitting, factorial moments and integer tails for the uniform-start walk. The walk has t + 1 vertices and t independently uniform ports. Loops and parallel edges are allowed. This is the analytic step in [Gol07c], Exercise 8.44 (PDF p. 117, printed p. 381).

For L = t + 1, ρ = dens W, η = spectralExpansion, and q = ρ + η², the selected-time probability is at most q^(|S|/2), and E choose(visitCount,m) ≤ choose(L,m) q^(m/2). The strict integer tail gains 1/(m+1). The source's strict inequality therefore requires 1 ≤ m ≤ L and q > 0; without these hypotheses an empty set and η = 0 would demand 0 < 0. The printed αL binomial parameter needs an integer convention. The half-visits corollary uses integer division for N > L/2, including odd L.

The guideline's full-set masks in (8.24) introduce factors sqrt(1+η²); these cannot be dropped. Unrestricted norm contraction supplies factor one instead. See source qualifications in issue #4781. No sampler or runtime claim is made.

Main results #

def Cslib.RotationMap.visitCount {V : Type u_1} {D : Type u_2} [DecidableEq V] (G : RotationMap V D) (W : Finset V) {t : ℕ} (p : V × (Fin t → D)) :

Number of visits to W, including the initial vertex.

theorem Cslib.RotationMap.visitCount_le {V : Type u_1} {D : Type u_2} [DecidableEq V] (G : RotationMap V D) (W : Finset V) {t : ℕ} (p : V × (Fin t → D)) :
G.visitCount W p ≤ t + 1

A walk cannot have more visits than vertex times.

@[simp]
theorem Cslib.RotationMap.visitCount_empty {V : Type u_1} {D : Type u_2} [DecidableEq V] (G : RotationMap V D) {t : ℕ} (p : V × (Fin t → D)) :

No vertex time visits the empty set.

@[simp]
theorem Cslib.RotationMap.visitCount_univ {V : Type u_1} {D : Type u_2} [Fintype V] [DecidableEq V] (G : RotationMap V D) {t : ℕ} (p : V × (Fin t → D)) :

Every vertex time visits the full vertex set.

theorem Cslib.RotationMap.visitCount_zero {V : Type u_1} {D : Type u_2} [DecidableEq V] (G : RotationMap V D) (W : Finset V) (p : V × (Fin 0 → D)) :
G.visitCount W p = if p.1 ∈ W then 1 else 0

A zero-edge walk counts only its initial vertex.

theorem Cslib.RotationMap.sq_dens_filter_selected_walkAt_mem_le {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty V] [Nonempty D] [DecidableEq V] (G : RotationMap V D) (W : Finset V) (t : ℕ) (S : Finset ℕ) (hS : S ⊆ Finset.range (t + 1)) :
↑{p : V × (Fin t → D) | ∀ i ∈ S, G.walkAt p i ∈ W}.dens ^ 2 ≤ (↑W.dens + G.spectralExpansion ^ 2) ^ S.card

The selected-time hitting estimate in squared form. Unselected steps use norm contraction, rather than the weaker full-set mask estimate from Exercise 8.43.

theorem Cslib.RotationMap.dens_filter_selected_walkAt_mem_le {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty V] [Nonempty D] [DecidableEq V] (G : RotationMap V D) (W : Finset V) (t : ℕ) (S : Finset ℕ) (hS : S ⊆ Finset.range (t + 1)) :
↑{p : V × (Fin t → D) | ∀ i ∈ S, G.walkAt p i ∈ W}.dens ≤ (↑W.dens + G.spectralExpansion ^ 2) ^ (↑S.card / 2)

Selected-time hitting for any subset of the t + 1 vertex times.

theorem Cslib.RotationMap.expect_choose_visitCount_le {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty V] [Nonempty D] [DecidableEq V] (G : RotationMap V D) (W : Finset V) (t m : ℕ) :
(Finset.univ.expect fun (p : V × (Fin t → D)) => ↑((G.visitCount W p).choose m)) ≤ ↑((t + 1).choose m) * (↑W.dens + G.spectralExpansion ^ 2) ^ (↑m / 2)

The binomial factorial moment of the number of visits.

theorem Cslib.RotationMap.dens_filter_visitCount_ge_le {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty V] [Nonempty D] [DecidableEq V] (G : RotationMap V D) (W : Finset V) (t m : ℕ) :
↑{p : V × (Fin t → D) | m ≤ G.visitCount W p}.dens ≤ ↑((t + 1).choose m) * (↑W.dens + G.spectralExpansion ^ 2) ^ (↑m / 2)

Integer upper tail, including threshold zero and impossible thresholds.

theorem Cslib.RotationMap.dens_filter_visitCount_gt_le {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty V] [Nonempty D] [DecidableEq V] (G : RotationMap V D) (W : Finset V) (t m : ℕ) :
↑{p : V × (Fin t → D) | m < G.visitCount W p}.dens ≤ ↑((t + 1).choose m) * (↑W.dens + G.spectralExpansion ^ 2) ^ (↑m / 2) / (↑m + 1)

Strict integer upper tail with the factorial-moment improvement 1 / (m + 1).

theorem Cslib.RotationMap.dens_filter_visitCount_gt_lt {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty V] [Nonempty D] [DecidableEq V] (G : RotationMap V D) (W : Finset V) (t m : ℕ) (hm : 1 ≤ m) (hmL : m ≤ t + 1) (hq : 0 < ↑W.dens + G.spectralExpansion ^ 2) :
↑{p : V × (Fin t → D) | m < G.visitCount W p}.dens < ↑((t + 1).choose m) * (↑W.dens + G.spectralExpansion ^ 2) ^ (↑m / 2)

The source's strictly-smaller bound, with the required nondegenerate hypotheses.

theorem Cslib.RotationMap.dens_filter_visitCount_half_lt {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty V] [Nonempty D] [DecidableEq V] (G : RotationMap V D) (W : Finset V) (t : ℕ) (hη : G.spectralExpansion < √↑W.dens) :
↑{p : V × (Fin t → D) | (t + 1) / 2 < G.visitCount W p}.dens < (32 * ↑W.dens) ^ (↑(t + 1) / 4)

Goldreich's half-visits example for every positive vertex length t + 1. The event uses integer division, so odd lengths have their usual strict-majority meaning.

theorem Cslib.RotationMap.dens_filter_selected_walkAt_mem_le_of_spectralExpansion_le {V : Type u_1} {D : Type u_2} [Fintype V] [Fintype D] [Nonempty V] [Nonempty D] [DecidableEq V] (G : RotationMap V D) (W : Finset V) (t : ℕ) (S : Finset ℕ) (hS : S ⊆ Finset.range (t + 1)) (lambda d : ℝ) (h : G.spectralExpansion ≤ lambda / d) :
↑{p : V × (Fin t → D) | ∀ i ∈ S, G.walkAt p i ∈ W}.dens ≤ (↑W.dens + (lambda / d) ^ 2) ^ (↑S.card / 2)

Selected-time hitting with an explicit upper bound on the normalized eigenvalue.