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