section ‹Singletape Turing Machines› theory Singletape_TM imports TM_Common begin text ‹Turing machines can be either defined via a datatype or via a locale. We use TMs with left endmarker and dedicated accepting and rejecting state from which no further transitions are allowed. Deterministic TMs can be partial.›