Justesen codewords for finite labels #
Pack the binary digits of each label into the coefficients of a Reed–Solomon polynomial over
the explicit binary field. Apply the Justesen encoder to its evaluations at the nonzero
field elements. For the coding step of [Hoza2026NLUL, §2.1], we take the least field degree in the
Justesen family whose message capacity is at least 512 times the bit count
1 + log₂ (w * (n + 1)). Consecutive capacities have bounded ratio, so the block length
is proportional to that bit count. The relative distance bound gives at least four times
that bit count in differing coordinates for each pair of distinct labels.
The executable coordinate evaluators use Horner's rule over lists of field coefficient bits.
indexedCodewordMod computes the same indexed bits using modular shifts, without building a
multiplication table.
A native logspace implementation is tracked in cslib-frontier #6747.
Main definitions #
Cslib.Code.JustesenFamily.codeword: the binary word for a label inFin w.Cslib.Code.JustesenFamily.codewordBit: executable evaluation of a coordinate given the binary representation of its field point.Cslib.Code.JustesenFamily.indexedCodewordMod: indexed evaluation by modular shifts.
Main results #
Cslib.Code.JustesenFamily.length_bounds: logarithmic block length at the chosen scale.Cslib.Code.JustesenFamily.length_le_mul_hammingDist: relative distance at least1 / 128.Cslib.Code.JustesenFamily.log_le_hammingDist: the logarithmic separation used in the tie-event union bound.Cslib.Code.JustesenFamily.codewordBit_eq: executable coordinate evaluation agrees with the algebraic codeword.Cslib.Code.JustesenFamily.indexedCodewordMod_eq: agreement with the table-based evaluator.
The number of field coefficients in a message at scale s.
There are twice as many field elements as coefficients in the message at this scale.
Degree of the binary field at the least scale with sufficient message capacity.
The selected field has positive degree.
The chosen degree is the first 16 * (s + 1) whose message capacity meets the
required threshold. The threshold also bounds the number of unsuccessful scales.
Number of coefficient blocks in the outer Reed–Solomon message at the selected scale.
The coefficient count is the power of two retained by the capacity loop.
Code coordinates are a nonzero evaluation point, a Wozencraft half, and a bit within it.
The Justesen encoding of the binary digits of a label, in least-significant-first order.
Different finite labels give different Justesen words.
The block length is bounded above and below by constant multiples of the target bit count.
Distinct labels differ on at least one hundred twenty-eighth of the coordinates.
Evaluate one coordinate using the power-basis bits of its field point. Half zero returns the Reed–Solomon evaluation, and half one returns the evaluation multiplied by the point.
Executable coordinate evaluation agrees with the algebraic Justesen word.
Length of the coordinate list in evaluation-point, half, and bit order.
Unrank an executable codeword index in point, half, then bit order.
Decode a binary index at the supplied degree. The index runs through all bits in a half, then both halves at a point, before advancing to the next nonzero point.
On valid indices the numeric decoder reads the same coordinate as the equivalence used by the indexed evaluator. The point field uses the positive numbering of the field words.
On a valid index the little-endian word of the decoded point is the exact power-basis word passed to the indexed evaluator.
The codeword in executable coordinate order. Points are numbered as positive binary integers in power-basis coordinates.
Evaluate one indexed coordinate with modular shifts and XORs, holding only the modulus and individual field words. The multiplication kernel uses no precomputed table.
The table-free indexed bit selects a Wozencraft bit of the Horner evaluation of the binary label's fixed-width coefficient blocks.
Table-free evaluation returns the same bit in the existing indexed coordinate order.
The executable coordinate order preserves the distance needed for Hoza's union bound.