YES
by ttt2 (version ttt2 1.15)
The rewrite relation of the following TRS is considered.
| Begin(a(a(x0))) | → | Wait(Right1(x0)) |
| Begin(a(x0)) | → | Wait(Right2(x0)) |
| Begin(b(b(x0))) | → | Wait(Right3(x0)) |
| Begin(b(x0)) | → | Wait(Right4(x0)) |
| Right1(a(End(x0))) | → | Left(b(b(End(x0)))) |
| Right2(a(a(End(x0)))) | → | Left(b(b(End(x0)))) |
| Right3(b(End(x0))) | → | Left(c(d(End(x0)))) |
| Right4(b(b(End(x0)))) | → | Left(c(d(End(x0)))) |
| Right1(a(x0)) | → | Aa(Right1(x0)) |
| Right2(a(x0)) | → | Aa(Right2(x0)) |
| Right3(a(x0)) | → | Aa(Right3(x0)) |
| Right4(a(x0)) | → | Aa(Right4(x0)) |
| Right1(b(x0)) | → | Ab(Right1(x0)) |
| Right2(b(x0)) | → | Ab(Right2(x0)) |
| Right3(b(x0)) | → | Ab(Right3(x0)) |
| Right4(b(x0)) | → | Ab(Right4(x0)) |
| Right1(c(x0)) | → | Ac(Right1(x0)) |
| Right2(c(x0)) | → | Ac(Right2(x0)) |
| Right3(c(x0)) | → | Ac(Right3(x0)) |
| Right4(c(x0)) | → | Ac(Right4(x0)) |
| Right1(d(x0)) | → | Ad(Right1(x0)) |
| Right2(d(x0)) | → | Ad(Right2(x0)) |
| Right3(d(x0)) | → | Ad(Right3(x0)) |
| Right4(d(x0)) | → | Ad(Right4(x0)) |
| Aa(Left(x0)) | → | Left(a(x0)) |
| Ab(Left(x0)) | → | Left(b(x0)) |
| Ac(Left(x0)) | → | Left(c(x0)) |
| Ad(Left(x0)) | → | Left(d(x0)) |
| Wait(Left(x0)) | → | Begin(x0) |
| a(a(a(x0))) | → | b(b(x0)) |
| b(b(b(x0))) | → | c(d(x0)) |
| c(x0) | → | a(a(x0)) |
| d(x0) | → | c(x0) |
| [Right2(x1)] | = | 7 · x1 + -∞ |
| [Ad(x1)] | = | 6 · x1 + -∞ |
| [End(x1)] | = | 10 · x1 + -∞ |
| [Begin(x1)] | = | 4 · x1 + -∞ |
| [Wait(x1)] | = | 0 · x1 + -∞ |
| [b(x1)] | = | 4 · x1 + -∞ |
| [d(x1)] | = | 6 · x1 + -∞ |
| [a(x1)] | = | 3 · x1 + -∞ |
| [Right4(x1)] | = | 8 · x1 + -∞ |
| [Ac(x1)] | = | 6 · x1 + -∞ |
| [Aa(x1)] | = | 3 · x1 + -∞ |
| [c(x1)] | = | 6 · x1 + -∞ |
| [Left(x1)] | = | 4 · x1 + -∞ |
| [Ab(x1)] | = | 4 · x1 + -∞ |
| [Right3(x1)] | = | 12 · x1 + -∞ |
| [Right1(x1)] | = | 10 · x1 + -∞ |
| Begin(a(a(x0))) | → | Wait(Right1(x0)) |
| Begin(a(x0)) | → | Wait(Right2(x0)) |
| Begin(b(b(x0))) | → | Wait(Right3(x0)) |
| Begin(b(x0)) | → | Wait(Right4(x0)) |
| Right3(b(End(x0))) | → | Left(c(d(End(x0)))) |
| Right4(b(b(End(x0)))) | → | Left(c(d(End(x0)))) |
| Right1(a(x0)) | → | Aa(Right1(x0)) |
| Right2(a(x0)) | → | Aa(Right2(x0)) |
| Right3(a(x0)) | → | Aa(Right3(x0)) |
| Right4(a(x0)) | → | Aa(Right4(x0)) |
| Right1(b(x0)) | → | Ab(Right1(x0)) |
| Right2(b(x0)) | → | Ab(Right2(x0)) |
| Right3(b(x0)) | → | Ab(Right3(x0)) |
| Right4(b(x0)) | → | Ab(Right4(x0)) |
| Right1(c(x0)) | → | Ac(Right1(x0)) |
| Right2(c(x0)) | → | Ac(Right2(x0)) |
| Right3(c(x0)) | → | Ac(Right3(x0)) |
| Right4(c(x0)) | → | Ac(Right4(x0)) |
| Right1(d(x0)) | → | Ad(Right1(x0)) |
| Right2(d(x0)) | → | Ad(Right2(x0)) |
| Right3(d(x0)) | → | Ad(Right3(x0)) |
| Right4(d(x0)) | → | Ad(Right4(x0)) |
| Aa(Left(x0)) | → | Left(a(x0)) |
| Ab(Left(x0)) | → | Left(b(x0)) |
| Ac(Left(x0)) | → | Left(c(x0)) |
| Ad(Left(x0)) | → | Left(d(x0)) |
| Wait(Left(x0)) | → | Begin(x0) |
| b(b(b(x0))) | → | c(d(x0)) |
| c(x0) | → | a(a(x0)) |
| d(x0) | → | c(x0) |
| [Right2(x1)] | = | 0 · x1 + -∞ |
| [Ad(x1)] | = | 0 · x1 + -∞ |
| [End(x1)] | = | 0 · x1 + -∞ |
| [Begin(x1)] | = | 1 · x1 + -∞ |
| [Wait(x1)] | = | 0 · x1 + -∞ |
| [b(x1)] | = | 0 · x1 + -∞ |
| [d(x1)] | = | 0 · x1 + -∞ |
| [a(x1)] | = | 0 · x1 + -∞ |
| [Right4(x1)] | = | 1 · x1 + -∞ |
| [Ac(x1)] | = | 0 · x1 + -∞ |
| [Aa(x1)] | = | 0 · x1 + -∞ |
| [c(x1)] | = | 0 · x1 + -∞ |
| [Left(x1)] | = | 1 · x1 + -∞ |
| [Ab(x1)] | = | 0 · x1 + -∞ |
| [Right3(x1)] | = | 1 · x1 + -∞ |
| [Right1(x1)] | = | 0 · x1 + -∞ |
| Begin(b(b(x0))) | → | Wait(Right3(x0)) |
| Begin(b(x0)) | → | Wait(Right4(x0)) |
| Right3(b(End(x0))) | → | Left(c(d(End(x0)))) |
| Right4(b(b(End(x0)))) | → | Left(c(d(End(x0)))) |
| Right1(a(x0)) | → | Aa(Right1(x0)) |
| Right2(a(x0)) | → | Aa(Right2(x0)) |
| Right3(a(x0)) | → | Aa(Right3(x0)) |
| Right4(a(x0)) | → | Aa(Right4(x0)) |
| Right1(b(x0)) | → | Ab(Right1(x0)) |
| Right2(b(x0)) | → | Ab(Right2(x0)) |
| Right3(b(x0)) | → | Ab(Right3(x0)) |
| Right4(b(x0)) | → | Ab(Right4(x0)) |
| Right1(c(x0)) | → | Ac(Right1(x0)) |
| Right2(c(x0)) | → | Ac(Right2(x0)) |
| Right3(c(x0)) | → | Ac(Right3(x0)) |
| Right4(c(x0)) | → | Ac(Right4(x0)) |
| Right1(d(x0)) | → | Ad(Right1(x0)) |
| Right2(d(x0)) | → | Ad(Right2(x0)) |
| Right3(d(x0)) | → | Ad(Right3(x0)) |
| Right4(d(x0)) | → | Ad(Right4(x0)) |
| Aa(Left(x0)) | → | Left(a(x0)) |
| Ab(Left(x0)) | → | Left(b(x0)) |
| Ac(Left(x0)) | → | Left(c(x0)) |
| Ad(Left(x0)) | → | Left(d(x0)) |
| Wait(Left(x0)) | → | Begin(x0) |
| b(b(b(x0))) | → | c(d(x0)) |
| c(x0) | → | a(a(x0)) |
| d(x0) | → | c(x0) |
| [Right2(x1)] | = | 2 · x1 + -∞ |
| [Ad(x1)] | = | 2 · x1 + -∞ |
| [End(x1)] | = | 5 · x1 + -∞ |
| [Begin(x1)] | = | 2 · x1 + -∞ |
| [Wait(x1)] | = | 2 · x1 + -∞ |
| [b(x1)] | = | 1 · x1 + -∞ |
| [d(x1)] | = | 2 · x1 + -∞ |
| [a(x1)] | = | 0 · x1 + -∞ |
| [Right4(x1)] | = | 0 · x1 + -∞ |
| [Ac(x1)] | = | 0 · x1 + -∞ |
| [Aa(x1)] | = | 0 · x1 + -∞ |
| [c(x1)] | = | 0 · x1 + -∞ |
| [Left(x1)] | = | 0 · x1 + -∞ |
| [Ab(x1)] | = | 1 · x1 + -∞ |
| [Right3(x1)] | = | 1 · x1 + -∞ |
| [Right1(x1)] | = | 0 · x1 + -∞ |
| Right3(b(End(x0))) | → | Left(c(d(End(x0)))) |
| Right4(b(b(End(x0)))) | → | Left(c(d(End(x0)))) |
| Right1(a(x0)) | → | Aa(Right1(x0)) |
| Right2(a(x0)) | → | Aa(Right2(x0)) |
| Right3(a(x0)) | → | Aa(Right3(x0)) |
| Right4(a(x0)) | → | Aa(Right4(x0)) |
| Right1(b(x0)) | → | Ab(Right1(x0)) |
| Right2(b(x0)) | → | Ab(Right2(x0)) |
| Right3(b(x0)) | → | Ab(Right3(x0)) |
| Right4(b(x0)) | → | Ab(Right4(x0)) |
| Right1(c(x0)) | → | Ac(Right1(x0)) |
| Right2(c(x0)) | → | Ac(Right2(x0)) |
| Right3(c(x0)) | → | Ac(Right3(x0)) |
| Right4(c(x0)) | → | Ac(Right4(x0)) |
| Right1(d(x0)) | → | Ad(Right1(x0)) |
| Right2(d(x0)) | → | Ad(Right2(x0)) |
| Right3(d(x0)) | → | Ad(Right3(x0)) |
| Right4(d(x0)) | → | Ad(Right4(x0)) |
| Aa(Left(x0)) | → | Left(a(x0)) |
| Ab(Left(x0)) | → | Left(b(x0)) |
| Ac(Left(x0)) | → | Left(c(x0)) |
| Ad(Left(x0)) | → | Left(d(x0)) |
| Wait(Left(x0)) | → | Begin(x0) |
| c(x0) | → | a(a(x0)) |
| End(b(Right3(x0))) | → | End(d(c(Left(x0)))) |
| End(b(b(Right4(x0)))) | → | End(d(c(Left(x0)))) |
| a(Right1(x0)) | → | Right1(Aa(x0)) |
| a(Right2(x0)) | → | Right2(Aa(x0)) |
| a(Right3(x0)) | → | Right3(Aa(x0)) |
| a(Right4(x0)) | → | Right4(Aa(x0)) |
| b(Right1(x0)) | → | Right1(Ab(x0)) |
| b(Right2(x0)) | → | Right2(Ab(x0)) |
| b(Right3(x0)) | → | Right3(Ab(x0)) |
| b(Right4(x0)) | → | Right4(Ab(x0)) |
| c(Right1(x0)) | → | Right1(Ac(x0)) |
| c(Right2(x0)) | → | Right2(Ac(x0)) |
| c(Right3(x0)) | → | Right3(Ac(x0)) |
| c(Right4(x0)) | → | Right4(Ac(x0)) |
| d(Right1(x0)) | → | Right1(Ad(x0)) |
| d(Right2(x0)) | → | Right2(Ad(x0)) |
| d(Right3(x0)) | → | Right3(Ad(x0)) |
| d(Right4(x0)) | → | Right4(Ad(x0)) |
| Left(Aa(x0)) | → | a(Left(x0)) |
| Left(Ab(x0)) | → | b(Left(x0)) |
| Left(Ac(x0)) | → | c(Left(x0)) |
| Left(Ad(x0)) | → | d(Left(x0)) |
| Left(Wait(x0)) | → | Begin(x0) |
| c(x0) | → | a(a(x0)) |
final states:
{30, 29, 28, 4, 27, 26, 25, 24, 23, 21, 20, 19, 18, 16, 15, 14, 13, 11, 10, 9, 8, 6, 1}
transitions:
| 29 | → | 32 |
| 29 | → | 3 |
| 10 | → | 31 |
| 39 | → | 44 |
| 39 | → | 48 |
| 39 | → | 52 |
| 3 | → | 32 |
| 9 | → | 31 |
| 34 | → | 4 |
| 49 | → | 30 |
| 40 | → | 30 |
| 8 | → | 31 |
| 26 | → | 32 |
| 26 | → | 3 |
| 6 | → | 31 |
| 53 | → | 30 |
| 4 | → | 32 |
| 4 | → | 3 |
| 28 | → | 32 |
| 28 | → | 3 |
| 45 | → | 30 |
| 7 | → | 38 |
| 27 | → | 32 |
| 27 | → | 3 |
| Right10(17) | → | 16 |
| Right10(22) | → | 21 |
| Right10(7) | → | 6 |
| Right10(12) | → | 11 |
| Begin0(2) | → | 29 |
| End0(5) | → | 1 |
| d0(4) | → | 5 |
| d0(3) | → | 28 |
| f160 | → | 2 |
| Ac0(2) | → | 17 |
| Right30(12) | → | 14 |
| Right30(22) | → | 24 |
| Right30(17) | → | 19 |
| Right30(7) | → | 9 |
| Aa0(2) | → | 7 |
| a0(3) | → | 26 |
| a0(2) | → | 31 |
| a0(31) | → | 30 |
| Right20(22) | → | 23 |
| Right20(7) | → | 8 |
| Right20(12) | → | 13 |
| Right20(17) | → | 18 |
| Left0(2) | → | 3 |
| a1(33) | → | 34 |
| a1(32) | → | 33 |
| Right31(48) | → | 49 |
| Right21(44) | → | 45 |
| Ab0(2) | → | 12 |
| Right40(17) | → | 20 |
| Right40(22) | → | 25 |
| Right40(7) | → | 10 |
| Right40(12) | → | 15 |
| Right41(52) | → | 53 |
| b0(3) | → | 27 |
| Right11(39) | → | 40 |
| Aa1(38) | → | 39 |
| Ad0(2) | → | 22 |
| c0(3) | → | 4 |