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