Closed GregGelfond closed 1 month ago
Hi,
this is supported, but in a slight different way:
House H2 is right_of a house H1, where H2 is equal to H1+1.
Maybe, we should update the documentation to make it clearer.
Ah! And it seems that whitespace needs to be omitted (meaning that H1+1
is syntactically correct but H1 + 1
is not.
H1 + 1 should be supported as well, this is a bug. Thank you!
I have a solution for the famous "Zebra Puzzle" in CNL, but want to clean it up a bit. Consider the following declaration:
Houses are essentially natural numbers here. In order to define the notion of one house being
right_of
another house, I had to write the following:Ideally, I should be able to write something like:
Is arithmetic not supported in this manner?