Certification Problem

Input (TPDB SRS_Relative/Waldmann_19/random-43)

The rewrite relation of the following TRS is considered.

a(b(b(x1))) c(b(a(x1))) (1)
b(a(a(x1))) a(c(c(x1))) (2)
c(a(c(x1))) c(c(b(x1))) (3)
b(c(a(x1))) b(b(a(x1))) (4)
b(c(c(x1))) a(a(a(x1))) (5)
a(b(c(x1))) a(a(b(x1))) (6)
b(c(b(x1))) c(a(b(x1))) (7)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by matchbox @ termCOMP 2023)

1 Closure Under Flat Contexts

Using the flat contexts

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

We obtain the transformed TRS
c(a(b(b(x1)))) c(c(b(a(x1)))) (8)
c(b(a(a(x1)))) c(a(c(c(x1)))) (9)
c(c(a(c(x1)))) c(c(c(b(x1)))) (10)
c(b(c(a(x1)))) c(b(b(a(x1)))) (11)
c(b(c(c(x1)))) c(a(a(a(x1)))) (12)
c(a(b(c(x1)))) c(a(a(b(x1)))) (13)
c(b(c(b(x1)))) c(c(a(b(x1)))) (14)
b(a(b(b(x1)))) b(c(b(a(x1)))) (15)
b(b(a(a(x1)))) b(a(c(c(x1)))) (16)
b(c(a(c(x1)))) b(c(c(b(x1)))) (17)
b(b(c(a(x1)))) b(b(b(a(x1)))) (18)
b(b(c(c(x1)))) b(a(a(a(x1)))) (19)
b(a(b(c(x1)))) b(a(a(b(x1)))) (20)
b(b(c(b(x1)))) b(c(a(b(x1)))) (21)
a(a(b(b(x1)))) a(c(b(a(x1)))) (22)
a(b(a(a(x1)))) a(a(c(c(x1)))) (23)
a(c(a(c(x1)))) a(c(c(b(x1)))) (24)
a(b(c(a(x1)))) a(b(b(a(x1)))) (25)
a(b(c(c(x1)))) a(a(a(a(x1)))) (26)
a(a(b(c(x1)))) a(a(a(b(x1)))) (27)
a(b(c(b(x1)))) a(c(a(b(x1)))) (28)

1.1 Semantic Labeling

The following interpretations form a model of the rules.

As carrier we take the set {0,1,2}. Symbols are labeled by the interpretation of their arguments using the interpretations (modulo 3):

[c(x1)] = 3x1 + 0
[b(x1)] = 3x1 + 1
[a(x1)] = 3x1 + 2

