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:
- It is in
E(Cslib.Complexity.BoundedHalting.mem_E). The step bound of an instancewis below2 ^ |w|, so the simulation with the step bound capped at2 ^ |w|gives the same answer, and that simulation is polynomial inwpadded with2 ^ |w|(Cslib.Complexity.setOf_mem_E_of_computableInPolyTime_pad). - Every problem decided within time
c₁ * 2 ^ p n + c₂, for a polynomial-timep, reduces to it (Cslib.Complexity.BoundedHalting.polyTimeReducible). The reduction mapsato the instance that runs the decider onenc afor2 ^ (p |enc a| + c₁ + c₂ + 1) - 1steps, which is written asp |enc a| + c₁ + c₂ + 1ones. Takingp n = k * nandp n = n ^ kgives hardness forEand forEXP.
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 #
Cslib.Complexity.BoundedHalting: bounded halting with a binary time bound.Cslib.Complexity.BoundedComputation.mk: the instance for a description, an input and a binary step bound.
Main results #
Cslib.Complexity.BoundedHalting.mk_desc_mem_iff: on the description of a machine, membership is acceptance within the step bound.Cslib.Complexity.BoundedHalting.mem_E,Cslib.Complexity.BoundedHalting.mem_EXP: bounded halting is inE, hence inEXP.Cslib.Complexity.BoundedHalting.isDecidable: bounded halting is decidable.Cslib.Complexity.BoundedHalting.polyTimeReducible: every problem decided within timec₁ * 2 ^ p n + c₂, withppolynomial-time, reduces to bounded halting.Cslib.Complexity.BoundedHalting.polyTimeComplete_E,Cslib.Complexity.BoundedHalting.polyTimeComplete_EXP: bounded halting is complete forEand forEXPunder polynomial-time many-one reductions.Cslib.Complexity.BoundedHalting.notMem_P: bounded halting is not inP.
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.
Bounded halting is in EXP.
Bounded halting is decidable, since it is in E.
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.