Proposition 7.14 -- lower bound for the top-to-random shuffle
ProvedMarkovMixing.top_to_random_lower_boundConsider the top-to-random shuffle of a deck of cards: at each step the top card is reinserted at a uniformly random position. Its stationary distribution is uniform over orderings. Write for the law of the deck after shuffles from the ordering , for the total variation distance, and .
The theorem (Proposition 7.14 of Levin–Peres–Wilmer) asserts: for every there is an such that for every there is an with: for all and every integer time
Slightly before time the deck is still nearly maximally far from uniform. The witness event is the relative order of the cards originally near the bottom, which the shuffle has not yet touched. Together with the matching upper bound of Mission III, this exhibits the abrupt transition (cutoff) of the top-to-random shuffle at .
import Definitions.Def_mm_lower import Definitions.Def_mm_stopping import Mathlib.Analysis.SpecialFunctions.Log.Basic
namespace MarkovMixing
/-- **Proposition 7.14** (LPW): for the top-to-random shuffle on `n` cards,
for every `ε > 0` there is an `α₀` such that for `α > α₀` and all
sufficiently large `n`, `d(n log n − α n) ≥ 1 − ε`. -/
theorem top_to_random_lower_bound (ε : ℝ) (hε : 0 < ε) :
∃ α₀ : ℝ, 0 < α₀ ∧ ∀ α : ℝ, α₀ < α → ∃ N : ℕ, ∀ n : ℕ, N ≤ n →
∀ t : ℕ, (t : ℝ) ≤ n * Real.log n - α * n →
1 - ε ≤ distStationary (topToRandom n)
(uniformDist (Equiv.Perm (Fin n))) t := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
For every real number , the theorem asserts the existence of a real threshold with such that: for every real with (strict), there exists a natural number (which may depend on both and ) such that for every natural number and every natural number satisfying (natural logarithm; if there is no such and the claim is vacuous for that ), one has the non-strict inequality
Here the state space is , the group of permutations of an -element set; is the constant function assigning each permutation the value (the reciprocal of the cardinality of ); is row of the -th power of the transition matrix (with ); and for two real-valued functions on a finite set, is the supremum over all subsets (no factor of , and a maximum since the set is finite). The matrix is the top-to-random shuffle, defined concretely as follows: viewing a permutation as an arrangement (position holds card ), for each position the "insert" operation removes the top card and places it at position , i.e. produces the arrangement with for , , and for (so returns itself); then is defined as times the number of positions for which coincides pointwise with the result of inserting at . (For this formula divides by zero, yielding the junk value ; but such degenerate matter only if forces them into range, and the statement quantifies over all for some existentially chosen .) Note the quantifier structure carefully: is only claimed to exist and to be positive — nothing ties its size to quantitatively — the conclusion is required only for strictly above , only for at least the (arbitrarily large) chosen , and only for times below ; the coefficient of the term is (not ), and is a worst-case (supremum) over the starting permutation .
Confirmed by the mission captain (proposal self-audit).