Resource certificates for read-machine simulations #
If the halting test, the address and the step of a read machine have plain charged resource
certificates with time bound T and space bound S on its states, then
Turing.ReadMachine.toStepMachine has a resource certificate on its states, which add the
position of the head. Its space bound Turing.ReadMachine.stateS adds to S twice the length of
the encoded pair of state and position, plus 4; its time bound Turing.ReadMachine.stateT is
the position plus one, times the square of the sum of T and that space bound.
Main results #
Turing.ReadMachine.pairFalse_inSpace,Turing.ReadMachine.comp_pairFalse_inSpace: evaluating a function of a state and a bit at the bitfalsewithin the space budget of the step.Turing.ReadMachine.toStepMachine_resourceCertificate: the simulating step machine has a plain resource certificate.Turing.ReadMachine.exists_toStepMachine_resourceCertificate: the same, from halting test, address and step computable within the space bound of the states.
Computing within fixed budgets #
Composition within the budgets.
Composition with a map computed in linear time and space, within the budgets.
Pairs within the budgets.
Conditionals within the budgets.
A constant within the budgets.
A function of finitely many values, within the budgets.
Pairing a state with the bit false, within any space budget at least the encoded pair
length.
Evaluating a function of a state and a bit at the bit false, within the space budget of the
step.
The projections of the input are within the budgets.
The simulating step machine has a resource certificate, if the halting test, address and step have plain resource certificates with the given state bounds.
The simulating step machine has a resource certificate for some time bound, if the halting
test, address and step are computable within the space bound S of the states. The time bound
collects the time bounds of the three certificates.