package coq

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

Module Names.ConstantSource

Sourcetype t

Constructors

Sourceval make : KerName.t -> KerName.t -> t

Builds a constant name from a user and a canonical kernel name.

Sourceval make1 : KerName.t -> t

Special case of make where the user name is canonical.

Sourceval make2 : ModPath.t -> Label.t -> t

Shortcut for (make1 (KerName.make2 ...))

Projections

Sourceval user : t -> KerName.t
Sourceval canonical : t -> KerName.t
Sourceval repr2 : t -> ModPath.t * Label.t

Shortcut for KerName.repr (user ...)

Sourceval modpath : t -> ModPath.t

Shortcut for KerName.modpath (user ...)

Sourceval label : t -> Label.t

Shortcut for KerName.label (user ...)

Comparisons

include QNameS with type t := t
Sourcemodule CanOrd : EqType with type t = t

Equality functions over the canonical name. Their use should be restricted to the kernel.

Sourcemodule UserOrd : EqType with type t = t

Equality functions over the user name.

Sourcemodule SyntacticOrd : EqType with type t = t

Equality functions using both names, for low-level uses.

Sourceval equal : t -> t -> bool

Default comparison, alias for CanOrd.equal

  • deprecated Use QConstant.equal
Sourceval hash : t -> int

Hashing function

  • deprecated Use QConstant.hash
Sourceval change_label : t -> Label.t -> t

Builds a new constant name with a different label

Displaying

Sourceval to_string : t -> string

Encode as a string (not to be used for user-facing messages).

Sourceval print : t -> Pp.t

Print internal representation (not to be used for user-facing messages).

Sourceval debug_to_string : t -> string

Same as to_string, but outputs extra information related to debug.

Sourceval debug_print : t -> Pp.t

Same as print, but outputs extra information related to debug.

OCaml

Innovation. Community. Security.