Documentation

CslibFrontier.Probability.BitString.LazyRandomWalk

The lazy random walk on the hypercube #

The lazy random walk on {0,1}^ι (Cslib.BitString.lazyRandomWalk) picks a coordinate i and a fair bit b uniformly and independently and overwrites coordinate i by b ([LP17], Sections 2.3 and 5.3.1). It is reversible with respect to the uniform distribution.

The coordinate-refresh coupling (Cslib.BitString.lazyRandomWalkCoupling) uses the same coordinate and the same bit in both copies, so once coordinate i has been chosen the copies agree there forever. A fixed coordinate is never chosen in t steps with probability (1 - 1/n)^t, where n = |ι|. The union bound over the coordinates is the coupon-collector tail bound of [LP17], Proposition 2.4, and with the coupling bound (Corollary 5.5) gives

The last bound is [LP17], (5.6), with a ceiling: (5.6) is printed as t_mix(ε) ≤ n log n + log(1/ε) n, which fails without rounding up for n = 1 and ε = 2/5, where t_mix(ε) = 1 > log (5/2). The ceiling is what Proposition 2.4 gives; the library's Markov chain tests check this instance.

Main definitions #

Main results #

References #

noncomputable def Cslib.BitString.lazyRandomWalk (ι : Type u_1) [Fintype ι] [DecidableEq ι] [Nonempty ι] :

The lazy random walk on the hypercube ι → Bool: overwrite a uniformly random coordinate by a fair bit ([LP17], Sections 2.3 and 5.3.1).

noncomputable def Cslib.BitString.lazyRandomWalkCoupling (ι : Type u_1) [Fintype ι] [DecidableEq ι] [Nonempty ι] :
Probability.MarkovChain ((ι → Bool) × (ι → Bool))

The coordinate-refresh coupling of two lazy random walks on the hypercube: both copies overwrite the same uniformly random coordinate by the same fair bit ([LP17], Section 5.3.1).

theorem Cslib.BitString.lazyRandomWalk_apply_comm {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] (x y : ι → Bool) :
((lazyRandomWalk ι).step x) y = ((lazyRandomWalk ι).step y) x

The lazy random walk has a symmetric transition matrix.

The lazy random walk is reversible with respect to the uniform distribution.

The uniform distribution is stationary for the lazy random walk.

Each copy of the coordinate-refresh coupling is a lazy random walk.

The coordinate-refresh coupling is sticky.

theorem Cslib.BitString.lazyRandomWalkCoupling_toOuterMeasure_ne {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] (i : ι) (z : (ι → Bool) × (ι → Bool)) :
((lazyRandomWalkCoupling ι).step z).toOuterMeasure {w : (ι → Bool) × (ι → Bool) | w.1 i ≠ w.2 i} = if z.1 i ≠ z.2 i then ↑(Fintype.card ι - 1) / ↑(Fintype.card ι) else 0

One step of the coordinate-refresh coupling leaves an unmatched coordinate unmatched with probability (n - 1)/n and never unmatches a matched coordinate.

theorem Cslib.BitString.lazyRandomWalkCoupling_pow_toOuterMeasure_ne_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] (i : ι) (t : ℕ) (z : (ι → Bool) × (ι → Bool)) :
(((lazyRandomWalkCoupling ι ^ t).step z).toOuterMeasure {w : (ι → Bool) × (ι → Bool) | w.1 i ≠ w.2 i}).toReal ≤ (1 - (↑(Fintype.card ι))⁻¹) ^ t

After t steps of the coordinate-refresh coupling, a fixed coordinate is still unmatched with probability at most (1 - 1/n)^t.

theorem Cslib.BitString.lazyRandomWalkCoupling_pow_toOuterMeasure_le {ι : Type u_1} [Fintype ι] [DecidableEq ι] [Nonempty ι] (t : ℕ) (z : (ι → Bool) × (ι → Bool)) :
(((lazyRandomWalkCoupling ι ^ t).step z).toOuterMeasure {w : (ι → Bool) × (ι → Bool) | w.1 ≠ w.2}).toReal ≤ ↑(Fintype.card ι) * (1 - (↑(Fintype.card ι))⁻¹) ^ t

After t steps of the coordinate-refresh coupling, the copies differ with probability at most n (1 - 1/n)^t (union bound over coordinates, [LP17], Proposition 2.4).

d(t) ≤ n (1 - 1/n)^t for the lazy random walk on the hypercube.

d(t) ≤ n e^{-t/n} for the lazy random walk on the hypercube ([LP17], Section 5.3.1).

Mixing time of the lazy hypercube walk ([LP17], (5.6), with the ceiling made explicit): t_mix(ε) ≤ ⌈n log n + n log ε⁻¹⌉ for every ε > 0, where n = |ι|.