06.03.2013 Views

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

Artificial Intelligence and Soft Computing: Behavioral ... - Arteimi.info

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

6.8 Negation as a Failure in Extended<br />

Logic Programs<br />

It is evident from our background in Predicate Logic that negated clauses have<br />

a significant role in representing knowledge. Unfortunately, however, the<br />

HORN-clause based programs do not allow negated clauses in their body. To<br />

facilitate the users with more freedom of knowledge representation, recently,<br />

Logic programs have been extended to include negated atomic clauses in the<br />

body of a non-Horn clause, presented below:<br />

p ← q, r, ¬s, ¬t<br />

where p, q, r, s <strong>and</strong> t are atomic propositions or predicates.<br />

The principle of negation as failure [9] states: For a given formula P, if one<br />

cannot prove P, then it is reasonable to deduce that ¬ P is true.<br />

For illustrating the principle consider the following extended logic program:<br />

1. Subset (A, B) ← ¬ Non-subset (A, B).<br />

2. Non-subset (A, B) ← Member (X | A), ¬ member (X | B).<br />

Goal: Subset ( (2, 4, nil), (1, 2, 3, 4, nil)) →<br />

To prove the above goal, we resolve the goal clause with clause (1) <strong>and</strong> get<br />

← ¬ Non-subset ((2,4, nil), (1, 2, 3, 4, nil)).<br />

Now, by negation as a failure, we want to satisfy the sub-goal<br />

← Non-subset ((2,4, nil), (1,2,3,4, nil)).<br />

Now, by (2) we find that<br />

Member (X | 2 ,4,nil) , ¬ Member (X | 1,2,3,4, nil)<br />

fails, which consequently proves that non-subset ((2,4, nil), (1,2,3,4,nil)) fails<br />

<strong>and</strong> thus Subset ((2, 4, nil), (1, 2, 3, 4, nil)) is a valid inference.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!