Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Table 9 — new [[360,24,12]][[360,24,12]][[360,24,12]] code

Open
BBCode.new360_params

by Winningatmath · Oct 16, 2026 · Mathlib 0df444a (Lean v4.33.1)

coding-theoryquantum-error-correction

New bivariate-bicycle code with 24 logical qubits.

Let G=Z6×Z30G=\mathbb Z_{6}\times\mathbb Z_{30}G=Z6​×Z30​ and let

A=1+y+xy2,B=1+y8+x2y16A=1+y+xy^{2},\qquad B=1+y^{8}+x^{2}y^{16}A=1+y+xy2,B=1+y8+x2y16

in F2[x,y]/(x6−1, y30−1)\mathbb F_2[x,y]/(x^{6}-1,\,y^{30}-1)F2​[x,y]/(x6−1,y30−1). The bivariate-bicycle code with check matrices HX=[A∣B]H_X=[A\mid B]HX​=[A∣B] and HZ=[BT∣AT]H_Z=[B^{\mathsf T}\mid A^{\mathsf T}]HZ​=[BT∣AT] is an

[[360,24,12]][[360,24,12]][[360,24,12]]

code in both sectors:

  1. it acts on n=360=2⋅6⋅30n=360=2\cdot6\cdot30n=360=2⋅6⋅30 qubits;
  2. it encodes k=24k=24k=24 logical qubits: rank⁡F2HX+rank⁡F2HZ+24=360\operatorname{rank}_{\mathbb F_2}H_X+\operatorname{rank}_{\mathbb F_2}H_Z+24=360rankF2​​HX​+rankF2​​HZ​+24=360;
  3. its X-distance is exactly 121212: some vvv with HZv=0H_Zv=0HZ​v=0 and v∉row⁡(HX)v\notin\operatorname{row}(H_X)v∈/row(HX​) has weight 121212, and every such vvv has weight at least 121212;
  4. its Z-distance is exactly 121212 (dually, with HXH_XHX​ and HZH_ZHZ​ exchanged).

Formalization Note Polynomials are Finsets of monomials (i,j)(i,j)(i,j) in ZMod l × ZMod m; IsCode A B n k d is defined in BBCode_Setting.

Preamble
import Mathlib
import Definitions.Def_BBCode_Setting
Formal statement
namespace BBCode

theorem new360_params :
    IsCode (l := 6) (m := 30) {(0, 0), (0, 1), (1, 2)} {(0, 0), (0, 8), (2, 16)} 360 24 12 := by
  sorry

end BBCode
Source
B. W. Daugherty, S. Ryan, G. Ward, New distance-12 bivariate-bicycle codes with 20 and 24 logical qubits: an exhaustive classification and checkable distances to 360 qubits, Zenodo v1.0.0 (2026), https://doi.org/10.5281/zenodo.23382175, Table 3 (p. 5); polynomials from Table 9 (p. 15)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

This statement concerns one specific bivariate-bicycle code with l=6l=6l=6, m=30m=30m=30, so G=Z6×Z30G=\mathbb Z_{6}\times\mathbb Z_{30}G=Z6​×Z30​ has 180180180 elements and there are 2lm=3602lm=3602lm=360 qubits. The two polynomials are

A={(0,0),(0,1),(1,2)}    (i.e. A=1+y+xy2),B={(0,0),(0,8),(2,16)}    (i.e. B=1+y8+x2y16),A=\{(0,0),(0,1),(1,2)\}\;\;(\text{i.e. }A=1+y+xy^2),\qquad B=\{(0,0),(0,8),(2,16)\}\;\;(\text{i.e. }B=1+y^8+x^2y^{16}),A={(0,0),(0,1),(1,2)}(i.e. A=1+y+xy2),B={(0,0),(0,8),(2,16)}(i.e. B=1+y8+x2y16),

each a set of three distinct monomials (no exponent pair collides after reduction mod lll and mod mmm).

Unfolded definitions used below. For l,m≥1l,m\ge 1l,m≥1 write G=Zl×ZmG=\mathbb Z_l\times\mathbb Z_mG=Zl​×Zm​; an element (i,j)∈G(i,j)\in G(i,j)∈G stands for the monomial xiyjx^iy^jxiyj, and a "polynomial" is a finite subset P⊆GP\subseteq GP⊆G (its support, coefficients in F2\mathbb F_2F2​). The circulant MPM_PMP​ is the G×GG\times GG×G matrix over F2\mathbb F_2F2​ with (MP)g,h=1(M_P)_{g,h}=1(MP​)g,h​=1 iff h−g∈Ph-g\in Ph−g∈P and 000 otherwise. The qubit set is Q=G⊔GQ=G\sqcup GQ=G⊔G (a left block LLL and a right block RRR, ∣Q∣=2lm|Q|=2lm∣Q∣=2lm). The check matrices (rows indexed by GGG, columns by QQQ) are

HX=[ MA  ∣  MB ],HZ=[ MB⊤  ∣  MA⊤ ],H_X=\big[\,M_A\;\big|\;M_B\,\big],\qquad H_Z=\big[\,M_B^{\top}\;\big|\;M_A^{\top}\,\big],HX​=[MA​​MB​],HZ​=[MB⊤​​MA⊤​],

with the first block on LLL and the second on RRR. A vector v∈F2Qv\in\mathbb F_2^{Q}v∈F2Q​ is a nontrivial Z-logical if HXv=0H_Xv=0HX​v=0 and v∉row⁡(HZ)v\notin\operatorname{row}(H_Z)v∈/row(HZ​) (the F2\mathbb F_2F2​-span of the rows of HZH_ZHZ​); it is a nontrivial X-logical if HZv=0H_Zv=0HZ​v=0 and v∉row⁡(HX)v\notin\operatorname{row}(H_X)v∈/row(HX​). The weight ∣v∣|v|∣v∣ is the number of nonzero coordinates of vvv.

Assertion. The code of (A,B)(A,B)(A,B) satisfies all four of the following simultaneously:

  1. n=360=2⋅6⋅30n=360=2\cdot 6\cdot 30n=360=2⋅6⋅30 (a purely arithmetic identity).
  2. rank⁡F2HX+rank⁡F2HZ+24=360\operatorname{rank}_{\mathbb F_2}H_X+\operatorname{rank}_{\mathbb F_2}H_Z+24=360rankF2​​HX​+rankF2​​HZ​+24=360, i.e. the number of logical qubits is k=24k=24k=24 (stated additively, so no truncated subtraction is involved).
  3. X-distance exactly 121212: there exists a nontrivial X-logical vvv with ∣v∣=12|v|=12∣v∣=12, and every nontrivial X-logical has ∣v∣≥12|v|\ge 12∣v∣≥12.
  4. Z-distance exactly 121212: there exists a nontrivial Z-logical vvv with ∣v∣=12|v|=12∣v∣=12, and every nontrivial Z-logical has ∣v∣≥12|v|\ge 12∣v∣≥12.

So it claims an exact value d=12d=12d=12 for both sectors (a lower bound and attainment), not merely an upper or lower bound. Nothing is asserted about the connectivity of the Tanner graph or about any other code; the predicate does not include a connectivity condition.

Human review
  • Endorsed by Shuze Chen · Oct 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Winningatmath · Oct 18, 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