YES
by ttt2 (version ttt2 1.15)
The rewrite relation of the following TRS is considered.
| foo(0(x0)) | → | 0(s(p(p(p(s(s(s(p(s(x0)))))))))) |
| foo(s(x0)) | → | p(s(p(p(p(s(s(p(s(s(p(s(foo(p(p(s(s(p(s(bar(p(p(s(s(p(s(x0)))))))))))))))))))))))))) |
| bar(0(x0)) | → | 0(p(s(s(s(x0))))) |
| bar(s(x0)) | → | p(s(p(p(s(s(foo(s(p(p(s(s(x0)))))))))))) |
| p(p(s(x0))) | → | p(x0) |
| p(s(x0)) | → | x0 |
| p(0(x0)) | → | 0(s(s(s(s(x0))))) |
| 0(foo(x0)) | → | s(p(s(s(s(p(p(p(s(0(x0)))))))))) |
| s(foo(x0)) | → | s(p(s(s(p(p(bar(s(p(s(s(p(p(foo(s(p(s(s(p(s(s(p(p(p(s(p(x0)))))))))))))))))))))))))) |
| 0(bar(x0)) | → | s(s(s(p(0(x0))))) |
| s(bar(x0)) | → | s(s(p(p(s(foo(s(s(p(p(s(p(x0)))))))))))) |
| s(p(p(x0))) | → | p(x0) |
| s(p(x0)) | → | x0 |
| 0(p(x0)) | → | s(s(s(s(0(x0))))) |
final states:
{50, 2, 13, 42, 38, 12, 1}
transitions:
| 33 | → | 35 |
| 25 | → | 107 |
| 32 | → | 123 |
| 29 | → | 31 |
| 81 | → | 24 |
| 81 | → | 147 |
| 81 | → | 82 |
| 81 | → | 44 |
| 81 | → | 22 |
| 87 | → | 89 |
| 80 | → | 82 |
| 10 | → | 1 |
| 97 | → | 99 |
| 15 | → | 129 |
| 15 | → | 43 |
| 129 | → | 21 |
| 129 | → | 19 |
| 84 | → | 86 |
| 145 | → | 106 |
| 145 | → | 104 |
| 122 | → | 43 |
| 122 | → | 19 |
| 133 | → | 89 |
| 133 | → | 87 |
| 3 | → | 40 |
| 146 | → | 103 |
| 108 | → | 28 |
| 134 | → | 86 |
| 5 | → | 115 |
| 147 | → | 92 |
| 147 | → | 90 |
| 130 | → | 18 |
| 90 | → | 92 |
| 107 | → | 31 |
| 107 | → | 29 |
| 1 | → | 40 |
| 1 | → | 3 |
| 123 | → | 36 |
| 13 | → | 22 |
| 13 | → | 44 |
| 13 | → | 121 |
| 13 | → | 14 |
| 101 | → | 103 |
| 139 | → | 99 |
| 139 | → | 97 |
| 44 | → | 80 |
| 26 | → | 28 |
| 38 | → | 40 |
| 38 | → | 3 |
| 36 | → | 12 |
| 138 | → | 9 |
| 121 | → | 44 |
| 121 | → | 24 |
| 121 | → | 22 |
| 6 | → | 8 |
| 116 | → | 8 |
| 22 | → | 24 |
| 124 | → | 35 |
| 82 | → | 147 |
| 2 | → | 14 |
| 4 | → | 137 |
| 106 | → | 46 |
| 114 | → | 49 |
| 16 | → | 18 |
| 14 | → | 121 |
| 93 | → | 139 |
| 140 | → | 96 |
| 104 | → | 106 |
| 100 | → | 145 |
| 113 | → | 42 |
| 137 | → | 1 |
| 137 | → | 10 |
| 46 | → | 113 |
| 115 | → | 9 |
| 83 | → | 133 |
| 47 | → | 49 |
| 148 | → | 89 |
| 148 | → | 87 |
| 148 | → | 90 |
| 148 | → | 82 |
| 19 | → | 21 |
| 94 | → | 96 |
| s0(9) | → | 10 |
| s0(11) | → | 1 |
| s0(8) | → | 9 |
| s0(28) | → | 29 |
| s0(37) | → | 12 |
| s0(3) | → | 4 |
| s0(18) | → | 19 |
| s0(51) | → | 52 |
| s0(40) | → | 41 |
| s0(7) | → | 8 |
| s0(23) | → | 24 |
| s0(16) | → | 43 |
| s0(39) | → | 40 |
| s0(49) | → | 42 |
| s0(4) | → | 51 |
| s0(45) | → | 46 |
| s0(52) | → | 50 |
| s0(43) | → | 44 |
| s0(48) | → | 49 |
| s0(34) | → | 35 |
| s0(27) | → | 28 |
| s0(20) | → | 21 |
| s0(35) | → | 36 |
| s0(13) | → | 14 |
| s0(17) | → | 18 |
| s0(30) | → | 31 |
| s0(21) | → | 22 |
| s0(41) | → | 38 |
| s1(105) | → | 106 |
| s1(96) | → | 97 |
| s1(88) | → | 89 |
| s1(95) | → | 96 |
| s1(98) | → | 99 |
| s1(91) | → | 92 |
| s1(85) | → | 86 |
| s1(89) | → | 90 |
| s1(103) | → | 104 |
| s1(102) | → | 103 |
| s1(86) | → | 87 |
| s1(81) | → | 82 |
| 00(2) | → | 3 |
| bar0(31) | → | 32 |
| bar1(99) | → | 100 |
| foo0(44) | → | 45 |
| foo0(24) | → | 25 |
| p0(2) | → | 13 |
| p0(46) | → | 47 |
| p0(10) | → | 11 |
| p0(19) | → | 20 |
| p0(36) | → | 37 |
| p0(25) | → | 26 |
| p0(4) | → | 5 |
| p0(26) | → | 27 |
| p0(3) | → | 39 |
| p0(6) | → | 7 |
| p0(14) | → | 15 |
| p0(32) | → | 33 |
| p0(29) | → | 30 |
| p0(33) | → | 34 |
| p0(15) | → | 16 |
| p0(22) | → | 23 |
| p0(16) | → | 17 |
| p0(5) | → | 6 |
| p0(47) | → | 48 |
| foo1(92) | → | 93 |
| p2(133) | → | 134 |
| p2(145) | → | 146 |
| p2(147) | → | 148 |
| p2(139) | → | 140 |
| p1(87) | → | 88 |
| p1(101) | → | 102 |
| p1(100) | → | 101 |
| p1(97) | → | 98 |
| p1(82) | → | 83 |
| p1(123) | → | 124 |
| p1(129) | → | 130 |
| p1(94) | → | 95 |
| p1(84) | → | 85 |
| p1(90) | → | 91 |
| p1(93) | → | 94 |
| p1(107) | → | 108 |
| p1(83) | → | 84 |
| p1(80) | → | 81 |
| p1(137) | → | 138 |
| p1(121) | → | 122 |
| p1(115) | → | 116 |
| p1(104) | → | 105 |
| p1(113) | → | 114 |
| f50 | → | 2 |