Documentation

CslibFrontier.Computability.Complexity.Problems.BoundedHalting

Bounded halting with a binary time bound #

The instance BoundedComputation.mk d x c = frame (eDesc d) ++ frame x ++ c asks whether the binary multi-tape machine described by d accepts the input x within binaryValue c steps, that is, halts with the output [true]. The semantics is that of the universal function Turing.MultiTapeTM.Universal.universal, which runs a described machine for a given number of steps. Every bit word is read as an instance through the total decoders unframe, dropFrame and Turing.MultiTapeTM.Universal.decodeDesc, so Cslib.Complexity.BoundedHalting is a problem on bit words. On the descriptions of machines it means what it should (Cslib.Complexity.BoundedHalting.mk_desc_mem_iff).

The step bound is written in binary, so it can be exponential in the length of the instance. This makes the problem complete for exponential time under polynomial-time many-one reductions:

With the step bound in unary, simulation is polynomial in the length of the instance, and the problem is in P. The nondeterministic version with a unary bound is NP-complete. The completeness of the binary version for exponential time is standard textbook material; no numbered source result is cited for it here.

Hence BoundedHalting is not in P (Cslib.Complexity.BoundedHalting.notMem_P, from Cslib.Complexity.P_ssubset_EXP). Berman's theorem applies to it (Cslib.Complexity.BoundedHalting.not_isBiImmune_P, in CslibFrontier.Computability.Complexity.Classes.Immune.Complete). Book's separations of E from the classes closed under polynomial-time reductions, such as NP and PSPACE, are in CslibFrontier.Computability.Complexity.Classes.EXP.Separation.

Main definitions #

Main results #

Bounded halting with a binary time bound: the bit words w such that the machine described by descOf w accepts the input inputOf w, i.e. halts with output [true], within the number of steps written in binary by clockOf w.

Bounded halting on descriptions of machines: the instance for the description of a binary machine accepts exactly when the machine, run on x for binaryValue c steps, has halted with output [true].

Bounded acceptance is in E via the shared capped universal simulation.

Exponential-time problems reduce to bounded halting. A problem decided within time c₁ * 2 ^ p n + c₂ on instances of encoded length n, where p is computable in polynomial time in unary, reduces to bounded halting in polynomial time: a maps to the instance that runs the decider on enc a for 2 ^ (p |enc a| + c₁ + c₂ + 1) - 1 steps.

Bounded halting is hard for E under polynomial-time many-one reductions.

Bounded halting is hard for EXP under polynomial-time many-one reductions.

Bounded halting with a binary time bound is E-complete under polynomial-time many-one reductions.

Bounded halting with a binary time bound is EXP-complete under polynomial-time many-one reductions.

Bounded halting is not in P: otherwise every problem in EXP would be, contradicting P ⊊ EXP.