Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何将这种算术谓词转换为合法的 pyDatalog 谓词?
添加(X, Y, Z) ← X + Y = Z
例如:
?add(5, 7, Z)。
答案应该是:add(5, 7, 12)。
谢谢!
add(X, Y, Z) <= (Z == X + Y)