mirror of
https://github.com/c-cube/sidekick.git
synced 2025-12-13 06:20:55 -05:00
45 lines
1.3 KiB
OCaml
45 lines
1.3 KiB
OCaml
|
|
(** Main API *)
|
|
|
|
module Theory_intf = Theory_intf
|
|
|
|
module type S = Solver_intf.S
|
|
|
|
type negated = Theory_intf.negated =
|
|
| Negated
|
|
| Same_sign
|
|
|
|
type ('formula, 'proof) res = ('formula, 'proof) Theory_intf.res =
|
|
| Sat
|
|
(** The current set of assumptions is satisfiable. *)
|
|
| Unsat of 'formula list * 'proof
|
|
(** The current set of assumptions is *NOT* satisfiable, and here is a
|
|
theory tautology (with its proof), for which every literal is false
|
|
under the current assumptions. *)
|
|
(** Type returned by the theory. Formulas in the unsat clause must come from the
|
|
current set of assumptions, i.e must have been encountered in a slice. *)
|
|
|
|
type 'form sat_state = 'form Solver_intf.sat_state = Sat_state of {
|
|
eval : 'form -> bool;
|
|
eval_level : 'form -> bool * int;
|
|
iter_trail : ('form -> unit) -> unit;
|
|
}
|
|
|
|
type ('clause, 'proof) unsat_state = ('clause, 'proof) Solver_intf.unsat_state = Unsat_state of {
|
|
unsat_conflict : unit -> 'clause;
|
|
get_proof : unit -> 'proof;
|
|
}
|
|
|
|
type 'clause export = 'clause Solver_intf.export = {
|
|
clauses : 'clause Vec.t;
|
|
}
|
|
|
|
type ('form, 'proof) actions = ('form,'proof) Theory_intf.actions
|
|
type 'form slice_actions = 'form Theory_intf.slice_actions
|
|
|
|
module Make = Solver.Make
|
|
|
|
(**/**)
|
|
module Vec = Vec
|
|
module Log = Log
|
|
(**/**)
|