new theorems
authorpaulson
Wed, 07 Oct 1998 10:31:30 +0200
changeset 5619 76a8c72e3fd4
parent 5618 721671c68324
child 5620 3ac11c4af76a
new theorems
src/HOL/Lex/Prefix.ML
--- a/src/HOL/Lex/Prefix.ML	Wed Oct 07 10:31:07 1998 +0200
+++ b/src/HOL/Lex/Prefix.ML	Wed Oct 07 10:31:30 1998 +0200
@@ -87,3 +87,14 @@
 by (Simp_tac 1);
 by (Blast_tac 1);
 qed "prefix_append";
+
+Goalw [prefix_def]
+  "[| xs <= ys; length xs < length ys |] ==> xs @ [ys ! length xs] <= ys";
+by (auto_tac(claset(), simpset() addsimps [nth_append]));
+by (exhaust_tac "ys" 1);
+by Auto_tac;
+qed "append_one_prefix";
+
+Goalw [prefix_def] "xs <= ys ==> length xs <= length ys";
+by Auto_tac;
+qed "prefix_length_le";