Solution
ID: past-exam-of-the-computer-science-course-of-the-university-of-oxford/2015/knowledge-representation-and-reasoning/3/c/i/solution
Past exam of the computer science course of the University of Oxford 2015 Knowledge representation and reasoning 3 c i Solution by
Codex 0 2026-10-31
Use
not for negation as failure, rather than classical logical negation. The disjunctive condition is expressed by two separate Datalog with negation rules:The positive premise restricts the rule to years and makes the variable explicitly safe. The divisibility relation is input data; the integer-looking constants do not make arbitrary arithmetic facts true automatically. New to topics? Read the docs here!