| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
open EConstr |
| 12 |
open Environ |
| 13 |
open Reductionops |
| 14 |
open Evd |
| 15 |
open Locus |
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
type unify_flags = Evarsolve.unify_flags |
| 20 |
|
| 21 |
|
| 22 |
val default_flags_of : ?subterm_ts:TransparentState.t -> TransparentState.t -> unify_flags |
| 23 |
|
| 24 |
type unify_fun = unify_flags -> |
| 25 |
env -> evar_map -> conv_pb -> constr -> constr -> Evarsolve.unification_result |
| 26 |
|
| 27 |
val conv_fun : unify_fun -> Evarsolve.unifier |
| 28 |
|
| 29 |
exception UnableToUnify of evar_map * Pretype_errors.unification_error |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
val unify_delay : ?flags:unify_flags -> env -> evar_map -> constr -> constr -> evar_map |
| 47 |
val unify_leq_delay : ?flags:unify_flags -> env -> evar_map -> constr -> constr -> evar_map |
| 48 |
|
| 49 |
|
| 50 |
|
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
val unify : ?flags:unify_flags -> ?with_ho:bool -> |
| 57 |
env -> evar_map -> conv_pb -> constr -> constr -> evar_map |
| 58 |
|
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
val solve_unif_constraints_with_heuristics : |
| 70 |
env -> ?flags:unify_flags -> ?with_ho:bool -> evar_map -> evar_map |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
val check_problems_are_solved : ?evars:Evar.Set.t -> env -> evar_map -> unit |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
type hook = Environ.env -> Evd.evar_map -> ((Names.Constant.t * EConstr.EInstance.t) * EConstr.t list option * EConstr.t) -> (EConstr.t * EConstr.t list) -> (Evd.evar_map * Structures.CanonicalSolution.t) option |
| 80 |
|
| 81 |
val all_hooks : hook CString.Map.t ref |
| 82 |
|
| 83 |
val register_hook : name:CString.Map.key -> ?override:bool -> hook -> unit |
| 84 |
|
| 85 |
val active_hooks : string list ref |
| 86 |
|
| 87 |
val deactivate_hook : name:Util.String.t -> unit |
| 88 |
|
| 89 |
val activate_hook : name:CString.Map.key -> unit |
| 90 |
|
| 91 |
val apply_hooks : hook |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
val decompose_proj : ?metas:(Constr.metavariable -> types option) -> env -> evar_map -> state -> (Names.Constant.t * EConstr.EInstance.t) * |
| 96 |
(EConstr.t list option * EConstr.t * Reductionops.Stack.t) |
| 97 |
val check_conv_record : env -> evar_map -> |
| 98 |
(Names.Constant.t * EConstr.EInstance.t) * |
| 99 |
(EConstr.t list option * EConstr.t * Reductionops.Stack.t) -> |
| 100 |
state -> |
| 101 |
evar_map * (constr * constr) |
| 102 |
* constr * constr list * (EConstr.t list * EConstr.t list option) * |
| 103 |
(EConstr.t list * EConstr.t list) * |
| 104 |
(Stack.t * Stack.t) * constr * |
| 105 |
(int option * constr) |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
val compare_heads : env -> evar_map -> |
| 111 |
nargs:int -> EConstr.t -> EConstr.t -> Evarsolve.unification_result |
| 112 |
|
| 113 |
|
| 114 |
|
| 115 |
|
| 116 |
type occurrence_match_test = |
| 117 |
env -> evar_map -> constr -> constr -> bool * evar_map |
| 118 |
|
| 119 |
|
| 120 |
|
| 121 |
|
| 122 |
type occurrence_selection = |
| 123 |
| AtOccurrences of occurrences |
| 124 |
| Unspecified of Abstraction.abstraction |
| 125 |
|
| 126 |
|
| 127 |
|
| 128 |
val default_occurrence_selection : occurrence_selection |
| 129 |
|
| 130 |
type occurrences_selection = |
| 131 |
occurrence_match_test * occurrence_selection list |
| 132 |
|
| 133 |
val default_occurrence_test : allowed_evars:Evarsolve.AllowedEvars.t -> TransparentState.t -> occurrence_match_test |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
val default_occurrences_selection : ?allowed_evars:Evarsolve.AllowedEvars.t -> |
| 138 |
TransparentState.t -> int -> occurrences_selection |
| 139 |
|
| 140 |
val second_order_matching : unify_flags -> env -> evar_map -> |
| 141 |
EConstr.existential -> occurrences_selection -> constr -> evar_map * bool |
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
val set_solve_evars : (env -> evar_map -> constr -> evar_map * constr) -> unit |
| 146 |
|
| 147 |
|
| 148 |
val set_evar_conv : unify_fun -> unit |
| 149 |
|
| 150 |
|
| 151 |
val evar_conv_x : unify_fun |
| 152 |
|
| 153 |
val evar_unify : Evarsolve.unifier |
| 154 |
|
| 155 |
|
| 156 |
|
| 157 |
module Cs_keys_cache : sig type t end |
| 158 |
|
| 159 |
type orig = { left: state; right: state } |
| 160 |
|
| 161 |
val evar_eqappr_x : ?rhs_is_already_stuck:bool -> unify_flags -> |
| 162 |
env -> evar_map -> conv_pb -> |
| 163 |
Cs_keys_cache.t -> |
| 164 |
bool option -> orig -> state -> state -> |
| 165 |
Evarsolve.unification_result |
| 166 |
|
| 167 |
val occur_rigidly : Evarsolve.unify_flags -> |
| 168 |
'a -> Evd.evar_map -> Evar.t * 'b -> EConstr.t -> bool |
| 169 |
|
| 170 |
|
| 171 |
|
| 172 |
val coq_unit_judge : env -> evar_map -> evar_map * EConstr.unsafe_judgment |