Finite-state transducers and their machine semantics #
Machine declarations are moved from their original module without changing programs or resource formulas. Higher computability-calculus theorems remain in the original facade.
A finite-state transducer with input and output alphabet Symbol and states Q. In state q
on the symbol a it moves to (step q a).1 and emits (step q a).2; at the end of the input it
emits final q.
- q₀ : Q
The initial state.
The successor state and the emitted word on reading a symbol.
- final : Q → List Symbol
The word emitted at the end of the input.
At most two symbols are emitted per input symbol.
At most two symbols are emitted at the end of the input.
Instances For
The word τ emits on w, started in state q.
Instances For
τ as a machine without work tapes. Its states are the states of τ, a pending output
symbol, and whether the end of the input has been reached.
Instances For
τ.toTM emits τ.run τ.q₀ input on input, in 2 * input.length + 3 steps and zero
space.
Followed by a rewind of the input head, τ.toTM emits τ.run τ.q₀ input tidily.