YES
The TRS could be proven terminating. The proof took 21 ms.
Problem 1 was processed with processor DependencyGraph (3ms). | Problem 2 was processed with processor SubtermCriterion (1ms).
r1#(cons(x, k), a) | → | r1#(k, cons(x, a)) | rev#(ls) | → | r1#(ls, empty) |
rev(ls) | → | r1(ls, empty) | r1(empty, a) | → | a | |
r1(cons(x, k), a) | → | r1(k, cons(x, a)) |
Termination of terms over the following signature is verified: rev, empty, r1, cons
r1#(cons(x, k), a) → r1#(k, cons(x, a)) |
r1#(cons(x, k), a) | → | r1#(k, cons(x, a)) |
rev(ls) | → | r1(ls, empty) | r1(empty, a) | → | a | |
r1(cons(x, k), a) | → | r1(k, cons(x, a)) |
Termination of terms over the following signature is verified: rev, empty, r1, cons
The following projection was used:
Thus, the following dependency pairs are removed:
r1#(cons(x, k), a) | → | r1#(k, cons(x, a)) |