author | paulson |
Thu, 15 Oct 1998 11:35:07 +0200 | |
changeset 5648 | fe887910e32e |
parent 5611 | 6957f124ca97 |
child 5804 | 8e0a4c4fd67b |
permissions | -rw-r--r-- |
5252 | 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 |
From Misra's Chapter 5: Asynchronous Compositions of Programs |
|
9 |
*) |
|
10 |
||
11 |
Union = SubstAx + FP + |
|
12 |
||
13 |
constdefs |
|
5648 | 14 |
JOIN :: ['a set, 'a => 'b program] => 'b program |
5611 | 15 |
"JOIN I F == mk_program (INT i:I. Init (F i), UN i:I. Acts (F i))" |
5252 | 16 |
|
5648 | 17 |
Join :: ['a program, 'a program] => 'a program (infixl 65) |
5611 | 18 |
"F Join G == mk_program (Init F Int Init G, Acts F Un Acts G)" |
5252 | 19 |
|
5648 | 20 |
SKIP :: 'a program |
5596 | 21 |
"SKIP == mk_program (UNIV, {})" |
5259 | 22 |
|
5648 | 23 |
Diff :: "['a program, ('a * 'a)set set] => 'a program" |
24 |
"Diff F acts == mk_program (Init F, Acts F - acts)" |
|
25 |
||
26 |
(*The set of systems that regard "f" as local to F*) |
|
27 |
localTo :: ['a => 'b, 'a program] => 'a program set (infixl 80) |
|
28 |
"f localTo F == {G. ALL z. Diff G (Acts F) : stable {s. f s = z}}" |
|
29 |
||
5313
1861a564d7e2
Constrains, Stable, Invariant...more of the substitution axiom, but Union
paulson
parents:
5259
diff
changeset
|
30 |
syntax |
1861a564d7e2
Constrains, Stable, Invariant...more of the substitution axiom, but Union
paulson
parents:
5259
diff
changeset
|
31 |
"@JOIN" :: [pttrn, 'a set, 'b set] => 'b set ("(3JN _:_./ _)" 10) |
1861a564d7e2
Constrains, Stable, Invariant...more of the substitution axiom, but Union
paulson
parents:
5259
diff
changeset
|
32 |
|
1861a564d7e2
Constrains, Stable, Invariant...more of the substitution axiom, but Union
paulson
parents:
5259
diff
changeset
|
33 |
translations |
1861a564d7e2
Constrains, Stable, Invariant...more of the substitution axiom, but Union
paulson
parents:
5259
diff
changeset
|
34 |
"JN x:A. B" == "JOIN A (%x. B)" |
1861a564d7e2
Constrains, Stable, Invariant...more of the substitution axiom, but Union
paulson
parents:
5259
diff
changeset
|
35 |
|
5252 | 36 |
end |