Proposition 8.14 -- the riffle shuffle needs shuffles
ProvedMarkovMixing.riffle_mixing_lowerThe riffle shuffle (Gilbert–Shannon–Reeds) of a deck of cards cuts the deck into two packets and interleaves them; formally it is the time reversal of the inverse riffle, in which each card independently receives a uniform bit and the cards labeled move to the top preserving relative order. Its stationary distribution is uniform. For a tolerance , the mixing time is the first with , where .
The theorem (Proposition 8.14 of Levin–Peres–Wilmer) asserts: for any fixed tolerances and margin there is an such that for all ,
So the upper bound of the companion theorem is sharp up to the constant factor : no fixed number of riffle shuffles suffices for all deck sizes, and is the true order. The obstruction is counting: shuffles produce at most equally likely bit-histories, too few to spread mass over orderings until .
import Definitions.Def_mm_shuffle import Mathlib.Analysis.SpecialFunctions.Log.Base
namespace MarkovMixing
/-- **Proposition 8.14** (LPW): for the riffle shuffle on an `n`-card deck
and fixed `0 < ε, δ < 1`, for sufficiently large `n`,
`t_mix(ε) ≥ (1 − δ) log₂ n`. -/
theorem riffle_mixing_lower (ε δ : ℝ) (hε : 0 < ε) (hε1 : ε < 1)
(hδ : 0 < δ) (hδ1 : δ < 1) :
∃ N : ℕ, ∀ n : ℕ, N ≤ n →
(1 - δ) * Real.logb 2 n ≤
(mixingTime (riffleShuffle n) (uniformDist (Equiv.Perm (Fin n))) ε : ℝ) := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
For every pair of real numbers and with and , there exists a natural number such that for every natural number ,
where the right-hand side is a natural number (cast to a real) defined as follows. The state space is the group of permutations of . The "riffle shuffle" transition matrix is defined entrywise by
where, for each bit-string , is the (stable) sorting permutation of the tuple — i.e. the permutation produced by the library's sorting operation, which rearranges positions so that the composed tuple is monotone (with ), breaking ties by position. (The matrix is defined by this counting formula alone; the statement carries no hypothesis that is stochastic, irreducible, or anything else.) The reference distribution is the constant function on (the uniform distribution). The total-variation-style distance between two functions used here is , the supremum over all finite subsets of the absolute difference of the sums (note: no factor ). The worst-case distance to at time is , where is row of the -th matrix power. Finally,
with the convention (from the infimum over natural numbers) that this equals when no such exists. Here denotes the real base-2 logarithm of (with the convention , though the claim is only about all sufficiently large : the threshold may depend on and , and may be chosen arbitrarily large). The asserted inequality is non-strict (), and the conclusion is a lower bound: is at most the mixing quantity.
Confirmed by the mission captain (proposal self-audit).