blob: 2d6681f815f122258e086589a3d25b802ca891ec (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
(***********************************************************************)
(* v * The Coq Proof Assistant / The Coq Development Team *)
(* <O___,, * INRIA-Rocquencourt & LRI-CNRS-Orsay *)
(* \VV/ *************************************************************)
(* // * This file is distributed under the terms of the *)
(* * GNU Lesser General Public License Version 2.1 *)
(***********************************************************************)
(*i $Id$ i*)
(*i*)
open Names
open Term
open Sign
open Evd
open Environ
open Reduction
(*i*)
(*s This modules provides useful functions for unification modulo evars *)
(* [whd_ise] raise [Uninstantiated_evar] if an evar remains uninstantiated; *)
(* *[whd_evar]* and *[nf_evar]* leave uninstantiated evar as is *)
val nf_evar : 'a Evd.evar_map -> constr -> constr
val j_nf_evar : 'a Evd.evar_map -> unsafe_judgment -> unsafe_judgment
val jl_nf_evar :
'a Evd.evar_map -> unsafe_judgment list -> unsafe_judgment list
val jv_nf_evar :
'a Evd.evar_map -> unsafe_judgment array -> unsafe_judgment array
val tj_nf_evar :
'a Evd.evar_map -> unsafe_type_judgment -> unsafe_type_judgment
(* Replacing all evars *)
exception Uninstantiated_evar of int
val whd_ise : 'a evar_map -> constr -> constr
val whd_castappevar : 'a evar_map -> constr -> constr
(* Creating new existential variables *)
val new_evar : unit -> evar
val new_evar_in_sign : env -> constr
val evar_env : 'a evar_info -> env
type 'a evar_defs
val evars_of : 'a evar_defs -> 'a evar_map
val create_evar_defs : 'a evar_map -> 'a evar_defs
val evars_reset_evd : 'a evar_map -> 'a evar_defs -> unit
type evar_constraint = conv_pb * constr * constr
val add_conv_pb : 'a evar_defs -> evar_constraint -> unit
val ise_try : 'a evar_defs -> (unit -> bool) list -> bool
val ise_undefined : 'a evar_defs -> constr -> bool
val has_undefined_isevars : 'a evar_defs -> constr -> bool
val new_isevar : 'a evar_defs -> env -> constr -> path_kind -> constr
val is_eliminator : constr -> bool
val head_is_embedded_evar : 'a evar_defs -> constr -> bool
val solve_simple_eqn :
(env -> 'a evar_defs -> conv_pb -> constr -> constr -> bool)
-> env -> 'a evar_defs -> conv_pb * existential * constr -> bool
(* Value/Type constraints *)
val new_Type_sort : unit -> sorts
val new_Type : unit -> constr
val judge_of_new_Type : unit -> unsafe_judgment
type type_constraint = constr option
type val_constraint = constr option
val empty_tycon : type_constraint
val mk_tycon : constr -> type_constraint
val empty_valcon : val_constraint
val mk_valcon : constr -> val_constraint
val split_tycon :
Rawterm.loc -> env -> 'a evar_defs -> type_constraint ->
type_constraint * type_constraint
val valcon_of_tycon : type_constraint -> val_constraint
val lift_tycon : type_constraint -> type_constraint
|