(0) Obligation:

Clauses:

p(X, g(X)).
p(X, f(Y)) :- p(X, g(Y)).

Query: p(g,a)

(1) PrologDeterminacyProcessorProof (EQUIVALENT transformation)

The root node satisfies the determinacy criterion.

(2) YES