Skip to content

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

@umanwizard

Description

@umanwizard

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions