Multitape Turing Machine Substrate

András Z. Salamon 📧 and Michael Wehar 📧

July 14, 2026

Abstract

This entry formalises nondeterministic multitape Turing machines in Isabelle/HOL, depending only on HOL-Library.

A machine's transition is a relation rather than a function: it may allow several moves at each step, so a machine can follow many different computations on one input (the machine is nondeterministic), and it accepts when at least one computation reaches an accepting state. Deterministic machines, which have a single move everywhere, are the special case. The number of tapes is ordinary data rather than fixed in the machine's type, so a single theorem can speak about machines with any number of tapes.

Each tape carries a marker at its left end, and the model allows a machine to move that marker to the right, discarding a stretch of tape it can never return to. We prove that this relocation preserves the accepted language: a run before the move reaches an accepting state exactly when the matching run after it does.

The formalisation adapts Dalvit and Thiemann's multitape Turing machine development, the AFP entry Multitape_To_Singletape_TM, extending it in two ways: the number of tapes is part of a machine's data rather than fixed in its type, and a machine is itself an ordinary value that theorems can range over, rather than a fixed locale context.

The Claude family of AI models, via Claude Code, was used for proof engineering.

License

BSD License

Note

Generative AI was used for proof engineering and to write descriptions of the results, together with human design, steering, and review.

Topics

Session Multitape_TM_Substrate