The rewrite relation of the following TRS is considered.
a(b(c(x1))) | → | c(b(a(x1))) | (1) |
C(B(A(x1))) | → | A(B(C(x1))) | (2) |
b(a(C(x1))) | → | C(a(b(x1))) | (3) |
c(A(B(x1))) | → | B(A(c(x1))) | (4) |
A(c(b(x1))) | → | b(c(A(x1))) | (5) |
B(C(a(x1))) | → | a(C(B(x1))) | (6) |
a(A(x1)) | → | x1 | (7) |
A(a(x1)) | → | x1 | (8) |
b(B(x1)) | → | x1 | (9) |
B(b(x1)) | → | x1 | (10) |
c(C(x1)) | → | x1 | (11) |
C(c(x1)) | → | x1 | (12) |
c(b(a(x1))) | → | a(b(c(x1))) | (13) |
A(B(C(x1))) | → | C(B(A(x1))) | (14) |
C(a(b(x1))) | → | b(a(C(x1))) | (15) |
B(A(c(x1))) | → | c(A(B(x1))) | (16) |
b(c(A(x1))) | → | A(c(b(x1))) | (17) |
a(C(B(x1))) | → | B(C(a(x1))) | (18) |
A(a(x1)) | → | x1 | (8) |
a(A(x1)) | → | x1 | (7) |
B(b(x1)) | → | x1 | (10) |
b(B(x1)) | → | x1 | (9) |
C(c(x1)) | → | x1 | (12) |
c(C(x1)) | → | x1 | (11) |
[B(x1)] | = | 3 · x1 + -∞ |
[b(x1)] | = | 1 · x1 + -∞ |
[A(x1)] | = | 1 · x1 + -∞ |
[C(x1)] | = | 10 · x1 + -∞ |
[c(x1)] | = | 0 · x1 + -∞ |
[a(x1)] | = | 1 · x1 + -∞ |
A(a(x1)) | → | x1 | (8) |
a(A(x1)) | → | x1 | (7) |
B(b(x1)) | → | x1 | (10) |
b(B(x1)) | → | x1 | (9) |
C(c(x1)) | → | x1 | (12) |
c(C(x1)) | → | x1 | (11) |
[B(x1)] | = |
|
||||||||||||||||||||||||
[b(x1)] | = |
|
||||||||||||||||||||||||
[A(x1)] | = |
|
||||||||||||||||||||||||
[C(x1)] | = |
|
||||||||||||||||||||||||
[c(x1)] | = |
|
||||||||||||||||||||||||
[a(x1)] | = |
|
A(B(C(x1))) | → | C(B(A(x1))) | (14) |
[B(x1)] | = |
|
||||||||||||||||||||||||
[b(x1)] | = |
|
||||||||||||||||||||||||
[A(x1)] | = |
|
||||||||||||||||||||||||
[C(x1)] | = |
|
||||||||||||||||||||||||
[c(x1)] | = |
|
||||||||||||||||||||||||
[a(x1)] | = |
|
a(C(B(x1))) | → | B(C(a(x1))) | (18) |
prec(C) | = | 7 | weight(C) | = | 2 | ||||
prec(B) | = | 3 | weight(B) | = | 2 | ||||
prec(A) | = | 2 | weight(A) | = | 2 | ||||
prec(a) | = | 0 | weight(a) | = | 2 | ||||
prec(b) | = | 6 | weight(b) | = | 2 | ||||
prec(c) | = | 1 | weight(c) | = | 4 |
c(b(a(x1))) | → | a(b(c(x1))) | (13) |
C(a(b(x1))) | → | b(a(C(x1))) | (15) |
B(A(c(x1))) | → | c(A(B(x1))) | (16) |
b(c(A(x1))) | → | A(c(b(x1))) | (17) |
There are no rules in the TRS. Hence, it is terminating.