The explicit affine disperser in polynomial time #
The program Cslib.AffineDisperser.explicitDisperserProgram computes the explicit affine
disperser (Cslib.AffineDisperser.explicitDisperserProgram_eq); this file certifies it in the
polynomial-time calculus of multi-tape machines, with input bits in encBits and natural
numbers in unary. All runtime sizes are polynomial in the input length N:
- the parameters (
⌊log₂ N⌋, the primes in(L, 4 L]by trial division, the greedy choice and the field degreen ≤ N + 1) are unary arithmetic on numbers at mostN + 1; - each irreducible polynomial is found by exhaustive search over the codes below
2 ^ (4 L + 1) ≤ 2 (N + 1) ^ 2(Cslib.AffineDisperser.codeBound_le), each tested by trial division with remainders computed by repeated multiplication byX; - the multiplication table has
n ^ 3entries, each a product over the prime factors ofn; - a field multiplication sums at most
n ^ 2table entries, uniformly in the table (Cslib.BinaryField.computableInPolyTime_fieldMul); therpowers take at most2 rmultiplications each, the elementary symmetric polynomialr tmore, and the trace reads the diagonals of the table.
Every loop is certified with a bound on its intermediate states, so the certificate charges the
whole computation, including every field operation
(Cslib.AffineDisperser.computableInPolyTime_explicitDisperser). The exponent of the
polynomial is not computed.
Main definitions #
Cslib.AffineDisperser.selectStep: one step of the greedy choice of primes, as a fold.
Main results #
Cslib.AffineDisperser.computableInPolyTime_explicitTable: the multiplication table.Cslib.AffineDisperser.computableInPolyTime_traceSymCoords:traceSym 1 r tin coordinates, uniformly in the multiplication table.Cslib.AffineDisperser.computableInPolyTime_explicitDisperser: the explicit disperser is computable in polynomial time.Cslib.AffineDisperser.setOf_explicitDisperser_mem_P: it decides a problem inP.
References #
Lists of unary naturals #
The parameters #
The primes in (a, b], from unary bounds.
The greedy choice of primes below a unary budget.
The prime bound L = ⌊⌊log₂ N⌋ / 3⌋ of unary N.
The primes of the field degree on N bits, N in unary.
The field degree on N bits, N in unary: a product of at most N + 1.
The number of blocks on N bits, N in unary.
The degree of the elementary symmetric polynomial on N bits, N in unary.
The search range 2 ^ (4 L + 1) on N bits, in unary, from N in unary.
The multiplication table #
The tables of remainders of powers of X on N bits, N in unary: the search for each
irreducible polynomial ranges over the 2 ^ (4 L + 1) ≤ 2 (N + 1) ^ 2 codes below codeBound N.
Mixed-radix digits in the radix of the field degree, as a composition rule.
Coordinates of the products of monomials of the explicit field, as a composition rule.
The multiplication table of the explicit field on N bits, N in unary: its n ^ 3
entries, n ≤ N + 1, are products over the prime factors of n.
Field arithmetic in coordinates #
Powers in coordinates, as a composition rule.
The elementary symmetric polynomial in coordinates, as a composition rule.
The traces of the basis elements, as a composition rule.
The trace as a bit, as a composition rule.
traceSym 1 r t in coordinates, uniformly in the multiplication table, r and t in
unary, and the input bits.
The explicit disperser #
The explicit affine disperser is computable in polynomial time: on a bit list x of length
N, the value explicitDisperser N x is computed by a multi-tape machine in time polynomial in
N. The certificate charges the whole computation: the parameters, the exhaustive searches for
the irreducible polynomials by trial division, the remainders of the powers of X, the
multiplication table, and every field operation of traceSym 1 r t.
The explicit affine disperser is in P: the bit lists x with
explicitDisperser x.length (BitString.ofList x.length x) = true form a problem in P.