aboutsummaryrefslogtreecommitdiffhomepage
path: root/kernel/instantiate.mli
blob: d3454f1cccfac7d57f5f48fda49b434c85b8c21a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

(* $Id$ *)

(*i*)
open Names
open Term
open Evd
open Sign
open Environ
(*i*)

(* Instantiation of constants and inductives on their real arguments. *)

val instantiate_constr : 
  var_context -> constr -> constr list -> constr
val instantiate_type : 
  var_context -> typed_type -> constr list -> typed_type

type const_evaluation_error = NotDefinedConst | OpaqueConst
exception NotEvaluableConst of const_evaluation_error

(* [constant_value env c] raises [NotEvaluableConst OpaqueConst] if
   [c] is opaque and [NotEvaluableConst NotDefinedConst] if undefined *)
val constant_value : env -> constr -> constr
val constant_type : env -> 'a evar_map -> constant -> typed_type

val existential_value : 'a evar_map -> existential -> constr
val existential_type : 'a evar_map -> existential -> constr

val const_abst_opt_value : env -> 'a evar_map -> constr -> constr option