Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Recurrence for signed sweep moments along a coordinate split

Proved
OAI.SignedSweeps.signed_sweep_recurrence

by wurtle · Nov 3, 2026 · Mathlib 0df444a (Lean v4.33.1)

representation-theorysigned-sweepsthorp-shuffle

This is the moment recurrence along a split of the coordinates: it bounds a weighted sweep moment on 2a+b2^{a+b}2a+b cards by the corresponding bounds on 2a2^a2a and 2b2^b2b cards, for every prescribed signed occurrence.

Let TλT_\lambdaTλ​ be the sweep operator on the Specht module SλS^\lambdaSλ, λ⊢2d\lambda\vdash2^dλ⊢2d, and Jr(λ)=dim⁡SλRe⁡Tr⁡Sλ((Tλ∗Tλ)r)J_r(\lambda)=\dim S^\lambda\operatorname{Re}\operatorname{Tr}_{S^\lambda}\big((T_\lambda^*T_\lambda)^r\big)Jr​(λ)=dimSλReTrSλ​((Tλ∗​Tλ​)r). A signed occurrence of (α,β,γ)(\alpha,\beta,\gamma)(α,β,γ) in λ\lambdaλ is an injective Su×Sv×SlS_u\times S_v\times S_lSu​×Sv​×Sl​-equivariant map Sα⊗Sβt⊗Sγ→SλS^\alpha\otimes S^{\beta^t}\otimes S^\gamma\to S^\lambdaSα⊗Sβt⊗Sγ→Sλ. Put F(α,β)=∑x∈α∪βxlog⁡u+vxF(\alpha,\beta)=\sum_{x\in\alpha\cup\beta}x\log\frac{u+v}{x}F(α,β)=∑x∈α∪β​xlogxu+v​ and

gτ(t,h)=max⁡{0, τhlog⁡t−hlog⁡(t/h)}.g_\tau(t,h)=\max\{0,\ \tau h\log t-h\log(t/h)\}.gτ​(t,h)=max{0, τhlogt−hlog(t/h)}.

Let 0≤η≤10\le\eta\le10≤η≤1, 0≤κ≤τ0\le\kappa\le\tau0≤κ≤τ, q>0q>0q>0, R≥2max⁡(2a,2b)+2q+1R\ge2\max(2^a,2^b)+2q+1R≥2max(2a,2b)+2q+1, and j∈Nj\in\mathbb{N}j∈N. Assume that for d∈{a,b}d\in\{a,b\}d∈{a,b} every signed occurrence in λ⊢2d\lambda\vdash2^dλ⊢2d satisfies J2j(λ)≤exp⁡(ηF(α,β)+gτ(2d,∣γ∣))J_{2^j}(\lambda)\le\exp(\eta F(\alpha,\beta)+g_\tau(2^d,|\gamma|))J2j​(λ)≤exp(ηF(α,β)+gτ​(2d,∣γ∣)). Then for n=2a+bn=2^{a+b}n=2a+b and every signed occurrence of (α,β,γ)(\alpha,\beta,\gamma)(α,β,γ) in λ⊢n\lambda\vdash nλ⊢n, ∣γ∣=l|\gamma|=l∣γ∣=l, where α,β\alpha,\betaα,β have at most qqq rows,

J2j(λ)≤exp⁡(ηF(α,β)+τllog⁡n−llog⁡(n/l)+6l+2bE(2a,q,R)+2aE(2b,q,R)+Cκ(2a,2b)+(2a+2b)log⁡(l+1)),J_{2^j}(\lambda)\le\exp\Big(\eta F(\alpha,\beta)+\tau l\log n-l\log(n/l)+6l+2^bE(2^a,q,R)+2^aE(2^b,q,R)+C_\kappa(2^a,2^b)+(2^a+2^b)\log(l+1)\Big),J2j​(λ)≤exp(ηF(α,β)+τllogn−llog(n/l)+6l+2bE(2a,q,R)+2aE(2b,q,R)+Cκ​(2a,2b)+(2a+2b)log(l+1)),

where Cκ(s,m)=ms1−κlog⁡s+sm1−κlog⁡mC_\kappa(s,m)=ms^{1-\kappa}\log s+sm^{1-\kappa}\log mCκ​(s,m)=ms1−κlogs+sm1−κlogm and

E(t,q,R)=(2⌊t⌋+26q2+8q+1)log⁡R+8q+1+(4⌊t⌋+1)log⁡R+2q2log⁡R.E(t,q,R)=\big(2\lfloor\sqrt t\rfloor+26q^2+8q+1\big)\log R+8q+1+\big(4\lfloor\sqrt t\rfloor+1\big)\log R+2q^2\log R.E(t,q,R)=(2⌊t​⌋+26q2+8q+1)logR+8q+1+(4⌊t​⌋+1)logR+2q2logR.

With a balanced split, this is the induction step of the every-occurrence moment bound, Theorem 1.1 of the source.

Formalization Note The upstream statement is reproduced verbatim from SweepRecurrence.lean.

Preamble
import Mathlib
import Definitions.Def_SignedSweepMoment
import Definitions.Def_OAISignedSweepsProofDefs

open scoped BigOperators Classical
Formal statement
theorem OAI.SignedSweeps.signed_sweep_recurrence {a b j q R : ℕ} (hq : 0 < q)
    {η τ κ : ℝ} (hη : 0 ≤ η) (hη' : η ≤ 1) (hκ : 0 ≤ κ) (hκτ : κ ≤ τ)
    (HA : ∀ (lam : Partition (2^a)) (u v l : ℕ) (h : u+v+l=2^a)
      (α : Partition u) (β : Partition v) (γ : Partition l),
      SignedOccurrence h α β γ lam → weightedMoment lam (2^j) ≤
        Real.exp (η*signedEntropy α β+clippedBudget τ (2^a) l))
    (HB : ∀ (lam : Partition (2^b)) (u v l : ℕ) (h : u+v+l=2^b)
      (α : Partition u) (β : Partition v) (γ : Partition l),
      SignedOccurrence h α β γ lam → weightedMoment lam (2^j) ≤
        Real.exp (η*signedEntropy α β+clippedBudget τ (2^b) l))
    (hR : 2*max (2^a) (2^b)+2*q+1 ≤ R)
    (lam : Partition (2^(a+b))) (u v l : ℕ) (h : u+v+l=2^(a+b))
    (α : Partition u) (β : Partition v) (γ : Partition l)
    (hα : α.1.colLen 0 ≤ q) (hβ : β.1.colLen 0 ≤ q)
    (ho : SignedOccurrence h α β γ lam) :
    weightedMoment lam (2^j) ≤ Real.exp (η*signedEntropy α β+
      τ*l*Real.log (2^(a+b) : ℕ)-(l:ℝ)*Real.log ((2^(a+b) : ℕ)/ (l:ℝ))+6*l+
      (2^b : ℕ)*typedLineError (2^a) q R+(2^a : ℕ)*typedLineError (2^b) q R+
      holeClippingError κ (2^a) (2^b)+((2^a : ℕ)+(2^b : ℕ) : ℝ)*Real.log (l+1)) := by sorry
Source
OpenAI, "Signed tensor densities and diagram budgets for the Thorp shuffle" (September 26, 2026), openai/math preprints/Signed-tensor-densities-and-diagram-budgets-for-coordinate-sweeps-September-26-2026/paper.pdf, Section 4, eqs. (19)-(29). Lean: https://github.com/openai/math/blob/adc7f1241b42e322a6451854ab7e4b4c146bf78a/lean/OAI/Probability/SignedSweeps/SweepRecurrence.lean#L28-L115

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