The worst-case-to-average-case encoding as a program on bit lists #
The encoded slices Cslib.HardnessEncoding.encodedSlice L M of a language L are computed by a
program on bit lists (Cslib.HardnessEncoding.encodedProgram) that makes 2 ^ (M b) queries to a
decider of L and otherwise only does arithmetic in the explicit binary field Cslib.BinaryField
of degree w = 4 b, in coordinates:
- the modulus is found by trial division (
Cslib.leastIrreducibleCode), and the multiplication table of the power basis lists the remainders ofX ^ (u + v)(Cslib.BinaryField.fieldTable,Cslib.BinaryField.isMulTable_fieldTable); - sums are
Cslib.BitString.listXor, productsCslib.BinaryField.fieldMul, and inverses the powersy ^ (2 ^ w - 2)(Cslib.HardnessEncoding.fieldInv); - the Lagrange basis polynomial of a node
aamong the embedded bit strings of lengthb, at a pointt, is the product oft - a'over the other nodesa', divided by the product ofa - a'(Cslib.HardnessEncoding.lagrangeVal); - the low-degree extension of the truth table at a point is the sum, over the inputs
zaccepted by the decider, of the products over the blocks ofzof the Lagrange basis polynomials (Cslib.HardnessEncoding.ldeVal), and the output is the parity of the bits of that value selected by the lastwinput bits (Cslib.AffineDisperser.traceBit, the parity of the coordinates selected by a bit list).
On every input y, with the length parameter |y|, the program computes the encoded slice of L
at length |y| (Cslib.HardnessEncoding.encodedProgram_eq).
Main definitions #
Cslib.HardnessEncoding.lagrangeVal: a Lagrange basis polynomial at a point, in coordinates.Cslib.HardnessEncoding.ldeVal: the low-degree extension of a truth table at a point.Cslib.HardnessEncoding.encodedProgram: the program.
Main results #
Cslib.HardnessEncoding.fieldOfBits_ldeVal: the program computes the low-degree extension.Cslib.HardnessEncoding.encodedProgram_eq: the program computes the encoded slices.
References #
- [M. Sudan, L. Trevisan, S. Vadhan, Pseudorandom generators without the XOR lemma] [STV01]
- R. Lidl, H. Niederreiter, Finite Fields, Chapters 1 and 3
The program #
The encoding program with block length b: on the input y, the parity of the bits,
selected by the last w = 4 b bits of y, of the low-degree extension over the binary field of
degree w of the truth table of gL on M b bits, at the point whose coordinates are the first
M blocks of w bits of y.
The explicit binary field in coordinates #
Correctness #
A Lagrange basis polynomial at a point: lagrangeVal computes the value at t of the
Lagrange basis polynomial of the node a among the embedded bit strings of length b.
The program computes the low-degree extension: ldeVal on the accepted inputs of a
decider gL of L is the extension of the truth table of L on M b bits at the point with
coordinates xs.
The program computes the encoded slices: on every input y, with a decider gL of L
and the length parameter |y|, the program returns the encoded slice of L at length |y|.