Certification Problem

Input (TPDB SRS_Relative/Waldmann_19/random-120)

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

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

and S is the following TRS.

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

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
a(c(c(x1))) → b(c(c(x1))) (6)
c(b(b(x1))) → b(a(a(x1))) (7)
c(c(c(x1))) → c(a(c(x1))) (3)
b(a(b(x1))) → b(c(a(x1))) (8)
a(a(c(x1))) → b(a(b(x1))) (9)

1.1 Closure Under Flat Contexts

Using the flat contexts

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

We obtain the transformed TRS
a(a(c(c(x1)))) → a(b(c(c(x1)))) (10)
c(a(c(c(x1)))) → c(b(c(c(x1)))) (11)
b(a(c(c(x1)))) → b(b(c(c(x1)))) (12)
a(c(b(b(x1)))) → a(b(a(a(x1)))) (13)
c(c(b(b(x1)))) → c(b(a(a(x1)))) (14)
b(c(b(b(x1)))) → b(b(a(a(x1)))) (15)
c(c(c(x1))) → c(a(c(x1))) (3)
b(a(b(x1))) → b(c(a(x1))) (8)
a(a(a(c(x1)))) → a(b(a(b(x1)))) (16)
c(a(a(c(x1)))) → c(b(a(b(x1)))) (17)
b(a(a(c(x1)))) → b(b(a(b(x1)))) (18)

1.1.1 Semantic Labeling

Root-labeling is applied.

We obtain the labeled TRS
aa(ac(cc(ca(x1)))) → ab(bc(cc(ca(x1)))) (19)
aa(ac(cc(cc(x1)))) → ab(bc(cc(cc(x1)))) (20)
aa(ac(cc(cb(x1)))) → ab(bc(cc(cb(x1)))) (21)
ca(ac(cc(ca(x1)))) → cb(bc(cc(ca(x1)))) (22)
ca(ac(cc(cc(x1)))) → cb(bc(cc(cc(x1)))) (23)
ca(ac(cc(cb(x1)))) → cb(bc(cc(cb(x1)))) (24)
ba(ac(cc(ca(x1)))) → bb(bc(cc(ca(x1)))) (25)
ba(ac(cc(cc(x1)))) → bb(bc(cc(cc(x1)))) (26)
ba(ac(cc(cb(x1)))) → bb(bc(cc(cb(x1)))) (27)
ac(cb(bb(ba(x1)))) → ab(ba(aa(aa(x1)))) (28)
ac(cb(bb(bc(x1)))) → ab(ba(aa(ac(x1)))) (29)
ac(cb(bb(bb(x1)))) → ab(ba(aa(ab(x1)))) (30)
cc(cb(bb(ba(x1)))) → cb(ba(aa(aa(x1)))) (31)
cc(cb(bb(bc(x1)))) → cb(ba(aa(ac(x1)))) (32)
cc(cb(bb(bb(x1)))) → cb(ba(aa(ab(x1)))) (33)
bc(cb(bb(ba(x1)))) → bb(ba(aa(aa(x1)))) (34)
bc(cb(bb(bc(x1)))) → bb(ba(aa(ac(x1)))) (35)
bc(cb(bb(bb(x1)))) → bb(ba(aa(ab(x1)))) (36)
cc(cc(ca(x1))) → ca(ac(ca(x1))) (37)
cc(cc(cc(x1))) → ca(ac(cc(x1))) (38)
cc(cc(cb(x1))) → ca(ac(cb(x1))) (39)
ba(ab(ba(x1))) → bc(ca(aa(x1))) (40)
ba(ab(bc(x1))) → bc(ca(ac(x1))) (41)
ba(ab(bb(x1))) → bc(ca(ab(x1))) (42)
aa(aa(ac(ca(x1)))) → ab(ba(ab(ba(x1)))) (43)
aa(aa(ac(cc(x1)))) → ab(ba(ab(bc(x1)))) (44)
aa(aa(ac(cb(x1)))) → ab(ba(ab(bb(x1)))) (45)
ca(aa(ac(ca(x1)))) → cb(ba(ab(ba(x1)))) (46)
ca(aa(ac(cc(x1)))) → cb(ba(ab(bc(x1)))) (47)
ca(aa(ac(cb(x1)))) → cb(ba(ab(bb(x1)))) (48)
ba(aa(ac(ca(x1)))) → bb(ba(ab(ba(x1)))) (49)
ba(aa(ac(cc(x1)))) → bb(ba(ab(bc(x1)))) (50)
ba(aa(ac(cb(x1)))) → bb(ba(ab(bb(x1)))) (51)

