Library ConcreteExecutionFacts

Require Export ConcreteExecution.

Facts about specific concrete mutators


Definition cupdate_store_(f: store -> store): cmutatora store :=
  fun st => let (s, h) := st in
  single (f s, h) s.

Lemma cwith_store_covers_cupdate_store_ s A (C: cmutatora A):
  cwith_store s C ==> s0 <- cupdate_store_ (fun _ => s); C;, cupdate_store_ (fun _ => s0).

Lemma cupdate_store__covers_cwith_store s A (C: cmutatora A):
  s0 <- cupdate_store_ (fun _ => s); C;, cupdate_store_ (fun _ => s0) ==> cwith_store s C.