Framed bounded-computation instances #
A word encodes a framed machine description, a framed input, and a most-significant-bit-first
binary clock. Total decoders interpret every word; mk supplies the exact canonical roundtrip.
run returns the bounded universal output and halted flag. A polynomial-time predicate on this
result defines a language in E, because the numerical clock is below 2 ^ |w|.
The encoding API is extracted from bounded acceptance for reuse by any-output termination.
Main definitions #
Cslib.Complexity.BoundedComputation.mk: frame a description, input and binary clock.Cslib.Complexity.BoundedComputation.run: interpret the decoded bounded computation.Cslib.Complexity.BoundedComputation.cappedRun: run with a unary numerical cap.
Main results #
Cslib.Complexity.BoundedComputation.run_mk: canonical-triple semantics.Cslib.Complexity.BoundedComputation.run_reencode: total-decoder normalization.Cslib.Complexity.BoundedComputation.computableInPolyTime_mk: native instance construction.Cslib.Complexity.BoundedComputation.setOf_run_mem_E: polynomial-time output predicates give E.
The description field of a bit word read as an instance: the first framed word, decoded.
Frame a description and input, followed by a most-significant-bit-first binary clock.
The step bound written in an instance is below 2 ^ n for an instance of length n.
Canonical triples run with precisely their supplied description, input and binary clock.
Constructing a framed bounded-computation instance preserves polynomial-time computation.
The capped simulation is polynomial-time in the word and the cap written in unary.
A polynomial-time predicate on a decoded bounded computation gives an E language.