Input TRS: 1: max(nil) -> 0 2: max(cons(x,nil)) -> x 3: max(cons(x,cons(y,xs))) -> if1(ge(x,y),x,y,xs) 4: if1(true,x,y,xs) -> max(cons(x,xs)) 5: if1(false,x,y,xs) -> max(cons(y,xs)) 6: del(x,nil) -> nil 7: del(x,cons(y,xs)) -> if2(eq(x,y),x,y,xs) 8: if2(true,x,y,xs) -> xs 9: if2(false,x,y,xs) -> cons(y,del(x,xs)) 10: eq(0,0) -> true 11: eq(0,s(y)) -> false 12: eq(s(x),0) -> false 13: eq(s(x),s(y)) -> eq(x,y) 14: sort(nil) -> nil 15: sort(cons(x,xs)) -> cons(max(cons(x,xs)),sort(h(del(max(cons(x,xs)),cons(x,xs))))) 16: ge(0,0) -> true 17: ge(s(x),0) -> true 18: ge(0,s(x)) -> false 19: ge(s(x),s(y)) -> ge(x,y) 20: h(nil) -> nil 21: h(cons(x,xs)) -> cons(x,h(xs)) Dependency Pairs: #1: #max(cons(x,cons(y,xs))) -> #if1(ge(x,y),x,y,xs) #2: #max(cons(x,cons(y,xs))) -> #ge(x,y) #3: #if1(true,x,y,xs) -> #max(cons(x,xs)) #4: #if1(false,x,y,xs) -> #max(cons(y,xs)) #5: #del(x,cons(y,xs)) -> #if2(eq(x,y),x,y,xs) #6: #del(x,cons(y,xs)) -> #eq(x,y) #7: #if2(false,x,y,xs) -> #del(x,xs) #8: #eq(s(x),s(y)) -> #eq(x,y) #9: #sort(cons(x,xs)) -> #max(cons(x,xs)) #10: #sort(cons(x,xs)) -> #sort(h(del(max(cons(x,xs)),cons(x,xs)))) #11: #sort(cons(x,xs)) -> #h(del(max(cons(x,xs)),cons(x,xs))) #12: #sort(cons(x,xs)) -> #del(max(cons(x,xs)),cons(x,xs)) #13: #sort(cons(x,xs)) -> #max(cons(x,xs)) #14: #ge(s(x),s(y)) -> #ge(x,y) #15: #h(cons(x,xs)) -> #h(xs) Number of SCCs: 6 SCC { #14 } QKBOPS(sum)... removes: #14 I(#ge) = x1 + x2 \pi(#ge) = [] I(s) = 1 + x1 \pi(s) = [1] PREC: #ge > s USABLE RULES: { } Number of SCCs: 5 SCC { #8 } QKBOPS(sum)... removes: #8 I(#eq) = x1 + x2 \pi(#eq) = [] I(s) = 1 + x1 \pi(s) = [1] PREC: #eq > s USABLE RULES: { } Number of SCCs: 4 SCC { #15 } QKBOPS(sum)... removes: #15 I(#h) = x1 \pi(#h) = [] I(cons) = 1 + x2 \pi(cons) = [] PREC: #h = cons USABLE RULES: { } Number of SCCs: 3 SCC { #10 } QKBOPS(sum)... failed.