Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Section 16.1.3 -- adjacent transpositions lower bound

Proved
MarkovMixing.adjacent_transpositions_lower

by Shuze Chen · Aug 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

markov-chainsmixing-timesprobability

The lazy random adjacent transpositions shuffle of a deck of nnn cards does nothing with probability 12\tfrac1221​ and otherwise swaps the cards in a uniformly chosen pair of neighbouring positions (i,i+1)(i,i+1)(i,i+1): the identity carries probability 12\tfrac1221​ and each of the n−1n-1n−1 adjacent transpositions probability 1/(2(n−1))1/\bigl(2(n-1)\bigr)1/(2(n−1)). Its stationary distribution is uniform. The mixing time tmixt_{\mathrm{mix}}tmix​ is the first time ttt at which max⁡x∥Pt(x,⋅)−unif∥TV≤14\max_x\|P^t(x,\cdot)-\mathrm{unif}\|_{TV}\le\tfrac14maxx​∥Pt(x,⋅)−unif∥TV​≤41​, with ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣ the total variation distance.

The theorem (§16.1.3 of Levin–Peres–Wilmer) asserts: for every n≥2n\ge2n≥2,

tmix  ≥  n2 (n−1)16.t_{\mathrm{mix}}\;\ge\;\frac{n^2\,(n-1)}{16}.tmix​≥16n2(n−1)​.

Order n3n^3n3 steps are necessary, matching the n3log⁡nn^3\log nn3logn upper bound up to the logarithm. The obstruction is transport: a single card performs a random walk on the nnn positions that advances only when its own position is selected, so moving it across the deck takes order n⋅n2n\cdot n^2n⋅n2 steps.

Preamble
import Definitions.Def_mm_shuffle
Formal statement
namespace MarkovMixing

/-- **§16.1.3** (LPW): for the lazy random adjacent transpositions shuffle
on `n` cards, `t_mix ≥ n²(n−1)/16`. -/
theorem adjacent_transpositions_lower (n : ℕ) (hn : 2 ≤ n) :
    (n : ℝ) ^ 2 * ((n : ℝ) - 1) / 16 ≤
      (tMix (groupWalk (adjacentTranspositionDist n))
        (uniformDist (Equiv.Perm (Fin n))) : ℝ) := by
  sorry

end MarkovMixing
Source
D. A. Levin, Y. Peres, E. L. Wilmer, Markov Chains and Mixing Times, AMS 2009, https://documents.epfl.ch/groups/i/ip/ipg/www/2013-2014/Random_Walks/markovmixing.pdf, Section 16.1.3, pp. 219-220

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me