forall_elim_var(s) moved to pure_thy.ML;
authorwenzelm
Thu, 21 Oct 1999 18:41:51 +0200
changeset 7898 d7e65a52acf9
parent 7897 7f18f5ffbb92
child 7899 58c91ff28c3d
forall_elim_var(s) moved to pure_thy.ML;
src/Pure/drule.ML
--- a/src/Pure/drule.ML	Thu Oct 21 18:04:07 1999 +0200
+++ b/src/Pure/drule.ML	Thu Oct 21 18:41:51 1999 +0200
@@ -227,20 +227,8 @@
          th
     end;
 
-(*Replace outermost quantified variable by Var of given index.
-    Could clash with Vars already present.*)
-fun forall_elim_var i th =
-    let val {prop,sign,...} = rep_thm th
-    in case prop of
-          Const("all",_) $ Abs(a,T,_) =>
-              forall_elim (cterm_of sign (Var((a,i), T)))  th
-        | _ => raise THM("forall_elim_var", i, [th])
-    end;
-
-(*Repeat forall_elim_var until all outer quantifiers are removed*)
-fun forall_elim_vars i th =
-    forall_elim_vars i (forall_elim_var i th)
-        handle THM _ => th;
+val forall_elim_var = PureThy.forall_elim_var;
+val forall_elim_vars = PureThy.forall_elim_vars;
 
 (*Specialization over a list of cterms*)
 fun forall_elim_list cts th = foldr (uncurry forall_elim) (rev cts, th);