pub struct PropositionalProof {
pub system: ProofSystem,
pub lines: Vec<(String, String)>,
pub conclusion: String,
}Expand description
A propositional proof: a sequence of lines each with a justification.
Fields§
§system: ProofSystemThe proof system used.
lines: Vec<(String, String)>Lines: (formula_string, justification_string).
conclusion: StringThe conclusion formula.
Implementations§
Source§impl PropositionalProof
impl PropositionalProof
Sourcepub fn new(system: ProofSystem, conclusion: impl Into<String>) -> Self
pub fn new(system: ProofSystem, conclusion: impl Into<String>) -> Self
Create an empty proof in the given system for the given conclusion.
Sourcepub fn add_line(
&mut self,
formula: impl Into<String>,
justification: impl Into<String>,
)
pub fn add_line( &mut self, formula: impl Into<String>, justification: impl Into<String>, )
Add a proof line with a justification.
Sourcepub fn measure(&self) -> ProofComplexityMeasure
pub fn measure(&self) -> ProofComplexityMeasure
Return the proof complexity measure.
Trait Implementations§
Source§impl Clone for PropositionalProof
impl Clone for PropositionalProof
Source§fn clone(&self) -> PropositionalProof
fn clone(&self) -> PropositionalProof
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 PropositionalProof
impl RefUnwindSafe for PropositionalProof
impl Send for PropositionalProof
impl Sync for PropositionalProof
impl Unpin for PropositionalProof
impl UnsafeUnpin for PropositionalProof
impl UnwindSafe for PropositionalProof
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