(0) Obligation:

Clauses:

duplicate([], L) :- ','(!, eq(L, [])).
duplicate(X, .(H, .(H, Z))) :- ','(head(X, H), ','(tail(X, T), duplicate(T, Z))).
head([], X1).
head(.(H, X2), H).
tail([], []).
tail(.(X3, T), T).
eq(X, X).

Query: duplicate(g,a)

(1) PrologDeterminacyProcessorProof (EQUIVALENT transformation)

The root node satisfies the determinacy criterion.

(2) YES