Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma B.5.

Open
QAlgorithms.Papers.Independent.Gap48.P23.seed_diagram_formula

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

For n≥1n\ge1n≥1, write λ=(n−k,k)\lambda=(n-k,k)λ=(n−k,k), 0≤k≤⌊n/2⌋0\le k\le\lfloor n/2\rfloor0≤k≤⌊n/2⌋, ℓλ=n−2k\ell_\lambda=n-2kℓλ​=n−2k, mλ=ℓλ+1m_\lambda=\ell_\lambda+1mλ​=ℓλ​+1 and dλ=(nk)−(nk−1)d_\lambda=\binom nk-\binom n{k-1}dλ​=(kn​)−(k−1n​), where (n−1)=0\binom n{-1}=0(−1n​)=0. The source vectors ∣λ,w,i⟩|\lambda,w,i\rangle∣λ,w,i⟩ are constructed from the Dicke vector ∣sℓλ(w)⟩|s_{\ell_\lambda}(w)\rangle∣sℓλ​​(w)⟩ followed by kkk ordered normalized singlets. The same fixed real permutation coefficients are used for every www, and are orthonormalized and spanning only at w=0w=0w=0. All labels have their actual dependent ranges. Let Qλ(M)=det⁡(M)kTn−2k(M)Q_\lambda(M)=\det(M)^kT^{n-2k}(M)Qλ​(M)=det(M)kTn−2k(M), where TℓT^\ellTℓ is the explicit normalized-monomial matrix of (C.9). Let Γ\GammaΓ be the source Schur transform followed by shape measurement and multiplicity trace, and let Γ′\Gamma'Γ′ append Idλ/dλI_{d_\lambda}/d_\lambdaIdλ​​/dλ​ in each measured sector and apply inverse Schur. Write Θ\ThetaΘ for permutation averaging.

Let γ\gammaγ be the source diagram for λ,π\lambda,\piλ,π, with its closed-component count LLL and oriented contraction sign σ∈{1,−1}\sigma\in\{1,-1\}σ∈{1,−1}. Then

⟨λ,w,0∣P(π)∣μ,v,0⟩={σ2L−λ2,λ=μ, w=v, γ proper,0,otherwise.\langle\lambda,w,0|P(\pi)|\mu,v,0\rangle=\begin{cases}\sigma 2^{L-\lambda_2},&\lambda=\mu,\ w=v,\ \gamma\text{ proper},\\0,&\text{otherwise}.\end{cases}⟨λ,w,0∣P(π)∣μ,v,0⟩={σ2L−λ2​,0,​λ=μ, w=v, γ proper,otherwise.​

The sign is independently constructed from binary labels respecting wires, opposite singlet endpoints and ordered singlet amplitudes; the exponent is an integer.

This identifies the source-constructed Schur coordinates and their operational use in the majority algorithm.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P23
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P23

open MeasureTheory

open scoped ComplexConjugate Matrix ComplexOrder

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

-- Exact frozen coordinate helpers; no paper-local redeclarations.

open QAlgorithms.Papers.Independent.Information100.P58 (Word)

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

open QAlgorithms.Papers.Independent.Information100.P63 (tensorPower)

/-- PDF pp.53-54, Lemma B.5: the graph coefficient and full heterogeneous
seed identity. The exponent loops-k is in Z, preserving negative powers. -/
theorem seed_diagram_formula (n : ℕ) (hn : 1 ≤ n)
    (k l : TwoRowShape n) (p : Equiv.Perm (Fin n))
    (w : Fin (degree n k+1)) (v : Fin (degree n l+1)) :
    (diagramSign k p = 1 ∨ diagramSign k p = -1) ∧
    inner ℂ (schurSeed n k w)
      (WithLp.toLp 2 ((wordPermutationMatrix n 2 p).mulVec (schurSeed n l v))) =
      if k = l ∧ w.val = v.val then
        if ProperMatching k k p then
          ((diagramSign k p * (2:ℝ)^((diagramLoops k p : ℤ)-(k.val:ℤ))) : ℂ)
        else 0
      else 0 := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 53, Lemma B.5.
Read-back

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

For every natural number n≥1n\ge1n≥1, integers k,lk,lk,l with 0≤k,l≤⌊n/2⌋0\le k,l\le\lfloor n/2\rfloor0≤k,l≤⌊n/2⌋, permutation ppp of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, and integers 0≤w≤n−2k0\le w\le n-2k0≤w≤n−2k and 0≤v≤n−2l0\le v\le n-2l0≤v≤n−2l, let sk,ws_{k,w}sk,w​ be the complex vector on binary words x∈{0,1}nx\in\{0,1\}^nx∈{0,1}n whose amplitude is zero unless the first n−2kn-2kn−2k bits contain exactly www ones, and otherwise is (n−2kw)−1/2\binom{n-2k}{w}^{-1/2}(wn−2k​)−1/2 times the product over r<kr<kr<k of a factor 1/21/\sqrt21/2​ for the pair (xn−2k+2r,xn−2k+2r+1)=(0,1)(x_{n-2k+2r},x_{n-2k+2r+1})=(0,1)(xn−2k+2r​,xn−2k+2r+1​)=(0,1), −1/2-1/\sqrt2−1/2​ for (1,0)(1,0)(1,0), and 000 for equal bits; define sl,vs_{l,v}sl,v​ correspondingly, and set (Pps)(x)=s(x∘p)(P_ps)(x)=s(x\circ p)(Pp​s)(x)=s(x∘p). For the diagram with kkk on both sides, join each pair n−2k+2r,n−2k+2r+1n-2k+2r,n-2k+2r+1n−2k+2r,n−2k+2r+1 on each side and join (false,p(j))(\mathrm{false},p(j))(false,p(j)) to (true,j)(\mathrm{true},j)(true,j); vertices of index less than n−2kn-2kn−2k are free. Let LLL be the number of connected components containing no free vertices, and call the diagram proper when any two distinct free vertices connected by a path lie on different sides. Define σ\sigmaσ by choosing a Boolean coloring that agrees across the permutation edges, disagrees across the paired edges, and is false at every free vertex, and taking the product over both sides and all r<kr<kr<k of −1-1−1 when the color at index n−2k+2rn-2k+2rn−2k+2r is true and 111 otherwise; if no such coloring exists, define σ=1\sigma=1σ=1. The theorem asserts σ=1\sigma=1σ=1 or σ=−1\sigma=-1σ=−1, and

⟨sk,w,Ppsl,v⟩={σ 2L−k,k=l, w=v, and the diagram is proper,0,otherwise,\langle s_{k,w},P_ps_{l,v}\rangle= \begin{cases} \sigma\,2^{L-k},&k=l,\ w=v,\ \text{and the diagram is proper},\\ 0,&\text{otherwise}, \end{cases}⟨sk,w​,Pp​sl,v​⟩={σ2L−k,0,​k=l, w=v, and the diagram is proper,otherwise,​

where the real value on the right is regarded as complex, ⟨a,b⟩=∑xa(x)‾b(x)\langle a,b\rangle=\sum_x\overline{a(x)}b(x)⟨a,b⟩=∑x​a(x)​b(x), and L−kL-kL−k is an integer exponent, so negative values give reciprocal powers. Empty products are 111, including when k=0k=0k=0.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 22, 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