Sequencing rule for timed triples
ProvedWilliamsonShmoys.RAMSpec.seqprogram-logicram-model
If and , then
This is the composition rule for consecutive code fragments of one program; the costs add.
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.seq (program : List PlanarRAMInstruction) (P Q R : PlanarRAMState → Prop)
(t₁ t₂ : ℕ) (h₁ : RAMSpec program P Q t₁) (h₂ : RAMSpec program Q R t₂) :
RAMSpec program P R (t₁ + t₂) := by sorrySource
Program-logic infrastructure for the RAM model of Williamson–Shmoys, The Design of Approximation Algorithms, Theorem 10.11 (mission formalization)