store_thm: transfer to current context, i.e. the target theory;
authorwenzelm
Thu, 05 Jan 2006 22:29:57 +0100
changeset 18586 588e80289658
parent 18585 5d379fe2eb74
child 18587 d4dcdfd764a0
store_thm: transfer to current context, i.e. the target theory;
src/Provers/classical.ML
--- a/src/Provers/classical.ML	Thu Jan 05 22:29:55 2006 +0100
+++ b/src/Provers/classical.ML	Thu Jan 05 22:29:57 2006 +0100
@@ -229,7 +229,7 @@
 (*** Useful tactics for classical reasoning ***)
 
 val imp_elim = (*cannot use bind_thm within a structure!*)
-  store_thm ("imp_elim", classical_rule (Tactic.make_elim mp));
+  store_thm ("imp_elim", Thm.transfer (the_context ()) (classical_rule (Tactic.make_elim mp)));
 
 (*Prove goal that assumes both P and ~P.
   No backtracking if it finds an equal assumption.  Perhaps should call
@@ -245,7 +245,8 @@
 fun eq_mp_tac i = ematch_tac [not_elim, imp_elim] i  THEN  eq_assume_tac i;
 
 val swap =
-  store_thm ("swap", rule_by_tactic (etac thin_rl 1) (not_elim RS classical));
+  store_thm ("swap", Thm.transfer (the_context ())
+    (rule_by_tactic (etac thin_rl 1) (not_elim RS classical)));
 
 (*Creates rules to eliminate ~A, from rules to introduce A*)
 fun swapify intrs = intrs RLN (2, [swap]);