]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/software/components/disambiguation/disambiguateTypes.mli
New functorialization: paramod is abstracted over a Orderings.Blob, that is like...
[helm.git] / helm / software / components / disambiguation / disambiguateTypes.mli
index ae157e268ed9e8b7ecff206ba2c24206d26d4e91..c3601eae5858c81ca9451667738a08329290972a 100644 (file)
@@ -32,11 +32,7 @@ type domain_item =
 module Environment:
 sig
   include Map.S with type key = domain_item
-  val cons: domain_item -> ('a * 'b) -> ('a * 'b) list t -> ('a * 'b) list t
-  val hd: 'a list t -> 'a t
-
-    (** last alias cons-ed will be processed first *)
-  val fold_flatten: (domain_item -> 'a -> 'b -> 'b) -> 'a list t -> 'b -> 'b
+  val cons: ('b -> 'a) -> domain_item -> 'b -> 'b list t -> 'b list t
 end
 
   (** to be raised when a choice is invalid due to some given parameter (e.g.
@@ -45,20 +41,8 @@ exception Invalid_choice of (Stdpp.location * string) Lazy.t
 
 type 'term codomain_item =
   string *  (* description *)
-  ('term environment -> string -> 'term list -> 'term)
-    (* environment, literal number, arguments as needed *)
-
-and 'term environment = 'term codomain_item Environment.t
-
-type 'term multiple_environment = 'term codomain_item list Environment.t
-
-(* a simple case of extension of a disambiguation environment *)
-val env_of_list:
-  (string * string * 'term) list -> 'term environment -> 'term environment
-
-val multiple_env_of_list:
-  (string * string * 'term) list -> 'term multiple_environment ->
-    'term multiple_environment
+   [`Num_interp of string -> 'term
+   |`Sym_interp of 'term list -> 'term]
 
 type interactive_user_uri_choice_type =
   selection_mode:[`SINGLE | `MULTIPLE] ->
@@ -73,29 +57,4 @@ type interactive_interpretation_choice_type = string -> int ->
 type input_or_locate_uri_type = 
   title:string -> ?id:string -> unit -> UriManager.uri option
 
-module type Callbacks =
-  sig
-
-    val interactive_user_uri_choice : interactive_user_uri_choice_type
-
-    val interactive_interpretation_choice : 
-       interactive_interpretation_choice_type
-
-    val input_or_locate_uri: input_or_locate_uri_type
-  end
-
 val string_of_domain_item: domain_item -> string
-val string_of_domain: domain_item list -> string
-
-(** {3 type shortands} *)
-
-(*
-type term = CicNotationPt.term
-type tactic = (term, term, GrafiteAst.reduction, string) GrafiteAst.tactic
-type tactical = (term, term, GrafiteAst.reduction, string) GrafiteAst.tactical
-
-type script_entry =
-  | Command of tactical
-  | Comment of CicNotationPt.location * string
-type script = CicNotationPt.location * script_entry list
-*)