Certification Problem
Input (TPDB TRS_Standard/Transformed_CSR_04/Ex4_Zan97_Z)
The rewrite relation of the following TRS is considered.
f(X) |
→ |
cons(X,n__f(g(X))) |
(1) |
g(0) |
→ |
s(0) |
(2) |
g(s(X)) |
→ |
s(s(g(X))) |
(3) |
sel(0,cons(X,Y)) |
→ |
X |
(4) |
sel(s(X),cons(Y,Z)) |
→ |
sel(X,activate(Z)) |
(5) |
f(X) |
→ |
n__f(X) |
(6) |
activate(n__f(X)) |
→ |
f(X) |
(7) |
activate(X) |
→ |
X |
(8) |
Property / Task
Prove or disprove termination.Answer / Result
Yes.Proof (by ttt2 @ termCOMP 2023)
1 Rule Removal
Using the
Weighted Path Order with the following precedence and status
prec(activate) |
= |
4 |
|
status(activate) |
= |
[1] |
|
list-extension(activate) |
= |
Lex |
prec(sel) |
= |
5 |
|
status(sel) |
= |
[1, 2] |
|
list-extension(sel) |
= |
Lex |
prec(s) |
= |
0 |
|
status(s) |
= |
[1] |
|
list-extension(s) |
= |
Lex |
prec(0) |
= |
0 |
|
status(0) |
= |
[] |
|
list-extension(0) |
= |
Lex |
prec(cons) |
= |
0 |
|
status(cons) |
= |
[1, 2] |
|
list-extension(cons) |
= |
Lex |
prec(n__f) |
= |
0 |
|
status(n__f) |
= |
[1] |
|
list-extension(n__f) |
= |
Lex |
prec(g) |
= |
1 |
|
status(g) |
= |
[1] |
|
list-extension(g) |
= |
Lex |
prec(f) |
= |
3 |
|
status(f) |
= |
[1] |
|
list-extension(f) |
= |
Lex |
and the following
Max-polynomial interpretation
[activate(x1)] |
=
|
max(0, 0 + 1 · x1) |
[sel(x1, x2)] |
=
|
max(0, 2 + 1 · x1, 0 + 1 · x2) |
[s(x1)] |
=
|
max(0, 0 + 1 · x1) |
[0] |
=
|
max(0) |
[cons(x1, x2)] |
=
|
max(0, 0 + 1 · x1, 0 + 1 · x2) |
[n__f(x1)] |
=
|
max(0, 0 + 1 · x1) |
[g(x1)] |
=
|
max(0, 0 + 1 · x1) |
[f(x1)] |
=
|
max(0, 0 + 1 · x1) |
all of the following rules can be deleted.
f(X) |
→ |
cons(X,n__f(g(X))) |
(1) |
g(0) |
→ |
s(0) |
(2) |
g(s(X)) |
→ |
s(s(g(X))) |
(3) |
sel(0,cons(X,Y)) |
→ |
X |
(4) |
sel(s(X),cons(Y,Z)) |
→ |
sel(X,activate(Z)) |
(5) |
f(X) |
→ |
n__f(X) |
(6) |
activate(n__f(X)) |
→ |
f(X) |
(7) |
activate(X) |
→ |
X |
(8) |
1.1 R is empty
There are no rules in the TRS. Hence, it is terminating.