diff options
author | 2004-09-03 17:14:02 +0000 | |
---|---|---|
committer | 2004-09-03 17:14:02 +0000 | |
commit | 85fb5f33b1cac28e1fe4f00741c66f6f58109f84 (patch) | |
tree | 4913998a925cb148c74a607bf7523ae1d28853ce /pretyping/typing.mli | |
parent | 31ebb89fe48efe92786b1cddc3ba62e7dfc4e739 (diff) |
premiere reorganisation de l\'unification
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@6057 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'pretyping/typing.mli')
-rw-r--r-- | pretyping/typing.mli | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/pretyping/typing.mli b/pretyping/typing.mli index 8af977f10..15f3a6597 100644 --- a/pretyping/typing.mli +++ b/pretyping/typing.mli @@ -17,11 +17,17 @@ open Evd (* This module provides the typing machine with existential variables (but without universes). *) -val unsafe_machine : env -> evar_map -> constr -> unsafe_judgment - -val type_of : env -> evar_map -> constr -> constr - -val execute_type : env -> evar_map -> constr -> types - -val execute_rec_type : env -> evar_map -> constr -> types - +(* Typecheck a term and return its type *) +val type_of : env -> evar_map -> constr -> types +(* Typecheck a type and return its sort *) +val sort_of : env -> evar_map -> types -> sorts +(* Typecheck a term has a given type (assuming the type is OK *) +val check : env -> evar_map -> constr -> types -> unit + +(* The same but with metas... *) +val mtype_of : env -> evar_map * meta_map -> constr -> types +val msort_of : env -> evar_map * meta_map -> types -> sorts +val mcheck : env -> evar_map * meta_map -> constr -> types -> unit + +(* unused typing function... *) +val mtype_of_type : env -> evar_map * meta_map -> types -> types |