src/HOL/UNITY/Union.thy
changeset 5804 8e0a4c4fd67b
parent 5648 fe887910e32e
child 6012 1894bfc4aee9
equal deleted inserted replaced
5803:06af82bec2f1 5804:8e0a4c4fd67b
     3     Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
     3     Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
     4     Copyright   1998  University of Cambridge
     4     Copyright   1998  University of Cambridge
     5 
     5 
     6 Unions of programs
     6 Unions of programs
     7 
     7 
     8 From Misra's Chapter 5: Asynchronous Compositions of Programs
     8 Partly from Misra's Chapter 5: Asynchronous Compositions of Programs
     9 *)
     9 *)
    10 
    10 
    11 Union = SubstAx + FP +
    11 Union = SubstAx + FP +
    12 
    12 
    13 constdefs
    13 constdefs
    21     "SKIP == mk_program (UNIV, {})"
    21     "SKIP == mk_program (UNIV, {})"
    22 
    22 
    23   Diff :: "['a program, ('a * 'a)set set] => 'a program"
    23   Diff :: "['a program, ('a * 'a)set set] => 'a program"
    24     "Diff F acts == mk_program (Init F, Acts F - acts)"
    24     "Diff F acts == mk_program (Init F, Acts F - acts)"
    25 
    25 
    26   (*The set of systems that regard "f" as local to F*)
    26   (*The set of systems that regard "v" as local to F*)
    27   localTo :: ['a => 'b, 'a program] => 'a program set  (infixl 80)
    27   localTo :: ['a => 'b, 'a program] => 'a program set  (infixl 80)
    28     "f localTo F == {G. ALL z. Diff G (Acts F) : stable {s. f s = z}}"
    28     "v localTo F == {G. ALL z. Diff G (Acts F) : stable {s. v s = z}}"
       
    29 
       
    30   (*Two programs with disjoint actions, except for Id (idling)*)
       
    31   Disjoint :: ['a program, 'a program] => bool
       
    32     "Disjoint F G == Acts F Int Acts G <= {Id}"
    29 
    33 
    30 syntax
    34 syntax
    31   "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)
    35   "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)
    32 
    36 
    33 translations
    37 translations