Certification Problem
Input (TPDB SRS_Standard/ICFP_2010/264370)
The rewrite relation of the following TRS is considered.
0(1(2(3(4(x1))))) |
→ |
0(2(1(3(4(x1))))) |
(1) |
0(5(1(2(4(3(x1)))))) |
→ |
0(5(2(1(4(3(x1)))))) |
(2) |
0(5(2(4(1(3(x1)))))) |
→ |
0(1(5(2(4(3(x1)))))) |
(3) |
0(5(3(1(2(4(x1)))))) |
→ |
0(1(5(3(2(4(x1)))))) |
(4) |
0(5(4(1(3(2(x1)))))) |
→ |
0(5(4(3(1(2(x1)))))) |
(5) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by ttt2 @ termCOMP 2023)
1 Rule Removal
Using the
Knuth Bendix order with w0 = 1 and the following precedence and weight functions
prec(5) |
= |
6 |
|
weight(5) |
= |
4 |
|
|
|
prec(0) |
= |
1 |
|
weight(0) |
= |
2 |
|
|
|
prec(1) |
= |
5 |
|
weight(1) |
= |
2 |
|
|
|
prec(2) |
= |
0 |
|
weight(2) |
= |
2 |
|
|
|
prec(3) |
= |
4 |
|
weight(3) |
= |
2 |
|
|
|
prec(4) |
= |
7 |
|
weight(4) |
= |
2 |
|
|
|
all of the following rules can be deleted.
0(1(2(3(4(x1))))) |
→ |
0(2(1(3(4(x1))))) |
(1) |
0(5(1(2(4(3(x1)))))) |
→ |
0(5(2(1(4(3(x1)))))) |
(2) |
0(5(2(4(1(3(x1)))))) |
→ |
0(1(5(2(4(3(x1)))))) |
(3) |
0(5(3(1(2(4(x1)))))) |
→ |
0(1(5(3(2(4(x1)))))) |
(4) |
0(5(4(1(3(2(x1)))))) |
→ |
0(5(4(3(1(2(x1)))))) |
(5) |
1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.