The rewrite relation of the following TRS is considered.
a(b(a(b(x1)))) | → | a(a(b(b(x1)))) | (1) |
b(b(b(b(x1)))) | → | b(b(b(a(x1)))) | (2) |
a(a(a(a(x1)))) | → | b(a(b(a(x1)))) | (3) |
{a(☐), b(☐)}
We obtain the transformed TRSa(b(a(b(x1)))) | → | a(a(b(b(x1)))) | (1) |
b(b(b(b(x1)))) | → | b(b(b(a(x1)))) | (2) |
a(a(a(a(a(x1))))) | → | a(b(a(b(a(x1))))) | (4) |
b(a(a(a(a(x1))))) | → | b(b(a(b(a(x1))))) | (5) |
Root-labeling is applied.
We obtain the labeled TRSab(ba(ab(ba(x1)))) | → | aa(ab(bb(ba(x1)))) | (6) |
ab(ba(ab(bb(x1)))) | → | aa(ab(bb(bb(x1)))) | (7) |
bb(bb(bb(ba(x1)))) | → | bb(bb(ba(aa(x1)))) | (8) |
bb(bb(bb(bb(x1)))) | → | bb(bb(ba(ab(x1)))) | (9) |
aa(aa(aa(aa(aa(x1))))) | → | ab(ba(ab(ba(aa(x1))))) | (10) |
aa(aa(aa(aa(ab(x1))))) | → | ab(ba(ab(ba(ab(x1))))) | (11) |
ba(aa(aa(aa(aa(x1))))) | → | bb(ba(ab(ba(aa(x1))))) | (12) |
ba(aa(aa(aa(ab(x1))))) | → | bb(ba(ab(ba(ab(x1))))) | (13) |
ab#(ba(ab(ba(x1)))) | → | bb#(ba(x1)) | (14) |
ab#(ba(ab(ba(x1)))) | → | ab#(bb(ba(x1))) | (15) |
ab#(ba(ab(ba(x1)))) | → | aa#(ab(bb(ba(x1)))) | (16) |
ab#(ba(ab(bb(x1)))) | → | bb#(bb(x1)) | (17) |
ab#(ba(ab(bb(x1)))) | → | ab#(bb(bb(x1))) | (18) |
ab#(ba(ab(bb(x1)))) | → | aa#(ab(bb(bb(x1)))) | (19) |
bb#(bb(bb(ba(x1)))) | → | aa#(x1) | (20) |
bb#(bb(bb(ba(x1)))) | → | ba#(aa(x1)) | (21) |
bb#(bb(bb(ba(x1)))) | → | bb#(ba(aa(x1))) | (22) |
bb#(bb(bb(ba(x1)))) | → | bb#(bb(ba(aa(x1)))) | (23) |
bb#(bb(bb(bb(x1)))) | → | ab#(x1) | (24) |
bb#(bb(bb(bb(x1)))) | → | ba#(ab(x1)) | (25) |
bb#(bb(bb(bb(x1)))) | → | bb#(ba(ab(x1))) | (26) |
bb#(bb(bb(bb(x1)))) | → | bb#(bb(ba(ab(x1)))) | (27) |
aa#(aa(aa(aa(aa(x1))))) | → | ba#(aa(x1)) | (28) |
aa#(aa(aa(aa(aa(x1))))) | → | ab#(ba(aa(x1))) | (29) |
aa#(aa(aa(aa(aa(x1))))) | → | ba#(ab(ba(aa(x1)))) | (30) |
aa#(aa(aa(aa(aa(x1))))) | → | ab#(ba(ab(ba(aa(x1))))) | (31) |
aa#(aa(aa(aa(ab(x1))))) | → | ba#(ab(x1)) | (32) |
aa#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(x1))) | (33) |
aa#(aa(aa(aa(ab(x1))))) | → | ba#(ab(ba(ab(x1)))) | (34) |
aa#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(ba(ab(x1))))) | (35) |
ba#(aa(aa(aa(aa(x1))))) | → | ba#(aa(x1)) | (36) |
ba#(aa(aa(aa(aa(x1))))) | → | ab#(ba(aa(x1))) | (37) |
ba#(aa(aa(aa(aa(x1))))) | → | ba#(ab(ba(aa(x1)))) | (38) |
ba#(aa(aa(aa(aa(x1))))) | → | bb#(ba(ab(ba(aa(x1))))) | (39) |
ba#(aa(aa(aa(ab(x1))))) | → | ba#(ab(x1)) | (40) |
ba#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(x1))) | (41) |
ba#(aa(aa(aa(ab(x1))))) | → | ba#(ab(ba(ab(x1)))) | (42) |
ba#(aa(aa(aa(ab(x1))))) | → | bb#(ba(ab(ba(ab(x1))))) | (43) |
The dependency pairs are split into 1 component.
ba#(aa(aa(aa(aa(x1))))) | → | ba#(aa(x1)) | (36) |
ba#(aa(aa(aa(ab(x1))))) | → | bb#(ba(ab(ba(ab(x1))))) | (43) |
bb#(bb(bb(bb(x1)))) | → | bb#(bb(ba(ab(x1)))) | (27) |
bb#(bb(bb(bb(x1)))) | → | bb#(ba(ab(x1))) | (26) |
bb#(bb(bb(bb(x1)))) | → | ba#(ab(x1)) | (25) |
ba#(aa(aa(aa(ab(x1))))) | → | ba#(ab(ba(ab(x1)))) | (42) |
ba#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(x1))) | (41) |
ab#(ba(ab(bb(x1)))) | → | aa#(ab(bb(bb(x1)))) | (19) |
aa#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(ba(ab(x1))))) | (35) |
ab#(ba(ab(bb(x1)))) | → | bb#(bb(x1)) | (17) |
bb#(bb(bb(bb(x1)))) | → | ab#(x1) | (24) |
ab#(ba(ab(ba(x1)))) | → | aa#(ab(bb(ba(x1)))) | (16) |
aa#(aa(aa(aa(ab(x1))))) | → | ba#(ab(ba(ab(x1)))) | (34) |
ba#(aa(aa(aa(ab(x1))))) | → | ba#(ab(x1)) | (40) |
ba#(aa(aa(aa(aa(x1))))) | → | bb#(ba(ab(ba(aa(x1))))) | (39) |
bb#(bb(bb(ba(x1)))) | → | bb#(bb(ba(aa(x1)))) | (23) |
bb#(bb(bb(ba(x1)))) | → | bb#(ba(aa(x1))) | (22) |
bb#(bb(bb(ba(x1)))) | → | ba#(aa(x1)) | (21) |
ba#(aa(aa(aa(aa(x1))))) | → | ba#(ab(ba(aa(x1)))) | (38) |
ba#(aa(aa(aa(aa(x1))))) | → | ab#(ba(aa(x1))) | (37) |
ab#(ba(ab(ba(x1)))) | → | bb#(ba(x1)) | (14) |
bb#(bb(bb(ba(x1)))) | → | aa#(x1) | (20) |
aa#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(x1))) | (33) |
aa#(aa(aa(aa(ab(x1))))) | → | ba#(ab(x1)) | (32) |
aa#(aa(aa(aa(aa(x1))))) | → | ab#(ba(ab(ba(aa(x1))))) | (31) |
aa#(aa(aa(aa(aa(x1))))) | → | ba#(ab(ba(aa(x1)))) | (30) |
aa#(aa(aa(aa(aa(x1))))) | → | ab#(ba(aa(x1))) | (29) |
aa#(aa(aa(aa(aa(x1))))) | → | ba#(aa(x1)) | (28) |
π(ba#) | = | { 1, 1 } |
π(aa#) | = | { 1 } |
π(bb#) | = | { 1 } |
π(ab#) | = | { 1 } |
π(bb) | = | { 1, 1 } |
π(aa) | = | { 1, 1 } |
π(ba) | = | { 1, 1 } |
π(ab) | = | { 1, 1 } |
ba#(aa(aa(aa(aa(x1))))) | → | ba#(aa(x1)) | (36) |
ba#(aa(aa(aa(ab(x1))))) | → | bb#(ba(ab(ba(ab(x1))))) | (43) |
bb#(bb(bb(bb(x1)))) | → | bb#(ba(ab(x1))) | (26) |
bb#(bb(bb(bb(x1)))) | → | ba#(ab(x1)) | (25) |
ba#(aa(aa(aa(ab(x1))))) | → | ba#(ab(ba(ab(x1)))) | (42) |
ba#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(x1))) | (41) |
ab#(ba(ab(bb(x1)))) | → | bb#(bb(x1)) | (17) |
bb#(bb(bb(bb(x1)))) | → | ab#(x1) | (24) |
ba#(aa(aa(aa(ab(x1))))) | → | ba#(ab(x1)) | (40) |
ba#(aa(aa(aa(aa(x1))))) | → | bb#(ba(ab(ba(aa(x1))))) | (39) |
bb#(bb(bb(ba(x1)))) | → | bb#(ba(aa(x1))) | (22) |
bb#(bb(bb(ba(x1)))) | → | ba#(aa(x1)) | (21) |
ba#(aa(aa(aa(aa(x1))))) | → | ba#(ab(ba(aa(x1)))) | (38) |
ba#(aa(aa(aa(aa(x1))))) | → | ab#(ba(aa(x1))) | (37) |
ab#(ba(ab(ba(x1)))) | → | bb#(ba(x1)) | (14) |
bb#(bb(bb(ba(x1)))) | → | aa#(x1) | (20) |
aa#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(x1))) | (33) |
aa#(aa(aa(aa(ab(x1))))) | → | ba#(ab(x1)) | (32) |
aa#(aa(aa(aa(aa(x1))))) | → | ab#(ba(aa(x1))) | (29) |
aa#(aa(aa(aa(aa(x1))))) | → | ba#(aa(x1)) | (28) |
The dependency pairs are split into 2 components.
bb#(bb(bb(bb(x1)))) | → | bb#(bb(ba(ab(x1)))) | (27) |
bb#(bb(bb(ba(x1)))) | → | bb#(bb(ba(aa(x1)))) | (23) |
[aa(x1)] | = |
|
||||||||||||||
[ba(x1)] | = |
|
||||||||||||||
[bb(x1)] | = |
|
||||||||||||||
[bb#(x1)] | = |
|
||||||||||||||
[ab(x1)] | = |
|
ab(ba(ab(ba(x1)))) | → | aa(ab(bb(ba(x1)))) | (6) |
ab(ba(ab(bb(x1)))) | → | aa(ab(bb(bb(x1)))) | (7) |
bb(bb(bb(ba(x1)))) | → | bb(bb(ba(aa(x1)))) | (8) |
bb(bb(bb(bb(x1)))) | → | bb(bb(ba(ab(x1)))) | (9) |
aa(aa(aa(aa(aa(x1))))) | → | ab(ba(ab(ba(aa(x1))))) | (10) |
aa(aa(aa(aa(ab(x1))))) | → | ab(ba(ab(ba(ab(x1))))) | (11) |
ba(aa(aa(aa(aa(x1))))) | → | bb(ba(ab(ba(aa(x1))))) | (12) |
ba(aa(aa(aa(ab(x1))))) | → | bb(ba(ab(ba(ab(x1))))) | (13) |
bb#(bb(bb(bb(x1)))) | → | bb#(bb(ba(ab(x1)))) | (27) |
[aa(x1)] | = |
|
||||||||||||||||||||||||
[ba(x1)] | = |
|
||||||||||||||||||||||||
[bb(x1)] | = |
|
||||||||||||||||||||||||
[bb#(x1)] | = |
|
||||||||||||||||||||||||
[ab(x1)] | = |
|
ab(ba(ab(ba(x1)))) | → | aa(ab(bb(ba(x1)))) | (6) |
ab(ba(ab(bb(x1)))) | → | aa(ab(bb(bb(x1)))) | (7) |
bb(bb(bb(ba(x1)))) | → | bb(bb(ba(aa(x1)))) | (8) |
bb(bb(bb(bb(x1)))) | → | bb(bb(ba(ab(x1)))) | (9) |
aa(aa(aa(aa(aa(x1))))) | → | ab(ba(ab(ba(aa(x1))))) | (10) |
aa(aa(aa(aa(ab(x1))))) | → | ab(ba(ab(ba(ab(x1))))) | (11) |
ba(aa(aa(aa(aa(x1))))) | → | bb(ba(ab(ba(aa(x1))))) | (12) |
ba(aa(aa(aa(ab(x1))))) | → | bb(ba(ab(ba(ab(x1))))) | (13) |
bb#(bb(bb(ba(x1)))) | → | bb#(bb(ba(aa(x1)))) | (23) |
There are no pairs anymore.
aa#(aa(aa(aa(aa(x1))))) | → | ab#(ba(ab(ba(aa(x1))))) | (31) |
ab#(ba(ab(bb(x1)))) | → | aa#(ab(bb(bb(x1)))) | (19) |
aa#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(ba(ab(x1))))) | (35) |
ab#(ba(ab(ba(x1)))) | → | aa#(ab(bb(ba(x1)))) | (16) |
[aa(x1)] | = | 1 · x1 + 0 |
[aa#(x1)] | = | 1 · x1 + 0 |
[ba(x1)] | = | -∞ · x1 + 1 |
[bb(x1)] | = | -∞ · x1 + 0 |
[ab#(x1)] | = | 2 · x1 + 0 |
[ab(x1)] | = | 0 · x1 + 0 |
ab(ba(ab(ba(x1)))) | → | aa(ab(bb(ba(x1)))) | (6) |
ab(ba(ab(bb(x1)))) | → | aa(ab(bb(bb(x1)))) | (7) |
bb(bb(bb(ba(x1)))) | → | bb(bb(ba(aa(x1)))) | (8) |
bb(bb(bb(bb(x1)))) | → | bb(bb(ba(ab(x1)))) | (9) |
aa(aa(aa(aa(aa(x1))))) | → | ab(ba(ab(ba(aa(x1))))) | (10) |
aa(aa(aa(aa(ab(x1))))) | → | ab(ba(ab(ba(ab(x1))))) | (11) |
ba(aa(aa(aa(aa(x1))))) | → | bb(ba(ab(ba(aa(x1))))) | (12) |
ba(aa(aa(aa(ab(x1))))) | → | bb(ba(ab(ba(ab(x1))))) | (13) |
aa#(aa(aa(aa(aa(x1))))) | → | ab#(ba(ab(ba(aa(x1))))) | (31) |
ab#(ba(ab(bb(x1)))) | → | aa#(ab(bb(bb(x1)))) | (19) |
aa#(aa(aa(aa(ab(x1))))) | → | ab#(ba(ab(ba(ab(x1))))) | (35) |
ab#(ba(ab(ba(x1)))) | → | aa#(ab(bb(ba(x1)))) | (16) |
There are no pairs anymore.