Raw two-stack work tapes #
A work tape is stored as its current cell and two lists, nearest cell first. Blanks are retained:
moving beyond the stored interval extends it by one blank cell. Thus storage records the interval
visited by the head, independently of the number of times the machine revisits cells.
The relative read and representation proofs adapt the BiTape API of Bolton Bailey and
Samuel Schlesinger to raw lists.
Main definitions #
Turing.MultiTapeTM.ToTM2.RawTape: the current cell and the raw left and right stacks.Turing.MultiTapeTM.ToTM2.RawTape.step: native optional writing followed by head movement.Turing.MultiTapeTM.ToTM2.RawTape.Represents: correspondence with an integer-indexed native tape.
Main results #
Turing.MultiTapeTM.ToTM2.RawTape.Represents.step: preservation of native tape semantics.
A work tape with raw stacks, ordered from the head outwards. Trailing blanks are retained.
- head : Option Symbol
The cell under the head.
Cells strictly to the left, nearest first.
Cells strictly to the right, nearest first.
Instances For
Instances For
A blank tape, initially storing just the cell at its head.
Instances For
Move left, extending the stored interval by a blank when the left stack is empty.
Instances For
Move right, extending the stored interval by a blank when the right stack is empty.
Instances For
Raw execution preserves a native optional-write-and-move action, including erasing cells.
The exact left-stack length after an action.
The exact right-stack length after an action.
The number of stored cells, including the current cell and stored blanks.