Certification Problem

Input (TPDB TRS_Standard/Transformed_CSR_04/Ex7_BLR02_Z)

The rewrite relation of the following TRS is considered.

from(X) cons(X,n__from(s(X))) (1)
head(cons(X,XS)) X (2)
2nd(cons(X,XS)) head(activate(XS)) (3)
take(0,XS) nil (4)
take(s(N),cons(X,XS)) cons(X,n__take(N,activate(XS))) (5)
sel(0,cons(X,XS)) X (6)
sel(s(N),cons(X,XS)) sel(N,activate(XS)) (7)
from(X) n__from(X) (8)
take(X1,X2) n__take(X1,X2) (9)
activate(n__from(X)) from(X) (10)
activate(n__take(X1,X2)) take(X1,X2) (11)
activate(X) X (12)

Property / Task

Prove or disprove termination.

Answer / Result

Yes.

Proof (by NaTT @ termCOMP 2023)

1 Dependency Pair Transformation

The following set of initial dependency pairs has been identified.
sel#(s(N),cons(X,XS)) sel#(N,activate(XS)) (13)
2nd#(cons(X,XS)) head#(activate(XS)) (14)
2nd#(cons(X,XS)) activate#(XS) (15)
take#(s(N),cons(X,XS)) activate#(XS) (16)
sel#(s(N),cons(X,XS)) activate#(XS) (17)
activate#(n__take(X1,X2)) take#(X1,X2) (18)
activate#(n__from(X)) from#(X) (19)

1.1 Dependency Graph Processor

The dependency pairs are split into 2 components.