Run additivity
ProvedWilliamsonShmoys.planarRAMRun_addprogram-logicram-model
For every program , state and ,
This is the basic fact used to compose consecutive code fragments.
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_add (program : List PlanarRAMInstruction) (s : PlanarRAMState) (a b : ℕ) :
planarRAMRun program s (a + b) = planarRAMRun program (planarRAMRun program s a) b := by sorrySource
Program-logic infrastructure for the RAM model of Williamson–Shmoys, The Design of Approximation Algorithms, Theorem 10.11 (mission formalization)