pub enum ProofResult {
Unsatisfiable {
steps: usize,
derivation: Vec<ResolutionStep>,
},
Satisfiable,
Saturated {
clauses_generated: usize,
},
ResourceLimitReached {
steps_attempted: usize,
},
}Expand description
Result of a resolution proof attempt.
Variants§
Unsatisfiable
The clause set is unsatisfiable (empty clause derived)
Fields
§
derivation: Vec<ResolutionStep>Derivation path (sequence of resolution steps)
Satisfiable
The clause set is satisfiable (no contradiction found)
Saturated
Proof attempt reached saturation without finding empty clause
ResourceLimitReached
Proof search reached resource limit
Implementations§
Source§impl ProofResult
impl ProofResult
Sourcepub fn is_unsatisfiable(&self) -> bool
pub fn is_unsatisfiable(&self) -> bool
Check if the result proves unsatisfiability.
Sourcepub fn is_satisfiable(&self) -> bool
pub fn is_satisfiable(&self) -> bool
Check if the result proves satisfiability.
Trait Implementations§
Source§impl Clone for ProofResult
impl Clone for ProofResult
Source§fn clone(&self) -> ProofResult
fn clone(&self) -> ProofResult
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 moreSource§impl Debug for ProofResult
impl Debug for ProofResult
Source§impl<'de> Deserialize<'de> for ProofResult
impl<'de> Deserialize<'de> for ProofResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProofResult
impl PartialEq for ProofResult
Source§impl Serialize for ProofResult
impl Serialize for ProofResult
impl StructuralPartialEq for ProofResult
Auto Trait Implementations§
impl Freeze for ProofResult
impl RefUnwindSafe for ProofResult
impl Send for ProofResult
impl Sync for ProofResult
impl Unpin for ProofResult
impl UnwindSafe for ProofResult
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