author | wenzelm |
Thu, 22 Nov 2007 14:51:34 +0100 | |
changeset 25456 | 6f79698f294d |
parent 22819 | a7b425bb668c |
child 28290 | 4cc2b6046258 |
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 |
||
8 |
oracle sim_oracle ("term * thm list") = |
|
9 |
mk_sim_oracle |
|
6471
08d12ef5fc19
added translation from IOA to mucalculus and corresponding modelchecker examples;
mueller
parents:
diff
changeset
|
10 |
|
22819 | 11 |
ML {* |
12 |
(* call_sim_tac invokes oracle "Sim" *) |
|
13 |
fun call_sim_tac thm_list i state = |
|
14 |
let val thy = Thm.theory_of_thm state; |
|
15 |
val (subgoal::_) = Library.drop(i-1,prems_of state); |
|
16 |
val OraAss = sim_oracle thy (subgoal,thm_list); |
|
17 |
in cut_facts_tac [OraAss] i state end; |
|
18 |
||
19 |
||
20 |
val ioa_implements_def = thm "ioa_implements_def"; |
|
21 |
||
22 |
(* is_sim_tac makes additionally to call_sim_tac some simplifications, |
|
23 |
which are suitable for implementation realtion formulas *) |
|
24 |
fun is_sim_tac thm_list = SUBGOAL (fn (goal, i) => |
|
25 |
EVERY [REPEAT (etac thin_rl i), |
|
26 |
simp_tac (simpset() addsimps [ioa_implements_def]) i, |
|
27 |
rtac conjI i, |
|
28 |
rtac conjI (i+1), |
|
29 |
TRY(call_sim_tac thm_list (i+2)), |
|
30 |
TRY(atac (i+2)), |
|
31 |
REPEAT(rtac refl (i+2)), |
|
32 |
simp_tac (simpset() addsimps (thm_list @ |
|
33 |
comp_simps @ restrict_simps @ hide_simps @ |
|
34 |
rename_simps @ ioa_simps @ asig_simps)) (i+1), |
|
35 |
simp_tac (simpset() addsimps (thm_list @ |
|
36 |
comp_simps @ restrict_simps @ hide_simps @ |
|
37 |
rename_simps @ ioa_simps @ asig_simps)) (i)]); |
|
38 |
||
39 |
*} |
|
40 |
||
6471
08d12ef5fc19
added translation from IOA to mucalculus and corresponding modelchecker examples;
mueller
parents:
diff
changeset
|
41 |
end |