X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_unification%2FcicRefine.mli;h=24a6c276f1757804c9be4d7fadf9bb49ad92a8bc;hb=cb27dc85331027e290e3c4afc7ddef2e869cdfac;hp=395799b3137c29058dc65abced41b8f8dd6d6b83;hpb=c0e0ae45ee6fba4118f519b9d07169ed6a7edc8c;p=helm.git diff --git a/helm/ocaml/cic_unification/cicRefine.mli b/helm/ocaml/cic_unification/cicRefine.mli index 395799b31..24a6c276f 100644 --- a/helm/ocaml/cic_unification/cicRefine.mli +++ b/helm/ocaml/cic_unification/cicRefine.mli @@ -23,13 +23,24 @@ * http://cs.unibo.it/helm/. *) -exception RefineFailure of string;; +type failure_msg +exception RefineFailure of failure_msg;; exception Uncertain of string;; exception AssertFailure of string;; -(* type_of_aux' metasenv context term *) -(* refines [term] and returns the refined form of [term], *) -(* its type, the computed substitution and the new metasenv. *) +val explain_error: failure_msg -> string + +(* type_of_aux' metasenv context term graph *) +(* refines [term] and returns the refined form of [term], *) +(* its type, the new metasenv and universe graph. *) val type_of_aux': - Cic.metasenv -> Cic.context -> Cic.term -> - Cic.term * Cic.term * Cic.metasenv + Cic.metasenv -> Cic.context -> Cic.term -> CicUniv.universe_graph -> + Cic.term * Cic.term * Cic.metasenv * CicUniv.universe_graph + +(* typecheck metasenv uri obj graph *) +(* refines [obj] and returns the refined form of [obj], *) +(* the new metasenv and universe graph. *) +(* the [uri] is required only for inductive definitions *) +val typecheck : + Cic.metasenv -> UriManager.uri option -> Cic.obj -> + Cic.obj * Cic.metasenv * CicUniv.universe_graph