YES We show the termination of the TRS R: from(X) -> cons(X,n__from(n__s(X))) sel(|0|(),cons(X,Y)) -> X sel(s(X),cons(Y,Z)) -> sel(X,activate(Z)) from(X) -> n__from(X) s(X) -> n__s(X) activate(n__from(X)) -> from(activate(X)) activate(n__s(X)) -> s(activate(X)) activate(X) -> X -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: sel#(s(X),cons(Y,Z)) -> sel#(X,activate(Z)) p2: sel#(s(X),cons(Y,Z)) -> activate#(Z) p3: activate#(n__from(X)) -> from#(activate(X)) p4: activate#(n__from(X)) -> activate#(X) p5: activate#(n__s(X)) -> s#(activate(X)) p6: activate#(n__s(X)) -> activate#(X) and R consists of: r1: from(X) -> cons(X,n__from(n__s(X))) r2: sel(|0|(),cons(X,Y)) -> X r3: sel(s(X),cons(Y,Z)) -> sel(X,activate(Z)) r4: from(X) -> n__from(X) r5: s(X) -> n__s(X) r6: activate(n__from(X)) -> from(activate(X)) r7: activate(n__s(X)) -> s(activate(X)) r8: activate(X) -> X The estimated dependency graph contains the following SCCs: {p1} {p4, p6} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: sel#(s(X),cons(Y,Z)) -> sel#(X,activate(Z)) and R consists of: r1: from(X) -> cons(X,n__from(n__s(X))) r2: sel(|0|(),cons(X,Y)) -> X r3: sel(s(X),cons(Y,Z)) -> sel(X,activate(Z)) r4: from(X) -> n__from(X) r5: s(X) -> n__s(X) r6: activate(n__from(X)) -> from(activate(X)) r7: activate(n__s(X)) -> s(activate(X)) r8: activate(X) -> X The set of usable rules consists of r1, r4, r5, r6, r7, r8 Take the reduction pair: weighted path order base order: matrix interpretations: carrier: N^1 order: lexicographic order interpretations: sel#_A(x1,x2) = x1 + 2 s_A(x1) = x1 + 4 cons_A(x1,x2) = 1 activate_A(x1) = x1 + 3 from_A(x1) = 2 n__from_A(x1) = 2 n__s_A(x1) = x1 + 4 precedence: sel# = s = cons = activate = from = n__from = n__s partial status: pi(sel#) = [1] pi(s) = [1] pi(cons) = [] pi(activate) = [1] pi(from) = [] pi(n__from) = [] pi(n__s) = [] The next rules are strictly ordered: p1 We remove them from the problem. Then no dependency pair remains. -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: activate#(n__s(X)) -> activate#(X) p2: activate#(n__from(X)) -> activate#(X) and R consists of: r1: from(X) -> cons(X,n__from(n__s(X))) r2: sel(|0|(),cons(X,Y)) -> X r3: sel(s(X),cons(Y,Z)) -> sel(X,activate(Z)) r4: from(X) -> n__from(X) r5: s(X) -> n__s(X) r6: activate(n__from(X)) -> from(activate(X)) r7: activate(n__s(X)) -> s(activate(X)) r8: activate(X) -> X The set of usable rules consists of (no rules) Take the monotone reduction pair: weighted path order base order: matrix interpretations: carrier: N^1 order: lexicographic order interpretations: activate#_A(x1) = x1 n__s_A(x1) = x1 + 1 n__from_A(x1) = x1 + 1 precedence: activate# = n__s = n__from partial status: pi(activate#) = [1] pi(n__s) = [1] pi(n__from) = [1] The next rules are strictly ordered: p1 We remove them from the problem. -- SCC decomposition. Consider the dependency pair problem (P, R), where P consists of p1: activate#(n__from(X)) -> activate#(X) and R consists of: r1: from(X) -> cons(X,n__from(n__s(X))) r2: sel(|0|(),cons(X,Y)) -> X r3: sel(s(X),cons(Y,Z)) -> sel(X,activate(Z)) r4: from(X) -> n__from(X) r5: s(X) -> n__s(X) r6: activate(n__from(X)) -> from(activate(X)) r7: activate(n__s(X)) -> s(activate(X)) r8: activate(X) -> X The estimated dependency graph contains the following SCCs: {p1} -- Reduction pair. Consider the dependency pair problem (P, R), where P consists of p1: activate#(n__from(X)) -> activate#(X) and R consists of: r1: from(X) -> cons(X,n__from(n__s(X))) r2: sel(|0|(),cons(X,Y)) -> X r3: sel(s(X),cons(Y,Z)) -> sel(X,activate(Z)) r4: from(X) -> n__from(X) r5: s(X) -> n__s(X) r6: activate(n__from(X)) -> from(activate(X)) r7: activate(n__s(X)) -> s(activate(X)) r8: activate(X) -> X The set of usable rules consists of (no rules) Take the monotone reduction pair: weighted path order base order: matrix interpretations: carrier: N^1 order: lexicographic order interpretations: activate#_A(x1) = x1 n__from_A(x1) = x1 + 1 precedence: activate# = n__from partial status: pi(activate#) = [1] pi(n__from) = [1] The next rules are strictly ordered: p1 We remove them from the problem. Then no dependency pair remains.