Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (30)–(32) — the failure probabilities δ_t = (δε/65)·0.9^{−t} of rounds t = 0, …, T sum to at most δ/2

Proved
QApproxCount.Counting.eqs_30_32

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

approximate-countingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1union-bound

Let 0<ε<10<\varepsilon<10<ε<1 and δ>0\delta>0δ>0, and let T∈NT\in\mathbb NT∈N satisfy

γT=0.65⋅(0.9)T ≥ ε5\gamma_T = 0.65\cdot(0.9)^T\ \ge\ \frac{\varepsilon}{5}γT​=0.65⋅(0.9)T ≥ 5ε​

(eq. (30) takes the largest such TTT). With δt:=(δε/65)⋅(0.9)−t\delta_t := (\delta\varepsilon/65)\cdot(0.9)^{-t}δt​:=(δε/65)⋅(0.9)−t,

∑t=0Tδt ≤ δ2.\sum_{t=0}^{T}\delta_t\ \le\ \frac{\delta}{2}.t=0∑T​δt​ ≤ 2δ​.

By the union bound over the rounds of step 2 and Lemma 2, step 2 keeps θ\thetaθ inside its bracket throughout with probability at least 1−δ/21-\delta/21−δ/2.

Formalization Note The statement holds for every TTT with 0.65⋅0.9T≥ε/50.65\cdot0.9^T\ge\varepsilon/50.65⋅0.9T≥ε/5, and so in particular for the largest one, which is the TTT of (30).

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

/-- Eqs. (30)–(32), p. 7 (union bound over step 2): for `0 < ε < 1`, `δ > 0` and any `T` with
`γ_T = 0.65 · 0.9^T ≥ ε/5` (in particular the largest such `T`, (30)), the failure
probabilities `δ_t = (δε/65) · 0.9^{-t}` of the rounds `t = 0, …, T` sum to at most `δ/2`. -/
theorem eqs_30_32 (ε δ : ℝ) (hε : 0 < ε) (hε1 : ε < 1) (hδ : 0 < δ) (T : ℕ)
    (hT : ε / 5 ≤ 0.65 * (0.9 : ℝ) ^ T) :
    ∑ t ∈ Finset.range (T + 1), deltaT ε δ t ≤ δ / 2 := by sorry

end QApproxCount.Counting
Source
Aaronson & Rall, Quantum Approximate Counting, Simplified, arXiv:1908.10846v6, p. 7, eqs. (30)–(32)
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