sig
  type t
  val sexp_of_t : t -> Sexplib.Sexp.t
  val t_of_sexp : Sexplib.Sexp.t -> t
  val bin_size_t : t Bin_prot.Size.sizer
  val bin_write_t : t Bin_prot.Write_ml.writer
  val bin_write_t_ : t Bin_prot.Unsafe_write_c.writer
  val bin_writer_t : t Bin_prot.Type_class.writer
  val bin_read_t : t Bin_prot.Read_ml.reader
  val bin_read_t_ : t Bin_prot.Unsafe_read_c.reader
  val bin_read_t__ : (int -> t) Bin_prot.Unsafe_read_c.reader
  val bin_reader_t : t Bin_prot.Type_class.reader
  val bin_t : t Bin_prot.Type_class.t
  type 'a poly_t = Int.t t
  val sexp_of_poly_t : ('-> Sexplib.Sexp.t) -> 'a poly_t -> Sexplib.Sexp.t
  val poly_t_of_sexp : (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a poly_t
  val bin_size_poly_t :
    'Bin_prot.Size.sizer -> 'a poly_t Bin_prot.Size.sizer
  val bin_write_poly_t :
    'Bin_prot.Unsafe_write_c.writer -> 'a poly_t Bin_prot.Write_ml.writer
  val bin_write_poly_t_ :
    'Bin_prot.Unsafe_write_c.writer ->
    'a poly_t Bin_prot.Unsafe_write_c.writer
  val bin_writer_poly_t :
    'Bin_prot.Type_class.writer -> 'a poly_t Bin_prot.Type_class.writer
  val bin_read_poly_t :
    'Bin_prot.Unsafe_read_c.reader -> 'a poly_t Bin_prot.Read_ml.reader
  val bin_read_poly_t_ :
    'Bin_prot.Unsafe_read_c.reader ->
    'a poly_t Bin_prot.Unsafe_read_c.reader
  val bin_read_poly_t__ :
    'Bin_prot.Unsafe_read_c.reader ->
    (int -> 'a poly_t) Bin_prot.Unsafe_read_c.reader
  val bin_reader_poly_t :
    'Bin_prot.Type_class.reader -> 'a poly_t Bin_prot.Type_class.reader
  val bin_poly_t :
    'Bin_prot.Type_class.t -> 'a poly_t Bin_prot.Type_class.t
  type interval = t
  type bound = Int.t
  module T : sig type 'a bound = bound type 'a t = t end
  val create : 'T.bound -> 'T.bound -> 'T.t
  val empty : 'T.t
  val intersect : 'T.t -> 'T.t -> 'T.t
  val is_empty : 'T.t -> bool
  val is_empty_or_singleton : 'T.t -> bool
  val bounds : 'T.t -> ('T.bound * 'T.bound) option
  val lbound : 'T.t -> 'T.bound option
  val ubound : 'T.t -> 'T.bound option
  val bounds_exn : 'T.t -> 'T.bound * 'T.bound
  val lbound_exn : 'T.t -> 'T.bound
  val ubound_exn : 'T.t -> 'T.bound
  val contains : 'T.t -> 'T.bound -> bool
  val compare_value :
    'T.t ->
    'T.bound -> [ `Above | `Below | `Interval_is_empty | `Within ]
  val bound : 'T.t -> 'T.bound -> 'T.bound option
  val is_superset : 'T.t -> of_:'T.t -> bool
  val is_subset : 'T.t -> of_:'T.t -> bool
  val map : f:('T.bound -> 'T.bound) -> 'T.t -> 'T.t
  val are_disjoint : 'T.t list -> bool
  val are_disjoint_as_open_intervals : 'T.t list -> bool
  val list_intersect : 'T.t list -> 'T.t list -> 'T.t list
  val half_open_intervals_are_a_partition : 'T.t list -> bool
  val to_poly : t -> bound poly_t
  module Set :
    sig
      type t
      val sexp_of_t : t -> Sexplib.Sexp.t
      val t_of_sexp : Sexplib.Sexp.t -> t
      val bin_size_t : t Bin_prot.Size.sizer
      val bin_write_t : t Bin_prot.Write_ml.writer
      val bin_write_t_ : t Bin_prot.Unsafe_write_c.writer
      val bin_writer_t : t Bin_prot.Type_class.writer
      val bin_read_t : t Bin_prot.Read_ml.reader
      val bin_read_t_ : t Bin_prot.Unsafe_read_c.reader
      val bin_read_t__ : (int -> t) Bin_prot.Unsafe_read_c.reader
      val bin_reader_t : t Bin_prot.Type_class.reader
      val bin_t : t Bin_prot.Type_class.t
      type 'a poly_t
      val sexp_of_poly_t :
        ('-> Sexplib.Sexp.t) -> 'a poly_t -> Sexplib.Sexp.t
      val poly_t_of_sexp :
        (Sexplib.Sexp.t -> 'a) -> Sexplib.Sexp.t -> 'a poly_t
      val bin_size_poly_t :
        'Bin_prot.Size.sizer -> 'a poly_t Bin_prot.Size.sizer
      val bin_write_poly_t :
        'Bin_prot.Unsafe_write_c.writer ->
        'a poly_t Bin_prot.Write_ml.writer
      val bin_write_poly_t_ :
        'Bin_prot.Unsafe_write_c.writer ->
        'a poly_t Bin_prot.Unsafe_write_c.writer
      val bin_writer_poly_t :
        'Bin_prot.Type_class.writer -> 'a poly_t Bin_prot.Type_class.writer
      val bin_read_poly_t :
        'Bin_prot.Unsafe_read_c.reader -> 'a poly_t Bin_prot.Read_ml.reader
      val bin_read_poly_t_ :
        'Bin_prot.Unsafe_read_c.reader ->
        'a poly_t Bin_prot.Unsafe_read_c.reader
      val bin_read_poly_t__ :
        'Bin_prot.Unsafe_read_c.reader ->
        (int -> 'a poly_t) Bin_prot.Unsafe_read_c.reader
      val bin_reader_poly_t :
        'Bin_prot.Type_class.reader -> 'a poly_t Bin_prot.Type_class.reader
      val bin_poly_t :
        'Bin_prot.Type_class.t -> 'a poly_t Bin_prot.Type_class.t
      module T :
        sig
          type 'a t = t
          type 'a bound = bound
          type 'a interval = interval
        end
      val create : ('T.bound * 'T.bound) list -> 'T.t
      val create_from_intervals : 'T.interval list -> 'T.t
      val contains : 'T.t -> 'T.bound -> bool
      val contains_set : container:'T.t -> contained:'T.t -> bool
      val ubound_exn : 'T.t -> 'T.bound
      val lbound_exn : 'T.t -> 'T.bound
      val ubound : 'T.t -> 'T.bound option
      val lbound : 'T.t -> 'T.bound option
      val to_poly : t -> bound poly_t
    end
end