sig
  type ('a, 'b) t = ('a, 'b) Core_map.t
  module T : sig type 'a key = 'type ('a, 'b) t = ('a, 'b) t end
  type ('a, 'b) binable = ('a, 'b) t
  val bin_size_t : ('a, 'b, ('a, 'b) binable) Bin_prot.Size.sizer2
  val bin_write_t : ('a, 'b, ('a, 'b) binable) Bin_prot.Map_to_safe.writer2
  val bin_write_t_ :
    ('a, 'b, ('a, 'b) binable) Bin_prot.Unsafe_write_c.writer2
  val bin_read_t : ('a, 'b, ('a, 'b) binable) Bin_prot.Map_to_safe.reader2
  val bin_read_t_ : ('a, 'b, ('a, 'b) binable) Bin_prot.Unsafe_read_c.reader2
  val bin_read_t__ :
    ('a, 'b, int -> ('a, 'b) binable) Bin_prot.Unsafe_read_c.reader2
  val bin_writer_t : ('a, 'b, ('a, 'b) binable) Bin_prot.Type_class.S2.writer
  val bin_reader_t : ('a, 'b, ('a, 'b) binable) Bin_prot.Type_class.S2.reader
  val bin_t : ('a, 'b, ('a, 'b) binable) Bin_prot.Type_class.S2.t
  type ('a, 'b) sexpable = ('a, 'b) t
  val sexp_of_t :
    ('-> Sexplib.Sexp.t) ->
    ('-> Sexplib.Sexp.t) -> ('a, 'b) sexpable -> Sexplib.Sexp.t
  val t_of_sexp :
    (Sexplib.Sexp.t -> 'a) ->
    (Sexplib.Sexp.t -> 'b) -> Sexplib.Sexp.t -> ('a, 'b) sexpable
  val empty : ('a, 'b) t
  val singleton : '-> '-> ('a, 'b) t
  val is_empty : ('a, 'b) t -> bool
  val cardinal : ('a, 'b) t -> int
  val add : key:'-> data:'-> ('a, 'b) t -> ('a, 'b) t
  val add_multi : key:'-> data:'-> ('a, 'b list) t -> ('a, 'b list) t
  val change : ('a, 'b) t -> '-> ('b option -> 'b option) -> ('a, 'b) t
  val find_exn : ('a, 'b) t -> '-> 'b
  val find : ('a, 'b) t -> '-> 'b option
  val remove : ('a, 'b) t -> '-> ('a, 'b) t
  val mem : ('a, 'b) t -> '-> bool
  val iter : f:(key:'-> data:'-> unit) -> ('a, 'b) t -> unit
  val map : f:('-> 'b) -> ('c, 'a) t -> ('c, 'b) t
  val mapi : f:(key:'-> data:'-> 'c) -> ('a, 'b) t -> ('a, 'c) t
  val fold : f:(key:'-> data:'-> '-> 'c) -> ('a, 'b) t -> init:'-> 'c
  val fold_right :
    f:(key:'-> data:'-> '-> 'c) -> ('a, 'b) t -> init:'-> 'c
  val filter : f:(key:'-> data:'-> bool) -> ('a, 'b) t -> ('a, 'b) t
  val filter_map : f:('-> 'b option) -> ('c, 'a) t -> ('c, 'b) t
  val filter_mapi :
    f:(key:'-> data:'-> 'c option) -> ('a, 'b) t -> ('a, 'c) t
  val compare : ('-> '-> int) -> ('b, 'a) t -> ('b, 'a) t -> int
  val equal : ('-> '-> bool) -> ('b, 'a) t -> ('b, 'a) t -> bool
  val keys : ('a, 'b) t -> 'a list
  val has_key : ('a, 'b) t -> '-> bool
  val data : ('a, 'b) t -> 'b list
  val of_alist :
    ('a * 'b) list -> [ `Duplicate_key of '| `Ok of ('a, 'b) t ]
  val of_alist_exn : ('a * 'b) list -> ('a, 'b) t
  val of_alist_multi : ('a * 'b) list -> ('a, 'b list) t
  val to_alist : ('a, 'b) t -> ('a * 'b) list
  val combine_alist :
    ('a * 'b) list -> init:'-> f:('-> '-> 'c) -> ('a, 'c) t
  val merge :
    f:(key:'-> 'b option -> 'c option -> 'd option) ->
    ('a, 'b) t -> ('a, 'c) t -> ('a, 'd) t
  val min_elt : ('a, 'b) t -> ('a * 'b) option
  val min_elt_exn : ('a, 'b) t -> 'a * 'b
  val max_elt : ('a, 'b) t -> ('a * 'b) option
  val max_elt_exn : ('a, 'b) t -> 'a * 'b
  val for_all : f:('-> bool) -> ('b, 'a) t -> bool
  val exists : f:('-> bool) -> ('b, 'a) t -> bool
  val fold_range_inclusive :
    ('a, 'b) t ->
    min:'-> max:'-> init:'-> f:(key:'-> data:'-> '-> 'c) -> 'c
  val range_to_alist : ('a, 'b) t -> min:'-> max:'-> ('a * 'b) list
  val next_key : ('a, 'b) t -> '-> 'a option
  val prev_key : ('a, 'b) t -> '-> 'a option
  val rank : ('a, 'b) t -> '-> int option
  module type Key = Core_map_intf.Key
  module type S = Core_map_intf.S
  module type S_binable =
    sig
      type key
      type +'a t
      module T : sig type 'a key = key type ('a, 'b) t = 'b t end
      type 'a sexpable = 'a t
      val sexp_of_t : ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
      val t_of_sexp : (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
      val empty : 'a t
      val singleton : key -> '-> 'a t
      val is_empty : 'a t -> bool
      val cardinal : 'a t -> int
      val add : key:key -> data:'-> 'a t -> 'a t
      val add_multi : key:key -> data:'-> 'a list t -> 'a list t
      val change : 'a t -> key -> ('a option -> 'a option) -> 'a t
      val find_exn : 'a t -> key -> 'a
      val find : 'a t -> key -> 'a option
      val remove : 'a t -> key -> 'a t
      val mem : 'a t -> key -> bool
      val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
      val map : f:('-> 'b) -> 'a t -> 'b t
      val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
      val fold : f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
      val fold_right :
        f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
      val filter : f:(key:key -> data:'-> bool) -> 'a t -> 'a t
      val filter_map : f:('-> 'b option) -> 'a t -> 'b t
      val filter_mapi : f:(key:key -> data:'-> 'b option) -> 'a t -> 'b t
      val compare : ('-> '-> int) -> 'a t -> 'a t -> int
      val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
      val keys : 'a t -> key list
      val has_key : 'a t -> key -> bool
      val data : 'a t -> 'a list
      val of_alist :
        (key * 'a) list -> [ `Duplicate_key of key | `Ok of 'a t ]
      val of_alist_exn : (key * 'a) list -> 'a t
      val of_alist_multi : (key * 'a) list -> 'a list t
      val to_alist : 'a t -> (key * 'a) list
      val combine_alist :
        (key * 'a) list -> init:'-> f:('-> '-> 'b) -> 'b t
      val merge :
        f:(key:key -> 'a option -> 'b option -> 'c option) ->
        'a t -> 'b t -> 'c t
      val min_elt : 'a t -> (key * 'a) option
      val min_elt_exn : 'a t -> key * 'a
      val max_elt : 'a t -> (key * 'a) option
      val max_elt_exn : 'a t -> key * 'a
      val for_all : f:('-> bool) -> 'a t -> bool
      val exists : f:('-> bool) -> 'a t -> bool
      val fold_range_inclusive :
        'a t ->
        min:key ->
        max:key -> init:'-> f:(key:key -> data:'-> '-> 'b) -> 'b
      val range_to_alist : 'a t -> min:key -> max:key -> (key * 'a) list
      val prev_key : 'a t -> key -> key option
      val next_key : 'a t -> key -> key option
      val rank : 'a t -> key -> int option
      type 'a binable = 'a t
      val bin_size_t : ('a, 'a binable) Bin_prot.Size.sizer1
      val bin_write_t : ('a, 'a binable) Bin_prot.Map_to_safe.writer1
      val bin_write_t_ : ('a, 'a binable) Bin_prot.Unsafe_write_c.writer1
      val bin_read_t : ('a, 'a binable) Bin_prot.Map_to_safe.reader1
      val bin_read_t_ : ('a, 'a binable) Bin_prot.Unsafe_read_c.reader1
      val bin_read_t__ :
        ('a, int -> 'a binable) Bin_prot.Unsafe_read_c.reader1
      val bin_writer_t : ('a, 'a binable) Bin_prot.Type_class.S1.writer
      val bin_reader_t : ('a, 'a binable) Bin_prot.Type_class.S1.reader
      val bin_t : ('a, 'a binable) Bin_prot.Type_class.S1.t
    end
  module Make :
    functor (Key : Key->
      sig
        type key = Key.t
        type 'a t = 'Core_map.Make(Key).t
        module T : sig type 'a key = key type ('a, 'b) t = 'b t end
        type 'a sexpable = 'a t
        val sexp_of_t :
          ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
        val t_of_sexp :
          (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
        val empty : 'a t
        val singleton : key -> '-> 'a t
        val is_empty : 'a t -> bool
        val cardinal : 'a t -> int
        val add : key:key -> data:'-> 'a t -> 'a t
        val add_multi : key:key -> data:'-> 'a list t -> 'a list t
        val change : 'a t -> key -> ('a option -> 'a option) -> 'a t
        val find_exn : 'a t -> key -> 'a
        val find : 'a t -> key -> 'a option
        val remove : 'a t -> key -> 'a t
        val mem : 'a t -> key -> bool
        val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
        val map : f:('-> 'b) -> 'a t -> 'b t
        val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
        val fold :
          f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
        val fold_right :
          f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
        val filter : f:(key:key -> data:'-> bool) -> 'a t -> 'a t
        val filter_map : f:('-> 'b option) -> 'a t -> 'b t
        val filter_mapi : f:(key:key -> data:'-> 'b option) -> 'a t -> 'b t
        val compare : ('-> '-> int) -> 'a t -> 'a t -> int
        val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
        val keys : 'a t -> key list
        val has_key : 'a t -> key -> bool
        val data : 'a t -> 'a list
        val of_alist :
          (key * 'a) list -> [ `Duplicate_key of key | `Ok of 'a t ]
        val of_alist_exn : (key * 'a) list -> 'a t
        val of_alist_multi : (key * 'a) list -> 'a list t
        val to_alist : 'a t -> (key * 'a) list
        val combine_alist :
          (key * 'a) list -> init:'-> f:('-> '-> 'b) -> 'b t
        val merge :
          f:(key:key -> 'a option -> 'b option -> 'c option) ->
          'a t -> 'b t -> 'c t
        val min_elt : 'a t -> (key * 'a) option
        val min_elt_exn : 'a t -> key * 'a
        val max_elt : 'a t -> (key * 'a) option
        val max_elt_exn : 'a t -> key * 'a
        val for_all : f:('-> bool) -> 'a t -> bool
        val exists : f:('-> bool) -> 'a t -> bool
        val fold_range_inclusive :
          'a t ->
          min:key ->
          max:key -> init:'-> f:(key:key -> data:'-> '-> 'b) -> 'b
        val range_to_alist : 'a t -> min:key -> max:key -> (key * 'a) list
        val prev_key : 'a t -> key -> key option
        val next_key : 'a t -> key -> key option
        val rank : 'a t -> key -> int option
      end
  module Make_binable :
    functor
      (Key : sig
               type t
               type sexpable = t
               val sexp_of_t : sexpable -> Sexplib.Sexp.t
               val t_of_sexp : Sexplib.Sexp.t -> sexpable
               val compare : t -> t -> int
               type binable = t
               val bin_size_t : binable Bin_prot.Size.sizer
               val bin_write_t : binable Bin_prot.Map_to_safe.writer
               val bin_write_t_ : binable Bin_prot.Unsafe_write_c.writer
               val bin_read_t : binable Bin_prot.Read_ml.reader
               val bin_read_t_ : binable Bin_prot.Unsafe_read_c.reader
               val bin_read_t__ :
                 (int -> binable) Bin_prot.Unsafe_read_c.reader
               val bin_writer_t : binable Bin_prot.Type_class.writer
               val bin_reader_t : binable Bin_prot.Type_class.reader
               val bin_t : binable Bin_prot.Type_class.t
             end->
      sig
        type key = Key.t
        type 'a t = 'Make(Key).t
        module T : sig type 'a key = key type ('a, 'b) t = 'b t end
        type 'a sexpable = 'a t
        val sexp_of_t :
          ('-> Sexplib.Sexp.t) -> 'a sexpable -> Sexplib.Sexp.t
        val t_of_sexp :
          (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a sexpable
        val empty : 'a t
        val singleton : key -> '-> 'a t
        val is_empty : 'a t -> bool
        val cardinal : 'a t -> int
        val add : key:key -> data:'-> 'a t -> 'a t
        val add_multi : key:key -> data:'-> 'a list t -> 'a list t
        val change : 'a t -> key -> ('a option -> 'a option) -> 'a t
        val find_exn : 'a t -> key -> 'a
        val find : 'a t -> key -> 'a option
        val remove : 'a t -> key -> 'a t
        val mem : 'a t -> key -> bool
        val iter : f:(key:key -> data:'-> unit) -> 'a t -> unit
        val map : f:('-> 'b) -> 'a t -> 'b t
        val mapi : f:(key:key -> data:'-> 'b) -> 'a t -> 'b t
        val fold :
          f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
        val fold_right :
          f:(key:key -> data:'-> '-> 'b) -> 'a t -> init:'-> 'b
        val filter : f:(key:key -> data:'-> bool) -> 'a t -> 'a t
        val filter_map : f:('-> 'b option) -> 'a t -> 'b t
        val filter_mapi : f:(key:key -> data:'-> 'b option) -> 'a t -> 'b t
        val compare : ('-> '-> int) -> 'a t -> 'a t -> int
        val equal : ('-> '-> bool) -> 'a t -> 'a t -> bool
        val keys : 'a t -> key list
        val has_key : 'a t -> key -> bool
        val data : 'a t -> 'a list
        val of_alist :
          (key * 'a) list -> [ `Duplicate_key of key | `Ok of 'a t ]
        val of_alist_exn : (key * 'a) list -> 'a t
        val of_alist_multi : (key * 'a) list -> 'a list t
        val to_alist : 'a t -> (key * 'a) list
        val combine_alist :
          (key * 'a) list -> init:'-> f:('-> '-> 'b) -> 'b t
        val merge :
          f:(key:key -> 'a option -> 'b option -> 'c option) ->
          'a t -> 'b t -> 'c t
        val min_elt : 'a t -> (key * 'a) option
        val min_elt_exn : 'a t -> key * 'a
        val max_elt : 'a t -> (key * 'a) option
        val max_elt_exn : 'a t -> key * 'a
        val for_all : f:('-> bool) -> 'a t -> bool
        val exists : f:('-> bool) -> 'a t -> bool
        val fold_range_inclusive :
          'a t ->
          min:key ->
          max:key -> init:'-> f:(key:key -> data:'-> '-> 'b) -> 'b
        val range_to_alist : 'a t -> min:key -> max:key -> (key * 'a) list
        val prev_key : 'a t -> key -> key option
        val next_key : 'a t -> key -> key option
        val rank : 'a t -> key -> int option
        type 'a binable = 'a t
        val bin_size_t : ('a, 'a binable) Bin_prot.Size.sizer1
        val bin_write_t : ('a, 'a binable) Bin_prot.Map_to_safe.writer1
        val bin_write_t_ : ('a, 'a binable) Bin_prot.Unsafe_write_c.writer1
        val bin_read_t : ('a, 'a binable) Bin_prot.Map_to_safe.reader1
        val bin_read_t_ : ('a, 'a binable) Bin_prot.Unsafe_read_c.reader1
        val bin_read_t__ :
          ('a, int -> 'a binable) Bin_prot.Unsafe_read_c.reader1
        val bin_writer_t : ('a, 'a binable) Bin_prot.Type_class.S1.writer
        val bin_reader_t : ('a, 'a binable) Bin_prot.Type_class.S1.reader
        val bin_t : ('a, 'a binable) Bin_prot.Type_class.S1.t
      end
end