Algorithm Search⌘K

Rule-based and nonmonotonic reasoning

Problems

  • Abduction

    Given a theory and an observation, find a minimal consistent set of hypotheses that together with the theory entails the observation.

    core
  • Consistency-based diagnosis

    Given a system description and observations, find minimal sets of components whose abnormality makes the observations consistent.

    core
  • Yale shooting problem

    After loading a gun, waiting and shooting, naive minimization of change gives an unintended model where the gun unloads and the victim lives.

    core

Algorithms

  • Backward chaining

    Start from the goal, pick a rule that concludes it, and prove the conditions of that rule as subgoals in the same way, depth first, until every subgoal is a known fact.

    O(s^(n+1)) worst1 languagesintro
  • Forward chaining

    Start from the known facts, find each rule whose conditions all match facts, add its conclusion, and repeat until no rule adds a new fact or the goal appears.

    O(r m a n^m) worst1 languagesintro
  • Justification-based truth maintenance

    Records a justification for each derived belief and relabels beliefs in and out when assumptions change, keeping the belief set well founded.

    O(n s) worst1 languagescore
  • Rete algorithm

    Compile the rule conditions into a network that stores the partial matches, so each change of working memory updates the conflict set without matching all rules again.

    O(r m a n^m) worst1 languagescore
  • Alternating fixpoint computation

    Computes the well-founded model of a ground normal program by applying the reduct least model operator alternately, giving underestimates of the true atoms and overestimates of the non-false ones.

    O(n · s) worst1 languagesadvanced
  • Answer set grounding

    Replaces variables of a safe ASP program by constants, producing only ground rules whose bodies can be true, by semi-naive evaluation.

    O(r · m^2 · c^k · d^2) worst1 languagesadvanced
  • Assumption-based truth maintenance

    Labels each node with the minimal consistent sets of assumptions from which it follows, so a reasoner can work in all contexts at once; the labels can be exponential.

    2^O(a k) s worst1 languagesadvanced
  • Reiter's hitting set tree

    Finds all minimal diagnoses as the minimal hitting sets of the conflict sets, with a breadth-first search tree whose edges are elements of conflicts.

    O(k · (k + m) · u) worst1 languagesadvanced
  • SLG resolution

    Goal-directed evaluation that keeps a table of answers for each call and delays negative literals it cannot decide yet. It terminates on finite ground programs and computes the well-founded semantics.

    O(s³) worst1 languagesadvanced
  • Smodels algorithm

    Searches for stable models by branching on atoms and propagating with well-founded and lookahead reasoning, in the style of DPLL.

    O(2^n · n^3 · s) worst1 languagesadvanced
  • System Z

    Ranks defaults by tolerance into layers and ranks worlds by the highest layer they violate, computing rational closure.

    O(r^2 · P) worst1 languagesadvanced
  • TREAT algorithm

    A production system matcher that keeps only the matches of single conditions and the conflict set, joins each new element with the other conditions, and deletes by a scan of the conflict set.

    O(r m a n^(m-1)) worst1 languagesadvanced
  • Conflict-driven answer set solving

    Encodes completion and loop constraints as nogoods and runs CDCL-style search with unfounded set checks to find stable models.

    2^O((n + s) log(n + s)) worst1 languagesresearch

Techniques

  • Answer set programming

    Solves a search problem by writing a logic program whose stable models are exactly its solutions and calling a solver to find them.

    core

Concepts

  • Nonmonotonic reasoning

    Reasoning in which adding premises can withdraw conclusions, as when a default is blocked by new information.

    intro
  • Conflict resolution strategy

    The rule that picks one instantiation to fire from the conflict set, by refractoriness, recency, specificity or priority.

    core
  • Negation as failure

    The negation not p in a rule body holds when p cannot be derived. Each semantics of logic programs reads "cannot be derived" in its own way, and all of them are nonmonotonic.

    core

Definitions

  • Choice rule

    An ASP rule whose head lets a solver include any subset of a set of atoms, within lower and upper bounds, when the body holds.

    core
  • Clark's completion

    The completion of a logic program reads the rules for each predicate as an "if and only if" definition, so an atom holds exactly when the body of one of its rules holds.

    core
  • Default extension

    An extension of a default theory is a set of beliefs that is a fixed point of Reiter's operator, so it contains the facts and every default conclusion it does not block.

    1 languagescore
  • Gelfond-Lifschitz reduct

    The reduct of a normal program by a set of atoms M deletes the rules blocked by M and the negative literals in the rest. The result has no negation, so it has a least model.

    core
  • Stable model semantics

    A set of atoms is a stable model of a normal program when it equals the least model of the program's reduct by that set. A program can have no, one or many stable models.

    core
  • Stratified logic program

    A logic program is stratified when no predicate depends on its own negation. Such a program has one standard model, computed layer by layer, and every major semantics agrees on it.

    core
  • Disjunctive logic program

    A program whose rule heads are disjunctions of atoms, with answer sets defined as minimal models of the reduct.

    advanced
  • Rational closure

    The canonical rational consequence relation for a set of conditionals, adding rational monotony to System P.

    advanced
  • Well-founded semantics

    The well-founded semantics gives every normal program one three-valued model. Atoms are true when forced by the rules, false when only unfounded support exists, and undefined otherwise.

    advanced

Theorems

  • Fages' theorem

    If no atom of a normal program depends positively on itself, the stable models of the program are exactly the models of its Clark completion, so a SAT solver can find them.

    advanced
  • Lin-Zhao loop formula theorem

    The stable models of a finite normal program are exactly the models of its completion that satisfy one loop formula for each loop of the positive dependency graph.

    advanced
  • NP-completeness of stable model existence

    Deciding whether a finite propositional normal logic program has a stable model is NP-complete.

    advanced
  • Splitting set theorem

    If a set U of atoms contains every body atom of each rule whose head is in U, the stable models of a program are the stable models of its U part, each extended by the stable models of the rest.

    advanced
  • Sigma2P-completeness of default logic

    Deciding whether a propositional default theory has an extension, or credulous entailment, is Sigma2P-complete.

    research
  • Sigma2P-completeness of disjunctive answer sets

    Deciding whether a propositional disjunctive logic program has an answer set is Sigma2P-complete.

    research
  • Strong equivalence of logic programs

    Two programs have the same stable models in every context exactly when they have the same SE-models, which is the same as equivalence in the logic of here-and-there.

    research

Models

  • Production system

    A working memory of facts and a set of if-then rules, run by a cycle that matches rules, selects one and fires its actions.

    intro
  • Circumscription

    Entails what holds in all models that minimize the extension of chosen predicates, such as abnormality, with others fixed or varying.

    core
  • Default logic

    Extends first-order logic with default rules of the form a:b/c, read as from a, if b is consistent, conclude c.

    core
  • Abductive logic programming

    Extends logic programs with abducible predicates and integrity constraints, so a query is answered by hypotheses that explain it.

    advanced
  • Autoepistemic logic

    A modal logic of an agent reasoning about its own beliefs, whose belief sets are stable expansions of the premises.

    advanced
  • Certainty factors

    Attaches a number in [-1, 1] to each rule and fact and combines them by fixed formulas, an early non-probabilistic model of uncertainty.

    advanced
  • System P

    The rules of reflexivity, left logical equivalence, right weakening, or, cut and cautious monotony for nonmonotonic consequence.

    advanced