pub enum UnknownReason {
Timeout,
MemoryLimit,
Incomplete,
Unknown,
}Expand description
The reason why a proof result is unknown.
When Vampire cannot determine whether a conjecture is provable, it returns
ProofRes::Unknown with one of these reasons.
§Examples
use vampire_prover::{ProofRes, UnknownReason};
let result = ProofRes::Unknown(UnknownReason::Timeout);
if let ProofRes::Unknown(reason) = result {
match reason {
UnknownReason::Timeout => println!("Ran out of time"),
UnknownReason::MemoryLimit => println!("Ran out of memory"),
UnknownReason::Incomplete => println!("Problem uses incomplete logic"),
UnknownReason::Unknown => println!("Unknown reason"),
}
}Variants§
Timeout
The prover exceeded its time limit before finding a proof or counterexample.
MemoryLimit
The prover exceeded its memory limit before finding a proof or counterexample.
Incomplete
The problem involves features that make the logic incomplete.
Some logical theories (e.g., higher-order logic, certain arithmetic theories) are undecidable, meaning no algorithm can always find an answer.
Unknown
The reason is unknown or not specified by Vampire.
Trait Implementations§
Source§impl Clone for UnknownReason
impl Clone for UnknownReason
Source§fn clone(&self) -> UnknownReason
fn clone(&self) -> UnknownReason
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 moreSource§impl Debug for UnknownReason
impl Debug for UnknownReason
Source§impl Hash for UnknownReason
impl Hash for UnknownReason
Source§impl PartialEq for UnknownReason
impl PartialEq for UnknownReason
impl Copy for UnknownReason
impl Eq for UnknownReason
impl StructuralPartialEq for UnknownReason
Auto Trait Implementations§
impl Freeze for UnknownReason
impl RefUnwindSafe for UnknownReason
impl Send for UnknownReason
impl Sync for UnknownReason
impl Unpin for UnknownReason
impl UnwindSafe for UnknownReason
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