Proposition 16.2 -- the -reversal chain is far from mixed at
ProvedMarkovMixing.l_reversal_lowerThe -reversal chain shuffles a circular arrangement of cards (an arrangement indexed by ): at each step it picks a starting position and a length uniformly at random and reverses the circular arc of cards from position to position , leaving the rest fixed. Its stationary distribution is uniform. Write for the law after moves from the arrangement , for the total variation distance, and for the chain on cards.
The theorem (Proposition 16.2 of Levin–Peres–Wilmer) asserts: for any family of maximal reversal lengths with and any fixed , evaluating each chain at time gives
Before time the chain is asymptotically as far from uniform as possible, whatever is. The witness is again coupon-collector-flavoured: cards whose neighbourhood no reversal has yet touched retain their original neighbours in the circular order. (In the formal statement the deck sizes are enumerated as , , so that automatically.)
import Definitions.Def_mm_shuffle import Mathlib.Analysis.SpecialFunctions.Log.Basic
namespace MarkovMixing
/-- **Proposition 16.2** (LPW): for the family of `L`-reversal chains with
`1 ≤ L(n) < n/2` and any fixed `0 < ε < 1`, at time
`t(n) = (1−ε)(n/2) log n` the distance to stationarity tends to `1`:
the chain is far from mixed. (States are indexed by `m` with `n = m + 2`.) -/
theorem l_reversal_lower (L : ℕ → ℕ)
(hL : ∀ n : ℕ, 3 ≤ n → 1 ≤ L n ∧ 2 * L n < n)
(ε : ℝ) (hε : 0 < ε) (hε1 : ε < 1) :
Filter.Tendsto
(fun m : ℕ =>
distStationary (groupWalk (lReversalDist (m + 2) (L (m + 2))))
(uniformDist (Equiv.Perm (ZMod (m + 2))))
⌊(1 - ε) * ((m : ℝ) + 2) / 2 * Real.log ((m : ℝ) + 2)⌋₊)
Filter.atTop (nhds 1) := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Fix a function satisfying: for every natural number , both and (nothing is assumed about ); and fix a real number with . The theorem asserts that the real sequence converges to as , where is defined as follows with (so ranges over the integers ).
The state space is the group of permutations of . Call a permutation a "circular reversal with parameters ", for and , when for every : if the canonical representative of in is then (arithmetic in , with reduced mod ), and otherwise — i.e. reverses the circular arc in place and fixes everything else (for this forces to be the identity; if the condition covers the whole circle). The weight function is
counting multiplicity over parameter pairs (in particular the identity receives weight from the pairs with ; if the numerator count is and the denominator is , giving by the division-by-zero convention — the hypothesis on rules this out only for ). The transition matrix is the random-walk matrix . The reference distribution is the constant function (uniform on the permutation group). The distance between two functions on the permutation group is over all finite subsets (note: no factor ), and the worst-case distance at time is over starting states , using row of the -th matrix power. The evaluation time is
a natural number obtained by the nonnegative floor (values below floor to , though here the expression is nonnegative), where is the natural logarithm (not base 2). The sequence in question is , and the assertion is precisely that (convergence to the value in the usual topology of ; no rate is claimed). The statement carries no hypothesis that is stochastic or that is stationary for it, and no claim is made about the mixing time itself — only this limit of distances at the specified times.
Confirmed by the mission captain (proposal self-audit).