Input TRS: 1: t(N) -> cs(r(q(N)),nt(ns(N))) 2: q(0) -> 0 3: q(s(X)) -> s(p(q(X),d(X))) 4: d(0) -> 0 5: d(s(X)) -> s(s(d(X))) 6: p(0,X) -> X 7: p(X,0) -> X 8: p(s(X),s(Y)) -> s(s(p(X,Y))) 9: f(0,X) -> nil 10: f(s(X),cs(Y,Z)) -> cs(Y,nf(X,a(Z))) 11: t(X) -> nt(X) 12: s(X) -> ns(X) 13: f(X1,X2) -> nf(X1,X2) 14: a(nt(X)) -> t(a(X)) 15: a(ns(X)) -> s(a(X)) 16: a(nf(X1,X2)) -> f(a(X1),a(X2)) 17: a(X) -> X Dependency Pairs: #1: #t(N) -> #q(N) #2: #q(s(X)) -> #s(p(q(X),d(X))) #3: #q(s(X)) -> #p(q(X),d(X)) #4: #q(s(X)) -> #q(X) #5: #q(s(X)) -> #d(X) #6: #d(s(X)) -> #s(s(d(X))) #7: #d(s(X)) -> #s(d(X)) #8: #d(s(X)) -> #d(X) #9: #p(s(X),s(Y)) -> #s(s(p(X,Y))) #10: #p(s(X),s(Y)) -> #s(p(X,Y)) #11: #p(s(X),s(Y)) -> #p(X,Y) #12: #f(s(X),cs(Y,Z)) -> #a(Z) #13: #a(nt(X)) -> #t(a(X)) #14: #a(nt(X)) -> #a(X) #15: #a(ns(X)) -> #s(a(X)) #16: #a(ns(X)) -> #a(X) #17: #a(nf(X1,X2)) -> #f(a(X1),a(X2)) #18: #a(nf(X1,X2)) -> #a(X1) #19: #a(nf(X1,X2)) -> #a(X2) Number of SCCs: 4 SCC { #11 } QKBOPS(sum)... removes: #11 I(#p) = x1 + x2 \pi(#p) = [] I(s) = 1 + x1 \pi(s) = [1] PREC: #p > s USABLE RULES: { } Number of SCCs: 3 SCC { #8 } QKBOPS(sum)... removes: #8 I(s) = 1 + x1 \pi(s) = [] I(#d) = x1 \pi(#d) = [] PREC: s = #d USABLE RULES: { } Number of SCCs: 2 SCC { #4 } QKBOPS(sum)... removes: #4 I(#q) = x1 \pi(#q) = [] I(s) = 1 + x1 \pi(s) = [] PREC: #q = s USABLE RULES: { } Number of SCCs: 1 SCC { #12 #14 #16 #17 #18 #19 } QKBOPS(sum)... removes: #12 #14 #17 #18 #19 I(a) = x1 \pi(a) = [] I(d) = x1 \pi(d) = [] I(f) = 1 + x1 + x2 \pi(f) = [] I(cs) = x2 \pi(cs) = 2 I(p) = x1 + x2 \pi(p) = [1] I(0) = 3 I(nf) = 1 + x1 + x2 \pi(nf) = [2,1] I(q) = 4 \pi(q) = [] I(r) = 2 \pi(r) = [] I(s) = x1 \pi(s) = [] I(t) = 4 + x1 \pi(t) = [] I(nil) = 2 I(#a) = x1 \pi(#a) = 1 I(ns) = x1 \pi(ns) = [] I(nt) = 4 + x1 \pi(nt) = [1] I(#f) = 1 + x2 \pi(#f) = [] PREC: a = d = f = q = s = nil = ns > p = nf = t > nt = #f > 0 = r USABLE RULES: { 17..9 1 } Number of SCCs: 1 SCC { #16 } QKBOPS(sum)... removes: #16 I(#a) = x1 \pi(#a) = [] I(ns) = 1 + x1 \pi(ns) = [] PREC: #a = ns USABLE RULES: { } Number of SCCs: 0