src/HOL/Tools/BNF/bnf_fp_util.ML
changeset 55931 62156e694f3d
parent 55904 0ef30d52c5e4
child 55932 68c5104d2204
equal deleted inserted replaced
55930:25a90cebbbe5 55931:62156e694f3d
   525     val map_cong_active_args1 = replicate n (if is_rec
   525     val map_cong_active_args1 = replicate n (if is_rec
   526       then fp_case fp @{thm convol_o} @{thm o_case_sum} RS fun_cong
   526       then fp_case fp @{thm convol_o} @{thm o_case_sum} RS fun_cong
   527       else refl);
   527       else refl);
   528     val map_cong_passive_args2 = replicate m (fp_case fp @{thm comp_id} @{thm id_comp} RS fun_cong);
   528     val map_cong_passive_args2 = replicate m (fp_case fp @{thm comp_id} @{thm id_comp} RS fun_cong);
   529     val map_cong_active_args2 = replicate n (if is_rec
   529     val map_cong_active_args2 = replicate n (if is_rec
   530       then fp_case fp @{thm map_pair_o_convol_id} @{thm case_sum_o_sum_map_id}
   530       then fp_case fp @{thm map_pair_o_convol_id} @{thm case_sum_o_map_sum_id}
   531       else fp_case fp @{thm id_comp} @{thm comp_id} RS fun_cong);
   531       else fp_case fp @{thm id_comp} @{thm comp_id} RS fun_cong);
   532     fun mk_map_congs passive active = map (fn thm => thm OF (passive @ active) RS ext) map_cong0s;
   532     fun mk_map_congs passive active = map (fn thm => thm OF (passive @ active) RS ext) map_cong0s;
   533     val map_cong1s = mk_map_congs map_cong_passive_args1 map_cong_active_args1;
   533     val map_cong1s = mk_map_congs map_cong_passive_args1 map_cong_active_args1;
   534     val map_cong2s = mk_map_congs map_cong_passive_args2 map_cong_active_args2;
   534     val map_cong2s = mk_map_congs map_cong_passive_args2 map_cong_active_args2;
   535     
   535