Documentation

CslibFrontier.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.StackMemory

Readback of the actual native query frontier #

Each pending prefix is represented by its five computed scalar fields via Cslib.WordRAM.RecordSpec and Cslib.WordRAM.WordStack.Holds. List heads occupy the top physical record, so the native push prepends a task and pop removes that head.

@[reducible, inline]

Five-word flat memory specification of one pending prefix xs : List Term under η.

@[reducible, inline]

Pending logical prefixes in top-first order, with no initial-zero-memory premise.

theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.StackMemory.transport {L F : ℕ} {η : MatrixMultiplication.Schonhage.OutStr L} {tasks : List (List MatrixMultiplication.Schonhage.Term)} {μ ν : ℕ → ℕ} (h : StackMemory η F tasks μ) (hf : ∀ (q : ℕ), F ≤ q → q < F + 5 * tasks.length → ν q = μ q) :
StackMemory η F tasks ν

Changes outside the occupied stack prefix preserve every pending task.

Appending the actual five computed fields prepends precisely that logical task.

Registers modified while popping a five-word prefix task.

Instances For

    Pop the occupied top prefix task xs from StackMemory η F (xs :: rest) in twelve native instructions, loading its five scalar fields and preserving the remaining stack rest.