Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Internal.NativeCompiler.Nat

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 #

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.