fixed ml_store_thm(s): deriv;
authorwenzelm
Tue, 05 Oct 1999 16:55:13 +0200
changeset 7738 e17ccb79db68
parent 7737 acaf55bee03e
child 7739 bfe45b716dfc
fixed ml_store_thm(s): deriv;
src/Pure/Thy/thm_database.ML
--- a/src/Pure/Thy/thm_database.ML	Tue Oct 05 15:42:44 1999 +0200
+++ b/src/Pure/Thy/thm_database.ML	Tue Oct 05 16:55:13 1999 +0200
@@ -71,13 +71,13 @@
 fun ml_store_thm (name, thm) =
   let val thm' = store_thm (name, thm) in
     if warn_ml name then ()
-    else (qed_thms := [thm]; use_text true ("val " ^ name ^ " = hd (! ThmDatabase.qed_thms);"))
+    else (qed_thms := [thm']; use_text true ("val " ^ name ^ " = hd (! ThmDatabase.qed_thms);"))
   end;
 
 fun ml_store_thms (name, thms) =
   let val thms' = store_thms (name, thms) in
     if warn_ml name then ()
-    else (qed_thms := thms; use_text true ("val " ^ name ^ " = ! ThmDatabase.qed_thms;"))
+    else (qed_thms := thms'; use_text true ("val " ^ name ^ " = ! ThmDatabase.qed_thms;"))
   end;
 
 fun bind_thm (name, thm) = ml_store_thm (name, standard thm);