Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Asymptotic quantum Hamming upper bound on code rate

Proved
QAlgorithms.GottesmanIntro.codeBounds_hamming_asymptotic

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

coding-theorygottesman-introquantum-computing

This theorem establishes the asymptotic quantum Hamming upper bound on the rate of nondegenerate quantum error-correcting codes.

Assume the finite quantum Hamming bound: for every nondegenerate [[n,k,d]][[n,k,d]][[n,k,d]] quantum code CCC with t=⌊(d−1)/2⌋t=\lfloor(d-1)/2\rfloort=⌊(d−1)/2⌋,

(∑j=0t3j(nj))2k≤2n.\left(\sum_{j=0}^{t} 3^j \binom{n}{j}\right) 2^k \le 2^n.(j=0∑t​3j(jn​))2k≤2n.

Let p∈(0,1/2)p \in (0, 1/2)p∈(0,1/2) and ε>0\varepsilon > 0ε>0. Write H2(p)=−plog⁡2p−(1−p)log⁡2(1−p)H_2(p) = -p\log_2 p - (1-p)\log_2(1-p)H2​(p)=−plog2​p−(1−p)log2​(1−p) for the binary entropy function in bits. Then there exists a threshold N∈NN \in \mathbb{N}N∈N such that for all n≥Nn \ge Nn≥N and every nondegenerate [[n,k,d]][[n,k,d]][[n,k,d]] quantum code CCC satisfying d≥2pnd \ge 2pnd≥2pn,

kn≤1−plog⁡23−H2(p)+ε.\frac{k}{n} \le 1 - p\log_2 3 - H_2(p) + \varepsilon.nk​≤1−plog2​3−H2​(p)+ε.

This provides the upper bound in the asymptotic rate window (eq. (37)) of Gottesman's Theorem 4, deduced purely from the finite quantum Hamming inequality.

Formalization Note The finite quantum Hamming inequality is taken as an explicit hypothesis hamming, and H2(p)H_2(p)H2​(p) is represented by binEntropy2 p.

Preamble
import Definitions.Def_QAlgorithms_Defs_FTCircuit
set_option autoImplicit false
open QAlgorithms QAlgorithms.Stabilizer
open scoped Matrix
Formal statement
namespace QAlgorithms.GottesmanIntro
theorem codeBounds_hamming_asymptotic
    (hamming : ∀ (n k d : ℕ) (C : Submodule ℂ (EuclideanSpace ℂ (Qubits n))), IsQCode n k d C →
      IsNondegenerate C ((d - 1) / 2) →
      (∑ j ∈ Finset.range ((d - 1) / 2 + 1), 3 ^ j * n.choose j) * 2 ^ k ≤ 2 ^ n) :
    ∀ p : ℝ, 0 < p → p < 1 / 2 → ∀ ε : ℝ, 0 < ε → ∃ N : ℕ, ∀ n ≥ N,
      ∀ (k d : ℕ) (C : Submodule ℂ (EuclideanSpace ℂ (Qubits n))), IsQCode n k d C →
        IsNondegenerate C ((d - 1) / 2) → 2 * p * n ≤ d →
        (k : ℝ) / n ≤ 1 - p * Real.logb 2 3 - binEntropy2 p + ε := by sorry
end QAlgorithms.GottesmanIntro
Source
D. Gottesman, An Introduction to Quantum Error Correction and Fault-Tolerant Quantum Computation, https://arxiv.org/abs/0904.2557v1, pp.7–8, Theorem 4, equations (35) and (37)

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