fixed typo (multiset_append)
authorkleing
Sat, 26 Mar 2005 00:00:56 +0100
changeset 15630 cc3776f004e2
parent 15629 4066f01f1beb
child 15631 cbee04ce413b
fixed typo (multiset_append) moved multiset_of_complement_union from ex/Sorting
src/HOL/Library/Multiset.thy
--- a/src/HOL/Library/Multiset.thy	Fri Mar 25 17:47:11 2005 +0100
+++ b/src/HOL/Library/Multiset.thy	Sat Mar 26 00:00:56 2005 +0100
@@ -742,7 +742,7 @@
 lemma set_of_multiset_of[simp]: "set_of(multiset_of x) = set x"
  by (induct_tac x, auto) 
 
-lemma multset_of_append[simp]: 
+lemma multiset_of_append[simp]: 
   "multiset_of (xs @ ys) = multiset_of xs + multiset_of ys"
   by (rule_tac x=ys in spec, induct_tac xs, auto simp: union_ac) 
 
@@ -778,6 +778,9 @@
   apply simp
   done
 
+lemma multiset_of_compl_union[simp]:
+ "multiset_of [x\<in>xs. P x] + multiset_of [x\<in>xs. \<not>P x] = multiset_of xs"
+  by (induct xs) (auto simp: union_ac)
 
 subsection {* Pointwise ordering induced by count *}