increading indexes to avoid clashes in the set_comprehension_pointfree simproc
authorbulwahn
Fri, 12 Oct 2012 12:21:01 +0200
changeset 49831 b28dbb7a45d9
parent 49827 77582720af96
child 49832 2af09163cba1
increading indexes to avoid clashes in the set_comprehension_pointfree simproc
src/HOL/Tools/set_comprehension_pointfree.ML
--- a/src/HOL/Tools/set_comprehension_pointfree.ML	Thu Oct 11 23:10:49 2012 +0200
+++ b/src/HOL/Tools/set_comprehension_pointfree.ML	Fri Oct 12 12:21:01 2012 +0200
@@ -172,7 +172,7 @@
 fun instantiate_arg_cong ctxt pred =
   let
     val certify = cterm_of (Proof_Context.theory_of ctxt)
-    val arg_cong = @{thm arg_cong}
+    val arg_cong = Thm.incr_indexes (maxidx_of_term pred + 1) @{thm arg_cong}
     val f $ _ = fst (HOLogic.dest_eq (HOLogic.dest_Trueprop (concl_of arg_cong)))
   in
     cterm_instantiate [(certify f, certify pred)] arg_cong