Debian Codegraph @

clib/cSet.mli

raw symbols SCIP
1 (************************************************************************)
2 (* * The Rocq Prover / The Rocq Development Team *)
3 (* v * Copyright INRIA, CNRS and contributors *)
4 (* <O___,, * (see version control and CREDITS file for authors & dates) *)
5 (* \VV/ **************************************************************)
6 (* // * This file is distributed under the terms of the *)
7 (* * GNU Lesser General Public License Version 2.1 *)
8 (* * (see LICENSE file for the text of the license) *)
9 (************************************************************************)
10
11 module type OrderedType =
12 sig
13 type t
14 val compare : t -> t -> int
15 end
16
17 module type S = Set.S
18
19 module type ExtS =
20 sig
21 include CSig.SetS
22 (** The underlying Set library *)
23
24 module List : sig
25 val union : t list -> t
26 (** Union of sets from a list *)
27 end
28 end
29
30 module Make(M : Map.OrderedType) : ExtS
31 with type elt = M.t
32 and type t = Set.Make(M).t
33
34 module type HashedType =
35 sig
36 type t
37 val hash : t -> int
38 end
39
40 module Hashcons (M : OrderedType) (_ : Hashcons.HashedType with type t = M.t) : Hashcons.S with
41 type t = Set.Make(M).t
42 (** Create hash-consing for sets. The hashing function provided must be
43 compatible with the comparison function. *)