src/HOL/UNITY/Union.thy
author paulson
Tue Sep 29 15:58:47 1998 +0200 (1998-09-29)
changeset 5584 aad639e56d4e
parent 5313 1861a564d7e2
child 5596 b29d18d8c4d2
permissions -rw-r--r--
Now id:(Acts prg) is implicit
paulson@5252
     1
(*  Title:      HOL/UNITY/Union.thy
paulson@5252
     2
    ID:         $Id$
paulson@5252
     3
    Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
paulson@5252
     4
    Copyright   1998  University of Cambridge
paulson@5252
     5
paulson@5252
     6
Unions of programs
paulson@5252
     7
paulson@5252
     8
From Misra's Chapter 5: Asynchronous Compositions of Programs
paulson@5252
     9
*)
paulson@5252
    10
paulson@5252
    11
Union = SubstAx + FP +
paulson@5252
    12
paulson@5252
    13
constdefs
paulson@5313
    14
   JOIN  :: ['a set, 'a => 'b program] => 'b program
paulson@5584
    15
    "JOIN I prg == (|Init  = INT i:I. Init (prg i),
paulson@5584
    16
	             Acts0 = UN  i:I. Acts (prg i)|)"
paulson@5252
    17
paulson@5259
    18
   Join :: ['a program, 'a program] => 'a program
paulson@5584
    19
    "Join prgF prgG == (|Init  = Init prgF Int Init prgG,
paulson@5584
    20
			 Acts0 = Acts prgF Un Acts prgG|)"
paulson@5252
    21
paulson@5584
    22
   SKIP :: 'a program
paulson@5584
    23
    "SKIP == (|Init = UNIV, Acts0 = {}|)"
paulson@5259
    24
paulson@5313
    25
syntax
paulson@5313
    26
  "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)
paulson@5313
    27
paulson@5313
    28
translations
paulson@5313
    29
  "JN x:A. B"   == "JOIN A (%x. B)"
paulson@5313
    30
paulson@5252
    31
end