YES
The TRS could be proven terminating. The proof took 31 ms.
The following DP Processors were used
Problem 1 was processed with processor DependencyGraph (15ms).
| Problem 2 was processed with processor SubtermCriterion (3ms).
| Problem 3 was processed with processor SubtermCriterion (0ms).
Problem 1: DependencyGraph
Dependency Pair Problem
Dependency Pairs
sel#(s(X), cons(Y, Z)) | → | activate#(Z) | | activate#(n__from(X)) | → | from#(activate(X)) |
activate#(n__s(X)) | → | activate#(X) | | activate#(n__from(X)) | → | activate#(X) |
activate#(n__s(X)) | → | s#(activate(X)) | | sel#(s(X), cons(Y, Z)) | → | sel#(X, activate(Z)) |
Rewrite Rules
from(X) | → | cons(X, n__from(n__s(X))) | | sel(0, cons(X, Y)) | → | X |
sel(s(X), cons(Y, Z)) | → | sel(X, activate(Z)) | | from(X) | → | n__from(X) |
s(X) | → | n__s(X) | | activate(n__from(X)) | → | from(activate(X)) |
activate(n__s(X)) | → | s(activate(X)) | | activate(X) | → | X |
Original Signature
Termination of terms over the following signature is verified: n__s, activate, 0, n__from, s, from, sel, cons
Strategy
The following SCCs where found
sel#(s(X), cons(Y, Z)) → sel#(X, activate(Z)) |
activate#(n__s(X)) → activate#(X) | activate#(n__from(X)) → activate#(X) |
Problem 2: SubtermCriterion
Dependency Pair Problem
Dependency Pairs
sel#(s(X), cons(Y, Z)) | → | sel#(X, activate(Z)) |
Rewrite Rules
from(X) | → | cons(X, n__from(n__s(X))) | | sel(0, cons(X, Y)) | → | X |
sel(s(X), cons(Y, Z)) | → | sel(X, activate(Z)) | | from(X) | → | n__from(X) |
s(X) | → | n__s(X) | | activate(n__from(X)) | → | from(activate(X)) |
activate(n__s(X)) | → | s(activate(X)) | | activate(X) | → | X |
Original Signature
Termination of terms over the following signature is verified: n__s, activate, 0, n__from, s, from, sel, cons
Strategy
Projection
The following projection was used:
Thus, the following dependency pairs are removed:
sel#(s(X), cons(Y, Z)) | → | sel#(X, activate(Z)) |
Problem 3: SubtermCriterion
Dependency Pair Problem
Dependency Pairs
activate#(n__s(X)) | → | activate#(X) | | activate#(n__from(X)) | → | activate#(X) |
Rewrite Rules
from(X) | → | cons(X, n__from(n__s(X))) | | sel(0, cons(X, Y)) | → | X |
sel(s(X), cons(Y, Z)) | → | sel(X, activate(Z)) | | from(X) | → | n__from(X) |
s(X) | → | n__s(X) | | activate(n__from(X)) | → | from(activate(X)) |
activate(n__s(X)) | → | s(activate(X)) | | activate(X) | → | X |
Original Signature
Termination of terms over the following signature is verified: n__s, activate, 0, n__from, s, from, sel, cons
Strategy
Projection
The following projection was used:
Thus, the following dependency pairs are removed:
activate#(n__s(X)) | → | activate#(X) | | activate#(n__from(X)) | → | activate#(X) |