| % X is 1 + 2 + 3. % X is 1 + 2, X is 3 + 4.
square(X, Y) :- /* |
| % X is 1 + 2 + 3. % X is 1 + 2, X is 3 + 4.
square(X, Y) :- /* |
| fly(X) :- airplane(jet_plane). superman(taro). /* fly(taro). fly(Y). |
| % 節? female(fune). father_of(namihei, sazae).
mother_of(fune, sazae).
% XはYの親である parent_of(X, Y).
% XはYの息子である suns_of(X, fune).
% XはYの娘である
% XはYの祖父である /*
% XはYの祖母である /* |
| % socrates mortal(X) :- /* mortal(Y). human(Y). human(socrates). mortal(socrates). */ % 終了は |
*mortal : 死ぬ運命にある、死を免れない