The conjectured recurrence in OEIS A016729 for additive self-dual codes over GF(4) is false
OEIS A016729 gives the largest minimum distance a(n) of an additive self-dual code of length n over GF(4) (family 4H+). The entry conjectures a(n) = a(n-1) + a(n-6) - a(n-7) for n > 7 (Chai Wah Wu, 2024). This forces a(6m) = 2m + 2, so a(102) = 36. By Theorem 33 of Rains and Sloane a code of length 102 and distance 36 must be even, its weight enumerator is then determined, and the number of words of weight 38 comes out as -340151816916450. So a(102) ≤ 35 and the recurrence is false. The bound and the weight-enumerator theory are prior work; only the observation that they refute the recurrence is new. Not claimed: that 102 is the first failure. No Lean proof; two independent exact computations are attached.
A table in the OEIS lists how good a certain family of error-correcting codes can be at each length, and someone guessed a simple pattern that the numbers follow forever. The pattern says the best code of length 102 has distance 36. Known theory shows such a code would have to contain a negative number of codewords of weight 38, which is impossible. So the pattern breaks by length 102.
- verify.py sha256 5959bd98523c…
- check_direct.py sha256 0e42d94b8295…
Lean marks come from matching the Lean names the paper gives for each result against the receipt. That a Lean statement says what the paper claims is checked by a reviewer, not a machine.
- needs workabelczupor-dot on v1 (this version), 2026-12-03
I checked the recurrence against OEIS A016729 and independently reproduced the GF(4) coefficient calculation from Rains–Sloane, Theorem 33 and section…
I checked the recurrence against OEIS A016729 and independently reproduced the GF(4) coefficient calculation from Rains–Sloane, Theorem 33 and section 7.7, equation (105). The forced A38 is -340151816916450, ruling out distance 36 at length 102; it does not determine the exact maximum or the first failure. The paper correctly says there is no Lean proof. Please unlink or correct the displayed Lean receipt a79f7d857075: its theorem MO286057.MainStatement concerns perfect matchings and does not verify this paper.
The conjectured recurrence in OEIS A016729 is false
Result. The recurrence predicts \(a(102)=36\), but \(a(102)\le 35\). A short consequence of known results of Rains and Sloane; verified by exact computation with two independent programs. Not machine-checked in Lean.
OEIS A016729: a(n) is the largest minimum distance of an additive
self-dual code of length n over GF(4) (family 4^H+). The known terms are
1, 2, 2, 2, 3, 4, 3, 4, 4, 4, 5, 6, 5, 6, 6, 6, 7, 8, 7, 8, 8, 8 (n = 1 .. 22)
and the entry carries a conjecture (Chai Wah Wu, 2024):
a(n) = a(n-1) + a(n-6) - a(n-7) for n > 7.
The conjecture is false. It predicts a(102) = 36, but a(102) ≤ 35.
This is a short consequence of known coding theory, not a new bound. What is new is only the
observation that it refutes the recurrence.
Proof
What the recurrence predicts. It says a(n) − a(n−6) = a(n−1) − a(n−7) for n > 7, so
a(n) − a(n−6) is the same for all n ≥ 7. Since a(7) − a(1) = 2, the recurrence gives
a(n) = a(n−6) + 2, hence a(6m) = 2m + 2 and a(102) = 36.
Step 1: a code with n = 102, d = 36 would be even. Rains and Sloane, Self-Dual Codes,
Theorem 33: an additive self-dual code of length n has d ≤ 2⌊n/6⌋ + 2 (or + 3 when
n ≡ 5 mod 6), and when n is a multiple of 6 any code meeting the bound is even, meaning every
codeword has even weight. At n = 102 the bound is 36.
Step 2: its weight enumerator is forced. The same survey (Section 7.7, with formula (105))
says the weight enumerator of an even additive self-dual code is a polynomial in
x² + 3y² and y²(x² − y²)². At length 102 that is
W = sum over j = 0..17 of c_j (x² + 3y²)^(51 − 3j) · (y²(x² − y²)²)^j .
The j-th term starts at y^(2j), so the 18 conditions A_0 = 1 and A_2 = A_4 = … = A_34 = 0
(one zero word, no word of weight below 36) determine c_0, …, c_17 one after another.
Step 3: a count comes out negative. With those coefficients,
A_36 = 724626446340195 A_38 = −340151816916450 .
A_38 is the number of codewords of weight 38, which cannot be negative. So no such code
exists, and a(102) ≤ 35. ∎
Check it
python verify.py # standard library only, instant
pip install sympy
python check_direct.py # independent second computation, a few seconds
verify.py (by Codex) finds the first multiple of six where the forced count is negative and
prints 17 102 36 38 -340151816916450. check_direct.py (by Claude) expands the polynomial
above directly and gets the same A_38.
Scope and prior work
- We do not claim 102 is the first n where the recurrence fails. The true values of a(n) are
unknown from n = 23 on, and the recurrence may already fail much earlier (for example it
needs a(24) = 10, and only 8 ≤ a(24) ≤ 10 is known). - We do not compute a(102), only show it is at most 35.
- The conjectured generating function in the entry is equivalent to the recurrence, so it is
false as well. - Prior work: Theorem 33 and the weight-enumerator ring are from Rains and Sloane
(arXiv:math/0208001). The same survey already notes
that extremal Hermitian linear self-dual codes over GF(4) do not exist at length 102
because of a negative coefficient (remarks on Table XIII). Even additive codes have the same
weight-enumerator ring, so the same calculation applies. We found no earlier note that this
contradicts the recurrence in A016729 (OEIS entry and history, web search, 2 Dec 2026).
Produced with AI assistants: Codex (OpenAI) found the argument; Claude (Anthropic) checked it
against the source and recomputed the certificate independently.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.33.1 · Mathlib 0df444a
- 1/1 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 37 s
- 90 declarations
A table in the OEIS lists how good a certain family of error-correcting codes can be at each length, and someone guessed a simple pattern that the numbers follow forever. The pattern says the best code of length 102 has distance 36.
MO286057main1 line
MainStatementMO286057.MainStatementPropMO286057/Statement.lean:46
/-- **Main theorem (statement).** -/def MainStatement : Prop :=∀ (k N : ℕ), 1 ≤ k → Even N → k ≤ N →∀ M : SimpleGraph (Fin N), IsPerfectMatchingGraph M →∃ μ : Perm (Fin N) → ℚ,IsProbabilityWeight μ ∧ TupleUniform k μ ∧∀ π, μ π ≠ 0 → ComponentsBounded M π (4 * (k / 2) + 2)
Not checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| verify.py | 1 kB | sha256 5959bd98523c4a23… .ots |
| check_direct.py | 925 B | sha256 0e42d94b829576f3… .ots |