(0) Obligation:

Clauses:

p(X) :- q(X).
p(X) :- ','(no(q(X)), p(X)).
q(X).
no(X) :- ','(X, ','(!, failure(a))).
no(X1).
failure(b).

Query: p(a)

(1) PrologDeterminacyProcessorProof (EQUIVALENT transformation)

The root node satisfies the determinacy criterion.

(2) YES