[sledge] Simplify Propositional interface

Reviewed By: ngorogiannis

Differential Revision: D26250535

fbshipit-source-id: ead7491cd
master
Josh Berdine 4 years ago committed by Facebook GitHub Bot
parent e284b06e5b
commit ae787bbde1

@ -9,7 +9,10 @@
include Propositional_intf include Propositional_intf
module Make (Trm : TERM) = struct module Make (Trm : sig
type t [@@deriving compare, equal, sexp]
end) =
struct
(** Sets of formulas *) (** Sets of formulas *)
module rec Fmls : (FORMULA_SET with type elt := Fml.t) = struct module rec Fmls : (FORMULA_SET with type elt := Fml.t) = struct
module T = struct module T = struct

@ -8,4 +8,10 @@
(** Propositional formulas *) (** Propositional formulas *)
include module type of Propositional_intf include module type of Propositional_intf
module Make : MAKE
module Make (Trm : sig
type t [@@deriving compare, equal, sexp]
end) : sig
module rec Fml : (FORMULA with type trm := Trm.t with type set := Fmls.t)
and Fmls : (FORMULA_SET with type elt := Fml.t)
end

@ -7,10 +7,6 @@
(** Propositional formulas *) (** Propositional formulas *)
module type TERM = sig
type t [@@deriving compare, equal, sexp]
end
(** Formulas, built from literals with predicate symbols from various (** Formulas, built from literals with predicate symbols from various
theories, and propositional constants and connectives. Denote sets of theories, and propositional constants and connectives. Denote sets of
structures. *) structures. *)
@ -58,8 +54,3 @@ module type FORMULA_SET = sig
val t_of_sexp : Sexp.t -> t val t_of_sexp : Sexp.t -> t
end end
module type MAKE = functor (Trm : TERM) -> sig
module rec Fml : (FORMULA with type trm := Trm.t with type set := Fmls.t)
and Fmls : (FORMULA_SET with type elt := Fml.t)
end

Loading…
Cancel
Save