Certification Problem

Input (TPDB SRS_Relative/Waldmann_19/random-212)

The relative rewrite relation R/S is considered where R is the following TRS

b(b(b(x1))) → c(a(a(x1))) (1)
b(b(c(x1))) → b(b(b(x1))) (2)

and S is the following TRS.

a(b(a(x1))) → a(b(a(x1))) (3)
c(a(a(x1))) → b(a(b(x1))) (4)
c(a(c(x1))) → b(a(c(x1))) (5)
c(c(a(x1))) → c(c(c(x1))) (6)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 String Reversal

Since only unary symbols occur, one can reverse all terms and obtains the TRS
b(b(b(x1))) → a(a(c(x1))) (7)
c(b(b(x1))) → b(b(b(x1))) (8)
a(a(c(x1))) → b(a(b(x1))) (9)
c(a(c(x1))) → c(a(b(x1))) (10)
a(c(c(x1))) → c(c(c(x1))) (11)

1.1 Closure Under Flat Contexts

Using the flat contexts

{b(☐), a(☐), c(☐)}

We obtain the transformed TRS
b(b(b(b(x1)))) → b(a(a(c(x1)))) (12)
a(b(b(b(x1)))) → a(a(a(c(x1)))) (13)
c(b(b(b(x1)))) → c(a(a(c(x1)))) (14)
b(c(b(b(x1)))) → b(b(b(b(x1)))) (15)
a(c(b(b(x1)))) → a(b(b(b(x1)))) (16)
c(c(b(b(x1)))) → c(b(b(b(x1)))) (17)
c(a(c(x1))) → c(a(b(x1))) (10)
b(a(a(c(x1)))) → b(b(a(b(x1)))) (18)
a(a(a(c(x1)))) → a(b(a(b(x1)))) (19)
c(a(a(c(x1)))) → c(b(a(b(x1)))) (20)
b(a(c(c(x1)))) → b(c(c(c(x1)))) (21)
a(a(c(c(x1)))) → a(c(c(c(x1)))) (22)
c(a(c(c(x1)))) → c(c(c(c(x1)))) (23)

1.1.1 Semantic Labeling

Root-labeling is applied.

We obtain the labeled TRS
bb(bb(bb(bb(x1)))) → ba(aa(ac(cb(x1)))) (24)
bb(bb(bb(ba(x1)))) → ba(aa(ac(ca(x1)))) (25)
bb(bb(bb(bc(x1)))) → ba(aa(ac(cc(x1)))) (26)
ab(bb(bb(bb(x1)))) → aa(aa(ac(cb(x1)))) (27)
ab(bb(bb(ba(x1)))) → aa(aa(ac(ca(x1)))) (28)
ab(bb(bb(bc(x1)))) → aa(aa(ac(cc(x1)))) (29)
cb(bb(bb(bb(x1)))) → ca(aa(ac(cb(x1)))) (30)
cb(bb(bb(ba(x1)))) → ca(aa(ac(ca(x1)))) (31)
cb(bb(bb(bc(x1)))) → ca(aa(ac(cc(x1)))) (32)
bc(cb(bb(bb(x1)))) → bb(bb(bb(bb(x1)))) (33)
bc(cb(bb(ba(x1)))) → bb(bb(bb(ba(x1)))) (34)
bc(cb(bb(bc(x1)))) → bb(bb(bb(bc(x1)))) (35)
ac(cb(bb(bb(x1)))) → ab(bb(bb(bb(x1)))) (36)
ac(cb(bb(ba(x1)))) → ab(bb(bb(ba(x1)))) (37)
ac(cb(bb(bc(x1)))) → ab(bb(bb(bc(x1)))) (38)
cc(cb(bb(bb(x1)))) → cb(bb(bb(bb(x1)))) (39)
cc(cb(bb(ba(x1)))) → cb(bb(bb(ba(x1)))) (40)
cc(cb(bb(bc(x1)))) → cb(bb(bb(bc(x1)))) (41)
ca(ac(cb(x1))) → ca(ab(bb(x1))) (42)
ca(ac(ca(x1))) → ca(ab(ba(x1))) (43)
ca(ac(cc(x1))) → ca(ab(bc(x1))) (44)
ba(aa(ac(cb(x1)))) → bb(ba(ab(bb(x1)))) (45)
ba(aa(ac(ca(x1)))) → bb(ba(ab(ba(x1)))) (46)
ba(aa(ac(cc(x1)))) → bb(ba(ab(bc(x1)))) (47)
aa(aa(ac(cb(x1)))) → ab(ba(ab(bb(x1)))) (48)
aa(aa(ac(ca(x1)))) → ab(ba(ab(ba(x1)))) (49)
aa(aa(ac(cc(x1)))) → ab(ba(ab(bc(x1)))) (50)
ca(aa(ac(cb(x1)))) → cb(ba(ab(bb(x1)))) (51)
ca(aa(ac(ca(x1)))) → cb(ba(ab(ba(x1)))) (52)
ca(aa(ac(cc(x1)))) → cb(ba(ab(bc(x1)))) (53)
ba(ac(cc(cb(x1)))) → bc(cc(cc(cb(x1)))) (54)
ba(ac(cc(ca(x1)))) → bc(cc(cc(ca(x1)))) (55)
ba(ac(cc(cc(x1)))) → bc(cc(cc(cc(x1)))) (56)
aa(ac(cc(cb(x1)))) → ac(cc(cc(cb(x1)))) (57)
aa(ac(cc(ca(x1)))) → ac(cc(cc(ca(x1)))) (58)
aa(ac(cc(cc(x1)))) → ac(cc(cc(cc(x1)))) (59)
ca(ac(cc(cb(x1)))) → cc(cc(cc(cb(x1)))) (60)
ca(ac(cc(ca(x1)))) → cc(cc(cc(ca(x1)))) (61)
ca(ac(cc(cc(x1)))) → cc(cc(cc(cc(x1)))) (62)

