1
(************************************************************************)
2
(* v * The Coq Proof Assistant / The Coq Development Team *)
3
(* <O___,, * CNRS-Ecole Polytechnique-INRIA Futurs-Universite Paris Sud *)
4
(* \VV/ **************************************************************)
5
(* // * This file is distributed under the terms of the *)
6
(* * GNU Lesser General Public License Version 2.1 *)
7
(************************************************************************)
9
(*i $Id: retyping.mli 11436 2008-10-07 13:56:55Z barras $ i*)
18
(* This family of functions assumes its constr argument is known to be
19
well-typable. It does not type-check, just recompute the type
20
without any costly verifications. On non well-typable terms, it
21
either produces a wrong result or raise an anomaly. Use with care.
22
It doesn't handle predicative universes too. *)
24
val get_type_of : env -> evar_map -> constr -> types
25
val get_sort_of : env -> evar_map -> types -> sorts
26
val get_sort_family_of : env -> evar_map -> types -> sorts_family
28
val get_type_of_with_meta :
29
env -> evar_map -> Termops.metamap -> constr -> types
31
(* Makes an assumption from a constr *)
32
val get_assumption_of : env -> evar_map -> constr -> types
34
(* Makes an unsafe judgment from a constr *)
35
val get_judgment_of : env -> evar_map -> constr -> unsafe_judgment
37
val type_of_global_reference_knowing_parameters : env -> evar_map -> constr ->
40
val type_of_global_reference_knowing_conclusion :
41
env -> evar_map -> constr -> types -> types