Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Lemma 1, p. 5 — U has a depth-l circuit iff S†_{⌊l/2⌋}U ∩ S_{⌈l/2⌉} ≠ ∅

Proved
QCircMITM.Search.lemma_1

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

circuit-depthmeet-in-the-middlep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1quantum-circuit-synthesis

Let V⊆U(2n)V \subseteq U(2^n)V⊆U(2n) be a finite set of unitaries, standing for Vn,G\mathcal V_{n,\mathcal G}Vn,G​, and let SiS_iSi​ be the set of unitaries implementable in depth iii over VVV. For every unitary UUU and every l≥0l \ge 0l≥0, there is a circuit of exactly lll layers over VVV implementing UUU if and only if

S⌊l/2⌋† U  ∩  S⌈l/2⌉≠∅,S⌊l/2⌋†U={ X†U:X∈S⌊l/2⌋ }.S_{\lfloor l/2\rfloor}^\dagger\, U \;\cap\; S_{\lceil l/2\rceil} \neq \emptyset, \qquad S_{\lfloor l/2\rfloor}^\dagger U = \{\, X^\dagger U : X \in S_{\lfloor l/2\rfloor}\,\}.S⌊l/2⌋†​U∩S⌈l/2⌉​=∅,S⌊l/2⌋†​U={X†U:X∈S⌊l/2⌋​}.

This is the meet-in-the-middle observation: a depth-lll circuit can be found by generating only circuits of depth at most ⌈l/2⌉\lceil l/2\rceil⌈l/2⌉ and looking for a collision.

Formalization Note. The statement is made for every finite set VVV of unitaries; the paper's proof uses nothing else about Vn,G\mathcal V_{n,\mathcal G}Vn,G​. It holds for l=0l = 0l=0 as well (U=IU = IU=I). ⌊l/2⌋\lfloor l/2\rfloor⌊l/2⌋ is l / 2 and ⌈l/2⌉\lceil l/2\rceil⌈l/2⌉ is (l + 1) / 2.

Preamble
import Mathlib
import Definitions.Def_QCircMITM_Search_Algorithm
Formal statement
namespace QCircMITM.Search

theorem lemma_1 {n : ℕ} (V : Finset (Unitary n)) (U : Unitary n) (l : ℕ) :
    (∃ c : List (Unitary n), c.length = l ∧ (∀ W ∈ c, W ∈ V) ∧ c.prod = U) ↔
      ((S V (l / 2)).image (fun X => X⁻¹ * U) ∩ S V ((l + 1) / 2)).Nonempty := 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, p. 5, Lemma 1
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