Certification Problem
Input (TPDB TRS_Standard/Transformed_CSR_04/PALINDROME_nosorts_FR)
The rewrite relation of the following TRS is considered.
__(__(X,Y),Z) |
→ |
__(X,__(Y,Z)) |
(1) |
__(X,nil) |
→ |
X |
(2) |
__(nil,X) |
→ |
X |
(3) |
and(tt,X) |
→ |
activate(X) |
(4) |
isNePal(__(I,__(P,I))) |
→ |
tt |
(5) |
activate(X) |
→ |
X |
(6) |
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(isNePal) |
= |
5 |
|
weight(isNePal) |
= |
5 |
|
|
|
prec(activate) |
= |
0 |
|
weight(activate) |
= |
3 |
|
|
|
prec(and) |
= |
1 |
|
weight(and) |
= |
1 |
|
|
|
prec(tt) |
= |
3 |
|
weight(tt) |
= |
2 |
|
|
|
prec(nil) |
= |
2 |
|
weight(nil) |
= |
4 |
|
|
|
prec(__) |
= |
4 |
|
weight(__) |
= |
0 |
|
|
|
all of the following rules can be deleted.
__(__(X,Y),Z) |
→ |
__(X,__(Y,Z)) |
(1) |
__(X,nil) |
→ |
X |
(2) |
__(nil,X) |
→ |
X |
(3) |
and(tt,X) |
→ |
activate(X) |
(4) |
isNePal(__(I,__(P,I))) |
→ |
tt |
(5) |
activate(X) |
→ |
X |
(6) |
1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.