We obtain the labeled TRS
a2(a1(b1(b2(x1)))) a0(c1(b2(a2(x1)))) (29)
a2(a1(b1(b1(x1)))) a0(c1(b2(a1(x1)))) (30)
a2(a1(b1(b0(x1)))) a0(c1(b2(a0(x1)))) (31)
b2(a1(b1(b2(x1)))) b0(c1(b2(a2(x1)))) (32)
b2(a1(b1(b1(x1)))) b0(c1(b2(a1(x1)))) (33)
b2(a1(b1(b0(x1)))) b0(c1(b2(a0(x1)))) (34)
c2(a1(b1(b2(x1)))) c0(c1(b2(a2(x1)))) (35)
c2(a1(b1(b1(x1)))) c0(c1(b2(a1(x1)))) (36)
c2(a1(b1(b0(x1)))) c0(c1(b2(a0(x1)))) (37)
a1(b2(a2(a2(x1)))) a2(a0(c0(c2(x1)))) (38)
a1(b2(a2(a1(x1)))) a2(a0(c0(c1(x1)))) (39)
a1(b2(a2(a0(x1)))) a2(a0(c0(c0(x1)))) (40)
b1(b2(a2(a2(x1)))) b2(a0(c0(c2(x1)))) (41)
b1(b2(a2(a1(x1)))) b2(a0(c0(c1(x1)))) (42)
b1(b2(a2(a0(x1)))) b2(a0(c0(c0(x1)))) (43)
c1(b2(a2(a2(x1)))) c2(a0(c0(c2(x1)))) (44)
c1(b2(a2(a1(x1)))) c2(a0(c0(c1(x1)))) (45)
c1(b2(a2(a0(x1)))) c2(a0(c0(c0(x1)))) (46)
a0(c2(a0(c2(x1)))) a0(c0(c1(b2(x1)))) (47)
a0(c2(a0(c1(x1)))) a0(c0(c1(b1(x1)))) (48)
a0(c2(a0(c0(x1)))) a0(c0(c1(b0(x1)))) (49)
b0(c2(a0(c2(x1)))) b0(c0(c1(b2(x1)))) (50)
b0(c2(a0(c1(x1)))) b0(c0(c1(b1(x1)))) (51)
b0(c2(a0(c0(x1)))) b0(c0(c1(b0(x1)))) (52)
c0(c2(a0(c2(x1)))) c0(c0(c1(b2(x1)))) (53)
c0(c2(a0(c1(x1)))) c0(c0(c1(b1(x1)))) (54)
c0(c2(a0(c0(x1)))) c0(c0(c1(b0(x1)))) (55)
a1(b0(c2(a2(x1)))) a1(b1(b2(a2(x1)))) (56)
a1(b0(c2(a1(x1)))) a1(b1(b2(a1(x1)))) (57)
a1(b0(c2(a0(x1)))) a1(b1(b2(a0(x1)))) (58)
b1(b0(c2(a2(x1)))) b1(b1(b2(a2(x1)))) (59)
b1(b0(c2(a1(x1)))) b1(b1(b2(a1(x1)))) (60)
b1(b0(c2(a0(x1)))) b1(b1(b2(a0(x1)))) (61)
c1(b0(c2(a2(x1)))) c1(b1(b2(a2(x1)))) (62)
c1(b0(c2(a1(x1)))) c1(b1(b2(a1(x1)))) (63)
c1(b0(c2(a0(x1)))) c1(b1(b2(a0(x1)))) (64)
a1(b0(c0(c2(x1)))) a2(a2(a2(a2(x1)))) (65)
a1(b0(c0(c1(x1)))) a2(a2(a2(a1(x1)))) (66)
a1(b0(c0(c0(x1)))) a2(a2(a2(a0(x1)))) (67)
b1(b0(c0(c2(x1)))) b2(a2(a2(a2(x1)))) (68)
b1(b0(c0(c1(x1)))) b2(a2(a2(a1(x1)))) (69)
b1(b0(c0(c0(x1)))) b2(a2(a2(a0(x1)))) (70)
c1(b0(c0(c2(x1)))) c2(a2(a2(a2(x1)))) (71)
c1(b0(c0(c1(x1)))) c2(a2(a2(a1(x1)))) (72)
c1(b0(c0(c0(x1)))) c2(a2(a2(a0(x1)))) (73)
a2(a1(b0(c2(x1)))) a2(a2(a1(b2(x1)))) (74)
a2(a1(b0(c1(x1)))) a2(a2(a1(b1(x1)))) (75)
a2(a1(b0(c0(x1)))) a2(a2(a1(b0(x1)))) (76)
b2(a1(b0(c2(x1)))) b2(a2(a1(b2(x1)))) (77)
b2(a1(b0(c1(x1)))) b2(a2(a1(b1(x1)))) (78)
b2(a1(b0(c0(x1)))) b2(a2(a1(b0(x1)))) (79)
c2(a1(b0(c2(x1)))) c2(a2(a1(b2(x1)))) (80)
c2(a1(b0(c1(x1)))) c2(a2(a1(b1(x1)))) (81)
c2(a1(b0(c0(x1)))) c2(a2(a1(b0(x1)))) (82)
a1(b0(c1(b2(x1)))) a0(c2(a1(b2(x1)))) (83)
a1(b0(c1(b1(x1)))) a0(c2(a1(b1(x1)))) (84)
a1(b0(c1(b0(x1)))) a0(c2(a1(b0(x1)))) (85)
b1(b0(c1(b2(x1)))) b0(c2(a1(b2(x1)))) (86)
b1(b0(c1(b1(x1)))) b0(c2(a1(b1(x1)))) (87)
b1(b0(c1(b0(x1)))) b0(c2(a1(b0(x1)))) (88)
c1(b0(c1(b2(x1)))) c0(c2(a1(b2(x1)))) (89)
c1(b0(c1(b1(x1)))) c0(c2(a1(b1(x1)))) (90)
c1(b0(c1(b0(x1)))) c0(c2(a1(b0(x1)))) (91)

1.1.1 String Reversal

