Documentation

Complexitylib.Models.RandomAccessMachine.Simulation.RegisterStore.Machine.Instruction.Sim.Defs

Fixed-program sparse RAM instruction dispatch -- definitions #

One fresh last work tape is the next-store buffer. Data instructions redirect their encoded output there; control instructions copy the unchanged read-only store there. A binary copy of the program counter is then decremented through a fixed finite branch tree, so the resulting TM depends only on the RAM program.

Embed every control/data role into the initial n tapes of the one-buffer layout.

Equations
Instances For

    Program counter in the one-buffer execution layout.

    Equations
    Instances For

      First temporary operand in the one-buffer execution layout.

      Equations
      Instances For

        Zero scratch used while copying the dispatch selector.

        Equations
        Instances For

          Read-only encoded-store source in the one-buffer execution layout.

          Equations
          Instances For

            Fresh last work tape receiving the next encoded store.

            Equations
            Instances For

              The lifted program counter is disjoint from the encoded-store source.

              Emit the unchanged store from the read-only source into the fresh buffer after executing a control-only instruction.

              Equations
              Instances For

                Execute one statically selected RAM instruction. Every case writes the next encoded store to the fresh last work tape and leaves real output blank.

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

                  Representation-independent finite branch tree for any family of static instruction executors sharing the standard decrementing selector tape.

                  Equations
                  Instances For

                    Finite branch tree selected by a decrementing canonical PC copy.

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

                      Copy the preserved PC into zero scratch and enter the fixed branch tree.

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

                        Pure next store selected by one RAM instruction.

                        Equations
                        Instances For
                          def Complexity.RAM.RegisterStore.Machine.instructionPC (instruction : Instr) (pcValue : ) (store : Store) :

                          Pure next program counter selected by one RAM instruction.

                          Equations
                          Instances For

                            Five canonical data roles that must be cleared between simulated RAM instructions: update query, replacement, found flag, and the two operands.

                            Equations
                            Instances For

                              Exact values left on the five cleanup roles by one instruction kernel.

                              Equations
                              Instances For
                                structure Complexity.RAM.RegisterStore.Machine.InstructionExecutionReady {n : } (tapes : ControlInstructionTapes n) (store : Store) (pcValue : ) (work : Fin (n + 1)Tape) :

                                Clean one-buffer entry boundary shared by every selected instruction.

                                Instances For
                                  def Complexity.RAM.RegisterStore.Machine.DispatchReady {n : } (tapes : ControlInstructionTapes n) (store : Store) (pcValue selector : ) (cleanWork work : Fin (n + 1)Tape) :

                                  Dispatch boundary obtained by replacing the clean zero lhs tape by a canonical decrementing selector.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    structure Complexity.RAM.RegisterStore.Machine.InstructionExecutionResult {n : } (tapes : ControlInstructionTapes n) (instruction : Instr) (pcValue : ) (store : Store) (work : Fin (n + 1)Tape) :

                                    Common semantic endpoint of every selected instruction before cleanup.

                                    Instances For
                                      structure Complexity.RAM.RegisterStore.Machine.BufferedInstructionResult {n : } (tapes : ControlInstructionTapes n) (oldStore nextStore : Store) (nextPC : ) (cleanupValues : Fin 5) (remainingValue : ) (work : Fin (n + 1)Tape) :

                                      Instruction-independent buffered endpoint. This is the semantic interface needed by physical cleanup; sparse and dense register representations provide their own next-store, next-PC, and scratch-value witnesses.

                                      Instances For
                                        noncomputable def Complexity.RAM.RegisterStore.Machine.instructionCleanupResetBitsAt {n : } (tapes : ControlInstructionTapes n) (instruction : Instr) (store : Store) :
                                        Fin (n + 1)List Bool

                                        Extend the indexed reset contents to the whole physical work family.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          noncomputable def Complexity.RAM.RegisterStore.Machine.instructionCleanupResetHeadBoundAt {n : } (tapes : ControlInstructionTapes n) (sourceHeadBound : ) :
                                          Fin (n + 1)

                                          Extend the indexed reset head bounds to the whole work family.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            def Complexity.RAM.RegisterStore.Machine.bufferedCleanupResetBits (cleanupValues : Fin 5) (remainingValue : ) (oldStore : Store) :
                                            Fin 7List Bool

                                            Binary contents reset by representation-independent buffered cleanup.

                                            Equations
                                            Instances For
                                              noncomputable def Complexity.RAM.RegisterStore.Machine.bufferedCleanupResetBitsAt {n : } (tapes : ControlInstructionTapes n) (cleanupValues : Fin 5) (remainingValue : ) (oldStore : Store) :
                                              Fin (n + 1)List Bool

                                              Extend generic buffered-cleanup contents to all physical work tapes.

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

                                                Canonical tape with bits and its head immediately after the payload.

                                                Equations
                                                Instances For
                                                  structure Complexity.RAM.RegisterStore.Machine.InstructionCleanupReady {n : } (tapes : ControlInstructionTapes n) (instruction : Instr) (pcValue : ) (store : Store) (sourceHeadBound : ) (work : Fin (n + 1)Tape) :

                                                  Buffered post-state plus the two left markers and old-source cursor bound needed by the executable cleanup pass.

                                                  Instances For
                                                    structure Complexity.RAM.RegisterStore.Machine.BufferedCleanupReady {n : } (tapes : ControlInstructionTapes n) (oldStore nextStore : Store) (nextPC : ) (cleanupValues : Fin 5) (remainingValue sourceHeadBound : ) (work : Fin (n + 1)Tape) :

                                                    Representation-independent input boundary for the physical cleanup pass.

                                                    Instances For

                                                      Restore the clean instruction ABI around the buffered successor store.

                                                      Equations
                                                      • One or more equations did not get rendered due to their size.
                                                      Instances For
                                                        noncomputable def Complexity.RAM.RegisterStore.Machine.instructionCleanupTime {n : } (tapes : ControlInstructionTapes n) (instruction : Instr) (pcValue : ) (store : Store) (sourceHeadBound : ) :

                                                        Exact compositional cleanup bound for one buffered instruction result.

                                                        Equations
                                                        • One or more equations did not get rendered due to their size.
                                                        Instances For
                                                          noncomputable def Complexity.RAM.RegisterStore.Machine.bufferedCleanupTime {n : } (tapes : ControlInstructionTapes n) (oldStore nextStore : Store) (cleanupValues : Fin 5) (remainingValue sourceHeadBound : ) :

                                                          Exact cleanup budget expressed only through the buffered representation boundary, independent of the instruction semantics that produced it.

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

                                                            Runtime bound for a statically selected instruction before iteration cleanup.

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

                                                              Representation-independent path-sensitive branch-tree time. Unlike the coarse branch combinator bound, this charges only the instruction selected by the represented selector.

                                                              Equations
                                                              Instances For

                                                                Branch-tree bound for a selector currently represented by selector.

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

                                                                  Complete fixed-program selection and selected-instruction bound.

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

                                                                    Select and execute one RAM instruction, then restore the clean instruction ABI for the successor snapshot.

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

                                                                      Source-head bound available after fixed-program selection and execution.

                                                                      Equations
                                                                      Instances For
                                                                        noncomputable def Complexity.RAM.RegisterStore.Machine.programStepTime {n : } (tapes : ControlInstructionTapes n) (program : Program) (pcValue : ) (store : Store) :

                                                                        Exact compositional time bound for one selected and cleaned RAM step.

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