Proposition 6.1 -- is a strong stationary time
ProvedMarkovMixing.top_to_random_strong_stationaryConsider the top-to-random shuffle of a deck of cards: at each step the top card is removed and reinserted at a position chosen uniformly at random among the possibilities. A randomized stopping time for a chain is a rule that, after observing the trajectory up to the present, decides (possibly with randomness) whether to stop now; such a rule is a strong stationary time if it is almost surely finite and the state at the moment of stopping is exactly stationary — here, a uniformly random deck — and independent of the stopping time itself.
The theorem (Proposition 6.1 together with Example 6.7 of Levin–Peres–Wilmer) asserts: for any starting deck, the following rule is a strong stationary time for the top-to-random shuffle — stop one shuffle after the card that was originally at the bottom of the deck first reaches the top. Intuition: each time a card is inserted below the original bottom card, it lands in a uniformly random relative position; by the time the original bottom card surfaces, the cards beneath it form a uniformly random arrangement, and one more insertion randomizes the whole deck.
import Definitions.Def_mm_stopping
namespace MarkovMixing
/-- **Proposition 6.1 and Example 6.7** (LPW): for the top-to-random shuffle,
the time `τ_top` — one shuffle after the original bottom card first reaches
the top of the deck — is a strong stationary time: the deck at time `τ_top`
is uniformly distributed and independent of `τ_top`. -/
theorem top_to_random_strong_stationary (n : ℕ) (hn : 2 ≤ n)
(x : Equiv.Perm (Fin n)) :
IsStrongStationaryTime (topToRandom n) (uniformDist (Equiv.Perm (Fin n))) x
(topToRandomRule n) := by
sorry
end MarkovMixing
Read-back
What the Lean code literally says, in plain math · claude-fable-5
For every natural number with and every permutation of the -element set , the theorem asserts the following. Let be the "top-to-random" transition matrix on the (finite) set of permutations of , defined entrywise by
where is the function sending position to when , to when , and to when (the arrangement obtained from by removing the entry at position and reinserting it at position , shifting the intervening entries toward position ); the count is of those for which agrees with at every position. Let be the constant function on permutations with value (the reciprocal of the cardinality of the permutation group). Let be the randomized stopping rule that assigns, to each time and each trajectory of permutations, the stopping probability if and — i.e. the entry at position of the state one step before the current time equals the entry at position of the initial state — and otherwise; in particular this rule never stops at time , and its decision at time inspects the state at time , not the state at time . Define, for each time and permutation , the quantity
the probability of following a path from to , not stopping at any time before , and stopping at time . The conclusion is the conjunction of three statements: (1) for every and every trajectory (immediate here since takes only the values and ); (2) , where the infinite sum over is a countable sum that takes the junk value if the family fails to be summable (so this clause asserts in particular that the family is summable with sum ); and (3) for every time and every permutation ,
i.e. conditional on stopping at time , the stopped state is exactly proportional to the constant density (uniform over all permutations). Note that the statement does not itself assert that is a stochastic matrix; enters only through the path weights above, and the hypothesis rules out the degenerate cases (where the matrix entries would involve division by ) and .
Confirmed by the mission captain (proposal self-audit).