Input TRS: 1: terms(N) -> cons(recip(sqr(N)),n__terms(s(N))) 2: sqr(0) -> 0 3: sqr(s(X)) -> s(add(sqr(X),dbl(X))) 4: dbl(0) -> 0 5: dbl(s(X)) -> s(s(dbl(X))) 6: add(0,X) -> X 7: add(s(X),Y) -> s(add(X,Y)) 8: first(0,X) -> nil 9: first(s(X),cons(Y,Z)) -> cons(Y,n__first(X,activate(Z))) 10: terms(X) -> n__terms(X) 11: first(X1,X2) -> n__first(X1,X2) 12: activate(n__terms(X)) -> terms(X) 13: activate(n__first(X1,X2)) -> first(X1,X2) 14: activate(X) -> X Dependency Pairs: #1: #terms(N) -> #sqr(N) #2: #sqr(s(X)) -> #add(sqr(X),dbl(X)) #3: #sqr(s(X)) -> #sqr(X) #4: #sqr(s(X)) -> #dbl(X) #5: #dbl(s(X)) -> #dbl(X) #6: #add(s(X),Y) -> #add(X,Y) #7: #first(s(X),cons(Y,Z)) -> #activate(Z) #8: #activate(n__terms(X)) -> #terms(X) #9: #activate(n__first(X1,X2)) -> #first(X1,X2) Number of SCCs: 4 SCC { #6 } QKBOPS(sum)... removes: #6 I(s) = 1 + x1 \pi(s) = [1] I(#add) = x1 + x2 \pi(#add) = [] PREC: #add > s USABLE RULES: { } Number of SCCs: 3 SCC { #5 } QKBOPS(sum)... removes: #5 I(s) = 1 + x1 \pi(s) = [] I(#dbl) = x1 \pi(#dbl) = [] PREC: s = #dbl USABLE RULES: { } Number of SCCs: 2 SCC { #3 } QKBOPS(sum)... removes: #3 I(#sqr) = x1 \pi(#sqr) = [] I(s) = 1 + x1 \pi(s) = [] PREC: #sqr = s USABLE RULES: { } Number of SCCs: 1 SCC { #7 #9 } QKBOPS(sum)... removes: #7 #9 I(cons) = x2 \pi(cons) = [] I(n__first) = 2 + x2 \pi(n__first) = [2] I(#first) = 2 + x2 \pi(#first) = [2] I(s) = 1 \pi(s) = [] I(#activate) = x1 \pi(#activate) = 1 PREC: cons = s > n__first > #first USABLE RULES: { } Number of SCCs: 0