Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 18, p. 13 (corrected: n ≥ 2) — APPROX-REAL error and coefficient bounds

Proved
FibAnyon.Approx.lemma_18

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

diophantine-approximationfibonacci-anyonsgolden-ratiop2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let xxx be real and n≥2n\ge2n≥2. If Figure 15's APPROX-REAL procedure returns integers a,ba,ba,b, then

∣x−(a+bτ)∣≤τn−1(1−τn),∣b∣≤φn.|x-(a+b\tau)|\le\tau^{n-1}(1-\tau^n),\qquad |b|\le\varphi^n.∣x−(a+bτ)∣≤τn−1(1−τn),∣b∣≤φn.

The first bound controls the sampler's geometric error; the second bounds the size of its cyclotomic coefficients.

Formalization Note The displayed error bound fails at n=1n=1n=1, so the theorem includes n≥2n\ge2n≥2. The paper's polynomial-time clause is not modeled here.

Preamble
import Mathlib
import Definitions.Def_FibAnyon_Approx_Model

noncomputable section
Formal statement
namespace FibAnyon.Approx

/-- Lemma 18, p. 13; n ≥ 2 is necessary for the displayed error bound. -/
theorem lemma_18 (x : ℝ) (n : ℕ) (hn : 2 ≤ n) :
    let z := approxReal x n
    |x - ((z.1 : ℝ) + (z.2 : ℝ) * tau)| ≤
        tau^(n-1) * (1 - tau^n) ∧
      |(z.2 : ℝ)| ≤ gold^n := by sorry

end FibAnyon.Approx
Source
Kliuchnikov, Bocharov, Svore, Asymptotically optimal topological quantum compiling, arXiv:1310.4150v1, p. 13, Lemma 18 (n ≥ 2 correction)
Human review
  • Endorsed by Shuze Chen · Oct 21, 2026

    Confirmed by the moderator at approval.

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