Derived Assertions Algorithm
The following algorithm take as input the knowledge base
The algorithm computes the set
Input: a knowledge base K containing assertions K_a and rules K_r
DerivedAssertions := K_a
repeat
if there exits E(a) not in DerivedAssertions
and A_1(x)^...^A_n(x) --> E(x) in K_r
and A_1(x),...,A_n(x) in DerivedAssertions
then
add E(a) to DerivedAssertions
NewAssertion := true
else
NewAssertion := false
endif
until NewAssertion = false
return Derived Assertions
Rule Application
In the algorithm above we say that:
Example
Let:
In:
-
First
contains only. -
Then an application of
to adds to . -
Then an application of
to adds to . -
Now no rule is applicable. Thus:
is returned.