Halted states are stable
ProvedWilliamsonShmoys.planarRAMRun_of_haltprogram-logicram-model
If the instruction at the program counter of is halt, then for every ,
So once a program has halted, running longer changes nothing; this lets a time bound be padded freely.
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.planarRAMRun_of_halt (program : List PlanarRAMInstruction) (s : PlanarRAMState)
(h : program[s.pc]? = some PlanarRAMInstruction.halt) (t : ℕ) :
planarRAMRun program s t = s := by sorrySource
Program-logic infrastructure for the RAM model of Williamson–Shmoys, The Design of Approximation Algorithms, Theorem 10.11 (mission formalization)