Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

OAI.ThorpNine.Harmonic.Thorp.Specht.spectral_regimes_q3: intermediate lemma from OpenAI, Optimal-order mixing of the Thorp shuffle

Proved
OAI.ThorpNine.Harmonic.Thorp.Specht.spectral_regimes_q3

by dbenbenn · Oct 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

openai-math

An intermediate lemma of the split of OpenAI's proof of OAI.ThorpResults.remaining_main, carved from OpenAI's openai/math development for this platform. The statement and its proof are OpenAI's (OpenAI, Optimal-order mixing of the Thorp shuffle, OpenAI Math Release, September 26, 2026, result family 238, github.com/openai/math, Apache License 2.0); in Lean it is the declaration OAI.ThorpNine.Harmonic.Thorp.Specht.spectral_regimes of lean/OAI/Probability/ThorpResults/ThorpRouting/Harmonic/TailShapes.lean at commit adc7f12, ported to Lean 4.33.1 and Mathlib 0df444a.

The statement, as published (namespace OAI.ThorpNine.Harmonic.Thorp.Specht, with open scoped BigOperators Classical, open Filter UnitaryFinite DimensionEstimates):

theorem spectral_regimes_q3 :
    ∃ a h : ℝ, 0<a ∧ 0<h ∧ ∀ᶠ d : ℕ in atTop,
      ∀ (μ : YoungDiagram) (e : Card d ≃ Cell μ), 0<μ.card-μ.rowLen 0 →
        (μ.colLen 0:ℝ)≤(μ.card:ℝ)/2 →
        ‖sampleOperator (V := hilbertSpace μ) (relabelledUnitary μ e) (palindromePerm d)‖≤
          Real.exp (-a*Real.log (Module.finrank ℂ (space μ))) ∧
        1≤Real.log (Module.finrank ℂ (space μ)) ∧
        (((1/2:ℝ)*Real.log μ.card≤Real.log (Module.finrank ℂ (space μ)) ∧
          (μ.card-μ.rowLen 0:ℕ)≤Real.log (Module.finrank ℂ (space μ))) ∨
          h*(2:ℝ)^d≤Real.log (Module.finrank ℂ (space μ)))

Definitions. The statement is written with OAI.ThorpNine.Harmonic.Thorp.BenesCoins, OAI.ThorpNine.Harmonic.Thorp.SwitchIndex, OAI.ThorpNine.Harmonic.Thorp.instDecidableEqSwitchIndex, OAI.ThorpNine.Harmonic.Thorp.instFintypeSwitchIndex and OAI.ThorpNine.Harmonic.Thorp.palindromePerm (definitions bundle OAIQ3Th000 of this split); OAI.ThorpNine.Harmonic.Thorp.Card, OAI.ThorpNine.Harmonic.Thorp.PermutationHilbert.H, OAI.ThorpNine.Harmonic.Thorp.Specht.Cell, OAI.ThorpNine.Harmonic.Thorp.Specht.Tabloid, OAI.ThorpNine.Harmonic.Thorp.Specht.hilbertSpace, OAI.ThorpNine.Harmonic.Thorp.Specht.instFintypeTabloid, OAI.ThorpNine.Harmonic.Thorp.Specht.relabelledUnitary, OAI.ThorpNine.Harmonic.Thorp.Specht.rowIndex, OAI.ThorpNine.Harmonic.Thorp.Specht.space and OAI.ThorpNine.Harmonic.Thorp.UnitaryFinite.sampleOperator (the published bundle Def_ThorpRemaining).

Used by. The proof of OAI.ThorpResults.remaining_main of this split imports it.

Preamble
import Mathlib
import Definitions.Def_ThorpRemaining
import Definitions.Def_OAIQ3Th000
Formal statement
section

set_option linter.all false
set_option linter.unusedVariables false
set_option linter.unusedTactic false
set_option linter.unreachableTactic false

namespace OAI

namespace ThorpNine.Harmonic

namespace Thorp.Specht
open scoped BigOperators Classical
open Filter UnitaryFinite DimensionEstimates

theorem spectral_regimes_q3 :
    ∃ a h : ℝ, 0<a ∧ 0<h ∧ ∀ᶠ d : ℕ in atTop,
      ∀ (μ : YoungDiagram) (e : Card d ≃ Cell μ), 0<μ.card-μ.rowLen 0 →
        (μ.colLen 0:ℝ)≤(μ.card:ℝ)/2 →
        ‖sampleOperator (V := hilbertSpace μ) (relabelledUnitary μ e) (palindromePerm d)‖≤
          Real.exp (-a*Real.log (Module.finrank ℂ (space μ))) ∧
        1≤Real.log (Module.finrank ℂ (space μ)) ∧
        (((1/2:ℝ)*Real.log μ.card≤Real.log (Module.finrank ℂ (space μ)) ∧
          (μ.card-μ.rowLen 0:ℕ)≤Real.log (Module.finrank ℂ (space μ))) ∨
          h*(2:ℝ)^d≤Real.log (Module.finrank ℂ (space μ))) := by
  sorry

end Thorp.Specht

end ThorpNine.Harmonic

end OAI
end
Source
OpenAI, Optimal-order mixing of the Thorp shuffle, OpenAI Math Release, September 26, 2026, https://github.com/openai/math (result family 238; paper: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Optimal-order-mixing-of-the-Thorp-shuffle-September-26-2026/paper.pdf; Apache License 2.0); Lean: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Probability/ThorpResults/ThorpRouting/Harmonic/TailShapes.lean (declaration OAI.ThorpNine.Harmonic.Thorp.Specht.spectral_regimes)

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