Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
Next revision
Both sides next revision
|
en:dydaktyka:ggp:gdl [2019/01/03 22:50] msl reverts <code prolog> to <code> because of the environment bug |
en:dydaktyka:ggp:gdl [2019/01/03 22:51] msl |
and KIF: | and KIF: |
| |
<code lisp> | <code scheme> |
(p a ?y) | (p a ?y) |
(not (p a ?y)) | (not (p a ?y)) |
For every example below, tell if the KIF version is a faithful translation of the Prolog one. | For every example below, tell if the KIF version is a faithful translation of the Prolog one. |
| |
<code lisp> | <code scheme> |
r(a,b) :- p(a) & q(b) | r(a,b) :- p(a) & q(b) |
(<= (r a b) (and (p a) (q b))) | (<= (r a b) (and (p a) (q b))) |
</code> | </code> |
<code lisp> | <code scheme> |
r(a,b) :- p(a) & q(b) | r(a,b) :- p(a) & q(b) |
(<= (r a b) (p a) (q b)) | (<= (r a b) (p a) (q b)) |
</code> | </code> |
<code lisp> | <code scheme> |
r(x,y) :- p(x) & q(y) | r(x,y) :- p(x) & q(y) |
(<= (r ?x ?y) (p ?x) (q ?y)) | (<= (r ?x ?y) (p ?x) (q ?y)) |
</code> | </code> |
<code lisp> | <code scheme> |
r(X,Y) :- p(X) & q(Y) | r(X,Y) :- p(X) & q(Y) |
(<= (r ?x ?y) (p ?x) (q ?y)) | (<= (r ?x ?y) (p ?x) (q ?y)) |