src/Pure/Tools/invoke.ML
changeset 19868 e93ffc043dfd
parent 19852 b06db8e4476b
child 19897 fe661eb3b0e7
--- a/src/Pure/Tools/invoke.ML	Mon Jun 12 21:19:07 2006 +0200
+++ b/src/Pure/Tools/invoke.ML	Mon Jun 12 22:14:38 2006 +0200
@@ -69,20 +69,16 @@
           val params'' = map (Thm.term_of o Drule.dest_term) res_params;
           val elems' = elems |> map (Element.inst_ctxt thy
             (Symtab.make (map #1 types ~~ types''), Symtab.make (map #1 params ~~ params'')));
+          val prems'' = map2 Element.make_witness (maps Element.prems_of elems') res_prems;
 
-          val prems'' = map2 Element.make_witness (maps Element.prems_of elems') res_prems;
           val Element.Notes notes = 
             Element.Notes (maps (Element.facts_of thy) elems')
             |> Element.satisfy_ctxt prems''
             |> Element.map_ctxt_values I I (ProofContext.export ctxt'' ctxt);
-              (* FIXME export typs/terms *)
-
-          val _ = print notes;
-
+            (* FIXME export typs/terms *)
           val notes' = notes
             |> Attrib.map_facts (Attrib.attribute_i thy)
             |> map (fn ((a, atts), facts) => ((a, atts @ more_atts), facts));
-
         in
           ctxt
           |> ProofContext.sticky_prefix prfx
@@ -92,7 +88,7 @@
         end) #> Proof.put_facts NONE);
   in
     state'
-    |> Proof.local_goal (ProofDisplay.print_results int) (K I) ProofContext.bind_propp_schematic_i
+    |> Proof.local_goal (K (K ())) (K I) ProofContext.bind_propp_schematic_i
       "invoke" NONE after_qed propp
     |> Element.refine_witness
     |> Seq.hd