*** empty log message ***
authornipkow
Mon, 05 Jan 2004 23:10:32 +0100
changeset 14339 ec575b7bde7a
parent 14338 a1add2de7601
child 14340 bc93ffa674cc
*** empty log message ***
src/HOL/List.thy
--- a/src/HOL/List.thy	Mon Jan 05 22:43:03 2004 +0100
+++ b/src/HOL/List.thy	Mon Jan 05 23:10:32 2004 +0100
@@ -491,6 +491,9 @@
  "!!xs. map f xs = map f ys ==> inj f ==> xs = ys"
 by (induct ys) (auto dest!:injD)
 
+lemma inj_map_eq_map[simp]: "inj f \<Longrightarrow> (map f xs = map f ys) = (xs = ys)"
+by(blast dest:map_injective)
+
 lemma inj_mapI: "inj f ==> inj (map f)"
 by (rules dest: map_injective injD intro: inj_onI)
 
@@ -501,7 +504,7 @@
 apply blast
 done
 
-lemma inj_map: "inj (map f) = inj f"
+lemma inj_map[iff]: "inj (map f) = inj f"
 by (blast dest: inj_mapD intro: inj_mapI)