pub struct SimplificationConfig {
pub apply_demorgan: bool,
pub simplify_double_negation: bool,
pub remove_identities: bool,
pub combine_inferences: bool,
pub simplify_tautologies: bool,
pub max_passes: usize,
}Expand description
Configuration for proof simplification.
Fields§
§apply_demorgan: boolApply De Morgan’s laws to normalize negations
simplify_double_negation: boolSimplify double negations (¬¬p → p)
remove_identities: boolRemove identity operations (p ∧ true → p)
combine_inferences: boolCombine consecutive inferences when possible
simplify_tautologies: boolSimplify tautologies (p ∨ ¬p → true)
max_passes: usizeMaximum number of simplification passes
Implementations§
Source§impl SimplificationConfig
impl SimplificationConfig
Sourcepub fn without_demorgan(self) -> Self
pub fn without_demorgan(self) -> Self
Disable De Morgan’s law simplification.
Sourcepub fn with_max_passes(self, passes: usize) -> Self
pub fn with_max_passes(self, passes: usize) -> Self
Set maximum number of passes.
Trait Implementations§
Source§impl Clone for SimplificationConfig
impl Clone for SimplificationConfig
Source§fn clone(&self) -> SimplificationConfig
fn clone(&self) -> SimplificationConfig
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 SimplificationConfig
impl Debug for SimplificationConfig
Auto Trait Implementations§
impl Freeze for SimplificationConfig
impl RefUnwindSafe for SimplificationConfig
impl Send for SimplificationConfig
impl Sync for SimplificationConfig
impl Unpin for SimplificationConfig
impl UnsafeUnpin for SimplificationConfig
impl UnwindSafe for SimplificationConfig
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