Documentation

CslibFrontier.Computability.Complexity.Problems.BoundedComputation

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 #

Main results #

The description field of a bit word read as an instance: the first framed word, decoded.

The input field of a bit word read as an instance: the second framed word.

The step bound field of a bit word read as an instance, in binary: the rest after the two framed words.

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.

Run the decoded machine for the decoded binary clock, returning output and halted flag.

Canonical triples run with precisely their supplied description, input and binary clock.

Re-encoding the decoded fields preserves the meaning of every word, canonical or not.

Cap the numerical binary clock at the supplied unary bound before universal simulation.

A cap above the instance clock leaves its bounded computation unchanged.