author | haftmann |
Mon, 16 Feb 2009 19:11:55 +0100 | |
changeset 29940 | 83b373f61d41 |
parent 28290 | 4cc2b6046258 |
child 30609 | 983e8b6e4e69 |
permissions | -rw-r--r-- |
7299 | 1 |
|
17244 | 2 |
(* $Id$ *) |
6471
08d12ef5fc19
added translation from IOA to mucalculus and corresponding modelchecker examples;
mueller
parents:
diff
changeset
|
3 |
|
17244 | 4 |
theory MuIOAOracle |
5 |
imports MuIOA |
|
6 |
begin |
|
7 |
||
28290 | 8 |
oracle sim_oracle = mk_sim_oracle |
6471
08d12ef5fc19
added translation from IOA to mucalculus and corresponding modelchecker examples;
mueller
parents:
diff
changeset
|
9 |
|
22819 | 10 |
ML {* |
11 |
(* call_sim_tac invokes oracle "Sim" *) |
|
28290 | 12 |
fun call_sim_tac thm_list = CSUBGOAL (fn (csubgoal, i) => |
13 |
let val OraAss = sim_oracle (csubgoal,thm_list); |
|
14 |
in cut_facts_tac [OraAss] i end); |
|
22819 | 15 |
|
16 |
||
17 |
val ioa_implements_def = thm "ioa_implements_def"; |
|
18 |
||
19 |
(* is_sim_tac makes additionally to call_sim_tac some simplifications, |
|
20 |
which are suitable for implementation realtion formulas *) |
|
21 |
fun is_sim_tac thm_list = SUBGOAL (fn (goal, i) => |
|
22 |
EVERY [REPEAT (etac thin_rl i), |
|
23 |
simp_tac (simpset() addsimps [ioa_implements_def]) i, |
|
24 |
rtac conjI i, |
|
25 |
rtac conjI (i+1), |
|
26 |
TRY(call_sim_tac thm_list (i+2)), |
|
27 |
TRY(atac (i+2)), |
|
28 |
REPEAT(rtac refl (i+2)), |
|
29 |
simp_tac (simpset() addsimps (thm_list @ |
|
30 |
comp_simps @ restrict_simps @ hide_simps @ |
|
31 |
rename_simps @ ioa_simps @ asig_simps)) (i+1), |
|
32 |
simp_tac (simpset() addsimps (thm_list @ |
|
33 |
comp_simps @ restrict_simps @ hide_simps @ |
|
34 |
rename_simps @ ioa_simps @ asig_simps)) (i)]); |
|
35 |
||
36 |
*} |
|
37 |
||
6471
08d12ef5fc19
added translation from IOA to mucalculus and corresponding modelchecker examples;
mueller
parents:
diff
changeset
|
38 |
end |