13.11.2013 Views

Advances in Artificial Intelligence Theory - MICAI - Mexican ...

Advances in Artificial Intelligence Theory - MICAI - Mexican ...

Advances in Artificial Intelligence Theory - MICAI - Mexican ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Prov(p(d);α(d)) - Prov(X1;Y1) - Prov(X1,α(a),c=a;p(a),Y1)&Prov(X1;c=a,Y1) -<br />

- Prov(X1;c=a,Y1) - Prov(p(d),α(c);c=a,c=b,p(c),α(d)) - □.<br />

The second node is given by match<strong>in</strong>g with C1 and is the first meta-predicate <strong>in</strong> the<br />

body of C1 s<strong>in</strong>ce T(p/α,x/c’:X,p(x); α(x),Y) is true. The third is given by apply<strong>in</strong>g C2<br />

with y=a. By apply<strong>in</strong>g A1 to the first meta-predicate Prov(X1,p(a),c=a;p(a),Y1) and<br />

Prov(X1,p(b),c=b,c=a;p(a),Y1) are obta<strong>in</strong>ed. Both are true by P1 and by C3 with a=b<br />

false, respectively, and the fourth node is given. Similarly the fifth node is obta<strong>in</strong>ed<br />

by apply<strong>in</strong>g C2 with y=b. The last is given by A1 and P1.<br />

It is noted that {x=a,x=b}←p(x) is also proved <strong>in</strong> Example 7. Then the follow<strong>in</strong>g<br />

two circumscription meta-rules correspond<strong>in</strong>g to α(x)≡x=a and α(x)≡x=b are used.<br />

Prov(X,p(x);x=a,Y) ← Prov(X,p(x),c=a;p(c),x=a,Y),<br />

Prov(X,p(x);x=b,Y) ← Prov(X,p(x),c'=b;p(c'),x=b,Y).<br />

Similarly the well-known solution, i.e., for all x and all y {(x=a←p(x)),<br />

(y=b←p(y))}, is also proved <strong>in</strong> MC by us<strong>in</strong>g the above two circumscription metarules<br />

with the follow<strong>in</strong>g meta-rule for the query and constants, d and d’, not <strong>in</strong> MC.<br />

Prov(X;Y) ← Prov(X,p(d),p(d’);d=a,d’=b,Y).<br />

Example 8 (The priority and variable predicates) With A, S, E, p1, and p2 for<br />

adult, student, employed, abnormal1, and abnormal2, respectively, Let T be<br />

p1(x)←S(x)&E(x), {E(x),p2(x)}←A(x), A(x)←S(x), S(m)← and let the query be<br />

~E(m), where m (Mary) is a constant. The correspond<strong>in</strong>g meta-rules are,<br />

respectively,<br />

Prov(X,S(x),E(x);p1(x),Y) ←, (4)<br />

Prov(X,A(x);E(x),p2(x),Y) ←, (5)<br />

Prov(X,S(x);A(x),Y) ←, (6)<br />

Prov(X;S(m),Y) ←, (7)<br />

Prov(X;Y) ← Prov(X,E(m);Y). (8)<br />

The circumscription meta-rules for p1 and p2 are, respectively,<br />

Prov(X,p1(x);α1(x),Y)<br />

←Prov(X,p1(x),α1(c);p1(c),α1(x),Y)&Prov(X,p1(x),S(c’),E(c’);α1(c’),α1(x),Y), (9)<br />

Prov(X,p2(x);α2(x),Y)<br />

←Prov(X,p2(x),α2(d);p2(d),α2(x),Y)&Prov(X,p2(x),A(d’);E(d’),α2(d’),α2(x),Y).(10)

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

Saved successfully!

Ooh no, something went wrong!