1139
|
1 |
(* Title: HOL/IOA/example/Impl.thy
|
1050
|
2 |
ID: $Id$
|
1139
|
3 |
Author: Tobias Nipkow & Konrad Slind
|
|
4 |
Copyright 1994 TU Muenchen
|
1050
|
5 |
|
1139
|
6 |
The implementation
|
1050
|
7 |
*)
|
|
8 |
|
|
9 |
Impl_finite = Sender + Receiver + Abschannel_finite +
|
|
10 |
|
|
11 |
types
|
|
12 |
|
|
13 |
'm impl_fin_state
|
|
14 |
= "'m sender_state * 'm receiver_state * 'm packet list * bool list"
|
|
15 |
(* sender_state * receiver_state * srch_state * rsch_state *)
|
|
16 |
|
1570
|
17 |
constdefs
|
1050
|
18 |
|
1376
|
19 |
impl_fin_ioa :: ('m action, 'm impl_fin_state)ioa
|
1570
|
20 |
"impl_fin_ioa == (sender_ioa || receiver_ioa || srch_fin_ioa ||
|
|
21 |
rsch_fin_ioa)"
|
|
22 |
|
1376
|
23 |
sen_fin :: 'm impl_fin_state => 'm sender_state
|
1570
|
24 |
"sen_fin == fst"
|
1050
|
25 |
|
1570
|
26 |
rec_fin :: 'm impl_fin_state => 'm receiver_state
|
|
27 |
"rec_fin == fst o snd"
|
|
28 |
|
|
29 |
srch_fin :: 'm impl_fin_state => 'm packet list
|
|
30 |
"srch_fin == fst o snd o snd"
|
|
31 |
|
|
32 |
rsch_fin :: 'm impl_fin_state => bool list
|
|
33 |
"rsch_fin == snd o snd o snd"
|
1050
|
34 |
|
|
35 |
end
|
|
36 |
|