Skip to main content

Ineligible

Enum Ineligible 

Source
pub enum Ineligible {
    SkolemHead(String),
    NotProjectable(String),
    NotRangeRestricted(String),
    ComputeCondition(String),
    Flavoured(String),
    FlavouredFact,
    Equality,
    NegatedGroup(String),
    DependsOn(String),
    RoleGap,
    ArityClash,
    AbstractionTyping,
}
Expand description

Why a relation was NOT admitted for materialisation. Surfaced by KnowledgeBase::materialization_report — without it a knowledge base cannot tell whether it actually got the lookup, only that its query is still slow.

Variants§

§

SkolemHead(String)

A rule concluding it has a Skolem function surviving the event projection — the head invents a term, so saturation may not terminate.

§

NotProjectable(String)

A rule’s conditions do not partition into per-atom role groups (an event variable is shared across groups, or appears in an individual position), so the ∃ev projection would change what the rule means.

§

NotRangeRestricted(String)

A head variable does not occur in a positive body literal, so the rule is not range-restricted and its saturation is not finite.

§

ComputeCondition(String)

A condition dispatches to the compute backend / arithmetic. Its domain is not enumerable, so its extension is not a finite set to saturate.

§

Flavoured(String)

A RULE TEMPLATE carries a tense or deontic flavour. Rule firing is flavour-polymorphic (apply_tense_to_fact); v1 does not reproduce that.

§

FlavouredFact

A STORED FACT of this relation carries a flavour. Distinct from Flavoured so the report cannot tell a reader to go looking for a past in a rule when it is in the data (or vice versa) — different place, different repair.

§

Equality

The KB has a non-empty du-equivalence, so fact lookup is modulo union-find and a plain set-membership test would miss equivalent variants.

§

NegatedGroup(String)

A ~P restrictor group that does not project cleanly.

§

DependsOn(String)

Admitted on its own merits, but something it depends on was not.

§

RoleGap

The stored facts skip a role place (rel_x1 present, rel_x2 missing), so there is no whole surface atom to project.

§

ArityClash

Stored facts of this relation disagree on how many role places they carry, so there is no single surface arity to probe against.

§

AbstractionTyping

An abstraction TYPING relation (__abs_<hash> or the event(·) anchor beside it). The projection eliminates the referent, so these carry no surface extension — refused rather than omitted so they cannot be mistaken for pure EDB.

Implementations§

Source§

impl Ineligible

Source

pub fn reason(&self) -> String

One-line explanation, for materialization_report.

Trait Implementations§

Source§

impl Clone for Ineligible

Source§

fn clone(&self) -> Ineligible

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 Ineligible

Source§

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

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

impl Eq for Ineligible

Source§

impl PartialEq for Ineligible

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Ineligible

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.

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.