diff -r 1a68fcb80b62 -r 22bb415d7754 src/HOL/List.thy
--- a/src/HOL/List.thy Sun Feb 05 08:24:38 2012 +0100
+++ b/src/HOL/List.thy Sun Feb 05 08:24:39 2012 +0100
@@ -5677,9 +5677,12 @@
text {* Further operations on sets *}
(* Minimal refinement of equality on sets *)
-lemma [code]:
- "HOL.equal (set []) (List.coset []) = False"
-by (metis UNIV_coset UNIV_not_empty empty_set equal_eq)
+declare subset_eq[code del]
+lemma subset_code [code]:
+ "set xs <= B \ (ALL x : set xs. x : B)"
+ "List.coset xs <= List.coset ys \ set ys <= set xs"
+ "List.coset [] <= set [] \ False"
+by auto
lemma setsum_code [code]:
"setsum f (set xs) = listsum (map f (remdups xs))"