Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (37)–(44) — the arithmetico-geometric query sum is O(1/ε) with b = 1/0.9 and T from eq. (30)

Proved
QApproxCount.Counting.eqs_37_44

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

approximate-countingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1query-complexity

Let b:=1/0.9b:=1/0.9b:=1/0.9, 0<ε≤10<\varepsilon\le10<ε≤1, and T∈NT\in\mathbb NT∈N with ln⁡(b) (T+1)≥ln⁡(1/ε)\ln(b)\,(T+1)\ge\ln(1/\varepsilon)ln(b)(T+1)≥ln(1/ε) (eq. (37)) and 0.65⋅0.9T≥ε/50.65\cdot0.9^T\ge\varepsilon/50.65⋅0.9T≥ε/5 (eq. (30)). Then

∑t=0Tbt[ln⁡1ε−tln⁡b] ≤ ln⁡(b) bT+2(b−1)2 ≤ 3.25 b2ln⁡b(b−1)2ε.\sum_{t=0}^{T} b^t\Big[\ln\frac1\varepsilon - t\ln b\Big]\ \le\ \ln(b)\,\frac{b^{T+2}}{(b-1)^2}\ \le\ \frac{3.25\,b^2\ln b}{(b-1)^2\varepsilon}.t=0∑T​bt[lnε1​−tlnb] ≤ ln(b)(b−1)2bT+2​ ≤ (b−1)2ε3.25b2lnb​.

The last inequality is the explicit O(1/ε)O(1/\varepsilon)O(1/ε) conclusion of eq. (44). This bounds the part of the query cost of step 2 that comes from the ln⁡(1/ε)\ln(1/\varepsilon)ln(1/ε) term in ln⁡δt−1\ln\delta_t^{-1}lnδt−1​.

Preamble
import Mathlib
Formal statement
namespace QApproxCount.Counting

/-- Eqs. (37)–(44), p. 8 (the arithmetico-geometric query sum of step 2): with `b := 1/0.9`,
`0 < ε ≤ 1` and `T` satisfying (30) and (37),
`Σ_{t=0}^{T} b^t [ln(1/ε) - t ln b] ≤ ln(b) b^{T+2} / (b - 1)²`.
The second bound is the explicit `O(1/ε)` conclusion of (44). -/
theorem eqs_37_44 (ε : ℝ) (hε : 0 < ε) (hε1 : ε ≤ 1) (T : ℕ)
    (hT : Real.log (1 / ε) ≤ Real.log (1 / 0.9) * ((T : ℝ) + 1))
    (hTupper : ε / 5 ≤ 0.65 * (0.9 : ℝ) ^ T) :
    ∑ t ∈ Finset.range (T + 1),
        (1 / 0.9 : ℝ) ^ t * (Real.log (1 / ε) - (t : ℝ) * Real.log (1 / 0.9)) ≤
      Real.log (1 / 0.9) * (1 / 0.9 : ℝ) ^ (T + 2) / (1 / 0.9 - 1) ^ 2 ∧
    Real.log (1 / 0.9) * (1 / 0.9 : ℝ) ^ (T + 2) / (1 / 0.9 - 1) ^ 2 ≤
      (Real.log (1 / 0.9) * (1 / 0.9 : ℝ) ^ 2 * 3.25 / (1 / 0.9 - 1) ^ 2) / ε := by sorry

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