src/HOL/Tools/BNF/bnf_gfp_rec_sugar.ML
changeset 63727 2d21591967bc
parent 63719 9084d77f1119
child 63859 dca6fabd8060
--- a/src/HOL/Tools/BNF/bnf_gfp_rec_sugar.ML	Mon Aug 29 21:46:24 2016 +0200
+++ b/src/HOL/Tools/BNF/bnf_gfp_rec_sugar.ML	Tue Aug 30 09:04:40 2016 +0200
@@ -1454,6 +1454,7 @@
                     val ms = map (Logic.count_prems o Thm.prop_of) ctr_thms;
                     val (raw_goal, goal) = (raw_rhs, rhs)
                       |> apply2 (curry mk_Trueprop_eq (applied_fun_of fun_name fun_T fun_args)
+                        #> abstract_over_list fun_args
                         #> curry Logic.list_all (map dest_Free fun_args));
                     val (distincts, discIs, _, split_sels, split_sel_asms) =
                       case_thms_of_term lthy raw_rhs;