(************************************************************************) (* * The Rocq Prover / The Rocq Development Team *) (* v * Copyright INRIA, CNRS and contributors *) (* string -> GlobRef.t -> unit exception NotFoundRef of string (** Retrieves the reference bound to the given name (by a previous call to {!register_ref}). Raises [NotFoundRef] if no reference is bound to this name. *) val lib_ref : string -> GlobRef.t (** As [lib_ref] but returns [None] instead of raising. *) val lib_ref_opt : string -> GlobRef.t option (** Checks whether a name refers to a registered constant. For any name [n], if [has_ref n] returns [true], [lib_ref n] will succeed. *) val has_ref : string -> bool (** Checks whether a name is bound to a known reference. *) val check_ref : string -> GlobRef.t -> bool (** Checks whether a name is bound to a known inductive. *) val check_ind_ref : string -> inductive -> bool (** List of all currently bound names. *) val get_lib_refs : unit -> (string * GlobRef.t) list (* Exceptions to deprecation *) (** {2 For Equality tactics} *) type rocq_sigma_data = { proj1 : GlobRef.t; proj2 : GlobRef.t; elim : GlobRef.t; intro : GlobRef.t; typ : GlobRef.t } val build_sigma_type : rocq_sigma_data delayed val build_sigma : rocq_sigma_data delayed val build_prod : rocq_sigma_data delayed type rocq_eq_data = { eq : GlobRef.t; ind : GlobRef.t; refl : GlobRef.t; sym : GlobRef.t; trans: GlobRef.t; congr: GlobRef.t } val build_rocq_eq_data : rocq_eq_data delayed val build_rocq_identity_data : rocq_eq_data delayed val build_rocq_jmeq_data : rocq_eq_data delayed (* XXX: Some tactics special case JMeq, they should instead check for the constant, not the module *) (** For tactics/commands requiring vernacular libraries *) val check_required_library : string list -> unit (* Used by obligations *) val datatypes_module_name : string list (* Used by ind_schemes *) val logic_module_name : string list (* Used by tactics *) val jmeq_module_name : string list