Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 5.1.

Open
QAlgorithms.Papers.Independent.Gap48.P23.majority_recursive_fidelity

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.

Let n≥1n\ge1n≥1 be odd. The optimal majority fidelity is

FMAJ(n)=g((n+1)/2),F_{\rm MAJ}(n)=g((n+1)/2),FMAJ​(n)=g((n+1)/2),

where g(1)=1g(1)=1g(1)=1, g(2)=8/9g(2)=8/9g(2)=8/9, and for m≥3m\ge3m≥3,

g(m)=2m(2m−1)2(2m+1)[(2m(4m−7)+5)g(m−1)−4(m−1)(m−2)g(m−2)+1].g(m)=\frac{2m}{(2m-1)^2(2m+1)}\left[(2m(4m-7)+5)g(m-1)-4(m-1)(m-2)g(m-2)+1\right].g(m)=(2m−1)2(2m+1)2m​[(2m(4m−7)+5)g(m−1)−4(m−1)(m−2)g(m−2)+1].

The unused total value g(0)=0g(0)=0g(0)=0 does not enter the statement.

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.36,82, Lemma 5.1: exact recursive optimal majority fidelity. -/
theorem majority_recursive_fidelity (n : ℕ) (hn : 1 ≤ n) (hodd : Odd n) :
    optimalFunctionFidelity (fun _ => True) (majority n) = majorityRecurrence ((n+1)/2) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

end
Source
Quantum majority vote, arXiv:2211.11729v1, PDF p. 36, Lemma 5.1.
Read-back

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

For every odd natural number n≥1n\ge1n≥1, let Wn={0,1}n\mathcal W_n=\{0,1\}^nWn​={0,1}n, let ∣x∣|x|∣x∣ be the number of 111's in xxx, and define gn(x)=1g_n(x)=1gn​(x)=1 when n<2∣x∣n<2|x|n<2∣x∣, and gn(x)=0g_n(x)=0gn​(x)=0 otherwise. For any channel Φ\PhiΦ from matrices on Wn\mathcal W_nWn​ to 2×22\times22×2 complex matrices, define its fidelity to be

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

Here a channel is any finite Kraus map Φ(ρ)=∑jKjρKj†\Phi(\rho)=\sum_jK_j\rho K_j^\daggerΦ(ρ)=∑j​Kj​ρKj†​ satisfying ∑jKj†Kj=I\sum_jK_j^\dagger K_j=I∑j​Kj†​Kj​=I, and U⊗nU^{\otimes n}U⊗n has entries ∏i<nUyi,xi\prod_{i<n}U_{y_i,x_i}∏i<n​Uyi​,xi​​. Define the real sequence R0=0R_0=0R0​=0, R1=1R_1=1R1​=1, R2=8/9R_2=8/9R2​=8/9, and, for every integer z≥3z\ge3z≥3,

Rz=2z(2z−1)2(2z+1)[(2z(4z−7)+5)Rz−1−4(z−1)(z−2)Rz−2+1].R_z=\frac{2z}{(2z-1)^2(2z+1)} \left[(2z(4z-7)+5)R_{z-1} -4(z-1)(z-2)R_{z-2}+1\right].Rz​=(2z−1)2(2z+1)2z​[(2z(4z−7)+5)Rz−1​−4(z−1)(z−2)Rz−2​+1].

Then sup⁡ΦFn(Φ)=R(n+1)/2\sup_\Phi F_n(\Phi)=R_{(n+1)/2}supΦ​Fn​(Φ)=R(n+1)/2​, where (n+1)/2(n+1)/2(n+1)/2 is natural-number division and is an integer because nnn is odd. In particular, n=1n=1n=1 is included.

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