Documentation

CslibFrontier.Computability.Complexity.HardnessEncoding.PolyTime

The worst-case-to-average-case encoding is computable in exponential time #

The program Cslib.HardnessEncoding.encodedProgram is certified in the polynomial-time calculus of multi-tape machines, on padded inputs: with the length parameter min |y| ⌊log₂ p⌋ for a unary padding p, every loop of the program runs over at most p ^ O(1) elements, and the decider of L, computable in time 2 ^ O(n), is called on words of length at most ⌊log₂ p⌋ (Cslib.HardnessEncoding.computableInPolyTime_paddedProgram). With the padding p = 2 ^ |y| the program runs in time 2 ^ O(|y|), so the encoded language of a language in E is in E (Cslib.HardnessEncoding.encodedLanguage_mem_E, by Cslib.Complexity.setOf_mem_E_of_computableInPolyTime_pad).

Main definitions #

Main results #

References #

Field arithmetic #

The padded program #

The length parameter read from a unary padding p: min |y| ⌊log₂ p⌋.

The padded program: the encoding program with the length parameter read from the padding.

The padded program is polynomial-time, for any function gL on bit words computable in time 2 ^ O(n): every loop runs over at most p ^ O(1) elements for the padding p, the modulus is found among 2 ^ (w + 1) ≤ 2 p + 2 codes, and gL is called on words of length at most ⌊log₂ p⌋.

The encoding of a language in E is in E: the encoded language of L, whose slice at length N encodes the slice of L at length M ⌊N / (4 (M + 1))⌋ over the explicit binary field, is decided in time 2 ^ O(N) by running the padded program with the padding 2 ^ N.