author | wenzelm |
Thu, 23 Jul 2009 18:44:09 +0200 | |
changeset 32149 | ef59550a55d3 |
parent 30609 | 983e8b6e4e69 |
child 32960 | 69916a850301 |
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 *) |
|
30609
983e8b6e4e69
Disposed old declarations, tactics, tactic combinators that refer to the simpset or claset of an implicit theory;
wenzelm
parents:
28290
diff
changeset
|
21 |
fun is_sim_tac ss thm_list = SUBGOAL (fn (goal, i) => |
22819 | 22 |
EVERY [REPEAT (etac thin_rl i), |
30609
983e8b6e4e69
Disposed old declarations, tactics, tactic combinators that refer to the simpset or claset of an implicit theory;
wenzelm
parents:
28290
diff
changeset
|
23 |
simp_tac (ss addsimps [ioa_implements_def]) i, |
22819 | 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)), |
|
30609
983e8b6e4e69
Disposed old declarations, tactics, tactic combinators that refer to the simpset or claset of an implicit theory;
wenzelm
parents:
28290
diff
changeset
|
29 |
simp_tac (ss addsimps (thm_list @ |
22819 | 30 |
comp_simps @ restrict_simps @ hide_simps @ |
31 |
rename_simps @ ioa_simps @ asig_simps)) (i+1), |
|
30609
983e8b6e4e69
Disposed old declarations, tactics, tactic combinators that refer to the simpset or claset of an implicit theory;
wenzelm
parents:
28290
diff
changeset
|
32 |
simp_tac (ss addsimps (thm_list @ |
22819 | 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 |