Consider the following rules:
pyDatalog.create_atoms('X')
pyDatalog.create_atoms('Y')
pyDatalog.create_atoms('a')
pyDatalog.create_atoms('b')
b(X,1) <= (X<0)
b(X,Y) <= (X==1) & (Y>0)
a(X,Y) <= b(X,Y) & (X>0)
And the problem of finding the constraints that satisfy: a(X,1)
The question is: Can you use pyDatalog to come up with the list [(X==1)] ? or [(X>0), (X==1)]?
Thanks,