Certification Problem
Input (TPDB TRS_Standard/Transformed_CSR_04/Ex4_7_77_Bor03_FR)
The rewrite relation of the following TRS is considered.
zeros |
→ |
cons(0,n__zeros) |
(1) |
tail(cons(X,XS)) |
→ |
activate(XS) |
(2) |
zeros |
→ |
n__zeros |
(3) |
activate(n__zeros) |
→ |
zeros |
(4) |
activate(X) |
→ |
X |
(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(activate) |
= |
0 |
|
weight(activate) |
= |
7 |
|
|
|
prec(tail) |
= |
2 |
|
weight(tail) |
= |
5 |
|
|
|
prec(cons) |
= |
1 |
|
weight(cons) |
= |
1 |
|
|
|
prec(n__zeros) |
= |
3 |
|
weight(n__zeros) |
= |
1 |
|
|
|
prec(0) |
= |
4 |
|
weight(0) |
= |
5 |
|
|
|
prec(zeros) |
= |
5 |
|
weight(zeros) |
= |
7 |
|
|
|
all of the following rules can be deleted.
zeros |
→ |
cons(0,n__zeros) |
(1) |
tail(cons(X,XS)) |
→ |
activate(XS) |
(2) |
zeros |
→ |
n__zeros |
(3) |
activate(n__zeros) |
→ |
zeros |
(4) |
activate(X) |
→ |
X |
(5) |
1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.