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;
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9541
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
     1
lemma app_Nil2 [simp]: "xs @ [] = xs"
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
     2
apply(induct_tac xs)
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
     3
apply(auto)
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
     4
.
8751
9ed0548177fb *** empty log message ***
nipkow
parents:
diff changeset
     5
9541
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
     6
lemma app_assoc [simp]: "(xs @ ys) @ zs = xs @ (ys @ zs)"
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
     7
apply(induct_tac xs)
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
     8
by(auto)
8751
9ed0548177fb *** empty log message ***
nipkow
parents:
diff changeset
     9
9541
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
    10
lemma rev_app [simp]: "rev(xs @ ys) = (rev ys) @ (rev xs)"
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
    11
apply(induct_tac xs)
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
    12
by(auto)
8751
9ed0548177fb *** empty log message ***
nipkow
parents:
diff changeset
    13
9541
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
    14
theorem rev_rev [simp]: "rev(rev xs) = xs"
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
    15
apply(induct_tac xs)
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
    16
by(auto)
8751
9ed0548177fb *** empty log message ***
nipkow
parents:
diff changeset
    17
9541
d17c0b34d5c8 *** empty log message ***
nipkow
parents: 9458
diff changeset
    18
end