Algorithm Search⌘K

Modelcore

Default logic

Also called Reiter's 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.

Default logic adds rules with exceptions to classical logic. A default α:β/γ\alpha : \beta / \gamma reads "if α\alpha holds and it is consistent to assume β\beta, conclude γ\gamma". Reiter (1980) gave it a fixed-point semantics: a set of beliefs is acceptable, an extension, when it is exactly what the facts and the defaults that it does not block derive. A theory can have one extension, several or none, so a reasoner must choose between credulous consequence (in some extension) and skeptical consequence (in every extension). For finite propositional theories both questions sit on the second level of the polynomial hierarchy.

The machine

For a logic, the machine is its syntax and its semantics.

Syntax. A default is an expression

α:β1,…,βnγ\frac{\alpha : \beta_1, \ldots, \beta_n}{\gamma}

where the prerequisite α\alpha, the justifications β1,…,βn\beta_1, \ldots, \beta_n and the conclusion γ\gamma are formulas. A prerequisite ⊤\top is often left out, as in :β/γ: \beta / \gamma. A default theory is a pair (W,D)(W, D) of a set WW of formulas (the facts) and a set DD of defaults. Reiter allows first-order formulas, and a default with free variables stands for all its ground instances. The rest of this page uses the propositional case: finitely many atoms, WW and DD finite.

Important special forms:

  • normal defaults α:γ/γ\alpha : \gamma / \gamma, where the justification is the conclusion,
  • semi-normal defaults α:γ∧δ/γ\alpha : \gamma \wedge \delta / \gamma,
  • prerequisite-free defaults :β/γ: \beta / \gamma.

Semantics. Write Th(S)\mathrm{Th}(S) for the classical consequences of SS. For a set SS of formulas, Γ(S)\Gamma(S) is the smallest set TT that contains WW, is closed under Th\mathrm{Th}, and contains γ\gamma for each default whose prerequisite is in TT and none of whose justifications has its negation in SS. An extension is a set EE with Γ(E)=E\Gamma(E) = E. So EE is used only to test the justifications, and everything in EE must be derived from WW. The page on extensions gives Reiter's iterative test, the generating defaults and a brute-force algorithm.

Steps. A derivation in an extension has two kinds of steps: classical inference, and the application of a default whose prerequisite is already derived and whose justifications are consistent with the final extension. The second kind refers to the end result. This is why a default step cannot be checked locally, and why the logic is nonmonotonic: a new fact can make a justification inconsistent and so remove a conclusion.

What it counts

Default logic defines three decision tasks for a finite propositional theory (W,D)(W, D) and a formula φ\varphi:

  • Existence: does (W,D)(W, D) have an extension?
  • Credulous reasoning: is φ\varphi in some extension?
  • Skeptical reasoning: is φ\varphi in every extension? A theory with no extension skeptically entails every formula.

The relation "φ\varphi is in every extension of (W∪{α},D)(W \cup \{\alpha\}, D)" gives a consequence relation α∣ ⁣∼φ\alpha \mathrel{|\!\sim} \varphi. It is not monotonic: Tweety the bird flies by the default bird:flies/flies\mathit{bird} : \mathit{flies} / \mathit{flies}, but not after the fact ¬flies\neg\mathit{flies}, or the facts penguin\mathit{penguin} and penguin⊃¬flies\mathit{penguin} \supset \neg\mathit{flies}, are added.

The cost measure is the usual one for propositional reasoning: the time as a function of the size of WW, DD and φ\varphi, with an oracle for classical satisfiability when the tasks are placed in the polynomial hierarchy.

