The rewrite relation of the following TRS is considered.
from(X) | → | cons(X,n__from(n__s(X))) | (1) |
2ndspos(0,Z) | → | rnil | (2) |
2ndspos(s(N),cons(X,Z)) | → | 2ndspos(s(N),cons2(X,activate(Z))) | (3) |
2ndspos(s(N),cons2(X,cons(Y,Z))) | → | rcons(posrecip(Y),2ndsneg(N,activate(Z))) | (4) |
2ndsneg(0,Z) | → | rnil | (5) |
2ndsneg(s(N),cons(X,Z)) | → | 2ndsneg(s(N),cons2(X,activate(Z))) | (6) |
2ndsneg(s(N),cons2(X,cons(Y,Z))) | → | rcons(negrecip(Y),2ndspos(N,activate(Z))) | (7) |
pi(X) | → | 2ndspos(X,from(0)) | (8) |
plus(0,Y) | → | Y | (9) |
plus(s(X),Y) | → | s(plus(X,Y)) | (10) |
times(0,Y) | → | 0 | (11) |
times(s(X),Y) | → | plus(Y,times(X,Y)) | (12) |
square(X) | → | times(X,X) | (13) |
from(X) | → | n__from(X) | (14) |
s(X) | → | n__s(X) | (15) |
activate(n__from(X)) | → | from(activate(X)) | (16) |
activate(n__s(X)) | → | s(activate(X)) | (17) |
activate(X) | → | X | (18) |
2ndsneg#(s(N),cons(X,Z)) | → | activate#(Z) | (19) |
2ndsneg#(s(N),cons2(X,cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (20) |
activate#(n__from(X)) | → | activate#(X) | (21) |
plus#(s(X),Y) | → | plus#(X,Y) | (22) |
activate#(n__s(X)) | → | activate#(X) | (23) |
activate#(n__from(X)) | → | from#(activate(X)) | (24) |
2ndspos#(s(N),cons(X,Z)) | → | 2ndspos#(s(N),cons2(X,activate(Z))) | (25) |
2ndsneg#(s(N),cons2(X,cons(Y,Z))) | → | activate#(Z) | (26) |
activate#(n__s(X)) | → | s#(activate(X)) | (27) |
times#(s(X),Y) | → | times#(X,Y) | (28) |
pi#(X) | → | from#(0) | (29) |
2ndspos#(s(N),cons2(X,cons(Y,Z))) | → | activate#(Z) | (30) |
pi#(X) | → | 2ndspos#(X,from(0)) | (31) |
square#(X) | → | times#(X,X) | (32) |
2ndsneg#(s(N),cons(X,Z)) | → | 2ndsneg#(s(N),cons2(X,activate(Z))) | (33) |
plus#(s(X),Y) | → | s#(plus(X,Y)) | (34) |
2ndspos#(s(N),cons(X,Z)) | → | activate#(Z) | (35) |
times#(s(X),Y) | → | plus#(Y,times(X,Y)) | (36) |
2ndspos#(s(N),cons2(X,cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (37) |
The dependency pairs are split into 4 components.
2ndspos#(s(N),cons2(X,cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (37) |
2ndspos#(s(N),cons(X,Z)) | → | 2ndspos#(s(N),cons2(X,activate(Z))) | (25) |
2ndsneg#(s(N),cons(X,Z)) | → | 2ndsneg#(s(N),cons2(X,activate(Z))) | (33) |
2ndsneg#(s(N),cons2(X,cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (20) |
[negrecip(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[2ndspos(x1, x2)] | = | 0 |
[activate(x1)] | = | 1 |
[rnil] | = | 0 |
[plus#(x1, x2)] | = | 0 |
[n__from(x1)] | = | 3 |
[square(x1)] | = | 0 |
[activate#(x1)] | = | 0 |
[square#(x1)] | = | 0 |
[pi(x1)] | = | 0 |
[rcons(x1, x2)] | = | 0 |
[n__s(x1)] | = | x1 + 1 |
[times#(x1, x2)] | = | 0 |
[0] | = | 0 |
[from(x1)] | = | 2 |
[times(x1, x2)] | = | 0 |
[s#(x1)] | = | 0 |
[2ndsneg(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 0 |
[2ndspos#(x1, x2)] | = | x1 + 0 |
[cons2(x1, x2)] | = | 1 |
[from#(x1)] | = | 0 |
[cons(x1, x2)] | = | 3 |
[pi#(x1)] | = | 0 |
[2ndsneg#(x1, x2)] | = | x1 + 0 |
[posrecip(x1)] | = | 0 |
s(X) | → | n__s(X) | (15) |
2ndspos#(s(N),cons2(X,cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (37) |
2ndsneg#(s(N),cons2(X,cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (20) |
The dependency pairs are split into 0 components.
times#(s(X),Y) | → | times#(X,Y) | (28) |
[negrecip(x1)] | = | 0 |
[s(x1)] | = | x1 + 3 |
[2ndspos(x1, x2)] | = | 0 |
[activate(x1)] | = | 1 |
[rnil] | = | 0 |
[plus#(x1, x2)] | = | 0 |
[n__from(x1)] | = | 3 |
[square(x1)] | = | 0 |
[activate#(x1)] | = | 0 |
[square#(x1)] | = | 0 |
[pi(x1)] | = | 0 |
[rcons(x1, x2)] | = | 0 |
[n__s(x1)] | = | x1 + 1 |
[times#(x1, x2)] | = | x1 + 0 |
[0] | = | 0 |
[from(x1)] | = | 2 |
[times(x1, x2)] | = | 0 |
[s#(x1)] | = | 0 |
[2ndsneg(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 0 |
[2ndspos#(x1, x2)] | = | x1 + 0 |
[cons2(x1, x2)] | = | 1 |
[from#(x1)] | = | 0 |
[cons(x1, x2)] | = | 3 |
[pi#(x1)] | = | 0 |
[2ndsneg#(x1, x2)] | = | x1 + 0 |
[posrecip(x1)] | = | 0 |
s(X) | → | n__s(X) | (15) |
times#(s(X),Y) | → | times#(X,Y) | (28) |
The dependency pairs are split into 0 components.
plus#(s(X),Y) | → | plus#(X,Y) | (22) |
[negrecip(x1)] | = | 0 |
[s(x1)] | = | x1 + 3 |
[2ndspos(x1, x2)] | = | 0 |
[activate(x1)] | = | 1 |
[rnil] | = | 0 |
[plus#(x1, x2)] | = | x1 + 0 |
[n__from(x1)] | = | 3 |
[square(x1)] | = | 0 |
[activate#(x1)] | = | 0 |
[square#(x1)] | = | 0 |
[pi(x1)] | = | 0 |
[rcons(x1, x2)] | = | 0 |
[n__s(x1)] | = | x1 + 1 |
[times#(x1, x2)] | = | 0 |
[0] | = | 0 |
[from(x1)] | = | 2 |
[times(x1, x2)] | = | 0 |
[s#(x1)] | = | 0 |
[2ndsneg(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 0 |
[2ndspos#(x1, x2)] | = | x1 + 0 |
[cons2(x1, x2)] | = | 1 |
[from#(x1)] | = | 0 |
[cons(x1, x2)] | = | 3 |
[pi#(x1)] | = | 0 |
[2ndsneg#(x1, x2)] | = | x1 + 0 |
[posrecip(x1)] | = | 0 |
s(X) | → | n__s(X) | (15) |
plus#(s(X),Y) | → | plus#(X,Y) | (22) |
The dependency pairs are split into 0 components.
activate#(n__s(X)) | → | activate#(X) | (23) |
activate#(n__from(X)) | → | activate#(X) | (21) |
[negrecip(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[2ndspos(x1, x2)] | = | 0 |
[activate(x1)] | = | 1 |
[rnil] | = | 0 |
[plus#(x1, x2)] | = | 0 |
[n__from(x1)] | = | x1 + 3 |
[square(x1)] | = | 0 |
[activate#(x1)] | = | x1 + 0 |
[square#(x1)] | = | 0 |
[pi(x1)] | = | 0 |
[rcons(x1, x2)] | = | 0 |
[n__s(x1)] | = | x1 + 0 |
[times#(x1, x2)] | = | 0 |
[0] | = | 0 |
[from(x1)] | = | 2 |
[times(x1, x2)] | = | 0 |
[s#(x1)] | = | 0 |
[2ndsneg(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 0 |
[2ndspos#(x1, x2)] | = | x1 + 0 |
[cons2(x1, x2)] | = | 1 |
[from#(x1)] | = | 0 |
[cons(x1, x2)] | = | 3 |
[pi#(x1)] | = | 0 |
[2ndsneg#(x1, x2)] | = | x1 + 0 |
[posrecip(x1)] | = | 0 |
s(X) | → | n__s(X) | (15) |
activate#(n__from(X)) | → | activate#(X) | (21) |
The dependency pairs are split into 1 component.
activate#(n__s(X)) | → | activate#(X) | (23) |
[negrecip(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[2ndspos(x1, x2)] | = | 0 |
[activate(x1)] | = | 1 |
[rnil] | = | 0 |
[plus#(x1, x2)] | = | 0 |
[n__from(x1)] | = | x1 + 3 |
[square(x1)] | = | 0 |
[activate#(x1)] | = | x1 + 0 |
[square#(x1)] | = | 0 |
[pi(x1)] | = | 0 |
[rcons(x1, x2)] | = | 0 |
[n__s(x1)] | = | x1 + 1 |
[times#(x1, x2)] | = | 0 |
[0] | = | 0 |
[from(x1)] | = | 2 |
[times(x1, x2)] | = | 0 |
[s#(x1)] | = | 0 |
[2ndsneg(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 0 |
[2ndspos#(x1, x2)] | = | x1 + 0 |
[cons2(x1, x2)] | = | 1 |
[from#(x1)] | = | 0 |
[cons(x1, x2)] | = | 3 |
[pi#(x1)] | = | 0 |
[2ndsneg#(x1, x2)] | = | x1 + 0 |
[posrecip(x1)] | = | 0 |
s(X) | → | n__s(X) | (15) |
activate#(n__s(X)) | → | activate#(X) | (23) |
The dependency pairs are split into 0 components.