Skip to main content

AcMode

Enum AcMode 

Source
pub enum AcMode {
    Off,
    Eager,
    Lazy,
}
Expand description

How AC congruence completion participates in a program run.

  • Off: canonization and plain congruence only. Checks decide equality of materialized canonical forms; AC-entailed equalities through erased intermediate sums are not derived (the documented completeness gap, ac-congruence-completeness.md Part I).
  • Eager: every rebuild attempts completion (the --derive-ac-eqs behavior). CompletionOutcome::Converged reports an unchanged full implementation round, not a semantic-completeness certificate; the growth budget can stop earlier with AbortedGrowthLimit. Interleaving completion with saturation rules re-runs it on a growing atom pool every round. A rule set that continually mints new atoms can prevent the combined loop from reaching a fixpoint; the node-growth budget may stop an individual completion rebuild first.
  • Lazy: saturation runs with completion off; an equality check that plain congruence cannot decide runs goal-directed completion inside a semi-persistent transaction shared across consecutive equality checks. The queried pair is the completion goal: every pass stops with CompletionOutcome::GoalMet the moment the pair joins, a second phase alternates default-ruleset rule rounds with completion passes when the graph’s own closure does not decide the pair, and the node-growth budget is checked inside a round’s apply loops. The first non-equality-check command restores the mark, discarding everything the checks derived. Restore work includes container diff replay/capture-state reconstruction and incremental or full hash-index repair. Lazy and eager share the completion implementation, but different stopping points and lazy’s bounded rule/completion alternation mean they are not claimed to be equivalent decision procedures.

Variants§

§

Off

§

Eager

§

Lazy

Trait Implementations§

Source§

impl Clone for AcMode

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 Copy for AcMode

Source§

impl Debug for AcMode

Source§

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

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

impl Default for AcMode

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for AcMode

Source§

impl PartialEq for AcMode

Source§

fn eq(&self, other: &Self) -> 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 AcMode

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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 = !

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.