Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 1.1 (informal).

Open
QAlgorithms.Papers.Independent.Gap48.P23.informal_optimal_algorithm

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 every positive odd nnn and symmetric equivariant Boolean fff, there are interpolation parameters 0≤tk≤10\le t_k\le10≤tk​≤1 for which Algorithm 2 is optimal. Its optimal fidelity and parameters are the attained optimum of the explicit LP with ⌊n/2⌋+2\lfloor n/2\rfloor+2⌊n/2⌋+2 variables and 3⌊n/2⌋+33\lfloor n/2\rfloor+33⌊n/2⌋+3 inequalities. With real rotations supplied as exact single-qubit gates,

size⁡(At)≤Cn4log⁡n(n≥N).\operatorname{size}(A_t)\le Cn^4\log n\qquad(n\ge N).size(At​)≤Cn4logn(n≥N).

The constants C>0,NC>0,NC>0,N precede n,f,tn,f,tn,f,t and the fixed permitted coefficient family. This combines the precise contents of Theorems 4.6–4.8, without a finite-precision computation claim about arbitrary real numbers.

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.5, Theorem 1.1 (informal), interpreted through Theorems 4.6-4.8:
optimal template, attained explicit LP of linear size, and the exact continuous
one-qubit/CNOT gate bound, with universal constants. -/
theorem informal_optimal_algorithm :
    ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ n : ℕ, 1 ≤ n → Odd n →
      ∀ (alpha : RealSchurCoefficients n), LawfulCoefficients alpha →
      ∀ f : Word n 2 → Fin 2, WordSymmetric f → Equivariant f →
        ∃ t : TwoRowShape n → ℝ, FunctionLPFeasible f (optimalFunctionFidelity (fun _ => True) f) t ∧
          IsFunctionOptimal (fun _ => True) f (template alpha t) ∧
          (∀ c s, FunctionLPFeasible f c s → c ≤ optimalFunctionFidelity (fun _ => True) f) ∧
          (n ≥ N → ∃ circuit : OneOutputCircuit n,
            circuitOutput circuit (wordBinaryEmbedding n) = template alpha t ∧
            (circuit.circuit.size : ℝ) ≤ C * (n:ℝ)^4 * Real.log n) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 5, Theorem 1.1 (informal).
Read-back

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

There exist a real constant C>0C>0C>0 and a natural number NNN with the following property for every positive odd natural number nnn, including those below NNN. Write Kn={0,…,⌊n/2⌋}K_n=\{0,\ldots,\lfloor n/2\rfloor\}Kn​={0,…,⌊n/2⌋}, ℓ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​), using zero for the second term when k=0k=0k=0. Choose any real coefficients αk,r,p\alpha_{k,r,p}αk,r,p​, indexed by k∈Knk\in K_nk∈Kn​, 0≤r<mk0\le r<m_k0≤r<mk​, and permutations ppp of nnn positions. Let sk,ws_{k,w}sk,w​ be the tensor product of the normalized uniform vector on length-ℓk\ell_kℓk​ binary words of weight www, followed by kkk copies of (∣01⟩−∣10⟩)/2(|01\rangle-|10\rangle)/\sqrt2(∣01⟩−∣10⟩)/2​; let Rp∣x⟩=∣x∘p−1⟩R_p|x\rangle=|x\circ p^{-1}\rangleRp​∣x⟩=∣x∘p−1⟩; and set vk,w,0=sk,wv_{k,w,0}=s_{k,w}vk,w,0​=sk,w​ and vk,w,r=∑pαk,r,pRpsk,wv_{k,w,r}=\sum_p\alpha_{k,r,p}R_ps_{k,w}vk,w,r​=∑p​αk,r,p​Rp​sk,w​ for r≠0r\ne0r=0. Assume that, for each kkk, the vectors vk,0,rv_{k,0,r}vk,0,r​ are orthonormal and span exactly the complex linear span of the permutation orbit of sk,0s_{k,0}sk,0​. Choose any function f:{0,1}n→{0,1}f:\{0,1\}^n\to\{0,1\}f:{0,1}n→{0,1} that is unchanged by every permutation of its input positions and satisfies f(p∘x)=p(f(x))f(p\circ x)=p(f(x))f(p∘x)=p(f(x)) for every permutation ppp of the two output symbols and every word xxx. For a map Φ\PhiΦ from complex matrices on binary words to complex 2×22\times22×2 matrices, define

