Certification Problem
Input (TPDB SRS_Standard/Zantema_06/beans4)
The rewrite relation of the following TRS is considered.
b(a(a(x1))) |
→ |
a(b(c(x1))) |
(1) |
c(a(x1)) |
→ |
a(c(x1)) |
(2) |
b(c(a(x1))) |
→ |
a(b(c(x1))) |
(3) |
c(b(x1)) |
→ |
b(a(x1)) |
(4) |
a(c(b(x1))) |
→ |
c(b(a(x1))) |
(5) |
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(b(x1))) |
→ |
c(b(a(x1))) |
(6) |
a(c(x1)) |
→ |
c(a(x1)) |
(7) |
a(c(b(x1))) |
→ |
c(b(a(x1))) |
(5) |
b(c(x1)) |
→ |
a(b(x1)) |
(8) |
b(c(a(x1))) |
→ |
a(b(c(x1))) |
(3) |
1.1 Rule Removal
Using the
Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(c) |
= |
0 |
|
weight(c) |
= |
2 |
|
|
|
prec(b) |
= |
3 |
|
weight(b) |
= |
2 |
|
|
|
prec(a) |
= |
1 |
|
weight(a) |
= |
2 |
|
|
|
all of the following rules can be deleted.
a(a(b(x1))) |
→ |
c(b(a(x1))) |
(6) |
a(c(x1)) |
→ |
c(a(x1)) |
(7) |
a(c(b(x1))) |
→ |
c(b(a(x1))) |
(5) |
b(c(x1)) |
→ |
a(b(x1)) |
(8) |
b(c(a(x1))) |
→ |
a(b(c(x1))) |
(3) |
1.1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.