Multitape Alphabet Roundtrip

András Z. Salamon 📧 and Michael Wehar 📧

July 14, 2026

Abstract

This entry proves, in Isabelle/HOL, that the two multitape tape-alphabet transformations compose as machines, in both orders, with the accepted language preserved and the composed running time bounded by an explicit affine function of the source machine's running time.

Alphabet enlargement (the Hartmanis–Stearns / Hopcroft–Ullman linear-speedup construction, packing \(c\) contiguous tape cells into one block) and alphabet reduction (the folklore per-symbol binary re-encoding of an arbitrary finite tape alphabet onto a fixed four-symbol alphabet, set within the wider machine-simulation landscape by van Emde Boas and Papadimitriou) are developed independently in the sibling sessions Multitape_Alphabet_Enlargement and Multitape_Alphabet_Reduction over the shared substrate Multitape_TM_Substrate. This session, Multitape_Alphabet_Roundtrip, composes them.

For a well-formed source machine \(M\) with \(|\Gamma_M| \geq 4\), and for each order, the entry establishes language preservation (an equivalence modulo the composed input re-encoding) and a composed linear-time bound with explicit constants. Writing \(k\) for the source tape count and \(b = \lceil \log_2 |\Gamma_M| \rceil\), reduce-then-enlarge runs in time \(8(6k + 1)\,b\,T(|w|) + 2\,b\,|w| + 4\), and enlarge-then-reduce in \(8(6k + 1)\,b'\,T(|w| + c - 1) + 2(6k + 1)\,b'\,|w| + 4(6k + 1)\,b'\), where \(c\) is the block size and \(b'\) the block width of the enlarged alphabet; each bound also has an existential-shape corollary \(\exists A, B, C.\ \mathrm{time} \leq A\,T(|w|) + B\,|w| + C\). These composed constants are established here, not inherited from a prior result.

Nothing is re-proved: each headline chains the two sibling sessions' existing theorems. The explicit constants expose an order asymmetry hidden under \(O(\cdot)\): the enlargement's block-speedup factor \(c\) cancels when the alphabet is reduced first, but survives when it is enlarged first.

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_Alphabet_Roundtrip