Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5.15

Open
QAlgorithms.Papers.Independent.Extend50.P34.usual_plus_probability

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

In the standing regime, set C=⌈3log⁡(10r)/log⁡(ω/10)⌉C=\lceil3\log(10r)/\log(\omega/10)\rceilC=⌈3log(10r)/log(ω/10)⌉. Call a diagram usual-plus if it is usual using the same threshold 10r/ω10r/\omega10r/ω and satisfies ∣L∞∗∣≤2|L_\infty^*|\le2∣L∞∗​∣≤2. For an absolute b>0b>0b>0, under either law SWrn\mathrm{SW}_r^nSWrn​ or SWr+1n\mathrm{SW}_{r+1}^nSWr+1n​,

Pr⁡[λ not usual-plus]≤exp⁡(bC2.01)/ω4.\Pr[\lambda\text{ not usual-plus}]\le\exp(bC^{2.01})/\omega^4.Pr[λ not usual-plus]≤exp(bC2.01)/ω4.

The same event is used for both distributions. This controls the exceptional part in the TV comparison.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P34
Formal statement
noncomputable section

open scoped Matrix BigOperators

open MeasureTheory

namespace QAlgorithms.Papers.Independent.Extend50.P34

attribute [local instance] Classical.propDecidable

-- Reuse exact pinned definitions; these are imports, not local declarations.

open QAlgorithms.Papers.Independent.Support50.P38 (tv wordMass)

open QAlgorithms.Papers.Independent.Advance50.P28 (counts)

/-- Lemma 5.15, arXiv:1501.05028v1, PDF p.54. The p.55 proof says ≤2 when naming the bad event; the definition and Markov argument require >2. Both laws use the same r-based UsualPlus predicate. -/
theorem usual_plus_probability
    : ∃ b : ℝ, 0 < b ∧ ∀ r n : ℕ, ∀ omega : ℝ,
      RankRegime r n omega →
        event (n := n) (unif r) (fun lambda => ¬ UsualPlus r omega lambda) ≤
          Real.exp (b*Real.rpow (truncation r omega) (201/100 : ℝ))/omega^4 ∧
        event (n := n) (unif (r+1)) (fun lambda => ¬ UsualPlus r omega lambda) ≤
          Real.exp (b*Real.rpow (truncation r omega) (201/100 : ℝ))/omega^4 := by sorry

end QAlgorithms.Papers.Independent.Extend50.P34

end
Source
Quantum Spectrum Testing, arXiv:1501.05028v1, PDF p. 54, Lemma 5.15
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

There exists a real number b>0b>0b>0 such that both bounds below hold for every r,n∈Nr,n\in\mathbb Nr,n∈N and ω∈R\omega\in\mathbb Rω∈R satisfying r,n>0r,n>0r,n>0, 200≤ω≤r200\le\omega\le\sqrt r200≤ω≤r​, and n=r2/ω2n=r^2/\omega^2n=r2/ω2. For a Young diagram λ\lambdaλ, let h(λ)h(\lambda)h(λ) be its number of nonempty rows and λi\lambda_iλi​ its row lengths starting at 000, and define

pk∗(λ)=∑i=0h(λ)−1[(λi−i−12)k−(−i−12)k],Lr∞(λ)=∑k=2∞(−1)kpk∗(λ)k(r+12)k.p_k^*(\lambda)=\sum_{i=0}^{h(\lambda)-1} [(\lambda_i-i-\tfrac12)^k-(-i-\tfrac12)^k], \qquad L_r^\infty(\lambda)= \sum_{k=2}^{\infty}\frac{(-1)^kp_k^*(\lambda)}{k(r+\tfrac12)^k}.pk∗​(λ)=i=0∑h(λ)−1​[(λi​−i−21​)k−(−i−21​)k],Lr∞​(λ)=k=2∑∞​k(r+21​)k(−1)kpk∗​(λ)​.

