sig
  type t
  type bound
  type 'a t_ = t
  type 'a bound_ = bound
  val empty : 'a t_
  val intersect : 'a t_ -> 'a t_ -> 'a t_
  val is_empty : 'a t_ -> bool
  val is_empty_or_singleton : 'a t_ -> bool
  val bounds : 'a t_ -> ('a bound_ * 'a bound_) option
  val lbound : 'a t_ -> 'a bound_ option
  val ubound : 'a t_ -> 'a bound_ option
  val bounds_exn : 'a t_ -> 'a bound_ * 'a bound_
  val lbound_exn : 'a t_ -> 'a bound_
  val ubound_exn : 'a t_ -> 'a bound_
  val contains : 'a t_ -> 'a bound_ -> bool
  val compare_value :
    'a t_ -> 'a bound_ -> [ `Above | `Below | `Interval_is_empty | `Within ]
  val bound : 'a t_ -> 'a bound_ -> 'a bound_ option
  val is_superset : 'a t_ -> of_:'a t_ -> bool
  val is_subset : 'a t_ -> of_:'a t_ -> bool
  val map : 'a t_ -> f:('a bound_ -> 'b bound_) -> 'b t_
  val are_disjoint : 'a t_ list -> bool
  val are_disjoint_as_open_intervals : 'a t_ list -> bool
  val list_intersect : 'a t_ list -> 'a t_ list -> 'a t_ list
  val half_open_intervals_are_a_partition : 'a t_ list -> bool
  val create : bound -> bound -> t
  val to_poly : t -> bound t
  module Set :
    sig
      type t
      type 'a t_ = t
      val create : ('a bound_ * 'a bound_) list -> 'a t_
      val create_from_intervals : 'a t_ list -> 'a t_
      val contains : 'a t_ -> 'a bound_ -> bool
      val contains_set : container:'a t_ -> contained:'a t_ -> bool
      val ubound_exn : 'a t_ -> 'a bound_
      val lbound_exn : 'a t_ -> 'a bound_
      val ubound : 'a t_ -> 'a bound_ option
      val lbound : 'a t_ -> 'a bound_ option
      val to_poly : t -> bound Set.t
      val t_of_sexp : Sexplib.Sexp.t -> t
      val sexp_of_t : t -> Sexplib.Sexp.t
      val bin_t : t Bin_prot.Type_class.t
      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_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
    end
  val t_of_sexp : Sexplib.Sexp.t -> t
  val sexp_of_t : t -> Sexplib.Sexp.t
  val bin_t : t Bin_prot.Type_class.t
  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_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
end