Reading and moving the input head #
Two machines with one work tape that leave the input head where a two-way computation needs it:
peekInput writes the symbol under the input head into the first two cells of the word on its
work tape, without moving the input head, and moveInput moves the input head by the move written
at the start of the word on its work tape.
Main definitions #
Turing.MultiTapeTM.peekInput,Turing.MultiTapeTM.moveInput: the machines.
Main results #
Turing.MultiTapeTM.TransformsTapesAt.tapeEmb: a one-tape specification on tapei.Turing.MultiTapeTM.transformsTapesAt_peekInput,Turing.MultiTapeTM.transformsTapesAt_moveInput: their specifications.
A one-tape specification on tape i, for a machine that may move the input head.
Reading the symbol under the input head #
Writes peekWord of the symbol under the input head into the first two cells of its work
tape, moving the input head nowhere.
Instances For
Reading the symbol under the input head: peekInput replaces the first two cells of the
word on its tape by peekWord of the symbol under the input head, which it does not move.
Moving the input head #
The move written as the first cell of a word: none, to the left, or to the right.
Instances For
Moves the input head by moveOfCell of the cell under its work-tape head, in one step.
Instances For
Moving the input head: moveInput moves the input head by the move at the start of the
word on its tape, and changes nothing else.