Since only unary symbols occur, one can reverse all terms and obtains the TRS
b2(b1(a1(a2(x1)))) a2(b2(c1(a0(x1)))) (92)
b1(b1(a1(a2(x1)))) a1(b2(c1(a0(x1)))) (93)
b0(b1(a1(a2(x1)))) a0(b2(c1(a0(x1)))) (94)
b2(b1(a1(b2(x1)))) a2(b2(c1(b0(x1)))) (95)
b1(b1(a1(b2(x1)))) a1(b2(c1(b0(x1)))) (96)
b0(b1(a1(b2(x1)))) a0(b2(c1(b0(x1)))) (97)
b2(b1(a1(c2(x1)))) a2(b2(c1(c0(x1)))) (98)
b1(b1(a1(c2(x1)))) a1(b2(c1(c0(x1)))) (99)
b0(b1(a1(c2(x1)))) a0(b2(c1(c0(x1)))) (100)
a2(a2(b2(a1(x1)))) c2(c0(a0(a2(x1)))) (101)
a1(a2(b2(a1(x1)))) c1(c0(a0(a2(x1)))) (102)
a0(a2(b2(a1(x1)))) c0(c0(a0(a2(x1)))) (103)
a2(a2(b2(b1(x1)))) c2(c0(a0(b2(x1)))) (104)
a1(a2(b2(b1(x1)))) c1(c0(a0(b2(x1)))) (105)
a0(a2(b2(b1(x1)))) c0(c0(a0(b2(x1)))) (106)
a2(a2(b2(c1(x1)))) c2(c0(a0(c2(x1)))) (107)
a1(a2(b2(c1(x1)))) c1(c0(a0(c2(x1)))) (108)
a0(a2(b2(c1(x1)))) c0(c0(a0(c2(x1)))) (109)
c2(a0(c2(a0(x1)))) b2(c1(c0(a0(x1)))) (110)
c1(a0(c2(a0(x1)))) b1(c1(c0(a0(x1)))) (111)
c0(a0(c2(a0(x1)))) b0(c1(c0(a0(x1)))) (112)
c2(a0(c2(b0(x1)))) b2(c1(c0(b0(x1)))) (113)
c1(a0(c2(b0(x1)))) b1(c1(c0(b0(x1)))) (114)
c0(a0(c2(b0(x1)))) b0(c1(c0(b0(x1)))) (115)
c2(a0(c2(c0(x1)))) b2(c1(c0(c0(x1)))) (116)
c1(a0(c2(c0(x1)))) b1(c1(c0(c0(x1)))) (117)
c0(a0(c2(c0(x1)))) b0(c1(c0(c0(x1)))) (118)
a2(c2(b0(a1(x1)))) a2(b2(b1(a1(x1)))) (119)
a1(c2(b0(a1(x1)))) a1(b2(b1(a1(x1)))) (120)
a0(c2(b0(a1(x1)))) a0(b2(b1(a1(x1)))) (121)
a2(c2(b0(b1(x1)))) a2(b2(b1(b1(x1)))) (122)
a1(c2(b0(b1(x1)))) a1(b2(b1(b1(x1)))) (123)
a0(c2(b0(b1(x1)))) a0(b2(b1(b1(x1)))) (124)
a2(c2(b0(c1(x1)))) a2(b2(b1(c1(x1)))) (125)
a1(c2(b0(c1(x1)))) a1(b2(b1(c1(x1)))) (126)
a0(c2(b0(c1(x1)))) a0(b2(b1(c1(x1)))) (127)
c2(c0(b0(a1(x1)))) a2(a2(a2(a2(x1)))) (128)
c1(c0(b0(a1(x1)))) a1(a2(a2(a2(x1)))) (129)
c0(c0(b0(a1(x1)))) a0(a2(a2(a2(x1)))) (130)
c2(c0(b0(b1(x1)))) a2(a2(a2(b2(x1)))) (131)
c1(c0(b0(b1(x1)))) a1(a2(a2(b2(x1)))) (132)
c0(c0(b0(b1(x1)))) a0(a2(a2(b2(x1)))) (133)
c2(c0(b0(c1(x1)))) a2(a2(a2(c2(x1)))) (134)
c1(c0(b0(c1(x1)))) a1(a2(a2(c2(x1)))) (135)
c0(c0(b0(c1(x1)))) a0(a2(a2(c2(x1)))) (136)
c2(b0(a1(a2(x1)))) b2(a1(a2(a2(x1)))) (137)
c1(b0(a1(a2(x1)))) b1(a1(a2(a2(x1)))) (138)
c0(b0(a1(a2(x1)))) b0(a1(a2(a2(x1)))) (139)
c2(b0(a1(b2(x1)))) b2(a1(a2(b2(x1)))) (140)
c1(b0(a1(b2(x1)))) b1(a1(a2(b2(x1)))) (141)
c0(b0(a1(b2(x1)))) b0(a1(a2(b2(x1)))) (142)
c2(b0(a1(c2(x1)))) b2(a1(a2(c2(x1)))) (143)
c1(b0(a1(c2(x1)))) b1(a1(a2(c2(x1)))) (144)
c0(b0(a1(c2(x1)))) b0(a1(a2(c2(x1)))) (145)
b2(c1(b0(a1(x1)))) b2(a1(c2(a0(x1)))) (146)
b1(c1(b0(a1(x1)))) b1(a1(c2(a0(x1)))) (147)
b0(c1(b0(a1(x1)))) b0(a1(c2(a0(x1)))) (148)
b2(c1(b0(b1(x1)))) b2(a1(c2(b0(x1)))) (149)
b1(c1(b0(b1(x1)))) b1(a1(c2(b0(x1)))) (150)
b0(c1(b0(b1(x1)))) b0(a1(c2(b0(x1)))) (151)
b2(c1(b0(c1(x1)))) b2(a1(c2(c0(x1)))) (152)
b1(c1(b0(c1(x1)))) b1(a1(c2(c0(x1)))) (153)
b0(c1(b0(c1(x1)))) b0(a1(c2(c0(x1)))) (154)

