Module Libzipperposition.Trail
Boolean Trail
module Lit = BBox.Lit
type bool_lit
= Lit.t
val empty : t
val singleton : bool_lit -> t
val mem : bool_lit -> t -> bool
val add : bool_lit -> t -> t
val remove : bool_lit -> t -> t
val map : (bool_lit -> bool_lit) -> t -> t
val fold : ('a -> bool_lit -> 'a) -> 'a -> t -> 'a
val length : t -> int
val for_all : (bool_lit -> bool) -> t -> bool
val exists : (bool_lit -> bool) -> t -> bool
val of_list : bool_lit list -> t
val add_list : t -> bool_lit list -> t
val to_list : t -> bool_lit list
val to_seq : t -> bool_lit Sequence.t
val labels : t -> Logtk.Index_intf.labels
val subsumes : t -> t -> bool
subsumes a b
is true iffa
is a subset ofb
val is_empty : t -> bool
Empty trail?
val is_trivial : t -> bool
returns
true
iff the trail contains bothi
and-i
.
type valuation
= bool_lit -> bool
A boolean valuation
val is_active : t -> v:valuation -> bool
Trail.is_active t ~v
is true iff all boolean literals int
are satisfied in the boolean valuationv
.
val to_s_form : t -> Logtk.TypedSTerm.Form.t