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.
- add : BinaryInstrOp
- sub : BinaryInstrOp
- mul : BinaryInstrOp
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.
Complete injective physical assignment.
- injective : Function.Injective self.idx
No two semantic roles alias.
Instances For
The thirteen-tape sparse-update view.
Instances For
First looked-up arithmetic operand.
Instances For
Second looked-up arithmetic operand.
Instances For
Multiplication's shifted-multiplicand scratch tape.
Instances For
Multiplication's first alternating scratch tape.
Instances For
Multiplication's second alternating scratch tape.
Instances For
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
Reusable loaded lookup view for indirect load.
Equations
- tapes.indirectLoadLookup = { idx := fun (i : Fin 14) => tapes.idx (Complexity.RAM.RegisterStore.Machine.BinaryInstructionTapes.indirectLoadLookupSlot i), injective := ⋯ }
Instances For
Multiplication-role parent slots. The accumulator deliberately aliases the
update replacement slot 10.
Equations
- Complexity.RAM.RegisterStore.Machine.BinaryInstructionTapes.mulSlot i = match ↑i with | 0 => 13 | 1 => 14 | 2 => 10 | 3 => 15 | 4 => 16 | x => 17
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.
- data : BinaryInstructionTapes n
The complete data-instruction assignment.
- pc : Fin n
Canonical binary program counter.
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.