Theory AlphabetReduction_Codec
theory AlphabetReduction_Codec
imports "Multitape_TM_Substrate.Multitape_Substrate"
begin
section ‹Alphabet reduction›
text ‹This theory opens the alphabet-reduction development. The
‹alphabet_reduce› combinator takes a well-formed substrate
machine over an arbitrary finite alphabet ‹'a› (with
tape-alphabet cardinality ‹≥› 4) and produces a
well-formed substrate machine over the fixed four-element alphabet
‹sym4›, preserving the accepted language, determinism, and
tape count.
This is the elementary determinism-preserving per-symbol multi-cell
encoding.
The development is layered: this first theory fixes the output
alphabet ‹sym4› and the per-symbol binary codec; the
simulator, its delta, and the headline theorems
(‹alphabet_reduce_wf›, ‹alphabet_reduce_language›,
‹alphabet_reduce_time›, ‹alphabet_reduce_det›) are
built across the theories that follow.
Throughout, ‹b› abbreviates ‹block_width Γ› (the per-symbol cell width).›
text ‹The fixed four-element output alphabet:
‹BLANK4› (blank), ‹LE4› (left endmarker),
‹BIT0› (binary 0), ‹BIT1› (binary 1).›