src/HOLCF/IOA/Storage/Spec.thy
author paulson
Tue, 05 Sep 2000 10:16:03 +0200
changeset 9841 ca3173f87b5c
parent 6008 d0e9b1619468
child 12218 6597093b77e7
permissions -rw-r--r--
safe_meson_tac -> meson_tac

(*  Title:      HOL/IOA/example/Spec.thy
    ID:         $Id$
    Author:     Olaf Mueller
    Copyright   1997  TU Muenchen

The specification of a memory
*)

Spec = IOA + Action +


consts

spec_sig   :: "action signature"
spec_trans :: "(action, nat set * bool)transition set"
spec_ioa   :: "(action, nat set * bool)ioa"

defs

sig_def "spec_sig == (UN l.{Free l} Un {New}, 
                     UN l.{Loc l}, 
                     {})"

trans_def "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}"

ioa_def "spec_ioa == (spec_sig, {({},False)}, spec_trans,{},{})"

end