Files
circ/examples/datalog/parse_test/one_rule.pl
Alex Ozdemir 4ffa05fca6 Datalog (#26)
Support a datalog variant.
2021-11-30 13:26:25 -08:00

5 lines
196 B
Prolog

non_zero(Z: field) :- ((Z + Y) + Y) + ~!-Y + to_field(Y);
Z;
exists A: field. A * Z = 1;
exists B: field, C: bool. B * C * Z = 4.