Certification Problem
Input (TPDB TRS_Standard/Transformed_CSR_04/Ex1_2_Luc02c_FR)
The rewrite relation of the following TRS is considered.
2nd(cons(X,n__cons(Y,Z))) |
→ |
activate(Y) |
(1) |
from(X) |
→ |
cons(X,n__from(n__s(X))) |
(2) |
cons(X1,X2) |
→ |
n__cons(X1,X2) |
(3) |
from(X) |
→ |
n__from(X) |
(4) |
s(X) |
→ |
n__s(X) |
(5) |
activate(n__cons(X1,X2)) |
→ |
cons(activate(X1),X2) |
(6) |
activate(n__from(X)) |
→ |
from(activate(X)) |
(7) |
activate(n__s(X)) |
→ |
s(activate(X)) |
(8) |
activate(X) |
→ |
X |
(9) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by AProVE @ termCOMP 2023)
1 Rule Removal
Using the
prec(2nd) |
= |
6 |
|
stat(2nd) |
= |
mul
|
prec(cons) |
= |
1 |
|
stat(cons) |
= |
mul
|
prec(n__cons) |
= |
0 |
|
stat(n__cons) |
= |
mul
|
prec(activate) |
= |
6 |
|
stat(activate) |
= |
mul
|
prec(from) |
= |
4 |
|
stat(from) |
= |
mul
|
prec(n__from) |
= |
2 |
|
stat(n__from) |
= |
mul
|
prec(n__s) |
= |
3 |
|
stat(n__s) |
= |
mul
|
prec(s) |
= |
5 |
|
stat(s) |
= |
mul
|
π(2nd) |
= |
[1] |
π(cons) |
= |
[1,2] |
π(n__cons) |
= |
[1,2] |
π(activate) |
= |
[1] |
π(from) |
= |
[1] |
π(n__from) |
= |
[1] |
π(n__s) |
= |
[1] |
π(s) |
= |
[1] |
all of the following rules can be deleted.
2nd(cons(X,n__cons(Y,Z))) |
→ |
activate(Y) |
(1) |
from(X) |
→ |
cons(X,n__from(n__s(X))) |
(2) |
cons(X1,X2) |
→ |
n__cons(X1,X2) |
(3) |
from(X) |
→ |
n__from(X) |
(4) |
s(X) |
→ |
n__s(X) |
(5) |
activate(n__cons(X1,X2)) |
→ |
cons(activate(X1),X2) |
(6) |
activate(n__from(X)) |
→ |
from(activate(X)) |
(7) |
activate(n__s(X)) |
→ |
s(activate(X)) |
(8) |
activate(X) |
→ |
X |
(9) |
1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.