generate proper goal when equation is entered programmatically
authortraytel
Tue, 30 Aug 2016 09:04:40 +0200
changeset 63727 2d21591967bc
parent 63726 dd327befd2ef
child 63728 4e078ae3682c
child 63733 7dc86a284456
generate proper goal when equation is entered programmatically
src/HOL/Tools/BNF/bnf_gfp_rec_sugar.ML
--- 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;