| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
open Names |
| 12 |
open Evd |
| 13 |
open EConstr |
| 14 |
open Rocqlib |
| 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 |
type 'a matching_function = Environ.env -> evar_map -> constr -> 'a option |
| 47 |
type testing_function = Environ.env -> evar_map -> constr -> bool |
| 48 |
|
| 49 |
val match_with_non_recursive_type : (constr * constr list) matching_function |
| 50 |
val is_non_recursive_type : testing_function |
| 51 |
|
| 52 |
|
| 53 |
|
| 54 |
val match_with_disjunction : ?strict:bool -> ?onlybinary:bool -> (constr * constr list) matching_function |
| 55 |
val is_disjunction : ?strict:bool -> ?onlybinary:bool -> testing_function |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
val match_with_conjunction : ?strict:bool -> ?onlybinary:bool -> (constr * constr list) matching_function |
| 60 |
val is_conjunction : ?strict:bool -> ?onlybinary:bool -> testing_function |
| 61 |
|
| 62 |
|
| 63 |
val match_with_record : (constr * constr list) matching_function |
| 64 |
val is_record : testing_function |
| 65 |
|
| 66 |
|
| 67 |
val match_with_tuple : (constr * constr list * bool) matching_function |
| 68 |
val is_tuple : testing_function |
| 69 |
|
| 70 |
|
| 71 |
val match_with_empty_type : constr matching_function |
| 72 |
val is_empty_type : testing_function |
| 73 |
|
| 74 |
|
| 75 |
val match_with_unit_or_eq_type : constr matching_function |
| 76 |
val is_unit_or_eq_type : testing_function |
| 77 |
|
| 78 |
|
| 79 |
val is_unit_type : testing_function |
| 80 |
|
| 81 |
|
| 82 |
val is_inductive_equality : Environ.env -> inductive -> bool |
| 83 |
val match_with_equality_type : (constr * constr list) matching_function |
| 84 |
val is_equality_type : testing_function |
| 85 |
|
| 86 |
val match_with_nottype : (constr * constr) matching_function |
| 87 |
val is_nottype : testing_function |
| 88 |
|
| 89 |
val match_with_forall_term : (Name.t EConstr.binder_annot * constr * constr) matching_function |
| 90 |
val is_forall_term : testing_function |
| 91 |
|
| 92 |
val match_with_imp_term : (constr * constr) matching_function |
| 93 |
val is_imp_term : testing_function |
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
val has_nodep_prod_after : int -> testing_function |
| 101 |
val has_nodep_prod : testing_function |
| 102 |
|
| 103 |
val match_with_nodep_ind : (constr * constr list * int) matching_function |
| 104 |
val is_nodep_ind : testing_function |
| 105 |
|
| 106 |
val match_with_sigma_type : (constr * constr list) matching_function |
| 107 |
val is_sigma_type : testing_function |
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
type equation_kind = |
| 112 |
| MonomorphicLeibnizEq of constr * constr |
| 113 |
| PolymorphicLeibnizEq of constr * constr * constr |
| 114 |
| HeterogenousEq of constr * constr * constr * constr |
| 115 |
|
| 116 |
exception NoEquationFound |
| 117 |
|
| 118 |
val match_with_equation: |
| 119 |
Environ.env -> evar_map -> constr -> rocq_eq_data option * constr * equation_kind |
| 120 |
|
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
|
| 125 |
val find_eq_data_decompose : Environ.env -> evar_map -> constr -> |
| 126 |
rocq_eq_data * EInstance.t * (types * constr * constr) |
| 127 |
|
| 128 |
|
| 129 |
val find_this_eq_data_decompose : Environ.env -> evar_map -> constr -> |
| 130 |
rocq_eq_data * EInstance.t * (types * constr * constr) |
| 131 |
|
| 132 |
|
| 133 |
val find_eq_data : Environ.env -> evar_map -> constr -> rocq_eq_data * EInstance.t * equation_kind |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
val find_sigma_data_decompose : Environ.env -> evar_map -> constr -> |
| 138 |
rocq_sigma_data * (EInstance.t * constr * constr * constr * constr) |
| 139 |
|
| 140 |
|
| 141 |
val match_sigma : Environ.env -> evar_map -> constr -> constr * constr |
| 142 |
|
| 143 |
val is_matching_sigma : Environ.env -> evar_map -> constr -> bool |
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
val match_eqdec : Environ.env -> evar_map -> constr -> bool * GlobRef.t * constr * constr * constr |
| 148 |
|
| 149 |
|
| 150 |
val is_matching_not : Environ.env -> evar_map -> constr -> bool |
| 151 |
val is_matching_imp_False : Environ.env -> evar_map -> constr -> bool |
| 152 |
|
| 153 |
|
| 154 |
val is_homogeneous_relation : ?loc:Loc.t -> Environ.env -> evar_map -> constr -> types |