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) |
f#(t,x) | → | f'#(t,g(x)) | (16) |
foldC#(t,s(n)) | → | f#(foldC(t,n),C) | (17) |
foldB#(t,s(n)) | → | foldB#(t,n) | (18) |
foldC#(t,s(n)) | → | foldC#(t,n) | (19) |
f''#(triple(a,b,c)) | → | foldC#(triple(a,b,0),c) | (20) |
f'#(triple(a,b,c),A) | → | foldB#(triple(s(a),0,c),b) | (21) |
f#(t,x) | → | g#(x) | (22) |
f'#(triple(a,b,c),B) | → | f#(triple(a,b,c),A) | (23) |
foldB#(t,s(n)) | → | f#(foldB(t,n),B) | (24) |
f'#(triple(a,b,c),A) | → | f''#(foldB(triple(s(a),0,c),b)) | (25) |
The dependency pairs are split into 1 component.
f'#(triple(a,b,c),A) | → | f''#(foldB(triple(s(a),0,c),b)) | (25) |
foldB#(t,s(n)) | → | f#(foldB(t,n),B) | (24) |
f'#(triple(a,b,c),B) | → | f#(triple(a,b,c),A) | (23) |
foldB#(t,s(n)) | → | foldB#(t,n) | (18) |
foldC#(t,s(n)) | → | f#(foldC(t,n),C) | (17) |
f'#(triple(a,b,c),A) | → | foldB#(triple(s(a),0,c),b) | (21) |
f''#(triple(a,b,c)) | → | foldC#(triple(a,b,0),c) | (20) |
foldC#(t,s(n)) | → | foldC#(t,n) | (19) |
f#(t,x) | → | f'#(t,g(x)) | (16) |
[s(x1)] | = | x1 + 23625 |
[foldC#(x1, x2)] | = | x1 + x2 + 0 |
[f'#(x1, x2)] | = | x1 + x2 + 23613 |
[triple(x1, x2, x3)] | = | x2 + x3 + 0 |
[C] | = | 4 |
[f(x1, x2)] | = | x1 + 23625 |
[B] | = | 9 |
[foldB(x1, x2)] | = | x1 + x2 + 23612 |
[0] | = | 1 |
[foldB#(x1, x2)] | = | x1 + x2 + 23615 |
[A] | = | 3 |
[f#(x1, x2)] | = | x1 + x2 + 23619 |
[g#(x1)] | = | 0 |
[f'(x1, x2)] | = | x1 + 23625 |
[foldC(x1, x2)] | = | x1 + x2 + 1 |
[g(x1)] | = | x1 + 5 |
[f''(x1)] | = | x1 + 2 |
[f''#(x1)] | = | x1 + 2 |
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'#(triple(a,b,c),A) | → | f''#(foldB(triple(s(a),0,c),b)) | (25) |
foldB#(t,s(n)) | → | foldB#(t,n) | (18) |
foldC#(t,s(n)) | → | f#(foldC(t,n),C) | (17) |
f''#(triple(a,b,c)) | → | foldC#(triple(a,b,0),c) | (20) |
foldC#(t,s(n)) | → | foldC#(t,n) | (19) |
f#(t,x) | → | f'#(t,g(x)) | (16) |
The dependency pairs are split into 0 components.