The infinite sum is the total infinite-sum operation used in the statement, which is 000 for a nonsummable real sequence. Let

Ur,ω={λ:λ0≤10rω, h(λ)≤10rω, ∣Lr∞(λ)∣≤2},T=⌈3log⁡(10r)log⁡(ω/10)⌉+.\mathcal U_{r,\omega}= \left\{\lambda: \lambda_0\le\frac{10r}{\omega},\ h(\lambda)\le\frac{10r}{\omega},\ |L_r^\infty(\lambda)|\le2\right\}, \qquad T=\left\lceil\frac{3\log(10r)}{\log(\omega/10)}\right\rceil_+.Ur,ω​={λ:λ0​≤ω10r​, h(λ)≤ω10r​, ∣Lr∞​(λ)∣≤2},T=⌈log(ω/10)3log(10r)​⌉+​.

To define the weights, use each diagram’s fixed cell numbering, let Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​ preserve rows and columns, and form YλY_\lambdaYλ​ with entries ∑a∈Rλ,b∈Cλsgn⁡(b)1{g=hab}\sum_{a\in R_\lambda,b\in C_\lambda}\operatorname{sgn}(b)\mathbf1_{\{g=hab\}}∑a∈Rλ​,b∈Cλ​​sgn(b)1{g=hab}​. Let Πλ\Pi_\lambdaΠλ​ project orthogonally onto its range, fλf_\lambdafλ​ be its range’s complex dimension, and χλ(π)=tr⁡(LπΠλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi\Pi_\lambda)χλ​(π)=tr(Lπ​Πλ​), where Lπeh=eπhL_\pi e_h=e_{\pi h}Lπ​eh​=eπh​. For diagrams with nnn cells and at most ddd rows, set

Pλ(d,n)=fλn!∑π∈Snχλ(π−1)Vπ,Vπex=ex∘π−1,sd,n(λ)=ℜtr⁡(Pλ(d,n)d−nI).P_\lambda^{(d,n)}=\frac{f_\lambda}{n!} \sum_{\pi\in S_n}\chi_\lambda(\pi^{-1})V_\pi, \quad V_\pi e_x=e_{x\circ\pi^{-1}}, \qquad s_{d,n}(\lambda)=\Re\operatorname{tr}(P_\lambda^{(d,n)}d^{-n}I).Pλ(d,n)​=n!fλ​​π∈Sn​∑​χλ​(π−1)Vπ​,Vπ​ex​=ex∘π−1​,sd,n​(λ)=ℜtr(Pλ(d,n)​d−nI).

The two asserted inequalities are

∑∣λ∣=n, h(λ)≤rλ∉Ur,ωsr,n(λ)≤exp⁡(bT201/100)ω4,∑∣λ∣=n, h(λ)≤r+1λ∉Ur,ωsr+1,n(λ)≤exp⁡(bT201/100)ω4.\sum_{\substack{|\lambda|=n,\ h(\lambda)\le r\\ \lambda\notin\mathcal U_{r,\omega}}}s_{r,n}(\lambda) \le\frac{\exp(bT^{201/100})}{\omega^4}, \qquad \sum_{\substack{|\lambda|=n,\ h(\lambda)\le r+1\\ \lambda\notin\mathcal U_{r,\omega}}}s_{r+1,n}(\lambda) \le\frac{\exp(bT^{201/100})}{\omega^4}.∣λ∣=n, h(λ)≤rλ∈/Ur,ω​​∑​sr,n​(λ)≤ω4exp(bT201/100)​,∣λ∣=n, h(λ)≤r+1λ∈/Ur,ω​​∑​sr+1,n​(λ)≤ω4exp(bT201/100)​.

Both events use the same conditions involving r,ωr,\omegar,ω, including Lr∞L_r^\inftyLr∞​. The logarithms are natural, the ceiling is a natural-number ceiling, and the exponent 201/100201/100201/100 is a real exponent.

Human review
  • Endorsed by Shuze Chen · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me