Algorithm Search⌘K

Modeladvanced

Abductive logic programming

Also called ALP.

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

Abductive logic programming (ALP) adds hypotheses to a logic program. Some atoms are declared abducible: no rule defines them, and the reasoner may assume them. A query is answered by a set of abducibles that, added to the program, makes the query true and keeps a set of integrity constraints satisfied. Kakas, Kowalski and Toni (1992) surveyed the framework and its semantics, and it is the logic programming form of abductive reasoning, with negation as failure in the rules.

The machine

An abductive framework is a triple ⟨P,A,IC⟩\langle P, A, IC \rangle (Kakas, Kowalski and Toni 1992).

  • PP is a normal logic program, a set of rules h←b1,…,bm,not c1,…,not cnh \leftarrow b_1, \ldots, b_m, \mathit{not}\ c_1, \ldots, \mathit{not}\ c_n.
  • AA is a set of abducible atoms (or predicates, whose ground atoms are abducible). Usually no abducible is the head of a rule in PP, so the program says nothing about them.
  • ICIC is a set of integrity constraints. Here they are denials ←l1,…,lr\leftarrow l_1, \ldots, l_r over literals with not\mathit{not}, which a model satisfies when not all lil_i hold.

The semantics used on this page is that of generalized stable models. For Δ⊆A\Delta \subseteq A, a set MM of atoms is a generalized stable model of ⟨P,A,IC⟩\langle P, A, IC \rangle for Δ\Delta if MM is a stable model of P∪ΔP \cup \Delta, where each element of Δ\Delta is added as a fact, and MM satisfies every constraint of ICIC. Other semantics replace stable models by the completion, as in the IFF procedure (Fung and Kowalski 1997), or by the well-founded model.

This is the propositional case. With variables, PP, AA and ICIC stand for their ground instances over the Herbrand universe, as for normal programs.

What it counts

An observation or query is a set GG of ground literals. A set Δ⊆A\Delta \subseteq A is an abductive explanation of GG if some generalized stable model MM for Δ\Delta satisfies GG. This is the credulous reading; the sceptical reading asks that every such model satisfies GG and that one exists. An explanation is minimal if no proper subset is an explanation. Abduction answers "why?" with a set of hypotheses, while deduction answers "is it true?" with a proof.

Example. Let PP be the four rules wet←rain\mathit{wet} \leftarrow \mathit{rain}, wet←sprinkler\mathit{wet} \leftarrow \mathit{sprinkler}, puddle←rain\mathit{puddle} \leftarrow \mathit{rain} and dry_road←not rain\mathit{dry\_road} \leftarrow \mathit{not}\ \mathit{rain}, let A={rain,sprinkler}A = \{\mathit{rain}, \mathit{sprinkler}\}, and let ICIC be the single constraint ←sprinkler,pump_off\leftarrow \mathit{sprinkler}, \mathit{pump\_off}.

Observation Extra fact Explanations Minimal explanations
wet\mathit{wet} none {rain}\{\mathit{rain}\}, {sprinkler}\{\mathit{sprinkler}\}, {rain,sprinkler}\{\mathit{rain}, \mathit{sprinkler}\} {rain}\{\mathit{rain}\}, {sprinkler}\{\mathit{sprinkler}\}
wet\mathit{wet} pump_off\mathit{pump\_off} {rain}\{\mathit{rain}\} {rain}\{\mathit{rain}\}
wet,dry_road\mathit{wet}, \mathit{dry\_road} none {sprinkler}\{\mathit{sprinkler}\} {sprinkler}\{\mathit{sprinkler}\}
wet,dry_road\mathit{wet}, \mathit{dry\_road} pump_off\mathit{pump\_off} none none

For Δ={rain}\Delta = \{\mathit{rain}\} the model is {puddle,rain,wet}\{\mathit{puddle}, \mathit{rain}, \mathit{wet}\}, and for Δ={sprinkler}\Delta = \{\mathit{sprinkler}\} it is {dry_road,sprinkler,wet}\{\mathit{dry\_road}, \mathit{sprinkler}, \mathit{wet}\}. The third row shows the effect of negation as failure: adding the observation dry_road\mathit{dry\_road} removes the explanation {rain}\{\mathit{rain}\}, because assuming rain blocks the rule for dry_road\mathit{dry\_road}. The second row shows the effect of a constraint: the new fact pump_off\mathit{pump\_off} removes every explanation with sprinkler\mathit{sprinkler}.

