Introduction
The Knowledge Representation and Reasoning approach to Artificial Intelligence uses logics to represent knowledge and automated reasoning methods to draw new conclusions from that knowledge. In classical (monotonic) reasoning systems, all information is certain and adding new information does not change the conclusions that you could previously draw.
Pecky the penguin used a classical reasoning system. When she added the fact that "penguins do not fly" to her knowledge base, this conflicted with the fact that she could already conclude that "penguins do fly" based on previous knowledge.So, the only way for both these statements to be true was if no penguins existed. And, so Pecky ceased to exist. Pecky's predicament shows that classical reasoning can be too weak to model certain systems.
Defeasible (nonmonotonic) reasoning systems would allow Pecky to say "birds typically fly". Then, when Pecky adds the extra information that "penguins do not fly", the system would retract its previous conclusion that "penguins do fly". Pecky would still exist if she used this "common sense" approach to reasoning.
Background
Propositional Logic
Propositional logic is a simple logic which uses classical reasoning. It uses symbols to represent base statements that can be assigned a value of true or false. Boolean operators are used to combine these base statements to form more complex statements.
Pecky uses the symbols p, b and f to represent penguins, birds and flying, respectively. Then, Pecky combines these symbols using boolean operators to make the statements "birds can fly", "penguins are birds" and "penguins cannot fly".
Truth tables can be used to define the meaning of each boolean operator. And, those meanings are used to reason about propositional statements. The most common question we want to answer is: "Can we conclude that a new statement is true based on the statements that we already know to be true?" This is known as classical entailment.
Using truth tables (or more efficient semantic tableau methods), Pecky can still logically conclude that "penguins can fly". But, Pecky already knows that "penguins cannot fly" and it is impossible for both of these statements to be true. So, Pecky does not exist. To solve this problem we need to make propositional logic defeasible.
The KLM Approach
The KLM approach, proposed by Kraus, Lehmann and Magidor, is a wellsupported approach to defeasible reasoning. It allows us to represent statements such as "penguins typically fly" using a defeasible implication operator. Statements of this form are known as defeasible statements and normal propositional logic statements are known as classical statements.
We now want to be able to answer the question: "Can we conclude that a new defeasible statement is true based on the statements (both defeasible and classical) that we already know to be true?" This is known as defeasible entailment.
Unlike classical entailment, defeasible entailment is not unique. To address this the KLM approach provides a list of rationality properties, called the KLM properties. The properties should be satisfied by a suitable defeasible entailment method.
All of these properties have a fairly intuitive meaning. For example; the And property say that, if Pecky knows that "penguins can waddle" and "penguins can bellyslide", then Pecky should be able to conclude that "penguins can waddle and bellyslide".
Rational Closure
Rational closure is the most simple and intuitive way of defining defeasible entailment. There is a semantic definition of Rational Closure and an equivalent algorithmic definition. For this project we use the algorithmic definition as the sole definition of Rational Closure.
This algorithm is split into two distinct subalgorithms: Base Rank and Rational Closure. (A detailed, formal description of these algorithms is found in the full paper.) The Base Rank algorithm ranks all known statements according to typicality. Intuitively, more general statements will appear higher up in the ranking and more specific statements will appear lower down.
The Rational Closure algorithm uses the ranking of known statements to check whether we can conclude our the query statement from the known statements. When the lefthand side of our query statement is false, according to known statements, then the query statement is trivially true. So, we remove the least typical level in the ranking, since some of the statements in this level must be causing the lefthand side to be false.
When the lefthand side of our query statement is true, given the remaining ranked statements, then the query statement may be false. So, we need to check whether the query statement is true, given the remaining statements. If it is then we can conclude that it is true in our world; otherwise we conclude that the query is false.
Lexicographic & Relevant Closure
If the lefthand side of our query is false, then some of the statements in the top level (least typical level) of the ranking must be causing the lefthand side to be false. However, some other statements in this level may have no effect. So, it seems unnecessary to throw away all of the statements in the top level.
In Lexicographic Closure, instead of throwing away the entire top level of statements, we throw away the fewest number of statements possible. The fewest number of statements is calculated by considering all possible subsets of the statements in the top level.
In Relevant Closure, we only consider throwing away 'relevant' statements. Relevance is determined by which statements are responsible for showing the lefthand side of the query to be false.
Disjunctive Datalog
Datalog is a more expressive logic than propositional logic. It allows us to represent statements about specific individuals as well as generic concepts, which can be associated with many individuals. For example; Pecky can now say that "Pecky is a penguin" or "for all X, X is a penguin".
Datalog is a made up of rules and facts. Facts provide information about the world and rules allow us to deduce facts from other facts. Disjunctive Datalog rules have the following form:
Facts are rules without a body (the lefthand side). Disjunctive Datalog facts have the following form:
The boolean operators used in Datalog have the same intuitive meaning as for propositional logic. Rules intuitively mean that, whenever every statement between "and" symbols on the lefthand side of the rule are true, then at least one of the statements between "or" symbols on the righthand side are true. Facts mean that at least one of the statements between "or" symbols are true.
Using Datalog, Pecky can now say that "Pecky is a penguin", "For all X, if X is a penguin then X waddles or slides" or "For all X, if X is a penguin and lives in the Nothern Hemisphere then X is a Galapogos penguin". However, Pecky cannot use Datalog to say that "For all X, if X is a bird then X typically flies". KLMstyle defeasible reasoning needs to be extended to Datalog in order for Pecky to make these type of statements in Datalog.
Objectives
The primary objective of the project is to extend KLMstyle defeasible reasoning to Disjunctive Datalog. This is achieved by:
 Finding and justifying an extension of the KLM properties for Datalog. (Joint work)
 Finding a satisfactory extension of the Rational Closure algorithm for Datalog and proving that it satisfies the KLM properties for Datalog. (Joint work)
 Finding a satisfactory extension of the Relevant Closure algorithm for Datalog and proving that it still does not satisfy all of the KLM properties for Datalog. (Morris)
 Finding a satisfactory extension of the Lexicographic Closure algorithm for Datalog and proving that it satisfies the KLM properties for Datalog. (Ross)
