Documentation

Complexitylib.Models.TuringMachine.Subroutines.BinaryAddConst.Defs

Addition of a fixed natural to a canonical binary tape — definitions #

A fixed constant is compiled into finitely many sequential applications of canonical binary successor. No work tape is needed for the hardwired value, so the construction preserves every tape except its destination.

def Complexity.TM.binaryAddConstTM {n : } (idx : Fin n) :
TM n

Add a hardwired natural to one canonical binary work tape.

Equations
Instances For
    def Complexity.TM.binaryAddConstTime (constant dstValue : ) :

    Exact runtime of fixed-constant binary addition.

    Equations
    Instances For
      def Complexity.TM.binaryAddConstSpace (initialSpace constant dstValue : ) :

      All-prefix width-based space bound for fixed-constant addition.

      Equations
      Instances For