Named native binary-natural primitives #
This module retains the existing streaming successor, predecessor and zero-test transducers as
NativeCompilers. The wrappers name the concrete machines and their constructive state encodings;
they do not extract a witness from the existential complexity certificates.
Main definitions #
Turing.MultiTapeMachine.reverseInput: explicit effect-free transition table for the two-state input-reversal machine.Turing.MultiTapeTM.Internal.NativeCompiler.natSucc: retained binary successor.Turing.MultiTapeTM.Internal.NativeCompiler.natPred: retained saturating binary predecessor.Turing.MultiTapeTM.Internal.NativeCompiler.natIsZeroBool,.natIsZeroTest: retained binary zero tests in Boolean and branch-test encodings.Turing.MultiTapeTM.Internal.NativeCompiler.bitsToNat: retained canonicalization of an arbitrary little-endian bit word.
The input-reversal machine as an explicit effect-free transition table, matching
Turing.MultiTapeTM.reverseInput.
Forgetting the explicit input-reversal table recovers Turing.MultiTapeTM.reverseInput.
Canonicalize an arbitrary little-endian bit word by reversing it, dropping its high zero
digits, and reversing it back. The retained composition computes ofBits, including on empty and
noncanonical input words.
Binary successor through the public carry transducer.
Saturating binary predecessor through the public borrow transducer.
Binary zero test with one-bit Boolean output.
Binary zero test in the empty/nonempty branch encoding, including the retained conversion.