src/HOL/UNITY/Union.thy
author paulson
Tue, 29 Sep 1998 15:58:47 +0200
changeset 5584 aad639e56d4e
parent 5313 1861a564d7e2
child 5596 b29d18d8c4d2
permissions -rw-r--r--
Now id:(Acts prg) is implicit

(*  Title:      HOL/UNITY/Union.thy
    ID:         $Id$
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
    Copyright   1998  University of Cambridge

Unions of programs

From Misra's Chapter 5: Asynchronous Compositions of Programs
*)

Union = SubstAx + FP +

constdefs
   JOIN  :: ['a set, 'a => 'b program] => 'b program
    "JOIN I prg == (|Init  = INT i:I. Init (prg i),
	             Acts0 = UN  i:I. Acts (prg i)|)"

   Join :: ['a program, 'a program] => 'a program
    "Join prgF prgG == (|Init  = Init prgF Int Init prgG,
			 Acts0 = Acts prgF Un Acts prgG|)"

   SKIP :: 'a program
    "SKIP == (|Init = UNIV, Acts0 = {}|)"

syntax
  "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)

translations
  "JN x:A. B"   == "JOIN A (%x. B)"

end