| author | haftmann |
| Fri, 24 Oct 2008 17:48:36 +0200 | |
| changeset 28684 | 48faac324061 |
| parent 27361 | 24ec32bee347 |
| child 35174 | e15040ae75d7 |
| permissions | -rw-r--r-- |
|
3073
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
1 |
(* Title: HOL/IOA/NTP/Spec.thy |
|
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
2 |
ID: $Id$ |
|
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
3 |
Author: Tobias Nipkow & Konrad Slind |
|
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
4 |
*) |
|
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
5 |
|
| 17244 | 6 |
header {* The specification of reliable transmission *}
|
7 |
||
8 |
theory Spec |
|
9 |
imports IOA Action |
|
10 |
begin |
|
|
3073
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
11 |
|
| 27361 | 12 |
definition |
13 |
spec_sig :: "'m action signature" where |
|
14 |
sig_def: "spec_sig = (UN m.{S_msg(m)},
|
|
15 |
UN m.{R_msg(m)},
|
|
16 |
{})"
|
|
|
3073
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
17 |
|
| 27361 | 18 |
definition |
19 |
spec_trans :: "('m action, 'm list)transition set" where
|
|
20 |
trans_def: "spec_trans = |
|
21 |
{tr. let s = fst(tr);
|
|
22 |
t = snd(snd(tr)) |
|
23 |
in |
|
24 |
case fst(snd(tr)) |
|
25 |
of |
|
26 |
S_msg(m) => t = s@[m] | |
|
27 |
R_msg(m) => s = (m#t) | |
|
28 |
S_pkt(pkt) => False | |
|
29 |
R_pkt(pkt) => False | |
|
30 |
S_ack(b) => False | |
|
31 |
R_ack(b) => False | |
|
32 |
C_m_s => False | |
|
33 |
C_m_r => False | |
|
34 |
C_r_s => False | |
|
35 |
C_r_r(m) => False}" |
|
|
3073
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
36 |
|
| 27361 | 37 |
definition |
38 |
spec_ioa :: "('m action, 'm list)ioa" where
|
|
39 |
ioa_def: "spec_ioa = (spec_sig, {[]}, spec_trans,{},{})"
|
|
| 17244 | 40 |
|
|
3073
88366253a09a
Old NTP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
41 |
end |