Documentation

Complexitylib.Models.RandomAccessMachine.Simulation.TMConfig.Sparse.Defs

Sparse unbounded TM configurations in RAM registers #

This layout is independent of an input-length or time bound. State, heads, and scratch occupy a fixed prefix determined only by the machine's tape count. Tape cells are interleaved after that prefix at cellBase + position * (n + 2) + tape. A fixed RAM program can therefore compute every cell address using multiplication and addition while allocating new tape positions on demand.

@[reducible, inline]

State field followed by every named head and every named tape cell.

Equations
Instances For

    Fixed head register for one named tape.

    Equations
    Instances For

      Constant-zero scratch register.

      Equations
      Instances For

        Constant-one scratch register.

        Equations
        Instances For

          Constant n + 2, used to compute interleaved cell addresses.

          Equations
          Instances For

            Destructive finite-state dispatch register.

            Equations
            Instances For

              Indirect cell-address scratch register.

              Equations
              Instances For

                Writable-symbol scratch register.

                Equations
                Instances For

                  Loaded head-symbol register for one named tape.

                  Equations
                  Instances For

                    Exclusive end of the fixed control/scratch prefix and first tape-cell register.

                    Equations
                    Instances For
                      def Complexity.RAM.TMConfig.Sparse.cellReg (n : ) (tape : Fin (n + 2)) (position : ) :

                      Address of one tape cell in the fixed interleaved layout.

                      Equations
                      Instances For

                        A store represents the complete unbounded TM configuration. Scratch registers in the fixed gap are deliberately unconstrained.

                        Equations
                        • One or more equations did not get rendered due to their size.
                        Instances For

                          Decode the tape slot of an interleaved cell register.

                          Equations
                          Instances For

                            Decode the position of an interleaved cell register.

                            Equations
                            Instances For
                              noncomputable def Complexity.RAM.TMConfig.Sparse.encodeRegs {n : } (tm : TM n) (cfg : Complexity.Cfg n tm.Q) :

                              Canonical sparse register encoding.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                noncomputable def Complexity.RAM.TMConfig.Sparse.decodeTape (n : ) (store : Structured.Store) (tape : Fin (n + 2)) :

                                Decode one complete sparse tape.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  noncomputable def Complexity.RAM.TMConfig.Sparse.decode {n : } (tm : TM n) (store : Structured.Store) :

                                  Decode a complete sparse store into a TM configuration.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For