(***********************************************************************) (* v * The Coq Proof Assistant / The Coq Development Team *) (* safe_environment val env : unit -> Environ.env val universes : unit -> universes val named_context : unit -> Sign.named_context (* Extending env with variables, constants and inductives *) val push_named_assum : (identifier * types) -> Univ.constraints val push_named_def : (identifier * constr * types option) -> Univ.constraints val pop_named_decls : identifier list -> unit val add_constant : constant -> global_declaration -> unit val add_mind : mutual_inductive -> mutual_inductive_entry -> unit val add_constraints : constraints -> unit (* Queries *) val lookup_named : variable -> named_declaration val lookup_constant : constant -> constant_body val lookup_inductive : inductive -> mutual_inductive_body * one_inductive_body val lookup_mind : mutual_inductive -> mutual_inductive_body (* Modules *) val export : dir_path -> Environ.compiled_env val import : Environ.compiled_env -> unit (*s Function to get an environment from the constants part of the global environment and a given context. *) val type_of_global : Nametab.global_reference -> types val env_of_context : Sign.named_context -> Environ.env