Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 7, p. 16 — if n < m (including m = ∞) and the sign function is exact, the algorithm ends with |θ − φ| ≤ 2^{−n−1}

Proved
QSVTPhaseEst.BitSearch.theorem_7

by mikedeng1 · Oct 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

error-boundp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1phase-estimationqsvtquantum-algorithms

Let 0≤φ<10 \le \varphi < 10≤φ<1 be an mmm-bit number with m>n≥1m > n \ge 1m>n≥1 (including m=∞m = \inftym=∞). If every iteration of phase estimation by QSVT, including the additional j=0j = 0j=0 iteration, measures its bit through the exact sign function, then the output θ=θ0.θ1…θn\theta = \theta_0.\theta_1\ldots\theta_nθ=θ0​.θ1​…θn​ satisfies

∣θ−φ∣≤2−n−1.|\theta - \varphi| \le 2^{-n-1}.∣θ−φ∣≤2−n−1.

Together with Theorem 6, this says that with an ideal sign function the procedure always returns a best nnn-bit approximation of φ\varphiφ, including θ=1.00…0\theta = 1.00\ldots0θ=1.00…0 when that is the closest one.

Formalization Note "n<mn < mn<m" is encoded as "φ≠k/2n\varphi \ne k/2^nφ=k/2n for every k∈Nk \in \mathbb Nk∈N". The minor modification of p. 27, the additional j=0j = 0j=0 iteration, is encoded as Appendix B 1 b (p. 29) analyses it: the general step applied to 0.φ0φ1…=φ/20.\varphi_0\varphi_1\ldots = \varphi/20.φ0​φ1​…=φ/2 with θ\thetaθ halved, whose singular value is ∣cos⁡(π(φ−θ0)/2)∣|\cos(\pi(\varphi - \theta_0)/2)|∣cos(π(φ−θ0​)/2)∣; its bit is the units digit of the output. Under the literal reading of Algorithm 3, line 9, the paper's example φ=0.11101012\varphi = 0.1110101_2φ=0.11101012​, n=2n = 2n=2 would violate the bound.

Preamble
import Mathlib
import Definitions.Def_QSVTPhaseEst_BitSearch_Procedure
Formal statement
namespace QSVTPhaseEst.BitSearch

theorem theorem_7 (φ : ℝ) (hφ0 : 0 ≤ φ) (hφ1 : φ < 1) (n : ℕ) (hn : 1 ≤ n)
    (hm : ¬ ∃ k : ℕ, φ = (k : ℝ) / 2 ^ n) (b : ℕ → Bool) (b₀ : Bool)
    (hrun : IsRun 0 φ n b b₀) :
    |output n b b₀ - φ| ≤ ((2 : ℝ) ^ (n + 1))⁻¹ := by sorry

end QSVTPhaseEst.BitSearch
Source
Martyn, Rossi, Tan & Chuang, A Grand Unification of Quantum Algorithms, arXiv:2105.02859v5, p. 16, Theorem 7 (restated p. 27); additional j = 0 iteration: p. 27 and Appendix B 1 b, p. 29
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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