Relation to other models

  • Classical logic. With D=∅D = \emptyset the unique extension is Th(W)\mathrm{Th}(W), and default logic is classical logic.
  • Closed-world assumption. The defaults :¬p/¬p: \neg p / \neg p for every atom pp give a form of the closed-world assumption. Unlike the classical CWA, they cannot make a consistent theory inconsistent: for W={p∨q}W = \{p \vee q\} there are two extensions, Th({p,¬q})\mathrm{Th}(\{p, \neg q\}) and Th({¬p,q})\mathrm{Th}(\{\neg p, q\}).
  • Logic programs. The rule p←q1,…,qk,not r1,…,not rmp \leftarrow q_1, \ldots, q_k, \mathit{not}\ r_1, \ldots, \mathit{not}\ r_m reads as the default q1∧⋯∧qk:¬r1,…,¬rm/pq_1 \wedge \cdots \wedge q_k : \neg r_1, \ldots, \neg r_m / p. Under this reading, the stable models of a normal program are exactly the atoms of the extensions of the default theory with W=∅W = \emptyset. Answer set programming is therefore a restricted, decidable and fast fragment of default logic.
  • Autoepistemic logic. It expresses "consistent to assume β\beta" as ¬L¬β\neg L \neg\beta inside the object language. Extensions and stable expansions are similar fixed points, but a premise such as La⊃aLa \supset a has an expansion that contains aa, while the default a:a/aa : a / a has no extension that contains aa.
  • Circumscription. It works with minimal models instead of fixed points, and it always gives one theory instead of a family of extensions. Skeptical default reasoning and circumscription agree on many small examples, such as the Nixon diamond, but not in general.
  • Preferential logics. Skeptical default consequence fails Cautious Monotonicity even for normal defaults (Makinson's example in Kraus, Lehmann and Magidor 1990, Section 3.1, worked out on the extension page). So it is not a System P relation.

Known results in the model

  • Normal theories always have an extension (Reiter 1980, Section 3). They are also semi-monotonic: adding a normal default keeps each old extension inside a new one. Two different extensions of a normal theory are inconsistent with each other. Reiter used these facts to give a goal-directed proof procedure for normal defaults.
  • Non-normal defaults can destroy all extensions. The single default :¬a/a: \neg a / a has none. Add it to any theory with consistent facts in which no formula mentions aa, and the new theory has no extension: if aa is in a candidate EE, the default that is the only source of aa is blocked, and if aa is not in EE, the default applies and puts aa in.
  • First-order default logic is not semi-decidable. A default step needs a consistency test, and consistency in first-order logic is not semi-decidable. As Reiter (1980) observed, the consequences of a first-order default theory therefore need not form a recursively enumerable set.
  • Exact complexity in the propositional case (Gottlob 1992; see the theorem page): existence and credulous reasoning are Σ2p\Sigma_2^p-complete, and skeptical reasoning is Π2p\Pi_2^p-complete. Credulous and skeptical reasoning are already hard for normal theories with W=∅W = \emptyset. Existence is trivial for normal theories, and its hardness needs one non-normal default.
  • Fragments. Kautz and Selman (1991) and Stillman (1990) studied default theories built from literals and Horn clauses, where some tasks drop to NP or to polynomial time (Thomas and Vollmer 2010, Section 3).
  • Algorithms. For small theories, the brute-force search over the generating defaults decides every task. Larger propositional theories are handled by reduction to QBF or by a guess-and-check loop with a SAT solver, which matches the Σ2p\Sigma_2^p upper bound. The program fragment is handled by ASP solvers.

References

  1. Raymond Reiter, A logic for default reasoning, Artificial Intelligence 13(1-2), 81 to 132 (1980), Section 2 (defaults, default theories, the operator Gamma and extensions), Section 3 (normal default theories, existence, semi-monotonicity and orthogonality) and Section 4 (proof theory for normal defaults)
  2. Georg Gottlob, Complexity results for nonmonotonic logics, Journal of Logic and Computation 2(3), 397 to 425 (1992), the Sigma2P-completeness of extension existence and credulous reasoning and the Pi2P-completeness of skeptical reasoning for finite propositional default theories
  3. Sarit Kraus, Daniel Lehmann and Menachem Magidor, Nonmonotonic reasoning, preferential models and cumulative logics, Artificial Intelligence 44(1-2), 167 to 207 (1990), Section 3.1 (default logic, even with normal defaults only, fails Cautious Monotonicity)
  4. Michael Thomas and Heribert Vollmer, Complexity of non-monotonic logics, Bulletin of the EATCS 102 (2010), arXiv:1009.1990, Section 3, Theorem 3.5 (the complexity of default logic) and the discussion of the fragments studied by Kautz and Selman and by Stillman

Where this leads

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/Z1MD5D/text.yaml