Enum cop::lean::Proof

source ·
pub enum Proof<'t, P, C> {
    Lem,
    Red,
    Ext(Offset<&'t Contrapositive<&'t Lit<P, C, usize>>>, Vec<Self>),
}
Expand description

A full proof for a literal, including subproofs.

Variants§

§

Lem

Lemma step

§

Red

Reduction step

§

Ext(Offset<&'t Contrapositive<&'t Lit<P, C, usize>>>, Vec<Self>)

Extension step, storing proofs for all items of the contrapositive

Implementations§

source§

impl<'t, P, C> Proof<'t, P, C>

source

pub fn from_iter( iter: &mut impl Iterator<Item = Action<'t, P, C>>, off: &mut usize ) -> Self

Produce a tree-like proof from a series of proof search actions.

source

pub fn display(&self, lit: OLit<'t, P, C>) -> Disp<'_, 't, P, C>

Given a proof and the literal it proves, make it into something that can be displayed.

source§

impl<'t, P: Eq + Neg<Output = P> + Clone, C: Eq> Proof<'t, P, C>

source

pub fn check( &self, sub: &Sub<'t, C>, lit: OLit<'t, P, C>, ctx: Context<'t, P, C> ) -> bool

Check the proof.

Auto Trait Implementations§

§

impl<'t, P, C> RefUnwindSafe for Proof<'t, P, C>where C: RefUnwindSafe, P: RefUnwindSafe,

§

impl<'t, P, C> Send for Proof<'t, P, C>where C: Sync, P: Sync,

§

impl<'t, P, C> Sync for Proof<'t, P, C>where C: Sync, P: Sync,

§

impl<'t, P, C> Unpin for Proof<'t, P, C>

§

impl<'t, P, C> UnwindSafe for Proof<'t, P, C>where C: RefUnwindSafe, P: RefUnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, R> Rewind<PutRewind<T, R>> for Twhere T: Rewind<R>,

source§

fn rewind(&mut self, state: PutRewind<T, R>)

Rewind to some state.
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.