Module Declareops

val universes_context : Declarations.universes -> Univ.AUContext.t
val abstract_universes : Entries.universes_entry -> Univ.universe_level_subst * Declarations.universes
Arities
val map_decl_arity : ('a -> 'c) -> ('b -> 'd) -> ('a'b) Declarations.declaration_arity -> ('c'd) Declarations.declaration_arity
Constants
val subst_const_body : Mod_subst.substitution -> Opaqueproof.opaque Declarations.constant_body -> Opaqueproof.opaque Declarations.constant_body
val constant_has_body : 'a Declarations.constant_body -> bool
val constant_polymorphic_context : 'a Declarations.constant_body -> Univ.AUContext.t
val constant_is_polymorphic : 'a Declarations.constant_body -> bool

Is the constant polymorphic?

val is_opaque : 'a Declarations.constant_body -> bool
Inductive types
val eq_recarg : Declarations.recarg -> Declarations.recarg -> bool
val subst_recarg : Mod_subst.substitution -> Declarations.recarg -> Declarations.recarg
val mk_norec : Declarations.wf_paths
val mk_paths : Declarations.recarg -> Declarations.wf_paths list array -> Declarations.wf_paths
val dest_recarg : Declarations.wf_paths -> Declarations.recarg
val dest_subterms : Declarations.wf_paths -> Declarations.wf_paths list array
val recarg_length : Declarations.wf_paths -> int -> int
val subst_wf_paths : Mod_subst.substitution -> Declarations.wf_paths -> Declarations.wf_paths
val subst_mind_body : Mod_subst.substitution -> Declarations.mutual_inductive_body -> Declarations.mutual_inductive_body
val inductive_polymorphic_context : Declarations.mutual_inductive_body -> Univ.AUContext.t
val inductive_is_polymorphic : Declarations.mutual_inductive_body -> bool

Is the inductive polymorphic?

Is the inductive cumulative?

val inductive_is_cumulative : Declarations.mutual_inductive_body -> bool

Is the inductive cumulative?

val inductive_make_projection : Names.inductive -> Declarations.mutual_inductive_body -> proj_arg:int -> Names.Projection.Repr.t option
val inductive_make_projections : Names.inductive -> Declarations.mutual_inductive_body -> Names.Projection.Repr.t array option
val relevance_of_projection_repr : Declarations.mutual_inductive_body -> Names.Projection.Repr.t -> Sorts.relevance
Kernel flags
val safe_flags : Conv_oracle.oracle -> Declarations.typing_flags

A default, safe set of flags for kernel type-checking

Hash-consing
val hcons_const_body : 'a Declarations.constant_body -> 'a Declarations.constant_body
val hcons_mind : Declarations.mutual_inductive_body -> Declarations.mutual_inductive_body
val hcons_module_body : Declarations.module_body -> Declarations.module_body
val hcons_module_type : Declarations.module_type_body -> Declarations.module_type_body