6470
|
1 |
(* Title: HOLCF/IOA/TrivEx.thy
|
|
2 |
ID: $Id$
|
12218
|
3 |
Author: Olaf Müller
|
6470
|
4 |
|
12218
|
5 |
Trivial Abstraction Example.
|
6470
|
6 |
*)
|
|
7 |
|
|
8 |
Goalw [is_abstraction_def]
|
|
9 |
"is_abstraction h_abs C_ioa A_ioa";
|
|
10 |
by (rtac conjI 1);
|
|
11 |
(* ------------- start states ------------ *)
|
|
12 |
by (simp_tac (simpset() addsimps
|
|
13 |
[h_abs_def,starts_of_def,C_ioa_def,A_ioa_def]) 1);
|
|
14 |
(* -------------- step case ---------------- *)
|
|
15 |
by (REPEAT (rtac allI 1));
|
|
16 |
by (rtac imp_conj_lemma 1);
|
|
17 |
by (simp_tac (simpset() addsimps [trans_of_def,
|
|
18 |
C_ioa_def,A_ioa_def,C_trans_def,A_trans_def])1);
|
8600
|
19 |
by (induct_tac "a" 1);
|
6470
|
20 |
by (simp_tac (simpset() addsimps [h_abs_def]) 1);
|
|
21 |
qed"h_abs_is_abstraction";
|
|
22 |
|
|
23 |
|
|
24 |
(*
|
|
25 |
Goalw [xt2_def,plift,option_lift]
|
|
26 |
"(xt2 (plift afun)) (s,a,t) = (afun a)";
|
|
27 |
(* !!!!!!!!!!!!! Occurs check !!!! *)
|
|
28 |
by (induct_tac "a" 1);
|
|
29 |
|
|
30 |
*)
|
|
31 |
|
|
32 |
Goalw [Enabled_def, enabled_def, h_abs_def,A_ioa_def,C_ioa_def,A_trans_def,
|
|
33 |
C_trans_def,trans_of_def]
|
|
34 |
"!!s. Enabled A_ioa {INC} (h_abs s) ==> Enabled C_ioa {INC} s";
|
|
35 |
by Auto_tac;
|
|
36 |
qed"Enabled_implication";
|
|
37 |
|
|
38 |
|
|
39 |
Goalw [is_live_abstraction_def]
|
|
40 |
"is_live_abstraction h_abs (C_ioa, WF C_ioa {INC}) (A_ioa, WF A_ioa {INC})";
|
|
41 |
by Auto_tac;
|
|
42 |
(* is_abstraction *)
|
|
43 |
by (rtac h_abs_is_abstraction 1);
|
|
44 |
(* temp_weakening *)
|
|
45 |
by (abstraction_tac 1);
|
|
46 |
by (etac Enabled_implication 1);
|
|
47 |
qed"h_abs_is_liveabstraction";
|
|
48 |
|
|
49 |
|
|
50 |
Goalw [C_live_ioa_def]
|
|
51 |
"validLIOA C_live_ioa (<>[] <%(n,a,m). n~=0>)";
|
|
52 |
by (rtac AbsRuleT2 1);
|
|
53 |
by (rtac h_abs_is_liveabstraction 1);
|
|
54 |
by (rtac MC_result 1);
|
|
55 |
by (abstraction_tac 1);
|
|
56 |
by (asm_full_simp_tac (simpset() addsimps [h_abs_def]) 1);
|
|
57 |
qed"TrivEx2_abstraction";
|
|
58 |
|
|
59 |
|
|
60 |
(*
|
|
61 |
Goal "validIOA aut_ioa (Box (Init (%(s,a,t). a= Some(Alarm(APonR))))
|
|
62 |
IMPLIES (Next (Init (%(s,a,t). info_comp(s) = APonR))))";
|
|
63 |
|
|
64 |
*)
|
|
65 |
|