Input TRS: 1: app(app(minus,x),0) -> x 2: app(app(minus,app(s,x)),app(s,y)) -> app(app(minus,x),y) 3: app(double,0) -> 0 4: app(double,app(s,x)) -> app(s,app(s,app(double,x))) 5: app(app(plus,0),y) -> y 6: app(app(plus,app(s,x)),y) -> app(s,app(app(plus,x),y)) 7: app(app(plus,app(s,x)),y) -> app(app(plus,x),app(s,y)) 8: app(app(plus,app(s,x)),y) -> app(s,app(app(plus,app(app(minus,x),y)),app(double,y))) 9: app(app(map,f),nil) -> nil 10: app(app(map,f),app(app(cons,x),xs)) -> app(app(cons,app(f,x)),app(app(map,f),xs)) 11: app(app(filter,f),nil) -> nil 12: app(app(filter,f),app(app(cons,x),xs)) -> app(app(app(app(filter2,app(f,x)),f),x),xs) 13: app(app(app(app(filter2,true),f),x),xs) -> app(app(cons,x),app(app(filter,f),xs)) 14: app(app(app(app(filter2,false),f),x),xs) -> app(app(filter,f),xs) Dependency Pairs: #1: #app(app(minus,app(s,x)),app(s,y)) -> #app(app(minus,x),y) #2: #app(app(minus,app(s,x)),app(s,y)) -> #app(minus,x) #3: #app(double,app(s,x)) -> #app(s,app(s,app(double,x))) #4: #app(double,app(s,x)) -> #app(s,app(double,x)) #5: #app(double,app(s,x)) -> #app(double,x) #6: #app(app(plus,app(s,x)),y) -> #app(s,app(app(plus,x),y)) #7: #app(app(plus,app(s,x)),y) -> #app(app(plus,x),y) #8: #app(app(plus,app(s,x)),y) -> #app(plus,x) #9: #app(app(plus,app(s,x)),y) -> #app(app(plus,x),app(s,y)) #10: #app(app(plus,app(s,x)),y) -> #app(plus,x) #11: #app(app(plus,app(s,x)),y) -> #app(s,y) #12: #app(app(plus,app(s,x)),y) -> #app(s,app(app(plus,app(app(minus,x),y)),app(double,y))) #13: #app(app(plus,app(s,x)),y) -> #app(app(plus,app(app(minus,x),y)),app(double,y)) #14: #app(app(plus,app(s,x)),y) -> #app(plus,app(app(minus,x),y)) #15: #app(app(plus,app(s,x)),y) -> #app(app(minus,x),y) #16: #app(app(plus,app(s,x)),y) -> #app(minus,x) #17: #app(app(plus,app(s,x)),y) -> #app(double,y) #18: #app(app(map,f),app(app(cons,x),xs)) -> #app(app(cons,app(f,x)),app(app(map,f),xs)) #19: #app(app(map,f),app(app(cons,x),xs)) -> #app(cons,app(f,x)) #20: #app(app(map,f),app(app(cons,x),xs)) -> #app(f,x) #21: #app(app(map,f),app(app(cons,x),xs)) -> #app(app(map,f),xs) #22: #app(app(map,f),app(app(cons,x),xs)) -> #app(map,f) #23: #app(app(filter,f),app(app(cons,x),xs)) -> #app(app(app(app(filter2,app(f,x)),f),x),xs) #24: #app(app(filter,f),app(app(cons,x),xs)) -> #app(app(app(filter2,app(f,x)),f),x) #25: #app(app(filter,f),app(app(cons,x),xs)) -> #app(app(filter2,app(f,x)),f) #26: #app(app(filter,f),app(app(cons,x),xs)) -> #app(filter2,app(f,x)) #27: #app(app(filter,f),app(app(cons,x),xs)) -> #app(f,x) #28: #app(app(app(app(filter2,true),f),x),xs) -> #app(app(cons,x),app(app(filter,f),xs)) #29: #app(app(app(app(filter2,true),f),x),xs) -> #app(cons,x) #30: #app(app(app(app(filter2,true),f),x),xs) -> #app(app(filter,f),xs) #31: #app(app(app(app(filter2,true),f),x),xs) -> #app(filter,f) #32: #app(app(app(app(filter2,false),f),x),xs) -> #app(app(filter,f),xs) #33: #app(app(app(app(filter2,false),f),x),xs) -> #app(filter,f) Number of SCCs: 2 SCC { #5 } QKBOPS(sum)... removes: #5 I(app) = 2 + x1 + x2 \pi(app) = [1,2] I(#app) = 1 + x1 + x2 \pi(#app) = [1] I(double) = 1 I(s) = 1 PREC: double = s > app = #app USABLE RULES: { } Number of SCCs: 1 SCC { #1 #7 #9 #13 #15 #18 #20 #21 #23 #24 #25 #27 #28 #30 #32 } QKBOPS(sum)... failed.