src/HOL/UNITY/Union.thy
author paulson
Thu Oct 15 11:35:07 1998 +0200 (1998-10-15)
changeset 5648 fe887910e32e
parent 5611 6957f124ca97
child 5804 8e0a4c4fd67b
permissions -rw-r--r--
specifications as sets of programs
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@5648
    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@5648
    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@5648
    20
  SKIP :: 'a program
paulson@5596
    21
    "SKIP == mk_program (UNIV, {})"
paulson@5259
    22
paulson@5648
    23
  Diff :: "['a program, ('a * 'a)set set] => 'a program"
paulson@5648
    24
    "Diff F acts == mk_program (Init F, Acts F - acts)"
paulson@5648
    25
paulson@5648
    26
  (*The set of systems that regard "f" as local to F*)
paulson@5648
    27
  localTo :: ['a => 'b, 'a program] => 'a program set  (infixl 80)
paulson@5648
    28
    "f localTo F == {G. ALL z. Diff G (Acts F) : stable {s. f s = z}}"
paulson@5648
    29
paulson@5313
    30
syntax
paulson@5313
    31
  "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)
paulson@5313
    32
paulson@5313
    33
translations
paulson@5313
    34
  "JN x:A. B"   == "JOIN A (%x. B)"
paulson@5313
    35
paulson@5252
    36
end