module Dpll_literal:Literals and variables.sig
..end
module Variable:Id.Generator
module Variable_map:Index.Map
with type key = Variable.t
module Variable_set:Index.Set
with type elt = Variable.t
module Variable_queue:Index.PriorityQueue
with type elt = Variable.t
module Literal:Id.T
module Literal_map:Index.Map
with type key = Literal.t
module Literal_set:Index.Set
with type elt = Literal.t
val variable : Literal.t -> Variable.t
variable l
is the variable in literal l
.
Literal.is_valid l
Variable.is_valid (variable l)
val is_positive : Literal.t -> bool
is_positive l
is true when l
is a literal positive.
Literal.is_valid l
val literal : Variable.t -> Literal.t
literal v
is the positive literal corresponding to variable v
.
Variable.is_valid v
Literal.is_valid (literal v)
Dpll_literal.is_positive
(literal v)
Dpll_literal.variable
(literal v) = v
val negation : Literal.t -> Literal.t
negation l
is the negation of literal l
.
Literal.is_valid l
Literal.is_valid (negation l)
Dpll_literal.is_positive
(negation l) = not (
Dpll_literal.is_positive
l)
Dpll_literal.variable
(negation l) =
Dpll_literal.variable
l