The rewrite relation of the following TRS is considered.
from(X) | → | cons(X,n__from(s(X))) | (1) |
length(n__nil) | → | 0 | (2) |
length(n__cons(X,Y)) | → | s(length1(activate(Y))) | (3) |
length1(X) | → | length(activate(X)) | (4) |
from(X) | → | n__from(X) | (5) |
nil | → | n__nil | (6) |
cons(X1,X2) | → | n__cons(X1,X2) | (7) |
activate(n__from(X)) | → | from(X) | (8) |
activate(n__nil) | → | nil | (9) |
activate(n__cons(X1,X2)) | → | cons(X1,X2) | (10) |
activate(X) | → | X | (11) |
t0 | = | length1(activate(n__from(X'))) |
→ | length(activate(activate(n__from(X')))) | |
→ | length(activate(n__from(X'))) | |
→ | length(from(X')) | |
→ | length(cons(X',n__from(s(X')))) | |
→ | length(n__cons(X',n__from(s(X')))) | |
→ | s(length1(activate(n__from(s(X'))))) | |
= | t6 |