Deterministic function time #
FTIME encIn encOut t consists of functions computed by one finite-control binary multi-tape
machine in time c₁ * t n + c₂ on an input whose encoding has length n, for constants fixed
before the input. The output encoding is explicit and workspace may have any length-dependent
bound. This is the function analogue of DTIME, using the same native computation predicate;
it is not a class of decision problems.
For natural-valued counting functions, use the binary output encoding Turing.MultiTapeTM.encNat.
No extra output-length charge is imposed beyond writing the encoded output within the time bound.
Main definitions #
Cslib.Complexity.FTIME: deterministic function time with explicit input and output encodings.
Main results #
Cslib.Complexity.mem_FTIME: the native machine/resource contract.Cslib.Complexity.FTIME_mono: monotonicity in the time bound.Cslib.Complexity.FTIME.of_computableInTimeAndSpace: an exact resource certificate gives function-time membership.
theorem Cslib.Complexity.FTIME.of_computableInTimeAndSpace {α β : Type} {encIn : α ↪ List Bool} {encOut : β ↪ List Bool} {t : ℕ → ℕ} {f : α → β} {s : ℕ → ℕ} (h :
Turing.MultiTapeTM.ComputableInTimeAndSpace f encIn encOut (fun (a : α) => t (encIn a).length) fun (a : α) =>
s (encIn a).length) :
An exact length-dependent time/workspace certificate implies function-time membership.