Documentation

CslibFrontier.Computability.Complexity.Classes.Constructible.FunctionTime

Constructible bounds in function time #

A time-constructible bound T is computed in binary within time O(T n) from any word of length n. Run on the encoding of an instance, the same machine computes T |enc a| in FTIME enc encNat T, for every input encoding enc. Clocked simulations use this to compute their clock from the input.

Main results #

theorem Cslib.Complexity.TimeConstructible.mem_FTIME {α : Type} {enc : α ↪ List Bool} {T : ℕ → ℕ} (hT : TimeConstructible T) :
(fun (a : α) => T (enc a).length) ∈ FTIME enc Turing.MultiTapeTM.encNat T

A time-constructible bound is computed within its own time. For every input encoding enc, the bound T |enc a| of the encoded length is in FTIME enc encNat T.