The rewrite relation of the following TRS is considered.
from(X) | → | cons(X,n__from(s(X))) | (1) |
2ndspos(0,Z) | → | rnil | (2) |
2ndspos(s(N),cons(X,n__cons(Y,Z))) | → | rcons(posrecip(activate(Y)),2ndsneg(N,activate(Z))) | (3) |
2ndsneg(0,Z) | → | rnil | (4) |
2ndsneg(s(N),cons(X,n__cons(Y,Z))) | → | rcons(negrecip(activate(Y)),2ndspos(N,activate(Z))) | (5) |
pi(X) | → | 2ndspos(X,from(0)) | (6) |
plus(0,Y) | → | Y | (7) |
plus(s(X),Y) | → | s(plus(X,Y)) | (8) |
times(0,Y) | → | 0 | (9) |
times(s(X),Y) | → | plus(Y,times(X,Y)) | (10) |
square(X) | → | times(X,X) | (11) |
from(X) | → | n__from(X) | (12) |
cons(X1,X2) | → | n__cons(X1,X2) | (13) |
activate(n__from(X)) | → | from(X) | (14) |
activate(n__cons(X1,X2)) | → | cons(X1,X2) | (15) |
activate(X) | → | X | (16) |
from#(X) | → | cons#(X,n__from(s(X))) | (17) |
2ndspos#(s(N),cons(X,n__cons(Y,Z))) | → | activate#(Z) | (18) |
2ndspos#(s(N),cons(X,n__cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (19) |
2ndspos#(s(N),cons(X,n__cons(Y,Z))) | → | activate#(Y) | (20) |
2ndsneg#(s(N),cons(X,n__cons(Y,Z))) | → | activate#(Z) | (21) |
2ndsneg#(s(N),cons(X,n__cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (22) |
2ndsneg#(s(N),cons(X,n__cons(Y,Z))) | → | activate#(Y) | (23) |
pi#(X) | → | from#(0) | (24) |
pi#(X) | → | 2ndspos#(X,from(0)) | (25) |
plus#(s(X),Y) | → | plus#(X,Y) | (26) |
times#(s(X),Y) | → | times#(X,Y) | (27) |
times#(s(X),Y) | → | plus#(Y,times(X,Y)) | (28) |
square#(X) | → | times#(X,X) | (29) |
activate#(n__from(X)) | → | from#(X) | (30) |
activate#(n__cons(X1,X2)) | → | cons#(X1,X2) | (31) |
The dependency pairs are split into 3 components.
2ndspos#(s(N),cons(X,n__cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (19) |
2ndsneg#(s(N),cons(X,n__cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (22) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
2ndspos#(s(N),cons(X,n__cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (19) |
1 | > | 1 | |
2ndsneg#(s(N),cons(X,n__cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (22) |
1 | > | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
times#(s(X),Y) | → | times#(X,Y) | (27) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
times#(s(X),Y) | → | times#(X,Y) | (27) |
2 | ≥ | 2 | |
1 | > | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.
plus#(s(X),Y) | → | plus#(X,Y) | (26) |
Using size-change termination in combination with the subterm criterion one obtains the following initial size-change graphs.
plus#(s(X),Y) | → | plus#(X,Y) | (26) |
2 | ≥ | 2 | |
1 | > | 1 |
As there is no critical graph in the transitive closure, there are no infinite chains.