package coq-core

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

Representation and operations on identifiers that are allowed to be anonymous (i.e. "_" in concrete syntax).

type t =
  1. | Anonymous
    (*

    anonymous identifier

    *)
  2. | Name of Id.t
    (*

    non-anonymous identifier

    *)
val mk_name : Id.t -> t

constructor

val is_anonymous : t -> bool

Return true iff a given name is Anonymous.

val is_name : t -> bool

Return true iff a given name is Name _.

val compare : t -> t -> int

Comparison over names.

val equal : t -> t -> bool

Equality over names.

val hash : t -> int

Hash over names.

val hcons : t -> t

Hashconsing over names.

val print : t -> Pp.t

Pretty-printer (print "_" for Anonymous.

OCaml

Innovation. Community. Security.