Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. %1
  2. shines(sun).
  3.  
  4. %2
  5. married(Alice, Bob).
  6. married(Bob, Alice).
  7.  
  8. %3
  9. married(Alice, Bob).
  10. married(Bob, Alice).
  11. dutch(Bob).
  12.  
  13. %4
  14. hasEngine(X) :- car(X).
  15.  
  16.  
  17. %5
  18. hasEngine(X) :- car(X).
  19. hasEngine(X) :- motorbike(X).
  20.  
  21. %6
  22. car(X) :- driveable(car(X)).
  23. driveable(X) :- car(X), taxPaid(X).
  24. driveable(X) :- car(X), taxExemptionGranted(X).
  25.  
  26. %7
  27. drive(X) :- has_license(X).
  28. drive(X) :- has_note(X)
  29.  
  30. %8
  31. tastes_good(X) :- apple(X), red(X), sweet(X)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement