The rewrite relation of the following TRS is considered.
fst(0,Z) | → | nil | (1) |
fst(s(X),cons(Y,Z)) | → | cons(Y,n__fst(activate(X),activate(Z))) | (2) |
from(X) | → | cons(X,n__from(s(X))) | (3) |
add(0,X) | → | X | (4) |
add(s(X),Y) | → | s(n__add(activate(X),Y)) | (5) |
len(nil) | → | 0 | (6) |
len(cons(X,Z)) | → | s(n__len(activate(Z))) | (7) |
fst(X1,X2) | → | n__fst(X1,X2) | (8) |
from(X) | → | n__from(X) | (9) |
add(X1,X2) | → | n__add(X1,X2) | (10) |
len(X) | → | n__len(X) | (11) |
activate(n__fst(X1,X2)) | → | fst(X1,X2) | (12) |
activate(n__from(X)) | → | from(X) | (13) |
activate(n__add(X1,X2)) | → | add(X1,X2) | (14) |
activate(n__len(X)) | → | len(X) | (15) |
activate(X) | → | X | (16) |
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
fst#(0,z0) |
fst#(s(z0),cons(z1,z2)) |
fst#(z0,z1) |
from#(z0) |
from#(z0) |
add#(0,z0) |
add#(s(z0),z1) |
add#(z0,z1) |
len#(nil) |
len#(cons(z0,z1)) |
len#(z0) |
activate#(n__fst(z0,z1)) |
activate#(n__from(z0)) |
activate#(n__add(z0,z1)) |
activate#(n__len(z0)) |
activate#(z0) |
fst(0,z0) | → | nil | (17) |
fst(s(z0),cons(z1,z2)) | → | cons(z1,n__fst(activate(z0),activate(z2))) | (19) |
fst(z0,z1) | → | n__fst(z0,z1) | (21) |
from(z0) | → | cons(z0,n__from(s(z0))) | (23) |
from(z0) | → | n__from(z0) | (25) |
add(0,z0) | → | z0 | (27) |
add(s(z0),z1) | → | s(n__add(activate(z0),z1)) | (29) |
add(z0,z1) | → | n__add(z0,z1) | (31) |
len(nil) | → | 0 | (6) |
len(cons(z0,z1)) | → | s(n__len(activate(z1))) | (34) |
len(z0) | → | n__len(z0) | (36) |
activate(n__fst(z0,z1)) | → | fst(z0,z1) | (38) |
activate(n__from(z0)) | → | from(z0) | (40) |
activate(n__add(z0,z1)) | → | add(z0,z1) | (42) |
activate(n__len(z0)) | → | len(z0) | (44) |
activate(z0) | → | z0 | (46) |
fst#(0,z0) | → | c | (18) |
fst#(s(z0),cons(z1,z2)) | → | c1(activate#(z0),activate#(z2)) | (20) |
fst#(z0,z1) | → | c2 | (22) |
from#(z0) | → | c3 | (24) |
from#(z0) | → | c4 | (26) |
add#(0,z0) | → | c5 | (28) |
add#(s(z0),z1) | → | c6(activate#(z0)) | (30) |
add#(z0,z1) | → | c7 | (32) |
len#(nil) | → | c8 | (33) |
len#(cons(z0,z1)) | → | c9(activate#(z1)) | (35) |
len#(z0) | → | c10 | (37) |
activate#(n__fst(z0,z1)) | → | c11(fst#(z0,z1)) | (39) |
activate#(n__from(z0)) | → | c12(from#(z0)) | (41) |
activate#(n__add(z0,z1)) | → | c13(add#(z0,z1)) | (43) |
activate#(n__len(z0)) | → | c14(len#(z0)) | (45) |
activate#(z0) | → | c15 | (47) |
[c] | = | 0 |
[c1(x1, x2)] | = | 1 · x1 + 0 + 1 · x2 |
[c2] | = | 0 |
[c3] | = | 0 |
[c4] | = | 0 |
[c5] | = | 0 |
[c6(x1)] | = | 1 · x1 + 0 |
[c7] | = | 0 |
[c8] | = | 0 |
[c9(x1)] | = | 1 · x1 + 0 |
[c10] | = | 0 |
[c11(x1)] | = | 1 · x1 + 0 |
[c12(x1)] | = | 1 · x1 + 0 |
[c13(x1)] | = | 1 · x1 + 0 |
[c14(x1)] | = | 1 · x1 + 0 |
[c15] | = | 0 |
[fst#(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[from#(x1)] | = | 1 + 1 · x1 |
[add#(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[len#(x1)] | = | 1 + 1 · x1 |
[activate#(x1)] | = | 1 + 1 · x1 |
[0] | = | 1 |
[s(x1)] | = | 1 + 1 · x1 |
[cons(x1, x2)] | = | 1 + 1 · x2 |
[nil] | = | 1 |
[n__fst(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[n__from(x1)] | = | 1 + 1 · x1 |
[n__add(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[n__len(x1)] | = | 1 + 1 · x1 |
fst#(0,z0) | → | c | (18) |
fst#(s(z0),cons(z1,z2)) | → | c1(activate#(z0),activate#(z2)) | (20) |
fst#(z0,z1) | → | c2 | (22) |
from#(z0) | → | c3 | (24) |
from#(z0) | → | c4 | (26) |
add#(0,z0) | → | c5 | (28) |
add#(s(z0),z1) | → | c6(activate#(z0)) | (30) |
add#(z0,z1) | → | c7 | (32) |
len#(nil) | → | c8 | (33) |
len#(cons(z0,z1)) | → | c9(activate#(z1)) | (35) |
len#(z0) | → | c10 | (37) |
activate#(n__fst(z0,z1)) | → | c11(fst#(z0,z1)) | (39) |
activate#(n__from(z0)) | → | c12(from#(z0)) | (41) |
activate#(n__add(z0,z1)) | → | c13(add#(z0,z1)) | (43) |
activate#(n__len(z0)) | → | c14(len#(z0)) | (45) |
activate#(z0) | → | c15 | (47) |
There are no rules in the TRS R. Hence, R/S has complexity O(1).