sig
  type t
  val equal : t -> t -> bool
  val compare : t -> t -> int
  val hash_fun : t CCHash.hash_fun
  val hash : t -> int
  val make : string -> ID.t
  val make_f : ('a, Format.formatter, unit, ID.t) Pervasives.format4 -> 'a
  val make_full : ?pol:Polarity.t -> needs_at:bool -> string -> ID.t
  val fresh_copy : ID.t -> ID.t
  val name : ID.t -> string
  val id : ID.t -> int
  val polarity : ID.t -> Polarity.t
  val is_pos : ID.t -> bool
  val is_neg : ID.t -> bool
  val is_polarized : ID.t -> bool
  val is_neutral : ID.t -> bool
  val needs_at : ID.t -> bool
  val print : Format.formatter -> t -> unit
  val to_string : ID.t -> string
  val to_string_slug : ID.t -> string
  val print_full : Format.formatter -> ID.t -> unit
  val to_string_full : ID.t -> string
  val print_name : Format.formatter -> ID.t -> unit
  module Map :
    sig
      type key = t
      type +'a t
      val empty : 'a t
      val is_empty : 'a t -> bool
      val mem : key -> 'a t -> bool
      val add : key -> '-> 'a t -> 'a t
      val singleton : key -> '-> 'a t
      val remove : key -> 'a t -> 'a t
      val merge :
        (key -> 'a option -> 'b option -> 'c option) -> 'a t -> 'b t -> 'c t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val for_all : (key -> '-> bool) -> 'a t -> bool
      val exists : (key -> '-> bool) -> 'a t -> bool
      val filter : (key -> '-> bool) -> 'a t -> 'a t
      val partition : (key -> '-> bool) -> 'a t -> 'a t * 'a t
      val cardinal : 'a t -> int
      val bindings : 'a t -> (key * 'a) list
      val min_binding : 'a t -> key * 'a
      val max_binding : 'a t -> key * 'a
      val choose : 'a t -> key * 'a
      val split : key -> 'a t -> 'a t * 'a option * 'a t
      val find : key -> 'a t -> 'a
      val map : ('-> 'b) -> 'a t -> 'b t
      val mapi : (key -> '-> 'b) -> 'a t -> 'b t
      val get : key -> 'a t -> 'a option
      val get_or : key -> 'a t -> or_:'-> 'a
      val update : key -> ('a option -> 'a option) -> 'a t -> 'a t
      val merge_safe :
        f:(key ->
           [ `Both of 'a * '| `Left of '| `Right of 'b ] -> 'c option) ->
        'a t -> 'b t -> 'c t
      val of_seq : (key * 'a) CCMap.sequence -> 'a t
      val add_seq : 'a t -> (key * 'a) CCMap.sequence -> 'a t
      val to_seq : 'a t -> (key * 'a) CCMap.sequence
      val of_list : (key * 'a) list -> 'a t
      val add_list : 'a t -> (key * 'a) list -> 'a t
      val keys : 'a t -> key CCMap.sequence
      val values : 'a t -> 'CCMap.sequence
      val to_list : 'a t -> (key * 'a) list
      val pp :
        ?start:string ->
        ?stop:string ->
        ?arrow:string ->
        ?sep:string ->
        key CCMap.printer -> 'CCMap.printer -> 'a t CCMap.printer
      val print :
        ?start:string ->
        ?stop:string ->
        ?arrow:string ->
        ?sep:string ->
        key CCMap.formatter -> 'CCMap.formatter -> 'a t CCMap.formatter
    end
  module Set :
    sig
      type elt = t
      type t
      val empty : t
      val is_empty : t -> bool
      val mem : elt -> t -> bool
      val add : elt -> t -> t
      val singleton : elt -> t
      val remove : elt -> t -> t
      val union : t -> t -> t
      val inter : t -> t -> t
      val diff : t -> t -> t
      val compare : t -> t -> int
      val equal : t -> t -> bool
      val subset : t -> t -> bool
      val iter : (elt -> unit) -> t -> unit
      val fold : (elt -> '-> 'a) -> t -> '-> 'a
      val for_all : (elt -> bool) -> t -> bool
      val exists : (elt -> bool) -> t -> bool
      val filter : (elt -> bool) -> t -> t
      val partition : (elt -> bool) -> t -> t * t
      val cardinal : t -> int
      val elements : t -> elt list
      val min_elt : t -> elt
      val max_elt : t -> elt
      val choose : t -> elt
      val split : elt -> t -> t * bool * t
      val find : elt -> t -> elt
      val of_seq : elt CCSet.sequence -> t
      val add_seq : t -> elt CCSet.sequence -> t
      val to_seq : t -> elt CCSet.sequence
      val of_list : elt list -> t
      val add_list : t -> elt list -> t
      val to_list : t -> elt list
      val pp :
        ?start:string ->
        ?stop:string -> ?sep:string -> elt CCSet.printer -> t CCSet.printer
      val print :
        ?start:string ->
        ?stop:string ->
        ?sep:string -> elt CCSet.formatter -> t CCSet.formatter
    end
  module Tbl :
    sig
      type key = t
      type 'a t
      val create : int -> 'a t
      val clear : 'a t -> unit
      val reset : 'a t -> unit
      val copy : 'a t -> 'a t
      val add : 'a t -> key -> '-> unit
      val remove : 'a t -> key -> unit
      val find : 'a t -> key -> 'a
      val find_all : 'a t -> key -> 'a list
      val replace : 'a t -> key -> '-> unit
      val mem : 'a t -> key -> bool
      val iter : (key -> '-> unit) -> 'a t -> unit
      val fold : (key -> '-> '-> 'b) -> 'a t -> '-> 'b
      val length : 'a t -> int
      val stats : 'a t -> Hashtbl.statistics
      val get : 'a t -> key -> 'a option
      val get_or : 'a t -> key -> or_:'-> 'a
      val add_list : 'a list t -> key -> '-> unit
      val incr : ?by:int -> int t -> key -> unit
      val decr : ?by:int -> int t -> key -> unit
      val keys : 'a t -> key CCHashtbl.sequence
      val values : 'a t -> 'CCHashtbl.sequence
      val keys_list : 'a t -> key list
      val values_list : 'a t -> 'a list
      val map_list : (key -> '-> 'b) -> 'a t -> 'b list
      val to_seq : 'a t -> (key * 'a) CCHashtbl.sequence
      val of_seq : (key * 'a) CCHashtbl.sequence -> 'a t
      val add_seq : 'a t -> (key * 'a) CCHashtbl.sequence -> unit
      val add_seq_count : int t -> key CCHashtbl.sequence -> unit
      val of_seq_count : key CCHashtbl.sequence -> int t
      val to_list : 'a t -> (key * 'a) list
      val of_list : (key * 'a) list -> 'a t
      val update : 'a t -> f:(key -> 'a option -> 'a option) -> k:key -> unit
      val print :
        key CCHashtbl.printer ->
        'CCHashtbl.printer -> 'a t CCHashtbl.printer
    end
  module PerTbl :
    sig
      type key = t
      type 'a t
      val empty : unit -> 'a t
      val create : int -> 'a t
      val is_empty : 'a t -> bool
      val find : 'a t -> key -> 'a
      val get_exn : key -> 'a t -> 'a
      val get : key -> 'a t -> 'a option
      val mem : 'a t -> key -> bool
      val length : 'a t -> int
      val add : 'a t -> key -> '-> 'a t
      val replace : 'a t -> key -> '-> 'a t
      val update : 'a t -> key -> ('a option -> 'a option) -> 'a t
      val remove : 'a t -> key -> 'a t
      val copy : 'a t -> 'a t
      val merge :
        f:(key ->
           [ `Both of 'a * '| `Left of '| `Right of 'b ] -> 'c option) ->
        'a t -> 'b t -> 'c t
      val iter : 'a t -> (key -> '-> unit) -> unit
      val fold : ('-> key -> '-> 'b) -> '-> 'a t -> 'b
      val map : (key -> '-> 'b) -> 'a t -> 'b t
      val filter : (key -> '-> bool) -> 'a t -> 'a t
      val filter_map : (key -> '-> 'b option) -> 'a t -> 'b t
      val for_all : (key -> '-> bool) -> 'a t -> bool
      val exists : (key -> '-> bool) -> 'a t -> bool
      val of_seq : (key * 'a) CCPersistentHashtbl.sequence -> 'a t
      val of_list : (key * 'a) list -> 'a t
      val add_seq : 'a t -> (key * 'a) CCPersistentHashtbl.sequence -> 'a t
      val add_list : 'a t -> (key * 'a) list -> 'a t
      val to_seq : 'a t -> (key * 'a) CCPersistentHashtbl.sequence
      val to_list : 'a t -> (key * 'a) list
      val equal :
        'CCPersistentHashtbl.equal -> 'a t CCPersistentHashtbl.equal
      val pp :
        key CCPersistentHashtbl.printer ->
        'CCPersistentHashtbl.printer -> 'a t CCPersistentHashtbl.printer
      val print :
        key CCPersistentHashtbl.formatter ->
        'CCPersistentHashtbl.formatter ->
        'a t CCPersistentHashtbl.formatter
      val stats : 'a t -> Hashtbl.statistics
    end
  module Erase :
    sig
      type state
      val create_state : unit -> ID.Erase.state
      val add_name : ID.Erase.state -> string -> ID.t -> unit
      val to_name :
        ?encode:(ID.t -> string -> string) ->
        ID.Erase.state -> ID.t -> string
      val of_name : ID.Erase.state -> string -> ID.t
    end
end