Skip to main content

Image

Struct Image 

Source
pub struct Image { /* private fields */ }
Expand description

The image of an ordinary sequent under a translation: the linear sequent, stored one-sided as every Sequent is, the mode it is decided in, and what the read-back needs to map a proof of it back to the ordinary formulas.

Implementations§

Source§

impl Image

Source

pub fn outcome( &self, linear: Outcome, limits: &Limits, stop: impl FnMut(Progress) -> bool, ) -> Result<Outcome, Error>

Returns the outcome of deciding the ordinary sequent through this image, from linear, the outcome of a search of the image that the caller ran. It is for a front end that runs its own search (a race, a pool).

For a proof the verdict is valid, with the derivation of LK or LJ read back and checked within limits and until stop fires; where a bound or the stop refuses that derivation, the image’s proof stands as Evidence::Image. For a refutation the verdict is not valid, and otherwise unknown.

§Errors

Error::ReadBack where the derivation read back fails its check, a defect.

Source§

impl Image

Source

pub fn read_back( &self, proof: &Proof, limits: &Limits, stop: impl FnMut(Progress) -> bool, ) -> Result<Derivation, Error>

Returns the derivation of the ordinary sequent that a proof of the image reads back as: one of LK in classical logic, of LJ in intuitionistic and minimal logic. Derivation::check checks it.

A linear rule on an image is the rule of its connective. A dereliction or a promotion is no inference, and a contraction or a weakening is one of the ordinary formula. A classical negation has no image of its own, so it is a ¬ rule where its operand is taken apart. The proof is unfolded first, never compact (two-sided for an image in ILL), within limits.derivation_bytes and limits.memory_bytes. stop is asked as that unfolding asks it, and once per inference read.

§Errors

Error::GoalProof for a proof of a goal other than the image’s roots, whose read-back would conclude another sequent; as Proof::derivation_within for the unfolding; Error::ReadBack for a proof that is not of this image, or a rule with no reading (a cut, a quantifier); Refusal::Stopped when stop fired.

Source§

impl Image

Source

pub fn sequent(&self) -> &Sequent

Returns the linear sequent.

Source

pub fn mode(&self) -> Mode

Returns the mode the image is decided in: classical and affine for the affine translation, intuitionistic for the others.

Source

pub fn logic(&self) -> Logic

Returns the logic.

Source

pub fn translation(&self) -> Translation

Returns the translation.

Source

pub fn ordinary(&self) -> &Sequent

Returns the ordinary sequent the image is of: the one translated, with false right of ⊢ where an intuitionistic or minimal sequent has nothing there.

Trait Implementations§

Source§

impl Clone for Image

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Image

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for Image

§

impl Freeze for Image

§

impl Move for Image

§

impl RefUnwindSafe for Image

§

impl Send for Image

§

impl Sync for Image

§

impl Unpin for Image

§

impl UnsafeUnpin for Image

§

impl UnwindSafe for Image

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.