equal
deleted
inserted
replaced
429 fun fun_map_simple_conv xs ctrm = |
429 fun fun_map_simple_conv xs ctrm = |
430 case (term_of ctrm) of |
430 case (term_of ctrm) of |
431 ((Const (@{const_name "fun_map"}, _) $ _ $ _) $ h $ _) => |
431 ((Const (@{const_name "fun_map"}, _) $ _ $ _) $ h $ _) => |
432 if (member (op=) xs h) |
432 if (member (op=) xs h) |
433 then Conv.all_conv ctrm |
433 then Conv.all_conv ctrm |
434 else Conv.rewr_conv @{thm fun_map.simps[THEN eq_reflection]} ctrm |
434 else Conv.rewr_conv @{thm fun_map_def[THEN eq_reflection]} ctrm |
435 | _ => Conv.all_conv ctrm |
435 | _ => Conv.all_conv ctrm |
436 |
436 |
437 fun fun_map_conv xs ctxt ctrm = |
437 fun fun_map_conv xs ctxt ctrm = |
438 case (term_of ctrm) of |
438 case (term_of ctrm) of |
439 _ $ _ => (Conv.comb_conv (fun_map_conv xs ctxt) then_conv |
439 _ $ _ => (Conv.comb_conv (fun_map_conv xs ctxt) then_conv |