diff options
| author | filliatr | 1999-08-26 16:26:54 +0000 |
|---|---|---|
| committer | filliatr | 1999-08-26 16:26:54 +0000 |
| commit | dd279791aca531cd0f38ce79b675c68e08a4ff63 (patch) | |
| tree | 32115bf156935bcb902d50fe3222e818ed692a1f /kernel/typing.mli | |
| parent | 15ed739c91a22e91ae88d54215f6862fc1074a88 (diff) | |
environnement sur
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@28 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/typing.mli')
| -rw-r--r-- | kernel/typing.mli | 64 |
1 files changed, 41 insertions, 23 deletions
diff --git a/kernel/typing.mli b/kernel/typing.mli index 9e37c4c798..e67308d263 100644 --- a/kernel/typing.mli +++ b/kernel/typing.mli @@ -6,43 +6,61 @@ open Pp open Names open Term open Univ +open Evd +open Sign +open Constant +open Inductive open Environ -open Machops +open Typeops (*i*) -(*s Machines without information. *) +(*s Safe environments. *) -val safe_machine : 'a unsafe_env -> constr -> unsafe_judgment * universes -val safe_machine_type : 'a unsafe_env -> constr -> typed_type +type 'a environment -val fix_machine : 'a unsafe_env -> constr -> unsafe_judgment * universes -val fix_machine_type : 'a unsafe_env -> constr -> typed_type +val evar_map : 'a environment -> 'a evar_map +val universes : 'a environment -> universes +val metamap : 'a environment -> (int * constr) list +val context : 'a environment -> context -val unsafe_machine : 'a unsafe_env -> constr -> unsafe_judgment * universes -val unsafe_machine_type : 'a unsafe_env -> constr -> typed_type +val push_var : identifier * typed_type -> 'a environment -> 'a environment +val push_rel : name * typed_type -> 'a environment -> 'a environment +val add_constant : + section_path -> constant_entry -> 'a environment -> 'a environment +val add_parameter : + section_path -> constr -> 'a environment -> 'a environment +val add_mind : + section_path -> mutual_inductive_entry -> 'a environment -> 'a environment -val type_of : 'a unsafe_env -> constr -> constr +val lookup_var : identifier -> 'a environment -> name * typed_type +val lookup_rel : int -> 'a environment -> name * typed_type +val lookup_constant : section_path -> 'a environment -> constant_body +val lookup_mind : section_path -> 'a environment -> mutual_inductive_body +val lookup_mind_specif : constr -> 'a environment -> mind_specif +val lookup_meta : int -> 'a environment -> constr -val type_of_type : 'a unsafe_env -> constr -> constr +(*s Typing without information. *) -val unsafe_type_of : 'a unsafe_env -> constr -> constr +type judgment +val safe_machine : 'a environment -> constr -> judgment * universes +val safe_machine_type : 'a environment -> constr -> typed_type -(*s Machine with information. *) +val fix_machine : 'a environment -> constr -> judgment * universes +val fix_machine_type : 'a environment -> constr -> typed_type -type information = Logic | Inf of unsafe_judgment +val unsafe_machine : 'a environment -> constr -> judgment * universes +val unsafe_machine_type : 'a environment -> constr -> typed_type -(*i -val infexemeta : - 'a unsafe_env -> constr -> unsafe_judgment * information * universes +val type_of : 'a environment -> constr -> constr -val infexecute_type : - 'a unsafe_env -> constr -> typed_type * information * universes +val type_of_type : 'a environment -> constr -> constr -val infexecute : - 'a unsafe_env -> constr -> unsafe_judgment * information * universes +val unsafe_type_of : 'a environment -> constr -> constr + + +(*s Typing with information (extraction). *) + +type information = Logic | Inf of judgment -val inf_env_of_env : 'a unsafe_env -> 'a unsafe_env -val core_infmachine : 'a unsafe_env -> constr -> information -i*) |
