X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fcomponents%2Fdisambiguation%2FdisambiguateTypes.ml;h=9c37fa36c91ba5aa30bfe648c5e7dddeff067ca3;hb=712af5b8dc7dab1ebfa6532b73b91c96cb4c6837;hp=f6e03d098ccd555de2bab69a0b4f41bb417cf4b5;hpb=f6b7c6ae353e014761a3d24dbc87e00d828d7f2d;p=helm.git diff --git a/matita/components/disambiguation/disambiguateTypes.ml b/matita/components/disambiguation/disambiguateTypes.ml index f6e03d098..9c37fa36c 100644 --- a/matita/components/disambiguation/disambiguateTypes.ml +++ b/matita/components/disambiguation/disambiguateTypes.ml @@ -25,6 +25,12 @@ (* $Id$ *) +type 'a expected_type = [ `XTNone (* unknown *) + | `XTSome of 'a (* the given term *) + | `XTSort (* any sort *) + | `XTInd (* any (co)inductive type *) + ] + type domain_item = | Id of string (* literal *) | Symbol of string * int (* literal, instance num *) @@ -35,7 +41,7 @@ exception Invalid_choice of (Stdpp.location * string) Lazy.t module OrderedDomain = struct type t = domain_item - let compare = Pervasives.compare + let compare = Stdlib.compare end (* module Domain = Set.Make (OrderedDomain) *) @@ -47,10 +53,10 @@ struct let find k env = match k with - Symbol (sym,n) -> + Symbol (sym,_n) -> (try find k env with Not_found -> find (Symbol (sym,0)) env) - | Num n -> + | Num _n -> (try find k env with Not_found -> find (Num 0) env) | _ -> find k env