rssearch — polynomial Reed-Solomon discovery
Crawls every byte length L = 8..16384 (n = 8L bits) and searches for binary codes that beat Reed-Solomon for bit errors (correct t random bit errors).
The key mathematical correction
Exact-length cyclic codes at even lengths are a dead end: any squarefree generator dividing x^o+1 (o = odd part of n) gives the weight-2 codeword x^o+1 at length n > o, so d = 2. (Example: the Hamming generator x^3+x+1 gives the codeword 1+x^7 at length 14.) The search therefore uses shortened BCH as its primary family: a parent cyclic BCH code of odd length N = 2^m-1, shortened to exactly n bits. Shortening preserves distance, and the BCH bound is applied only at the parent length, where it is valid. A small exact repeated-root tier (n <= 64, t <= 2) is evaluated by exact minimum distance, not by a bound.
Families
- Tier S (primary, exhaustive): shortened BCH. All parents m0..mmax (m0 = smallest m with 2^m-1 >= n), all starting offsets b, via an O(N) sliding window per (parent, t). Distance >= 2t+1 by the BCH bound on the parent.
- Tier R (exact, n <= 64, t <= 2): all generators g | x^n+1, evaluated by exact minimum distance (pattern/remainder method).
- Tier 3 (polish): greedy coset removal on shortened bests, gated to non-finds with small defining sets.
RS baseline
For length L and t bit errors, RS over GF(2^m) (m = smallest with 2^m-1 >= L, m >= 8) must correct up to t byte errors, needing 2t symbols = 2tm parity bits. A find is a binary code with fewer parity bits (or equal parity with larger distance).
Usage
make # build
./rssearch --toy # toy suite (must ALL PASS)
./rssearch --crawl --dir /opt/rssearch --resume # full crawl
./rssearch --status --dir /opt/rssearch
./rssearch --gen-header --dir /opt/rssearch
Outputs (in --dir)
search.log— tail-able log with STATUS lines incl. ETAstatus.json— machine-readable progressfinds.txt— one line per (L,t) find (append-only)polys.txt— distinct generator polynomials, each with a 2-byte idfinds.h— generated C header (poly table + finds table)state/done.bin— checkpoint bitset (resume with --resume)
Scope / honesty
Full exhaustion over all polynomials of degree <= n/8 is impossible (2^(n/8) of them). The exhaustive tier is the shortened-BCH family (all parents, all offsets). Above the BCH-designed family, non-BCH codes with large parity are probed only by the tier-3 polish. The log states this scope at startup.