fixed "mk_exhaust_tac" for the nth time
authorblanchet
Wed, 05 Sep 2012 15:40:28 +0200
changeset 49160 056d6010b6d2
parent 49159 7af3f9f41783
child 49161 a8e74375d971
fixed "mk_exhaust_tac" for the nth time
src/HOL/Codatatype/Tools/bnf_fp_sugar_tactics.ML
--- a/src/HOL/Codatatype/Tools/bnf_fp_sugar_tactics.ML	Wed Sep 05 15:40:26 2012 +0200
+++ b/src/HOL/Codatatype/Tools/bnf_fp_sugar_tactics.ML	Wed Sep 05 15:40:28 2012 +0200
@@ -31,8 +31,8 @@
   Local_Defs.unfold_tac ctxt (fld_iff_unf :: ctr_defs) THEN rtac sumEN' 1 THEN
   Local_Defs.unfold_tac ctxt @{thms all_prod_eq} THEN
   EVERY' (map2 (fn k => fn m =>
-    select_prem_tac k (REPEAT_DETERM_N m o dtac @{thm meta_spec} THEN' rotate_tac ~1 THEN'
-      etac @{thm meta_mp}) k THEN' atac) (1 upto n) ms) 1;
+    select_prem_tac n (rotate_tac 1) k THEN' REPEAT_DETERM_N m o dtac @{thm meta_spec} THEN'
+    etac @{thm meta_mp} THEN' atac) (1 upto n) ms) 1;
 
 fun mk_fld_iff_unf_tac ctxt cTs cfld cunf fld_unf unf_fld =
   (rtac iffI THEN'