Advertisement
Guest User

Untitled

a guest
Jul 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. sibling(X, Y) :- mother(M, X), mother(M, Y), father(F, X), father(F, Y), not(X=Y).
  2. mother(X, Y) :- parent(X, Y), female(X).
  3. father(X, Y) :- parent(X, Y), male(X).
  4. brother(X, Y) :- sibling(X, Y), male(X).
  5. sister(X, Y) :- sibling(X, Y), female(X).
  6.  
  7. grandparent(X, Y) :- parent(X, Y).
  8. husband(X, Y) :- married(X, Y), male(X).
  9. wife(X, Y) :- married(X, Y), female(X).
  10. child(X, Y) :- parent(X, Y).
  11.  
  12. female(artemis).
  13. female(hebe).
  14. female(hera).
  15. female(hestia).
  16. female(rhea).
  17. female(leto).
  18. male(apollo).
  19. male(ares).
  20. male(cronus).
  21. male(hades).
  22. male(hephaestus).
  23. male(poseidon).
  24. male(zeus).
  25.  
  26. married(cronus, rhea).
  27. married(zeus, hera).
  28. married(zeus, leto).
  29. married(poseidon, amphitrite).
  30. married(hades, persephone).
  31.  
  32. parent(cronus, zeus).
  33. parent(rhea, zeus).
  34. parent(cronus, poseidon).
  35. parent(rhea, poseidon).
  36. parent(cronus, hades).
  37. parent(rhea, hades).
  38. parent(cronus, hestia).
  39. parent(rhea, hestia).
  40. parent(zeus, ares).
  41. parent(hera, ares).
  42. parent(zeus, hebe).
  43. parent(hera, hebe).
  44. parent(zeus, hephaestus).
  45. parent(hera, hephaestus).
  46. parent(zeus, apollo).
  47. parent(leto, apollo).
  48. parent(zeus, artemis).
  49. parent(leto, artemis).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement