One RAM step executes the instruction at the program counter
ProvedWilliamsonShmoys.planarRAMStep_eq_execInstrIf the instruction of program at the program counter of state is ins, then
This turns reasoning about runs into reasoning about explicit instruction effects, one instruction at a time.
Formalization Note. Uses execInstr and CodeAt from Def_WilliamsonShmoys_RAMExec.
Preamble
import Mathlib import Definitions.Def_WilliamsonShmoys_RAMExec set_option autoImplicit false open WilliamsonShmoys PlanarRAMInstruction
Formal statement
theorem WilliamsonShmoys.planarRAMStep_eq_execInstr (p : List PlanarRAMInstruction) (s : PlanarRAMState) (ins : PlanarRAMInstruction)
(h : p[s.pc]? = some ins) : planarRAMStep p s = execInstr ins s := by sorry