-type type_checker_exn =
- Impossible of int
- | NotWellTyped of string
- | WrongUriToConstant of string
- | WrongUriToVariable of string
- | WrongUriToMutualInductiveDefinitions of string
- | ListTooShort
- | NotPositiveOccurrences of string
- | NotWellFormedTypeOfInductiveConstructor of string
- | WrongRequiredArgument of string
- | RelToHiddenHypothesis
- | MetasenvInconsistency;;
-
-(* This is the only exception that will be raised *)
-exception TypeCheckerFailure of type_checker_exn;;
-
-val typecheck : UriManager.uri -> unit
+(* These are the only exceptions that will be raised *)
+exception TypeCheckerFailure of string
+exception AssertFailure of string
+
+val debrujin_constructor : UriManager.uri -> int -> Cic.term -> Cic.term
+
+val typecheck : UriManager.uri -> Cic.obj * CicUniv.universe_graph