Finite Mathlib TM0 machines with binary input and output #
The source has a finite alphabet and state set. Input bits are mapped to source symbols. A halted source configuration supplies the complete binary output at and to the right of its tape head. The CSLib simulator copies and rewinds its input, simulates each source transition on symbol tracks, then emits that output.
A finite Mathlib machine with a faithful binary encoding of its input and output.
- Alphabet : Type
Source tape alphabet.
- State : Type
Source control states.
The tape alphabet is finite.
The default symbol is blank.
The control state set is finite.
The default control state is initial.
Encode an input or output bit as a source symbol.
Decode an output bit, stopping on a nonbinary symbol.
Encoded bits decode faithfully.
Blank terminates the output.
- code : Turing.TM0.Machine self.Alphabet self.State
The source transition function.
Instances For
A configuration of the source machine.
Equations
- M.Config = Turing.TM0.Cfg M.Alphabet M.State
Instances For
One transition, using the alphabet and initial-state instances of the bundle.
Equations
- M.step = Turing.TM0.step M.code
Instances For
A halted source run whose entire right-of-head tape is the encoded binary output.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Simulator phases: input copying, rewind, source execution, and output emission.
- copy
{Q : Type u_1}
: Control Q
Copy input bits to symbol tracks.
- rewind
{Q : Type u_1}
: Control Q
Rewind the symbol tracks to the first input cell.
- run
{Q : Type u_1}
: Q → Control Q
Execute one source control state.
- emit
{Q : Type u_1}
: Control Q
Emit the binary output at and right of the halted source head.
Instances For
One binary work tape per source alphabet symbol.
Equations
Instances For
Associate each work tape with its source alphabet symbol.
Equations
Instances For
A transition leaving the work tapes unchanged.
Equations
Instances For
The displacement corresponding to one source move.
Equations
Instances For
Simulate a source transition, switching to output emission when the source halts.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The finite binary CSLib simulator.
Equations
- One or more equations did not get rendered due to their size.