Certification Problem

Input (TPDB SRS_Relative/Waldmann_19/random-109)

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

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

and S is the following TRS.

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

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by AProVE @ termCOMP 2023)

1 Closure Under Flat Contexts

Using the flat contexts

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

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

1.1 Semantic Labeling

Root-labeling is applied.

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

1.1.1 Rule Removal

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

1.1.1.1 R is empty

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