Exponential time by padding #
A decision procedure that runs in polynomial time on padded inputs (a, 2 ^ ν a), with the
padding in unary, gives a decision procedure for the original instances within time
2 ^ (δ μ a) times a polynomial, for an exponent ν ≤ μ computable in unary in polynomial time
(Cslib.Complexity.DecidableInExpTime.of_computableInPolyTime_pad). The machine writes the padding
and runs the polynomial-time procedure
(Turing.MultiTapeTM.ComputableInPolyTime.exists_computableInO_pad). The constant δ comes from
the degree of the polynomial bound, and is not explicit.
This is how a dynamic program over 2 ^ k states, polynomial-time in the number of its states, is
stated as an exponential-time or fpt algorithm in the parameter k on multi-tape machines.
A padding length can also majorize a sublinear power exponential times a polynomial while
remaining computable in a sublinear power exponential time bound. This lets a randomized
algorithm allocate a common seed length given a bound on the seed lengths of all its calls.
Main results #
Cslib.Complexity.DecidableInExpTime.of_computableInPolyTime_pad: polynomial time on inputs padded by2 ^ ν agivesDecidableInExpTimein anyμ ≥ ν.Cslib.Complexity.exists_computableInPowerExpTime_unary_majorant: compute a unary length that dominates a power-exponential bound at a slightly larger power below one.
Exponential time by padding. If Ψ is polynomial-time on pairs (a, N) with N in unary,
and A is decided by Ψ on the padded inputs (a, 2 ^ ν a), for a unary exponent ν ≤ μ
computable in polynomial time, then A is decidable within time 2 ^ (δ μ a) times a polynomial,
for some δ.
Given a polynomial-time unary parameter, a sublinear power-exponential bound times an input-length polynomial has a unary majorant computable in time of the same form at some power strictly between the original power and one. The majorant uses integer powers of fixed bases and the ceiling logarithm of the parameter.