Ff(Φ)=inf⁡x∈{0,1}nU∈U(2)Re⁡tr⁡ ⁣[U∣f(x)⟩⟨f(x)∣U† Φ ⁣(U⊗n∣x⟩⟨x∣(U†)⊗n)],Ff∗=sup⁡Φ a channelFf(Φ).F_f(\Phi)=\inf_{\substack{x\in\{0,1\}^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], \qquad F_f^*=\sup_{\Phi\text{ a channel}}F_f(\Phi).Ff​(Φ)=x∈{0,1}nU∈U(2)​inf​Retr[U∣f(x)⟩⟨f(x)∣U†Φ(U⊗n∣x⟩⟨x∣(U†)⊗n)],Ff∗​=Φ a channelsup​Ff​(Φ).

Here a channel means a map admitting a finite Kraus representation Φ(X)=∑jEjXEj†\Phi(X)=\sum_jE_jXE_j^\daggerΦ(X)=∑j​Ej​XEj†​ with ∑jEj†Ej=I\sum_jE_j^\dagger E_j=I∑j​Ej†​Ej​=I, and every word xxx is included in the infimum. For 0≤h≤⌊n/2⌋0\le h\le\lfloor n/2\rfloor0≤h≤⌊n/2⌋, let x(h)x^{(h)}x(h) be the word consisting of n−hn-hn−h zeros followed by hhh ones, put fh=f(x(h))f_h=f(x^{(h)})fh​=f(x(h)), and define, for k≤hk\le hk≤h,

ph,k=(nk)−1k>0(nk−1)(nh),ah,k=n−h−k−fh(n−2h)n−2k,bh,k=h−k+1+fh(n−2h)n−2k+2.p_{h,k}=\frac{\binom nk-\mathbf1_{k>0}\binom n{k-1}}{\binom nh}, \qquad a_{h,k}=\frac{n-h-k-f_h(n-2h)}{n-2k}, \qquad b_{h,k}=\frac{h-k+1+f_h(n-2h)}{n-2k+2}.ph,k​=(hn​)(kn​)−1k>0​(k−1n​)​,ah,k​=n−2kn−h−k−fh​(n−2h)​,bh,k​=n−2k+2h−k+1+fh​(n−2h)​.

A pair consisting of a real number ccc and real parameters tkt_ktk​ is feasible precisely when 0≤tk≤10\le t_k\le10≤tk​≤1 for every k∈Knk\in K_nk∈Kn​ and

c≤∑k=0hph,k(tkah,k+(1−tk)bh,k)for every h∈Kn.c\le\sum_{k=0}^{h}p_{h,k}\bigl(t_ka_{h,k}+(1-t_k)b_{h,k}\bigr) \quad\text{for every }h\in K_n.c≤k=0∑h​ph,k​(tk​ah,k​+(1−tk​)bh,k​)for every h∈Kn​.

There exist parameters tkt_ktk​ for which (Ff∗,t)(F_f^*,t)(Ff∗​,t) is feasible and the following map Aα,t\mathcal A_{\alpha,t}Aα,t​ is a channel satisfying Ff(Aα,t)=Ff∗F_f(\mathcal A_{\alpha,t})=F_f^*Ff​(Aα,t​)=Ff∗​. Define W(k,w,r),x=vk,w,r(x)‾W_{(k,w,r),x}=\overline{v_{k,w,r}(x)}W(k,w,r),x​=vk,w,r​(x)​, Bk(X)w,v=∑r(WXW†)(k,w,r),(k,v,r)B_k(X)_{w,v}=\sum_r(WXW^\dagger)_{(k,w,r),(k,v,r)}Bk​(X)w,v​=∑r​(WXW†)(k,w,r),(k,v,r)​, and

Aα,t(X)=∑k∈Kn[tkTℓk(Bk(X))+(1−tk)Nℓk(Bk(X))].\mathcal A_{\alpha,t}(X) =\sum_{k\in K_n}\left[t_k\mathcal T_{\ell_k}(B_k(X))+ (1-t_k)\mathcal N_{\ell_k}(B_k(X))\right].Aα,t​(X)=k∈Kn​∑​[tk​Tℓk​​(Bk​(X))+(1−tk​)Nℓk​​(Bk​(X))].

For positive ℓ\ellℓ, the map Tℓ(Y)\mathcal T_\ell(Y)Tℓ​(Y) is the first-qubit partial trace of JℓYJℓ†J_\ell YJ_\ell^\daggerJℓ​YJℓ†​, where (Jℓ)z,w=(ℓw)−1/2(J_\ell)_{z,w}=\binom{\ell}{w}^{-1/2}(Jℓ​)z,w​=(wℓ​)−1/2 if the Boolean string zzz has weight www, and zero otherwise; explicitly, its (a,b)(a,b)(a,b) entry is ∑z:z0=a(JℓYJℓ†)z,z[0:=b]\sum_{z:z_0=a}(J_\ell YJ_\ell^\dagger)_{z,z[0:=b]}∑z:z0​=a​(Jℓ​YJℓ†​)z,z[0:=b]​. The other map is

Nℓ(Y)=∫(ℓ+1)tr⁡ ⁣(uℓ(ϕ)uℓ(ϕ)†Y)(I−ϕϕ†) dμ(ϕ),uℓ(ϕ)w=(ℓw)ϕ0ℓ−wϕ1w,\mathcal N_\ell(Y)= \int(\ell+1)\operatorname{tr}\!\left(u_\ell(\phi)u_\ell(\phi)^\dagger Y\right) (I-\phi\phi^\dagger)\,d\mu(\phi), \qquad u_\ell(\phi)_w=\sqrt{\binom{\ell}{w}}\phi_0^{\ell-w}\phi_1^w,Nℓ​(Y)=∫(ℓ+1)tr(uℓ​(ϕ)uℓ​(ϕ)†Y)(I−ϕϕ†)dμ(ϕ),uℓ​(ϕ)w​=(wℓ​)​ϕ0ℓ−w​ϕ1w​,

where μ\muμ is normalized Haar measure on U(2)U(2)U(2) pushed forward by U↦U∣0⟩U\mapsto U|0\rangleU↦U∣0⟩. Furthermore, every real ccc and parameter family sss satisfying the displayed feasibility conditions obey c≤Ff∗c\le F_f^*c≤Ff∗​. If also n≥Nn\ge Nn≥N, there exists a circuit with nnn input qubits, some number of additional zero ancillas, and one designated output qubit, using arbitrary one-qubit unitary gates and controlled-NOT gates on distinct wires, with at most Cn4ln⁡nCn^4\ln nCn4lnn gates, whose induced map is exactly Aα,t\mathcal A_{\alpha,t}Aα,t​ on all complex input matrices. Its induced map identifies binary words with Boolean strings, appends the zero ancillas, conjugates by the ordered circuit matrix, and takes the designated output’s partial trace. The threshold applies only to this circuit-existence and gate-count conclusion; no bound on the added ancillas is stated.

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