tuned
authorhaftmann
Tue, 24 Aug 2010 09:06:17 +0200
changeset 38676 975e4f729127
parent 38675 1c483d137371
child 38677 310b4295da2d
tuned
src/Tools/nbe.ML
--- a/src/Tools/nbe.ML	Mon Aug 23 11:57:32 2010 +0200
+++ b/src/Tools/nbe.ML	Tue Aug 24 09:06:17 2010 +0200
@@ -530,12 +530,12 @@
 
 (* compilation, evaluation and reification *)
 
-fun compile_eval thy program vs_t deps =
+fun compile_eval thy program =
   let
     val ctxt = ProofContext.init_global thy;
     val (gr, (_, idx_tab)) =
       Nbe_Functions.change thy (ensure_stmts ctxt program);
-  in
+  in fn vs_t => fn deps =>
     vs_t
     |> eval_term ctxt gr deps
     |> term_of_univ thy program idx_tab
@@ -587,7 +587,7 @@
     t
     |> fold_rev lambda frees
     |> rew
-    |> (fn t' => Term.betapplys (t', frees))
+    |> curry (Term.betapplys o swap) frees
   end;
 
 val dynamic_eval_conv = Code_Simp.no_frees_conv (Conv.tap_thy