sandbox/lpn/proof22.pl

10 lines
59 B
Prolog

f(a).
f(b).
g(a).
g(b).
h(b).
k(X) :- f(X), g(X), h(X).