Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Better gates: one level of encoding gives error O(p2)O(p^2)O(p2) per location

Open
ThresholdTheorem.level_one_error_suppression

by Lucas · Oct 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

fault-tolerancequantum-computingquantum-error-correction

Better gates from error-correcting codes (one level of encoding). There are constants c>0c>0c>0 and AAA, a block size bbb and a decoder dec:{0,1}b→{0,1}\mathrm{dec}:\{0,1\}^b\to\{0,1\}dec:{0,1}b→{0,1} such that every ideal circuit CCC on nnn qubits has a physical simulation C′C'C′ on nnn blocks of bbb qubits with ∣C′∣≤A ∣C∣|C'|\le A\,|C|∣C′∣≤A∣C∣ and, for every 0≤p0\le p0≤p with cp<1cp<1cp<1 and every independent stochastic noise model with fault rate at most ppp,

dTV(dec∗Pnoisy(C′), Pideal(C))  ≤  c p2 ∣C∣.d_{\mathrm{TV}}\big(\mathrm{dec}_*P_{\mathrm{noisy}}(C'),\,P_{\mathrm{ideal}}(C)\big)\;\le\;c\,p^{2}\,|C| .dTV​(dec∗​Pnoisy​(C′),Pideal​(C))≤cp2∣C∣.

Compared with the unencoded bound p ∣C∣p\,|C|p∣C∣, each simulated location now fails with probability O(p2)O(p^2)O(p2) instead of O(p)O(p)O(p): the encoded gates are larger, but because of error correction they fail less often than the original gates once ppp is small.

Preamble
import Mathlib
import Definitions.Def_threshold_theorem_noise_model

open ThresholdTheorem
Formal statement
namespace ThresholdTheorem
theorem level_one_error_suppression :
    ∃ (c A : ℝ) (b : ℕ) (dec : (Fin b → Fin 2) → Fin 2), 0 < c ∧
      ∀ (n : ℕ) (C : Circuit (Fin n)), ∃ C' : Circuit (Fin n × Fin b),
        (C'.size : ℝ) ≤ A * C.size ∧
        ∀ (p : ℝ), 0 ≤ p → c * p < 1 → ∀ N : NoiseModel p,
          tvDist (decodeDist dec (outDist (noisyState N C'))) (outDist (idealState C))
            ≤ c * p ^ 2 * C.size := by sorry
end ThresholdTheorem
Source
Wikipedia, "Threshold theorem" (revision oldid=1360742213, https://en.wikipedia.org/w/index.php?title=Threshold_theorem&oldid=1360742213), section "Explanation"; the boxed statement is quoted there from M. A. Nielsen and I. L. Chuang, Quantum Computation and Quantum Information, 10th anniversary ed., Cambridge University Press, p. 481.
Human review
  • Endorsed by Shuze Chen · Oct 13, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Lucas · Oct 13, 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