The rewrite relation of the following TRS is considered.
| half(0) | → | 0 | (1) |
| half(s(s(x))) | → | s(half(x)) | (2) |
| log(s(0)) | → | 0 | (3) |
| log(s(s(x))) | → | s(log(s(half(x)))) | (4) |
| [half(x1)] | = | 1 · x1 |
| [0] | = | 0 |
| [s(x1)] | = | 1 · x1 + 1 |
| [log(x1)] | = | 1 · x1 |
| half(s(s(x))) | → | s(half(x)) | (2) |
| log(s(0)) | → | 0 | (3) |
The TRS is overlay and locally confluent:
10Hence, it suffices to show innermost termination in the following.
| log#(s(s(x))) | → | log#(s(half(x))) | (5) |
| log#(s(s(x))) | → | half#(x) | (6) |
The dependency pairs are split into 0 components.