YES
by ttt2 (version ttt2 1.15)
The rewrite relation of the following TRS is considered.
| g(h(x0)) | → | g(f(s(x0))) |
| f(s(s(s(x0)))) | → | h(f(s(h(x0)))) |
| f(h(x0)) | → | h(f(s(h(x0)))) |
| h(x0) | → | x0 |
| f(f(s(s(x0)))) | → | s(s(s(f(f(x0))))) |
| b(a(x0)) | → | a(b(x0)) |
| a(a(a(x0))) | → | b(a(a(b(x0)))) |
| b(b(b(b(x0)))) | → | a(x0) |
| [a(x1)] | = | 7 · x1 + -∞ |
| [g(x1)] | = | 0 · x1 + -∞ |
| [f(x1)] | = | 0 · x1 + -∞ |
| [b(x1)] | = | 2 · x1 + -∞ |
| [h(x1)] | = | 0 · x1 + -∞ |
| [s(x1)] | = | 0 · x1 + -∞ |
| g(h(x0)) | → | g(f(s(x0))) |
| f(s(s(s(x0)))) | → | h(f(s(h(x0)))) |
| f(h(x0)) | → | h(f(s(h(x0)))) |
| h(x0) | → | x0 |
| f(f(s(s(x0)))) | → | s(s(s(f(f(x0))))) |
| b(a(x0)) | → | a(b(x0)) |
final states:
{14, 9, 2, 5, 1}
transitions:
| 41 | → | 25 |
| 9 | → | 11 |
| 9 | → | 10 |
| 5 | → | 8 |
| 5 | → | 4 |
| 5 | → | 10 |
| 34 | → | 25 |
| 34 | → | 35 |
| 40 | → | 25 |
| 40 | → | 41 |
| 8 | → | 5 |
| 8 | → | 16 |
| 8 | → | 24 |
| 13 | → | 44 |
| 44 | → | 25 |
| 44 | → | 45 |
| 2 | → | 6 |
| 11 | → | 34 |
| 28 | → | 11 |
| 28 | → | 27 |
| 45 | → | 25 |
| 14 | → | 15 |
| 12 | → | 40 |
| 35 | → | 25 |
| 24 | → | 25 |
| 19 | → | 1 |
| 27 | → | 11 |
| 27 | → | 28 |
| f1(17) | → | 18 |
| f1(26) | → | 27 |
| h1(40) | → | 41 |
| h1(24) | → | 25 |
| h1(44) | → | 45 |
| h1(27) | → | 28 |
| h1(34) | → | 35 |
| s0(11) | → | 12 |
| s0(6) | → | 7 |
| s0(13) | → | 9 |
| s0(2) | → | 3 |
| s0(12) | → | 13 |
| h0(2) | → | 6 |
| h0(8) | → | 5 |
| f0(7) | → | 8 |
| f0(3) | → | 4 |
| f0(10) | → | 11 |
| f0(2) | → | 10 |
| a0(15) | → | 14 |
| b0(2) | → | 15 |
| f60 | → | 2 |
| g0(4) | → | 1 |
| s1(16) | → | 17 |
| s1(25) | → | 26 |
| g1(18) | → | 19 |