pub struct TableauNode {
pub world: usize,
pub positive: Vec<ModalFormula>,
pub negative: Vec<ModalFormula>,
pub closed: bool,
}Expand description
A node in a tableau for modal logic K.
Fields§
§world: usizeWorld label.
positive: Vec<ModalFormula>Set of formulas true at this world.
negative: Vec<ModalFormula>Set of formulas false at this world.
closed: boolWhether this node is closed (contradiction found).
Implementations§
Source§impl TableauNode
impl TableauNode
Sourcepub fn add_positive(&mut self, phi: ModalFormula)
pub fn add_positive(&mut self, phi: ModalFormula)
Add a formula to the positive (true) set.
Sourcepub fn add_negative(&mut self, phi: ModalFormula)
pub fn add_negative(&mut self, phi: ModalFormula)
Add a formula to the negative (false) set.
Sourcepub fn detect_closure(&mut self)
pub fn detect_closure(&mut self)
Detect closure: a formula appears both positive and negative.
Trait Implementations§
Source§impl Clone for TableauNode
impl Clone for TableauNode
Source§fn clone(&self) -> TableauNode
fn clone(&self) -> TableauNode
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 TableauNode
impl RefUnwindSafe for TableauNode
impl Send for TableauNode
impl Sync for TableauNode
impl Unpin for TableauNode
impl UnsafeUnpin for TableauNode
impl UnwindSafe for TableauNode
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