doc-src/TutorialI/ToyList2/ToyList2
author wenzelm
Fri, 15 Sep 2000 20:35:17 +0200
changeset 10001 79b23dbb4b89
parent 9541 d17c0b34d5c8
child 10171 59d6633835fa
permissions -rw-r--r--
added;

lemma app_Nil2 [simp]: "xs @ [] = xs"
apply(induct_tac xs)
apply(auto)
.

lemma app_assoc [simp]: "(xs @ ys) @ zs = xs @ (ys @ zs)"
apply(induct_tac xs)
by(auto)

lemma rev_app [simp]: "rev(xs @ ys) = (rev ys) @ (rev xs)"
apply(induct_tac xs)
by(auto)

theorem rev_rev [simp]: "rev(rev xs) = xs"
apply(induct_tac xs)
by(auto)

end