| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
open Names |
| 12 |
|
| 13 |
type vodigest = |
| 14 |
| Dvo_or_vi of Digest.t |
| 15 |
|
| 16 |
val digest_match : actual:vodigest -> required:vodigest -> bool |
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
type safe_environment |
| 28 |
|
| 29 |
type section_data |
| 30 |
|
| 31 |
val empty_environment : safe_environment |
| 32 |
|
| 33 |
val env_of_safe_env : safe_environment -> Environ.env |
| 34 |
|
| 35 |
val sections_of_safe_env : safe_environment -> section_data Section.t option |
| 36 |
|
| 37 |
val structure_body_of_safe_env : safe_environment -> Mod_declarations.structure_body |
| 38 |
|
| 39 |
val flatten_env : safe_environment -> ModPath.t * Mod_declarations.structure_body |
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
type safe_transformer0 = safe_environment -> safe_environment |
| 44 |
type 'a safe_transformer = safe_environment -> 'a * safe_environment |
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
type private_constants |
| 50 |
|
| 51 |
val debug_print_private_constants : private_constants -> Pp.t |
| 52 |
|
| 53 |
val empty_private_constants : private_constants |
| 54 |
val is_empty_private_constants : private_constants -> bool |
| 55 |
val length_private : private_constants -> int |
| 56 |
val pop_private : private_constants -> int -> private_constants * private_constants |
| 57 |
|
| 58 |
val concat_private : private_constants -> private_constants -> private_constants |
| 59 |
|
| 60 |
|
| 61 |
|
| 62 |
val inline_private_constants : |
| 63 |
Environ.env -> private_constants Entries.proof_output -> Constr.constr * Univ.ContextSet.t |
| 64 |
|
| 65 |
|
| 66 |
val push_private_constants : Environ.env -> private_constants -> Environ.env |
| 67 |
|
| 68 |
|
| 69 |
val universes_of_private : private_constants -> Univ.ContextSet.t |
| 70 |
|
| 71 |
val constants_of_private : private_constants -> Constant.t list |
| 72 |
|
| 73 |
val is_curmod_library : safe_environment -> bool |
| 74 |
|
| 75 |
val is_joined_environment : safe_environment -> bool |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
type side_effect_declaration = |
| 81 |
| DefinitionEff : Entries.definition_entry -> side_effect_declaration |
| 82 |
| OpaqueEff : Constr.constr Entries.opaque_entry -> side_effect_declaration |
| 83 |
|
| 84 |
type exported_opaque |
| 85 |
type exported_private_constant = Constant.t * exported_opaque option |
| 86 |
|
| 87 |
val repr_exported_opaque : exported_opaque -> Opaqueproof.opaque_handle * Opaqueproof.opaque_proofterm |
| 88 |
|
| 89 |
val export_private_constants : |
| 90 |
private_constants -> |
| 91 |
exported_private_constant list safe_transformer |
| 92 |
|
| 93 |
|
| 94 |
val add_constant : |
| 95 |
?typing_flags:Declarations.typing_flags -> |
| 96 |
Id.t -> Entries.constant_entry -> Constant.t safe_transformer |
| 97 |
|
| 98 |
|
| 99 |
val add_private_constant : |
| 100 |
Id.t -> Univ.ContextSet.t -> side_effect_declaration -> (Constant.t * private_constants) safe_transformer |
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
type opaque_certificate |
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
val check_opaque : safe_environment -> Opaqueproof.opaque_handle -> |
| 113 |
private_constants Entries.proof_output -> opaque_certificate |
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
val fill_opaque : opaque_certificate -> safe_transformer0 |
| 121 |
|
| 122 |
|
| 123 |
|
| 124 |
val is_filled_opaque : Opaqueproof.opaque_handle -> safe_environment -> bool |
| 125 |
|
| 126 |
|
| 127 |
val repr_certificate : opaque_certificate -> |
| 128 |
Constr.t * Univ.ContextSet.t Opaqueproof.delayed_universes |
| 129 |
|
| 130 |
|
| 131 |
|
| 132 |
|
| 133 |
val add_rewrite_rules : Id.t -> Declarations.rewrite_rules_body -> safe_environment -> safe_environment |
| 134 |
|
| 135 |
|
| 136 |
|
| 137 |
|
| 138 |
|
| 139 |
val add_mind : |
| 140 |
?typing_flags:Declarations.typing_flags -> |
| 141 |
Id.t -> Entries.mutual_inductive_entry -> |
| 142 |
(MutInd.t * IndTyping.NotPrimRecordReason.t option) safe_transformer |
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
val add_module : |
| 147 |
Id.t -> Entries.module_entry -> Declarations.inline -> |
| 148 |
(ModPath.t * Mod_subst.delta_resolver) safe_transformer |
| 149 |
val add_modtype : |
| 150 |
Id.t -> Entries.module_type_entry -> Declarations.inline -> |
| 151 |
ModPath.t safe_transformer |
| 152 |
|
| 153 |
|
| 154 |
|
| 155 |
val push_context_set : |
| 156 |
strict:bool -> Univ.ContextSet.t -> safe_transformer0 |
| 157 |
|
| 158 |
|
| 159 |
|
| 160 |
val push_qualities : rigid:bool -> Sorts.QContextSet.t -> safe_transformer0 |
| 161 |
|
| 162 |
|
| 163 |
|
| 164 |
|
| 165 |
|
| 166 |
val set_rewrite_rules_allowed : bool -> safe_transformer0 |
| 167 |
val set_impredicative_set : bool -> safe_transformer0 |
| 168 |
val set_indices_matter : bool -> safe_transformer0 |
| 169 |
val set_typing_flags : Declarations.typing_flags -> safe_transformer0 |
| 170 |
val set_share_reduction : bool -> safe_transformer0 |
| 171 |
val set_check_guarded : bool -> safe_transformer0 |
| 172 |
val set_check_positive : bool -> safe_transformer0 |
| 173 |
val set_check_universes : bool -> safe_transformer0 |
| 174 |
val set_VM : bool -> safe_transformer0 |
| 175 |
val set_native_compiler : bool -> safe_transformer0 |
| 176 |
val set_allow_sprop : bool -> safe_transformer0 |
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
val open_section : safe_transformer0 |
| 181 |
|
| 182 |
val close_section : safe_transformer0 |
| 183 |
|
| 184 |
val sections_are_opened : safe_environment -> bool |
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
val push_named_assum : (Id.t * Constr.types) -> safe_transformer0 |
| 189 |
|
| 190 |
val push_named_def : |
| 191 |
Id.t * Entries.section_def_entry -> safe_transformer0 |
| 192 |
|
| 193 |
|
| 194 |
val push_section_context : UVars.UContext.t -> safe_transformer0 |
| 195 |
|
| 196 |
|
| 197 |
|
| 198 |
val start_module : Id.t -> ModPath.t safe_transformer |
| 199 |
|
| 200 |
val start_modtype : Id.t -> ModPath.t safe_transformer |
| 201 |
|
| 202 |
val add_module_parameter : |
| 203 |
MBId.t -> Entries.module_struct_entry -> Declarations.inline -> |
| 204 |
Mod_declarations.module_type_body safe_transformer |
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
val module_num_parameters : safe_environment -> int list |
| 209 |
|
| 210 |
|
| 211 |
|
| 212 |
|
| 213 |
val module_is_modtype : safe_environment -> bool list |
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
val allow_delayed_constants : bool ref |
| 218 |
|
| 219 |
|
| 220 |
|
| 221 |
val end_module : |
| 222 |
Id.t -> (Entries.module_struct_entry * Declarations.inline) option -> |
| 223 |
(ModPath.t * MBId.t list * Mod_subst.delta_resolver) safe_transformer |
| 224 |
|
| 225 |
val end_modtype : Id.t -> (ModPath.t * MBId.t list) safe_transformer |
| 226 |
|
| 227 |
val add_include : |
| 228 |
Entries.module_struct_entry -> bool -> Declarations.inline -> |
| 229 |
Mod_subst.delta_resolver safe_transformer |
| 230 |
|
| 231 |
val current_modpath : safe_environment -> ModPath.t |
| 232 |
|
| 233 |
val current_dirpath : safe_environment -> DirPath.t |
| 234 |
|
| 235 |
|
| 236 |
|
| 237 |
type compiled_library |
| 238 |
|
| 239 |
val dirpath_of_library : compiled_library -> DirPath.t |
| 240 |
val module_of_library : compiled_library -> Mod_declarations.module_body |
| 241 |
val univs_of_library : compiled_library -> Sorts.QContextSet.t * Univ.ContextSet.t |
| 242 |
val check_flags_for_library : compiled_library -> safe_transformer0 |
| 243 |
|
| 244 |
val start_library : DirPath.t -> ModPath.t safe_transformer |
| 245 |
|
| 246 |
val export : |
| 247 |
output_native_objects:bool -> |
| 248 |
safe_environment -> DirPath.t -> |
| 249 |
ModPath.t * compiled_library * Vmlibrary.compiled_library * Nativelib.native_library |
| 250 |
|
| 251 |
val import : compiled_library -> Vmlibrary.on_disk -> vodigest -> |
| 252 |
ModPath.t safe_transformer |
| 253 |
|
| 254 |
|
| 255 |
|
| 256 |
type judgment = private { |
| 257 |
jdg_env : safe_environment; |
| 258 |
jdg_val : Constr.constr; |
| 259 |
jdg_type : Constr.types; |
| 260 |
} |
| 261 |
|
| 262 |
|
| 263 |
val typing : safe_environment -> Constr.constr -> judgment |
| 264 |
|
| 265 |
|
| 266 |
|
| 267 |
val exists_objlabel : Id.t -> safe_environment -> bool |
| 268 |
|
| 269 |
val delta_of_senv : safe_environment -> Mod_subst.delta_resolver |
| 270 |
|
| 271 |
val constant_of_delta_kn_senv : safe_environment -> KerName.t -> Constant.t |
| 272 |
val mind_of_delta_kn_senv : safe_environment -> KerName.t -> MutInd.t |
| 273 |
|
| 274 |
|
| 275 |
|
| 276 |
val register_inline : Constant.t -> safe_transformer0 |
| 277 |
val register_inductive : inductive -> 'a CPrimitives.prim_ind -> safe_transformer0 |
| 278 |
|
| 279 |
val set_oracle : Conv_oracle.oracle -> safe_transformer0 |
| 280 |
val set_strategy : Conv_oracle.evaluable -> Conv_oracle.level -> safe_transformer0 |