imp_elim and swap are now stored in thm database
authorpaulson
Wed, 28 Feb 1996 11:47:30 +0100
changeset 1524 524879632d88
parent 1523 7513fbe502fb
child 1525 d127436567d0
imp_elim and swap are now stored in thm database
src/Provers/classical.ML
--- a/src/Provers/classical.ML	Wed Feb 28 11:46:08 1996 +0100
+++ b/src/Provers/classical.ML	Wed Feb 28 11:47:30 1996 +0100
@@ -90,7 +90,8 @@
 
 (** Useful tactics for classical reasoning **)
 
-val imp_elim = make_elim mp;
+val imp_elim = (*cannot use bind_thm within a structure!*)
+  store_thm ("imp_elim", make_elim mp);
 
 (*Solve goal that assumes both P and ~P. *)
 val contr_tac = eresolve_tac [not_elim]  THEN'  assume_tac;
@@ -102,7 +103,8 @@
 (*Like mp_tac but instantiates no variables*)
 fun eq_mp_tac i = ematch_tac [not_elim, imp_elim] i  THEN  eq_assume_tac i;
 
-val swap = rule_by_tactic (etac thin_rl 1) (not_elim RS classical);
+val swap =
+  store_thm ("swap", 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]);