Input TRS: 1: active(terms(N)) -> mark(cons(recip(sqr(N)),terms(s(N)))) 2: active(sqr(0)) -> mark(0) 3: active(sqr(s(X))) -> mark(s(add(sqr(X),dbl(X)))) 4: active(dbl(0)) -> mark(0) 5: active(dbl(s(X))) -> mark(s(s(dbl(X)))) 6: active(add(0,X)) -> mark(X) 7: active(add(s(X),Y)) -> mark(s(add(X,Y))) 8: active(first(0,X)) -> mark(nil) 9: active(first(s(X),cons(Y,Z))) -> mark(cons(Y,first(X,Z))) 10: active(terms(X)) -> terms(active(X)) 11: active(cons(X1,X2)) -> cons(active(X1),X2) 12: active(recip(X)) -> recip(active(X)) 13: active(sqr(X)) -> sqr(active(X)) 14: active(add(X1,X2)) -> add(active(X1),X2) 15: active(add(X1,X2)) -> add(X1,active(X2)) 16: active(dbl(X)) -> dbl(active(X)) 17: active(first(X1,X2)) -> first(active(X1),X2) 18: active(first(X1,X2)) -> first(X1,active(X2)) 19: terms(mark(X)) -> mark(terms(X)) 20: cons(mark(X1),X2) -> mark(cons(X1,X2)) 21: recip(mark(X)) -> mark(recip(X)) 22: sqr(mark(X)) -> mark(sqr(X)) 23: add(mark(X1),X2) -> mark(add(X1,X2)) 24: add(X1,mark(X2)) -> mark(add(X1,X2)) 25: dbl(mark(X)) -> mark(dbl(X)) 26: first(mark(X1),X2) -> mark(first(X1,X2)) 27: first(X1,mark(X2)) -> mark(first(X1,X2)) 28: proper(terms(X)) -> terms(proper(X)) 29: proper(cons(X1,X2)) -> cons(proper(X1),proper(X2)) 30: proper(recip(X)) -> recip(proper(X)) 31: proper(sqr(X)) -> sqr(proper(X)) 32: proper(s(X)) -> s(proper(X)) 33: proper(0) -> ok(0) 34: proper(add(X1,X2)) -> add(proper(X1),proper(X2)) 35: proper(dbl(X)) -> dbl(proper(X)) 36: proper(first(X1,X2)) -> first(proper(X1),proper(X2)) 37: proper(nil) -> ok(nil) 38: terms(ok(X)) -> ok(terms(X)) 39: cons(ok(X1),ok(X2)) -> ok(cons(X1,X2)) 40: recip(ok(X)) -> ok(recip(X)) 41: sqr(ok(X)) -> ok(sqr(X)) 42: s(ok(X)) -> ok(s(X)) 43: add(ok(X1),ok(X2)) -> ok(add(X1,X2)) 44: dbl(ok(X)) -> ok(dbl(X)) 45: first(ok(X1),ok(X2)) -> ok(first(X1,X2)) 46: top(mark(X)) -> top(proper(X)) 47: top(ok(X)) -> top(active(X)) Dependency Pairs: #1: #active(terms(N)) -> #cons(recip(sqr(N)),terms(s(N))) #2: #active(terms(N)) -> #recip(sqr(N)) #3: #active(terms(N)) -> #sqr(N) #4: #active(terms(N)) -> #terms(s(N)) #5: #active(terms(N)) -> #s(N) #6: #active(sqr(s(X))) -> #s(add(sqr(X),dbl(X))) #7: #active(sqr(s(X))) -> #add(sqr(X),dbl(X)) #8: #active(sqr(s(X))) -> #sqr(X) #9: #active(sqr(s(X))) -> #dbl(X) #10: #active(dbl(s(X))) -> #s(s(dbl(X))) #11: #active(dbl(s(X))) -> #s(dbl(X)) #12: #active(dbl(s(X))) -> #dbl(X) #13: #active(add(s(X),Y)) -> #s(add(X,Y)) #14: #active(add(s(X),Y)) -> #add(X,Y) #15: #active(first(s(X),cons(Y,Z))) -> #cons(Y,first(X,Z)) #16: #active(first(s(X),cons(Y,Z))) -> #first(X,Z) #17: #active(terms(X)) -> #terms(active(X)) #18: #active(terms(X)) -> #active(X) #19: #active(cons(X1,X2)) -> #cons(active(X1),X2) #20: #active(cons(X1,X2)) -> #active(X1) #21: #active(recip(X)) -> #recip(active(X)) #22: #active(recip(X)) -> #active(X) #23: #active(sqr(X)) -> #sqr(active(X)) #24: #active(sqr(X)) -> #active(X) #25: #active(add(X1,X2)) -> #add(active(X1),X2) #26: #active(add(X1,X2)) -> #active(X1) #27: #active(add(X1,X2)) -> #add(X1,active(X2)) #28: #active(add(X1,X2)) -> #active(X2) #29: #active(dbl(X)) -> #dbl(active(X)) #30: #active(dbl(X)) -> #active(X) #31: #active(first(X1,X2)) -> #first(active(X1),X2) #32: #active(first(X1,X2)) -> #active(X1) #33: #active(first(X1,X2)) -> #first(X1,active(X2)) #34: #active(first(X1,X2)) -> #active(X2) #35: #terms(mark(X)) -> #terms(X) #36: #cons(mark(X1),X2) -> #cons(X1,X2) #37: #recip(mark(X)) -> #recip(X) #38: #sqr(mark(X)) -> #sqr(X) #39: #add(mark(X1),X2) -> #add(X1,X2) #40: #add(X1,mark(X2)) -> #add(X1,X2) #41: #dbl(mark(X)) -> #dbl(X) #42: #first(mark(X1),X2) -> #first(X1,X2) #43: #first(X1,mark(X2)) -> #first(X1,X2) #44: #proper(terms(X)) -> #terms(proper(X)) #45: #proper(terms(X)) -> #proper(X) #46: #proper(cons(X1,X2)) -> #cons(proper(X1),proper(X2)) #47: #proper(cons(X1,X2)) -> #proper(X1) #48: #proper(cons(X1,X2)) -> #proper(X2) #49: #proper(recip(X)) -> #recip(proper(X)) #50: #proper(recip(X)) -> #proper(X) #51: #proper(sqr(X)) -> #sqr(proper(X)) #52: #proper(sqr(X)) -> #proper(X) #53: #proper(s(X)) -> #s(proper(X)) #54: #proper(s(X)) -> #proper(X) #55: #proper(add(X1,X2)) -> #add(proper(X1),proper(X2)) #56: #proper(add(X1,X2)) -> #proper(X1) #57: #proper(add(X1,X2)) -> #proper(X2) #58: #proper(dbl(X)) -> #dbl(proper(X)) #59: #proper(dbl(X)) -> #proper(X) #60: #proper(first(X1,X2)) -> #first(proper(X1),proper(X2)) #61: #proper(first(X1,X2)) -> #proper(X1) #62: #proper(first(X1,X2)) -> #proper(X2) #63: #terms(ok(X)) -> #terms(X) #64: #cons(ok(X1),ok(X2)) -> #cons(X1,X2) #65: #recip(ok(X)) -> #recip(X) #66: #sqr(ok(X)) -> #sqr(X) #67: #s(ok(X)) -> #s(X) #68: #add(ok(X1),ok(X2)) -> #add(X1,X2) #69: #dbl(ok(X)) -> #dbl(X) #70: #first(ok(X1),ok(X2)) -> #first(X1,X2) #71: #top(mark(X)) -> #top(proper(X)) #72: #top(mark(X)) -> #proper(X) #73: #top(ok(X)) -> #top(active(X)) #74: #top(ok(X)) -> #active(X) Number of SCCs: 11 SCC { #67 } QKBOPS(sum)... removes: #67 I(ok) = 1 + x1 \pi(ok) = [1] I(#s) = x1 \pi(#s) = [] PREC: ok = #s USABLE RULES: { } Number of SCCs: 10 SCC { #36 #64 } QKBOPS(sum)... removes: #36 #64 I(ok) = 1 + x1 \pi(ok) = [1] I(#cons) = x1 + x2 \pi(#cons) = [] I(mark) = 1 + x1 \pi(mark) = [1] PREC: #cons > mark > ok USABLE RULES: { } Number of SCCs: 9 SCC { #37 #65 } QKBOPS(sum)... removes: #37 I(ok) = x1 \pi(ok) = 1 I(#recip) = x1 \pi(#recip) = 1 I(mark) = 1 + x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 9 SCC { #65 } QKBOPS(sum)... removes: #65 I(ok) = 1 + x1 \pi(ok) = [1] I(#recip) = x1 \pi(#recip) = [] PREC: ok = #recip USABLE RULES: { } Number of SCCs: 8 SCC { #38 #66 } QKBOPS(sum)... removes: #38 I(#sqr) = x1 \pi(#sqr) = 1 I(ok) = x1 \pi(ok) = 1 I(mark) = 1 + x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 8 SCC { #66 } QKBOPS(sum)... removes: #66 I(#sqr) = x1 \pi(#sqr) = [] I(ok) = 1 + x1 \pi(ok) = [] PREC: #sqr = ok USABLE RULES: { } Number of SCCs: 7 SCC { #35 #63 } QKBOPS(sum)... removes: #35 I(#terms) = x1 \pi(#terms) = 1 I(ok) = x1 \pi(ok) = 1 I(mark) = 1 + x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 7 SCC { #63 } QKBOPS(sum)... removes: #63 I(#terms) = x1 \pi(#terms) = [] I(ok) = 1 + x1 \pi(ok) = [] PREC: #terms = ok USABLE RULES: { } Number of SCCs: 6 SCC { #41 #69 } QKBOPS(sum)... removes: #41 I(ok) = x1 \pi(ok) = 1 I(#dbl) = x1 \pi(#dbl) = 1 I(mark) = 1 + x1 \pi(mark) = [1] PREC: mark USABLE RULES: { } Number of SCCs: 6 SCC { #69 } QKBOPS(sum)... removes: #69 I(ok) = 1 + x1 \pi(ok) = [1] I(#dbl) = x1 \pi(#dbl) = [] PREC: ok = #dbl USABLE RULES: { } Number of SCCs: 5 SCC { #71 #73 } QKBOPS(sum)... removes: #71 I(sqr) = 3 + x1 \pi(sqr) = [] I(#top) = x1 \pi(#top) = [] I(cons) = 1 + x1 \pi(cons) = [] I(proper) = x1 \pi(proper) = [] I(ok) = x1 \pi(ok) = 1 I(first) = 10 + x1 + x2 \pi(first) = [] I(active) = x1 \pi(active) = 1 I(0) = 4 I(#first) = 1 \pi(#first) = [] I(#proper) = x1 \pi(#proper) = [] I(s) = 11 \pi(s) = [] I(#active) = x1 \pi(#active) = 1 I(nil) = 5 I(dbl) = 3 + x1 \pi(dbl) = [] I(terms) = 11 + x1 \pi(terms) = [1] I(mark) = 2 + x1 \pi(mark) = [] I(add) = 2 + x1 + x2 \pi(add) = [] I(#add) = 1 \pi(#add) = [] I(recip) = x1 \pi(recip) = 1 PREC: #top = proper = #first = #proper = add = #add > sqr > 0 > cons = nil > first = dbl = terms = mark > s USABLE RULES: { 45..1 } Number of SCCs: 5 SCC { #73 } QKBOPS(sum)... removes: #73 I(sqr) = 5 + x1 \pi(sqr) = [] I(#top) = x1 \pi(#top) = [1] I(cons) = 5 + x1 \pi(cons) = [] I(proper) = x1 \pi(proper) = [] I(ok) = 4 + x1 \pi(ok) = [] I(first) = x1 + x2 \pi(first) = [2] I(active) = x1 \pi(active) = 1 I(0) = 4 I(#first) = 1 \pi(#first) = [] I(#proper) = x1 \pi(#proper) = [] I(s) = 1 \pi(s) = [] I(#active) = x1 \pi(#active) = 1 I(nil) = 3 I(dbl) = 3 + x1 \pi(dbl) = [] I(terms) = 11 + x1 \pi(terms) = [] I(mark) = 3 \pi(mark) = [] I(add) = 1 + x1 + x2 \pi(add) = [] I(#add) = 1 \pi(#add) = [] I(recip) = x1 \pi(recip) = 1 PREC: #top = proper = 0 = #first = #proper = s = #add > nil > sqr = dbl = terms = mark = add > cons = ok = first USABLE RULES: { 45..43 41..38 27..1 } Number of SCCs: 4 SCC { #39 #40 #68 } QKBOPS(sum)... removes: #39 #40 #68 I(ok) = 1 + x1 \pi(ok) = [1] I(mark) = 1 + x1 \pi(mark) = [1] I(#add) = x1 + x2 \pi(#add) = [] PREC: #add > ok = mark USABLE RULES: { } Number of SCCs: 3 SCC { #42 #43 #70 } QKBOPS(sum)... removes: #42 #43 #70 I(ok) = 1 + x1 \pi(ok) = [1] I(#first) = x1 + x2 \pi(#first) = [] I(mark) = 1 + x1 \pi(mark) = [1] PREC: #first > mark > ok USABLE RULES: { } Number of SCCs: 2 SCC { #18 #20 #22 #24 #26 #28 #30 #32 #34 } QKBOPS(sum)... removes: #26 #28 #30 #32 #34 I(sqr) = x1 \pi(sqr) = 1 I(cons) = x1 \pi(cons) = 1 I(first) = x1 + x2 \pi(first) = [1,2] I(#active) = x1 \pi(#active) = [1] I(dbl) = x1 \pi(dbl) = [1] I(terms) = x1 \pi(terms) = 1 I(add) = x1 + x2 \pi(add) = [1] I(recip) = x1 \pi(recip) = 1 PREC: first = #active = dbl = add USABLE RULES: { } Number of SCCs: 2 SCC { #18 #20 #22 #24 } QKBOPS(sum)... removes: #18 I(sqr) = x1 \pi(sqr) = 1 I(cons) = x1 \pi(cons) = 1 I(#active) = x1 \pi(#active) = [] I(terms) = 1 + x1 \pi(terms) = [1] I(recip) = x1 \pi(recip) = 1 PREC: #active = terms USABLE RULES: { } Number of SCCs: 2 SCC { #20 #22 #24 } QKBOPS(sum)... removes: #20 I(sqr) = x1 \pi(sqr) = 1 I(cons) = x1 \pi(cons) = [1] I(#active) = x1 \pi(#active) = 1 I(recip) = x1 \pi(recip) = 1 PREC: cons USABLE RULES: { } Number of SCCs: 2 SCC { #22 #24 } QKBOPS(sum)... removes: #22 I(sqr) = x1 \pi(sqr) = 1 I(#active) = x1 \pi(#active) = 1 I(recip) = 1 + x1 \pi(recip) = [1] PREC: recip USABLE RULES: { } Number of SCCs: 2 SCC { #24 } QKBOPS(sum)... removes: #24 I(sqr) = 1 + x1 \pi(sqr) = [1] I(#active) = x1 \pi(#active) = [] PREC: sqr = #active USABLE RULES: { } Number of SCCs: 1 SCC { #45 #47 #48 #50 #52 #54 #56 #57 #59 #61 #62 } QKBOPS(sum)... removes: #47 #48 #56 #57 #61 #62 I(sqr) = x1 \pi(sqr) = 1 I(cons) = x1 + x2 \pi(cons) = [1,2] I(first) = x1 + x2 \pi(first) = [] I(s) = x1 \pi(s) = 1 I(#proper) = x1 \pi(#proper) = [1] I(dbl) = x1 \pi(dbl) = 1 I(terms) = x1 \pi(terms) = 1 I(add) = x1 + x2 \pi(add) = [1] I(recip) = x1 \pi(recip) = 1 PREC: cons = first = #proper = add USABLE RULES: { } Number of SCCs: 1 SCC { #45 #50 #52 #54 #59 } QKBOPS(sum)... removes: #45 I(sqr) = x1 \pi(sqr) = 1 I(s) = x1 \pi(s) = 1 I(#proper) = x1 \pi(#proper) = 1 I(dbl) = x1 \pi(dbl) = 1 I(terms) = x1 \pi(terms) = [1] I(recip) = x1 \pi(recip) = 1 PREC: terms USABLE RULES: { } Number of SCCs: 1 SCC { #50 #52 #54 #59 } QKBOPS(sum)... removes: #59 I(sqr) = x1 \pi(sqr) = 1 I(s) = x1 \pi(s) = 1 I(#proper) = x1 \pi(#proper) = [] I(dbl) = 1 + x1 \pi(dbl) = [] I(recip) = x1 \pi(recip) = 1 PREC: #proper > dbl USABLE RULES: { } Number of SCCs: 1 SCC { #50 #52 #54 } QKBOPS(sum)... removes: #52 I(sqr) = x1 \pi(sqr) = [1] I(s) = x1 \pi(s) = 1 I(#proper) = x1 \pi(#proper) = [1] I(recip) = x1 \pi(recip) = 1 PREC: sqr = #proper USABLE RULES: { } Number of SCCs: 1 SCC { #50 #54 } QKBOPS(sum)... removes: #50 I(s) = x1 \pi(s) = 1 I(#proper) = x1 \pi(#proper) = 1 I(recip) = 1 + x1 \pi(recip) = [1] PREC: recip USABLE RULES: { } Number of SCCs: 1 SCC { #54 } QKBOPS(sum)... removes: #54 I(s) = 1 + x1 \pi(s) = [1] I(#proper) = x1 \pi(#proper) = [] PREC: s = #proper USABLE RULES: { } Number of SCCs: 0