Closed cgrand closed 4 years ago
So I guess I have to split the parent rule
(defrule is-all-powerful
([user]
(info user name group) (= "root" user))
([user]
(info user name group) (= "admin" group)))
Going all DNF on this is brutal but it's a quick working solution.
I ended doing things differently: when I encounter an or
I lift everything that's right of it in a rule.
Imagine a rule such as:
I want to lift the or out the rule to go to plain datalog.
My first idea was to lift ors as rules but then in this case we would have the following rules
which violates the constraint that all variables appearing in the head must be grounded.