Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Internal.WordMachines

Zero-workspace word machines #

Shared finite-state programs and their word semantics, independent of resource facades.

Emit one mapped bit per input symbol.

The map machine emits exactly the mapped word.

Buffer one bit so the final bit is omitted.

Starting with a buffered bit emits the prefix of the buffered word.

The initial empty buffer drops precisely the last input bit.

The finite-state transducer that remembers the last bit read and ends with final of it.

theorem Turing.MultiTapeTM.Internal.WordMachines.run_lastBitT (final : Option Bool → List Bool) (hfinal : ∀ (q : Option Bool), (final q).length ≤ 2) (l : List Bool) :
(lastBitT final hfinal).run (lastBitT final hfinal).q₀ l = final l.getLast?