Executing the native ternary reservation #
The forest controller computes its output reservation by actual multiplications and a native countdown. The loop has no supplied exponentiation instruction or resource oracle.
Main results #
reserve_exec: exact native power, loop count, memory frame and register frame.
The controller proof and its charged bound are original.
The power loop changes only its accumulator and countdown.
theorem Cslib.Algorithms.WordRAM.ThreeSum.ChanHe.Preprocessing.reserve_exec {w F : ℕ} (x : WordRAM.Data 128) (hp : x.regs power = 1) (hr : x.regs remaining = F + 1) (hz : x.regs zero = 0) (ho : x.regs one = 1) (hs : x.regs scalar = 3) (hfit : WordRAM.Fits w (3 ^ (F + 1))) :
Actual multiplication and subtraction compute the complete ternary-tree reservation.