Points to watch when using the relation:

  • Non-minimal explanations. Supersets of an explanation are often explanations too, as {rain,sprinkler}\{\mathit{rain}, \mathit{sprinkler}\} is in the first row. Applications usually ask for minimal ones, which can be many.
  • Explanations are not monotone. With negation in PP, a superset of an explanation need not be an explanation, and more observations can remove explanations, as in the third row.
  • Abducibles with rules. If an abducible is also the head of a rule, the distinction between assuming and deriving it is lost. Frameworks rename it with a new abducible and a rule.
  • Integrity constraints are not rules. A constraint never derives an atom; it only rejects models. A missing rule cannot be repaired by a constraint.

Relation to other models

  • Answer set programming. Replace each abducible aa by a choice rule {a}←\{a\} \leftarrow, add ICIC as constraints, and add ←not g\leftarrow \mathit{not}\ g for each atom gg of GG and ←g\leftarrow g for each literal not g\mathit{not}\ g of GG. The answer sets of the result are the generalized stable models that satisfy GG, and their abducible parts are the explanations, so an ASP solver computes explanations. Minimal explanations need minimization by subset.
  • Proof procedures. Top-down procedures extend SLDNF resolution: a selected abducible goal is added to Δ\Delta, and the constraints are checked against it. Examples are the IFF procedure (Fung and Kowalski 1997), which is sound for the completion semantics, and SLDNFA (Denecker and De Schreye 1998).
  • Logic-based abduction. In the propositional abduction of Eiter and Gottlob (1995), the theory is a set of clauses and an explanation must be consistent with it and entail the observation. ALP replaces classical entailment by the stable model semantics, so negation as failure and defaults are available.
  • Diagnosis. In consistency-based diagnosis the hypotheses are abnormal components and a diagnosis is a minimal hitting set of conflicts. With abducibles ab(c)\mathit{ab}(c) and rules that describe the normal behaviour of each component, an ALP framework expresses the same task.
  • Default reasoning. Hypotheses that are assumed unless they lead to inconsistency play the role of defaults, as in default logic, and the ATMS records which sets of assumptions derive each atom.

Known results in the model

  • Explanation existence is NP-complete. For finite propositional frameworks with a normal program under generalized stable models, deciding whether GG has an explanation is NP-complete. A certificate is a pair (Δ,M)(\Delta, M), checked in polynomial time by the reduct test of stable models. Hardness holds already with AA, GG and ICIC empty, since then ∅\emptyset is an explanation exactly when PP has a stable model. Eiter, Gottlob and Leone (1997) classify the complexity of abduction from logic programs under the stable and other semantics, for existence, relevance and necessity of hypotheses.
  • Horn theories. For propositional Horn theories with constraints, deciding whether an explanation exists is NP-complete, and for definite Horn theories without constraints it is polynomial (Eiter and Gottlob 1995). In the definite case, AA itself is an explanation whenever any set is one, so one least model computation decides it.
  • Proof procedures. Fung and Kowalski (1997) prove the soundness of the IFF procedure with respect to the completion semantics, and Denecker and De Schreye (1998) prove soundness and completeness results for SLDNFA with respect to a completion semantics. These results do not cover the generalized stable model semantics.
  • Negation as failure is abduction. Kakas, Kowalski and Toni (1992) describe how not p\mathit{not}\ p can be read as an abducible p∗p^* with the constraints ←p,p∗\leftarrow p, p^* and a requirement that one of pp and p∗p^* holds. Under this reading the stable models of a normal program correspond to certain abductive solutions.

References

  1. Antonis C. Kakas, Robert A. Kowalski and Francesca Toni, Abductive logic programming, Journal of Logic and Computation 2(6), 719 to 770 (1992), the definition of abductive frameworks with abducibles and integrity constraints, generalized stable models, and the survey of proof procedures
  2. Tze Ho Fung and Robert Kowalski, The IFF proof procedure for abductive logic programming, Journal of Logic Programming 33(2), 151 to 165 (1997), the IFF proof procedure and its soundness with respect to the completion
  3. Marc Denecker and Danny De Schreye, SLDNFA, an abductive procedure for abductive logic programs, Journal of Logic Programming 34(2), 111 to 167 (1998), the SLDNFA procedure for programs with abducible predicates
  4. Thomas Eiter, Georg Gottlob and Nicola Leone, Abduction from logic programs, semantics and complexity, Theoretical Computer Science 189(1-2), 129 to 177 (1997), the complexity of abduction from logic programs under the stable and other semantics
  5. Thomas Eiter and Georg Gottlob, The complexity of logic-based abduction, Journal of the ACM 42(1), 3 to 42 (1995), the complexity of propositional abduction, including the Horn case
  6. Michael Gelfond and Vladimir Lifschitz, The stable model semantics for logic programming, in Robert A. Kowalski and Kenneth A. Bowen (eds.), Logic Programming: Proceedings of the Fifth International Conference and Symposium, MIT Press, 1070 to 1080 (1988), the definition of stable models used for generalized stable models

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/XQ9SQ0/text.yaml