The rewrite relation of the following TRS is considered.
| f(g(i(a,b,b'),c),d) | → | if(e,f(.(b,c),d'),f(.(b',c),d')) | (1) |
| f(g(h(a,b),c),d) | → | if(e,f(.(b,g(h(a,b),c)),d),f(c,d')) | (2) |
| [f(x1, x2)] | = | 2 · x1 + 2 · x2 |
| [g(x1, x2)] | = | 2 · x1 + 1 · x2 |
| [i(x1, x2, x3)] | = | 1 + 1 · x1 + 2 · x2 + 1 · x3 |
| [a] | = | 0 |
| [b] | = | 0 |
| [b'] | = | 0 |
| [c] | = | 0 |
| [d] | = | 0 |
| [if(x1, x2, x3)] | = | 2 · x1 + 2 · x2 + 2 · x3 |
| [e] | = | 0 |
| [.(x1, x2)] | = | 1 · x1 + 2 · x2 |
| [d'] | = | 0 |
| [h(x1, x2)] | = | 2 · x1 + 1 · x2 |
| f(g(i(a,b,b'),c),d) | → | if(e,f(.(b,c),d'),f(.(b',c),d')) | (1) |
The TRS is overlay and locally confluent:
10Hence, it suffices to show innermost termination in the following.
| f#(g(h(a,b),c),d) | → | f#(.(b,g(h(a,b),c)),d) | (3) |
| f#(g(h(a,b),c),d) | → | f#(c,d') | (4) |
The dependency pairs are split into 0 components.