next up previous contents
Next: Inference in Algernon Up: Introduction to Frame Based Previous: Access Paths

Rules Are Implications

 

We represent logical implications as rules. For example, the logical assertion that

displaymath1267

can be represented by the forward-chaining rule :

displaymath1268

Intuitively, such a rule says that whenever we learn a relation (spouse f g) we should immediately conclude (spouse g f). Such forward-chaining (``if-added'' ) rules are generally used to maintain invariants in the knowledge-base.

Algernon also allows backward-chaining  (``if-needed'' ) rules. For example,

  equation231

Intuitively, this rule says that if you need to find an aunt of John then you should look for a parent of John, and then a sister of that parent. Notice that the antecedent of this rule is an access path. All rules in Algernon must define access paths. Thus the implication:

displaymath1269

is not allowed since the only way to ``fire'' this rule would be to search globally for all frames in the knowledge-base that have a sister relation with other frames.

The backward-chaining rule (1) represents the content of the logical implication

displaymath1270

but with the added knowledge (or restriction) that the implication should only be used to satisfy a query of aunt(John,y).



Micheal S. Hewett
Tue Oct 29 10:54:13 CST 1996