Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

OAI.ThorpNine.Harmonic.Thorp.Specht.near_row_amplification_q77: intermediate lemma from OpenAI, Optimal logarithmic mixing of the Thorp shuffle (routing densities)

Proved
OAI.ThorpNine.Harmonic.Thorp.Specht.near_row_amplification_q77

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

openai-math

An intermediate lemma of the split of OpenAI's proof of OAI.ThorpNine.main, carved from OpenAI's openai/math development for this platform. The statement and its proof are OpenAI's (OpenAI, Optimal logarithmic mixing of the Thorp shuffle (routing densities), 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.near_row_amplification of lean/OAI/Probability/ThorpRouting/Harmonic/InsertionPerm.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 UnitaryFinite DimensionEstimates Filter):

lemma near_row_amplification_q77 (d : ℕ) (μ : YoungDiagram) (e : Card d ≃ Cell μ)
    {k : ℕ} (f : Fin k ↪ Card d) (hk : 0<k)
    (hm : 0<Module.finrank ℂ (fixedSpace (V := hilbertSpace μ) tupleAction f (relabelledUnitary μ e))) :
    ‖sampleOperator (V := hilbertSpace μ) (relabelledUnitary μ e) (palindromePerm d)‖ ≤
      Real.exp (densityConstant*(k:ℝ)*((k:ℝ)/(2:ℝ)^d)^(1/512:ℝ))*
        (Real.exp (Real.log (Module.finrank ℂ (fixedSpace (V := hilbertSpace μ) tupleAction f (relabelledUnitary μ e)))/2))^(-(1/1000:ℝ))+
      Real.sqrt ((Real.exp (Real.log (Module.finrank ℂ (fixedSpace (V := hilbertSpace μ) tupleAction f (relabelledUnitary μ e)))/2))/
        (Module.finrank ℂ (fixedSpace (V := hilbertSpace μ) tupleAction f (relabelledUnitary μ e)):ℝ))

Definitions. The statement is written with OAI.ThorpNine.Harmonic.Thorp.densityConstant, OAI.ThorpNine.Harmonic.Thorp.UnitaryFinite.fixedSpace and OAI.ThorpNine.Harmonic.Thorp.UnitaryFinite.tupleAction (definitions bundle OAIQ077T001 of this split); OAI.ThorpNine.Harmonic.Thorp.BenesCoins, OAI.ThorpNine.Harmonic.Thorp.Card, OAI.ThorpNine.Harmonic.Thorp.SwitchIndex, OAI.ThorpNine.Harmonic.Thorp.instDecidableEqSwitchIndex, OAI.ThorpNine.Harmonic.Thorp.instFintypeSwitchIndex, OAI.ThorpNine.Harmonic.Thorp.palindromePerm, 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 and OAI.ThorpNine.Harmonic.Thorp.UnitaryFinite.sampleOperator (the published bundle Def_ThorpRouting).

Used by. The proof of OAI.ThorpNine.Harmonic.Thorp.Specht.spectral_regimes_q77 of this split imports it.

Preamble
import Mathlib
import Definitions.Def_ThorpRouting
import Definitions.Def_OAIQ077T001
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 UnitaryFinite DimensionEstimates Filter

lemma near_row_amplification_q77 (d : ℕ) (μ : YoungDiagram) (e : Card d ≃ Cell μ)
    {k : ℕ} (f : Fin k ↪ Card d) (hk : 0<k)
    (hm : 0<Module.finrank ℂ (fixedSpace (V := hilbertSpace μ) tupleAction f (relabelledUnitary μ e))) :
    ‖sampleOperator (V := hilbertSpace μ) (relabelledUnitary μ e) (palindromePerm d)‖ ≤
      Real.exp (densityConstant*(k:ℝ)*((k:ℝ)/(2:ℝ)^d)^(1/512:ℝ))*
        (Real.exp (Real.log (Module.finrank ℂ (fixedSpace (V := hilbertSpace μ) tupleAction f (relabelledUnitary μ e)))/2))^(-(1/1000:ℝ))+
      Real.sqrt ((Real.exp (Real.log (Module.finrank ℂ (fixedSpace (V := hilbertSpace μ) tupleAction f (relabelledUnitary μ e)))/2))/
        (Module.finrank ℂ (fixedSpace (V := hilbertSpace μ) tupleAction f (relabelledUnitary μ e)):ℝ)) := by
  sorry

end Thorp.Specht

end ThorpNine.Harmonic

end OAI
end
Source
OpenAI, Optimal logarithmic mixing of the Thorp shuffle (routing densities), OpenAI Math Release, September 26, 2026, https://github.com/openai/math (result family 238; paper: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/preprints/Routing-densities-and-representation-contraction-for-Thorp-sweeps-September-26-2026/paper.pdf; Apache License 2.0); Lean: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Probability/ThorpRouting/Harmonic/InsertionPerm.lean (declaration OAI.ThorpNine.Harmonic.Thorp.Specht.near_row_amplification)

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