| author | kleing |
| Mon, 16 May 2005 09:35:05 +0200 | |
| changeset 15964 | f2074e12d1d4 |
| parent 14981 | e73f8140af78 |
| child 17233 | 41eee2e7b465 |
| permissions | -rw-r--r-- |
| 4565 | 1 |
(* Title: HOLCF/IOA/meta_theory/Simulations.thy |
2 |
ID: $Id$ |
|
| 12218 | 3 |
Author: Olaf Müller |
| 4565 | 4 |
|
| 12218 | 5 |
Simulations in HOLCF/IOA. |
| 4565 | 6 |
*) |
7 |
||
8 |
Simulations = RefCorrectness + |
|
9 |
||
|
12338
de0f4a63baa5
renamed class "term" to "type" (actually "HOL.type");
wenzelm
parents:
12218
diff
changeset
|
10 |
default type |
| 4565 | 11 |
|
12 |
consts |
|
13 |
||
14 |
is_simulation ::"[('s1 * 's2)set,('a,'s1)ioa,('a,'s2)ioa] => bool"
|
|
15 |
is_backward_simulation ::"[('s1 * 's2)set,('a,'s1)ioa,('a,'s2)ioa] => bool"
|
|
16 |
is_forw_back_simulation ::"[('s1 * 's2 set)set,('a,'s1)ioa,('a,'s2)ioa] => bool"
|
|
17 |
is_back_forw_simulation ::"[('s1 * 's2 set)set,('a,'s1)ioa,('a,'s2)ioa] => bool"
|
|
18 |
is_history_relation ::"[('s1 * 's2)set,('a,'s1)ioa,('a,'s2)ioa] => bool"
|
|
19 |
is_prophecy_relation ::"[('s1 * 's2)set,('a,'s1)ioa,('a,'s2)ioa] => bool"
|
|
20 |
||
21 |
defs |
|
22 |
||
23 |
is_simulation_def |
|
24 |
"is_simulation R C A == |
|
| 10835 | 25 |
(!s:starts_of C. R``{s} Int starts_of A ~= {}) &
|
| 4565 | 26 |
(!s s' t a. reachable C s & |
27 |
s -a--C-> t & |
|
28 |
(s,s') : R |
|
29 |
--> (? t' ex. (t,t'):R & move A ex s' a t'))" |
|
30 |
||
31 |
is_backward_simulation_def |
|
32 |
"is_backward_simulation R C A == |
|
| 10835 | 33 |
(!s:starts_of C. R``{s} <= starts_of A) &
|
| 4565 | 34 |
(!s t t' a. reachable C s & |
35 |
s -a--C-> t & |
|
36 |
(t,t') : R |
|
37 |
--> (? ex s'. (s,s'):R & move A ex s' a t'))" |
|
38 |
||
39 |
is_forw_back_simulation_def |
|
40 |
"is_forw_back_simulation R C A == |
|
41 |
(!s:starts_of C. ? S'. (s,S'):R & S'<= starts_of A) & |
|
42 |
(!s S' t a. reachable C s & |
|
43 |
s -a--C-> t & |
|
44 |
(s,S') : R |
|
45 |
--> (? T'. (t,T'):R & (! t':T'. ? s':S'. ? ex. move A ex s' a t')))" |
|
46 |
||
47 |
is_back_forw_simulation_def |
|
48 |
"is_back_forw_simulation R C A == |
|
49 |
(!s:starts_of C. ! S'. (s,S'):R --> S' Int starts_of A ~={}) &
|
|
50 |
(!s t T' a. reachable C s & |
|
51 |
s -a--C-> t & |
|
52 |
(t,T') : R |
|
53 |
--> (? S'. (s,S'):R & (! s':S'. ? t':T'. ? ex. move A ex s' a t')))" |
|
54 |
||
55 |
is_history_relation_def |
|
56 |
"is_history_relation R C A == is_simulation R C A & |
|
57 |
is_ref_map (%x.(@y. (x,y):(R^-1))) A C" |
|
58 |
||
59 |
is_prophecy_relation_def |
|
60 |
"is_prophecy_relation R C A == is_backward_simulation R C A & |
|
61 |
is_ref_map (%x.(@y. (x,y):(R^-1))) A C" |
|
62 |
||
63 |
end |