Defeasible Disjunctive Datalog
In our papers we discuss a KLMstyle defeasible reasoning extension for Disjunctive Datalog. Initially, we discuss an extension of the KLM properties. It turns out that not all of the properties can be expressed using standard Disjunctive Datalog. Thus, we adapt the syntax of Disjunctive Datalog and use firstorder logic semantics to construct a more expressive logic, which we call Datalog+. We use Datalog+ to capture how reasoning should operate, even if one cannot express all possible Datalog+ statements in standard Disjunctive Datalog.
Next, we extend the algorithms for computing defeasible entailment to the Disjunctive Datalog case. In the extended algorithms, we assume that there exist algorithms to compute classical entailment checking of rules and basic set manipulation. Finally, we show that the Rational Closure algorithm satisfies all of the KLM properties. Ross shows that the Lexicographic Closure algorithm satisfies all of the KLM properties and Morris shows that the Relevant Closure algorithm does not satisfy all of the properties.
Conclusions
KLMstyle defeasible reasoning can be extended to Disjunctive Datalog. In particular:
 The KLM properties can be extended to the Datalog case by using an extended version of the Datalog logic to express the properties. The extension retains the intended meaning of the original properties. (Joint work)
 The extended Rational Closure algorithm satisfies the KLM properties for Datalog. (Joint work)
 There is an extension of the Relevant Closure algorithm for Datalog. However, as found for the propositional case, the algorithm does not satisfy all of the KLM properties for Datalog. (Morris)
 The extended Lexicographic Closure algorithm satisfies the KLM properties for Datalog. (Ross)
Resources
For further project details, please see the following project documentation:

Matthew Morris

Tala Ross

Overall Project
Team

Matthew Morris
Author

Tala Ross
Author

Tommie Meyer
Supervisor