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.
12 lines
147 B
Plaintext
12 lines
147 B
Plaintext
letter(a).
|
|
letter(b).
|
|
letter(c).
|
|
|
|
{p(1..3, Y)} :- letter(Y).
|
|
:- p(X1, Y), p(X2, Y), X1 != X2.
|
|
|
|
q(X) :- p(X, _).
|
|
:- X = 1..3, not q(X).
|
|
|
|
#show p/2.
|