Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§3, p. 6 — S_i is exactly the set of unitaries of the circuits of i layers

Proved
QCircMITM.Search.generation

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

circuit-depthp2o-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​. For every i≥0i \ge 0i≥0:

  1. a list ccc of unitaries is a circuit of iii layers over VVV (as generated recursively by MITM-factor, extending circuits of i−1i-1i−1 layers by one more layer) if and only if ccc has length iii and all its entries lie in VVV;
  2. the set Si=VSi−1S_i = VS_{i-1}Si​=VSi−1​ (S0={I}S_0 = \{I\}S0​={I}) built by MITM-factor is exactly the set of unitaries implemented by these circuits:
Si={ U1U2⋯Ui:U1,…,Ui∈V }.S_i = \{\, U_1U_2\cdots U_i : U_1,\dots,U_i \in V \,\}.Si​={U1​U2​⋯Ui​:U1​,…,Ui​∈V}.

So the sets the algorithm generates step by step are the sets "SiS_iSi​ of all unitaries implementable in depth iii" of Lemma 1, and the circuits it extends are all depth-iii circuits.

Formalization Note. A circuit is a List of layers and implements its List.prod, with the head of the list leftmost, as in "U1U2⋯UmU_1U_2\cdots U_mU1​U2​⋯Um​" on p. 4.

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

theorem generation {n : ℕ} (V : Finset (Unitary n)) (i : ℕ) :
    (∀ c : List (Unitary n), c ∈ circuits V i ↔ c.length = i ∧ ∀ W ∈ c, W ∈ V) ∧
      S V i = (circuits V i).image List.prod := 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. 6, §3 (paragraph after the MITM-factor pseudocode)
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