Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 4.8

Open
QAlgorithms.Papers.Independent.Extend50.P34.shifted_schur_product_expectation

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

prove2quantum

Let qqq be a distribution on [d][d][d], and let μ⊢r1\mu\vdash r_1μ⊢r1​, ν⊢r2\nu\vdash r_2ν⊢r2​. For every ttt between max⁡(r1,r2)\max(r_1,r_2)max(r1​,r2​) and r1+r2r_1+r_2r1​+r2​, choose arbitrary fixed sets R1,R2⊆[t]R_1,R_2\subseteq[t]R1​,R2​⊆[t] of sizes r1,r2r_1,r_2r1​,r2​ whose union is [t][t][t]. Then

Eλ∼SWqn[sμ∗(λ)sν∗(λ)]=∑tCr1r2tn↓tEw1∼S(R1),w2∼S(R2)[χμ(w1)χν(w2)pwˉ1wˉ2(q)].\mathbb E_{\lambda\sim\mathrm{SW}_q^n}[s_\mu^*(\lambda)s_\nu^*(\lambda)]=\sum_t C^t_{r_1r_2}n^{\downarrow t}\mathbb E_{w_1\sim S(R_1),w_2\sim S(R_2)}[\chi_\mu(w_1)\chi_\nu(w_2)p_{\bar w_1\bar w_2}(q)].Eλ∼SWqn​​[sμ∗​(λ)sν∗​(λ)]=t∑​Cr1​r2​t​n↓tEw1​∼S(R1​),w2​∼S(R2​)​[χμ​(w1​)χν​(w2​)pwˉ1​wˉ2​​(q)].

The permutations are independent uniform on the whole symmetric groups and are extended by fixing the complement. This computes generic shifted-Schur product moments; the value is independent of the allowed support choices. Here Cr1r2t=r1!r2!/[(t−r1)!(t−r2)!(r1+r2−t)!]C^t_{r_1r_2}=r_1!r_2!/[(t-r_1)!(t-r_2)!(r_1+r_2-t)!]Cr1​r2​t​=r1​!r2​!/[(t−r1​)!(t−r2​)!(r1​+r2​−t)!], and pπ(q)p_\pi(q)pπ​(q) is the product of power sums indexed by the full cycle type of π\piπ.

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 4.8, arXiv:1501.05028v1, PDF p.37. Whole symmetric groups, not fixed cycle classes. Empty partitions are included by the factorial expression C, which is 1 when r1=r2=t=0. -/
theorem shifted_schur_product_expectation
    (d n : ℕ) (hd : 0 < d) (q : Fin d → ℝ) (hq : Learning.IsDistribution q)
    (mu nu : YoungDiagram)
    (R1 R2 : (t : ℕ) → Finset (Fin t))
    (hR : ∀ t ∈ Finset.Icc (max mu.card nu.card) (mu.card+nu.card),
      (R1 t).card = mu.card ∧ (R2 t).card = nu.card ∧ R1 t ∪ R2 t = Finset.univ) :
    expect (n := n) q (fun lambda => shiftedSchur mu lambda * shiftedSchur nu lambda) =
      ∑ t ∈ Finset.Icc (max mu.card nu.card) (mu.card+nu.card),
        ((mu.card.factorial : ℝ)*nu.card.factorial /
          ((t-mu.card).factorial*(t-nu.card).factorial*(mu.card+nu.card-t).factorial : ℕ)) *
        falling n t * productCharacterMean q mu nu (R1 t) (R2 t) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P34

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

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

