Skip to main content

VerificationErrorKind

Enum VerificationErrorKind 

Source
pub enum VerificationErrorKind {
    ContradictoryAssertion,
    BoundsViolation {
        var: String,
        expected: String,
        found: String,
    },
    RefinementViolation {
        type_name: String,
    },
    LicenseRequired,
    LicenseInvalid {
        reason: String,
    },
    LicenseInsufficientPlan {
        current: String,
    },
    SolverUnknown,
    SolverError {
        message: String,
    },
    TerminationViolation {
        variant: String,
        reason: String,
    },
}
Expand description

The category of verification error.

Each variant represents a distinct failure mode with specific remediation steps.

Variants§

§

ContradictoryAssertion

An assertion that can never be true.

Z3 proved that no interpretation satisfies the assertion.

Common causes:

  • Conflicting constraints (e.g., x > 5 and x < 3)
  • Logical contradictions in premises
  • Impossible refinement type predicates

Action: Review your assumptions for conflicts.

§

BoundsViolation

A variable violates its declared bounds.

The verifier found a possible value that falls outside the declared constraint.

Action: Either tighten the constraint or add assumptions that rule out the violating value.

Fields

§var: String

The variable that violated its bounds.

§expected: String

The constraint that was expected.

§found: String

The value that violated the constraint.

§

RefinementViolation

A refinement type predicate is not satisfied.

The value being assigned does not satisfy the predicate in the refinement type definition.

Action: Ensure the value meets the refinement predicate, or add assumptions that constrain the value appropriately.

Fields

§type_name: String

The name of the refinement type.

§

LicenseRequired

Verification requires a license key.

Action: Provide a license key via --license <key> or the LOGOS_LICENSE environment variable.

§

LicenseInvalid

The license key is invalid or expired.

Action: Check that your license key is correct and active.

Fields

§reason: String

The reason the license was rejected.

§

LicenseInsufficientPlan

The license plan doesn’t include verification.

Verification requires Pro, Premium, Lifetime, or Enterprise plan.

Action: Upgrade your plan at https://logicaffeine.com/pricing.

Fields

§current: String

The user’s current plan.

§

SolverUnknown

Z3 returned unknown (timeout or undecidable).

The solver could not determine validity within the timeout period, or the problem is undecidable.

Action: Simplify the assertion or add more constraining assumptions.

§

SolverError

Z3 initialization or internal error.

An unexpected error occurred in the Z3 solver.

Action: Check that Z3 is properly installed and configured.

Fields

§message: String

The error message from Z3.

§

TerminationViolation

Loop termination cannot be proven.

The verifier could not prove that the loop variant strictly decreases on each iteration while remaining non-negative.

Action: Ensure your variant expression decreases by at least 1 on each iteration and has a lower bound.

Fields

§variant: String

The variant expression that should decrease.

§reason: String

Why termination could not be proven.

Trait Implementations§

Source§

impl Clone for VerificationErrorKind

Source§

fn clone(&self) -> VerificationErrorKind

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 VerificationErrorKind

Source§

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

Formats the value using the given formatter. Read more
Source§

impl PartialEq for VerificationErrorKind

Source§

fn eq(&self, other: &VerificationErrorKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for VerificationErrorKind

Auto Trait Implementations§

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

§

impl<T, A> IntoAst<A> for T
where T: Into<A>, A: Ast,

§

fn into_ast(self, _a: &A) -> A

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