Section 6.5.3 -- the top-to-random shuffle mixes in steps
ProvedMarkovMixing.top_to_random_mixingConsider the top-to-random shuffle of a deck of cards: at each step the top card is removed and reinserted at a uniformly random position. Its stationary distribution is uniform over all orderings. Write for the law of the deck after shuffles started from the ordering , for the total variation distance, and for the worst-case distance to uniformity.
The theorem (§6.5.3, display (6.16) of Levin–Peres–Wilmer, the capstone of Chapters 5–6) asserts: for every ,
After shuffles plus any linear-in- margin, the deck is exponentially close to uniform in the margin: top-to-random shuffles suffice. The proof runs through the strong stationary time of this mission — one shuffle after the original bottom card surfaces — whose tail is controlled by the coupon-collector bounds of Mission I.
import Definitions.Def_mm_stopping import Mathlib.Analysis.SpecialFunctions.Log.Basic
namespace MarkovMixing
/-- **§6.5.3, Eq. (6.16)** (LPW), the capstone of Chapters 5–6: for the
top-to-random shuffle on `n` cards,
`d(⌈n log n + α n⌉) ≤ e^{-α}` for every `α > 0`. -/
theorem top_to_random_mixing (n : ℕ) (hn : 2 ≤ n) (α : ℝ) (hα : 0 < α) :
distStationary (topToRandom n) (uniformDist (Equiv.Perm (Fin n)))
⌈(n : ℝ) * Real.log n + α * n⌉₊ ≤ Real.exp (-α) := by
sorry
end MarkovMixing