(***********************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* variable_declaration -> section_path type constant_declaration = global_declaration * strength (* [declare_constant id cd] declares a global declaration (constant/parameter) with name [id] in the current section; it returns the full path of the declaration *) val declare_constant : identifier -> constant_declaration -> constant val redeclare_constant : constant -> Cooking.recipe * strength -> unit (* [declare_mind me] declares a block of inductive types with their constructors in the current section; it returns the path of the whole block *) val declare_mind : mutual_inductive_entry -> mutual_inductive val out_inductive : Libobject.obj -> mutual_inductive_entry val make_strength_0 : unit -> strength val make_strength_1 : unit -> strength val make_strength_2 : unit -> strength (*s Corresponding test and access functions. *) val is_constant : section_path -> bool val constant_strength : constant -> strength val out_variable : Libobject.obj -> identifier * variable_declaration val get_variable : variable -> named_declaration * strength val get_variable_with_constraints : variable -> named_declaration * Univ.constraints * strength val variable_strength : variable -> strength val find_section_variable : variable -> section_path val last_section_hyps : dir_path -> identifier list (*s Global references *) val context_of_global_reference : global_reference -> section_context (* Turn a global reference into a construction *) val constr_of_reference : global_reference -> constr (* Turn a construction denoting a global into a reference; raise [Not_found] if not a global *) val reference_of_constr : constr -> global_reference val global_qualified_reference : Nametab.qualid -> constr val global_absolute_reference : section_path -> constr val global_reference_in_absolute_module : dir_path -> identifier -> constr val construct_qualified_reference : Nametab.qualid -> constr val construct_absolute_reference : section_path -> constr (* This should eventually disappear *) (* [construct_reference] returns the object corresponding to the name [id] in the global environment. It looks also for variables in a given environment instead of looking in the current global environment. *) val global_reference : identifier -> constr val construct_reference : Environ.env -> identifier -> constr val is_global : identifier -> bool val strength_of_global : global_reference -> strength