Documentation

Complexitylib.Models.TuringMachine.SpaceTime.Defs

Finite observations of space-bounded transducer configurations #

This file defines the finite snapshots used to turn an auxiliary-space bound for a deterministic transducer into a time bound. A work tape whose head stays within space is observed only through that bounded head position and the cells through space. The input is read-only, so its head position suffices. For the one-way output tape, only whether the head is at the left marker and the symbol currently under the head can affect future execution.

Main definitions #

@[simp]

The fixed tape alphabet has four symbols.

@[reducible, inline]

The observable part of a tape whose head never travels beyond space. It records the bounded head position and every cell the head can visit.

Equations
Instances For
    def Complexity.Tape.boundedObs (t : Tape) (space : ) (h : t.head space) :

    Restrict a tape to the cells visible under a given head-space bound.

    Equations
    Instances For
      theorem Complexity.Tape.card_boundedObs (space : ) :
      Fintype.card (BoundedObs space) = (space + 1) * 4 ^ (space + 1)

      The exact number of bounded observations of one work tape.

      @[reducible, inline]
      abbrev Complexity.TM.TransducerSnapshot {k : } (tm : TM k) (inputLength space : ) :

      The finite observable part of a space-bounded transducer configuration.

      The output position and written prefix are deliberately absent: for a one-way output tape, future execution can inspect only whether the head is still on the exceptional left-marker cell and the symbol under its current head.

      Equations
      Instances For
        def Complexity.TM.transducerSnapshot {k : } (tm : TM k) (c : Cfg k tm.Q) (inputLength space : ) (hspace : c.WithinAuxSpace inputLength space) :
        tm.TransducerSnapshot inputLength space

        Observe the finite part of a configuration satisfying an auxiliary-space bound. The output-head zero flag distinguishes the immutable left-marker cell from ordinary output cells.

        Equations
        Instances For
          def Complexity.TM.transducerConfigBound {k : } (tm : TM k) (inputLength space : ) :

          A concrete upper bound on the number of finite snapshots of a k-work-tape transducer using auxiliary space space on inputs of length inputLength.

          Equations
          Instances For
            theorem Complexity.TM.card_transducerSnapshot {k : } (tm : TM k) (inputLength space : ) :
            Fintype.card (tm.TransducerSnapshot inputLength space) = tm.transducerConfigBound inputLength space

            transducerConfigBound is the exact cardinality of the snapshot type.