Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Quantum majority vote: Theorem 1.2

Open
QAlgorithms.Papers.Independent.Gap48.P23.majority_asymptotics

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, optimal quantum majority has the asymptotics

FMAJ(n)=12+Θ(n−1/2).F_{\rm MAJ}(n)=\tfrac12+\Theta(n^{-1/2}).FMAJ​(n)=21​+Θ(n−1/2).

For each q∈{3,6}q\in\{3,6\}q∈{3,6}, let PqP_qPq​ require minority weight at most ⌊n/q⌋\lfloor n/q\rfloor⌊n/q⌋. Then

1−FMAJ,Pq(n)=Θ(n−1).1-F_{{\rm MAJ},P_q}(n)=\Theta(n^{-1}).1−FMAJ,Pq​​(n)=Θ(n−1).

Each Θ\ThetaΘ means positive lower and upper constants and a threshold chosen before nnn. The q=3q=3q=3 clause is the abstract and proof promise; q=6q=6q=6 separately preserves the stronger printed promise. These are worst-case statements, including the all-equal inputs without claiming their pointwise error is nonzero.

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.1,5,37-38, Theorem 1.2. PRINTED promise: ||x|-n/2|>=n/3.
CHANGED main promise to minority<=floor(n/3), as in abstract and proof; retain
minority<=floor(n/6) as a separate companion. WHY: the printed formula means a
five-sixths majority. These are worst-case, not pointwise, asymptotics.
Independent moderation of this source correction is required. -/
theorem majority_asymptotics :
    (∃ a b : ℝ, 0 < a ∧ 0 < b ∧ ∃ N : ℕ, ∀ n ≥ N, 1 ≤ n → Odd n →
      a / Real.sqrt n ≤ optimalFunctionFidelity (fun _ => True) (majority n) - 1/2 ∧
      optimalFunctionFidelity (fun _ => True) (majority n) - 1/2 ≤ b / Real.sqrt n) ∧
    (∀ q ∈ ({3, 6} : Finset ℕ), ∃ a b : ℝ, 0 < a ∧ 0 < b ∧ ∃ N : ℕ,
      ∀ n ≥ N, 1 ≤ n → Odd n →
        a / n ≤ 1 - optimalFunctionFidelity (majorityPromise n q) (majority n) ∧
        1 - optimalFunctionFidelity (majorityPromise n q) (majority n) ≤ b / n) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P23

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

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

For a binary word xxx of length nnn, write h(x)h(x)h(x) for its number of ones and define fn(x)=1f_n(x)=1fn​(x)=1 if n<2h(x)n<2h(x)n<2h(x), and fn(x)=0f_n(x)=0fn​(x)=0 otherwise. For a predicate PPP on these words, define Fn(P)F_n(P)Fn​(P) as follows: take the supremum over all maps Φ\PhiΦ from complex matrices indexed by binary words of length nnn to 2×22\times22×2 complex matrices that admit a finite Kraus representation Φ(X)=∑ℓ=0s−1KℓXKℓ†\Phi(X)=\sum_{\ell=0}^{s-1}K_\ell X K_\ell^\daggerΦ(X)=∑ℓ=0s−1​Kℓ​XKℓ†​ with ∑ℓKℓ†Kℓ=I\sum_\ell K_\ell^\dagger K_\ell=I∑ℓ​Kℓ†​Kℓ​=I; for each such map take the infimum, over all words xxx satisfying P(x)P(x)P(x) and all 2×22\times22×2 unitary matrices UUU, of

Re⁡tr⁡ ⁣[U∣fn(x)⟩⟨fn(x)∣U† Φ ⁣(U⊗n∣x⟩⟨x∣(U†)⊗n)].\operatorname{Re}\operatorname{tr}\!\left[ U|f_n(x)\rangle\langle f_n(x)|U^\dagger\, \Phi\!\left(U^{\otimes n}|x\rangle\langle x|(U^\dagger)^{\otimes n}\right) \right].Retr[U∣fn​(x)⟩⟨fn​(x)∣U†Φ(U⊗n∣x⟩⟨x∣(U†)⊗n)].

Here ∣x⟩|x\rangle∣x⟩ and ∣b⟩|b\rangle∣b⟩ denote coordinate basis vectors, and U⊗nU^{\otimes n}U⊗n has entry ∏i=0n−1Uyi,xi\prod_{i=0}^{n-1}U_{y_i,x_i}∏i=0n−1​Uyi​,xi​​. The theorem asserts both that there exist positive real numbers a,ba,ba,b and a natural number NNN such that every odd natural number n≥Nn\ge Nn≥N with n≥1n\ge1n≥1 satisfies

an≤Fn(True)−12≤bn,\frac a{\sqrt n}\le F_n(\mathrm{True})-\frac12\le\frac b{\sqrt n},n​a​≤Fn​(True)−21​≤n​b​,

and that, for each q∈{3,6}q\in\{3,6\}q∈{3,6}, there exist positive real numbers a,ba,ba,b and a natural number NNN, allowed to depend on qqq, such that every odd n≥Nn\ge Nn≥N with n≥1n\ge1n≥1 satisfies

an≤1−Fn(Pn,q)≤bn,Pn,q(x) ⟺ min⁡{h(x), n−h(x)}≤⌊n/q⌋.\frac an\le1-F_n(P_{n,q})\le\frac bn, \qquad P_{n,q}(x)\ \Longleftrightarrow\ \min\{h(x),\,n-h(x)\}\le\lfloor n/q\rfloor.na​≤1−Fn​(Pn,q​)≤nb​,Pn,q​(x) ⟺ min{h(x),n−h(x)}≤⌊n/q⌋.

The subtraction and division in this predicate are natural-number operations; the displayed bounds use real division. Neither conclusion imposes a bound at even nnn, at n=0n=0n=0, or below its chosen threshold.

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