Consequence rule for timed triples
ProvedWilliamsonShmoys.RAMSpec.consequenceprogram-logicram-model
If , , and , then .
It allows strengthening preconditions, weakening postconditions and relaxing time bounds.
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.RAMSpec.consequence (program : List PlanarRAMInstruction)
(P P' Q Q' : PlanarRAMState → Prop) (t t' : ℕ)
(h : RAMSpec program P Q t) (hP : ∀ s, P' s → P s) (hQ : ∀ s, Q s → Q' s) (ht : t ≤ t') :
RAMSpec program P' Q' t' := by sorrySource
Program-logic infrastructure for the RAM model of Williamson–Shmoys, The Design of Approximation Algorithms, Theorem 10.11 (mission formalization)