src/HOL/List.ML
changeset 9853 5c6425d83501
parent 9763 252c690690b0
child 10385 22836e4c5f4e
equal deleted inserted replaced
9852:6ca7fcac3e23 9853:5c6425d83501
   324 by (hyp_subst_tac 1);
   324 by (hyp_subst_tac 1);
   325 by (induct_tac "ys" 1);
   325 by (induct_tac "ys" 1);
   326 by Auto_tac;
   326 by Auto_tac;
   327 bind_thm("map_cong", impI RSN (2,allI RSN (2, result() RS mp)));
   327 bind_thm("map_cong", impI RSN (2,allI RSN (2, result() RS mp)));
   328 
   328 
   329 Add_recdef_congs [map_cong];
       
   330 
       
   331 Goal "(map f xs = []) = (xs = [])";
   329 Goal "(map f xs = []) = (xs = [])";
   332 by (case_tac "xs" 1);
   330 by (case_tac "xs" 1);
   333 by Auto_tac;
   331 by Auto_tac;
   334 qed "map_is_Nil_conv";
   332 qed "map_is_Nil_conv";
   335 AddIffs [map_is_Nil_conv];
   333 AddIffs [map_is_Nil_conv];