MP

Struct MP 

Source
pub struct MP<PrP, PrI> { /* private fields */ }
Expand description

The modus ponens inference rule: if ⊢ P and ⊢ (P -> Q), then ⊢ Q.

PrP should be a proof of P. PrI should be a proof of (P -> Q).

Trait Implementations§

Source§

impl<P, Q, PrP, PrI> Proof for MP<PrP, PrI>
where P: Formula, Q: Formula, PrP: Proof<Proves = P>, PrI: Proof<Proves = Implies<P, Q>>,

Source§

const LENGTH: usize

How many statements this proof involves.
Source§

type Proves = Q

The formula that this proof proves.
Source§

fn display_offset(start_line_num: usize) -> String

Displays the proof as a string, with line numbers starting from start_line_num.
Source§

fn display() -> String

Displays the proof as a string.

Auto Trait Implementations§

§

impl<PrP, PrI> Freeze for MP<PrP, PrI>

§

impl<PrP, PrI> RefUnwindSafe for MP<PrP, PrI>
where PrP: RefUnwindSafe, PrI: RefUnwindSafe,

§

impl<PrP, PrI> Send for MP<PrP, PrI>
where PrP: Send, PrI: Send,

§

impl<PrP, PrI> Sync for MP<PrP, PrI>
where PrP: Sync, PrI: Sync,

§

impl<PrP, PrI> Unpin for MP<PrP, PrI>
where PrP: Unpin, PrI: Unpin,

§

impl<PrP, PrI> UnwindSafe for MP<PrP, PrI>
where PrP: UnwindSafe, PrI: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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 T
where 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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 T
where U: TryFrom<T>,

Source§

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.
Source§

impl<T> TypeEq for T

Source§

type SelfType = T

This is always the type that the trait is implemented on.
Source§

impl<V, P, Q> Valuation<Implies<P, Q>> for V
where P: Formula, Q: Formula, V: Valuation<P> + Valuation<Q>,

Source§

type Value = <<V as Valuation<P>>::Value as Bool>::Implies<<V as Valuation<Q>>::Value>

The value of the valuation on P.
Source§

impl<V, P> Valuation<Not<P>> for V
where P: Formula, V: Valuation<P>,

Source§

type Value = <<V as Valuation<P>>::Value as Bool>::Not

The value of the valuation on P.