1.1.1.1 Rule Removal

Using the matrix interpretations of dimension 1 with strict dimension 1 over the naturals
[c0(x1)] =
2
· x1 +
0
[c1(x1)] =
2
· x1 +
1
[c2(x1)] =
2
· x1 +
1
[b0(x1)] =
2
· x1 +
1
[b1(x1)] =
2
· x1 +
1
[b2(x1)] =
2
· x1 +
1
[a0(x1)] =
2
· x1 +
0
[a1(x1)] =
2
· x1 +
1
[a2(x1)] =
2
· x1 +
0
all of the following rules can be deleted.
b2(b1(a1(a2(x1)))) a2(b2(c1(a0(x1)))) (92)
b0(b1(a1(a2(x1)))) a0(b2(c1(a0(x1)))) (94)
b2(b1(a1(b2(x1)))) a2(b2(c1(b0(x1)))) (95)
b0(b1(a1(b2(x1)))) a0(b2(c1(b0(x1)))) (97)
b2(b1(a1(c2(x1)))) a2(b2(c1(c0(x1)))) (98)
b1(b1(a1(c2(x1)))) a1(b2(c1(c0(x1)))) (99)
b0(b1(a1(c2(x1)))) a0(b2(c1(c0(x1)))) (100)
a2(a2(b2(a1(x1)))) c2(c0(a0(a2(x1)))) (101)
a1(a2(b2(a1(x1)))) c1(c0(a0(a2(x1)))) (102)
a0(a2(b2(a1(x1)))) c0(c0(a0(a2(x1)))) (103)
a2(a2(b2(b1(x1)))) c2(c0(a0(b2(x1)))) (104)
a1(a2(b2(b1(x1)))) c1(c0(a0(b2(x1)))) (105)
a0(a2(b2(b1(x1)))) c0(c0(a0(b2(x1)))) (106)
a2(a2(b2(c1(x1)))) c2(c0(a0(c2(x1)))) (107)
a1(a2(b2(c1(x1)))) c1(c0(a0(c2(x1)))) (108)
a0(a2(b2(c1(x1)))) c0(c0(a0(c2(x1)))) (109)
c2(a0(c2(a0(x1)))) b2(c1(c0(a0(x1)))) (110)
c1(a0(c2(a0(x1)))) b1(c1(c0(a0(x1)))) (111)
c0(a0(c2(a0(x1)))) b0(c1(c0(a0(x1)))) (112)
c2(a0(c2(b0(x1)))) b2(c1(c0(b0(x1)))) (113)
c1(a0(c2(b0(x1)))) b1(c1(c0(b0(x1)))) (114)
c0(a0(c2(b0(x1)))) b0(c1(c0(b0(x1)))) (115)
c2(a0(c2(c0(x1)))) b2(c1(c0(c0(x1)))) (116)
c1(a0(c2(c0(x1)))) b1(c1(c0(c0(x1)))) (117)
c0(a0(c2(c0(x1)))) b0(c1(c0(c0(x1)))) (118)
c2(c0(b0(a1(x1)))) a2(a2(a2(a2(x1)))) (128)
c1(c0(b0(a1(x1)))) a1(a2(a2(a2(x1)))) (129)
c0(c0(b0(a1(x1)))) a0(a2(a2(a2(x1)))) (130)
c2(c0(b0(b1(x1)))) a2(a2(a2(b2(x1)))) (131)
c1(c0(b0(b1(x1)))) a1(a2(a2(b2(x1)))) (132)
c0(c0(b0(b1(x1)))) a0(a2(a2(b2(x1)))) (133)
c2(c0(b0(c1(x1)))) a2(a2(a2(c2(x1)))) (134)
c1(c0(b0(c1(x1)))) a1(a2(a2(c2(x1)))) (135)
c0(c0(b0(c1(x1)))) a0(a2(a2(c2(x1)))) (136)
c2(b0(a1(a2(x1)))) b2(a1(a2(a2(x1)))) (137)
c1(b0(a1(a2(x1)))) b1(a1(a2(a2(x1)))) (138)
c0(b0(a1(a2(x1)))) b0(a1(a2(a2(x1)))) (139)
c2(b0(a1(b2(x1)))) b2(a1(a2(b2(x1)))) (140)
c1(b0(a1(b2(x1)))) b1(a1(a2(b2(x1)))) (141)
c0(b0(a1(b2(x1)))) b0(a1(a2(b2(x1)))) (142)
c2(b0(a1(c2(x1)))) b2(a1(a2(c2(x1)))) (143)
c1(b0(a1(c2(x1)))) b1(a1(a2(c2(x1)))) (144)
c0(b0(a1(c2(x1)))) b0(a1(a2(c2(x1)))) (145)
b2(c1(b0(a1(x1)))) b2(a1(c2(a0(x1)))) (146)
b1(c1(b0(a1(x1)))) b1(a1(c2(a0(x1)))) (147)
b0(c1(b0(a1(x1)))) b0(a1(c2(a0(x1)))) (148)
b2(c1(b0(c1(x1)))) b2(a1(c2(c0(x1)))) (152)
b1(c1(b0(c1(x1)))) b1(a1(c2(c0(x1)))) (153)
b0(c1(b0(c1(x1)))) b0(a1(c2(c0(x1)))) (154)

