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
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@5804
     8
Partly 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@5648
    14
  JOIN  :: ['a set, 'a => 'b program] => 'b program
paulson@6295
    15
    "JOIN I F == mk_program (INT i:I. Init (F i), UN i:I. Acts (F i))"
paulson@5252
    16
paulson@5648
    17
  Join :: ['a program, 'a program] => 'a program      (infixl 65)
paulson@6295
    18
    "F Join G == mk_program (Init F Int Init G, Acts F Un Acts G)"
paulson@5252
    19
paulson@6295
    20
  SKIP :: 'a program
paulson@6295
    21
    "SKIP == mk_program (UNIV, {})"
paulson@5259
    22
paulson@5313
    23
syntax
paulson@7359
    24
  "@JOIN1"     :: [pttrns, 'b set] => 'b set         ("(3JN _./ _)" 10)
paulson@5313
    25
  "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)
paulson@5313
    26
paulson@5313
    27
translations
paulson@5313
    28
  "JN x:A. B"   == "JOIN A (%x. B)"
paulson@7359
    29
  "JN x y. B"   == "JN x. JN y. B"
paulson@7359
    30
  "JN x. B"     == "JOIN UNIV (%x. B)"
paulson@5313
    31
paulson@9685
    32
syntax (symbols)
paulson@9685
    33
  SKIP      :: 'a program                              ("\\<bottom>")
paulson@9685
    34
  "op Join" :: ['a program, 'a program] => 'a program  (infixl "\\<squnion>" 65)
paulson@9685
    35
  "@JOIN1"  :: [pttrns, 'b set] => 'b set              ("(3\\<Squnion> _./ _)" 10)
paulson@9685
    36
  "@JOIN"   :: [pttrn, 'a set, 'b set] => 'b set       ("(3\\<Squnion> _:_./ _)" 10)
paulson@9685
    37
paulson@5252
    38
end