Input TRS: 1: active(first(0,X)) -> mark(nil) 2: active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) 3: active(from(X)) -> mark(cons(X,from(s(X)))) 4: active(first(X1,X2)) -> first(active(X1),X2) 5: active(first(X1,X2)) -> first(X1,active(X2)) 6: active(s(X)) -> s(active(X)) 7: active(cons(X1,X2)) -> cons(active(X1),X2) 8: active(from(X)) -> from(active(X)) 9: first(mark(X1),X2) -> mark(first(X1,X2)) 10: first(X1,mark(X2)) -> mark(first(X1,X2)) 11: s(mark(X)) -> mark(s(X)) 12: cons(mark(X1),X2) -> mark(cons(X1,X2)) 13: from(mark(X)) -> mark(from(X)) 14: proper(first(X1,X2)) -> first(proper(X1),proper(X2)) 15: proper(0) -> ok(0) 16: proper(nil) -> ok(nil) 17: proper(s(X)) -> s(proper(X)) 18: proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) 19: proper(from(X)) -> from(proper(X)) 20: first(ok(X1),ok(X2)) -> ok(first(X1,X2)) 21: s(ok(X)) -> ok(s(X)) 22: cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) 23: from(ok(X)) -> ok(from(X)) 24: top(mark(X)) -> top(proper(X)) 25: top(ok(X)) -> top(active(X)) Dependency Pairs: #1: #active(first(s(X),cons(Y,Z))) -> #cons(Y,first(X,Z)) #2: #active(first(s(X),cons(Y,Z))) -> #first(X,Z) #3: #active(from(X)) -> #cons(X,from(s(X))) #4: #active(from(X)) -> #from(s(X)) #5: #active(from(X)) -> #s(X) #6: #active(first(X1,X2)) -> #first(active(X1),X2) #7: #active(first(X1,X2)) -> #active(X1) #8: #active(first(X1,X2)) -> #first(X1,active(X2)) #9: #active(first(X1,X2)) -> #active(X2) #10: #active(s(X)) -> #s(active(X)) #11: #active(s(X)) -> #active(X) #12: #active(cons(X1,X2)) -> #cons(active(X1),X2) #13: #active(cons(X1,X2)) -> #active(X1) #14: #active(from(X)) -> #from(active(X)) #15: #active(from(X)) -> #active(X) #16: #first(mark(X1),X2) -> #first(X1,X2) #17: #first(X1,mark(X2)) -> #first(X1,X2) #18: #s(mark(X)) -> #s(X) #19: #cons(mark(X1),X2) -> #cons(X1,X2) #20: #from(mark(X)) -> #from(X) #21: #proper(first(X1,X2)) -> #first(proper(X1),proper(X2)) #22: #proper(first(X1,X2)) -> #proper(X1) #23: #proper(first(X1,X2)) -> #proper(X2) #24: #proper(s(X)) -> #s(proper(X)) #25: #proper(s(X)) -> #proper(X) #26: #proper(cons(X1,X2)) -> #cons(proper(X1),proper(X2)) #27: #proper(cons(X1,X2)) -> #proper(X1) #28: #proper(cons(X1,X2)) -> #proper(X2) #29: #proper(from(X)) -> #from(proper(X)) #30: #proper(from(X)) -> #proper(X) #31: #first(ok(X1),ok(X2)) -> #first(X1,X2) #32: #s(ok(X)) -> #s(X) #33: #cons(ok(X1),ok(X2)) -> #cons(X1,X2) #34: #from(ok(X)) -> #from(X) #35: #top(mark(X)) -> #top(proper(X)) #36: #top(mark(X)) -> #proper(X) #37: #top(ok(X)) -> #top(active(X)) #38: #top(ok(X)) -> #active(X) Number of SCCs: 7 SCC { #19 #33 } QKBOS(sum)... removes: #19 I(ok) = x1 \pi(ok) = 1 I(#cons) = 1 + x1 \pi(#cons) = [1] I(mark) = 2 + x1 \pi(mark) = [1] PREC: #cons = mark USABLE RULES: { } Number of SCCs: 7 SCC { #33 } QKBOS(sum)... removes: #33 I(ok) = 1 + x1 \pi(ok) = [1] I(#cons) = x1 + x2 \pi(#cons) = [2,1] PREC: #cons > ok USABLE RULES: { } Number of SCCs: 6 SCC { #20 #34 } QKBOS(sum)... removes: #20 I(#from) = x1 \pi(#from) = 1 I(ok) = x1 \pi(ok) = 1 I(mark) = x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 6 SCC { #34 } QKBOS(sum)... removes: #34 I(#from) = x1 \pi(#from) = 1 I(ok) = 1 + x1 \pi(ok) = [1] PREC: ok USABLE RULES: { } Number of SCCs: 5 SCC { #18 #32 } QKBOS(sum)... removes: #18 I(ok) = x1 \pi(ok) = 1 I(#s) = x1 \pi(#s) = [1] I(mark) = x1 \pi(mark) = [1] PREC: #s = mark USABLE RULES: { } Number of SCCs: 5 SCC { #32 } QKBOS(sum)... removes: #32 I(ok) = 1 + x1 \pi(ok) = [1] I(#s) = x1 \pi(#s) = 1 PREC: ok USABLE RULES: { } Number of SCCs: 4 SCC { #35 #37 } QKBOS(sum)... removes: #35 I(#top) = x1 \pi(#top) = 1 I(cons) = 1 + x1 \pi(cons) = [1] I(proper) = x1 \pi(proper) = 1 I(first) = 2 + x1 + x2 \pi(first) = [2,1] I(ok) = x1 \pi(ok) = 1 I(active) = x1 \pi(active) = 1 I(from) = 4 + x1 \pi(from) = [1] I(0) = 3 I(#first) = 1 \pi(#first) = [] I(#proper) = x1 \pi(#proper) = 1 I(s) = 5 + x1 \pi(s) = [1] I(#active) = x1 \pi(#active) = 1 I(nil) = 2 I(mark) = 2 + x1 \pi(mark) = [1] PREC: first = #first = s > from = nil > cons = 0 = mark USABLE RULES: { 23..1 } Number of SCCs: 4 SCC { #37 } QKBOS(sum)... removes: #37 I(#top) = x1 \pi(#top) = 1 I(cons) = x1 \pi(cons) = 1 I(proper) = x1 \pi(proper) = 1 I(first) = 2 + x1 + x2 \pi(first) = [1,2] I(ok) = 2 + x1 \pi(ok) = [1] I(active) = 1 + x1 \pi(active) = [1] I(from) = x1 \pi(from) = 1 I(0) = 2 I(#first) = 1 \pi(#first) = [] I(#proper) = x1 \pi(#proper) = 1 I(s) = x1 \pi(s) = 1 I(#active) = x1 \pi(#active) = 1 I(nil) = 2 I(mark) = x1 \pi(mark) = 1 PREC: #first > ok > 0 = nil > active > first USABLE RULES: { 23..20 13..1 } Number of SCCs: 3 SCC { #16 #17 #31 } QKBOS(sum)... removes: #17 I(ok) = x1 \pi(ok) = 1 I(#first) = x2 \pi(#first) = 2 I(mark) = x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 3 SCC { #16 #31 } QKBOS(sum)... removes: #16 I(ok) = x1 \pi(ok) = 1 I(#first) = 1 + x1 \pi(#first) = [1] I(mark) = 2 + x1 \pi(mark) = [1] PREC: #first = mark USABLE RULES: { } Number of SCCs: 3 SCC { #31 } QKBOS(sum)... removes: #31 I(ok) = 1 + x1 \pi(ok) = [1] I(#first) = x1 + x2 \pi(#first) = [2,1] PREC: #first > ok USABLE RULES: { } Number of SCCs: 2 SCC { #7 #9 #11 #13 #15 } QKBOS(sum)... removes: #7 #9 I(cons) = x1 \pi(cons) = 1 I(first) = x1 + x2 \pi(first) = [1,2] I(from) = x1 \pi(from) = 1 I(s) = x1 \pi(s) = 1 I(#active) = x1 \pi(#active) = [1] PREC: first = #active USABLE RULES: { } Number of SCCs: 2 SCC { #11 #13 #15 } QKBOS(sum)... removes: #15 I(cons) = x1 \pi(cons) = 1 I(from) = x1 \pi(from) = [1] I(s) = x1 \pi(s) = 1 I(#active) = x1 \pi(#active) = [1] PREC: from = #active USABLE RULES: { } Number of SCCs: 2 SCC { #11 #13 } QKBOS(sum)... removes: #11 I(cons) = x1 \pi(cons) = 1 I(s) = x1 \pi(s) = [1] I(#active) = x1 \pi(#active) = [1] PREC: s = #active USABLE RULES: { } Number of SCCs: 2 SCC { #13 } QKBOS(sum)... removes: #13 I(cons) = x1 \pi(cons) = [1] I(#active) = x1 \pi(#active) = 1 PREC: cons USABLE RULES: { } Number of SCCs: 1 SCC { #22 #23 #25 #27 #28 #30 } QKBOS(sum)... removes: #22 #23 #27 #28 I(cons) = x1 + x2 \pi(cons) = [1,2] I(first) = x1 + x2 \pi(first) = [1,2] I(from) = x1 \pi(from) = 1 I(s) = x1 \pi(s) = 1 I(#proper) = x1 \pi(#proper) = [1] PREC: first = #proper > cons USABLE RULES: { } Number of SCCs: 1 SCC { #25 #30 } QKBOS(sum)... removes: #25 I(from) = x1 \pi(from) = 1 I(s) = x1 \pi(s) = [1] I(#proper) = x1 \pi(#proper) = 1 PREC: s USABLE RULES: { } Number of SCCs: 1 SCC { #30 } QKBOS(sum)... removes: #30 I(from) = 1 + x1 \pi(from) = [1] I(#proper) = x1 \pi(#proper) = 1 PREC: from USABLE RULES: { } Number of SCCs: 0