A halt instruction is a fixed point of the step
ProvedWilliamsonShmoys.planarRAMStep_of_haltprogram-logicram-model
If the instruction at the program counter of is halt, then .
Halting therefore freezes the machine state.
Formalization Note. is planarRAMRun p s t, the -fold iterate of planarRAMStep p; triples are RAMSpec from Def_WilliamsonShmoys_RAMSpec.
Preamble
import Mathlib import Definitions.Def_WilliamsonShmoys_RAMSpec set_option autoImplicit false open WilliamsonShmoys
Formal statement
theorem WilliamsonShmoys.planarRAMStep_of_halt (program : List PlanarRAMInstruction) (s : PlanarRAMState)
(h : program[s.pc]? = some PlanarRAMInstruction.halt) :
planarRAMStep program s = s := by sorrySource
Program-logic infrastructure for the RAM model of Williamson–Shmoys, The Design of Approximation Algorithms, Theorem 10.11 (mission formalization)