Actual five-word query-stack operations #
Every pushed task writes all five words before a pop can read them. The caller may
start with dirty stack memory. These execution lemmas instantiate Cslib.WordRAM.writeWords
and Cslib.WordRAM.WordStack to charge the address arithmetic, stores, loads and top update,
and preserve all other memory and registers.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.writeTask_read (F n k c u e p : ℕ) (μ : ℕ → ℕ) :
The new task's descriptor is exactly the five words supplied by the computed child.
def Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.PushLocal (i : Fin registers) :
Registers modified by one real task push.
Instances For
@[reducible, inline]
Source field registers of push.
@[reducible, inline]
Target field registers of pop.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.push_preserves (i : Fin registers) :
A push preserves every register outside PushLocal.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.exec_push {w F n k c u e p : ℕ} (x : WordRAM.Data registers) (hF : x.regs Reg.stack = F) (hn : x.regs Reg.top = n) (hk : x.regs Reg.depth = k) (hc : x.regs Reg.childCode = c) (hu : x.regs Reg.childUsed = u) (he : x.regs Reg.childStars = e) (hp : x.regs Reg.childPower = p) (h5 : x.regs Reg.five = 5) (h1 : x.regs BoxTable.Reg.one = 1) (hfit : WordRAM.Fits w (F + 5 * (n + 1) + 8)) :
Store and append one complete task within twelve native instructions.