Documentation

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

Concrete sparse-store arithmetic instruction kernel #

This layer joins the width-efficient arithmetic machines to encoded sparse update. The destination address and two looked-up operands are supplied on canonical work tapes; the arithmetic result is written directly to the update controller's replacement tape, so no value-sized bridge is hidden between the two phases.

Concrete arithmetic phase selected in finite control.

Equations
Instances For
    structure Complexity.RAM.RegisterStore.Machine.BinaryInstructionArithmeticResult {n : ℕ} (tapes : BinaryInstructionTapes n) (op : BinaryInstrOp) (lhs rhs : ℕ) (initialWork finalWork : Fin n → Tape) :

    Uniform endpoint of the selected arithmetic phase.

    Instances For
      def Complexity.RAM.RegisterStore.Machine.BinaryInstructionUpdateResult {n : ℕ} (tapes : BinaryInstructionTapes n) (op : BinaryInstrOp) (store : Store) (address lhs rhs : ℕ) (initialWork finalWork : Fin n → Tape) :

      Uniform endpoint of arithmetic followed by encoded sparse update.

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

        Arithmetic followed immediately by the fixed sparse update controller.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          def Complexity.RAM.RegisterStore.Machine.directBinaryInstructionTM {n : ℕ} (tapes : BinaryInstructionTapes n) (op : BinaryInstrOp) (destination source₀ source₁ : ℕ) :
          TM n

          Load two direct register operands, prepare the direct destination address, then run arithmetic and sparse update.

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

            Load an address register, perform the loaded indirect read into the update replacement tape, synthesize the direct destination, and update the store.

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

              Synthesize an immediate value and direct destination, then update the sparse store.

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

                Load the indirect destination and direct source, copy both into the update ABI, and update the sparse store.

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

                  Replace the canonical binary program counter by a fixed literal.

                  Equations
                  Instances For

                    Conditional-zero control instruction. The fixed sparse read is cleared after branching so the reusable lookup ABI is restored at the endpoint.

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

                      Halt is represented by a one-step exact no-op instruction kernel. The outer run controller detects halt before beginning another iteration.

                      Equations
                      Instances For
                        structure Complexity.RAM.RegisterStore.Machine.ControlInstructionReady {n : ℕ} (tapes : ControlInstructionTapes n) (store : Store) (pcValue : ℕ) (work : Fin n → Tape) :

                        Canonical entry boundary for a control instruction.

                        Instances For
                          structure Complexity.RAM.RegisterStore.Machine.ControlInstructionResult {n : ℕ} (tapes : ControlInstructionTapes n) (store : Store) (pcValue : ℕ) (initialWork finalWork : Fin n → Tape) :

                          Semantic endpoint shared by the three control-only instruction forms.

                          Instances For

                            Runtime for replacing a canonical program counter by a literal.

                            Equations
                            Instances For

                              Runtime for conditional-zero control, including lookup and operand reset.

                              Equations
                              • One or more equations did not get rendered due to their size.
                              Instances For
                                def Complexity.RAM.RegisterStore.Machine.DirectBinaryOperandsResult {n : ℕ} (tapes : BinaryInstructionTapes n) (store : Store) (source₀ source₁ : ℕ) (initialWork finalWork : Fin n → Tape) :

                                Boundary after the two direct source-register lookups.

                                Equations
                                • One or more equations did not get rendered due to their size.
                                Instances For
                                  def Complexity.RAM.RegisterStore.Machine.DirectBinaryAddressResult {n : ℕ} (tapes : BinaryInstructionTapes n) (store : Store) (destination source₀ source₁ : ℕ) (initialWork finalWork : Fin n → Tape) :

                                  Boundary after the direct destination literal has been synthesized on the update query tape.

                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For
                                    structure Complexity.RAM.RegisterStore.Machine.DirectBinaryUpdateReady {n : ℕ} (tapes : BinaryInstructionTapes n) (store : Store) (destination source₀ source₁ : ℕ) (work : Fin n → Tape) :

                                    Exact update-controller ABI established by the lookup and address-loading prefix of a direct arithmetic instruction.

                                    Instances For
                                      def Complexity.RAM.RegisterStore.Machine.DirectBinaryInstructionResult {n : ℕ} (tapes : BinaryInstructionTapes n) (op : BinaryInstrOp) (store : Store) (destination source₀ source₁ : ℕ) (initialWork finalWork : Fin n → Tape) :

                                      Semantic endpoint of a complete direct arithmetic instruction.

                                      Equations
                                      • One or more equations did not get rendered due to their size.
                                      Instances For
                                        def Complexity.RAM.RegisterStore.Machine.IndirectLoadInstructionResult {n : ℕ} (tapes : BinaryInstructionTapes n) (store : Store) (destination addressRegister : ℕ) (initialWork finalWork : Fin n → Tape) :

                                        Semantic endpoint of a complete indirect load.

                                        Equations
                                        • One or more equations did not get rendered due to their size.
                                        Instances For
                                          def Complexity.RAM.RegisterStore.Machine.ImmediateInstructionResult {n : ℕ} (tapes : BinaryInstructionTapes n) (store : Store) (destination value : ℕ) (initialWork finalWork : Fin n → Tape) :

                                          Semantic endpoint of one immediate assignment.

                                          Equations
                                          • One or more equations did not get rendered due to their size.
                                          Instances For
                                            def Complexity.RAM.RegisterStore.Machine.IndirectStoreInstructionResult {n : ℕ} (tapes : BinaryInstructionTapes n) (store : Store) (addressRegister source : ℕ) (initialWork finalWork : Fin n → Tape) :

                                            Semantic endpoint of one indirect store.

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

                                              Complete arithmetic-plus-update budget, including the composition seam.

                                              Equations
                                              • One or more equations did not get rendered due to their size.
                                              Instances For
                                                def Complexity.RAM.RegisterStore.Machine.directBinaryInstructionTime {n : ℕ} (tapes : BinaryInstructionTapes n) (op : BinaryInstrOp) (store : Store) (destination source₀ source₁ : ℕ) :

                                                Complete direct arithmetic-instruction budget.

                                                Equations
                                                • One or more equations did not get rendered due to their size.
                                                Instances For
                                                  def Complexity.RAM.RegisterStore.Machine.indirectLoadInstructionTime {n : ℕ} (tapes : BinaryInstructionTapes n) (store : Store) (destination addressRegister : ℕ) :

                                                  Complete indirect-load instruction budget.

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

                                                    Complete immediate-assignment instruction budget.

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

                                                      Complete indirect-store instruction budget.

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