A default rule can be applied to a theory if its precondition is entailed by the theory and its justifications are all
consistent with the theory. The application of a default rule leads to the addition of its consequence to the theory. Other default rules may then be applied to the resulting theory.
When the theory is such that no other default can be applied, the theory is called an extension of the default theory. The default rules may be applied in different order, and this may lead to different extensions. The
Nixon diamond example is a default theory with two extensions: : \left\langle \left\{ \frac{\mathrm{Republican}(X):\neg \mathrm{Pacifist}(X)}{\neg \mathrm{Pacifist}(X)}, \frac{\mathrm{Quaker}(X):\mathrm{Pacifist}(X)}{\mathrm{Pacifist}(X)} \right\}, \left\{\mathrm{Republican}(\mathrm{Nixon}), \mathrm{Quaker}(\mathrm{Nixon})\right\} \right\rangle Since
Nixon is both a
Republican and a
Quaker, both defaults can be applied. However, applying the first default leads to the conclusion that Nixon is not a pacifist, which makes the second default not applicable. In the same way, applying the second default we obtain that Nixon is a pacifist, thus making the first default not applicable. This particular default theory has therefore two extensions, one in which is true, and one in which is false. The original semantics of default logic was based on the
fixed point of a function. The following is an equivalent algorithmic definition. If a default contains formulae with free variables, it is considered to represent the set of all defaults obtained by giving a value to all these variables. A default \frac{\alpha:\beta_1,\ldots,\beta_n}{\gamma} is applicable to a propositional theory if T \models \alpha and all theories T \cup \{\beta_i\} are consistent. The application of this default to leads to the theory T \cup \{\gamma\}. An extension can be generated by applying the following algorithm: T = W /* current theory */ A = 0 /* set of defaults applied so far */ /* apply a sequence of defaults */
while there is a default d that is not in A and is applicable to T add the consequence of d to T add d to A /* final consistency check */
if for every default d in A T is consistent with all justifications of d
then output T This algorithm is
non-deterministic, as several defaults can alternatively be applied to a given theory . In the Nixon diamond example, the application of the first default leads to a theory to which the second default cannot be applied and vice versa. As a result, two extensions are generated: one in which Nixon is a pacifist and one in which Nixon is not a pacifist. The final check of consistency of the justifications of all defaults that have been applied implies that some theories do not have any extensions. In particular, this happens whenever this check fails for every possible sequence of applicable defaults. The following default theory has no extension: : \left\langle \left\{ \frac{:A(b)}{\neg A(b)} \right\}, \emptyset \right\rangle Since A(b) is consistent with the background theory, the default can be applied, thus leading to the conclusion that A(b) is false. This result however undermines the assumption that has been made for applying the first default. Consequently, this theory has no extensions. In a normal default theory, all defaults are normal: each default has the form \frac{\phi : \psi}{\psi}. A normal default theory is guaranteed to have at least one extension. Furthermore, the extensions of a normal default theory are mutually inconsistent, i.e., inconsistent with each other.
Entailment A default theory can have zero, one, or more extensions.
Entailment of a formula from a default theory can be defined in two ways: ; Skeptical : a formula is entailed by a default theory if it is entailed by all its extensions; ; Credulous : a formula is entailed by a default theory if it is entailed by at least one of its extensions. Thus, the Nixon diamond example theory has two extensions, one in which Nixon is a pacifist and one in which he is not a pacifist. Consequently, neither nor are skeptically entailed, while both of them are credulously entailed. As this example shows, the credulous consequences of a default theory may be inconsistent with each other.
Alternative default inference rules The following alternative inference rules for default logic are all based on the same syntax as the original system. ; Justified: differs from the original one in that a default is not applied if thereby the set becomes
inconsistent with a justification of an applied default; ; Concise: a default is applied only if its consequence is not already entailed by (the exact definition is more complicated than this one; this is only the main idea behind it); ; Constrained: a default is applied only if the set composed of the background theory, the justifications of all applied defaults, and the consequences of all applied defaults (including this one) is consistent; ; Rational: similar to constrained default logic, but the consequence of the default to add is not considered in the consistency check; ; Cautious: defaults that can be applied but are conflicting with each other (like the ones of the Nixon diamond example) are not applied. The justified and constrained versions of the inference rule assign at least an extension to every default theory. ==Variants of default logic==