Uses new version of Datatype.occs_in_prems
authorpaulson
Wed, 23 Jul 1997 11:50:26 +0200
changeset 3563 c4f13747489f
parent 3562 5380acac8c83
child 3564 f886dbd91ee5
Uses new version of Datatype.occs_in_prems
src/HOL/NatDef.ML
--- a/src/HOL/NatDef.ML	Wed Jul 23 11:49:20 1997 +0200
+++ b/src/HOL/NatDef.ML	Wed Jul 23 11:50:26 1997 +0200
@@ -41,10 +41,11 @@
 qed "nat_induct";
 
 (*Perform induction on n. *)
-fun nat_ind_tac a i = 
-    EVERY[res_inst_tac [("n",a)] nat_induct i,
-          COND (Datatype.occs_in_prems a (i+1)) all_tac
-               (rename_last_tac a [""] (i+1))];
+local fun raw_nat_ind_tac a i = 
+    res_inst_tac [("n",a)] nat_induct i  THEN  rename_last_tac a [""] (i+1)
+in
+val nat_ind_tac = Datatype.occs_in_prems raw_nat_ind_tac
+end;
 
 (*A special form of induction for reasoning about m<n and m-n*)
 val prems = goal thy