Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 7.7

Open
QAlgorithms.Papers.Independent.Extend50.P34.low_weight_observable_expectation

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

prove2quantum

Fix C>0C>0C>0, f(d)→∞f(d)\to\inftyf(d)→∞, an integer k≥0k\ge0k≥0, and a real observable O=∑μaμpμ♯O=\sum_\mu a_\mu p_\mu^\sharpO=∑μ​aμ​pμ♯​ of weight at most 2k2k2k, with finitely many coefficients fixed independently of d,nd,nd,n. Then

Eλ∼SWdn[O(λ)nk+1]=od(1)\mathbb E_{\lambda\sim\mathrm{SW}_d^n}\left[\frac{O(\lambda)}{n^{k+1}}\right]=o_d(1)Eλ∼SWdn​​[nk+1O(λ)​]=od​(1)

uniformly for 1≤n1\le n1≤n, f(d)≤n≤Cd2f(d)\le n\le Cd^2f(d)≤n≤Cd2. This is convergence of a signed expectation, rather than an expectation of absolute value. It includes constant observables and controls lower-weight correction terms.

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)

/-- Proposition 7.7, arXiv:1501.05028v1, PDF p.63. Absolute value is outside the signed expectation, the epsilon-definition of o(1). Real coefficients and the observable are fixed before d,n; k=0 includes constants. -/
theorem low_weight_observable_expectation
    (C : ℝ) (hC : 0 < C) (f : ℕ → ℕ) (hf : Diverges f)
    (k : ℕ) (a : YoungDiagram →₀ ℝ) (ha : ∀ mu ∈ a.support, observableWeight mu ≤ 2*k) :
    ∀ epsilon : ℝ, 0 < epsilon → ∃ d0 : ℕ, 2 ≤ d0 ∧
      ∀ d : ℕ, d0 ≤ d → ∀ n : ℕ, 0 < n → f d ≤ n → (n : ℝ) ≤ C*d^2 →
        |expect (n := n) (unif d) (realObservable a) / (n : ℝ)^(k+1)| ≤ epsilon := by sorry

end QAlgorithms.Papers.Independent.Extend50.P34

end
Source
Quantum Spectrum Testing, arXiv:1501.05028v1, PDF p. 63, Proposition 7.7
Read-back

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

Let C>0C>0C>0 be real, let f:N→Nf:\mathbb N\to\mathbb Nf:N→N satisfy that for every natural MMM, eventually f(d)≥Mf(d)\ge Mf(d)≥M, let kkk be any natural number, and let aaa be a finitely supported real coefficient function on Young diagrams such that ∣μ∣+colLen⁡μ(0)≤2k|\mu|+\operatorname{colLen}_\mu(0)\le2k∣μ∣+colLenμ​(0)≤2k whenever aμ≠0a_\mu\ne0aμ​=0, where ∣μ∣|\mu|∣μ∣ is its number of cells and colLen⁡μ(0)\operatorname{colLen}_\mu(0)colLenμ​(0) is its number of rows. For any NNN-cell diagram λ\lambdaλ, use its fixed cell numbering to form the row-preserving and column-preserving permutation sets Rλ,Cλ⊆SNR_\lambda,C_\lambda\subseteq S_NRλ​,Cλ​⊆SN​, the matrix

Yλ(g,h)=∑u∈Rλ,v∈Cλsgn⁡(v)1{g=huv},Y_\lambda(g,h)=\sum_{u\in R_\lambda,v\in C_\lambda} \operatorname{sgn}(v)\mathbf1_{\{g=huv\}},Yλ​(g,h)=u∈Rλ​,v∈Cλ​∑​sgn(v)1{g=huv}​,

the orthogonal projection QλQ_\lambdaQλ​ onto its range, fλ=dim⁡im⁡Yλf_\lambda=\dim\operatorname{im}Y_\lambdafλ​=dimimYλ​, and χλ(π)=tr⁡(LπQλ)\chi_\lambda(\pi)=\operatorname{tr}(L_\pi Q_\lambda)χλ​(π)=tr(Lπ​Qλ​), where Lπ(g,h)=1{g=πh}L_\pi(g,h)=\mathbf1_{\{g=\pi h\}}Lπ​(g,h)=1{g=πh}​. The full cycle multiset of a permutation includes its nontrivial cycle lengths and one 111 for each fixed point. For a multiset ν\nuν of natural numbers, let

