Patrick Lühne
d60e2a736b
This updates the examples to showcase the scope of anthem’s feature set. New examples are added concerning placeholders, hiding predicates, and simplifications related to integer variables.
13 lines
182 B
Plaintext
13 lines
182 B
Plaintext
#show p/2.
|
|
|
|
{p(1..n, 1..n)}.
|
|
|
|
:- p(X, Y1), p(X, Y2), Y1 != Y2.
|
|
:- p(X1, Y), p(X2, Y), X1 != X2.
|
|
|
|
q1(X) :- p(X, _).
|
|
q2(Y) :- p(_, Y).
|
|
|
|
:- not q1(X), X = 1..n.
|
|
:- not q2(Y), Y = 1..n.
|