src/HOL/UNITY/Union.thy
author paulson
Mon Mar 01 18:38:43 1999 +0100 (1999-03-01)
changeset 6295 351b3c2b0d83
parent 6012 1894bfc4aee9
child 7359 98a2afab3f86
permissions -rw-r--r--
removed the infernal States, eqStates, compatible, etc.
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@5648
    23
  Diff :: "['a program, ('a * 'a)set set] => 'a program"
paulson@6295
    24
    "Diff F acts == mk_program (Init F, Acts F - acts)"
paulson@5648
    25
paulson@5804
    26
  (*The set of systems that regard "v" as local to F*)
paulson@5648
    27
  localTo :: ['a => 'b, 'a program] => 'a program set  (infixl 80)
paulson@5804
    28
    "v localTo F == {G. ALL z. Diff G (Acts F) : stable {s. v s = z}}"
paulson@5804
    29
paulson@6012
    30
  (*Two programs with disjoint actions, except for identity actions *)
paulson@5804
    31
  Disjoint :: ['a program, 'a program] => bool
paulson@6295
    32
    "Disjoint F G == Acts F Int Acts G <= {Id}"
paulson@5648
    33
paulson@5313
    34
syntax
paulson@5313
    35
  "@JOIN"      :: [pttrn, 'a set, 'b set] => 'b set  ("(3JN _:_./ _)" 10)
paulson@5313
    36
paulson@5313
    37
translations
paulson@5313
    38
  "JN x:A. B"   == "JOIN A (%x. B)"
paulson@5313
    39
paulson@5252
    40
end