Adapted functions mk_setT and dest_setT to encoding of sets as predicates.
authorberghofe
Wed, 07 May 2008 10:56:55 +0200
changeset 26804 e2b1e6868c2f
parent 26803 0af0f674845d
child 26805 27941d7d9a11
Adapted functions mk_setT and dest_setT to encoding of sets as predicates.
src/HOL/hologic.ML
--- a/src/HOL/hologic.ML	Wed May 07 10:56:52 2008 +0200
+++ b/src/HOL/hologic.ML	Wed May 07 10:56:55 2008 +0200
@@ -135,9 +135,9 @@
 val true_const =  Const ("True", boolT);
 val false_const = Const ("False", boolT);
 
-fun mk_setT T = Type ("set", [T]);
+fun mk_setT T = T --> boolT;
 
-fun dest_setT (Type ("set", [T])) = T
+fun dest_setT (Type ("fun", [T, Type ("bool", [])])) = T
   | dest_setT T = raise TYPE ("dest_setT: set type expected", [T], []);