(0) Obligation:

Clauses:

p(X, Y) :- ','(q(X, Y), r(X)).
q(a, 0).
q(X, s(Y)) :- q(X, Y).
r(b) :- r(b).

Query: p(g,g)

(1) PrologDeterminacyProcessorProof (EQUIVALENT transformation)

The root node satisfies the determinacy criterion.

(2) YES