--- a/src/Pure/Proof/extraction.ML Tue Oct 27 22:55:27 2009 +0100
+++ b/src/Pure/Proof/extraction.ML Tue Oct 27 22:56:14 2009 +0100
@@ -716,8 +716,9 @@
quote name ^ " has no computational content")
in (Reconstruct.reconstruct_proof thy prop prf, vs) end;
- val defs = Library.foldl (fn (defs, (prf, vs)) =>
- fst (extr 0 defs vs [] [] [] prf)) ([], map prep_thm thms);
+ val defs =
+ fold (fn (prf, vs) => fn defs => fst (extr 0 defs vs [] [] [] prf))
+ (map prep_thm thms) [];
fun add_def (s, (vs, ((t, u), (prf, _)))) thy =
(case Sign.const_type thy (extr_name s vs) of