Finite Boolean codes #
This module turns the finite Hamming geometry into an abstract coding layer.
An injective code has exactly 2^messageLength codewords, minimum distance
implies the exact sphere-packing bound, and exhaustive decoding is uniquely
correct below half that distance. No runtime claim is bundled into these
semantic results. The repetition submodule supplies the first concrete linear
code with exact distance amplification.
Codewords are exactly encoded messages.
An injective Boolean code has exactly 2^messageLength codewords.
A message-level minimum-distance contract separates the finite codeword set by the same amount.
Coding-theoretic Hamming packing bound with exact finite parameters.
Candidate-list membership is exactly proximity of the encoded message.
Every sufficiently close message occurs in exhaustive decoding.
Below half the minimum distance, any two decoding candidates coincide.
Exhaustive decoding contains at most one message below half the minimum distance.
A nearby message is the entire exhaustive candidate set below half the minimum distance.
The exhaustive decoder recovers every message from fewer than half the minimum-distance errors.