Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"whitelisted symbol" rules are too restrictive, not allowing building up rules from smaller rules. #37

Open
umanwizard opened this issue Jun 6, 2020 · 0 comments

Comments

@umanwizard
Copy link

Attempted this solution to chapter 8, ex. 1:

[
 [(prefriends ?p1 ?p2)
  [?m :movie/director ?p1]
  [?m :movie/cast ?p2]
 ]
 [(prefriends ?p1 ?p2)
  [?m :movie/cast ?p1]
  [?m :movie/director ?p2]
 ]
 [(prefriends ?p1 ?p2)
  [?m :movie/cast ?p1]
  [?m :movie/cast ?p2]
 ]
 [(friends ?p1 ?p2)
  (prefriends ?p1 ?p2)
  [(not= ?p1 ?p2)]
 ]
]

which was not accepted since prefriends is not a whitelisted symbol.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant