Certification Problem
Input (TPDB SRS_Standard/Zantema_04/z104)
The rewrite relation of the following TRS is considered.
c(c(c(a(x1)))) |
→ |
d(d(x1)) |
(1) |
d(b(x1)) |
→ |
c(c(x1)) |
(2) |
c(x1) |
→ |
a(a(a(a(x1)))) |
(3) |
d(x1) |
→ |
b(b(b(b(x1)))) |
(4) |
b(d(x1)) |
→ |
c(c(x1)) |
(5) |
a(c(c(c(x1)))) |
→ |
d(d(x1)) |
(6) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by ttt2 @ termCOMP 2023)
1 String Reversal
Since only unary symbols occur, one can reverse all terms and obtains the TRS
a(c(c(c(x1)))) |
→ |
d(d(x1)) |
(6) |
b(d(x1)) |
→ |
c(c(x1)) |
(5) |
c(x1) |
→ |
a(a(a(a(x1)))) |
(3) |
d(x1) |
→ |
b(b(b(b(x1)))) |
(4) |
d(b(x1)) |
→ |
c(c(x1)) |
(2) |
c(c(c(a(x1)))) |
→ |
d(d(x1)) |
(1) |
1.1 Rule Removal
Using the
linear polynomial interpretation over the arctic semiring over the integers
[c(x1)] |
= |
5 · x1 +
-∞ |
[b(x1)] |
= |
2 · x1 +
-∞ |
[a(x1)] |
= |
1 · x1 +
-∞ |
[d(x1)] |
= |
8 · x1 +
-∞ |
all of the following rules can be deleted.
c(x1) |
→ |
a(a(a(a(x1)))) |
(3) |
1.1.1 Rule Removal
Using the
Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(b) |
= |
3 |
|
weight(b) |
= |
0 |
|
|
|
prec(d) |
= |
0 |
|
weight(d) |
= |
4 |
|
|
|
prec(c) |
= |
1 |
|
weight(c) |
= |
1 |
|
|
|
prec(a) |
= |
2 |
|
weight(a) |
= |
6 |
|
|
|
all of the following rules can be deleted.
a(c(c(c(x1)))) |
→ |
d(d(x1)) |
(6) |
b(d(x1)) |
→ |
c(c(x1)) |
(5) |
d(x1) |
→ |
b(b(b(b(x1)))) |
(4) |
d(b(x1)) |
→ |
c(c(x1)) |
(2) |
c(c(c(a(x1)))) |
→ |
d(d(x1)) |
(1) |
1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.