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.mdPart I).Eager: every rebuild attempts completion (the--derive-ac-eqsbehavior).CompletionOutcome::Convergedreports an unchanged full implementation round, not a semantic-completeness certificate; the growth budget can stop earlier withAbortedGrowthLimit. 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 withCompletionOutcome::GoalMetthe 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§
Trait Implementations§
impl Copy for AcMode
impl Eq for AcMode
impl StructuralPartialEq for AcMode
Auto Trait Implementations§
impl Freeze for AcMode
impl RefUnwindSafe for AcMode
impl Send for AcMode
impl Sync for AcMode
impl Unpin for AcMode
impl UnsafeUnpin for AcMode
impl UnwindSafe for AcMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.