Term Rewriting System R:
[X, Y, X1, X2]
f(g(X), Y) -> f(X, nf(ng(X), activate(Y)))
f(X1, X2) -> nf(X1, X2)
g(X) -> ng(X)
activate(nf(X1, X2)) -> f(activate(X1), X2)
activate(ng(X)) -> g(activate(X))
activate(X) -> X

Termination of R to be shown.



   R
Dependency Pair Analysis



R contains the following Dependency Pairs:

F(g(X), Y) -> F(X, nf(ng(X), activate(Y)))
F(g(X), Y) -> ACTIVATE(Y)
ACTIVATE(nf(X1, X2)) -> F(activate(X1), X2)
ACTIVATE(nf(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(ng(X)) -> G(activate(X))
ACTIVATE(ng(X)) -> ACTIVATE(X)

Furthermore, R contains one SCC.


   R
DPs
       →DP Problem 1
Non Termination


Dependency Pairs:

ACTIVATE(ng(X)) -> ACTIVATE(X)
ACTIVATE(nf(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(nf(X1, X2)) -> F(activate(X1), X2)
F(g(X), Y) -> ACTIVATE(Y)
F(g(X), Y) -> F(X, nf(ng(X), activate(Y)))


Rules:


f(g(X), Y) -> f(X, nf(ng(X), activate(Y)))
f(X1, X2) -> nf(X1, X2)
g(X) -> ng(X)
activate(nf(X1, X2)) -> f(activate(X1), X2)
activate(ng(X)) -> g(activate(X))
activate(X) -> X





Found an infinite P-chain over R:
P =

ACTIVATE(ng(X)) -> ACTIVATE(X)
ACTIVATE(nf(X1, X2)) -> ACTIVATE(X1)
ACTIVATE(nf(X1, X2)) -> F(activate(X1), X2)
F(g(X), Y) -> ACTIVATE(Y)
F(g(X), Y) -> F(X, nf(ng(X), activate(Y)))

R =

f(g(X), Y) -> f(X, nf(ng(X), activate(Y)))
f(X1, X2) -> nf(X1, X2)
g(X) -> ng(X)
activate(nf(X1, X2)) -> f(activate(X1), X2)
activate(ng(X)) -> g(activate(X))
activate(X) -> X

s = F(activate(ng(g(X''''))), Y')
evaluates to t =F(activate(ng(g(X''''))), activate(Y'))

Thus, s starts an infinite chain as s matches t.

Non-Termination of R could be shown.
Duration:
0:02 minutes