The relative rewrite relation R/S is considered where R is the following TRS
b(c(a(x1))) | → | a(b(a(x1))) | (1) |
a(a(a(x1))) | → | c(c(c(x1))) | (2) |
a(a(a(x1))) | → | a(b(a(x1))) | (3) |
and S is the following TRS.
c(a(b(x1))) | → | a(c(b(x1))) | (4) |
c(c(a(x1))) | → | c(a(c(x1))) | (5) |
b(a(b(x1))) | → | b(c(c(x1))) | (6) |
{b(☐), c(☐), a(☐)}
We obtain the transformed TRSa(a(a(x1))) | → | a(b(a(x1))) | (3) |
b(b(c(a(x1)))) | → | b(a(b(a(x1)))) | (7) |
c(b(c(a(x1)))) | → | c(a(b(a(x1)))) | (8) |
a(b(c(a(x1)))) | → | a(a(b(a(x1)))) | (9) |
b(a(a(a(x1)))) | → | b(c(c(c(x1)))) | (10) |
c(a(a(a(x1)))) | → | c(c(c(c(x1)))) | (11) |
a(a(a(a(x1)))) | → | a(c(c(c(x1)))) | (12) |
c(c(a(x1))) | → | c(a(c(x1))) | (5) |
b(a(b(x1))) | → | b(c(c(x1))) | (6) |
b(c(a(b(x1)))) | → | b(a(c(b(x1)))) | (13) |
c(c(a(b(x1)))) | → | c(a(c(b(x1)))) | (14) |
a(c(a(b(x1)))) | → | a(a(c(b(x1)))) | (15) |
Root-labeling is applied.
We obtain the labeled TRSaa(aa(aa(x1))) | → | ab(ba(aa(x1))) | (16) |
aa(aa(ab(x1))) | → | ab(ba(ab(x1))) | (17) |
aa(aa(ac(x1))) | → | ab(ba(ac(x1))) | (18) |
bb(bc(ca(aa(x1)))) | → | ba(ab(ba(aa(x1)))) | (19) |
bb(bc(ca(ab(x1)))) | → | ba(ab(ba(ab(x1)))) | (20) |
bb(bc(ca(ac(x1)))) | → | ba(ab(ba(ac(x1)))) | (21) |
cb(bc(ca(aa(x1)))) | → | ca(ab(ba(aa(x1)))) | (22) |
cb(bc(ca(ab(x1)))) | → | ca(ab(ba(ab(x1)))) | (23) |
cb(bc(ca(ac(x1)))) | → | ca(ab(ba(ac(x1)))) | (24) |
ab(bc(ca(aa(x1)))) | → | aa(ab(ba(aa(x1)))) | (25) |
ab(bc(ca(ab(x1)))) | → | aa(ab(ba(ab(x1)))) | (26) |
ab(bc(ca(ac(x1)))) | → | aa(ab(ba(ac(x1)))) | (27) |
ba(aa(aa(aa(x1)))) | → | bc(cc(cc(ca(x1)))) | (28) |
ba(aa(aa(ab(x1)))) | → | bc(cc(cc(cb(x1)))) | (29) |
ba(aa(aa(ac(x1)))) | → | bc(cc(cc(cc(x1)))) | (30) |
ca(aa(aa(aa(x1)))) | → | cc(cc(cc(ca(x1)))) | (31) |
ca(aa(aa(ab(x1)))) | → | cc(cc(cc(cb(x1)))) | (32) |
ca(aa(aa(ac(x1)))) | → | cc(cc(cc(cc(x1)))) | (33) |
aa(aa(aa(aa(x1)))) | → | ac(cc(cc(ca(x1)))) | (34) |
aa(aa(aa(ab(x1)))) | → | ac(cc(cc(cb(x1)))) | (35) |
aa(aa(aa(ac(x1)))) | → | ac(cc(cc(cc(x1)))) | (36) |
cc(ca(aa(x1))) | → | ca(ac(ca(x1))) | (37) |
cc(ca(ab(x1))) | → | ca(ac(cb(x1))) | (38) |
cc(ca(ac(x1))) | → | ca(ac(cc(x1))) | (39) |
ba(ab(ba(x1))) | → | bc(cc(ca(x1))) | (40) |
ba(ab(bb(x1))) | → | bc(cc(cb(x1))) | (41) |
ba(ab(bc(x1))) | → | bc(cc(cc(x1))) | (42) |
bc(ca(ab(ba(x1)))) | → | ba(ac(cb(ba(x1)))) | (43) |
bc(ca(ab(bb(x1)))) | → | ba(ac(cb(bb(x1)))) | (44) |
bc(ca(ab(bc(x1)))) | → | ba(ac(cb(bc(x1)))) | (45) |
cc(ca(ab(ba(x1)))) | → | ca(ac(cb(ba(x1)))) | (46) |
cc(ca(ab(bb(x1)))) | → | ca(ac(cb(bb(x1)))) | (47) |
cc(ca(ab(bc(x1)))) | → | ca(ac(cb(bc(x1)))) | (48) |
ac(ca(ab(ba(x1)))) | → | aa(ac(cb(ba(x1)))) | (49) |
ac(ca(ab(bb(x1)))) | → | aa(ac(cb(bb(x1)))) | (50) |
ac(ca(ab(bc(x1)))) | → | aa(ac(cb(bc(x1)))) | (51) |
prec(aa) | = | 2 | weight(aa) | = | 15 | ||||
prec(ab) | = | 7 | weight(ab) | = | 15 | ||||
prec(ba) | = | 6 | weight(ba) | = | 13 | ||||
prec(ac) | = | 3 | weight(ac) | = | 4 | ||||
prec(bb) | = | 4 | weight(bb) | = | 14 | ||||
prec(bc) | = | 5 | weight(bc) | = | 16 | ||||
prec(ca) | = | 1 | weight(ca) | = | 14 | ||||
prec(cb) | = | 0 | weight(cb) | = | 13 | ||||
prec(cc) | = | 8 | weight(cc) | = | 10 |
aa(aa(aa(x1))) | → | ab(ba(aa(x1))) | (16) |
aa(aa(ab(x1))) | → | ab(ba(ab(x1))) | (17) |
aa(aa(ac(x1))) | → | ab(ba(ac(x1))) | (18) |
bb(bc(ca(aa(x1)))) | → | ba(ab(ba(aa(x1)))) | (19) |
bb(bc(ca(ab(x1)))) | → | ba(ab(ba(ab(x1)))) | (20) |
bb(bc(ca(ac(x1)))) | → | ba(ab(ba(ac(x1)))) | (21) |
cb(bc(ca(aa(x1)))) | → | ca(ab(ba(aa(x1)))) | (22) |
cb(bc(ca(ab(x1)))) | → | ca(ab(ba(ab(x1)))) | (23) |
cb(bc(ca(ac(x1)))) | → | ca(ab(ba(ac(x1)))) | (24) |
ab(bc(ca(aa(x1)))) | → | aa(ab(ba(aa(x1)))) | (25) |
ab(bc(ca(ab(x1)))) | → | aa(ab(ba(ab(x1)))) | (26) |
ab(bc(ca(ac(x1)))) | → | aa(ab(ba(ac(x1)))) | (27) |
ba(aa(aa(aa(x1)))) | → | bc(cc(cc(ca(x1)))) | (28) |
ba(aa(aa(ab(x1)))) | → | bc(cc(cc(cb(x1)))) | (29) |
ba(aa(aa(ac(x1)))) | → | bc(cc(cc(cc(x1)))) | (30) |
ca(aa(aa(aa(x1)))) | → | cc(cc(cc(ca(x1)))) | (31) |
ca(aa(aa(ab(x1)))) | → | cc(cc(cc(cb(x1)))) | (32) |
ca(aa(aa(ac(x1)))) | → | cc(cc(cc(cc(x1)))) | (33) |
aa(aa(aa(aa(x1)))) | → | ac(cc(cc(ca(x1)))) | (34) |
aa(aa(aa(ab(x1)))) | → | ac(cc(cc(cb(x1)))) | (35) |
aa(aa(aa(ac(x1)))) | → | ac(cc(cc(cc(x1)))) | (36) |
cc(ca(aa(x1))) | → | ca(ac(ca(x1))) | (37) |
cc(ca(ab(x1))) | → | ca(ac(cb(x1))) | (38) |
cc(ca(ac(x1))) | → | ca(ac(cc(x1))) | (39) |
ba(ab(ba(x1))) | → | bc(cc(ca(x1))) | (40) |
ba(ab(bb(x1))) | → | bc(cc(cb(x1))) | (41) |
ba(ab(bc(x1))) | → | bc(cc(cc(x1))) | (42) |
bc(ca(ab(ba(x1)))) | → | ba(ac(cb(ba(x1)))) | (43) |
bc(ca(ab(bb(x1)))) | → | ba(ac(cb(bb(x1)))) | (44) |
bc(ca(ab(bc(x1)))) | → | ba(ac(cb(bc(x1)))) | (45) |
cc(ca(ab(ba(x1)))) | → | ca(ac(cb(ba(x1)))) | (46) |
cc(ca(ab(bb(x1)))) | → | ca(ac(cb(bb(x1)))) | (47) |
cc(ca(ab(bc(x1)))) | → | ca(ac(cb(bc(x1)))) | (48) |
ac(ca(ab(ba(x1)))) | → | aa(ac(cb(ba(x1)))) | (49) |
ac(ca(ab(bb(x1)))) | → | aa(ac(cb(bb(x1)))) | (50) |
ac(ca(ab(bc(x1)))) | → | aa(ac(cb(bc(x1)))) | (51) |
There are no rules in the TRS. Hence, it is terminating.