package coq-core

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

Module Names.NameSource

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

Sourcetype t =
  1. | Anonymous
    (*

    anonymous identifier

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

    non-anonymous identifier

    *)
Sourceval mk_name : Id.t -> t

constructor

Sourceval is_anonymous : t -> bool

Return true iff a given name is Anonymous.

Sourceval is_name : t -> bool

Return true iff a given name is Name _.

Sourceval compare : t -> t -> int

Comparison over names.

Sourceval equal : t -> t -> bool

Equality over names.

Sourceval hash : t -> int

Hash over names.

Sourceval hcons : t -> t

Hashconsing over names.

Sourceval print : t -> Pp.t

Pretty-printer (print "_" for Anonymous.

OCaml

Innovation. Community. Security.