1.1.1.1 Rule Removal

Using the matrix interpretations of dimension 2 with strict dimension 1 over the integers
[bb(x1)] =
0
0
+
2 0
0 0
· x1
[ba(x1)] =
0
0
+
2 2
0 0
· x1
[aa(x1)] =
0
0
+
1 1
0 2
· x1
[ac(x1)] =
0
0
+
2 0
2 0
· x1
[cb(x1)] =
0
1
+
1 0
1 0
· x1
[ca(x1)] =
0
1
+
1 1
0 2
· x1
[bc(x1)] =
0
0
+
2 2
0 0
· x1
[cc(x1)] =
0
0
+
1 1
1 1
· x1
[ab(x1)] =
0
0
+
1 0
1 0
· x1
all of the following rules can be deleted.
bc(cb(bb(bb(x1)))) → bb(bb(bb(bb(x1)))) (33)
bc(cb(bb(ba(x1)))) → bb(bb(bb(ba(x1)))) (34)
bc(cb(bb(bc(x1)))) → bb(bb(bb(bc(x1)))) (35)
cc(cb(bb(bb(x1)))) → cb(bb(bb(bb(x1)))) (39)
cc(cb(bb(ba(x1)))) → cb(bb(bb(ba(x1)))) (40)
cc(cb(bb(bc(x1)))) → cb(bb(bb(bc(x1)))) (41)

1.1.1.1.1 Rule Removal

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(bb) = 4 weight(bb) = 14
prec(ba) = 0 weight(ba) = 18
prec(aa) = 1 weight(aa) = 10
prec(ac) = 5 weight(ac) = 8
prec(cb) = 6 weight(cb) = 13
prec(ca) = 7 weight(ca) = 16
prec(bc) = 2 weight(bc) = 8
prec(cc) = 8 weight(cc) = 9
prec(ab) = 3 weight(ab) = 1
all of the following rules can be deleted.
bb(bb(bb(bb(x1)))) → ba(aa(ac(cb(x1)))) (24)
bb(bb(bb(ba(x1)))) → ba(aa(ac(ca(x1)))) (25)
bb(bb(bb(bc(x1)))) → ba(aa(ac(cc(x1)))) (26)
ab(bb(bb(bb(x1)))) → aa(aa(ac(cb(x1)))) (27)
ab(bb(bb(ba(x1)))) → aa(aa(ac(ca(x1)))) (28)
ab(bb(bb(bc(x1)))) → aa(aa(ac(cc(x1)))) (29)
cb(bb(bb(bb(x1)))) → ca(aa(ac(cb(x1)))) (30)
cb(bb(bb(ba(x1)))) → ca(aa(ac(ca(x1)))) (31)
cb(bb(bb(bc(x1)))) → ca(aa(ac(cc(x1)))) (32)
ac(cb(bb(bb(x1)))) → ab(bb(bb(bb(x1)))) (36)
ac(cb(bb(ba(x1)))) → ab(bb(bb(ba(x1)))) (37)
ac(cb(bb(bc(x1)))) → ab(bb(bb(bc(x1)))) (38)
ca(ac(cb(x1))) → ca(ab(bb(x1))) (42)
ca(ac(ca(x1))) → ca(ab(ba(x1))) (43)
ca(ac(cc(x1))) → ca(ab(bc(x1))) (44)
ba(aa(ac(cb(x1)))) → bb(ba(ab(bb(x1)))) (45)
ba(aa(ac(ca(x1)))) → bb(ba(ab(ba(x1)))) (46)
ba(aa(ac(cc(x1)))) → bb(ba(ab(bc(x1)))) (47)
aa(aa(ac(cb(x1)))) → ab(ba(ab(bb(x1)))) (48)
aa(aa(ac(ca(x1)))) → ab(ba(ab(ba(x1)))) (49)
aa(aa(ac(cc(x1)))) → ab(ba(ab(bc(x1)))) (50)
ca(aa(ac(cb(x1)))) → cb(ba(ab(bb(x1)))) (51)
ca(aa(ac(ca(x1)))) → cb(ba(ab(ba(x1)))) (52)
ca(aa(ac(cc(x1)))) → cb(ba(ab(bc(x1)))) (53)
ba(ac(cc(cb(x1)))) → bc(cc(cc(cb(x1)))) (54)
ba(ac(cc(ca(x1)))) → bc(cc(cc(ca(x1)))) (55)
ba(ac(cc(cc(x1)))) → bc(cc(cc(cc(x1)))) (56)
aa(ac(cc(cb(x1)))) → ac(cc(cc(cb(x1)))) (57)
aa(ac(cc(ca(x1)))) → ac(cc(cc(ca(x1)))) (58)
aa(ac(cc(cc(x1)))) → ac(cc(cc(cc(x1)))) (59)
ca(ac(cc(cb(x1)))) → cc(cc(cc(cb(x1)))) (60)
ca(ac(cc(ca(x1)))) → cc(cc(cc(ca(x1)))) (61)
ca(ac(cc(cc(x1)))) → cc(cc(cc(cc(x1)))) (62)

1.1.1.1.1.1 R is empty

There are no rules in the TRS. Hence, it is terminating.