doc-src/Tutorial/ToyList/ToyList.ML
author wenzelm
Sat, 02 Sep 2000 21:47:08 +0200
changeset 9799 038b018f86f5
parent 5377 efb799c5ed3c
permissions -rw-r--r--
'split' method: '(asm)' option; added 'slow', 'slowsimp', 'bestsimp' methods;

Goal "xs @ [] = xs";
by(induct_tac "xs" 1);
by(Auto_tac);
qed "app_Nil2";
Addsimps [app_Nil2];
Goal "(xs @ ys) @ zs = xs @ (ys @ zs)";
by(induct_tac "xs" 1);
by(Auto_tac);
qed "app_assoc";
Addsimps [app_assoc];
Goal "rev(xs @ ys) = (rev ys) @ (rev xs)";
by(induct_tac "xs" 1);
by(Auto_tac);
qed "rev_app";
Addsimps [rev_app];
Goal "rev(rev xs) = xs";
by(induct_tac "xs" 1);
by(Auto_tac);
qed "rev_rev";