Documentation

Complexitylib.Models.TuringMachine.Combinators.ForBinaryWork.Defs

Binary work-tape loop combinator -- definitions #

TM.forBinaryWorkTM driverIdx body invokes body once for each 0 or 1 under a designated work-tape cursor and stops on the first blank. The body sees the current bit; the loopback seam advances the driver by one cell. This is the width-driven control needed by bitwise algorithms such as schoolbook multiplication, without a numeric-value counter.

Scanner and terminal states outside the nested body machine.

Instances For
    def Complexity.TM.forBinaryWorkTM {n : } (driverIdx : Fin n) (body : TM n) :
    TM n

    Iterate body over the Boolean cells of work tape driverIdx.

    The scanner skips an initial left marker, halts on blank, and enters body without moving on either Boolean symbol. When the body halts, one preserving seam step advances only the driver and resumes scanning. Exact once-per-bit semantics therefore requires the body to preserve the driver tape and head.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      def Complexity.TM.forBinaryWorkLoopTime (bodyTime : ) (value : ) :

      Exact remaining time for a bit-driven work loop. Each live iteration takes one scanner step, the body run, and one advancing loopback step; the terminal blank exit takes one step.

      Equations
      Instances For
        structure Complexity.TM.ForBinaryWorkLoopSpec {n : } (driverIdx : Fin n) (body : TM n) (bodyTime : ) (total : ) :

        Wrapper-free exact-control certificate for a binary work-tape loop.

        Instances For
          structure Complexity.TM.ForBinaryWorkLoopSpaceSpec {n : } {driverIdx : Fin n} {body : TM n} {bodyTime : } {total : } (spec : ForBinaryWorkLoopSpec driverIdx body bodyTime total) (inputLength spaceBound : ) :

          Space obligations turning an exact binary-work loop certificate into an all-prefix auxiliary-space certificate.

          Instances For