Module Type.Conv
val create : unit -> ctxval copy : ctx -> ctxval clear : ctx -> unitval of_simple_term : ctx -> TypedSTerm.t -> t optionconvert a simple typed term into a type. The term is assumed to be closed.
- returns
an error message if the term is not a type
val var_of_simple_term : ctx -> TypedSTerm.t Var.t -> t HVar.tConvert a variable (and its type), and remember the binding.
val var_to_simple_var : ?prefix:string -> ctx -> t HVar.t -> TypedSTerm.t Var.t
exceptionError of TypedSTerm.t
val of_simple_term_exn : ctx -> TypedSTerm.t -> t- raises Invalid_argument
if conversion is impossible
val to_simple_term : ?env:TypedSTerm.t Var.t DBEnv.t -> ctx -> t -> TypedSTerm.tconvert a type to a prolog term.
- parameter env
the current environement for De Bruijn indices