pub struct ResolutionRefutation {
pub clauses: Vec<Clause>,
pub steps: Vec<ResolutionStep>,
}Expand description
A resolution refutation: derives ⊥ from a set of clauses.
Fields§
§clauses: Vec<Clause>The initial clause set.
steps: Vec<ResolutionStep>The sequence of resolution steps.
Implementations§
Source§impl ResolutionRefutation
impl ResolutionRefutation
Sourcepub fn add_step(&mut self, step: ResolutionStep)
pub fn add_step(&mut self, step: ResolutionStep)
Add a resolution step.
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true if the last step produced the empty clause.
Sourcepub fn unit_propagate(&self) -> Vec<Literal>
pub fn unit_propagate(&self) -> Vec<Literal>
Perform unit propagation: return the set of forced literals.
Trait Implementations§
Source§impl Clone for ResolutionRefutation
impl Clone for ResolutionRefutation
Source§fn clone(&self) -> ResolutionRefutation
fn clone(&self) -> ResolutionRefutation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolutionRefutation
impl RefUnwindSafe for ResolutionRefutation
impl Send for ResolutionRefutation
impl Sync for ResolutionRefutation
impl Unpin for ResolutionRefutation
impl UnsafeUnpin for ResolutionRefutation
impl UnwindSafe for ResolutionRefutation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more