Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 4.6.

Open
QAlgorithms.Papers.Independent.Gap48.P23.optimal_template

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

prove2quantum

Work in finite-dimensional complex Hilbert spaces with the indicated computational bases. A channel is a fixed completely positive trace-preserving map, independent of the unknown word xxx and common basis UUU. Write ρxU=U⊗n∣x⟩⟨x∣U†⊗n\rho_x^U=U^{\otimes n}|x\rangle\langle x|U^{\dagger\otimes n}ρxU​=U⊗n∣x⟩⟨x∣U†⊗n. For an input promise PPP, let Ff,P(Φ)F_{f,P}(\Phi)Ff,P​(Φ) be the minimum of ⟨f(x)∣U†Φ(ρxU)U∣f(x)⟩\langle f(x)|U^\dagger\Phi(\rho_x^U)U|f(x)\rangle⟨f(x)∣U†Φ(ρxU​)U∣f(x)⟩ over every allowed xxx and U∈U(d)U\in U(d)U∈U(d), and let Ff,PF_{f,P}Ff,P​ be its supremum over channels. An omitted PPP means all words. Boolean functions use d=2d=2d=2; positive odd nnn is imposed whenever symmetry and equivariance of a Boolean function are required.

For positive odd nnn and symmetric equivariant Boolean fff, there is t∈[0,1]⌊n/2⌋+1t\in[0,1]^{\lfloor n/2\rfloor+1}t∈[0,1]⌊n/2⌋+1 such that

Ff(At)=Ff.F_f(A_t)=F_f.Ff​(At​)=Ff​.

Here AtA_tAt​ is the actually constructed preprocessing followed by the sectorwise mixture of the two physical channels; it is permutation-invariant and unitary-equivariant.

This is the stated interface for the corresponding result of the paper.

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 p.30, Theorem 4.6: some interpolation parameters attain the optimum. -/
theorem optimal_template (n : ℕ) (hn : 1 ≤ n) (hodd : Odd n)
    (alpha : RealSchurCoefficients n) (ha : LawfulCoefficients alpha)
    (f : Word n 2 → Fin 2) (hf : WordSymmetric f) (he : Equivariant f) :
    ∃ t : TwoRowShape n → ℝ, (∀ k, 0 ≤ t k ∧ t k ≤ 1) ∧
      IsFunctionOptimal (fun _ => True) f (template alpha t) ∧
      PermutationInvariant (template alpha t) ∧ WordUnitaryEquivariant (template alpha t) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 30, Theorem 4.6.
Read-back

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

Let n≥1n\ge1n≥1 be odd, and let Wn={0,1}n\mathcal W_n=\{0,1\}^nWn​={0,1}n. For 0≤k≤⌊n/2⌋0\le k\le\lfloor n/2\rfloor0≤k≤⌊n/2⌋, put ℓk=n−2k\ell_k=n-2kℓk​=n−2k and mk=(nk)−(nk−1)m_k=\binom nk-\binom n{k-1}mk​=(kn​)−(k−1n​), with the second binomial term replaced by 000 when k=0k=0k=0 and subtraction taken in the natural numbers. Let αk,i,p\alpha_{k,i,p}αk,i,p​ be real coefficients indexed by i<mki<m_ki<mk​ and permutations ppp of the nnn coordinates. Define Pp∣x⟩=∣x∘p−1⟩P_p|x\rangle=|x\circ p^{-1}\ranglePp​∣x⟩=∣x∘p−1⟩, and define seed vectors by

sk,w(x)=(ℓkw)−1/21{∑a<ℓkxa=w}∏j<kϵ(xℓk+2j,xℓk+2j+1)2,ϵ(0,1)=1,ϵ(1,0)=−1,ϵ(0,0)=ϵ(1,1)=0.s_{k,w}(x)=\binom{\ell_k}{w}^{-1/2} \mathbf1_{\{\sum_{a<\ell_k}x_a=w\}} \prod_{j<k}\frac{\epsilon(x_{\ell_k+2j},x_{\ell_k+2j+1})}{\sqrt2}, \qquad \epsilon(0,1)=1,\quad\epsilon(1,0)=-1,\quad\epsilon(0,0)=\epsilon(1,1)=0.sk,w​(x)=(wℓk​​)−1/21{∑a<ℓk​​xa​=w}​j<k∏​2​ϵ(xℓk​+2j​,xℓk​+2j+1​)​,ϵ(0,1)=1,ϵ(1,0)=−1,ϵ(0,0)=ϵ(1,1)=0.

Here 0≤w≤ℓk0\le w\le\ell_k0≤w≤ℓk​, and empty products are 111. Set vk,w,0=sk,wv_{k,w,0}=s_{k,w}vk,w,0​=sk,w​ and, for i≠0i\ne0i=0, set vk,w,i=∑pαk,i,pPpsk,wv_{k,w,i}=\sum_p\alpha_{k,i,p}P_ps_{k,w}vk,w,i​=∑p​αk,i,p​Pp​sk,w​. Assume that, for each kkk, the vectors vk,0,iv_{k,0,i}vk,0,i​ are orthonormal and their span equals the span of all Ppsk,0P_ps_{k,0}Pp​sk,0​. Let f:Wn→{0,1}f:\mathcal W_n\to\{0,1\}f:Wn​→{0,1} satisfy f(x∘p−1)=f(x)f(x\circ p^{-1})=f(x)f(x∘p−1)=f(x) for every coordinate permutation ppp, and f(π∘x)=π(f(x))f(\pi\circ x)=\pi(f(x))f(π∘x)=π(f(x)) for every permutation π\piπ of {0,1}\{0,1\}{0,1}. For a matrix ρ\rhoρ on Wn\mathcal W_nWn​, define

