src/HOL/Library/Code_Abstract_Nat.thy
changeset 57427 91f9e4148460
parent 57426 2cd2ccd81f93
child 58881 b9556a055632
--- a/src/HOL/Library/Code_Abstract_Nat.thy	Sat Jun 28 21:09:15 2014 +0200
+++ b/src/HOL/Library/Code_Abstract_Nat.thy	Sat Jun 28 21:09:17 2014 +0200
@@ -52,6 +52,8 @@
 setup {*
 let
 
+val Suc_if_eq = Thm.incr_indexes 1 @{thm Suc_if_eq};
+
 fun remove_suc ctxt thms =
   let
     val thy = Proof_Context.theory_of ctxt;
@@ -79,7 +81,7 @@
              (Drule.instantiate'
                [SOME (ctyp_of_term ct)] [SOME (Thm.lambda cv ct),
                  SOME (Thm.lambda cv' (rhs_of thm)), NONE, SOME cv']
-               @{thm Suc_if_eq})) (Thm.forall_intr cv' thm)
+               Suc_if_eq)) (Thm.forall_intr cv' thm)
       in
         case map_filter (fn thm'' =>
             SOME (thm'', singleton