Reusable lookup tape layout and scratch encodings #
The fourteen-tape lookup assignment, fixed reset targets, width bounds, and found/missing bit encodings used by the reusable lookup controller.
Fourteen pairwise-distinct tapes for a reusable sparse operand lookup.
Slots 0..9 are the bounded scanner; the final four slots preserve the entry
count, supply the query, receive the value, and provide zero copy scratch.
Physical work tape assigned to each logical lookup role.
- injective : Function.Injective self.idx
Distinct logical lookup roles occupy distinct physical tapes.
Instances For
Bounded scanner view of the reusable lookup assignment.
Equations
Instances For
Preserved canonical copy of the store cardinality.
Equations
- tapes.countSource = tapes.idx 10
Instances For
Canonical address supplied to this lookup.
Equations
- tapes.querySource = tapes.idx 11
Instances For
Canonical destination receiving the looked-up register value.
Equations
- tapes.destination = tapes.idx 12
Instances For
Preserved zero tape used by width-linear binary copying.
Equations
- tapes.copyScratch = tapes.idx 13
Instances For
Inequality of logical slots gives inequality of physical tapes.
Logical parent slots reset after one lookup.
Equations
- Complexity.RAM.RegisterStore.Machine.EntryLookupRestoreTapes.resetSlot slot = match ↑slot with | 0 => 1 | 1 => 2 | 2 => 3 | 3 => 4 | 4 => 5 | 5 => 6 | 6 => 8 | 7 => 7 | x => 9
Instances For
Physical reset target selected by a finite logical slot.
Equations
- tapes.resetIdx slot = tapes.idx (Complexity.RAM.RegisterStore.Machine.EntryLookupRestoreTapes.resetSlot slot)
Instances For
Scanner-owned tapes reset after copying out a lookup result. The encoded source is deliberately excluded because it is read-only and merely rewound.
Equations
Instances For
Width envelope for every binary scratch value at a successful hit on one entry.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Width envelope contributed by possible hit entries in a complete store.
Equations
Instances For
Width envelope for every hit or miss reset target in a complete store.
Equations
- Complexity.RAM.RegisterStore.Machine.entryLookupResetWidth store address = max (List.length store).bits.length (Complexity.RAM.RegisterStore.Machine.entryLookupStoreWidth address store)
Instances For
Exact reset contents at a successful lookup endpoint.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Exact reset contents at an unsuccessful lookup endpoint.