Documentation

CslibFrontier.Computability.Complexity.Classes.Constructible.TwoPow

Exponentials of constructible clocks #

If T is time-constructible, so is n ↦ 2 ^ (T n / k) for every k ≥ 1. The machine computes T n in binary within O(T n) steps and divides it by k. It then converts the quotient m to unary within O(m + 1) steps (Turing.MultiTapeTM.ComputableInO.natToUnary) and writes 2 ^ m in binary, as m zeros followed by a one. Since T n < k * (m + 1), every stage is polynomial in m, hence O(2 ^ m).

Such clocks separate time classes at exponential scale. The clocked diagonal with clock 2 ^ (T n / 4) is decidable within time O(2 ^ T n), which separates DTIME[2 ^ T] from the classes of the counting simulation in CountingSimulation.Separation.

Main results #

theorem Cslib.Complexity.TimeConstructible.two_pow_div {T : ℕ → ℕ} (hT : TimeConstructible T) {k : ℕ} (hk : 0 < k) :
TimeConstructible fun (n : ℕ) => 2 ^ (T n / k)

Exponentials of constructible clocks. If T is time-constructible and 0 < k, then so is n ↦ 2 ^ (T n / k).