词条 | Default logic |
释义 |
Default logic is a non-monotonic logic proposed by Raymond Reiter to formalize reasoning with default assumptions. Default logic can express facts like “by default, something is true”; by contrast, standard logic can only express that something is true or that something is false. This is a problem because reasoning often involves facts that are true in the majority of cases but not always. A classical example is: “birds typically fly”. This rule can be expressed in standard logic either by “all birds fly”, which is inconsistent with the fact that penguins do not fly, or by “all birds that are not penguins and not ostriches and ... fly”, which requires all exceptions to the rule to be specified. Default logic aims at formalizing inference rules like this one without explicitly mentioning all their exceptions. Syntax of default logicA default theory is a pair . {{mvar|W}} is a set of logical formulae, called the background theory, that formalize the facts that are known for sure. {{mvar|D}} is a set of default rules, each one being of the form: According to this default, if we believe that {{math|Prerequisite}} is true, and each of is consistent with our current beliefs, we are led to believe that {{math|Conclusion}} is true. The logical formulae in {{mvar|W}} and all formulae in a default were originally assumed to be first-order logic formulae, but they can potentially be formulae in an arbitrary formal logic. The case in which they are formulae in propositional logic is one of the most studied. ExamplesThe default rule “birds typically fly” is formalized by the following default: This rule means that, "if {{mvar|X}} is a bird, and it can be assumed that it flies, then we can conclude that it flies". A background theory containing some facts about birds is the following one: . According to this default rule, a condor flies because the precondition {{math|Bird(Condor)}} is true and the justification {{math|Flies(Condor)}} is not inconsistent with what is currently known. On the contrary, {{math|Bird(Penguin)}} does not allow concluding {{math|Flies(Penguin)}}: even if the precondition of the default {{math|Bird(Penguin)}} is true, the justification {{math|Flies(Penguin)}} is inconsistent with what is known. From this background theory and this default, {{math|Bird(Bee)}} cannot be concluded because the default rule only allows deriving {{math|Flies(X)}} from {{math|Bird(X)}}, but not vice versa. Deriving the antecedents of an inference rule from the consequences is a form of explanation of the consequences, and is the aim of abductive reasoning.A common default assumption is that what is not known to be true is believed to be false. This is known as the Closed World Assumption, and is formalized in default logic using a default like the following one for every fact {{mvar|F}}. For example, the computer language Prolog uses a sort of default assumption when dealing with negation: if a negative atom cannot be proved to be true, then it is assumed to be false. Note, however, that Prolog uses the so-called negation as failure: when the interpreter has to evaluate the atom , it tries to prove that {{mvar|F}} is true, and conclude that is true if it fails. In default logic, instead, a default having as a justification can only be applied if is consistent with the current knowledge. RestrictionsA default is categorical or prerequisite-free if it has no prerequisite (or, equivalently, its prerequisite is tautological). A default is normal if it has a single justification that is equivalent to its conclusion. A default is supernormal if it is both categorical and normal. A default is seminormal if all its justifications entail its conclusion. A default theory is called categorical, normal, supernormal, or seminormal if all defaults it contains are categorical, normal, supernormal, or seminormal, respectively. Semantics of default logicA 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: 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 {{math|Pacifist(Nixon)}} is true, and one in which {{math|Pacifist(Nixon)}} 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 is applicable to a propositional theory {{mvar|T}} if and all theories are consistent. The application of this default to {{mvar|T}} leads to the theory . 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 {{mvar|T}}. 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: Since is consistent with the background theory, the default can be applied, thus leading to the conclusion that 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 . 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. EntailmentA default theory can have zero, one, or more extensions. Entailment of a formula from a default theory can be defined in two ways:
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 {{math|Pacifist(Nixon)}} nor {{math|¬Pacifist(Nixon)}} 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 rulesThe following alternative inference rules for default logic are all based on the same syntax as the original system.
The justified and constrained versions of the inference rule assign at least an extension to every default theory. Variants of default logicThe following variants of default logic differ from the original one on both syntax and semantics.
TranslationsDefault theories can be translated into theories in other logics and vice versa. The following conditions on translations have been considered:
Translations are typically required to be faithful or at least consequence-preserving, while the conditions of modularity and same alphabet are sometimes ignored. The translatability between propositional default logic and the following logics have been studied:
Translations exist or not depending on which conditions are imposed. Translations from propositional default logic to classical propositional logic cannot always generate a polynomially sized propositional theory, unless the polynomial hierarchy collapses. Translations to autoepistemic logic exist or not depending on whether modularity or the use of the same alphabet is required. ComplexityThe computational complexity of the following problems about default logic is known:
ImplementationsThree systems implementing default logics are DeReS{{dead link|date=September 2017 |bot=InternetArchiveBot |fix-attempted=yes }}, [https://web.archive.org/web/20050119052053/http://www.cs.uni-potsdam.de/wv/xray/ XRay] and GADeLSee also
References
External links
4 : Logic programming|Knowledge representation|Logical calculi|Non-classical logic |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。