The rewrite relation of the following TRS is considered.
*(x,+(y,z)) | → | +(*(x,y),*(x,z)) | (1) |
*(+(x,y),z) | → | +(*(x,z),*(y,z)) | (2) |
*(x,1) | → | x | (3) |
*(1,y) | → | y | (4) |
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
*#(z0,+(z1,z2)) |
*#(+(z0,z1),z2) |
*#(z0,1) |
*#(1,z0) |
*(z0,+(z1,z2)) | → | +(*(z0,z1),*(z0,z2)) | (5) |
*(+(z0,z1),z2) | → | +(*(z0,z2),*(z1,z2)) | (7) |
*(z0,1) | → | z0 | (9) |
*(1,z0) | → | z0 | (11) |
*#(+(z0,z1),z2) | → | c1(*#(z0,z2),*#(z1,z2)) | (8) |
*#(1,z0) | → | c3 | (12) |
[c(x1, x2)] | = | 1 · x1 + 0 + 1 · x2 |
[c1(x1, x2)] | = | 1 · x1 + 0 + 1 · x2 |
[c2] | = | 0 |
[c3] | = | 0 |
[*#(x1, x2)] | = | 1 · x1 + 0 + 2 · x1 · x2 |
[+(x1, x2)] | = | 2 + 1 · x1 + 1 · x2 |
[1] | = | 1 |
*#(z0,+(z1,z2)) | → | c(*#(z0,z1),*#(z0,z2)) | (6) |
*#(+(z0,z1),z2) | → | c1(*#(z0,z2),*#(z1,z2)) | (8) |
*#(z0,1) | → | c2 | (10) |
*#(1,z0) | → | c3 | (12) |
*#(z0,+(z1,z2)) | → | c(*#(z0,z1),*#(z0,z2)) | (6) |
*#(z0,1) | → | c2 | (10) |
[c(x1, x2)] | = | 1 · x1 + 0 + 1 · x2 |
[c1(x1, x2)] | = | 1 · x1 + 0 + 1 · x2 |
[c2] | = | 0 |
[c3] | = | 0 |
[*#(x1, x2)] | = | 1 · x1 + 0 + 1 · x2 · x2 + 1 · x1 · x2 + 1 · x1 · x1 + 1 · x2 · x1 · x1 + 1 · x2 · x2 · x1 |
[+(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[1] | = | 1 |
*#(z0,+(z1,z2)) | → | c(*#(z0,z1),*#(z0,z2)) | (6) |
*#(+(z0,z1),z2) | → | c1(*#(z0,z2),*#(z1,z2)) | (8) |
*#(z0,1) | → | c2 | (10) |
*#(1,z0) | → | c3 | (12) |
There are no rules in the TRS R. Hence, R/S has complexity O(1).