pub struct LinSequent {
pub formulas: Vec<LinFormula>,
}Expand description
A one-sided sequent: ⊢ Γ (a multiset of linear formulas).
Fields§
§formulas: Vec<LinFormula>Formulas in the succedent (all on the right in one-sided calculus).
Implementations§
Source§impl LinSequent
impl LinSequent
Sourcepub fn new(formulas: Vec<LinFormula>) -> Self
pub fn new(formulas: Vec<LinFormula>) -> Self
Create a new sequent from a list of formulas.
Sourcepub fn tensor_components(&self) -> Option<(LinSequent, LinFormula, LinFormula)>
pub fn tensor_components(&self) -> Option<(LinSequent, LinFormula, LinFormula)>
Apply the tensor rule: split into two sub-sequents. Returns the two components if the sequent has the form ⊢ …, A ⊗ B, …
Sourcepub fn total_complexity(&self) -> usize
pub fn total_complexity(&self) -> usize
Total complexity of all formulas in the sequent.
Trait Implementations§
Source§impl Clone for LinSequent
impl Clone for LinSequent
Source§fn clone(&self) -> LinSequent
fn clone(&self) -> LinSequent
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 LinSequent
impl RefUnwindSafe for LinSequent
impl Send for LinSequent
impl Sync for LinSequent
impl Unpin for LinSequent
impl UnsafeUnpin for LinSequent
impl UnwindSafe for LinSequent
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