# HG changeset patch # User traytel # Date 1407313250 -7200 # Node ID 4adfa833072b04b0a23f2febcfb306f9fe001286 # Parent 2e9d655054548c5cb26c4400a7292f5c680033b9 made tactic more robust diff -r 2e9d65505454 -r 4adfa833072b src/HOL/Tools/BNF/bnf_fp_n2m.ML --- a/src/HOL/Tools/BNF/bnf_fp_n2m.ML Wed Aug 06 08:18:35 2014 +0200 +++ b/src/HOL/Tools/BNF/bnf_fp_n2m.ML Wed Aug 06 10:20:50 2014 +0200 @@ -429,10 +429,11 @@ rewrite_comp_comp) type_definitions bnfs); - fun mk_Rep_o_Abs thm = thm RS @{thm type_copy_Rep_o_Abs} RS rewrite_comp_comp; + fun mk_Rep_o_Abs thm = (thm RS @{thm type_copy_Rep_o_Abs}) + |> (fn thm => [thm, thm RS rewrite_comp_comp]); - val fp_Rep_o_Abss = map mk_Rep_o_Abs fp_type_definitions; - val Rep_o_Abss = map mk_Rep_o_Abs type_definitions; + val fp_Rep_o_Abss = maps mk_Rep_o_Abs fp_type_definitions; + val Rep_o_Abss = maps mk_Rep_o_Abs type_definitions; fun tac {context = ctxt, prems = _} = unfold_thms_tac ctxt (flat [rec_thms, raw_co_rec_defs, pre_map_defs, fp_pre_map_defs,