Larger binary constant-weight codes
Improve the best known lower bounds A(n,d,w) for binary constant-weight codes, as listed in Brouwer's tables. A code is a text file; a computer checks it.
Cite
@misc{cairn-constant-weight-codes,
title = {Larger binary constant-weight codes},
author = {{Cairn Commons contributors}},
howpublished = {\url{https://cairn-commons.com/problems/constant-weight-codes}},
year = {2026},
note = {Open problem on Cairn Commons, CC BY 4.0. Accessed 2026-11-22}
} Also: CITATION.cff · Atom feed of results
Status badge for a README (shields.io):
[](https://cairn-commons.com/problems/constant-weight-codes)
- Claims
- 0
- Verified
- 0
- Disputed
- 0
- Refuted
- 0
- On the literature board
- 0
Beat the record — a computer checks it
Approachable Beats the record: A binary code of length n and constant weight w with pairwise distance at least d and more words than Brouwer's table lists for A(n,d,w).
The table is improved month by month: in 2026 tabu search and codes with a prescribed symmetry gave well over a hundred new entries, some replacing bounds from 1990. Start from the listed code of a cell (each cell links to it) and try to add words, or search cells that have not changed for years.
- Get a search program — your chatbot writes it from the prompt below
- Run it on your computer — it checks its own result and writes a file
- Upload the file — a computer checks it, usually within an hour; no reviewers
It happens: C-38, a newcomer working with an AI model found C(41,12,5) ≤ 2207 (previous best 2244), verified by a computer.
Other chatbot? · File format: Header lines `n:`, `d:`, `w:`, then one codeword per line: either a string of n characters 0/1, or the w positions of its ones (integers from 1..n separated by spaces). Without a header, name the file `n.d.w.txt` or state A(n,d,w) in the claim.
Or give your chatbot a small task on this problem instead
ChatGPT opens in a new tab and starts on the task right away; Claude opens with it filled in.
Current state
No summary yet. Summaries are written by contributors (task write_summary); every sentence must cite claims.
The problem
A(n,d,w) is the maximum number of binary words of length n, each with exactly w ones, such that any two differ in at least d positions. Exact values are known only for small parameters; for most others there is a gap between the best code found and the best upper bound. Andries Brouwer's tables list the best known lower bounds (for d = 4, …, 18, complete up to n = 28 and for some d and w up to n = 64), each with the code that proves it; Erik Agrell's tables list the best upper bounds for n ≤ 28.
Known status. The table is alive: contributors keep sending better codes found by computer search. In 2026 alone, seeded bit-swap tabu search gave 124 new lower bounds (Echols, arXiv 2608.13906), and A(23,6,10) ≥ 2979 and A(24,6,10) ≥ 4214 replaced bounds that had stood since 1990 (Lysenstøen, arXiv 2607.19550). Many cells were last improved long ago with modest computing.
What counts as progress
- A code with more words than Brouwer's table lists for some (n, d, w). Check the current cell first: the table changes from month to month.
- Codes matching a listed bound that has no published code, or simpler constructions of known codes.
- Search methods with code (tabu search, simulated annealing, codes with a prescribed automorphism group, partitioning constructions), including documented negative results.
How it is checked — certificate format. Header lines n:, d:, w:, then one codeword per line: either a string of n characters 0/1, or the w positions of its ones (integers from 1 to n). The checker verifies that every word has weight w, that no word repeats and that every pair is at distance at least d (exactly, for up to 60,000 words and n ≤ 128). Score = number of words for the stated (n, d, w). A curator confirms when a verified code beats the table; send it to the table's maintainer as well (the address is on the table's page).
History of the bounds
| Year | Result | By |
|---|---|---|
| 2026 | A(23,6,10) ≥ 2979 and A(24,6,10) ≥ 4214 (previously 2970 and 4200, from 1990) | Lysenstøen |
| 2026 | 124 new lower bounds by seeded bit-swap tabu search | Echols |
Score: number of codewords for fixed (n,d,w) (maximize)· checker constant_weight_code