Charged polynomial workspace reservation #
The outer controller computes its preprocessing word envelope by actual multiplication and decrement instructions. The exponent is fixed with the input-magnitude parameter, not supplied by an oracle. All other controls and every memory cell are preserved by the reservation loop.
Main results #
exec_power: the complete native exponentiation loop and its charged frame.
These finite native reservation proofs are original.
theorem Cslib.Algorithms.WordRAM.ThreeSum.Decision.exec_power {w B E : ℕ} (x : WordRAM.Data 16) (hB : 1 ≤ B) (hs : x.regs scale = B) (hc : x.regs remaining = E) (hv : x.regs envelope = 1) (ho : x.regs one = 1) (hz : x.regs zero = 0) (hfit : WordRAM.Fits w (B ^ E)) (hcount : WordRAM.Fits w E) :
Native exponentiation from the actual loop registers, with all multiplication work charged.