Documentation

CslibFrontier.Computability.Complexity.AffineDisperser.PolyTime

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:

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 #

Main results #

References #

Lists of unary naturals #

The parameters #

One step of the greedy choice of primes: the remaining budget and the primes chosen.

theorem Cslib.AffineDisperser.codeBound_le (N : ℕ) :
codeBound N ≤ 2 * (N + 1) * (N + 1)

The search range is polynomial: 2 ^ (4 L + 1) ≤ 2 (N + 1) ^ 2, as 4 L ≤ 2 ⌊log₂ N⌋.

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.

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 #

The elementary symmetric polynomial in coordinates, as a composition rule.

The traces of the basis elements, as a composition rule.

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.