The rewrite relation of the following equational TRS is considered.
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (3) |
quot(0,s(y)) | → | 0 | (4) |
quot(s(x),s(y)) | → | s(quot(minus(x,y),s(y))) | (5) |
plus(0,y) | → | y | (6) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
app(nil,k) | → | k | (8) |
app(l,nil) | → | l | (9) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
Associative symbols: plus
Commutative symbols: plus
The following set of (strict) dependency pairs is constructed for the TRS.
minus#(s(x),s(y)) | → | minus#(x,y) | (19) |
minus#(minus(x,y),z) | → | minus#(x,plus(y,z)) | (20) |
minus#(minus(x,y),z) | → | plus#(y,z) | (21) |
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (22) |
quot#(s(x),s(y)) | → | minus#(x,y) | (23) |
plus#(s(x),y) | → | plus#(x,y) | (24) |
app#(cons(x,l),k) | → | app#(l,k) | (25) |
sum#(cons(x,cons(y,l))) | → | sum#(cons(plus(x,y),l)) | (26) |
sum#(cons(x,cons(y,l))) | → | plus#(x,y) | (27) |
sum#(app(l,cons(x,cons(y,k)))) | → | sum#(app(l,sum(cons(x,cons(y,k))))) | (28) |
sum#(app(l,cons(x,cons(y,k)))) | → | app#(l,sum(cons(x,cons(y,k)))) | (29) |
sum#(app(l,cons(x,cons(y,k)))) | → | sum#(cons(x,cons(y,k))) | (30) |
plus#(plus(0,y),ext) | → | plus#(y,ext) | (31) |
plus#(plus(s(x),y),ext) | → | plus#(s(plus(x,y)),ext) | (32) |
plus#(plus(s(x),y),ext) | → | plus#(x,y) | (33) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
The dependency pairs are split into 6 components.
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (22) |
[quot#(x1, x2)] | = | 2 · x1 |
[s(x1)] | = | 2 + 3 · x1 |
[minus(x1, x2)] | = | 1 + 2 · x1 |
[plus(x1, x2)] | = | 0 |
[0] | = | 0 |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (3) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
minus(x,0) | → | x | (1) |
quot#(s(x),s(y)) | → | quot#(minus(x,y),s(y)) | (22) |
minus#(minus(x,y),z) | → | minus#(x,plus(y,z)) | (20) |
minus#(s(x),s(y)) | → | minus#(x,y) | (19) |
[plus(x1, x2)] | = | 1 · x1 + 1 · x2 |
[s(x1)] | = | 3 + 1 · x1 |
[0] | = | 0 |
[minus#(x1, x2)] | = | 3 · x1 + 2 · x2 |
[minus(x1, x2)] | = | 2 + 3 · x1 + 3 · x2 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
plus(0,y) | → | y | (6) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
plus(x,y) | → | plus(y,x) | (14) |
minus#(minus(x,y),z) | → | minus#(x,plus(y,z)) | (20) |
minus#(s(x),s(y)) | → | minus#(x,y) | (19) |
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (3) |
quot(0,s(y)) | → | 0 | (4) |
quot(s(x),s(y)) | → | s(quot(minus(x,y),s(y))) | (5) |
plus(0,y) | → | y | (6) |
app(nil,k) | → | k | (8) |
app(l,nil) | → | l | (9) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
sum#(app(l,cons(x,cons(y,k)))) | → | sum#(app(l,sum(cons(x,cons(y,k))))) | (28) |
[plus(x1, x2)] | = | 1 · x1 + 1 · x2 |
[s(x1)] | = | 1 + 1 · x1 |
[app(x1, x2)] | = | 2 · x1 + 1 · x2 |
[cons(x1, x2)] | = | 1 · x1 + 1 · x2 |
[sum(x1)] | = | 1 · x1 |
[nil] | = | 0 |
[0] | = | 0 |
[sum#(x1)] | = | 1 · x1 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
app(nil,k) | → | k | (8) |
app(l,nil) | → | l | (9) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
plus(0,y) | → | y | (6) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
plus(x,y) | → | plus(y,x) | (14) |
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (3) |
quot(0,s(y)) | → | 0 | (4) |
quot(s(x),s(y)) | → | s(quot(minus(x,y),s(y))) | (5) |
plus(0,y) | → | y | (6) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
[plus(x1, x2)] | = | 1 · x1 + 1 · x2 |
[s(x1)] | = | 1 · x1 |
[app(x1, x2)] | = | 2 · x1 + 2 · x2 |
[cons(x1, x2)] | = | 1 · x1 + 1 · x2 |
[sum(x1)] | = | 1 · x1 |
[nil] | = | 2 |
[sum#(x1)] | = | 2 · x1 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
app(nil,k) | → | k | (8) |
app(l,nil) | → | l | (9) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
plus(x,y) | → | plus(y,x) | (14) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
app(nil,k) | → | k | (8) |
app(l,nil) | → | l | (9) |
[plus(x1, x2)] | = | 1 · x1 + 1 · x2 |
[s(x1)] | = | 1 · x1 |
[app(x1, x2)] | = | 1 · x1 + 2 · x2 |
[cons(x1, x2)] | = | 2 + 1 · x1 + 1 · x2 |
[sum(x1)] | = | 1 · x1 |
[nil] | = | 0 |
[sum#(x1)] | = | 2 · x1 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
plus(x,y) | → | plus(y,x) | (14) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
[app(x1, x2)] | = | 2 · x1 + 2 · x2 |
[cons(x1, x2)] | = | 2 · x1 + 1 · x2 |
[sum(x1)] | = | 1 · x1 |
[nil] | = | 0 |
[sum#(x1)] | = | 2 · x1 |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
[plus(x1, x2)] | = | 1 · x1 + 1 · x2 |
[app(x1, x2)] | = | 2 · x1 + 2 · x2 |
[cons(x1, x2)] | = | 2 + 2 · x1 + 1 · x2 |
[sum(x1)] | = | 1 · x1 |
[nil] | = | 0 |
[sum#(x1)] | = | 2 · x1 |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
plus(x,y) | → | plus(y,x) | (14) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
The dependency pairs are split into 0 components.
sum#(cons(x,cons(y,l))) | → | sum#(cons(plus(x,y),l)) | (26) |
[plus(x1, x2)] | = | 1 · x1 + 1 · x2 |
[s(x1)] | = | 3 + 1 · x1 |
[0] | = | 0 |
[sum#(x1)] | = | 1 · x1 |
[cons(x1, x2)] | = | 2 + 1 · x1 + 1 · x2 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
plus(0,y) | → | y | (6) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
plus(x,y) | → | plus(y,x) | (14) |
sum#(cons(x,cons(y,l))) | → | sum#(cons(plus(x,y),l)) | (26) |
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (3) |
quot(0,s(y)) | → | 0 | (4) |
quot(s(x),s(y)) | → | s(quot(minus(x,y),s(y))) | (5) |
plus(0,y) | → | y | (6) |
app(nil,k) | → | k | (8) |
app(l,nil) | → | l | (9) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
plus#(plus(0,y),ext) | → | plus#(y,ext) | (31) |
plus#(s(x),y) | → | plus#(x,y) | (24) |
plus#(plus(s(x),y),ext) | → | plus#(s(plus(x,y)),ext) | (32) |
plus#(plus(s(x),y),ext) | → | plus#(x,y) | (33) |
plus#(plus(x,y),z) | → | plus#(y,z) | (18) |
plus#(x,y) | → | plus#(y,x) | (16) |
plus#(plus(x,y),z) | → | plus#(x,plus(y,z)) | (17) |
[plus#(x1, x2)] | = | 2 · x1 + 2 · x2 |
[plus(x1, x2)] | = | 1 · x1 + 1 · x2 |
[s(x1)] | = | 1 · x1 |
[0] | = | 0 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
plus(0,y) | → | y | (6) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
plus(x,y) | → | plus(y,x) | (14) |
plus#(plus(0,y),ext) | → | plus#(y,ext) | (31) |
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (3) |
quot(0,s(y)) | → | 0 | (4) |
quot(s(x),s(y)) | → | s(quot(minus(x,y),s(y))) | (5) |
plus(0,y) | → | y | (6) |
app(nil,k) | → | k | (8) |
app(l,nil) | → | l | (9) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
[plus#(x1, x2)] | = | 2 · x1 + 2 · x2 |
[plus(x1, x2)] | = | 1 · x1 + 1 · x2 |
[s(x1)] | = | 1 + 1 · x1 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
plus(x,y) | → | plus(y,x) | (14) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
plus#(s(x),y) | → | plus#(x,y) | (24) |
plus#(plus(s(x),y),ext) | → | plus#(x,y) | (33) |
[plus#(x1, x2)] | = | 2 · x1 + 2 · x2 |
[plus(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[s(x1)] | = | 1 · x1 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
plus(x,y) | → | plus(y,x) | (14) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
plus#(plus(x,y),z) | → | plus#(y,z) | (18) |
[plus#(x1, x2)] | = | 1 · x1 + 1 · x2 |
[plus(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[s(x1)] | = | 0 |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
plus(plus(x,y),z) | → | plus(x,plus(y,z)) | (15) |
plus(x,y) | → | plus(y,x) | (14) |
plus#(plus(s(x),y),ext) | → | plus#(s(plus(x,y)),ext) | (32) |
app#(cons(x,l),k) | → | app#(l,k) | (25) |
[app#(x1, x2)] | = | 3 · x1 + 1 · x2 |
[cons(x1, x2)] | = | 1 · x1 + 3 · x2 |
app#(cons(x,l),k) | → | app#(l,k) | (25) |
minus(x,0) | → | x | (1) |
minus(s(x),s(y)) | → | minus(x,y) | (2) |
minus(minus(x,y),z) | → | minus(x,plus(y,z)) | (3) |
quot(0,s(y)) | → | 0 | (4) |
quot(s(x),s(y)) | → | s(quot(minus(x,y),s(y))) | (5) |
plus(0,y) | → | y | (6) |
plus(s(x),y) | → | s(plus(x,y)) | (7) |
app(nil,k) | → | k | (8) |
app(l,nil) | → | l | (9) |
app(cons(x,l),k) | → | cons(x,app(l,k)) | (10) |
sum(cons(x,nil)) | → | cons(x,nil) | (11) |
sum(cons(x,cons(y,l))) | → | sum(cons(plus(x,y),l)) | (12) |
sum(app(l,cons(x,cons(y,k)))) | → | sum(app(l,sum(cons(x,cons(y,k))))) | (13) |
plus(plus(0,y),ext) | → | plus(y,ext) | (34) |
plus(plus(s(x),y),ext) | → | plus(s(plus(x,y)),ext) | (35) |