Actual root-task initialization #
The reusable query computes its stack base immediately after the retained compact table, resets its accumulator and constants, and writes all five root fields before the first native pop. Dirty stack memory and arbitrary old temporaries are supported.
theorem Cslib.Algorithms.WordRAM.MatrixMultiplication.Schonhage.BoxQuery.exec_setup {w L t Q AA BB D V K : ℕ} (x : WordRAM.Data registers) (η : MatrixMultiplication.Schonhage.OutStr L) (hL : x.regs BoxTable.Reg.levels = L) (ht : x.regs BoxTable.Reg.threshold = t) (hT : x.regs BoxTable.Reg.span = 10 ^ L) (hQ : x.regs Reg.query = Q) (hA : x.regs BoxTable.Reg.arrayA = AA) (hB : x.regs BoxTable.Reg.arrayB = BB) (hD : x.regs BoxTable.Reg.directory = D) (hV : x.regs BoxTable.Reg.values = V) (hK : x.regs BoxTable.Reg.count = K) (hfit : WordRAM.Fits w (V + K + 20)) :
∃ (y : WordRAM.Data registers),
WordRAM.ExecWithin w setup x y 26 ∧ Parameters L t Q AA BB D V K (V + K) y ∧ y.regs Reg.top = 1 ∧ y.regs Reg.answer = WordRAM.Signed.encode 0 ∧ StackMemory η (V + K) [[]] y.mem ∧ y.mem = writeTask (V + K) 0 0 0 0 0 1 x.mem
Complete actual query setup with a real initialized root and exact memory frame.