diff src/core_util.sig @ 479:ffa18975e661

Broaden set of possible especializations
author Adam Chlipala <adamc@hcoop.net>
date Sat, 08 Nov 2008 14:42:52 -0500
parents bd9ee9aeca2f
children 9117a7bf229c
line wrap: on
line diff
--- a/src/core_util.sig	Sat Nov 08 13:15:00 2008 -0500
+++ b/src/core_util.sig	Sat Nov 08 14:42:52 2008 -0500
@@ -73,6 +73,8 @@
 end
 
 structure Exp : sig
+    val compare : Core.exp * Core.exp -> order
+
     datatype binder =
              RelC of string * Core.kind
            | NamedC of string * int * Core.kind * Core.con option
@@ -108,6 +110,12 @@
                   con : Core.con' -> bool,
                   exp : Core.exp' -> bool} -> Core.exp -> bool
 
+    val existsB : {kind : Core.kind' -> bool,
+                   con : 'context * Core.con' -> bool,
+                   exp : 'context * Core.exp' -> bool,
+                   bind : 'context * binder -> 'context}
+                  -> 'context -> Core.exp -> bool
+
     val foldMap : {kind : Core.kind' * 'state -> Core.kind' * 'state,
                    con : Core.con' * 'state -> Core.con' * 'state,
                    exp : Core.exp' * 'state -> Core.exp' * 'state}