src/HOL/UNITY/Union.thy
author paulson
Thu Aug 24 12:39:24 2000 +0200 (2000-08-24)
changeset 9685 6d123a7e30bd
parent 8055 bb15396278fb
child 10064 1a77667b21ef
permissions -rw-r--r--
xsymbols for leads-to and Join
     1 (*  Title:      HOL/UNITY/Union.thy
     2     ID:         $Id$
     3     Author:     Lawrence C Paulson, Cambridge University Computer Laboratory
     4     Copyright   1998  University of Cambridge
     5 
     6 Unions of programs
     7 
     8 Partly from Misra's Chapter 5: Asynchronous Compositions of Programs
     9 *)
    10 
    11 Union = SubstAx + FP +
    12 
    13 constdefs
    14   JOIN  :: ['a set, 'a => 'b program] => 'b program
    15     "JOIN I F == mk_program (INT i:I. Init (F i), UN i:I. Acts (F i))"
    16 
    17   Join :: ['a program, 'a program] => 'a program      (infixl 65)
    18     "F Join G == mk_program (Init F Int Init G, Acts F Un Acts G)"
    19 
    20   SKIP :: 'a program
    21     "SKIP == mk_program (UNIV, {})"
    22 
    23 syntax
    24   "@JOIN1"     :: [pttrns, 'b set] => 'b set         ("(3JN _./ _)" 10)
    25   "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)
    26 
    27 translations
    28   "JN x:A. B"   == "JOIN A (%x. B)"
    29   "JN x y. B"   == "JN x. JN y. B"
    30   "JN x. B"     == "JOIN UNIV (%x. B)"
    31 
    32 syntax (symbols)
    33   SKIP      :: 'a program                              ("\\<bottom>")
    34   "op Join" :: ['a program, 'a program] => 'a program  (infixl "\\<squnion>" 65)
    35   "@JOIN1"  :: [pttrns, 'b set] => 'b set              ("(3\\<Squnion> _./ _)" 10)
    36   "@JOIN"   :: [pttrn, 'a set, 'b set] => 'b set       ("(3\\<Squnion> _:_./ _)" 10)
    37 
    38 end