Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§3, pp. 6–7 — the two sum bounds of the running time (corrected: 1/(|V| − 1); the printed 1/(|V|^⌈l/2⌉ − 1) fails for ⌈l/2⌉ ≥ 2)

Proved
QCircMITM.Search.sum_bounds

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

inequalitiesmeet-in-the-middlep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1running-time

Let m≥2m \ge 2m≥2 be an integer (it stands for ∣Vn,G∣|\mathcal V_{n,\mathcal G}|∣Vn,G​∣) and h≥0h \ge 0h≥0 (it stands for ⌈l/2⌉\lceil l/2\rceil⌈l/2⌉). Then

∑i=1hmilog⁡2(mi)  ≤  ∑i=1hmilog⁡2(mh)\sum_{i=1}^{h} m^i \log_2(m^i) \;\le\; \sum_{i=1}^{h} m^i \log_2(m^h)i=1∑h​milog2​(mi)≤i=1∑h​milog2​(mh)

and

∑i=1hmi  ≤  mh(1+1m−1).\sum_{i=1}^{h} m^i \;\le\; m^h\Big(1 + \frac{1}{m-1}\Big).i=1∑h​mi≤mh(1+m−11​).

Together with ∣Si∣≤mi|S_i| \le m^i∣Si​∣≤mi these bound the total work of MITM-factor by a constant times mhlog⁡(mh)m^h \log(m^h)mhlog(mh).

Formalization Note. The paper prints the second bound as mh(1+1mh−1)m^h\big(1 + \frac{1}{m^h - 1}\big)mh(1+mh−11​), which is false for h≥2h \ge 2h≥2: for m=2m = 2m=2, h=2h = 2h=2 the left side is 666 and the printed right side is 16/316/316/3. The bound stated here, with 1m−1\frac{1}{m-1}m−11​, is the geometric-series bound and is what the OOO-claim needs. Logarithms are Real.logb 2; the base does not affect the inequalities.

Preamble
import Mathlib
Formal statement
namespace QCircMITM.Search

theorem sum_bounds (m : ℕ) (hm : 2 ≤ m) (h : ℕ) :
    ∑ i ∈ Finset.Icc 1 h, (m : ℝ) ^ i * Real.logb 2 ((m : ℝ) ^ i) ≤
        ∑ i ∈ Finset.Icc 1 h, (m : ℝ) ^ i * Real.logb 2 ((m : ℝ) ^ h) ∧
      ∑ i ∈ Finset.Icc 1 h, (m : ℝ) ^ i ≤ (m : ℝ) ^ h * (1 + 1 / ((m : ℝ) - 1)) := by sorry

end QCircMITM.Search
Source
Amy, Maslov, Mosca, Roetteler, A meet-in-the-middle algorithm for fast synthesis of depth-optimal quantum circuits, arXiv:1206.0758v3, pp. 6–7, §3, running-time paragraph
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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me