For every positive integer ddd, natural number nnn, probability vector q∈Rdq\in\mathbb R^dq∈Rd satisfying qi≥0q_i\ge0qi​≥0 and ∑iqi=1\sum_iq_i=1∑i​qi​=1, Young diagrams μ,ν\mu,\nuμ,ν of sizes r,sr,sr,s, and families of sets R1(t),R2(t)⊆{0,…,t−1}R_1(t),R_2(t)\subseteq\{0,\ldots,t-1\}R1​(t),R2​(t)⊆{0,…,t−1} defined for every natural ttt, suppose that for every integer max⁡(r,s)≤t≤r+s\max(r,s)\le t\le r+smax(r,s)≤t≤r+s, these sets have sizes r,sr,sr,s and their union is all of {0,…,t−1}\{0,\ldots,t-1\}{0,…,t−1}. Define characters using the following construction for each diagram ξ\xiξ of size hhh: with the chosen cell numbering, take row-preserving and column-preserving permutation sets Rξ,CξR_\xi,C_\xiRξ​,Cξ​, let Yξ(g,k)=∑a∈Rξ,b∈Cξsgn⁡(b)1{g=kab}Y_\xi(g,k)=\sum_{a\in R_\xi,b\in C_\xi}\operatorname{sgn}(b)\mathbf1_{\{g=kab\}}Yξ​(g,k)=∑a∈Rξ​,b∈Cξ​​sgn(b)1{g=kab}​, Vξ=range⁡YξV_\xi=\operatorname{range}Y_\xiVξ​=rangeYξ​, Πξ\Pi_\xiΠξ​ its orthogonal projection, and Dξ=dim⁡CVξD_\xi=\dim_{\mathbb C}V_\xiDξ​=dimC​Vξ​; put χ^ξ(π)=tr⁡(LπΠξ)\widehat\chi_\xi(\pi)=\operatorname{tr}(L_\pi\Pi_\xi)χ​ξ​(π)=tr(Lπ​Πξ​), Lπ(g,k)=1{g=πk}L_\pi(g,k)=\mathbf1_{\{g=\pi k\}}Lπ​(g,k)=1{g=πk}​, and χξ=Re⁡χ^ξ\chi_\xi=\operatorname{Re}\widehat\chi_\xiχξ​=Reχ​ξ​. Let χˉξ(η)\bar\chi_\xi(\eta)χˉ​ξ​(η) be the average of χξ\chi_\xiχξ​ over permutations whose full cycle-length multiset is η\etaη, counting fixed points as 111-cycles, with value zero for an empty averaging set. For a multiset η\etaη with sum ∣η∣|\eta|∣η∣, put Aη(λ)=∣λ∣∣η∣‾χˉλ(η⊔1∣λ∣−∣η∣)/DλA_\eta(\lambda)=|\lambda|^{\underline{|\eta|}}\bar\chi_\lambda(\eta\sqcup1^{|\lambda|-|\eta|})/D_\lambdaAη​(λ)=∣λ∣∣η∣​χˉ​λ​(η⊔1∣λ∣−∣η∣)/Dλ​ when ∣η∣≤∣λ∣|\eta|\le|\lambda|∣η∣≤∣λ∣, and zero otherwise, and put Sξ∗(λ)=1∣ξ∣!∑π∈S∣ξ∣χξ(π)Acyc⁡(π)(λ)S_\xi^*(\lambda)=\frac1{|\xi|!}\sum_{\pi\in S_{|\xi|}}\chi_\xi(\pi)A_{\operatorname{cyc}(\pi)}(\lambda)Sξ∗​(λ)=∣ξ∣!1​∑π∈S∣ξ∣​​χξ​(π)Acyc(π)​(λ). For diagrams λ\lambdaλ of size nnn and height at most ddd, let Pλ=Dλn!∑π∈Snχ^λ(π−1)TπP_\lambda=\frac{D_\lambda}{n!}\sum_{\pi\in S_n}\widehat\chi_\lambda(\pi^{-1})T_\piPλ​=n!Dλ​​∑π∈Sn​​χ​λ​(π−1)Tπ​, where Tπ(v,w)=1{v=w∘π−1}T_\pi(v,w)=\mathbf1_{\{v=w\circ\pi^{-1}\}}Tπ​(v,w)=1{v=w∘π−1}​, and wq(λ)=Re⁡tr⁡(PλDq(n))w_q(\lambda)=\operatorname{Re}\operatorname{tr}(P_\lambda D_q^{(n)})wq​(λ)=Retr(Pλ​Dq(n)​), where Dq(n)D_q^{(n)}Dq(n)​ is diagonal with entry ∏jqwj\prod_jq_{w_j}∏j​qwj​​ at word www. For a set R⊆{0,…,t−1}R\subseteq\{0,\ldots,t-1\}R⊆{0,…,t−1}, let GRG_RGR​ be the permutations fixing its complement and let cyc⁡R(a)\operatorname{cyc}_R(a)cycR​(a) comprise the nontrivial cycles of aaa and ∣R∣−∣supp⁡a∣|R|-|\operatorname{supp}a|∣R∣−∣suppa∣ copies of 111. Define

Bt=∑a∈GR1(t)∑b∈GR2(t)χˉμ(cyc⁡R1(t)(a))χˉν(cyc⁡R2(t)(b))∏ℓ∈cyc⁡(ab)(∑i=0d−1qiℓ)∣GR1(t)∣ ∣GR2(t)∣.B_t= \frac{ \displaystyle\sum_{a\in G_{R_1(t)}}\sum_{b\in G_{R_2(t)}} \bar\chi_\mu(\operatorname{cyc}_{R_1(t)}(a)) \bar\chi_\nu(\operatorname{cyc}_{R_2(t)}(b)) \prod_{\ell\in\operatorname{cyc}(ab)} \left(\sum_{i=0}^{d-1}q_i^\ell\right)} {|G_{R_1(t)}|\,|G_{R_2(t)}|}.Bt​=∣GR1​(t)​∣∣GR2​(t)​∣a∈GR1​(t)​∑​b∈GR2​(t)​∑​χˉ​μ​(cycR1​(t)​(a))χˉ​ν​(cycR2​(t)​(b))ℓ∈cyc(ab)∏​(i=0∑d−1​qiℓ​)​.

Then

∑∣λ∣=nheight⁡(λ)≤dwq(λ)Sμ∗(λ)Sν∗(λ)=∑t=max⁡(r,s)r+sr! s!(t−r)! (t−s)! (r+s−t)! nt‾Bt.\sum_{\substack{|\lambda|=n\\\operatorname{height}(\lambda)\le d}} w_q(\lambda)S_\mu^*(\lambda)S_\nu^*(\lambda) = \sum_{t=\max(r,s)}^{r+s} \frac{r!\,s!}{(t-r)!\,(t-s)!\,(r+s-t)!}\, n^{\underline t}B_t.∣λ∣=nheight(λ)≤d​∑​wq​(λ)Sμ∗​(λ)Sν∗​(λ)=t=max(r,s)∑r+s​(t−r)!(t−s)!(r+s−t)!r!s!​nt​Bt​.

The diagrams μ,ν\mu,\nuμ,ν may be empty, nnn may be zero, and no conditions are imposed on R1(t),R2(t)R_1(t),R_2(t)R1​(t),R2​(t) outside the specified interval. Empty products equal 111, real division by zero equals zero, and descending factorials vanish for t>nt>nt>n.

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