The rewrite relation of the following TRS is considered.
g(A) | → | A | (1) |
g(B) | → | A | (2) |
g(B) | → | B | (3) |
g(C) | → | A | (4) |
g(C) | → | B | (5) |
g(C) | → | C | (6) |
foldB(t,0) | → | t | (7) |
foldB(t,s(n)) | → | f(foldB(t,n),B) | (8) |
foldC(t,0) | → | t | (9) |
foldC(t,s(n)) | → | f(foldC(t,n),C) | (10) |
f(t,x) | → | f'(t,g(x)) | (11) |
f'(triple(a,b,c),C) | → | triple(a,b,s(c)) | (12) |
f'(triple(a,b,c),B) | → | f(triple(a,b,c),A) | (13) |
f'(triple(a,b,c),A) | → | f''(foldB(triple(s(a),0,c),b)) | (14) |
f''(triple(a,b,c)) | → | foldC(triple(a,b,0),c) | (15) |
fold(t,x,0) | → | t | (16) |
fold(t,x,s(n)) | → | f(fold(t,x,n),x) | (17) |
f#(t,x) | → | f'#(t,g(x)) | (18) |
foldC#(t,s(n)) | → | f#(foldC(t,n),C) | (19) |
fold#(t,x,s(n)) | → | fold#(t,x,n) | (20) |
foldB#(t,s(n)) | → | foldB#(t,n) | (21) |
f''#(triple(a,b,c)) | → | foldC#(triple(a,b,0),c) | (22) |
foldC#(t,s(n)) | → | foldC#(t,n) | (23) |
foldB#(t,s(n)) | → | f#(foldB(t,n),B) | (24) |
f'#(triple(a,b,c),A) | → | foldB#(triple(s(a),0,c),b) | (25) |
f#(t,x) | → | g#(x) | (26) |
f'#(triple(a,b,c),B) | → | f#(triple(a,b,c),A) | (27) |
fold#(t,x,s(n)) | → | f#(fold(t,x,n),x) | (28) |
f'#(triple(a,b,c),A) | → | f''#(foldB(triple(s(a),0,c),b)) | (29) |
The dependency pairs are split into 2 components.
fold#(t,x,s(n)) | → | fold#(t,x,n) | (20) |
[s(x1)] | = | x1 + 1 |
[foldC#(x1, x2)] | = | 0 |
[f'#(x1, x2)] | = | 0 |
[triple(x1, x2, x3)] | = | 0 |
[C] | = | 0 |
[f(x1, x2)] | = | 0 |
[B] | = | 0 |
[foldB(x1, x2)] | = | 0 |
[fold#(x1, x2, x3)] | = | x3 + 0 |
[0] | = | 0 |
[foldB#(x1, x2)] | = | 0 |
[A] | = | 0 |
[f#(x1, x2)] | = | 0 |
[g#(x1)] | = | 0 |
[fold(x1, x2, x3)] | = | 0 |
[f'(x1, x2)] | = | 0 |
[foldC(x1, x2)] | = | 0 |
[g(x1)] | = | 0 |
[f''(x1)] | = | 0 |
[f''#(x1)] | = | 0 |
fold#(t,x,s(n)) | → | fold#(t,x,n) | (20) |
The dependency pairs are split into 0 components.
f'#(triple(a,b,c),A) | → | f''#(foldB(triple(s(a),0,c),b)) | (29) |
f''#(triple(a,b,c)) | → | foldC#(triple(a,b,0),c) | (22) |
f'#(triple(a,b,c),B) | → | f#(triple(a,b,c),A) | (27) |
foldB#(t,s(n)) | → | foldB#(t,n) | (21) |
foldC#(t,s(n)) | → | f#(foldC(t,n),C) | (19) |
f'#(triple(a,b,c),A) | → | foldB#(triple(s(a),0,c),b) | (25) |
foldB#(t,s(n)) | → | f#(foldB(t,n),B) | (24) |
foldC#(t,s(n)) | → | foldC#(t,n) | (23) |
f#(t,x) | → | f'#(t,g(x)) | (18) |
[s(x1)] | = | x1 + 145146 |
[foldC#(x1, x2)] | = | x1 + x2 + 0 |
[f'#(x1, x2)] | = | x1 + 119705 |
[triple(x1, x2, x3)] | = | x2 + x3 + 1 |
[C] | = | 1 |
[f(x1, x2)] | = | x1 + 145146 |
[B] | = | 3 |
[foldB(x1, x2)] | = | x1 + x2 + 22541 |
[fold#(x1, x2, x3)] | = | 0 |
[0] | = | 48581 |
[foldB#(x1, x2)] | = | x1 + x2 + 71123 |
[A] | = | 5 |
[f#(x1, x2)] | = | x1 + 119705 |
[g#(x1)] | = | 0 |
[fold(x1, x2, x3)] | = | 0 |
[f'(x1, x2)] | = | x1 + 145146 |
[foldC(x1, x2)] | = | x1 + x2 + 25440 |
[g(x1)] | = | x1 + 1 |
[f''(x1)] | = | x1 + 74024 |
[f''#(x1)] | = | x1 + 48582 |
f''(triple(a,b,c)) | → | foldC(triple(a,b,0),c) | (15) |
foldB(t,s(n)) | → | f(foldB(t,n),B) | (8) |
foldC(t,s(n)) | → | f(foldC(t,n),C) | (10) |
foldB(t,0) | → | t | (7) |
f'(triple(a,b,c),A) | → | f''(foldB(triple(s(a),0,c),b)) | (14) |
f'(triple(a,b,c),C) | → | triple(a,b,s(c)) | (12) |
f(t,x) | → | f'(t,g(x)) | (11) |
foldC(t,0) | → | t | (9) |
f'(triple(a,b,c),B) | → | f(triple(a,b,c),A) | (13) |
f'#(triple(a,b,c),A) | → | f''#(foldB(triple(s(a),0,c),b)) | (29) |
f''#(triple(a,b,c)) | → | foldC#(triple(a,b,0),c) | (22) |
foldB#(t,s(n)) | → | foldB#(t,n) | (21) |
foldC#(t,s(n)) | → | f#(foldC(t,n),C) | (19) |
f'#(triple(a,b,c),A) | → | foldB#(triple(s(a),0,c),b) | (25) |
foldB#(t,s(n)) | → | f#(foldB(t,n),B) | (24) |
foldC#(t,s(n)) | → | foldC#(t,n) | (23) |
The dependency pairs are split into 1 component.
f#(t,x) | → | f'#(t,g(x)) | (18) |
f'#(triple(a,b,c),B) | → | f#(triple(a,b,c),A) | (27) |
[s(x1)] | = | x1 + 1 |
[foldC#(x1, x2)] | = | 0 |
[f'#(x1, x2)] | = | x2 + 119705 |
[triple(x1, x2, x3)] | = | 1 |
[C] | = | 31252 |
[f(x1, x2)] | = | x1 + 0 |
[B] | = | 54889 |
[foldB(x1, x2)] | = | x1 + x2 + 39787 |
[fold#(x1, x2, x3)] | = | 0 |
[0] | = | 12237 |
[foldB#(x1, x2)] | = | 71123 |
[A] | = | 31250 |
[f#(x1, x2)] | = | x2 + 143343 |
[g#(x1)] | = | 0 |
[fold(x1, x2, x3)] | = | 0 |
[f'(x1, x2)] | = | x1 + 0 |
[foldC(x1, x2)] | = | x1 + 0 |
[g(x1)] | = | x1 + 23637 |
[f''(x1)] | = | 1 |
[f''#(x1)] | = | x1 + 48582 |
g(C) | → | A | (4) |
f''(triple(a,b,c)) | → | foldC(triple(a,b,0),c) | (15) |
foldB(t,s(n)) | → | f(foldB(t,n),B) | (8) |
g(A) | → | A | (1) |
g(B) | → | B | (3) |
g(C) | → | B | (5) |
foldC(t,s(n)) | → | f(foldC(t,n),C) | (10) |
foldB(t,0) | → | t | (7) |
f'(triple(a,b,c),A) | → | f''(foldB(triple(s(a),0,c),b)) | (14) |
f'(triple(a,b,c),C) | → | triple(a,b,s(c)) | (12) |
f(t,x) | → | f'(t,g(x)) | (11) |
foldC(t,0) | → | t | (9) |
f'(triple(a,b,c),B) | → | f(triple(a,b,c),A) | (13) |
g(C) | → | C | (6) |
g(B) | → | A | (2) |
f#(t,x) | → | f'#(t,g(x)) | (18) |
f'#(triple(a,b,c),B) | → | f#(triple(a,b,c),A) | (27) |
The dependency pairs are split into 0 components.