Documentation

LeanPool.BeyondBethe.Complexitylib.Models.RandomAccessMachine.Simulation.RegisterStore.Machine.Instruction.Tapes

Tape layouts for sparse-register instructions #

Arithmetic and control instruction tape assignments and their injectivity and non-aliasing facts, shared by the concrete instruction machines.

The three arithmetic operations shared by RAM register instructions.

Instances For

    Eighteen pairwise-distinct tapes used by arithmetic followed by sparse update. Slots 0..12 are the update controller, slots 13 and 14 are the operands, and slots 15..17 are multiplication scratch.

    Instances For

      The thirteen-tape sparse-update view.

      Equations
      Instances For

        First looked-up arithmetic operand.

        Equations
        Instances For

          Second looked-up arithmetic operand.

          Equations
          Instances For

            Multiplication's shifted-multiplicand scratch tape.

            Equations
            Instances For

              Multiplication's first alternating scratch tape.

              Equations
              Instances For

                Multiplication's second alternating scratch tape.

                Equations
                Instances For
                  theorem Complexity.RAM.RegisterStore.Machine.BinaryInstructionTapes.ne {n : ℕ} (tapes : BinaryInstructionTapes n) {i j : Fin 18} (hne : i ≠ j) :
                  tapes.idx i ≠ tapes.idx j

                  Parent-slot inequality gives physical tape inequality.

                  Parent slots for a reusable lookup whose destination is lhs.

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

                    Reusable sparse lookup view targeting the first operand.

                    Equations
                    Instances For

                      Parent slots for a reusable lookup whose destination is rhs.

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

                        Reusable sparse lookup view targeting the second operand.

                        Equations
                        Instances For

                          Parent slots for a loaded indirect read. The first operand supplies the runtime address and the update replacement tape receives the loaded value.

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

                            Multiplication-role parent slots. The accumulator deliberately aliases the update replacement slot 10.

                            Equations
                            Instances For

                              Six-tape multiplication view, with its accumulator on update replacement.

                              Equations
                              Instances For

                                The addition/subtraction operands and result are pairwise distinct.

                                The same physical inequalities as a subtraction certificate.

                                The arithmetic/store ABI together with one disjoint canonical program- counter tape. Nineteen work tapes suffice for every RAM instruction.

                                • The complete data-instruction assignment.

                                • pc : Fin n

                                  Canonical binary program counter.

                                • pc_ne (slot : Fin 18) : self.pc ≠ self.data.idx slot

                                  The program counter aliases no data-instruction role.

                                Instances For

                                  Every data-instruction role is distinct from the program counter.

                                  The first loaded operand is distinct from the program counter.

                                  The program counter is distinct from the first loaded operand.

                                  No tape owned by the first lookup aliases the program counter.