package rocq-runtime

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Deprecated alias for Rocqlib

  • deprecated (9.0) Use Rocqlib
include module type of struct include Rocqlib end
val register_ref : Libobject.locality -> string -> Names.GlobRef.t -> unit

Registers a global reference under the given name.

exception NotFoundRef of string
val lib_ref : string -> Names.GlobRef.t

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_opt : string -> Names.GlobRef.t option

As lib_ref but returns None instead of raising.

val has_ref : string -> bool

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 check_ref : string -> Names.GlobRef.t -> bool

Checks whether a name is bound to a known reference.

val check_ind_ref : string -> Names.inductive -> bool

Checks whether a name is bound to a known inductive.

val get_lib_refs : unit -> (string * Names.GlobRef.t) list

List of all currently bound names.

For Equality tactics

type rocq_sigma_data = Rocqlib.rocq_sigma_data = {
  1. proj1 : Names.GlobRef.t;
  2. proj2 : Names.GlobRef.t;
  3. elim : Names.GlobRef.t;
  4. intro : Names.GlobRef.t;
  5. typ : Names.GlobRef.t;
}
val build_sigma_type : rocq_sigma_data Util.delayed
val build_sigma : rocq_sigma_data Util.delayed
val build_prod : rocq_sigma_data Util.delayed
val build_rocq_eq_data : rocq_eq_data Util.delayed
val build_rocq_identity_data : rocq_eq_data Util.delayed
val build_rocq_jmeq_data : rocq_eq_data Util.delayed
val check_required_library : string list -> unit

For tactics/commands requiring vernacular libraries

val datatypes_module_name : string list
val logic_module_name : string list
val jmeq_module_name : string list
type coq_sigma_data = rocq_sigma_data = {
  1. proj1 : Names.GlobRef.t;
  2. proj2 : Names.GlobRef.t;
  3. elim : Names.GlobRef.t;
  4. intro : Names.GlobRef.t;
  5. typ : Names.GlobRef.t;
}
  • deprecated (9.0) Use Rocqlib.rocq_sigma_data
type coq_eq_data = rocq_eq_data = {
  1. eq : Names.GlobRef.t;
  2. ind : Names.GlobRef.t;
  3. refl : Names.GlobRef.t;
  4. sym : Names.GlobRef.t;
  5. trans : Names.GlobRef.t;
  6. congr : Names.GlobRef.t;
}
  • deprecated (9.0) Use Rocqlib.rocq_eq_data
val build_coq_eq_data : rocq_eq_data Util.delayed
  • deprecated (9.0) Use Rocqlib.build_rocq_eq_data
val build_coq_identity_data : rocq_eq_data Util.delayed
  • deprecated (9.0) Use Rocqlib.build_rocq_identity_data
val build_coq_jmeq_data : rocq_eq_data Util.delayed
  • deprecated (9.0) Use Rocqlib.build_rocq_jmeq_data
OCaml

Innovation. Community. Security.