src/HOLCF/IOA/Storage/Spec.thy
author webertj
Fri, 14 Aug 2009 13:44:14 +0100
changeset 32369 04af689ce721
parent 27361 24ec32bee347
child 35174 e15040ae75d7
permissions -rw-r--r--
Fixed a bug where the simplifier would hang on lemma "f a = M { nat j |j. 0 <= j & j < f b}" pre_decomp/pre_tac no longer split terms that contain (non-locally) bound variables (e.g., "nat j" in the above example).

(*  Title:      HOL/IOA/example/Spec.thy
    ID:         $Id$
    Author:     Olaf Müller
*)

header {* The specification of a memory *}

theory Spec
imports IOA Action
begin

definition
  spec_sig :: "action signature" where
  "spec_sig = (UN l.{Free l} Un {New},
               UN l.{Loc l},
               {})"

definition
  spec_trans :: "(action, nat set * bool)transition set" where
  "spec_trans =
   {tr. let s = fst(tr); used = fst s; c = snd s;
            t = snd(snd(tr)); used' = fst t; c' = snd t
        in
        case fst(snd(tr))
        of
        New       => used' = used & c'  |
        Loc l     => c & l~:used  & used'= used Un {l} & ~c'   |
        Free l    => used'=used - {l} & c'=c}"

definition
  spec_ioa :: "(action, nat set * bool)ioa" where
  "spec_ioa = (spec_sig, {({},False)}, spec_trans,{},{})"

end