Documentation

Complexitylib.Models.TuringMachine.Subroutines.BinaryCopy.Defs

Copying canonical binary naturals #

This definitions layer composes work-tape clearing with width-linear canonical binary addition. The source and zero scratch tapes are preserved, while the destination is replaced by an exact copy of the source.

def Complexity.TM.binaryCopyIntoTM {n : } (srcIdx dstIdx counterIdx : Fin n) :
TM n

Clear dstIdx, then copy the canonical binary natural on srcIdx into it. The distinct counterIdx supplies the preserved zero operand to ripple addition, and dstIdx is its fresh result tape.

Equations
Instances For
    def Complexity.TM.binaryCopyTime (srcValue dstValue : ) :

    Compositional running-time bound for canonical binary copying.

    Equations
    Instances For
      def Complexity.TM.binaryCopySpace (initialSpace srcValue dstValue : ) :

      All-prefix auxiliary-space bound for canonical binary copying.

      Equations
      Instances For