Actual initialized Strassen root and power call #
The existing native Power.program computes 4^L; a real multiplication by p computes the
coefficient-array length. Actual additions locate the root frame, and all its fields are
stored. Only original numeric parameters occur in the admission bound. No power, stack
layout, initialized scratch or intermediate execution certificate is supplied.
theorem Cslib.Algorithms.WordRAM.Strassen.exec_setup {w : ℕ} (x : WordRAM.Data 64) (hw :
WordRAM.Fits w
(x.regs Reg.scratch + x.regs Reg.modulus * 4 ^ x.regs Reg.depth + 4 ^ x.regs Reg.depth + x.regs Reg.depth + 16)) :
∃ (y : WordRAM.Data 64),
WordRAM.ExecWithin w setup x y (4 * x.regs Reg.depth + 30) ∧ y.regs Reg.size = x.regs Reg.modulus * 4 ^ x.regs Reg.depth ∧ y.regs Reg.frames = x.regs Reg.scratch + x.regs Reg.modulus * 4 ^ x.regs Reg.depth ∧ y.regs Reg.frame = y.regs Reg.frames ∧ y.regs Reg.phase = 0 ∧ y.regs Reg.active = 1 ∧ y.regs Reg.zero = 0 ∧ y.regs Reg.one = 1 ∧ y.regs Reg.four = 4 ∧ y.regs Reg.frameWidth = 7 ∧ (∀ i ∈ [Reg.inputA, Reg.inputB, Reg.output, Reg.scratch, Reg.depth, Reg.modulus],
y.regs i = x.regs i) ∧ (∀ (j : Fin 7), y.mem (y.regs Reg.frame + ↑j) = y.regs (field j)) ∧ ∀ (a : ℕ), a < y.regs Reg.frame ∨ y.regs Reg.frame + 7 ≤ a → y.mem a = x.mem a
Compute the runtime length, constants and explicit root frame in at most 4L+30
instructions, including the actual power call and every frame store.