Real agents rarely have complete or certain knowledge. They must jump to sensible conclusions and take them back if wrong.
Monotonic and Non-Monotonic Reasoning
In monotonic logic, once a conclusion is derived it stays derived however much new knowledge is added: the set of theorems only grows. Non-monotonic reasoning allows conclusions to be withdrawn when new information arrives. People reason this way constantly: "Birds fly" is a default, so on hearing that Tweety is a bird we conclude Tweety flies, but retract when told Tweety is a penguin. Non-monotonic reasoning therefore deals with incomplete information, defaults and changing situations.
Definition: Non-monotonic reasoning. Reasoning in which a conclusion may be withdrawn when additional knowledge is added to the knowledge base.
Default Reasoning
A default rule has the form "if A holds and it is consistent to assume B, then conclude B", written A : B / B (Reiter's default logic). Birds fly: Bird(x) : Flies(x) / Flies(x). The conclusion follows unless something contradicts it. Different orders of applying defaults can produce different consistent sets of conclusions, called extensions; the famous Nixon diamond (a Quaker is typically a pacifist, a Republican typically not, and Nixon is both) gives two extensions.
Closed World Assumption and Circumscription
Under the closed world assumption (CWA), anything not known to be true is taken as false: if the flight database lists no train from Delhi to Goa, assume there is none. This is used in databases and in Prolog's negation as failure. Circumscription (McCarthy) minimises the extension of chosen predicates: only the abnormal things we know about are abnormal. Birds fly unless abnormal: Bird(x) ∧ ¬Ab(x) → Flies(x), and we assume Ab holds for as few objects as possible. Autoepistemic logic and modal approaches are further formalisms.
Implementation and Use
Truth maintenance systems implement non-monotonic revision. Applications: diagnosis, commonsense reasoning, legal reasoning (rules with exceptions), planning with defaults, and databases with incomplete data. The cost is that reasoning becomes harder (even deciding extensions is NP-hard), and different formalisms can disagree.
Table 3.8: Monotonic and non-monotonic reasoning
| Basis | Monotonic | Non-monotonic |
|---|---|---|
| Conclusions | Never withdrawn | May be withdrawn |
| Knowledge | Complete and certain | Incomplete, defaults |
| Example | Mathematics | Birds fly unless penguin |
| Formalisms | Classical logic | Default logic, circumscription, CWA |
Example 3.8: Default reasoning
Problem: KB: Bird(Tweety); default Bird(x) → Flies(x) unless Ab(x). Later learn Penguin(Tweety) and that penguins are abnormal. What does the agent conclude each time?
Solution:
- With only Bird(Tweety), Ab(Tweety) cannot be shown, so by default Flies(Tweety) is concluded.
- After learning Penguin(Tweety) and Penguin(x) → Ab(x), Ab(Tweety) is derived.
- The default no longer applies and Flies(Tweety) is withdrawn.
- Under CWA, with no fact stating that a penguin flies, Flies(Tweety) is false.
Result: Flies(Tweety) is believed first and retracted later: the reasoning is non-monotonic.
def flies(kb):
abnormal = "Penguin" in kb
return "Bird" in kb and not abnormal
kb = {"Bird"}
print("KB", sorted(kb), "-> Flies:", flies(kb))
kb.add("Penguin")
print("KB", sorted(kb), "-> Flies:", flies(kb))
db = {"train(Delhi, Jaipur)"}
print("CWA: train(Delhi, Goa) =", "train(Delhi, Goa)" in db)
Output
KB ['Bird'] -> Flies: True
KB ['Bird', 'Penguin'] -> Flies: False
CWA: train(Delhi, Goa) = False
Common mistakes
- Treating default conclusions as certain facts.
- Assuming that CWA is correct when the database is incomplete.
- Using classical logic when exceptions are common, leading to contradictions.
- Ignoring that different default orderings may give different extensions.
Key takeaways
- Non-monotonic: conclusions can be withdrawn after new information.
- Default logic: A : B / B; circumscription minimises abnormality.
- CWA: what is not known true is assumed false (negation as failure).
- Needed for commonsense and incomplete knowledge.
Practice questions
- What is non-monotonic reasoning?
- State the closed world assumption.
- What is circumscription?
Answers to the practice questions
- Reasoning in which earlier conclusions may be withdrawn when new knowledge is added.
- Anything not known to be true is assumed to be false.
- Minimising the set of abnormal objects so that defaults hold unless an exception is known.
Sources
- Official BCA syllabus Artificial Intelligence, course code 26BCA404DS04, Unit III
