src/HOL/Tools/BNF/bnf_lfp_rec_sugar.ML
changeset 57527 1b07ca054327
parent 57399 cfc19f0a6261
child 57549 7a2fbd8c1d98
--- a/src/HOL/Tools/BNF/bnf_lfp_rec_sugar.ML	Mon Jul 07 16:06:46 2014 +0200
+++ b/src/HOL/Tools/BNF/bnf_lfp_rec_sugar.ML	Mon Jul 07 16:06:46 2014 +0200
@@ -342,8 +342,8 @@
       val fun_name_ctr_pos_list =
         map (fn (x :: _) => (#fun_name x, length (#left_args x))) funs_data;
       val get_ctr_pos = try (the o AList.lookup (op =) fun_name_ctr_pos_list) #> the_default ~1;
-      val mutual_calls = map (apfst (nth ctr_args) o apsnd (nth args o fst)) mutual_calls';
-      val nested_calls = map (apfst (nth ctr_args) o apsnd (nth args o fst)) nested_calls';
+      val mutual_calls = map (map_prod (nth ctr_args) (nth args o fst)) mutual_calls';
+      val nested_calls = map (map_prod (nth ctr_args) (nth args o fst)) nested_calls';
     in
       t
       |> subst_rec_calls lthy get_ctr_pos has_call ctr_args mutual_calls nested_calls