pub struct CnfValidator;Expand description
CNF transformation validator
Implementations§
Source§impl CnfValidator
impl CnfValidator
Sourcepub fn validate_not_not(input: &str, output: &str) -> RuleValidation
pub fn validate_not_not(input: &str, output: &str) -> RuleValidation
Validate negation normal form transformation
¬(¬A) ⟺ A
Sourcepub fn validate_demorgan_and(_input: &str, _output: &str) -> RuleValidation
pub fn validate_demorgan_and(_input: &str, _output: &str) -> RuleValidation
Validate De Morgan’s law (AND)
¬(A ∧ B) ⟺ ¬A ∨ ¬B
Sourcepub fn validate_demorgan_or(_input: &str, _output: &str) -> RuleValidation
pub fn validate_demorgan_or(_input: &str, _output: &str) -> RuleValidation
Validate De Morgan’s law (OR)
¬(A ∨ B) ⟺ ¬A ∧ ¬B
Sourcepub fn validate_distributivity(_input: &str, _output: &str) -> RuleValidation
pub fn validate_distributivity(_input: &str, _output: &str) -> RuleValidation
Validate distributivity
A ∨ (B ∧ C) ⟺ (A ∨ B) ∧ (A ∨ C)
Auto Trait Implementations§
impl Freeze for CnfValidator
impl RefUnwindSafe for CnfValidator
impl Send for CnfValidator
impl Sync for CnfValidator
impl Unpin for CnfValidator
impl UnwindSafe for CnfValidator
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