Input TRS: 1: fstsplit(0,x) -> nil 2: fstsplit(s(n),nil) -> nil 3: fstsplit(s(n),cons(h,t)) -> cons(h,fstsplit(n,t)) 4: sndsplit(0,x) -> x 5: sndsplit(s(n),nil) -> nil 6: sndsplit(s(n),cons(h,t)) -> sndsplit(n,t) 7: empty(nil) -> true 8: empty(cons(h,t)) -> false 9: leq(0,m) -> true 10: leq(s(n),0) -> false 11: leq(s(n),s(m)) -> leq(n,m) 12: length(nil) -> 0 13: length(cons(h,t)) -> s(length(t)) 14: app(nil,x) -> x 15: app(cons(h,t),x) -> cons(h,app(t,x)) 16: map_f(pid,nil) -> nil 17: map_f(pid,cons(h,t)) -> app(f(pid,h),map_f(pid,t)) 18: head(cons(h,t)) -> h 19: tail(cons(h,t)) -> t 20: ring(st_1,in_2,st_2,in_3,st_3,m) -> if_1(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,st_1))) 21: if_1(st_1,in_2,st_2,in_3,st_3,m,false) -> ring(sndsplit(m,st_1),cons(fstsplit(m,st_1),in_2),st_2,in_3,st_3,m) 22: ring(st_1,in_2,st_2,in_3,st_3,m) -> if_2(st_1,in_2,st_2,in_3,st_3,m,leq(m,length(st_2))) 23: if_2(st_1,in_2,st_2,in_3,st_3,m,true) -> if_3(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,st_2))) 24: if_3(st_1,in_2,st_2,in_3,st_3,m,false) -> ring(st_1,in_2,sndsplit(m,st_2),cons(fstsplit(m,st_2),in_3),st_3,m) 25: if_2(st_1,in_2,st_2,in_3,st_3,m,false) -> if_4(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,app(map_f(two,head(in_2)),st_2)))) 26: if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> ring(st_1,tail(in_2),sndsplit(m,app(map_f(two,head(in_2)),st_2)),cons(fstsplit(m,app(map_f(two,head(in_2)),st_2)),in_3),st_3,m) 27: ring(st_1,in_2,st_2,in_3,st_3,m) -> if_5(st_1,in_2,st_2,in_3,st_3,m,empty(map_f(two,head(in_2)))) 28: if_5(st_1,in_2,st_2,in_3,st_3,m,true) -> ring(st_1,tail(in_2),st_2,in_3,st_3,m) 29: ring(st_1,in_2,st_2,in_3,st_3,m) -> if_6(st_1,in_2,st_2,in_3,st_3,m,leq(m,length(st_3))) 30: if_6(st_1,in_2,st_2,in_3,st_3,m,true) -> if_7(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,st_3))) 31: if_7(st_1,in_2,st_2,in_3,st_3,m,false) -> ring(st_1,in_2,st_2,in_3,sndsplit(m,st_3),m) 32: if_6(st_1,in_2,st_2,in_3,st_3,m,false) -> if_8(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,app(map_f(three,head(in_3)),st_3)))) 33: if_8(st_1,in_2,st_2,in_3,st_3,m,false) -> ring(st_1,in_2,st_2,tail(in_3),sndsplit(m,app(map_f(three,head(in_3)),st_3)),m) 34: ring(st_1,in_2,st_2,in_3,st_3,m) -> if_9(st_1,in_2,st_2,in_3,st_3,m,empty(map_f(three,head(in_3)))) 35: if_9(st_1,in_2,st_2,in_3,st_3,m,true) -> ring(st_1,in_2,st_2,tail(in_3),st_3,m) Dependency Pairs: #1: #fstsplit(s(n),cons(h,t)) -> #fstsplit(n,t) #2: #sndsplit(s(n),cons(h,t)) -> #sndsplit(n,t) #3: #leq(s(n),s(m)) -> #leq(n,m) #4: #length(cons(h,t)) -> #length(t) #5: #app(cons(h,t),x) -> #app(t,x) #6: #map_f(pid,cons(h,t)) -> #app(f(pid,h),map_f(pid,t)) #7: #map_f(pid,cons(h,t)) -> #map_f(pid,t) #8: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #if_1(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,st_1))) #9: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #empty(fstsplit(m,st_1)) #10: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #fstsplit(m,st_1) #11: #if_1(st_1,in_2,st_2,in_3,st_3,m,false) -> #ring(sndsplit(m,st_1),cons(fstsplit(m,st_1),in_2),st_2,in_3,st_3,m) #12: #if_1(st_1,in_2,st_2,in_3,st_3,m,false) -> #sndsplit(m,st_1) #13: #if_1(st_1,in_2,st_2,in_3,st_3,m,false) -> #fstsplit(m,st_1) #14: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #if_2(st_1,in_2,st_2,in_3,st_3,m,leq(m,length(st_2))) #15: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #leq(m,length(st_2)) #16: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #length(st_2) #17: #if_2(st_1,in_2,st_2,in_3,st_3,m,true) -> #if_3(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,st_2))) #18: #if_2(st_1,in_2,st_2,in_3,st_3,m,true) -> #empty(fstsplit(m,st_2)) #19: #if_2(st_1,in_2,st_2,in_3,st_3,m,true) -> #fstsplit(m,st_2) #20: #if_3(st_1,in_2,st_2,in_3,st_3,m,false) -> #ring(st_1,in_2,sndsplit(m,st_2),cons(fstsplit(m,st_2),in_3),st_3,m) #21: #if_3(st_1,in_2,st_2,in_3,st_3,m,false) -> #sndsplit(m,st_2) #22: #if_3(st_1,in_2,st_2,in_3,st_3,m,false) -> #fstsplit(m,st_2) #23: #if_2(st_1,in_2,st_2,in_3,st_3,m,false) -> #if_4(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,app(map_f(two,head(in_2)),st_2)))) #24: #if_2(st_1,in_2,st_2,in_3,st_3,m,false) -> #empty(fstsplit(m,app(map_f(two,head(in_2)),st_2))) #25: #if_2(st_1,in_2,st_2,in_3,st_3,m,false) -> #fstsplit(m,app(map_f(two,head(in_2)),st_2)) #26: #if_2(st_1,in_2,st_2,in_3,st_3,m,false) -> #app(map_f(two,head(in_2)),st_2) #27: #if_2(st_1,in_2,st_2,in_3,st_3,m,false) -> #map_f(two,head(in_2)) #28: #if_2(st_1,in_2,st_2,in_3,st_3,m,false) -> #head(in_2) #29: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #ring(st_1,tail(in_2),sndsplit(m,app(map_f(two,head(in_2)),st_2)),cons(fstsplit(m,app(map_f(two,head(in_2)),st_2)),in_3),st_3,m) #30: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #tail(in_2) #31: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #sndsplit(m,app(map_f(two,head(in_2)),st_2)) #32: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #app(map_f(two,head(in_2)),st_2) #33: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #map_f(two,head(in_2)) #34: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #head(in_2) #35: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #fstsplit(m,app(map_f(two,head(in_2)),st_2)) #36: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #app(map_f(two,head(in_2)),st_2) #37: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #map_f(two,head(in_2)) #38: #if_4(st_1,in_2,st_2,in_3,st_3,m,false) -> #head(in_2) #39: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #if_5(st_1,in_2,st_2,in_3,st_3,m,empty(map_f(two,head(in_2)))) #40: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #empty(map_f(two,head(in_2))) #41: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #map_f(two,head(in_2)) #42: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #head(in_2) #43: #if_5(st_1,in_2,st_2,in_3,st_3,m,true) -> #ring(st_1,tail(in_2),st_2,in_3,st_3,m) #44: #if_5(st_1,in_2,st_2,in_3,st_3,m,true) -> #tail(in_2) #45: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #if_6(st_1,in_2,st_2,in_3,st_3,m,leq(m,length(st_3))) #46: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #leq(m,length(st_3)) #47: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #length(st_3) #48: #if_6(st_1,in_2,st_2,in_3,st_3,m,true) -> #if_7(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,st_3))) #49: #if_6(st_1,in_2,st_2,in_3,st_3,m,true) -> #empty(fstsplit(m,st_3)) #50: #if_6(st_1,in_2,st_2,in_3,st_3,m,true) -> #fstsplit(m,st_3) #51: #if_7(st_1,in_2,st_2,in_3,st_3,m,false) -> #ring(st_1,in_2,st_2,in_3,sndsplit(m,st_3),m) #52: #if_7(st_1,in_2,st_2,in_3,st_3,m,false) -> #sndsplit(m,st_3) #53: #if_6(st_1,in_2,st_2,in_3,st_3,m,false) -> #if_8(st_1,in_2,st_2,in_3,st_3,m,empty(fstsplit(m,app(map_f(three,head(in_3)),st_3)))) #54: #if_6(st_1,in_2,st_2,in_3,st_3,m,false) -> #empty(fstsplit(m,app(map_f(three,head(in_3)),st_3))) #55: #if_6(st_1,in_2,st_2,in_3,st_3,m,false) -> #fstsplit(m,app(map_f(three,head(in_3)),st_3)) #56: #if_6(st_1,in_2,st_2,in_3,st_3,m,false) -> #app(map_f(three,head(in_3)),st_3) #57: #if_6(st_1,in_2,st_2,in_3,st_3,m,false) -> #map_f(three,head(in_3)) #58: #if_6(st_1,in_2,st_2,in_3,st_3,m,false) -> #head(in_3) #59: #if_8(st_1,in_2,st_2,in_3,st_3,m,false) -> #ring(st_1,in_2,st_2,tail(in_3),sndsplit(m,app(map_f(three,head(in_3)),st_3)),m) #60: #if_8(st_1,in_2,st_2,in_3,st_3,m,false) -> #tail(in_3) #61: #if_8(st_1,in_2,st_2,in_3,st_3,m,false) -> #sndsplit(m,app(map_f(three,head(in_3)),st_3)) #62: #if_8(st_1,in_2,st_2,in_3,st_3,m,false) -> #app(map_f(three,head(in_3)),st_3) #63: #if_8(st_1,in_2,st_2,in_3,st_3,m,false) -> #map_f(three,head(in_3)) #64: #if_8(st_1,in_2,st_2,in_3,st_3,m,false) -> #head(in_3) #65: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #if_9(st_1,in_2,st_2,in_3,st_3,m,empty(map_f(three,head(in_3)))) #66: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #empty(map_f(three,head(in_3))) #67: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #map_f(three,head(in_3)) #68: #ring(st_1,in_2,st_2,in_3,st_3,m) -> #head(in_3) #69: #if_9(st_1,in_2,st_2,in_3,st_3,m,true) -> #ring(st_1,in_2,st_2,tail(in_3),st_3,m) #70: #if_9(st_1,in_2,st_2,in_3,st_3,m,true) -> #tail(in_3) Number of SCCs: 7 SCC { #1 } QKBOPS(sum)... removes: #1 I(cons) = x1 + x2 \pi(cons) = [2,1] I(s) = 1 + x1 \pi(s) = [] I(#fstsplit) = x1 + x2 \pi(#fstsplit) = [2] PREC: s > #fstsplit > cons USABLE RULES: { } Number of SCCs: 6 SCC { #2 } QKBOPS(sum)... removes: #2 I(cons) = x1 + x2 \pi(cons) = [2,1] I(#sndsplit) = x1 + x2 \pi(#sndsplit) = [2] I(s) = 1 + x1 \pi(s) = [] PREC: s > #sndsplit > cons USABLE RULES: { } Number of SCCs: 5 SCC { #3 } QKBOPS(sum)... removes: #3 I(s) = 1 + x1 \pi(s) = [1] I(#leq) = x1 + x2 \pi(#leq) = [] PREC: #leq > s USABLE RULES: { } Number of SCCs: 4 SCC { #4 } QKBOPS(sum)... removes: #4 I(#length) = x1 \pi(#length) = [] I(cons) = 1 + x2 \pi(cons) = [] PREC: #length = cons USABLE RULES: { } Number of SCCs: 3 SCC { #5 } QKBOPS(sum)... removes: #5 I(cons) = 1 + x1 + x2 \pi(cons) = [2,1] I(#app) = x1 + x2 \pi(#app) = [2,1] PREC: #app > cons USABLE RULES: { } Number of SCCs: 2 SCC { #7 } QKBOPS(sum)... removes: #7 I(cons) = 1 + x1 + x2 \pi(cons) = [2,1] I(#map_f) = x1 + x2 \pi(#map_f) = [] PREC: #map_f > cons USABLE RULES: { } Number of SCCs: 1 SCC { #8 #11 #14 #17 #20 #23 #29 #39 #43 #45 #48 #51 #53 #59 #65 #69 } QKBOPS(sum)... failed.