aboutsummaryrefslogtreecommitdiff
path: root/kernel/typeops.mli
diff options
context:
space:
mode:
authorbarras2001-03-28 15:11:26 +0000
committerbarras2001-03-28 15:11:26 +0000
commit8e82c4096357355a148705341742702ff285f72a (patch)
tree4c666a566036e48680f0f76045efe09104f77091 /kernel/typeops.mli
parent5086461b2de4c3e87146ac803b99538a4c187b98 (diff)
amelioration de la structure des univers
elimination des compteurs globaux de metas et d'evars du noyau nettoyage de safe_typing.ml (plus de flags) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1497 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'kernel/typeops.mli')
-rw-r--r--kernel/typeops.mli56
1 files changed, 31 insertions, 25 deletions
diff --git a/kernel/typeops.mli b/kernel/typeops.mli
index b2db983734..aaa07142f3 100644
--- a/kernel/typeops.mli
+++ b/kernel/typeops.mli
@@ -33,33 +33,28 @@ val assumption_of_judgment :
val type_judgment :
env -> 'a evar_map -> unsafe_judgment -> unsafe_type_judgment
-val relative : env -> 'a evar_map -> int -> unsafe_judgment
+(*s Type of sorts. *)
+val judge_of_prop_contents : contents -> unsafe_judgment
-val type_of_constant : env -> 'a evar_map -> constant -> types
+val judge_of_type : universe -> unsafe_judgment * constraints
-val type_of_inductive : env -> 'a evar_map -> inductive -> types
+(*s Type of atomic terms. *)
+val relative : env -> 'a evar_map -> int -> unsafe_judgment
-val type_of_constructor : env -> 'a evar_map -> constructor -> types
+val type_of_constant : env -> 'a evar_map -> constant -> types
val type_of_existential : env -> 'a evar_map -> existential -> types
-val type_of_case : env -> 'a evar_map -> case_info
- -> unsafe_judgment -> unsafe_judgment
- -> unsafe_judgment array -> unsafe_judgment
-
-val type_case_branches :
- env -> 'a evar_map -> Inductive.inductive_type -> constr -> types
- -> constr -> types array * types
-
-val judge_of_prop_contents : contents -> unsafe_judgment
-
-val judge_of_type : universe -> unsafe_judgment * constraints
-
(*s Type of an abstraction. *)
val abs_rel :
env -> 'a evar_map -> name -> types -> unsafe_judgment
-> unsafe_judgment * constraints
+(*s Type of application. *)
+val apply_rel_list :
+ env -> 'a evar_map -> bool -> unsafe_judgment list -> unsafe_judgment
+ -> unsafe_judgment * constraints
+
(*s Type of a product. *)
val gen_rel :
env -> 'a evar_map -> name -> unsafe_type_judgment -> unsafe_type_judgment
@@ -72,22 +67,33 @@ val cast_rel :
env -> 'a evar_map -> unsafe_judgment -> types
-> unsafe_judgment * constraints
-val apply_rel_list :
- env -> 'a evar_map -> bool -> unsafe_judgment list -> unsafe_judgment
- -> unsafe_judgment * constraints
+(*s Inductive types. *)
+open Inductive
-val check_fix : env -> 'a evar_map -> fixpoint -> unit
-val check_cofix : env -> 'a evar_map -> cofixpoint -> unit
-val control_only_guard : env -> 'a evar_map -> constr -> unit
+val type_of_inductive : env -> 'a evar_map -> inductive -> types
-val type_fixpoint : env -> 'a evar_map -> name list -> types array
- -> unsafe_judgment array -> constraints
+val type_of_constructor : env -> 'a evar_map -> constructor -> types
-open Inductive
+(*s Type of Cases. *)
+val type_of_case : env -> 'a evar_map -> case_info
+ -> unsafe_judgment -> unsafe_judgment
+ -> unsafe_judgment array -> unsafe_judgment
val find_case_dep_nparams :
env -> 'a evar_map -> constr * constr -> inductive_family -> constr -> bool
+val type_case_branches :
+ env -> 'a evar_map -> Inductive.inductive_type -> constr -> types
+ -> constr -> types array * types
+
+(*s Type of fixpoints and guard condition. *)
+val check_fix : env -> 'a evar_map -> fixpoint -> unit
+val check_cofix : env -> 'a evar_map -> cofixpoint -> unit
+val type_fixpoint : env -> 'a evar_map -> name list -> types array
+ -> unsafe_judgment array -> constraints
+
+val control_only_guard : env -> 'a evar_map -> constr -> unit
+
(*i
val hyps_inclusion : env -> 'a evar_map -> named_context -> named_context -> bool
i*)