src/HOL/UNITY/Union.thy
author paulson
Mon Oct 05 10:22:49 1998 +0200 (1998-10-05)
changeset 5611 6957f124ca97
parent 5596 b29d18d8c4d2
child 5648 fe887910e32e
permissions -rw-r--r--
Join now an infix operator
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@5611
    15
    "JOIN I F == mk_program (INT i:I. Init (F i), UN i:I. Acts (F i))"
paulson@5252
    16
paulson@5611
    17
   Join :: ['a program, 'a program] => 'a program      (infixl 65)
paulson@5611
    18
    "F Join G == mk_program (Init F Int Init G, Acts F Un Acts G)"
paulson@5252
    19
paulson@5584
    20
   SKIP :: 'a program
paulson@5596
    21
    "SKIP == mk_program (UNIV, {})"
paulson@5259
    22
paulson@5313
    23
syntax
paulson@5313
    24
  "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)
paulson@5313
    25
paulson@5313
    26
translations
paulson@5313
    27
  "JN x:A. B"   == "JOIN A (%x. B)"
paulson@5313
    28
paulson@5252
    29
end