| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
open Names |
| 12 |
open Constr |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
type mutual |
| 20 |
type individual |
| 21 |
type 'a scheme_kind |
| 22 |
|
| 23 |
type handle |
| 24 |
|
| 25 |
val push_handle : handle -> unit Proofview.tactic |
| 26 |
|
| 27 |
type scheme_dependency = |
| 28 |
| SchemeMutualDep of MutInd.t * mutual scheme_kind |
| 29 |
| SchemeIndividualDep of inductive * individual scheme_kind |
| 30 |
|
| 31 |
type mutual_scheme_object_function = |
| 32 |
Environ.env -> handle -> MutInd.t -> constr array Evd.in_ustate |
| 33 |
type individual_scheme_object_function = |
| 34 |
Environ.env -> handle -> inductive -> constr Evd.in_ustate |
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
|
| 50 |
val declare_mutual_scheme_object : string -> |
| 51 |
?suff:string -> |
| 52 |
?deps:(Environ.env -> MutInd.t -> scheme_dependency list) -> |
| 53 |
mutual_scheme_object_function -> mutual scheme_kind |
| 54 |
|
| 55 |
val declare_individual_scheme_object : string -> |
| 56 |
?suff:string -> |
| 57 |
?deps:(Environ.env -> inductive -> scheme_dependency list) -> |
| 58 |
individual_scheme_object_function -> |
| 59 |
individual scheme_kind |
| 60 |
|
| 61 |
val is_declared_scheme_object : string -> bool |
| 62 |
|
| 63 |
|
| 64 |
val scheme_kind_name : _ scheme_kind -> string |
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
val define_individual_scheme : ?loc:Loc.t -> individual scheme_kind -> |
| 70 |
Id.t option -> inductive -> unit |
| 71 |
|
| 72 |
module Locmap : sig |
| 73 |
type t |
| 74 |
|
| 75 |
val default : Loc.t option -> t |
| 76 |
val make |
| 77 |
: ?default:Loc.t |
| 78 |
-> Names.MutInd.t |
| 79 |
-> Loc.t option list |
| 80 |
-> t |
| 81 |
val lookup : locmap:t -> Names.inductive -> Loc.t option |
| 82 |
end |
| 83 |
|
| 84 |
val define_mutual_scheme : ?locmap:Locmap.t -> mutual scheme_kind -> |
| 85 |
(int * Id.t) list -> MutInd.t -> unit |
| 86 |
|
| 87 |
|
| 88 |
val find_scheme : 'a scheme_kind -> inductive -> GlobRef.t option Proofview.tactic |
| 89 |
|
| 90 |
|
| 91 |
val force_find_scheme : 'a scheme_kind -> inductive -> GlobRef.t Proofview.tactic |
| 92 |
|
| 93 |
|
| 94 |
val lookup_scheme : 'a scheme_kind -> inductive -> GlobRef.t option |
| 95 |
|
| 96 |
|
| 97 |
val local_lookup_scheme : handle -> 'a scheme_kind -> inductive -> GlobRef.t option |
| 98 |
|
| 99 |
val pr_scheme_kind : 'a scheme_kind -> Pp.t |
| 100 |
|
| 101 |
val declare_definition_scheme : |
| 102 |
(univs:UState.named_universes_entry |
| 103 |
-> role:Evd.side_effect_role |
| 104 |
-> name:Id.t |
| 105 |
-> effs:Evd.side_effects |
| 106 |
-> Constr.t |
| 107 |
-> Constant.t * Evd.side_effects) ref |
| 108 |
|
| 109 |
val register_definition_scheme : |
| 110 |
(internal:bool |
| 111 |
-> name:Id.t |
| 112 |
-> const:Constant.t |
| 113 |
-> univs:UState.named_universes_entry |
| 114 |
-> ?loc:Loc.t |
| 115 |
-> unit |
| 116 |
-> unit) ref |