1.1.1.1.1 Rule Removal

Using the matrix interpretations of dimension 1 with strict dimension 1 over the rationals with delta = 1
[c1(x1)] = x1 +
1
[c2(x1)] = x1 +
3/2
[b0(x1)] = x1 +
1
[b1(x1)] = x1 +
3/2
[b2(x1)] = x1 +
0
[a0(x1)] = x1 +
0
[a1(x1)] = x1 +
0
[a2(x1)] = x1 +
1
all of the following rules can be deleted.
b1(b1(a1(a2(x1)))) a1(b2(c1(a0(x1)))) (93)
b1(b1(a1(b2(x1)))) a1(b2(c1(b0(x1)))) (96)
a2(c2(b0(a1(x1)))) a2(b2(b1(a1(x1)))) (119)
a1(c2(b0(a1(x1)))) a1(b2(b1(a1(x1)))) (120)
a0(c2(b0(a1(x1)))) a0(b2(b1(a1(x1)))) (121)
a2(c2(b0(b1(x1)))) a2(b2(b1(b1(x1)))) (122)
a1(c2(b0(b1(x1)))) a1(b2(b1(b1(x1)))) (123)
a0(c2(b0(b1(x1)))) a0(b2(b1(b1(x1)))) (124)
a2(c2(b0(c1(x1)))) a2(b2(b1(c1(x1)))) (125)
a1(c2(b0(c1(x1)))) a1(b2(b1(c1(x1)))) (126)
a0(c2(b0(c1(x1)))) a0(b2(b1(c1(x1)))) (127)
b2(c1(b0(b1(x1)))) b2(a1(c2(b0(x1)))) (149)
b1(c1(b0(b1(x1)))) b1(a1(c2(b0(x1)))) (150)
b0(c1(b0(b1(x1)))) b0(a1(c2(b0(x1)))) (151)

1.1.1.1.1.1 String Reversal

Since only unary symbols occur, one can reverse all terms and obtains the TRS

There are no rules.

1.1.1.1.1.1.1 R is empty

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