Documentation

Complexitylib.Models.TuringMachine.Subroutines.BinaryLength.Defs

Binary input-length counter — definitions #

This module instantiates the read-only-input loop with little-endian successor. The input region supplies unary loop fuel without being copied into auxiliary space; the designated work tape holds the growing canonical Nat.bits counter.

Exact remaining driver time: run successor on value once for each of count remaining input symbols, then take the final blank-exit step.

Equations
Instances For

    Exact fresh-start running time of the binary input-length counter. The leading one is the initial left-marker setup step.

    Equations
    Instances For

      Honest all-reachable auxiliary-space budget for binary length counting.

      Equations
      Instances For

        First-order routine program for binary input-length counting.

        Equations
        Instances For
          def Complexity.TM.binaryLengthTM {n : } (counterIdx : Fin n) :
          TM n

          Count the Boolean input length in canonical little-endian binary on work tape counterIdx. The executable machine is obtained by structural routine lowering.

          Equations
          Instances For