I'm using pyDatalog (in Python 2.7). Using an arithmetic function like +
, I can refer to an earlier bound variable:
>>> (X==1) & (Y==X+1)
[(1, 2)]
But I cannot use the boolean not
operator the same way:
>>> not(False)
True
>>> (X==False) & (Y==not(X))
File "<stdin>", line 1
(X==False) & (Y==not(X))
^
SyntaxError: invalid syntax
>>>