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