code lemma for contents
authorhaftmann
Thu, 19 Jul 2007 21:47:44 +0200
changeset 23857 ad26287a9ccb
parent 23856 ebec38420a85
child 23858 5500610fe1e5
code lemma for contents
src/HOL/Set.thy
--- a/src/HOL/Set.thy	Thu Jul 19 21:47:43 2007 +0200
+++ b/src/HOL/Set.thy	Thu Jul 19 21:47:44 2007 +0200
@@ -2105,9 +2105,10 @@
 
 constdefs
   contents :: "'a set => 'a"
-   "contents X == THE x. X = {x}"
-
-lemma contents_eq [simp]: "contents {x} = x"
+  "contents X == THE x. X = {x}"
+lemmas [code func del] = contents_def
+
+lemma contents_eq [simp, code func]: "contents {x} = x"
 by (simp add: contents_def)