Certification Problem
Input (TPDB SRS_Standard/Zantema_04/z122)
The rewrite relation of the following TRS is considered.
a(a(x1)) |
→ |
b(c(x1)) |
(1) |
b(b(x1)) |
→ |
c(d(x1)) |
(2) |
c(c(x1)) |
→ |
d(d(d(x1))) |
(3) |
d(c(x1)) |
→ |
b(f(x1)) |
(4) |
d(d(d(x1))) |
→ |
a(c(x1)) |
(5) |
f(f(x1)) |
→ |
f(b(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(a(x1)) |
→ |
c(b(x1)) |
(7) |
b(b(x1)) |
→ |
d(c(x1)) |
(8) |
c(c(x1)) |
→ |
d(d(d(x1))) |
(3) |
c(d(x1)) |
→ |
f(b(x1)) |
(9) |
d(d(d(x1))) |
→ |
c(a(x1)) |
(10) |
f(f(x1)) |
→ |
b(f(x1)) |
(11) |
1.1 Rule Removal
Using the
linear polynomial interpretation over the arctic semiring over the integers
[f(x1)] |
= |
5 · x1 +
-∞ |
[c(x1)] |
= |
6 · x1 +
-∞ |
[d(x1)] |
= |
4 · x1 +
-∞ |
[a(x1)] |
= |
6 · x1 +
-∞ |
[b(x1)] |
= |
5 · x1 +
-∞ |
all of the following rules can be deleted.
1.1.1 Rule Removal
Using the
Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(f) |
= |
4 |
|
weight(f) |
= |
5 |
|
|
|
prec(d) |
= |
0 |
|
weight(d) |
= |
4 |
|
|
|
prec(b) |
= |
2 |
|
weight(b) |
= |
5 |
|
|
|
prec(c) |
= |
5 |
|
weight(c) |
= |
6 |
|
|
|
prec(a) |
= |
1 |
|
weight(a) |
= |
1 |
|
|
|
all of the following rules can be deleted.
b(b(x1)) |
→ |
d(c(x1)) |
(8) |
c(c(x1)) |
→ |
d(d(d(x1))) |
(3) |
c(d(x1)) |
→ |
f(b(x1)) |
(9) |
d(d(d(x1))) |
→ |
c(a(x1)) |
(10) |
f(f(x1)) |
→ |
b(f(x1)) |
(11) |
1.1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.