Input TRS: 1: from(X) -> cons(X,n__from(s(X))) 2: head(cons(X,XS)) -> X 3: 2nd(cons(X,XS)) -> head(activate(XS)) 4: take(0,XS) -> nil 5: take(s(N),cons(X,XS)) -> cons(X,n__take(N,activate(XS))) 6: sel(0,cons(X,XS)) -> X 7: sel(s(N),cons(X,XS)) -> sel(N,activate(XS)) 8: from(X) -> n__from(X) 9: take(X1,X2) -> n__take(X1,X2) 10: activate(n__from(X)) -> from(X) 11: activate(n__take(X1,X2)) -> take(X1,X2) 12: activate(X) -> X Dependency Pairs: #1: #2nd(cons(X,XS)) -> #head(activate(XS)) #2: #2nd(cons(X,XS)) -> #activate(XS) #3: #take(s(N),cons(X,XS)) -> #activate(XS) #4: #sel(s(N),cons(X,XS)) -> #sel(N,activate(XS)) #5: #sel(s(N),cons(X,XS)) -> #activate(XS) #6: #activate(n__from(X)) -> #from(X) #7: #activate(n__take(X1,X2)) -> #take(X1,X2) Number of SCCs: 2 SCC { #4 } QKBOPS(sum)... removes: #4 I(cons) = 1 + x2 \pi(cons) = [] I(n__take) = 1 + x1 + x2 \pi(n__take) = [1,2] I(#take) = 1 + x1 \pi(#take) = [] I(from) = 6 \pi(from) = [] I(0) = 2 I(s) = 4 + x1 \pi(s) = [] I(nil) = 2 I(#sel) = 4 + x1 \pi(#sel) = [] I(activate) = 3 + x1 \pi(activate) = [] I(n__from) = 4 \pi(n__from) = [] I(#activate) = x1 \pi(#activate) = 1 I(take) = 2 + x1 + x2 \pi(take) = [1,2] PREC: cons = #take = from = s = #sel = activate > 0 = nil = take > n__take = n__from USABLE RULES: { 12..8 5 4 1 } Number of SCCs: 1 SCC { #3 #7 } QKBOPS(sum)... removes: #3 #7 I(cons) = x2 \pi(cons) = [] I(n__take) = 2 + x2 \pi(n__take) = [2] I(#take) = 2 + x2 \pi(#take) = [2] I(s) = 1 \pi(s) = [] I(#activate) = x1 \pi(#activate) = 1 PREC: cons = s > n__take > #take USABLE RULES: { } Number of SCCs: 0