Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (68)–(74) — if θmin(1 + 0.9γ) ≤ θ ≤ θmax then 0.42 ≤ rθ − πk ≤ 2.68 and sin²(rθ) ≥ 16.5%

Proved
QApproxCount.Counting.eqs_68_74

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

groverp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1rotation-lemma

Let θmin⁡>0\theta_{\min}>0θmin​>0, 0<γ≤0.70<\gamma\le0.70<γ≤0.7, θmax⁡=(1+γ)θmin⁡≤0.002\theta_{\max}=(1+\gamma)\theta_{\min}\le0.002θmax​=(1+γ)θmin​≤0.002, and let kkk and rrr be computed from θmin⁡,θmax⁡\theta_{\min},\theta_{\max}θmin​,θmax​ by eqs. (45)–(47). If

θmin⁡(1+0.9γ)≤θ≤θmax⁡,\theta_{\min}(1+0.9\gamma)\le\theta\le\theta_{\max},θmin​(1+0.9γ)≤θ≤θmax​,

then

0.42≤rθ−πk≤2.68andsin⁡2(rθ)≥16.5%.0.42\le r\theta-\pi k\le2.68\qquad\text{and}\qquad\sin^2(r\theta)\ge16.5\%.0.42≤rθ−πk≤2.68andsin2(rθ)≥16.5%.

When θ\thetaθ lies in the upper part of the bracket, the coin of Lemma 2 has bias well above 12%, so seeing too few heads is unlikely.

Preamble
import Mathlib
import Definitions.Def_QApproxCount_Counting_Algorithm
Formal statement
namespace QApproxCount.Counting

/-- Eqs. (68)–(74), p. 10 (θ near the top of the bracket): with `θmin, θmax, γ, k, r` as in
Lemma 2 (`0 < θmin`, `0 < γ ≤ 0.7`, `θmax = (1 + γ) θmin ≤ 0.002`, `k = rotK`, `r = rotR`), if
`θmin (1 + 0.9γ) ≤ θ ≤ θmax` then `0.42 ≤ rθ - πk ≤ 2.68` and `sin²(rθ) ≥ 16.5%`. -/
theorem eqs_68_74 (θmin θmax γ θ : ℝ) (hθmin : 0 < θmin) (hγ : 0 < γ) (hγ1 : γ ≤ 0.7)
    (hmax : θmax = (1 + γ) * θmin) (hθmax : θmax ≤ 0.002)
    (hlo : θmin * (1 + 0.9 * γ) ≤ θ) (hhi : θ ≤ θmax) :
    0.42 ≤ (rotR θmin θmax : ℝ) * θ - Real.pi * (rotK θmin θmax : ℝ) ∧
      (rotR θmin θmax : ℝ) * θ - Real.pi * (rotK θmin θmax : ℝ) ≤ 2.68 ∧
      0.165 ≤ Real.sin ((rotR θmin θmax : ℝ) * θ) ^ 2 := by sorry

end QApproxCount.Counting
Source
Aaronson & Rall, Quantum Approximate Counting, Simplified, arXiv:1908.10846v6, p. 10, eqs. (68)–(74) and the sentence after (74) (proof of Lemma 2)
Human review
  • Endorsed by Shuze Chen · Oct 19, 2026

    Confirmed by the moderator at approval.

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