Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex4_Zan97_FR)

The rewrite relation of the following TRS is considered.

f(X) cons(X,n__f(n__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)
g(X) n__g(X) (7)
activate(n__f(X)) f(activate(X)) (8)
activate(n__g(X)) g(activate(X)) (9)
activate(X) X (10)

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) = 2 status(activate) = [1] list-extension(activate) = Lex
prec(sel) = 3 status(sel) = [1, 2] list-extension(sel) = Lex
prec(s) = 0 status(s) = [1] list-extension(s) = Lex
prec(g) = 1 status(g) = [1] list-extension(g) = Lex
prec(0) = 0 status(0) = [] list-extension(0) = Lex
prec(cons) = 0 status(cons) = [2, 1] list-extension(cons) = Lex
prec(n__f) = 0 status(n__f) = [1] list-extension(n__f) = Lex
prec(n__g) = 0 status(n__g) = [1] list-extension(n__g) = Lex
prec(f) = 1 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)] = 0 + 1 · x1
[g(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)
[n__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(n__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)
g(X) n__g(X) (7)
activate(n__f(X)) f(activate(X)) (8)
activate(n__g(X)) g(activate(X)) (9)
activate(X) X (10)

1.1 R is empty

There are no rules in the TRS. Hence, it is terminating.