OpenAI mathematics release · Result family 238

Optimal logarithmic mixing of the Thorp shuffle

Result described by OpenAIProves that the Thorp shuffle randomizes N=2dN=2^d labeled cards in Θ(log⁡N)\Theta(\log N) physical shuffles, settling its optimal mixing order for power-of-two deck sizes. Convergence is in total variation from the worst initial ordering and concerns the entire permutation, not just individual card positions.

12 manuscriptsUpstream Lean scope documentedProofweave replay pending
Proof map

See the recorded structure for this family: a deep argument map, a draft proof chain, or a source-linked metadata scaffold.

Open the proof map →

Read what is proved, and what is not

Explanation

No reviewed artifact
No reviewed explanation artifact

No reviewed explanation artifact is available for this family. This empty slot is not evidence that the result is unproven; it means no explanation draft has been prepared and reviewed for this snapshot.

Read the original work

Manuscripts & citations

Download this record ↓
Manuscript 1OpenAI · 2026-09-26

Optimal-order mixing of the Thorp shuffle

Abstract from the sourceWe prove that the Thorp shuffle on 2d2^d cards mixes in Θ(d)\Theta(d) complete shuffles. The full permutation law after 1600d1600d shuffles converges to uniform in total variation as d→∞d\to\infty, uniformly over the initial deck, while a support count gives a lower bound of 2d−O(1)2d-O(1).

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Optimal-order-mixing-of-the-Thorp-shuffle-September-26-2026,
  author = {{OpenAI}},
  title = {{Optimal-order mixing of the Thorp shuffle}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Optimal-order-mixing-of-the-Thorp-shuffle-September-26-2026/paper.pdf}{OAI:Optimal-order-mixing-of-the-Thorp-shuffle-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 2OpenAI · 2026-09-26

Random coordinate frames and partial permutation laws

Abstract from the sourceFor the Thorp shuffle on 2d2^d cards, we prove that the worst-start total-variation distance after 32800d32800d physical shuffles tends to zero as d→∞d\to\infty. Combining our fixed-list estimate with the companion Fourier transfer improves this bound to 512d512d shuffles. These results follow from bounds on partially observed permutation laws in random coordinate frames.

Formalization evidence

The imported scope documents and formalization index do not identify this manuscript’s coverage. Other upstream proof artifacts may exist.

BibTeX citation from OpenAI
@misc{OAI:Random-coordinate-frames-and-partial-permutation-laws-September-26-2026,
  author = {{OpenAI}},
  title = {{Random coordinate frames and partial permutation laws}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Random-coordinate-frames-and-partial-permutation-laws-September-26-2026/main.pdf}{OAI:Random-coordinate-frames-and-partial-permutation-laws-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 3OpenAI · 2026-09-26

From partial permutation information to Fourier bounds

Abstract from the sourceWe show how information about partial permutations controls full permutation laws. Let n tend to infinity through multiples of eight. If the images of a uniformly chosen 7n/87n/8 labels approach the uniform injection law in average total variation, and the sign mean tends to zero, then the product of two independent permutations with the given law converges to uniform on Sn.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:From-partial-permutation-information-to-Fourier-bounds-September-26-2026,
  author = {{OpenAI}},
  title = {{From partial permutation information to Fourier bounds}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/From-partial-permutation-information-to-Fourier-bounds-September-26-2026/main.pdf}{OAI:From-partial-permutation-information-to-Fourier-bounds-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 4OpenAI · 2026-09-26

Conditional information under deterministic coordinate sweeps

Abstract from the sourceWe bound the information remaining after paths of specified cards in the Thorp shuffle on n=2dn=2^d cards have been observed. After a fixed number of deterministic coordinate sweeps, the joint endpoint law of further cards is close to uniform on the available positions, on average over the observed paths, provided a fixed positive fraction of labels lies outside both lists. Combined with a Fourier transfer, these bounds give full-deck mixing after 2048d2048d physical shuffles.

Formalization evidence

The imported scope documents and formalization index do not identify this manuscript’s coverage. Other upstream proof artifacts may exist.

BibTeX citation from OpenAI
@misc{OAI:Conditional-information-under-deterministic-coordinate-sweeps-September-26-2026,
  author = {{OpenAI}},
  title = {{Conditional information under deterministic coordinate sweeps}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Conditional-information-under-deterministic-coordinate-sweeps-September-26-2026/main.pdf}{OAI:Conditional-information-under-deterministic-coordinate-sweeps-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 5OpenAI · 2026-09-26

Conditional permutations in a revealed switching environment

Abstract from the sourceFix half the labels in a Thorp shuffle on 2d2^d positions and reveal their complete trajectories. We prove that, after an explicit absolute number of coordinate sweeps, the conditional permutation of the remaining labels approaches uniform in expected total variation as d→∞d\to\infty, uniformly in the initial layout. The resulting constructions give full-deck mixing in a constant multiple of d physical shuffles.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Conditional-permutations-in-a-revealed-switching-environment-September-26-2026,
  author = {{OpenAI}},
  title = {{Conditional permutations in a revealed switching environment}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Conditional-permutations-in-a-revealed-switching-environment-September-26-2026/paper.pdf}{OAI:Conditional-permutations-in-a-revealed-switching-environment-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 6OpenAI · 2026-09-26

Routing densities and representation contraction for Thorp sweeps

Abstract from the sourceFor N=2dN=2^d cards, we prove that an absolute number of coordinate sweeps of the Thorp shuffle brings the full permutation law to total-variation distance tending to zero from uniform. The mixing time therefore has optimal order Θ(log⁡N)\Theta(\log N) in physical shuffles.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Routing-densities-and-representation-contraction-for-Thorp-sweeps-September-26-2026,
  author = {{OpenAI}},
  title = {{Routing densities and representation contraction for Thorp sweeps}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Routing-densities-and-representation-contraction-for-Thorp-sweeps-September-26-2026/paper.pdf}{OAI:Routing-densities-and-representation-contraction-for-Thorp-sweeps-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 7OpenAI · 2026-09-26

Row–column symmetry and contraction of coordinate sweeps

Abstract from the sourceWe prove that the Thorp shuffle on N=2dN=2^d labeled cards has full-permutation total-variation mixing time Θ(log⁡N)\Theta(\log N) in physical shuffles. An absolute number of coordinate sweeps suffices for the upper bound.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Row-column-symmetry-and-contraction-of-coordinate-sweeps-September-26-2026,
  author = {{OpenAI}},
  title = {{Row--column symmetry and contraction of coordinate sweeps}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Row-column-symmetry-and-contraction-of-coordinate-sweeps-September-26-2026/paper.pdf}{OAI:Row-column-symmetry-and-contraction-of-coordinate-sweeps-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 8OpenAI · 2026-09-26

Random-subspace tests and trace smoothing for coordinate sweeps

Abstract from the sourceWe prove that an absolute number of coordinate sweeps of the Thorp shuffle on n=2dn=2^d positions brings the full permutation to total-variation distance at most 12n−5\frac12n^{-5} from uniform, uniformly over the initial deck. Thus O(d)O(d) physical shuffles suffice, which is optimal in order.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Random-subspace-tests-and-trace-smoothing-for-coordinate-sweeps-September-26-2026,
  author = {{OpenAI}},
  title = {{Random-subspace tests and trace smoothing for coordinate sweeps}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Random-subspace-tests-and-trace-smoothing-for-coordinate-sweeps-September-26-2026/paper.pdf}{OAI:Random-subspace-tests-and-trace-smoothing-for-coordinate-sweeps-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 9OpenAI · 2026-09-26

Compatibility entropy and the spectrum of a Thorp sweep

Abstract from the sourceWe prove that the Thorp shuffle on n=2dn=2^d cards mixes in Θ(d)\Theta(d) physical shuffles. After a sufficiently large fixed number of coordinate sweeps, the total-variation distance of the full permutation from uniform tends to zero as d→∞d\to\infty.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Compatibility-entropy-and-the-spectrum-of-a-Thorp-sweep-September-26-2026,
  author = {{OpenAI}},
  title = {{Compatibility entropy and the spectrum of a Thorp sweep}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Compatibility-entropy-and-the-spectrum-of-a-Thorp-sweep-September-26-2026/paper.pdf}{OAI:Compatibility-entropy-and-the-spectrum-of-a-Thorp-sweep-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 10OpenAI · 2026-09-26

Signed tensor densities and diagram budgets for the Thorp shuffle

Abstract from the sourceWe prove that a fixed number of coordinate sweeps of the Thorp shuffle on 2d2^d cards makes the squared L2 distance of the full permutation density from uniform tend to zero as d→∞d\to\infty. In particular, the total-variation mixing time is Θ(d)\Theta(d) physical shuffles.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Signed-tensor-densities-and-diagram-budgets-for-coordinate-sweeps-September-26-2026,
  author = {{OpenAI}},
  title = {{Signed tensor densities and diagram budgets for the Thorp shuffle}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Signed-tensor-densities-and-diagram-budgets-for-coordinate-sweeps-September-26-2026/paper.pdf}{OAI:Signed-tensor-densities-and-diagram-budgets-for-coordinate-sweeps-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 11OpenAI · 2026-09-26

Conditional coordinate sweeps and analytic transfer

Abstract from the sourceFor coordinate sweeps with near-uniform line laws and line sizes among powers of two in a suitable fixed interval, we prove a Schatten-moment bound after conditioning on any feasible collection of prescribed card trajectories. An analytic transfer to binary sweeps then shows that a fixed number of sweeps mixes the Thorp shuffle on 2d2^d cards in O(d)O(d) physical steps, matching the order of the support lower bound.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:Conditional-coordinate-sweeps-and-analytic-transfer-September-26-2026,
  author = {{OpenAI}},
  title = {{Conditional coordinate sweeps and analytic transfer}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/Conditional-coordinate-sweeps-and-analytic-transfer-September-26-2026/main.pdf}{OAI:Conditional-coordinate-sweeps-and-analytic-transfer-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Manuscript 12OpenAI · 2026-09-26

A strict four-row permanent inequality and permutation moments

Abstract from the sourceWe prove a permanent inequality with exponent strictly below two for laws on S4 sufficiently close to uniform and with exactly uniform coordinate marginals. Applied to a four-row recursion, it shows that an absolute number of coordinate sweeps brings the full permutation of the Thorp shuffle on N=2dN=2^d cards to total-variation distance tending to zero from uniform as N→∞N\to\infty. Thus the mixing time has the optimal order O(log⁡N)O(\log N) in physical shuffles.

Formalization evidence

This manuscript is named in the family’s scope document. Read the scope below for the exact conclusions covered.

BibTeX citation from OpenAI
@misc{OAI:A-strict-four-row-permanent-inequality-and-permutation-moments-September-26-2026,
  author = {{OpenAI}},
  title = {{A strict four-row permanent inequality and permutation moments}},
  howpublished = {OpenAI Math Release preprint
                  \href{https://github.com/openai/math/blob/main/preprints/A-strict-four-row-permanent-inequality-and-permutation-moments-September-26-2026/main.pdf}{OAI:A-strict-four-row-permanent-inequality-and-permutation-moments-September-26-2026}},
  year = {2026}
}

Source snapshot: 1581d4cbdd69. The citation above retains OpenAI’s original wording.

Inspect what was formalized

Lean proof scope

Described by OpenAI · not replayed by Proofweave
Scope statement from the source

The formalization proves optimal-order mixing of the Thorp shuffle on 2d2^d cards. After 1600d1600d complete shuffles, the full permutation law converges in total variation to uniform as d→∞d\to\infty, uniformly over initial decks. Together with the support lower bound of 2d−O(1)2d-O(1), this gives mixing time Θ(d)=Θ(log⁡(2d))\Theta(d)=\Theta(\log(2^d)).

The linked supporting results include frame and conditional-list estimates, regular trace and spectral bounds, signed moments, and full-density L2L^2 control. They also bound reciprocal Specht-dimension sums and give the eight-block Fourier estimate used in the mixing argument.

The formalized supporting result turns bounds on partial-permutation cosets into Fourier bounds. Partition a finite set into b≥1b\ge1 nonempty blocks, and let f≥0f\ge0 be a subprobability weight on its symmetric group whose left-coset masses for each block subgroup are at most BB. For every irreducible unitary representation of dimension DD and every u>0u>0, both the squared Hilbert–Schmidt norm and squared operator norm of its Fourier transform are at most bB C(u)D−1+(u+2)/bbB\,C(u)D^{-1+(u+2)/b}, where C(u)C(u) is the stated symmetric-group degree constant.

The paper's asymptotic conclusion about the product of two random permutations is outside this selected finite estimate.

The formalized results give averaged conditional mixing for half-permutations in the revealed-path model and full-deck mixing for the Thorp shuffle. In particular, the full-deck total-variation distance tends to zero after 16040400d16040400d steps on 2d2^d cards, uniformly over deterministic initial decks. The conditional estimate is averaged over the actual outside-path law, rather than asserted for each individual environment. The formalization also includes the associated overlay, reset minorization, and two-color conditional constructions.

The formalization covers nine routing and representation estimates for Thorp sweeps: adaptive operator and fourth-trace bounds, Casimir moments, dense truncation, sparse contact, harmonic-cycle contraction, smoothing, and three tail or sparse-saving estimates. They bound routing-density deviations and Fourier operators in dense and sparse regimes, including exponential savings in the level scale and representation dimension.

The conditional high-height estimate requires a sufficiently large cutoff height JJ that exceeds twice the number ss of coordinates in the fixed low block, so J>2sJ>2s. These are the earlier nine statements associated with the paper; its changed later statements and six other result blocks are outside this scope.

The formalization proves uniform representation bounds for one coordinate sweep of the Thorp shuffle. For each irreducible representation of dimension DD, it chooses a weight between D3/4D^{3/4} and DD and a Schatten exponent bounded by one absolute constant so that the weighted Schatten moment is at most one. The sweep's operator norm is consequently at most D−cD^{-c} for one absolute c>0c>0.

The supporting row–column estimate bounds the total squared overlap over all multiplicity copies on an occupied board, with explicit dependence on the row and column representation dimensions, the global dimension, the number of missing cells, and the number of rows or columns containing the global Young diagram. The paper's full physical-mixing conclusion is outside these selected representation estimates.

The formalization proves a uniform trace-smoothing estimate for coordinate sweeps of the Thorp shuffle on 2d2^d cards. One absolute sweep parameter works for every d≥1d\ge1: the regular trace is at most 1+(2d)−101+(2^d)^{-10}, and the full permutation law after the corresponding fixed number of sweeps is within 12(2d)−5\tfrac12(2^d)^{-5} of uniform in total variation, for every initial deck. Thus the selected upper bound uses O(d)O(d) physical shuffles.

The formalized result is the weighted compatibility theorem for balanced A×DA\times D rectangles, with n=ADn=AD and n/2≤A,D≤2n\sqrt n/2\le A,D\le2\sqrt n. For arbitrary nonnegative weights on the row and column permutation groups, the normalized compatibility average is bounded by exp⁡(C0n54/100)\exp(C_0n^{54/100}) times the product of the marginal L1/θL^{1/\theta} factors, where θ=1−L/log⁡n>0\theta=1-L/\log\sqrt n>0 and the constants are absolute. Compatibility means injectivity in every original column. The bounded regular-moment and other moment/rank conclusions are not included.

The formalization gives signed representation estimates for coordinate sweeps of the Thorp shuffle. For every signed occurrence of a Young diagram of size 2d2^d, it bounds the logarithm of a fixed-order weighted sweep moment by a small multiple of the signed partition entropy plus an explicit remainder-size budget. The moment order is uniform over the diagrams and decompositions after the two small coefficients are fixed.

The linked supporting angle bound controls the overlap of row, column, and global signed-type projections on an occupied rectangle, with explicit entropy, dimension, and missing-cell factors. These selected estimates support the paper's full-density argument; the full L2L^2 and total-variation mixing conclusion is outside them.

The formalized binary-sweep theorem gives a universal power contraction in every irreducible representation: for sufficiently large dd, the averaged sweep on 2d2^d slots has operator norm at most D−gD^{-g} in representation dimension DD, for some g>0g>0. The sign expectation is zero, and a fixed number of independent sweeps approaches uniform in total variation from every initial deck. A separate conditional moment estimate covers allowed power-of-two grids and disjoint coordinate-respecting trajectories, with its stated feasibility premise. Physical-shuffle law identification is not included.

The formalization proves the paper's strict four-row permanent inequality. There are constants 4/3<p<24/3<p<2 and ε>0\varepsilon>0 such that every probability law on S4S_4 within total-variation distance ε\varepsilon of uniform, and with exactly uniform coordinate marginals, satisfies the permanent bound by the product of the four LpL^p row norms for every nonnegative matrix. The exponent and neighborhood are uniform over those laws. The Thorp mixing consequence is outside this selected statement.

Proofweave verification: pending

These records describe upstream evidence. A platform replay, a review of the theorem’s meaning, and an independent review still need their own evidence.

How Proofweave verification works →

Pinned source

Source & environment

The proofs share a large library. OpenAI recommends compiling selected portions at a time. Use the pinned environment and inspect the Comparator instructions before attempting a replay.

Upstream verification instructions ↗
Repository
openai/math ↗
Source revision
1581d4cbdd69a0faf34b2089614fe2a814316a6a
Lean toolchain
leanprover/lean4:v4.34.1
Mathlib revision
d13f23b723b8a846827a245b89c10fc7d3f11612
License
Apache-2.0 ↗
Indexed
2026-10-13