1.1.1.1 Rule Removal

Using the Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(aa) = 7 weight(aa) = 4
prec(ac) = 6 weight(ac) = 3
prec(cc) = 1 weight(cc) = 5
prec(ca) = 3 weight(ca) = 5
prec(ab) = 0 weight(ab) = 1
prec(bc) = 5 weight(bc) = 6
prec(cb) = 2 weight(cb) = 2
prec(ba) = 8 weight(ba) = 7
prec(bb) = 4 weight(bb) = 4
all of the following rules can be deleted.
aa(ac(cc(ca(x1)))) → ab(bc(cc(ca(x1)))) (19)
aa(ac(cc(cc(x1)))) → ab(bc(cc(cc(x1)))) (20)
aa(ac(cc(cb(x1)))) → ab(bc(cc(cb(x1)))) (21)
ca(ac(cc(ca(x1)))) → cb(bc(cc(ca(x1)))) (22)
ca(ac(cc(cc(x1)))) → cb(bc(cc(cc(x1)))) (23)
ca(ac(cc(cb(x1)))) → cb(bc(cc(cb(x1)))) (24)
ba(ac(cc(ca(x1)))) → bb(bc(cc(ca(x1)))) (25)
ba(ac(cc(cc(x1)))) → bb(bc(cc(cc(x1)))) (26)
ba(ac(cc(cb(x1)))) → bb(bc(cc(cb(x1)))) (27)
ac(cb(bb(ba(x1)))) → ab(ba(aa(aa(x1)))) (28)
ac(cb(bb(bc(x1)))) → ab(ba(aa(ac(x1)))) (29)
ac(cb(bb(bb(x1)))) → ab(ba(aa(ab(x1)))) (30)
cc(cb(bb(ba(x1)))) → cb(ba(aa(aa(x1)))) (31)
cc(cb(bb(bc(x1)))) → cb(ba(aa(ac(x1)))) (32)
cc(cb(bb(bb(x1)))) → cb(ba(aa(ab(x1)))) (33)
bc(cb(bb(ba(x1)))) → bb(ba(aa(aa(x1)))) (34)
bc(cb(bb(bc(x1)))) → bb(ba(aa(ac(x1)))) (35)
bc(cb(bb(bb(x1)))) → bb(ba(aa(ab(x1)))) (36)
cc(cc(ca(x1))) → ca(ac(ca(x1))) (37)
cc(cc(cc(x1))) → ca(ac(cc(x1))) (38)
cc(cc(cb(x1))) → ca(ac(cb(x1))) (39)
ba(ab(ba(x1))) → bc(ca(aa(x1))) (40)
ba(ab(bc(x1))) → bc(ca(ac(x1))) (41)
ba(ab(bb(x1))) → bc(ca(ab(x1))) (42)
aa(aa(ac(ca(x1)))) → ab(ba(ab(ba(x1)))) (43)
aa(aa(ac(cc(x1)))) → ab(ba(ab(bc(x1)))) (44)
aa(aa(ac(cb(x1)))) → ab(ba(ab(bb(x1)))) (45)
ca(aa(ac(ca(x1)))) → cb(ba(ab(ba(x1)))) (46)
ca(aa(ac(cc(x1)))) → cb(ba(ab(bc(x1)))) (47)
ca(aa(ac(cb(x1)))) → cb(ba(ab(bb(x1)))) (48)
ba(aa(ac(ca(x1)))) → bb(ba(ab(ba(x1)))) (49)
ba(aa(ac(cc(x1)))) → bb(ba(ab(bc(x1)))) (50)
ba(aa(ac(cb(x1)))) → bb(ba(ab(bb(x1)))) (51)

1.1.1.1.1 R is empty

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