cλ(ν)=∑π∈SN: full cycle multiset(π)=νRe⁡χλ(π)#{π∈SN: full cycle multiset(π)=ν}.c_\lambda(\nu)= \frac{\sum_{\pi\in S_N:\,\text{full cycle multiset}(\pi)=\nu} \operatorname{Re}\chi_\lambda(\pi)} {\#\{\pi\in S_N:\,\text{full cycle multiset}(\pi)=\nu\}}.cλ​(ν)=#{π∈SN​:full cycle multiset(π)=ν}∑π∈SN​:full cycle multiset(π)=ν​Reχλ​(π)​.

Writing rows⁡(μ)\operatorname{rows}(\mu)rows(μ) for the multiset of row lengths and Nj‾N^{\underline j}Nj​ for the descending factorial, define

sμ(λ)={N∣μ∣‾fλ cλ ⁣(rows⁡(μ)⊎{1}N−∣μ∣),∣μ∣≤N,0,∣μ∣>N,Oa(λ)=∑μ: aμ≠0aμsμ(λ).s_\mu(\lambda)= \begin{cases} \displaystyle\frac{N^{\underline{|\mu|}}}{f_\lambda}\, c_\lambda\!\left(\operatorname{rows}(\mu) \mathbin{\uplus}\{1\}^{N-|\mu|}\right),&|\mu|\le N,\\ 0,&|\mu|>N, \end{cases} \qquad O_a(\lambda)=\sum_{\mu:\,a_\mu\ne0}a_\mu s_\mu(\lambda).sμ​(λ)=⎩⎨⎧​fλ​N∣μ∣​​cλ​(rows(μ)⊎{1}N−∣μ∣),0,​∣μ∣≤N,∣μ∣>N,​Oa​(λ)=μ:aμ​=0∑​aμ​sμ​(λ).

Real division is total, so any zero denominator in these definitions gives zero. For N=nN=nN=n and λ\lambdaλ having at most ddd rows, put

Aλ=fλn!∑π∈Snχλ(π−1)Tπ,Tπ(y,z)=1{y=z∘π−1},wd,n(λ)=d−nRe⁡tr⁡(Aλ),A_\lambda=\frac{f_\lambda}{n!}\sum_{\pi\in S_n}\chi_\lambda(\pi^{-1})T_\pi, \quad T_\pi(y,z)=\mathbf1_{\{y=z\circ\pi^{-1}\}}, \quad w_{d,n}(\lambda)=d^{-n}\operatorname{Re}\operatorname{tr}(A_\lambda),Aλ​=n!fλ​​π∈Sn​∑​χλ​(π−1)Tπ​,Tπ​(y,z)=1{y=z∘π−1}​,wd,n​(λ)=d−nRetr(Aλ​),

where TπT_\piTπ​ acts on length-nnn words over ddd letters. Then, for every real ϵ>0\epsilon>0ϵ>0, there exists a natural d0≥2d_0\ge2d0​≥2 such that, for every d≥d0d\ge d_0d≥d0​ and every natural n>0n>0n>0 with f(d)≤n≤Cd2f(d)\le n\le Cd^2f(d)≤n≤Cd2,

∣∑∣λ∣=nat most d rowswd,n(λ)Oa(λ)nk+1∣≤ϵ.\left| \frac{\displaystyle\sum_{\substack{|\lambda|=n\\\text{at most }d\text{ rows}}} w_{d,n}(\lambda)O_a(\lambda)} {n^{k+1}} \right|\le\epsilon.​nk+1∣λ∣=nat most d rows​∑​wd,n​(λ)Oa​(λ)​​≤ϵ.

The absolute value is outside the weighted sum. The statement includes k=0k=0k=0, empty coefficient support, and empty diagrams in that support; it imposes no upper growth bound on fff, so the range of admissible nnn may be empty.

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