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
impl Image
Sourcepub fn outcome(
&self,
linear: Outcome,
limits: &Limits,
stop: impl FnMut(Progress) -> bool,
) -> Result<Outcome, Error>
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
impl Image
Sourcepub fn read_back(
&self,
proof: &Proof,
limits: &Limits,
stop: impl FnMut(Progress) -> bool,
) -> Result<Derivation, Error>
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
impl Image
Sourcepub fn mode(&self) -> Mode
pub fn mode(&self) -> Mode
Returns the mode the image is decided in: classical and affine for the affine translation, intuitionistic for the others.
Sourcepub fn translation(&self) -> Translation
pub fn translation(&self) -> Translation
Returns the translation.
Trait Implementations§
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> 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.