(0) Obligation:
Clauses:
select(X, .(X, Xs), Xs).
select(X, .(Y, Xs), .(Y, Zs)) :- select(X, Xs, Zs).
Query: select(a,a,g)
(1) PrologToTRSTransformerProof (SOUND transformation)
Transformed Prolog program to TRS.
(2) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
f2_in(T13) → f2_out1
f2_in(.(T23, T25)) → U1(f2_in(T25), .(T23, T25))
U1(f2_out1, .(T23, T25)) → f2_out1
Q is empty.
(3) QTRSRRRProof (EQUIVALENT transformation)
Used ordering:
Polynomial interpretation [POLO]:
POL(.(x1, x2)) = 1 + x1 + 2·x2
POL(U1(x1, x2)) = x1 + x2
POL(f2_in(x1)) = 2 + 2·x1
POL(f2_out1) = 0
With this ordering the following rules can be removed by the rule removal processor [LPAR04] because they are oriented strictly:
f2_in(T13) → f2_out1
f2_in(.(T23, T25)) → U1(f2_in(T25), .(T23, T25))
U1(f2_out1, .(T23, T25)) → f2_out1
(4) Obligation:
Q restricted rewrite system:
R is empty.
Q is empty.
(5) RisEmptyProof (EQUIVALENT transformation)
The TRS R is empty. Hence, termination is trivially proven.
(6) YES