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,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) |
activate(n__from(X)) | → | from(X) | (15) |
activate(X) | → | X | (16) |
2ndsneg#(s(N),cons(X,Z)) | → | activate#(Z) | (17) |
2ndsneg#(s(N),cons2(X,cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (18) |
activate#(n__from(X)) | → | from#(X) | (19) |
2ndspos#(s(N),cons(X,Z)) | → | 2ndspos#(s(N),cons2(X,activate(Z))) | (20) |
pi#(X) | → | 2ndspos#(X,from(0)) | (21) |
pi#(X) | → | from#(0) | (22) |
2ndspos#(s(N),cons2(X,cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (23) |
2ndsneg#(s(N),cons2(X,cons(Y,Z))) | → | activate#(Z) | (24) |
2ndspos#(s(N),cons(X,Z)) | → | activate#(Z) | (25) |
times#(s(X),Y) | → | times#(X,Y) | (26) |
square#(X) | → | times#(X,X) | (27) |
2ndsneg#(s(N),cons(X,Z)) | → | 2ndsneg#(s(N),cons2(X,activate(Z))) | (28) |
plus#(s(X),Y) | → | plus#(X,Y) | (29) |
2ndspos#(s(N),cons2(X,cons(Y,Z))) | → | activate#(Z) | (30) |
times#(s(X),Y) | → | plus#(Y,times(X,Y)) | (31) |
The dependency pairs are split into 3 components.
2ndspos#(s(N),cons2(X,cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (23) |
2ndsneg#(s(N),cons(X,Z)) | → | 2ndsneg#(s(N),cons2(X,activate(Z))) | (28) |
2ndspos#(s(N),cons(X,Z)) | → | 2ndspos#(s(N),cons2(X,activate(Z))) | (20) |
2ndsneg#(s(N),cons2(X,cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (18) |
[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)] | = | 0 |
[square#(x1)] | = | 0 |
[pi(x1)] | = | 0 |
[rcons(x1, x2)] | = | 0 |
[times#(x1, x2)] | = | 0 |
[0] | = | 0 |
[from(x1)] | = | 2 |
[times(x1, x2)] | = | 0 |
[2ndsneg(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 0 |
[2ndspos#(x1, x2)] | = | x1 + 0 |
[cons2(x1, x2)] | = | x2 + 0 |
[from#(x1)] | = | 0 |
[cons(x1, x2)] | = | x1 + x2 + 1 |
[pi#(x1)] | = | 0 |
[2ndsneg#(x1, x2)] | = | x1 + 0 |
[posrecip(x1)] | = | 0 |
2ndspos#(s(N),cons2(X,cons(Y,Z))) | → | 2ndsneg#(N,activate(Z)) | (23) |
2ndsneg#(s(N),cons2(X,cons(Y,Z))) | → | 2ndspos#(N,activate(Z)) | (18) |
The dependency pairs are split into 0 components.
times#(s(X),Y) | → | times#(X,Y) | (26) |
[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)] | = | 0 |
[square#(x1)] | = | 0 |
[pi(x1)] | = | 0 |
[rcons(x1, x2)] | = | 0 |
[times#(x1, x2)] | = | x1 + 0 |
[0] | = | 0 |
[from(x1)] | = | 2 |
[times(x1, x2)] | = | 0 |
[2ndsneg(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 0 |
[2ndspos#(x1, x2)] | = | 0 |
[cons2(x1, x2)] | = | x2 + 0 |
[from#(x1)] | = | 0 |
[cons(x1, x2)] | = | x1 + x2 + 1 |
[pi#(x1)] | = | 0 |
[2ndsneg#(x1, x2)] | = | 0 |
[posrecip(x1)] | = | 0 |
times#(s(X),Y) | → | times#(X,Y) | (26) |
The dependency pairs are split into 0 components.
plus#(s(X),Y) | → | plus#(X,Y) | (29) |
[negrecip(x1)] | = | 0 |
[s(x1)] | = | x1 + 1 |
[2ndspos(x1, x2)] | = | 0 |
[activate(x1)] | = | 1 |
[rnil] | = | 0 |
[plus#(x1, x2)] | = | x1 + 0 |
[n__from(x1)] | = | x1 + 3 |
[square(x1)] | = | 0 |
[activate#(x1)] | = | 0 |
[square#(x1)] | = | 0 |
[pi(x1)] | = | 0 |
[rcons(x1, x2)] | = | 0 |
[times#(x1, x2)] | = | 0 |
[0] | = | 0 |
[from(x1)] | = | 2 |
[times(x1, x2)] | = | 0 |
[2ndsneg(x1, x2)] | = | 0 |
[plus(x1, x2)] | = | 0 |
[2ndspos#(x1, x2)] | = | 0 |
[cons2(x1, x2)] | = | x2 + 0 |
[from#(x1)] | = | 0 |
[cons(x1, x2)] | = | x1 + x2 + 1 |
[pi#(x1)] | = | 0 |
[2ndsneg#(x1, x2)] | = | 0 |
[posrecip(x1)] | = | 0 |
plus#(s(X),Y) | → | plus#(X,Y) | (29) |
The dependency pairs are split into 0 components.