| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
open Names |
| 14 |
open Environ |
| 15 |
open Evd |
| 16 |
open EConstr |
| 17 |
|
| 18 |
|
| 19 |
type intro_pattern_naming_expr = |
| 20 |
| IntroIdentifier of Id.t |
| 21 |
| IntroFresh of Id.t |
| 22 |
| IntroAnonymous |
| 23 |
|
| 24 |
|
| 25 |
val intro_pattern_naming_eq : |
| 26 |
intro_pattern_naming_expr -> intro_pattern_naming_expr -> bool |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
val default_prop_ident : Id.t |
| 32 |
val default_small_ident : Id.t |
| 33 |
val default_type_ident : Id.t |
| 34 |
val default_non_dependent_ident : Id.t |
| 35 |
val default_dependent_ident : Id.t |
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
val lowercase_first_char : Id.t -> string |
| 41 |
val sort_hdchar : Sorts.t -> string |
| 42 |
val hdchar : env -> evar_map -> types -> string |
| 43 |
val id_of_name_using_hdchar : env -> evar_map -> types -> Name.t -> Id.t |
| 44 |
val named_hd : env -> evar_map -> types -> Name.t -> Name.t |
| 45 |
val head_name : evar_map -> types -> Id.t option |
| 46 |
|
| 47 |
val mkProd_name : env -> evar_map -> Name.t EConstr.binder_annot * types * types -> types |
| 48 |
val mkLambda_name : env -> evar_map -> Name.t EConstr.binder_annot * types * constr -> constr |
| 49 |
|
| 50 |
|
| 51 |
val prod_name : env -> evar_map -> Name.t EConstr.binder_annot * types * types -> types |
| 52 |
val lambda_name : env -> evar_map -> Name.t EConstr.binder_annot * types * constr -> constr |
| 53 |
|
| 54 |
val prod_create : env -> evar_map -> ERelevance.t * types * types -> constr |
| 55 |
val lambda_create : env -> evar_map -> ERelevance.t * types * constr -> constr |
| 56 |
val name_assumption : env -> evar_map -> rel_declaration -> rel_declaration |
| 57 |
val name_context : env -> evar_map -> rel_context -> rel_context |
| 58 |
|
| 59 |
val mkProd_or_LetIn_name : env -> evar_map -> types -> rel_declaration -> types |
| 60 |
val mkLambda_or_LetIn_name : env -> evar_map -> constr -> rel_declaration -> constr |
| 61 |
val it_mkProd_or_LetIn_name : env -> evar_map -> types -> rel_context -> types |
| 62 |
val it_mkLambda_or_LetIn_name : env -> evar_map -> constr -> rel_context -> constr |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
val mangle_id : Id.t -> Id.t |
| 68 |
|
| 69 |
|
| 70 |
val next_ident_away_from : Id.t -> (Id.t -> bool) -> Id.t |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
val next_ident_away : Id.t -> Id.Set.t -> Id.t |
| 89 |
|
| 90 |
|
| 91 |
val next_ident_away_in_goal : Environ.env -> Id.t -> Id.Set.t -> Id.t |
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
val next_global_ident_away : Safe_typing.safe_environment -> Id.t -> Id.Set.t -> Id.t |
| 96 |
|
| 97 |
|
| 98 |
val next_name_away : Name.t -> Id.Set.t -> Id.t |
| 99 |
|
| 100 |
val next_name_away_with_default : string -> Name.t -> Id.Set.t -> Id.t |
| 101 |
|
| 102 |
val next_name_away_with_default_using_types : Environ.env -> evar_map -> |
| 103 |
string -> Name.t -> Id.Set.t -> types -> Id.t |
| 104 |
|
| 105 |
val set_reserved_typed_name : (Environ.env -> evar_map -> types -> Name.t) -> unit |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
val make_all_rel_context_name_different : env -> evar_map -> rel_context -> env * rel_context |
| 111 |
val make_all_name_different : env -> evar_map -> env |
| 112 |
|
| 113 |
module Generator : |
| 114 |
sig |
| 115 |
type 'a t |
| 116 |
type 'a input = 'a t * 'a |
| 117 |
val fresh : Nameops.Fresh.t t |
| 118 |
val idset : Id.Set.t t |
| 119 |
|
| 120 |
val next_name_away : 'a t -> Name.t -> 'a -> Id.t * 'a |
| 121 |
|
| 122 |
val max_map : 'a t -> 'a -> Nameops.Subscript.t Id.Map.t |
| 123 |
end |
| 124 |
|
| 125 |
type renaming_flags = |
| 126 |
| RenamingForCasesPattern of (Name.t list * constr) |
| 127 |
| RenamingForGoal |
| 128 |
| RenamingElsewhereFor of (Name.t list * constr) |
| 129 |
|
| 130 |
val compute_displayed_name_in : |
| 131 |
'a Generator.t -> Environ.env -> evar_map -> renaming_flags -> 'a -> Name.t -> constr -> Name.t * 'a |
| 132 |
val compute_displayed_let_name_in : |
| 133 |
'a Generator.t -> Environ.env -> evar_map -> renaming_flags -> 'a -> Name.t -> Name.t * 'a |
| 134 |
|
| 135 |
|
| 136 |
val compute_displayed_name_in_gen : |
| 137 |
'a Generator.t -> (evar_map -> int -> 'constr -> bool) -> |
| 138 |
Environ.env -> evar_map -> 'a -> Name.t -> 'constr -> Name.t * 'a |