Documentation

LeanPool.BeyondBethe.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 (fixedValue dstValue : ℕ) :

    Exact runtime of fixed-constant binary addition.

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

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

      Equations
      Instances For