]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_proof_checking/cicTypeChecker.mli
1. useless code (undebrujin) removed from disambiguate.ml
[helm.git] / helm / ocaml / cic_proof_checking / cicTypeChecker.mli
index 28f134e07ce925cbfd506bcd4e1d974d0d8da708..e9419171e906140ea1c9685ff56e7deba12858d9 100644 (file)
 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