Finite configuration operations within quadratic time #
The tape and configuration operations used by the step test of views
(Turing.MultiTapeNTM.viewStepB) are certified with explicit asymptotic bounds
(Turing.MultiTapeTM.ComputableInO). Stack and tape operations, field access, output
summaries and work-tape steps are linear in the encoded configuration; only the clamped move
of the unary input head compares two unary numbers and costs quadratic time. Every operation
uses linear space.
Main results #
Turing.MultiTapeTM.ComputableInO.stackTape_head,.stackTape_tail,.stackTape_cons,.biTape_mk,.biTape_moveLeft,.biTape_moveRight,.biTape_step: linear tape operations.Turing.MultiTapeTM.ComputableInO.finiteCfg_mkand the field projections.finiteCfg_input,.finiteCfg_state,.finiteCfg_inputPos,.finiteCfg_workTapes,.finiteCfg_output.Turing.MultiTapeTM.ComputableInO.outputClass,.finiteCfg_summarizeOutput: linear output summaries.Turing.MultiTapeTM.ComputableInO.finiteCfg_step: a fixed native action, within quadratic time and linear space.Turing.MultiTapeTM.ComputableInO.finiteCfg_step_summarizeOutput: a step followed by the output summary, within quadratic time and linear space.Turing.MultiTapeTM.ComputableInO.finiteCfg_inputSymbol,.finiteCfg_workTapeSymbols,.finiteCfg_key: the observations selecting the transitions of a view, in linear time and space.
The head of a stack, with a blank default, in linear time and space.
Removing the head of a stack, in linear time and space.
Prepend a computed cell to a computed stack, retaining its omission of trailing blanks.
Assemble a tape from its computed head and two sides.
Read the current cell of a tape.
Extract the stored left side of a tape.
Extract the stored right side of a tape.
Move the head left by the stack operations, in linear time and space.
Move the head right by the stack operations, in linear time and space.
Execute a fixed native tape action, in linear time and space.
The output summary on raw words, in linear time and space.
Assemble a configuration from its computed components, adding their bounds.
Read the stored input word of a configuration.
Read the finite control of a configuration.
Read the unary input-head position of a configuration.
Read the family of work tapes of a configuration.
Read the accumulated output of a configuration.
The clamped native move of the unary input head, within quadratic time and linear space: moving right compares the position with the input length.
Execute fixed native actions on all work tapes, in linear time and space.
Execute a fixed native action on a configuration, within quadratic time and linear space.
Summarizing the output of a configuration, in linear time and space.
A step of views: a fixed native action followed by the output summary, within quadratic time and linear space (hence with a linear encoded output).
A step of views has a linearly bounded encoding.
Observe the read-only input of a configuration, including both blank boundary cells, in linear time and space.
Observe all work heads of a configuration as one finite value, in linear time and space.
The finite key of a view: its control, input symbol and work symbols, which select its transitions, in linear time and space.