mariyaholic

Preprint · 24 November 2026

Formal Verification of the All-Radius Binary Quantum Hamming Bound from Weight Enumerators under Rains’ Length Bound in Lean 4

mariyaholic

MSC 2020: 94B65, 81P70 (primary); 68V20 (secondary)

Clicks on the Zenodo link are counted without cookies. Browsers that send Global Privacy Control or Do Not Track are not counted.

Abstract

We formalize the weight-enumerator proof of the binary quantum Hamming bound in Lean 4.35.0. We express the Li–Xing linear-programming polynomial as a scaled intersection count for two quaternary Hamming balls. We verify the overlap inequality at length 6t − 1 by classifying coordinate types, bounding their contributions with positive polynomial certificates, and inducting on center separation. A second induction extends the inequality to all lengths n ≥ 6t − 1.

The resulting dimension bound assumes normalized weight-enumerator conditions, K > 1, 2t < d and the length consequence of Rains’ shadow bound (RainsLengthBound). For t ≤ 4 the result is unconditional: separate short-length certificates prove the dimension bound from the ordinary enumerator conditions. For t ≥ 5 it is conditional on RainsLengthBound. An explicit feasible pair of ordinary enumerators at (n, K, d) = (10, 2, 5) violates the Rains length threshold and has an unscaled shadow coefficient of −2880.

Verification

Author contributions and AI disclosure

mariyaholic designed and directed the Lean 4.35.0 formalization, the Python verification scripts and the manuscript with assistance from AI coding and auditing models (Gemini 4 Neon, GPT-6.2 Astra, and GPT-6.1 Terra). Every definition and theorem in QhbQubitCertify is checked from scratch in Lean 4.35.0 without external packages or trust overrides. Readers can reproduce the independent checks with the bundled Python scripts.

Cite

Text

mariyaholic (2026). Formal Verification of the All-Radius Binary Quantum Hamming Bound from Weight Enumerators under Rains’ Length Bound in Lean 4 [Preprint]. Zenodo. https://doi.org/10.5281/zenodo.24548553

BibTeX

@misc{mariyaholic2026qhb,
  author    = {mariyaholic},
  title     = {Formal Verification of the All-Radius Binary Quantum Hamming Bound from Weight Enumerators under Rains’ Length Bound in {Lean} 4},
  year      = {2026},
  month     = nov,
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24548553},
  url       = {https://doi.org/10.5281/zenodo.24548553},
  note      = {Preprint}
}

Details

Type
Preprint
Published
24 November 2026
Keywords
quantum error correction, quantum Hamming bound, Krawtchouk polynomials, weight enumerators, Lean 4
DOI
10.5281/zenodo.24548553