Scalar bounds for fine-grained runtime transfers #
These arithmetic estimates absorb additive linear changes of a natural parameter into a fixed
exponential factor, compare and absorb terms into exponential-times-polynomial envelopes
2 ^ x * (L + 1) ^ e, and bound the time of a polynomial-time reduction followed by a
computation. They are shared by decision, function-computation and randomized runtime transfers
without mentioning a machine or error model.
Main results #
Cslib.Complexity.two_rpow_le_two_rpow_mul_of_le_mul_add,Cslib.Complexity.two_rpow_le_natCeil_mul_of_le_mul_add,Cslib.Complexity.two_rpow_mul_pow_le_natCeil_mul_add: rescale an exponential rate, alone or in an envelope, under an additive linear parameter bound.Cslib.Complexity.two_rpow_mul_pow_le_natCeil_mul_add_of_le: replace the exponential factor of an envelope by one that dominates it up to a constant factor.Cslib.Complexity.natCast_mul_div_add_one_le: the rate rescalingc * (δ / (c + 1)) ≤ δbehind subexponential transfers.Cslib.Complexity.one_le_two_rpow_mul_pow,Cslib.Complexity.two_rpow_mul_pow_le_two_rpow_mul_pow,Cslib.Complexity.pow_le_two_rpow_mul_pow: envelopes are at least1, monotone in the exponent and degree, and dominate polynomials of lower degree.Cslib.Complexity.le_two_mul_mul_of_le_mul_add: absorb an additive constant into an envelope.Cslib.Complexity.reduction_add_time_le: combine reduction and target runtimes while retaining the target's exponential envelope and the polynomial input-length factor.Cslib.Complexity.power_reduction_envelope_le,Cslib.Complexity.two_rpow_mul_rpow_le_of_le_mul_rpow: combine power bounds and account for polynomial parameter blowup.
Exponential-times-polynomial envelopes #
Exponential runtime bounds have the form 2 ^ x * (L + 1) ^ e for an exponent x ≥ 0 and the
length L of the encoded input. The envelope is at least 1, grows in x and e, and absorbs
polynomials of lower degree and additive constants.
An exponential factor bounded by K times another one passes to the envelopes, with K
rounded up to a natural constant: the bound that DecidableInTimeO.mono and
ComputableInTimeO.mono need to replace one exponential rate by another.
An additive linear bound on a natural parameter rescales an exponential-times-polynomial
envelope at rate δ ≥ 0 to one at rate c * δ, up to a natural ceiling constant: the bound that
DecidableInTimeO.mono and ComputableInTimeO.mono need to transfer an exponential runtime along
the parameter change.
Running a computation on a reduced instance. If the reduction runs within time P ≥ 1
and its output has length n ≤ l * (P + 1), a subsequent computation with time
T ≤ k * (Y * (n + 1) ^ e) + k, where Y ≤ C * X, C ≥ 0 and X ≥ 1, has total time
bounded by a constant times X * P ^ (e + 1).
Composing two power-exponential envelopes raises the reduction envelope to the power
e + 1 to pay for the target solver's polynomial factor. The maximum power bounds the
sum of the resulting exponents.