# HG changeset patch # User nipkow # Date 1129697205 -7200 # Node ID 719364f5179b29d790ce11ffa6cbbffe34cf01aa # Parent 1574533861b1df4585cd3cb0ac44020c0e741afa added 2 lemmas diff -r 1574533861b1 -r 719364f5179b src/HOL/List.thy --- a/src/HOL/List.thy Wed Oct 19 06:33:24 2005 +0200 +++ b/src/HOL/List.thy Wed Oct 19 06:46:45 2005 +0200 @@ -1566,6 +1566,15 @@ apply (auto simp add: less_Suc_eq nth_append split: nat_diff_split) done + +lemma hd_upt[simp]: "i < j \ hd[i.. last[i.. take m [i.. distinct xs; i < length xs; j < length xs \ \ (xs!i = xs!j) = (i = j)" +by(auto simp: distinct_conv_nth) + + subsubsection {* @{text remove1} *} lemma set_remove1_subset: "set(remove1 x xs) <= set xs"