adding necessary syntactic functions in set_comprehension_pointfree simproc as a first step to integrate an improved simproc
authorbulwahn
Wed, 10 Oct 2012 10:48:55 +0200
changeset 49768 3ecfba7e731d
parent 49767 2a1dcc962005
child 49769 c7c2152322f2
child 49772 75660d89c339
adding necessary syntactic functions in set_comprehension_pointfree simproc as a first step to integrate an improved simproc
src/HOL/Tools/set_comprehension_pointfree.ML
--- a/src/HOL/Tools/set_comprehension_pointfree.ML	Wed Oct 10 10:48:33 2012 +0200
+++ b/src/HOL/Tools/set_comprehension_pointfree.ML	Wed Oct 10 10:48:55 2012 +0200
@@ -26,6 +26,20 @@
     Const (@{const_name Lattices.inf_class.inf}, T --> T --> T) $ t1 $ t2
   end
 
+fun mk_sup (t1, t2) =
+  let
+    val T = fastype_of t1
+  in
+    Const (@{const_name Lattices.sup_class.sup}, T --> T --> T) $ t1 $ t2
+  end
+
+fun mk_Compl t =
+  let
+    val T = fastype_of t
+  in
+    Const (@{const_name "Groups.uminus_class.uminus"}, T --> T) $ t
+  end
+
 fun mk_image t1 t2 =
   let
     val T as Type (@{type_name fun}, [_ , R]) = fastype_of t1