Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Disjoint fault-pair matching for extended rectangles and their predecessors

Proved
ThresholdTheorem.exRec_disjoint_pair_matching

by kmehltretter82 · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

fault-tolerancequantum-computingquantum-error-correction

This theorem establishes the combinatorial disjoint witness-pair property for extended rectangles (exRecs) and their predecessor locations in a layered quantum circuit.

Let CCC be a layered circuit over {H,T,CNOT,prep,wait}\{H, T, \mathrm{CNOT}, \mathrm{prep}, \mathrm{wait}\}{H,T,CNOT,prep,wait} on a qubit set QQQ, and let exRec(ℓ)\mathrm{exRec}(\ell)exRec(ℓ) assign to each location ℓ\ellℓ of CCC a finite set of physical locations of size at most Rmax⁡R_{\max}Rmax​ such that two extended rectangles exRec(ℓ1)\mathrm{exRec}(\ell_1)exRec(ℓ1​) and exRec(ℓ2)\mathrm{exRec}(\ell_2)exRec(ℓ2​) can overlap only when ℓ1=ℓ2\ell_1 = \ell_2ℓ1​=ℓ2​, ℓ1∈predC({ℓ2})\ell_1 \in \mathrm{pred}_C(\{\ell_2\})ℓ1​∈predC​({ℓ2​}), or ℓ2∈predC({ℓ1})\ell_2 \in \mathrm{pred}_C(\{\ell_1\})ℓ2​∈predC​({ℓ1​}). Suppose that for every fault set FFF, every bad location ℓ∈Ψ(F)\ell \in \Psi(F)ℓ∈Ψ(F) contains at least 303030 faults in exRec(ℓ)∩F\mathrm{exRec}(\ell) \cap FexRec(ℓ)∩F.

Then there exists a family pairs(ℓ)\mathrm{pairs}(\ell)pairs(ℓ) of two-element sets of physical locations with

∣pairs(ℓ)∣≤(3Rmax⁡2)|\mathrm{pairs}(\ell)| \le \binom{3 R_{\max}}{2}∣pairs(ℓ)∣≤(23Rmax​​)

such that for every fault set FFF and every subset S⊆Ψ(F)∪predC(Ψ(F))S \subseteq \Psi(F) \cup \mathrm{pred}_C(\Psi(F))S⊆Ψ(F)∪predC​(Ψ(F)), one can assign to each ℓ∈S\ell \in Sℓ∈S a pair g(ℓ)∈pairs(ℓ)g(\ell) \in \mathrm{pairs}(\ell)g(ℓ)∈pairs(ℓ) with g(ℓ)⊆Fg(\ell) \subseteq Fg(ℓ)⊆F so that the pairs {g(ℓ)}ℓ∈S\{g(\ell)\}_{\ell \in S}{g(ℓ)}ℓ∈S​ are pairwise disjoint.

Because each operation in CCC has arity at most 222 and each layer partitions QQQ, every location has at most 222 predecessors and at most 222 successors, allowing each bad exRec to supply disjoint fault pairs both for itself and for its predecessors even in the presence of overlapping adjacent exRecs.

Formalization Note Predecessor locations are given by predLocs C, and the binomial bound is written (3 * R_max).choose 2.

Preamble
import Mathlib
import Definitions.Def_threshold_theorem_joint_faults

open ThresholdTheorem
Formal statement
namespace ThresholdTheorem
theorem exRec_disjoint_pair_matching {Q : Type} [DecidableEq Q]
    (R_max : ℕ) (C : Circuit Q)
    (exRec : ℕ × ℕ → Finset (ℕ × ℕ))
    (Ψ : Finset (ℕ × ℕ) → Finset (ℕ × ℕ))
    (h_card : ∀ ℓ, (exRec ℓ).card ≤ R_max)
    (h_overlap : ∀ ℓ₁ ℓ₂, (exRec ℓ₁ ∩ exRec ℓ₂).Nonempty →
      ℓ₁ = ℓ₂ ∨ ℓ₁ ∈ predLocs C {ℓ₂} ∨ ℓ₂ ∈ predLocs C {ℓ₁})
    (h_bad : ∀ F ℓ, ℓ ∈ Ψ F → 30 ≤ (exRec ℓ ∩ F).card) :
    ∃ pairs : ℕ × ℕ → Finset (Finset (ℕ × ℕ)),
      (∀ ℓ, (pairs ℓ).card ≤ (3 * R_max).choose 2) ∧
      (∀ ℓ, ∀ p ∈ pairs ℓ, p.card = 2) ∧
      ∀ (F S : Finset (ℕ × ℕ)), S ⊆ Ψ F ∪ predLocs C (Ψ F) →
        ∃ g : ℕ × ℕ → Finset (ℕ × ℕ),
          (∀ ℓ ∈ S, g ℓ ∈ pairs ℓ ∧ g ℓ ⊆ F) ∧
          ∀ ℓ₁ ∈ S, ∀ ℓ₂ ∈ S, ℓ₁ ≠ ℓ₂ → Disjoint (g ℓ₁) (g ℓ₂) := by sorry
end ThresholdTheorem
Source
P. Aliferis, D. Gottesman, J. Preskill, Quantum accuracy threshold for concatenated distance-3 codes, Quantum Inf. Comput. 6 (2006) 97-165, arXiv:quant-ph/0504218, Sec. 3 and Sec. 5; D. Gottesman, arXiv:0904.2557, Sec. 5.

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