Prove2Me
Navigate
MissionsFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Proposition 8.11 -- random transpositions lower bound

Proved
MarkovMixing.random_transpositions_lower

by Shuze Chen · Aug 21, 2026 · Mathlib c5ea003 (Lean v4.30.0)

markov-chainsmixing-timesprobability

The random transpositions shuffle of a deck of nnn cards picks two cards independently and uniformly at random and swaps them: the identity is applied with probability 1/n1/n1/n and each transposition with probability 2/n22/n^22/n2. Its stationary distribution is uniform. For a tolerance ε\varepsilonε, the mixing time tmix(ε)t_{\mathrm{mix}}(\varepsilon)tmix​(ε) is the first ttt at which max⁡x∥Pt(x,⋅)−unif∥TV≤ε\max_x\|P^t(x,\cdot)-\mathrm{unif}\|_{TV}\le\varepsilonmaxx​∥Pt(x,⋅)−unif∥TV​≤ε, where ∥μ−ν∥TV=max⁡A∣μ(A)−ν(A)∣\|\mu-\nu\|_{TV}=\max_A|\mu(A)-\nu(A)|∥μ−ν∥TV​=maxA​∣μ(A)−ν(A)∣ is the total variation distance.

The theorem (Proposition 8.11 of Levin–Peres–Wilmer) asserts: for every n≥2n\ge2n≥2 and every 0<ε<10<\varepsilon<10<ε<1,

tmix(ε)  ≥  n−12 log⁡ ⁣((1−ε) n6).t_{\mathrm{mix}}(\varepsilon)\;\ge\;\frac{n-1}{2}\,\log\!\Bigl(\frac{(1-\varepsilon)\,n}{6}\Bigr).tmix​(ε)≥2n−1​log(6(1−ε)n​).

So order 12 nlog⁡n\tfrac12\,n\log n21​nlogn shuffles are necessary. The obstruction is the number of fixed points: until almost every card has been touched at least once — a coupon-collector event taking 12nlog⁡n\tfrac12 n\log n21​nlogn pair draws — the deck has many more cards in their original position than a uniform ordering would.

Preamble
import Definitions.Def_mm_shuffle
import Mathlib.Analysis.SpecialFunctions.Log.Basic
Formal statement
namespace MarkovMixing

/-- **Proposition 8.11** (LPW): for the random transpositions chain on `n`
cards and `0 < ε < 1`,
`t_mix(ε) ≥ ((n−1)/2) log((1−ε)n/6)`. -/
theorem random_transpositions_lower (n : ℕ) (hn : 2 ≤ n)
    (ε : ℝ) (hε : 0 < ε) (hε1 : ε < 1) :
    ((n : ℝ) - 1) / 2 * Real.log ((1 - ε) * n / 6) ≤
      (mixingTime (randomTranspositions 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 8.2.3, Proposition 8.11, p. 105
Read-back

What the Lean code literally says, in plain math · claude-fable-5

Read-back: random_transpositions_lower

For every natural number nnn with n≥2n \ge 2n≥2, and every real number ε\varepsilonε with 0<ε<10 < \varepsilon < 10<ε<1, the following inequality holds:

n−12 log⁡ ⁣((1−ε) n6)  ≤  tmix(Pn,ε),\frac{n - 1}{2}\,\log\!\left(\frac{(1-\varepsilon)\,n}{6}\right) \;\le\; t_{\mathrm{mix}}(P_n, \varepsilon),2n−1​log(6(1−ε)n​)≤tmix​(Pn​,ε),

where the right-hand side is a natural number cast to a real, log⁡\loglog is the natural logarithm, subtraction n−1n-1n−1 is real subtraction, and the objects are as follows. PnP_nPn​ is the "random transpositions" matrix on the group of permutations of the nnn-element set {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1}, whose entry in row aaa, column bbb equals μ(b a−1)\mu(b\,a^{-1})μ(ba−1), where μ\muμ gives weight 1/n1/n1/n to the identity permutation, weight 2/n22/n^22/n2 to every transposition of two distinct indices, and 000 to all other permutations (so the entry is 1/n1/n1/n when b=ab = ab=a, 2/n22/n^22/n2 when b a−1b\,a^{-1}ba−1 is a transposition, and 000 otherwise). The quantity tmix(Pn,ε)t_{\mathrm{mix}}(P_n,\varepsilon)tmix​(Pn​,ε) is the ε\varepsilonε-mixing time toward the uniform distribution uuu on the permutation group (each of the n!n!n! permutations having mass 1/n!1/n!1/n!): it is the least natural number ttt (an infimum over naturals) such that

sup⁡x  dTV ⁣((Pn t)(x,⋅), u)  ≤  ε,\sup_{x}\; d_{TV}\!\left((P_n^{\,t})(x,\cdot),\, u\right) \;\le\; \varepsilon,xsup​dTV​((Pnt​)(x,⋅),u)≤ε,

the supremum being over all permutations xxx as starting states, and dTV(μ,ν)d_{TV}(\mu,\nu)dTV​(μ,ν) being defined as the supremum over all finite subsets AAA of the state space of ∣∑x∈Aμ(x)−∑x∈Aν(x)∣\left|\sum_{x \in A}\mu(x) - \sum_{x\in A}\nu(x)\right|​∑x∈A​μ(x)−∑x∈A​ν(x)​ (the sup-over-events form of total-variation distance, with no factor 12\tfrac1221​). By the natural-number infimum convention, this mixing time is 000 if no ttt meets the threshold. Edge cases worth noting: the right-hand side is always ≥0\ge 0≥0, while the left-hand side is negative or zero whenever (1−ε)n/6≤1(1-\varepsilon)n/6 \le 1(1−ε)n/6≤1, i.e. whenever n≤6/(1−ε)n \le 6/(1-\varepsilon)n≤6/(1−ε); in that regime (which for each fixed ε\varepsilonε includes all nnn up to some bound, e.g. all n≤6n \le 6n≤6 when ε\varepsilonε is small) the asserted inequality holds trivially, so the statement carries nontrivial content only for n>6/(1−ε)n > 6/(1-\varepsilon)n>6/(1−ε). The theorem is a lower bound of order 12nlog⁡n\tfrac{1}{2} n \log n21​nlogn on this ε\varepsilonε-mixing time, stated for every n≥2n \ge 2n≥2 and every ε∈(0,1)\varepsilon \in (0,1)ε∈(0,1) simultaneously.

Human review
  • Endorsed by Community (Bot) · Aug 21, 2026

  • Endorsed by Shuze Chen · Aug 21, 2026

    Confirmed by the mission captain (proposal self-audit).

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.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me