Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix G.2: explicit exact superoperators

Proved
QAlgorithms.Papers.Independent.Gap48.P23.ideal_choi_matrices

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.

Take the six literal output-first Choi matrices of Appendix G.2, with scales 1,1,1/6,1/3,1/3,1/61,1,1/6,1/3,1/3,1/61,1,1/6,1/3,1/3,1/6 in the order ID, NOT, MAJ3, PAR3, NPAR3, NMAJ3. For their inverse-Choi superoperators,

Φf(ρxU)=U∣f(x)⟩⟨f(x)∣U†for every x,U.\Phi_f(\rho_x^U)=U|f(x)\rangle\langle f(x)|U^\dagger\quad\text{for every }x,U.Φf​(ρxU​)=U∣f(x)⟩⟨f(x)∣U†for every x,U.

Complete positivity is not assumed. This finite collection does not assert arbitrary-input-size existence or uniqueness.

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 pp.84-85, Appendix G.2: all six literal superoperators implement
exact ideal functionality on every word and common basis. They are not
assumed to be CP; equality with a target density guarantees valid outputs on
the promised products. No arbitrary-n existence or uniqueness is asserted. -/
theorem ideal_choi_matrices :
    (∀ (mask : Fin 2) (x : Word 1 2) (U : Matrix.unitaryGroup (Fin 2) ℂ),
      appendixOneChannel true mask (encodedInput U.val x) = targetDensity U.val (tableFunction 1 mask.val x)) ∧
    (∀ (mask : Fin 4) (x : Word 3 2) (U : Matrix.unitaryGroup (Fin 2) ℂ),
      appendixThreeChannel true mask (encodedInput U.val x) = targetDensity U.val (tableFunction 3 mask.val x)) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 84, Appendix G.2: explicit exact superoperators
Read-back

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

For every mask m=0,1m=0,1m=0,1, every one bit word xxx, and every complex unitary U∈U(2)U\in U(2)U∈U(2), and separately for every mask m=0,1,2,3m=0,1,2,3m=0,1,2,3, every three bit word xxx, and every U∈U(2)U\in U(2)U∈U(2), the explicitly defined map ΦJn,m\Phi_{J_{n,m}}ΦJn,m​​ satisfies

ΦJn,m ⁣(U⊗n∣x⟩⟨x∣(U⊗n)†)=U∣fn,m(x)⟩⟨fn,m(x)∣U†.\Phi_{J_{n,m}}\!\left(U^{\otimes n}|x\rangle\langle x|(U^{\otimes n})^\dagger\right) =U|f_{n,m}(x)\rangle\langle f_{n,m}(x)|U^\dagger .ΦJn,m​​(U⊗n∣x⟩⟨x∣(U⊗n)†)=U∣fn,m​(x)⟩⟨fn,m​(x)∣U†.

Here nnn is respectively 111 or 333, [ΦJ(ρ)]ab=∑x,yJ(a,x),(b,y)ρxy[\Phi_J(\rho)]_{ab}=\sum_{x,y}J_{(a,x),(b,y)}\rho_{xy}[ΦJ​(ρ)]ab​=∑x,y​J(a,x),(b,y)​ρxy​, and f1,mf_{1,m}f1,m​ takes the values m,1−mm,1-mm,1−m at weights 0,10,10,1. For n=3n=3n=3, writing u=⌊m/2⌋u=\lfloor m/2\rflooru=⌊m/2⌋, v=m mod 2v=m\bmod2v=mmod2, the function f3,mf_{3,m}f3,m​ takes the values u,v,1−v,1−uu,v,1-v,1-uu,v,1−v,1−u at weights 0,1,2,30,1,2,30,1,2,3. For one bit, flattening (a,x)(a,x)(a,x) to 2a+x02a+x_02a+x0​, the matrices are

J1,0=(1001000000001001),J1,1=(000−101000010−1000).J_{1,0}= \begin{pmatrix}1&0&0&1\\0&0&0&0\\0&0&0&0\\1&0&0&1\end{pmatrix}, \qquad J_{1,1}= \begin{pmatrix}0&0&0&-1\\0&1&0&0\\0&0&1&0\\-1&0&0&0\end{pmatrix}.J1,0​=​1001​0000​0000​1001​​,J1,1​=​000−1​0100​0010​−1000​​.

For three bits, flatten (a,x)(a,x)(a,x) to 8a+4x0+2x1+x28a+4x_0+2x_1+x_28a+4x0​+2x1​+x2​. Define a symmetric matrix L(a,b,c,d,e,f,g,q)L(a,b,c,d,e,f,g,q)L(a,b,c,d,e,f,g,q) on indices 0,…,150,\ldots,150,…,15 by diagonal values aaa at {0,15}\{0,15\}{0,15}, ccc at {1,2,4,11,13,14}\{1,2,4,11,13,14\}{1,2,4,11,13,14}, fff at {3,5,6,9,10,12}\{3,5,6,9,10,12\}{3,5,6,9,10,12}, and ggg at {7,8}\{7,8\}{7,8}; its upper triangular entries are bbb at (0,9),(0,10),(0,12),(3,15),(5,15),(6,15)(0,9),(0,10),(0,12),(3,15),(5,15),(6,15)(0,9),(0,10),(0,12),(3,15),(5,15),(6,15), ddd at (1,11),(1,13),(2,11),(2,14),(4,13),(4,14)(1,11),(1,13),(2,11),(2,14),(4,13),(4,14)(1,11),(1,13),(2,11),(2,14),(4,13),(4,14), eee at (1,14),(2,13),(4,11)(1,14),(2,13),(4,11)(1,14),(2,13),(4,11), qqq at all pairs within {1,2,4}\{1,2,4\}{1,2,4} or within {11,13,14}\{11,13,14\}{11,13,14}, and −q-q−q at all pairs within {3,5,6}\{3,5,6\}{3,5,6} or within {9,10,12}\{9,10,12\}{9,10,12}; every other entry is zero. The matrices used in the equality are

J3,0=16L(6,2,6,4,−4,0,0,−1),J3,1=13L(3,1,0,−1,4,3,0,1),J3,2=13L(0,−1,3,1,−4,0,3,−1),J3,3=16L(0,−2,0,−4,4,6,6,1).\begin{aligned} J_{3,0}&=\tfrac16L(6,2,6,4,-4,0,0,-1),& J_{3,1}&=\tfrac13L(3,1,0,-1,4,3,0,1),\\ J_{3,2}&=\tfrac13L(0,-1,3,1,-4,0,3,-1),& J_{3,3}&=\tfrac16L(0,-2,0,-4,4,6,6,1). \end{aligned}J3,0​J3,2​​=61​L(6,2,6,4,−4,0,0,−1),=31​L(0,−1,3,1,−4,0,3,−1),​J3,1​J3,3​​=31​L(3,1,0,−1,4,3,0,1),=61​L(0,−2,0,−4,4,6,6,1).​

This declaration asserts these output equalities without asserting that the maps ΦJn,m\Phi_{J_{n,m}}ΦJn,m​​ are channels.

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