src/HOL/BNF/Tools/bnf_lfp_compat.ML
changeset 53808 b3e2022530e3
parent 53747 a8253329ebe9
child 53901 3d93e8b4ae02
equal deleted inserted replaced
53807:1045907bbf9a 53808:b3e2022530e3
   129     val infos = map mk_info (take nn_fp fp_sugars);
   129     val infos = map mk_info (take nn_fp fp_sugars);
   130 
   130 
   131     val all_notes =
   131     val all_notes =
   132       (case lfp_sugar_thms of
   132       (case lfp_sugar_thms of
   133         NONE => []
   133         NONE => []
   134       | SOME ((induct_thms, induct_thm, induct_attrs), (fold_thmss, _), (rec_thmss, _)) =>
   134       | SOME ((induct_thms, induct_thm, induct_attrs), (fold_thmss, rec_thmss, _)) =>
   135         let
   135         let
   136           val common_notes =
   136           val common_notes =
   137             (if nn > 1 then [(inductN, [induct_thm], induct_attrs)] else [])
   137             (if nn > 1 then [(inductN, [induct_thm], induct_attrs)] else [])
   138             |> filter_out (null o #2)
   138             |> filter_out (null o #2)
   139             |> map (fn (thmN, thms, attrs) =>
   139             |> map (fn (thmN, thms, attrs) =>