author | wenzelm |
Fri, 18 Aug 2017 20:47:47 +0200 | |
changeset 66453 | cc19f7ca2ed6 |
parent 62009 | ecb5212d5885 |
child 67369 | 7360fe6bb423 |
permissions | -rw-r--r-- |
42151 | 1 |
(* Title: HOL/HOLCF/IOA/ABP/Spec.thy |
40945 | 2 |
Author: Olaf Müller |
3072
a31419014be5
Old ABP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
3 |
*) |
a31419014be5
Old ABP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
4 |
|
62002 | 5 |
section \<open>The specification of reliable transmission\<close> |
17244 | 6 |
|
7 |
theory Spec |
|
66453
cc19f7ca2ed6
session-qualified theory imports: isabelle imports -U -i -d '~~/src/Benchmarks' -a;
wenzelm
parents:
62009
diff
changeset
|
8 |
imports IOA.IOA Action |
17244 | 9 |
begin |
3072
a31419014be5
Old ABP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
10 |
|
25135
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
11 |
definition |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
12 |
spec_sig :: "'m action signature" where |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
13 |
sig_def: "spec_sig = (UN m.{S_msg(m)}, |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
14 |
UN m.{R_msg(m)} Un {Next}, |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
15 |
{})" |
3072
a31419014be5
Old ABP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
16 |
|
25135
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
17 |
definition |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
18 |
spec_trans :: "('m action, 'm list)transition set" where |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
19 |
trans_def: "spec_trans = |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
20 |
{tr. let s = fst(tr); |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
21 |
t = snd(snd(tr)) |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
22 |
in |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
23 |
case fst(snd(tr)) |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
24 |
of |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
25 |
Next => t=s | (* Note that there is condition as in Sender *) |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
26 |
S_msg(m) => t = s@[m] | |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
27 |
R_msg(m) => s = (m#t) | |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
28 |
S_pkt(pkt) => False | |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
29 |
R_pkt(pkt) => False | |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
30 |
S_ack(b) => False | |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
31 |
R_ack(b) => False}" |
3072
a31419014be5
Old ABP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
32 |
|
25135
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
33 |
definition |
4f8176c940cf
modernized specifications ('definition', 'axiomatization');
wenzelm
parents:
17244
diff
changeset
|
34 |
spec_ioa :: "('m action, 'm list)ioa" where |
59503 | 35 |
ioa_def: "spec_ioa = (spec_sig, {[]}, spec_trans, {}, {})" |
3072
a31419014be5
Old ABP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
36 |
|
a31419014be5
Old ABP files now running under the IOA meta theory based on HOLCF;
mueller
parents:
diff
changeset
|
37 |
end |