src/Tools/Code/code_simp.ML
changeset 41184 5c6f44d22f51
parent 39606 7af0441a3a47
child 41188 7cded8957e72
--- a/src/Tools/Code/code_simp.ML	Tue Dec 14 00:16:30 2010 +0100
+++ b/src/Tools/Code/code_simp.ML	Wed Dec 15 09:47:12 2010 +0100
@@ -7,10 +7,10 @@
 signature CODE_SIMP =
 sig
   val map_ss: (simpset -> simpset) -> theory -> theory
-  val dynamic_eval_conv: conv
+  val dynamic_conv: conv
   val dynamic_eval_tac: theory -> int -> tactic
-  val dynamic_eval_value: theory -> term -> term
-  val static_eval_conv: theory -> simpset option -> string list -> conv
+  val dynamic_value: theory -> term -> term
+  val static_conv: theory -> simpset option -> string list -> conv
   val static_eval_tac: theory -> simpset option -> string list -> int -> tactic
   val setup: theory -> theory
 end;
@@ -51,26 +51,26 @@
 
 (* evaluation with dynamic code context *)
 
-val dynamic_eval_conv = Conv.tap_thy (fn thy => Code_Thingol.dynamic_eval_conv thy
+val dynamic_conv = Conv.tap_thy (fn thy => Code_Thingol.dynamic_conv thy
   (fn naming => fn program => fn t => fn deps => rewrite_modulo thy NONE program));
 
-fun dynamic_eval_tac thy = CONVERSION dynamic_eval_conv THEN' conclude_tac thy NONE;
+fun dynamic_eval_tac thy = CONVERSION dynamic_conv THEN' conclude_tac thy NONE;
 
-fun dynamic_eval_value thy = snd o Logic.dest_equals o Thm.prop_of o dynamic_eval_conv o Thm.cterm_of thy;
+fun dynamic_value thy = snd o Logic.dest_equals o Thm.prop_of o dynamic_conv o Thm.cterm_of thy;
 
 val setup = Method.setup (Binding.name "code_simp")
   (Scan.succeed (SIMPLE_METHOD' o (CHANGED_PROP oo dynamic_eval_tac o ProofContext.theory_of)))
   "simplification with code equations"
-  #> Value.add_evaluator ("simp", dynamic_eval_value o ProofContext.theory_of);
+  #> Value.add_evaluator ("simp", dynamic_value o ProofContext.theory_of);
 
 
 (* evaluation with static code context *)
 
-fun static_eval_conv thy some_ss consts =
-  Code_Thingol.static_eval_conv_simple thy consts
+fun static_conv thy some_ss consts =
+  Code_Thingol.static_conv_simple thy consts
     (fn program => fn thy => fn _ => fn _ => rewrite_modulo thy some_ss program);
 
-fun static_eval_tac thy some_ss consts = CONVERSION (static_eval_conv thy some_ss consts)
+fun static_eval_tac thy some_ss consts = CONVERSION (static_conv thy some_ss consts)
   THEN' conclude_tac thy some_ss;
 
 end;