Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eqs. (2)–(6) — if k₀ + 1 ≤ k_end ≤ k₀ + 10 then 0.9·1.05^{−k_end} ≤ θ ≤ 1.65·0.9·1.05^{−k_end}

Proved
QApproxCount.Counting.eqs_2_6

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

approximate-countinggroverp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let θ>0\theta>0θ>0 and let k0∈Nk_0\in\mathbb Nk0​∈N be the largest integer with θ⋅1.05k0≤0.9\theta\cdot1.05^{k_0}\le0.9θ⋅1.05k0​≤0.9 (eq. (2)). If k0+1≤kend≤k0+10k_0+1\le k_{\mathrm{end}}\le k_0+10k0​+1≤kend​≤k0​+10, then

0.9⋅1.05−kend≤θ≤1.65⋅(0.9⋅1.05−kend).0.9\cdot1.05^{-k_{\mathrm{end}}} \le \theta \le 1.65\cdot\big(0.9\cdot1.05^{-k_{\mathrm{end}}}\big).0.9⋅1.05−kend​≤θ≤1.65⋅(0.9⋅1.05−kend​).

So when step 1 behaves ideally, the bracket θmin⁡=0.9⋅1.05−kend\theta_{\min}=0.9\cdot1.05^{-k_{\mathrm{end}}}θmin​=0.9⋅1.05−kend​, θmax⁡=1.65 θmin⁡\theta_{\max}=1.65\,\theta_{\min}θmax​=1.65θmin​ that initialises step 2 contains θ\thetaθ.

Formalization Note "k0k_0k0​ is the largest integer with θ⋅1.05k0≤0.9\theta\cdot1.05^{k_0}\le0.9θ⋅1.05k0​≤0.9" is encoded by the two hypotheses θ⋅1.05k0≤0.9<θ⋅1.05k0+1\theta\cdot1.05^{k_0}\le0.9<\theta\cdot1.05^{k_0+1}θ⋅1.05k0​≤0.9<θ⋅1.05k0​+1 with k0∈Nk_0\in\mathbb Nk0​∈N (in the algorithm θ≤0.001\theta\le0.001θ≤0.001, so k0≥0k_0\ge0k0​≥0).

Preamble
import Mathlib
Formal statement
namespace QApproxCount.Counting

/-- Eqs. (2)–(6), p. 5 (ideal case of step 1): let `θ > 0` and let `k₀` be the largest integer
with `θ · 1.05^{k₀} ≤ 0.9`. If `k₀ + 1 ≤ k_end ≤ k₀ + 10`, then
`0.9 · 1.05^{-k_end} ≤ θ ≤ 1.65 · (0.9 · 1.05^{-k_end})`, i.e. `θmin ≤ θ ≤ θmax` for the bracket
initialised in step 2. -/
theorem eqs_2_6 (θ : ℝ) (hθ : 0 < θ) (k₀ kend : ℕ)
    (hk₀ : θ * (1.05 : ℝ) ^ k₀ ≤ 0.9) (hk₀max : 0.9 < θ * (1.05 : ℝ) ^ (k₀ + 1))
    (hlo : k₀ + 1 ≤ kend) (hhi : kend ≤ k₀ + 10) :
    0.9 * (1.05 : ℝ) ^ (-(kend : ℤ)) ≤ θ ∧ θ ≤ 1.65 * (0.9 * (1.05 : ℝ) ^ (-(kend : ℤ))) := by sorry

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