tuned -- with subtle change of order of evaluation;
authorwenzelm
Tue, 22 Dec 2015 14:23:39 +0100
changeset 61903 d5ddd4866b7b
parent 61902 4d162c237e48
child 61904 30f70d1b97c9
tuned -- with subtle change of order of evaluation;
src/HOL/Eisbach/method_closure.ML
--- a/src/HOL/Eisbach/method_closure.ML	Tue Dec 22 14:20:17 2015 +0100
+++ b/src/HOL/Eisbach/method_closure.ML	Tue Dec 22 14:23:39 2015 +0100
@@ -147,17 +147,17 @@
   in (named_thm, parser) end;
 
 
-fun method_evaluate text ctxt facts =
+fun method_evaluate text ctxt =
   let
-    val eval_named_theorems =
-      (Method.map_source o map o Token.map_facts)
+    val text' =
+      text |> (Method.map_source o map o Token.map_facts)
         (fn SOME name =>
               (case Proof_Context.lookup_fact ctxt name of
                 SOME (false, ths) => K ths
               | _ => I)
           | NONE => I);
     val ctxt' = Config.put Method.closure false ctxt;
-  in Method.RUNTIME (fn st => Method.evaluate (eval_named_theorems text) ctxt' facts st) end;
+  in fn facts => Method.RUNTIME (fn st => Method.evaluate text' ctxt' facts st) end;
 
 fun method_instantiate env text =
   let