X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Focaml%2Fcic_proof_checking%2FcicTypeChecker.mli;h=e9419171e906140ea1c9685ff56e7deba12858d9;hb=489ee5290cce2247291b8c5c53b98d493e7f6b99;hp=28f134e07ce925cbfd506bcd4e1d974d0d8da708;hpb=4f1fda223f9b565267054361f0ec9bdedb86fe6a;p=helm.git diff --git a/helm/ocaml/cic_proof_checking/cicTypeChecker.mli b/helm/ocaml/cic_proof_checking/cicTypeChecker.mli index 28f134e07..e9419171e 100644 --- a/helm/ocaml/cic_proof_checking/cicTypeChecker.mli +++ b/helm/ocaml/cic_proof_checking/cicTypeChecker.mli @@ -27,7 +27,14 @@ exception TypeCheckerFailure of string Lazy.t exception AssertFailure of string Lazy.t -val debrujin_constructor : UriManager.uri -> int -> Cic.term -> Cic.term +(* this function is exported to be used also by the refiner; + the callback function (defaul value: ignore) is invoked on each + processed subterm; its first argument is the undebrujined term (the + input); its second argument the corresponding debrujined term (the + output). The callback is used to relocalize the error messages *) +val debrujin_constructor : + ?cb:(Cic.term -> Cic.term -> unit) -> + UriManager.uri -> int -> Cic.term -> Cic.term val typecheck : UriManager.uri -> Cic.obj * CicUniv.universe_graph