# HG changeset patch # User blanchet # Date 1346836098 -7200 # Node ID 0da8120bd2aa6b2f10c21ea109f68ea9d8fb8270 # Parent e32b1f74885452cebc24a174f8efe971309d62a2 don't get confused by extraneous premisses diff -r e32b1f748854 -r 0da8120bd2aa src/HOL/Codatatype/Tools/bnf_fp_sugar_tactics.ML --- a/src/HOL/Codatatype/Tools/bnf_fp_sugar_tactics.ML Wed Sep 05 11:08:18 2012 +0200 +++ b/src/HOL/Codatatype/Tools/bnf_fp_sugar_tactics.ML Wed Sep 05 11:08:18 2012 +0200 @@ -30,8 +30,9 @@ fun mk_exhaust_tac ctxt n ms ctr_defs fld_iff_unf sumEN' = 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 n (REPEAT_DETERM_N m o dtac @{thm meta_spec} THEN' - etac @{thm meta_mp}) k THEN' atac) (1 upto n) ms) 1; + EVERY' (map2 (fn k => fn m => + select_prem_tac n (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; fun mk_fld_iff_unf_tac ctxt cTs cfld cunf fld_unf unf_fld = (rtac iffI THEN'