Documentation

Complexitylib.Models.TuringMachine.Subroutines.UnaryLength.Defs

Unary input-length transducer — definitions #

This module defines a deterministic transducer that scans its Boolean input once and writes one true bit per input bit. Its output is therefore the unary representation List.replicate x.length true of the input length.

Control states for unaryLengthTM: scan the input, then halt at its first trailing blank.

Instances For

    Scan the Boolean input from left to right and emit one true bit per input bit. The first step skips the left-end markers, and the machine halts when the input head reaches its first trailing blank.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For