Bk(ρ)wv=∑i<mk⟨vk,w,i,ρ vk,v,i⟩.B_k(\rho)_{wv}=\sum_{i<m_k}\langle v_{k,w,i},\rho\,v_{k,v,i}\rangle.Bk​(ρ)wv​=i<mk​∑​⟨vk,w,i​,ρvk,v,i​⟩.

To specify the two maps used below, let Jℓ(x,w)=(ℓw)−1/21{∣x∣=w}J_\ell(x,w)=\binom\ell w^{-1/2}\mathbf1_{\{|x|=w\}}Jℓ​(x,w)=(wℓ​)−1/21{∣x∣=w}​, let Tℓ(B)\mathcal T_\ell(B)Tℓ​(B) be the first-qubit reduction of JℓBJℓ†J_\ell BJ_\ell^\daggerJℓ​BJℓ†​, explicitly

Tℓ(B)ab=∑x∈{0,1}ℓx0=a(JℓBJℓ†)x,x[0←b](ℓ>0),T0(B)=0,\mathcal T_\ell(B)_{ab} =\sum_{\substack{x\in\{0,1\}^{\ell}\\x_0=a}} (J_\ell BJ_\ell^\dagger)_{x,x[0\leftarrow b]} \quad(\ell>0),\qquad \mathcal T_0(B)=0,Tℓ​(B)ab​=x∈{0,1}ℓx0​=a​∑​(Jℓ​BJℓ†​)x,x[0←b]​(ℓ>0),T0​(B)=0,

and put

Nℓ(B)=∫(ℓ+1)⟨sℓ(ϕ),B sℓ(ϕ)⟩(I2−∣ϕ⟩⟨ϕ∣) dμ(ϕ),sℓ(ϕ)w=(ℓw) ϕ0ℓ−wϕ1w,\mathcal N_\ell(B)=\int(\ell+1)\langle s_\ell(\phi),B\,s_\ell(\phi)\rangle (I_2-|\phi\rangle\langle\phi|)\,d\mu(\phi), \qquad s_\ell(\phi)_w=\sqrt{\binom\ell w}\,\phi_0^{\ell-w}\phi_1^w,Nℓ​(B)=∫(ℓ+1)⟨sℓ​(ϕ),Bsℓ​(ϕ)⟩(I2​−∣ϕ⟩⟨ϕ∣)dμ(ϕ),sℓ​(ϕ)w​=(wℓ​)​ϕ0ℓ−w​ϕ1w​,

where μ\muμ is the distribution of U∣0⟩U|0\rangleU∣0⟩ for normalized Haar measure on U(2)U(2)U(2). Then there are real numbers tk∈[0,1]t_k\in[0,1]tk​∈[0,1] such that the map

Φt(ρ)=∑k[tkTℓk(Bk(ρ))+(1−tk)Nℓk(Bk(ρ))]\Phi_t(\rho)=\sum_k\left[t_k\mathcal T_{\ell_k}(B_k(\rho)) +(1-t_k)\mathcal N_{\ell_k}(B_k(\rho))\right]Φt​(ρ)=k∑​[tk​Tℓk​​(Bk​(ρ))+(1−tk​)Nℓk​​(Bk​(ρ))]

is a channel and achieves the supremum, over all channels Φ\PhiΦ, of

inf⁡x∈WnU∈U(2)Re⁡Tr⁡ ⁣[U∣f(x)⟩⟨f(x)∣U† Φ ⁣(U⊗n∣x⟩⟨x∣(U†)⊗n)].\inf_{\substack{x\in\mathcal W_n\\U\in U(2)}} \operatorname{Re}\operatorname{Tr}\!\left[ U|f(x)\rangle\langle f(x)|U^\dagger\, \Phi\!\left(U^{\otimes n}|x\rangle\langle x|(U^\dagger)^{\otimes n}\right)\right].x∈Wn​U∈U(2)​inf​ReTr[U∣f(x)⟩⟨f(x)∣U†Φ(U⊗n∣x⟩⟨x∣(U†)⊗n)].

Here a channel means a map ρ↦∑j<rKjρKj†\rho\mapsto\sum_{j<r}K_j\rho K_j^\daggerρ↦∑j<r​Kj​ρKj†​ for some natural number rrr, with ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I. Moreover, for every matrix ρ\rhoρ, every coordinate permutation ppp, and every U∈U(2)U\in U(2)U∈U(2),

Φt(PpρPp†)=Φt(ρ),Φt(U⊗nρ(U†)⊗n)=UΦt(ρ)U†.\Phi_t(P_p\rho P_p^\dagger)=\Phi_t(\rho), \qquad \Phi_t(U^{\otimes n}\rho(U^\dagger)^{\otimes n}) =U\Phi_t(\rho)U^\dagger.Φt​(Pp​ρPp†​)=Φt​(ρ),Φt​(U⊗nρ(U†)⊗n)=UΦt​(ρ)U†.

The quantifiers include n=1n=1n=1.

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