WORST_CASE(?,O(n^3)) * Step 1: NaturalPI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(X) -> dbl(X) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(X) -> sqr(X) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalPI {shape = Linear, restrict = Restrict, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a polynomial interpretation of kind constructor-based(linear): The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = 0 p(a__add) = 4 + x1 + x2 p(a__dbl) = x1 p(a__first) = x1 + x2 p(a__sqr) = x1 p(a__terms) = 1 + x1 p(add) = 4 + x1 + x2 p(cons) = x1 p(dbl) = x1 p(first) = x1 + x2 p(mark) = x1 p(nil) = 0 p(recip) = 1 + x1 p(s) = 1 p(sqr) = x1 p(terms) = 1 + x1 Following rules are strictly oriented: a__add(0(),X) = 4 + X > X = mark(X) a__add(s(X),Y) = 5 + Y > 1 = s(add(X,Y)) a__first(s(X),cons(Y,Z)) = 1 + Y > Y = cons(mark(Y),first(X,Z)) Following rules are (at-least) weakly oriented: a__add(X1,X2) = 4 + X1 + X2 >= 4 + X1 + X2 = add(X1,X2) a__dbl(X) = X >= X = dbl(X) a__dbl(0()) = 0 >= 0 = 0() a__dbl(s(X)) = 1 >= 1 = s(s(dbl(X))) a__first(X1,X2) = X1 + X2 >= X1 + X2 = first(X1,X2) a__first(0(),X) = X >= 0 = nil() a__sqr(X) = X >= X = sqr(X) a__sqr(0()) = 0 >= 0 = 0() a__sqr(s(X)) = 1 >= 1 = s(add(sqr(X),dbl(X))) a__terms(N) = 1 + N >= 1 + N = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = 1 + X >= 1 + X = terms(X) mark(0()) = 0 >= 0 = 0() mark(add(X1,X2)) = 4 + X1 + X2 >= 4 + X1 + X2 = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = X1 >= X1 = cons(mark(X1),X2) mark(dbl(X)) = X >= X = a__dbl(mark(X)) mark(first(X1,X2)) = X1 + X2 >= X1 + X2 = a__first(mark(X1),mark(X2)) mark(nil()) = 0 >= 0 = nil() mark(recip(X)) = 1 + X >= 1 + X = recip(mark(X)) mark(s(X)) = 1 >= 1 = s(X) mark(sqr(X)) = X >= X = a__sqr(mark(X)) mark(terms(X)) = 1 + X >= 1 + X = a__terms(mark(X)) * Step 2: NaturalPI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__sqr(X) -> sqr(X) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalPI {shape = Linear, restrict = Restrict, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a polynomial interpretation of kind constructor-based(linear): The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = 2 p(a__add) = 1 + x1 + x2 p(a__dbl) = 3 + x1 p(a__first) = x1 + x2 p(a__sqr) = 1 + x1 p(a__terms) = 1 + x1 p(add) = 1 + x1 + x2 p(cons) = x1 p(dbl) = 3 + x1 p(first) = x1 + x2 p(mark) = x1 p(nil) = 2 p(recip) = x1 p(s) = 2 p(sqr) = 1 + x1 p(terms) = 1 + x1 Following rules are strictly oriented: a__dbl(0()) = 5 > 2 = 0() a__dbl(s(X)) = 5 > 2 = s(s(dbl(X))) a__sqr(0()) = 3 > 2 = 0() a__sqr(s(X)) = 3 > 2 = s(add(sqr(X),dbl(X))) Following rules are (at-least) weakly oriented: a__add(X1,X2) = 1 + X1 + X2 >= 1 + X1 + X2 = add(X1,X2) a__add(0(),X) = 3 + X >= X = mark(X) a__add(s(X),Y) = 3 + Y >= 2 = s(add(X,Y)) a__dbl(X) = 3 + X >= 3 + X = dbl(X) a__first(X1,X2) = X1 + X2 >= X1 + X2 = first(X1,X2) a__first(0(),X) = 2 + X >= 2 = nil() a__first(s(X),cons(Y,Z)) = 2 + Y >= Y = cons(mark(Y),first(X,Z)) a__sqr(X) = 1 + X >= 1 + X = sqr(X) a__terms(N) = 1 + N >= 1 + N = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = 1 + X >= 1 + X = terms(X) mark(0()) = 2 >= 2 = 0() mark(add(X1,X2)) = 1 + X1 + X2 >= 1 + X1 + X2 = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = X1 >= X1 = cons(mark(X1),X2) mark(dbl(X)) = 3 + X >= 3 + X = a__dbl(mark(X)) mark(first(X1,X2)) = X1 + X2 >= X1 + X2 = a__first(mark(X1),mark(X2)) mark(nil()) = 2 >= 2 = nil() mark(recip(X)) = X >= X = recip(mark(X)) mark(s(X)) = 2 >= 2 = s(X) mark(sqr(X)) = 1 + X >= 1 + X = a__sqr(mark(X)) mark(terms(X)) = 1 + X >= 1 + X = a__terms(mark(X)) * Step 3: NaturalPI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__sqr(X) -> sqr(X) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalPI {shape = Linear, restrict = Restrict, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a polynomial interpretation of kind constructor-based(linear): The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = 5 p(a__add) = x1 + x2 p(a__dbl) = x1 p(a__first) = x1 + x2 p(a__sqr) = x1 p(a__terms) = 6 + x1 p(add) = x1 + x2 p(cons) = 5 + x1 p(dbl) = x1 p(first) = x1 + x2 p(mark) = x1 p(nil) = 2 p(recip) = 1 + x1 p(s) = 0 p(sqr) = x1 p(terms) = 6 + x1 Following rules are strictly oriented: a__first(0(),X) = 5 + X > 2 = nil() Following rules are (at-least) weakly oriented: a__add(X1,X2) = X1 + X2 >= X1 + X2 = add(X1,X2) a__add(0(),X) = 5 + X >= X = mark(X) a__add(s(X),Y) = Y >= 0 = s(add(X,Y)) a__dbl(X) = X >= X = dbl(X) a__dbl(0()) = 5 >= 5 = 0() a__dbl(s(X)) = 0 >= 0 = s(s(dbl(X))) a__first(X1,X2) = X1 + X2 >= X1 + X2 = first(X1,X2) a__first(s(X),cons(Y,Z)) = 5 + Y >= 5 + Y = cons(mark(Y),first(X,Z)) a__sqr(X) = X >= X = sqr(X) a__sqr(0()) = 5 >= 5 = 0() a__sqr(s(X)) = 0 >= 0 = s(add(sqr(X),dbl(X))) a__terms(N) = 6 + N >= 6 + N = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = 6 + X >= 6 + X = terms(X) mark(0()) = 5 >= 5 = 0() mark(add(X1,X2)) = X1 + X2 >= X1 + X2 = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = 5 + X1 >= 5 + X1 = cons(mark(X1),X2) mark(dbl(X)) = X >= X = a__dbl(mark(X)) mark(first(X1,X2)) = X1 + X2 >= X1 + X2 = a__first(mark(X1),mark(X2)) mark(nil()) = 2 >= 2 = nil() mark(recip(X)) = 1 + X >= 1 + X = recip(mark(X)) mark(s(X)) = 0 >= 0 = s(X) mark(sqr(X)) = X >= X = a__sqr(mark(X)) mark(terms(X)) = 6 + X >= 6 + X = a__terms(mark(X)) * Step 4: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__first(X1,X2) -> first(X1,X2) a__sqr(X) -> sqr(X) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 1, miDegree = 1, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [5] p(a__add) = [1] x1 + [1] x2 + [1] p(a__dbl) = [1] x1 + [4] p(a__first) = [1] x1 + [1] x2 + [3] p(a__sqr) = [1] x1 + [0] p(a__terms) = [1] x1 + [8] p(add) = [1] x1 + [1] x2 + [1] p(cons) = [1] x1 + [0] p(dbl) = [1] x1 + [4] p(first) = [1] x1 + [1] x2 + [3] p(mark) = [1] x1 + [0] p(nil) = [0] p(recip) = [1] x1 + [0] p(s) = [1] p(sqr) = [1] x1 + [0] p(terms) = [1] x1 + [8] Following rules are strictly oriented: a__terms(N) = [1] N + [8] > [1] N + [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1] X1 + [1] X2 + [1] >= [1] X1 + [1] X2 + [1] = add(X1,X2) a__add(0(),X) = [1] X + [6] >= [1] X + [0] = mark(X) a__add(s(X),Y) = [1] Y + [2] >= [1] = s(add(X,Y)) a__dbl(X) = [1] X + [4] >= [1] X + [4] = dbl(X) a__dbl(0()) = [9] >= [5] = 0() a__dbl(s(X)) = [5] >= [1] = s(s(dbl(X))) a__first(X1,X2) = [1] X1 + [1] X2 + [3] >= [1] X1 + [1] X2 + [3] = first(X1,X2) a__first(0(),X) = [1] X + [8] >= [0] = nil() a__first(s(X),cons(Y,Z)) = [1] Y + [4] >= [1] Y + [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1] X + [0] >= [1] X + [0] = sqr(X) a__sqr(0()) = [5] >= [5] = 0() a__sqr(s(X)) = [1] >= [1] = s(add(sqr(X),dbl(X))) a__terms(X) = [1] X + [8] >= [1] X + [8] = terms(X) mark(0()) = [5] >= [5] = 0() mark(add(X1,X2)) = [1] X1 + [1] X2 + [1] >= [1] X1 + [1] X2 + [1] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1] X1 + [0] >= [1] X1 + [0] = cons(mark(X1),X2) mark(dbl(X)) = [1] X + [4] >= [1] X + [4] = a__dbl(mark(X)) mark(first(X1,X2)) = [1] X1 + [1] X2 + [3] >= [1] X1 + [1] X2 + [3] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] >= [0] = nil() mark(recip(X)) = [1] X + [0] >= [1] X + [0] = recip(mark(X)) mark(s(X)) = [1] >= [1] = s(X) mark(sqr(X)) = [1] X + [0] >= [1] X + [0] = a__sqr(mark(X)) mark(terms(X)) = [1] X + [8] >= [1] X + [8] = a__terms(mark(X)) * Step 5: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__first(X1,X2) -> first(X1,X2) a__sqr(X) -> sqr(X) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [0] p(a__add) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 0 1] x2 + [0] [0 0 1] [0 0 1] [0] p(a__dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 1 0] [1 1 0] [0] [0 0 1] x1 + [0 0 1] x2 + [0] [0 0 1] [0 0 1] [0] p(a__sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 1 0] [1] [0 0 1] x1 + [1] [0 0 1] [1] p(add) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 0 1] x2 + [0] [0 0 1] [0 0 1] [0] p(cons) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(first) = [1 1 0] [1 1 0] [0] [0 0 1] x1 + [0 0 1] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 1 0] [0] [0 0 1] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(s) = [0] [0] [0] p(sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(terms) = [1 1 0] [0] [0 0 1] x1 + [1] [0 0 1] [1] Following rules are strictly oriented: a__terms(X) = [1 1 0] [1] [0 0 1] X + [1] [0 0 1] [1] > [1 1 0] [0] [0 0 1] X + [1] [0 0 1] [1] = terms(X) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] = add(X1,X2) a__add(0(),X) = [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [1 1 0] [0] [0 0 1] Y + [0] [0 0 1] [0] >= [0] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__dbl(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 1 0] [1 1 0] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 1 0] [1 1 0] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [1 1 0] [0] [0 0 1] Y + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__sqr(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 1 0] [1] [0 0 1] N + [1] [0 0 1] [1] >= [1 1 0] [0] [0 0 1] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) mark(0()) = [0] [0] [0] >= [0] [0] [0] = 0() mark(add(X1,X2)) = [1 1 0] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 1 0] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 1 0] [0] [0 0 1] X1 + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 1 1] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 1 1] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(X) mark(sqr(X)) = [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 1 1] [1] [0 0 1] X + [1] [0 0 1] [1] >= [1 1 1] [1] [0 0 1] X + [1] [0 0 1] [1] = a__terms(mark(X)) * Step 6: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__first(X1,X2) -> first(X1,X2) a__sqr(X) -> sqr(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [0] p(a__add) = [1 0 1] [1 0 1] [0] [0 1 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [1] p(a__dbl) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 0 1] [0] [0 1 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 0 1] [1] [0 0 0] x1 + [0] [0 0 1] [0] p(add) = [1 0 1] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [1] p(cons) = [1 0 0] [0 1 0] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 0] [0] p(dbl) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 0 1] [0] [0 1 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [1] [0 0 0] x1 + [0] [0 0 1] [0] p(s) = [0 1 0] [0] [0 0 0] x1 + [0] [0 0 0] [0] p(sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(terms) = [1 0 1] [1] [0 0 0] x1 + [0] [0 0 1] [0] Following rules are strictly oriented: mark(add(X1,X2)) = [1 0 2] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] > [1 0 2] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] = a__add(mark(X1),mark(X2)) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 1] [1 0 1] [0] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] >= [1 0 1] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] = add(X1,X2) a__add(0(),X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [0 1 0] [1 0 1] [0] [0 0 0] X + [0 0 0] Y + [0] [0 0 0] [0 0 1] [1] >= [0] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__dbl(s(X)) = [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [0] >= [0] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 0 1] [0] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [0 1 0] [1 0 1] [0 1 0] [0] [0 0 0] X + [0 0 0] Y + [0 0 0] Z + [0] [0 0 0] [0 0 1] [0 0 0] [0] >= [0 1 0] [1 0 1] [0] [0 0 0] X + [0 0 0] Y + [0] [0 0 0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__sqr(s(X)) = [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [0] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 0 1] [1] [0 0 0] N + [0] [0 0 1] [0] >= [1 0 1] [1] [0 0 0] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [0] = terms(X) mark(0()) = [0] [0] [0] >= [0] [0] [0] = 0() mark(cons(X1,X2)) = [1 0 1] [0 1 0] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 0] [0] >= [1 0 1] [0 1 0] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 0] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [0] >= [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [0] = s(X) mark(sqr(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 0 2] [1] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 2] [1] [0 0 0] X + [0] [0 0 1] [0] = a__terms(mark(X)) * Step 7: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__first(X1,X2) -> first(X1,X2) a__sqr(X) -> sqr(X) mark(0()) -> 0() mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [0] p(a__add) = [1 0 0] [1 1 1] [0] [0 1 1] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 1] [0] p(a__dbl) = [1 0 0] [0] [0 1 1] x1 + [0] [0 0 0] [0] p(a__first) = [1 0 1] [1 1 1] [0] [0 1 1] x1 + [0 1 1] x2 + [0] [0 0 0] [0 0 0] [0] p(a__sqr) = [1 0 0] [1] [0 1 1] x1 + [0] [0 0 0] [1] p(a__terms) = [1 1 1] [1] [0 1 1] x1 + [1] [0 0 0] [0] p(add) = [1 0 0] [1 1 1] [0] [0 1 1] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 1] [0] p(cons) = [1 0 0] [0] [0 1 1] x1 + [0] [0 0 0] [0] p(dbl) = [1 0 0] [0] [0 1 1] x1 + [0] [0 0 0] [0] p(first) = [1 0 1] [1 1 1] [0] [0 1 1] x1 + [0 1 1] x2 + [0] [0 0 0] [0 0 0] [0] p(mark) = [1 1 1] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [0] [0 1 1] x1 + [0] [0 0 0] [0] p(s) = [0 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(sqr) = [1 0 0] [1] [0 1 1] x1 + [0] [0 0 0] [1] p(terms) = [1 1 1] [0] [0 1 1] x1 + [1] [0 0 0] [0] Following rules are strictly oriented: mark(sqr(X)) = [1 1 1] [2] [0 1 1] X + [0] [0 0 0] [1] > [1 1 1] [1] [0 1 1] X + [0] [0 0 0] [1] = a__sqr(mark(X)) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 1 1] [0] [0 1 1] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 1] [0] >= [1 0 0] [1 1 1] [0] [0 1 1] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 1] [0] = add(X1,X2) a__add(0(),X) = [1 1 1] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 1 1] [0] [0 1 0] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [0 0 0] [1 1 1] [0] [0 0 1] X + [0 1 0] Y + [0] [0 0 0] [0 0 1] [0] >= [0 0 0] [0] [0 0 0] Y + [0] [0 0 1] [0] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 1 1] X + [0] [0 0 0] [0] >= [1 0 0] [0] [0 1 1] X + [0] [0 0 0] [0] = dbl(X) a__dbl(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__dbl(s(X)) = [0 0 0] [0] [0 0 1] X + [0] [0 0 0] [0] >= [0] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 1] [1 1 1] [0] [0 1 1] X1 + [0 1 1] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 0 1] [1 1 1] [0] [0 1 1] X1 + [0 1 1] X2 + [0] [0 0 0] [0 0 0] [0] = first(X1,X2) a__first(0(),X) = [1 1 1] [0] [0 1 1] X + [0] [0 0 0] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [0 0 1] [1 1 1] [0] [0 0 1] X + [0 1 1] Y + [0] [0 0 0] [0 0 0] [0] >= [1 1 1] [0] [0 1 1] Y + [0] [0 0 0] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [1] [0 1 1] X + [0] [0 0 0] [1] >= [1 0 0] [1] [0 1 1] X + [0] [0 0 0] [1] = sqr(X) a__sqr(0()) = [1] [0] [1] >= [0] [0] [0] = 0() a__sqr(s(X)) = [0 0 0] [1] [0 0 1] X + [0] [0 0 0] [1] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 1 1] [1] [0 1 1] N + [1] [0 0 0] [0] >= [1 1 1] [1] [0 1 1] N + [1] [0 0 0] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 1 1] [1] [0 1 1] X + [1] [0 0 0] [0] >= [1 1 1] [0] [0 1 1] X + [1] [0 0 0] [0] = terms(X) mark(0()) = [0] [0] [0] >= [0] [0] [0] = 0() mark(add(X1,X2)) = [1 1 1] [1 2 2] [0] [0 1 1] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 1] [0] >= [1 1 1] [1 2 2] [0] [0 1 1] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 1] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 1 1] [0] [0 1 1] X1 + [0] [0 0 0] [0] >= [1 1 1] [0] [0 1 1] X1 + [0] [0 0 0] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 1 1] [0] [0 1 1] X + [0] [0 0 0] [0] >= [1 1 1] [0] [0 1 1] X + [0] [0 0 0] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 1 2] [1 2 2] [0] [0 1 1] X1 + [0 1 1] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 1 2] [1 2 2] [0] [0 1 1] X1 + [0 1 1] X2 + [0] [0 0 0] [0 0 0] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 1 1] [0] [0 1 1] X + [0] [0 0 0] [0] >= [1 1 1] [0] [0 1 1] X + [0] [0 0 0] [0] = recip(mark(X)) mark(s(X)) = [0 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [0 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = s(X) mark(terms(X)) = [1 2 2] [1] [0 1 1] X + [1] [0 0 0] [0] >= [1 2 2] [1] [0 1 1] X + [1] [0 0 0] [0] = a__terms(mark(X)) * Step 8: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__first(X1,X2) -> first(X1,X2) a__sqr(X) -> sqr(X) mark(0()) -> 0() mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(sqr(X)) -> a__sqr(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [0] p(a__add) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 1 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 1 1] [0] p(a__sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(add) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(cons) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 1 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 1 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(s) = [0 1 0] [0] [0 0 0] x1 + [0] [0 0 0] [1] p(sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(terms) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] Following rules are strictly oriented: mark(s(X)) = [0 1 0] [1] [0 0 0] X + [0] [0 0 0] [1] > [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [1] = s(X) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = add(X1,X2) a__add(0(),X) = [1 0 1] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [0 1 0] [1 0 1] [0] [0 0 0] X + [0 1 0] Y + [0] [0 0 0] [0 0 1] [1] >= [0] [0] [1] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__dbl(s(X)) = [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [1] >= [0] [0] [1] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 1 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 1 1] [0] >= [1 0 0] [1 1 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 1 1] [0] [0 0 0] X + [0] [0 1 1] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [0 1 0] [1 1 1] [0] [0 0 0] X + [0 0 0] Y + [0] [0 0 0] [0 1 1] [1] >= [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__sqr(s(X)) = [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [1] >= [0] [0] [1] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 0 1] [0] [0 0 0] N + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = terms(X) mark(0()) = [0] [0] [0] >= [0] [0] [0] = 0() mark(add(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 0 1] [1 1 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 1 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = recip(mark(X)) mark(sqr(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] = a__terms(mark(X)) * Step 9: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__first(X1,X2) -> first(X1,X2) a__sqr(X) -> sqr(X) mark(0()) -> 0() mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [1] p(a__add) = [1 1 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__dbl) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 1 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__sqr) = [1 1 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(add) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(cons) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(s) = [0] [0] [1] p(sqr) = [1 1 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(terms) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] Following rules are strictly oriented: mark(0()) = [1] [0] [1] > [0] [0] [1] = 0() Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 1 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = add(X1,X2) a__add(0(),X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [1] >= [0] [0] [1] = s(add(X,Y)) a__dbl(X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [1] [0] [1] >= [0] [0] [1] = 0() a__dbl(s(X)) = [1] [0] [1] >= [0] [0] [1] = s(s(dbl(X))) a__first(X1,X2) = [1 1 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [1] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 1 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [0] [0] [1] >= [0] [0] [1] = 0() a__sqr(s(X)) = [0] [0] [1] >= [0] [0] [1] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 0 1] [0] [0 0 0] N + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = terms(X) mark(add(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [1] [0] [1] >= [0] [0] [1] = s(X) mark(sqr(X)) = [1 1 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] = a__terms(mark(X)) * Step 10: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__first(X1,X2) -> first(X1,X2) a__sqr(X) -> sqr(X) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [1] p(a__add) = [1 1 1] [1 1 0] [0] [0 0 1] x1 + [0 0 1] x2 + [0] [0 0 1] [0 0 1] [0] p(a__dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 1 1] [1] [0 1 0] x1 + [0 0 1] x2 + [1] [0 0 1] [0 0 1] [1] p(a__sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 1 1] [0] [0 0 1] x1 + [0] [0 0 1] [0] p(add) = [1 1 1] [1 1 0] [0] [0 0 1] x1 + [0 0 1] x2 + [0] [0 0 1] [0 0 1] [0] p(cons) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 1 1] [0] [0 1 0] x1 + [0 0 1] x2 + [1] [0 0 1] [0 0 1] [1] p(mark) = [1 1 0] [0] [0 0 1] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 1 0] [0] [0 0 1] x1 + [0] [0 0 1] [0] p(s) = [0] [0] [0] p(sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(terms) = [1 1 1] [0] [0 0 1] x1 + [0] [0 0 1] [0] Following rules are strictly oriented: a__first(X1,X2) = [1 0 0] [1 1 1] [1] [0 1 0] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] > [1 0 0] [1 1 1] [0] [0 1 0] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] = first(X1,X2) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 1 1] [1 1 0] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 1 1] [1 1 0] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] = add(X1,X2) a__add(0(),X) = [1 1 0] [1] [0 0 1] X + [1] [0 0 1] [1] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [1 1 0] [0] [0 0 1] Y + [0] [0 0 1] [0] >= [0] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [0] [0] [1] >= [0] [0] [1] = 0() a__dbl(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(s(dbl(X))) a__first(0(),X) = [1 1 1] [1] [0 0 1] X + [1] [0 0 1] [2] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [1 1 1] [1] [0 0 1] Y + [1] [0 0 1] [1] >= [1 1 0] [0] [0 0 1] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [0] [0] [1] >= [0] [0] [1] = 0() a__sqr(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 1 1] [0] [0 0 1] N + [0] [0 0 1] [0] >= [1 1 1] [0] [0 0 1] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 1 1] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 1] [0] [0 0 1] X + [0] [0 0 1] [0] = terms(X) mark(0()) = [0] [1] [1] >= [0] [0] [1] = 0() mark(add(X1,X2)) = [1 1 2] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 1 2] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 1 0] [0] [0 0 1] X1 + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 1 0] [1 1 2] [1] [0 0 1] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] >= [1 1 0] [1 1 2] [1] [0 0 1] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 1 1] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 1] [0] [0 0 1] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(X) mark(sqr(X)) = [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 1 2] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 2] [0] [0 0 1] X + [0] [0 0 1] [0] = a__terms(mark(X)) * Step 11: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__sqr(X) -> sqr(X) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [0] p(a__add) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 0] [0] p(a__dbl) = [1 0 1] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 1 1] [0] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 0] [0] p(a__sqr) = [1 0 0] [0] [0 1 1] x1 + [0] [0 0 0] [0] p(a__terms) = [1 1 0] [0] [0 1 1] x1 + [1] [0 0 1] [0] p(add) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 0] [0] p(cons) = [1 0 0] [0 0 1] [0] [0 1 0] x1 + [0 0 0] x2 + [0] [0 0 0] [0 0 0] [0] p(dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 0] [0] p(first) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 0] [0] p(mark) = [1 1 0] [0] [0 1 0] x1 + [0] [0 0 0] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 0] [0] p(s) = [0 0 0] [1] [0 0 1] x1 + [0] [0 0 0] [0] p(sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 0] [0] p(terms) = [1 1 0] [0] [0 1 0] x1 + [1] [0 0 1] [0] Following rules are strictly oriented: mark(terms(X)) = [1 2 0] [1] [0 1 0] X + [1] [0 0 0] [0] > [1 2 0] [0] [0 1 0] X + [1] [0 0 0] [0] = a__terms(mark(X)) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] = add(X1,X2) a__add(0(),X) = [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] = mark(X) a__add(s(X),Y) = [0 0 0] [1 1 0] [1] [0 0 1] X + [0 1 0] Y + [0] [0 0 0] [0 0 0] [0] >= [1] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 0 1] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 0] [0] = dbl(X) a__dbl(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__dbl(s(X)) = [0 0 0] [1] [0 0 1] X + [0] [0 0 0] [0] >= [1] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 1 1] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] = first(X1,X2) a__first(0(),X) = [1 1 1] [0] [0 1 0] X + [0] [0 0 0] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [0 0 0] [1 1 0] [0 0 1] [1] [0 0 1] X + [0 1 0] Y + [0 0 0] Z + [0] [0 0 0] [0 0 0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] Y + [0] [0 0 0] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 1 1] X + [0] [0 0 0] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 0] [0] = sqr(X) a__sqr(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__sqr(s(X)) = [0 0 0] [1] [0 0 1] X + [0] [0 0 0] [0] >= [1] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 1 0] [0] [0 1 1] N + [1] [0 0 1] [0] >= [1 1 0] [0] [0 1 0] N + [0] [0 0 0] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 1 0] [0] [0 1 1] X + [1] [0 0 1] [0] >= [1 1 0] [0] [0 1 0] X + [1] [0 0 1] [0] = terms(X) mark(0()) = [0] [0] [0] >= [0] [0] [0] = 0() mark(add(X1,X2)) = [1 1 0] [1 2 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 1 0] [1 2 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 1 0] [0 0 1] [0] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 1 0] [0 0 1] [0] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 0] [0 0 0] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 1 0] [1 2 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 1 0] [1 2 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] = recip(mark(X)) mark(s(X)) = [0 0 1] [1] [0 0 1] X + [0] [0 0 0] [0] >= [0 0 0] [1] [0 0 1] X + [0] [0 0 0] [0] = s(X) mark(sqr(X)) = [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] = a__sqr(mark(X)) * Step 12: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__sqr(X) -> sqr(X) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [1] p(a__add) = [1 1 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__dbl) = [1 1 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 1 1] [0] [0 0 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__sqr) = [1 1 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 0 1] [1] [0 0 0] x1 + [0] [0 0 1] [1] p(add) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(cons) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 1 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [1] p(recip) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(s) = [0] [0] [0] p(sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(terms) = [1 0 1] [1] [0 0 0] x1 + [0] [0 0 1] [1] Following rules are strictly oriented: mark(nil()) = [1] [0] [1] > [0] [0] [1] = nil() Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 1 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = add(X1,X2) a__add(0(),X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] >= [0] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 1 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 1 1] [0] [0 0 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [1] [0] [1] >= [0] [0] [1] = 0() a__dbl(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 1 1] [0] [0 0 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 1 1] [0] [0 1 0] X + [0] [0 0 1] [1] >= [0] [0] [1] = nil() a__first(s(X),cons(Y,Z)) = [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 1 0] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [0] [0] [1] >= [0] [0] [1] = 0() a__sqr(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 0 1] [1] [0 0 0] N + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [1] = terms(X) mark(0()) = [1] [0] [1] >= [0] [0] [1] = 0() mark(add(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 1 2] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__first(mark(X1),mark(X2)) mark(recip(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(X) mark(sqr(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 0 2] [2] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 2] [1] [0 0 0] X + [0] [0 0 1] [1] = a__terms(mark(X)) * Step 13: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__sqr(X) -> sqr(X) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(recip(X)) -> recip(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(nil()) -> nil() mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [1] p(a__add) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 0 1] x2 + [1] [0 0 1] [0 0 1] [1] p(a__dbl) = [1 0 0] [0] [0 1 0] x1 + [1] [0 0 1] [1] p(a__first) = [1 1 1] [1 1 0] [0] [0 0 1] x1 + [0 0 1] x2 + [1] [0 0 1] [0 0 1] [1] p(a__sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 1 1] [1] [0 0 1] x1 + [0] [0 0 1] [1] p(add) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 0 1] x2 + [0] [0 0 1] [0 0 1] [1] p(cons) = [1 0 1] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 0 0] [0] [0 1 0] x1 + [1] [0 0 1] [1] p(first) = [1 1 1] [1 1 0] [0] [0 0 1] x1 + [0 0 1] x2 + [0] [0 0 1] [0 0 1] [1] p(mark) = [1 1 0] [0] [0 0 1] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [1] [0 1 0] x1 + [0] [0 0 1] [0] p(s) = [0] [0] [0] p(sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(terms) = [1 1 1] [1] [0 0 1] x1 + [0] [0 0 1] [1] Following rules are strictly oriented: mark(dbl(X)) = [1 1 0] [1] [0 0 1] X + [1] [0 0 1] [1] > [1 1 0] [0] [0 0 1] X + [1] [0 0 1] [1] = a__dbl(mark(X)) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] >= [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [1] = add(X1,X2) a__add(0(),X) = [1 1 0] [0] [0 0 1] X + [1] [0 0 1] [2] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [1 1 0] [0] [0 0 1] Y + [1] [0 0 1] [1] >= [0] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 1 0] X + [1] [0 0 1] [1] >= [1 0 0] [0] [0 1 0] X + [1] [0 0 1] [1] = dbl(X) a__dbl(0()) = [0] [1] [2] >= [0] [0] [1] = 0() a__dbl(s(X)) = [0] [1] [1] >= [0] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 1 1] [1 1 0] [0] [0 0 1] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] >= [1 1 1] [1 1 0] [0] [0 0 1] X1 + [0 0 1] X2 + [0] [0 0 1] [0 0 1] [1] = first(X1,X2) a__first(0(),X) = [1 1 0] [1] [0 0 1] X + [2] [0 0 1] [2] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [1 1 1] [0] [0 0 1] Y + [1] [0 0 1] [1] >= [1 1 1] [0] [0 0 1] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [0] [0] [1] >= [0] [0] [1] = 0() a__sqr(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 1 1] [1] [0 0 1] N + [0] [0 0 1] [1] >= [1 1 1] [1] [0 0 1] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 1 1] [1] [0 0 1] X + [0] [0 0 1] [1] >= [1 1 1] [1] [0 0 1] X + [0] [0 0 1] [1] = terms(X) mark(0()) = [0] [1] [1] >= [0] [0] [1] = 0() mark(add(X1,X2)) = [1 1 0] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] >= [1 1 0] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 1 1] [0] [0 0 1] X1 + [0] [0 0 1] [0] >= [1 1 1] [0] [0 0 1] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(first(X1,X2)) = [1 1 2] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] >= [1 1 2] [1 1 1] [0] [0 0 1] X1 + [0 0 1] X2 + [1] [0 0 1] [0 0 1] [1] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 1 0] [1] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 0] [1] [0 0 1] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(X) mark(sqr(X)) = [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] >= [1 1 0] [0] [0 0 1] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 1 2] [1] [0 0 1] X + [1] [0 0 1] [1] >= [1 1 2] [1] [0 0 1] X + [0] [0 0 1] [1] = a__terms(mark(X)) * Step 14: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__dbl(X) -> dbl(X) a__sqr(X) -> sqr(X) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(recip(X)) -> recip(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(dbl(X)) -> a__dbl(mark(X)) mark(nil()) -> nil() mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [1] [0] p(a__add) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 0] [0] p(a__dbl) = [1 1 0] [1] [0 1 0] x1 + [1] [0 0 0] [0] p(a__first) = [1 0 0] [1 1 0] [0] [0 1 1] x1 + [0 1 1] x2 + [0] [0 0 0] [0 0 0] [0] p(a__sqr) = [1 0 1] [0] [0 1 0] x1 + [0] [0 0 0] [0] p(a__terms) = [1 1 1] [1] [0 1 0] x1 + [0] [0 0 0] [0] p(add) = [1 0 0] [1 1 0] [0] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 0] [0] p(cons) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 1 0] [0] [0 1 0] x1 + [1] [0 0 0] [0] p(first) = [1 0 0] [1 1 0] [0] [0 1 1] x1 + [0 1 0] x2 + [0] [0 0 0] [0 0 0] [0] p(mark) = [1 1 0] [0] [0 1 0] x1 + [0] [0 0 0] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 0] [0] p(s) = [0 0 1] [1] [0 0 0] x1 + [0] [0 0 0] [0] p(sqr) = [1 0 1] [0] [0 1 0] x1 + [0] [0 0 0] [0] p(terms) = [1 1 0] [1] [0 1 0] x1 + [0] [0 0 0] [0] Following rules are strictly oriented: a__dbl(X) = [1 1 0] [1] [0 1 0] X + [1] [0 0 0] [0] > [1 1 0] [0] [0 1 0] X + [1] [0 0 0] [0] = dbl(X) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 0 0] [1 1 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] = add(X1,X2) a__add(0(),X) = [1 1 0] [0] [0 1 0] X + [1] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] = mark(X) a__add(s(X),Y) = [0 0 1] [1 1 0] [1] [0 0 0] X + [0 1 0] Y + [0] [0 0 0] [0 0 0] [0] >= [1] [0] [0] = s(add(X,Y)) a__dbl(0()) = [2] [2] [0] >= [0] [1] [0] = 0() a__dbl(s(X)) = [0 0 1] [2] [0 0 0] X + [1] [0 0 0] [0] >= [1] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 1 0] [0] [0 1 1] X1 + [0 1 1] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 0 0] [1 1 0] [0] [0 1 1] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] = first(X1,X2) a__first(0(),X) = [1 1 0] [0] [0 1 1] X + [1] [0 0 0] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [0 0 1] [1 1 0] [1] [0 0 0] X + [0 1 1] Y + [0] [0 0 0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] Y + [0] [0 0 0] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 1] [0] [0 1 0] X + [0] [0 0 0] [0] >= [1 0 1] [0] [0 1 0] X + [0] [0 0 0] [0] = sqr(X) a__sqr(0()) = [0] [1] [0] >= [0] [1] [0] = 0() a__sqr(s(X)) = [0 0 1] [1] [0 0 0] X + [0] [0 0 0] [0] >= [1] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 1 1] [1] [0 1 0] N + [0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] N + [0] [0 0 0] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 1 1] [1] [0 1 0] X + [0] [0 0 0] [0] >= [1 1 0] [1] [0 1 0] X + [0] [0 0 0] [0] = terms(X) mark(0()) = [1] [1] [0] >= [0] [1] [0] = 0() mark(add(X1,X2)) = [1 1 0] [1 2 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 1 0] [1 2 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 1 0] [0] [0 1 0] X1 + [0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] X1 + [0] [0 0 0] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 2 0] [1] [0 1 0] X + [1] [0 0 0] [0] >= [1 2 0] [1] [0 1 0] X + [1] [0 0 0] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 1 1] [1 2 0] [0] [0 1 1] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] >= [1 1 0] [1 2 0] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 0] [0 0 0] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] = recip(mark(X)) mark(s(X)) = [0 0 1] [1] [0 0 0] X + [0] [0 0 0] [0] >= [0 0 1] [1] [0 0 0] X + [0] [0 0 0] [0] = s(X) mark(sqr(X)) = [1 1 1] [0] [0 1 0] X + [0] [0 0 0] [0] >= [1 1 0] [0] [0 1 0] X + [0] [0 0 0] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 2 0] [1] [0 1 0] X + [0] [0 0 0] [0] >= [1 2 0] [1] [0 1 0] X + [0] [0 0 0] [0] = a__terms(mark(X)) * Step 15: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__add(X1,X2) -> add(X1,X2) a__sqr(X) -> sqr(X) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(recip(X)) -> recip(mark(X)) - Weak TRS: a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(X) -> dbl(X) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(dbl(X)) -> a__dbl(mark(X)) mark(nil()) -> nil() mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [1] [0] p(a__add) = [1 0 0] [1 0 1] [1] [0 1 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [1] p(a__dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__sqr) = [1 0 0] [1] [0 0 0] x1 + [1] [0 0 1] [0] p(a__terms) = [1 0 1] [1] [0 0 0] x1 + [1] [0 0 1] [0] p(add) = [1 0 0] [1 0 1] [0] [0 1 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [1] p(cons) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 0 1] [0] [0 0 0] x1 + [1] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(s) = [0] [0] [0] p(sqr) = [1 0 0] [1] [0 0 0] x1 + [0] [0 0 1] [0] p(terms) = [1 0 1] [1] [0 0 0] x1 + [1] [0 0 1] [0] Following rules are strictly oriented: a__add(X1,X2) = [1 0 0] [1 0 1] [1] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] > [1 0 0] [1 0 1] [0] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] = add(X1,X2) Following rules are (at-least) weakly oriented: a__add(0(),X) = [1 0 1] [1] [0 0 0] X + [1] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] X + [1] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [1 0 1] [1] [0 0 0] Y + [0] [0 0 1] [1] >= [0] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [0] [1] [0] >= [0] [1] [0] = 0() a__dbl(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 0 1] [0] [0 1 0] X + [0] [0 0 1] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [1] [0 0 0] X + [1] [0 0 1] [0] >= [1 0 0] [1] [0 0 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [1] [1] [0] >= [0] [1] [0] = 0() a__sqr(s(X)) = [1] [1] [0] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 0 1] [1] [0 0 0] N + [1] [0 0 1] [0] >= [1 0 1] [1] [0 0 0] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 0 1] [1] [0 0 0] X + [1] [0 0 1] [0] >= [1 0 1] [1] [0 0 0] X + [1] [0 0 1] [0] = terms(X) mark(0()) = [0] [1] [0] >= [0] [1] [0] = 0() mark(add(X1,X2)) = [1 0 1] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [1] [0 0 1] [0 0 1] [1] >= [1 0 1] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [1] [0 0 1] [0 0 1] [1] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 0 1] [0] [0 0 0] X1 + [1] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 0 1] [0] [0 0 0] X + [1] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [1] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [1] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [1] [0 0 1] [0 0 1] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [1] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 0 1] [0] [0 0 0] X + [1] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [0] [1] [0] >= [0] [0] [0] = s(X) mark(sqr(X)) = [1 0 1] [1] [0 0 0] X + [1] [0 0 1] [0] >= [1 0 1] [1] [0 0 0] X + [1] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 0 2] [1] [0 0 0] X + [1] [0 0 1] [0] >= [1 0 2] [1] [0 0 0] X + [1] [0 0 1] [0] = a__terms(mark(X)) * Step 16: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__sqr(X) -> sqr(X) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(recip(X)) -> recip(mark(X)) - Weak TRS: a__add(X1,X2) -> add(X1,X2) a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(X) -> dbl(X) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(dbl(X)) -> a__dbl(mark(X)) mark(nil()) -> nil() mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [1] [0] [0] p(a__add) = [1 1 0] [1 0 1] [1] [0 1 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [1] p(a__dbl) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 1 1] [0] [0 0 0] x1 + [0] [0 0 1] [1] p(add) = [1 1 0] [1 0 1] [1] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [1] p(cons) = [1 0 0] [0 1 0] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 0] [0] p(dbl) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(nil) = [1] [0] [0] p(recip) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [1] p(s) = [0 1 0] [0] [0 0 0] x1 + [0] [0 0 0] [1] p(sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(terms) = [1 1 1] [0] [0 0 0] x1 + [0] [0 0 1] [1] Following rules are strictly oriented: mark(recip(X)) = [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [1] > [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [1] = recip(mark(X)) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 1 0] [1 0 1] [1] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] >= [1 1 0] [1 0 1] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] = add(X1,X2) a__add(0(),X) = [1 0 1] [2] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [0 1 0] [1 0 1] [1] [0 0 0] X + [0 0 0] Y + [0] [0 0 0] [0 0 1] [2] >= [0] [0] [1] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [1] [0] [0] >= [1] [0] [0] = 0() a__dbl(s(X)) = [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [1] >= [0] [0] [1] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [0] >= [1] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [0 1 0] [1 0 1] [0 1 0] [0] [0 0 0] X + [0 0 0] Y + [0 0 0] Z + [0] [0 0 0] [0 0 1] [0 0 0] [1] >= [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [1] [0] [0] >= [1] [0] [0] = 0() a__sqr(s(X)) = [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [1] >= [0] [0] [1] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 1 1] [0] [0 0 0] N + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] N + [0] [0 0 1] [1] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 1 1] [0] [0 0 0] X + [0] [0 0 1] [1] >= [1 1 1] [0] [0 0 0] X + [0] [0 0 1] [1] = terms(X) mark(0()) = [1] [0] [0] >= [1] [0] [0] = 0() mark(add(X1,X2)) = [1 1 1] [1 0 2] [2] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] >= [1 0 1] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 0 1] [0 1 0] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 0] [0] >= [1 0 1] [0 1 0] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 0] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [1] [0] [0] >= [1] [0] [0] = nil() mark(s(X)) = [0 1 0] [1] [0 0 0] X + [0] [0 0 0] [1] >= [0 1 0] [0] [0 0 0] X + [0] [0 0 0] [1] = s(X) mark(sqr(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 1 2] [1] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [1] = a__terms(mark(X)) * Step 17: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__sqr(X) -> sqr(X) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) - Weak TRS: a__add(X1,X2) -> add(X1,X2) a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(X) -> dbl(X) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(dbl(X)) -> a__dbl(mark(X)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [0] p(a__add) = [1 0 0] [1 1 1] [1] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 1 1] [0] p(a__dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 1 1] [0] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 1 1] [0] p(a__sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 1 1] [0] [0 1 0] x1 + [0] [0 1 1] [1] p(add) = [1 0 0] [1 1 1] [1] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 0 1] [0] p(cons) = [1 1 0] [0] [0 1 0] x1 + [0] [0 0 1] [1] p(dbl) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 1 1] [0] [0 1 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 1 1] [0] [0 0 0] x1 + [0] [0 1 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(s) = [1] [0] [0] p(sqr) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(terms) = [1 1 1] [0] [0 1 0] x1 + [0] [0 0 1] [1] Following rules are strictly oriented: mark(cons(X1,X2)) = [1 2 1] [1] [0 0 0] X1 + [0] [0 1 1] [1] > [1 1 1] [0] [0 0 0] X1 + [0] [0 1 1] [1] = cons(mark(X1),X2) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 1 1] [1] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 1 1] [0] >= [1 0 0] [1 1 1] [1] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 0 1] [0] = add(X1,X2) a__add(0(),X) = [1 1 1] [1] [0 1 0] X + [0] [0 1 1] [0] >= [1 1 1] [0] [0 0 0] X + [0] [0 1 1] [0] = mark(X) a__add(s(X),Y) = [1 1 1] [2] [0 1 0] Y + [0] [0 1 1] [0] >= [1] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__dbl(s(X)) = [1] [0] [0] >= [1] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 1 1] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 1 1] [0] >= [1 0 0] [1 1 1] [0] [0 1 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 1 1] [0] [0 1 0] X + [0] [0 1 1] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [1 2 1] [2] [0 1 0] Y + [0] [0 1 1] [1] >= [1 1 1] [0] [0 0 0] Y + [0] [0 1 1] [1] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 1 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__sqr(s(X)) = [1] [0] [0] >= [1] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 1 1] [0] [0 1 0] N + [0] [0 1 1] [1] >= [1 1 1] [0] [0 0 0] N + [0] [0 1 1] [1] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 1 1] [0] [0 1 0] X + [0] [0 1 1] [1] >= [1 1 1] [0] [0 1 0] X + [0] [0 0 1] [1] = terms(X) mark(0()) = [0] [0] [0] >= [0] [0] [0] = 0() mark(add(X1,X2)) = [1 1 1] [1 2 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 1 1] [0 1 1] [0] >= [1 1 1] [1 2 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 1 1] [0 1 1] [0] = a__add(mark(X1),mark(X2)) mark(dbl(X)) = [1 1 1] [0] [0 0 0] X + [0] [0 1 1] [0] >= [1 1 1] [0] [0 0 0] X + [0] [0 1 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 1 1] [1 2 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 1 1] [0 1 1] [0] >= [1 1 1] [1 2 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 1 1] [0 1 1] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 1 1] [0] [0 0 0] X + [0] [0 1 1] [0] >= [1 1 1] [0] [0 0 0] X + [0] [0 1 1] [0] = recip(mark(X)) mark(s(X)) = [1] [0] [0] >= [1] [0] [0] = s(X) mark(sqr(X)) = [1 1 1] [0] [0 0 0] X + [0] [0 1 1] [0] >= [1 1 1] [0] [0 0 0] X + [0] [0 1 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 2 2] [1] [0 0 0] X + [0] [0 1 1] [1] >= [1 2 2] [0] [0 0 0] X + [0] [0 1 1] [1] = a__terms(mark(X)) * Step 18: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: a__sqr(X) -> sqr(X) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) - Weak TRS: a__add(X1,X2) -> add(X1,X2) a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(X) -> dbl(X) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [0] [0] [0] p(a__add) = [1 0 0] [1 0 1] [1] [0 1 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [1] p(a__dbl) = [1 1 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__sqr) = [1 0 0] [1] [0 1 0] x1 + [0] [0 0 1] [1] p(a__terms) = [1 0 1] [1] [0 0 0] x1 + [0] [0 1 1] [1] p(add) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [1] p(cons) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(mark) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(nil) = [0] [0] [0] p(recip) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(s) = [0] [0] [0] p(sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [1] p(terms) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [1] Following rules are strictly oriented: a__sqr(X) = [1 0 0] [1] [0 1 0] X + [0] [0 0 1] [1] > [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [1] = sqr(X) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 0 1] [1] [0 1 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] = add(X1,X2) a__add(0(),X) = [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [1 0 1] [1] [0 0 0] Y + [0] [0 0 1] [1] >= [0] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 1 0] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [0] [0] [0] >= [0] [0] [0] = 0() a__dbl(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = first(X1,X2) a__first(0(),X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [0] [0] [0] = nil() a__first(s(X),cons(Y,Z)) = [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(0()) = [1] [0] [1] >= [0] [0] [0] = 0() a__sqr(s(X)) = [1] [0] [1] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 0 1] [1] [0 0 0] N + [0] [0 1 1] [1] >= [1 0 1] [1] [0 0 0] N + [0] [0 0 1] [1] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 0 1] [1] [0 0 0] X + [0] [0 1 1] [1] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [1] = terms(X) mark(0()) = [0] [0] [0] >= [0] [0] [0] = 0() mark(add(X1,X2)) = [1 0 1] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] >= [1 0 1] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(first(X1,X2)) = [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__first(mark(X1),mark(X2)) mark(nil()) = [0] [0] [0] >= [0] [0] [0] = nil() mark(recip(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(X) mark(sqr(X)) = [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [1] = a__sqr(mark(X)) mark(terms(X)) = [1 0 2] [1] [0 0 0] X + [0] [0 0 1] [1] >= [1 0 2] [1] [0 0 0] X + [0] [0 0 1] [1] = a__terms(mark(X)) * Step 19: NaturalMI WORST_CASE(?,O(n^3)) + Considered Problem: - Strict TRS: mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) - Weak TRS: a__add(X1,X2) -> add(X1,X2) a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(X) -> dbl(X) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(X) -> sqr(X) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: NaturalMI {miDimension = 3, miDegree = 3, miKind = Algebraic, uargs = UArgs, urules = URules, selector = Just any strict-rules} + Details: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(a__add) = {1,2}, uargs(a__dbl) = {1}, uargs(a__first) = {1,2}, uargs(a__sqr) = {1}, uargs(a__terms) = {1}, uargs(cons) = {1}, uargs(recip) = {1} Following symbols are considered usable: {a__add,a__dbl,a__first,a__sqr,a__terms,mark} TcT has computed the following interpretation: p(0) = [1] [0] [0] p(a__add) = [1 0 0] [1 0 1] [1] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(a__dbl) = [1 0 0] [1] [0 0 0] x1 + [0] [0 0 1] [0] p(a__first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 0 1] [1] p(a__sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(a__terms) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(add) = [1 0 0] [1 0 1] [1] [0 0 0] x1 + [0 0 0] x2 + [0] [0 0 1] [0 0 1] [0] p(cons) = [1 0 0] [0] [0 1 0] x1 + [0] [0 0 1] [0] p(dbl) = [1 0 0] [1] [0 0 0] x1 + [0] [0 0 1] [0] p(first) = [1 0 0] [1 0 1] [0] [0 0 0] x1 + [0 1 0] x2 + [0] [0 0 1] [0 0 1] [1] p(mark) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(nil) = [1] [0] [1] p(recip) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(s) = [0] [0] [0] p(sqr) = [1 0 0] [0] [0 0 0] x1 + [0] [0 0 1] [0] p(terms) = [1 0 1] [0] [0 0 0] x1 + [0] [0 0 1] [0] Following rules are strictly oriented: mark(first(X1,X2)) = [1 0 1] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] > [1 0 1] [1 0 2] [0] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [1] = a__first(mark(X1),mark(X2)) Following rules are (at-least) weakly oriented: a__add(X1,X2) = [1 0 0] [1 0 1] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 0] [1 0 1] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = add(X1,X2) a__add(0(),X) = [1 0 1] [2] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = mark(X) a__add(s(X),Y) = [1 0 1] [1] [0 0 0] Y + [0] [0 0 1] [0] >= [0] [0] [0] = s(add(X,Y)) a__dbl(X) = [1 0 0] [1] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [1] [0 0 0] X + [0] [0 0 1] [0] = dbl(X) a__dbl(0()) = [2] [0] [0] >= [1] [0] [0] = 0() a__dbl(s(X)) = [1] [0] [0] >= [0] [0] [0] = s(s(dbl(X))) a__first(X1,X2) = [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 0 1] [1] >= [1 0 0] [1 0 1] [0] [0 0 0] X1 + [0 1 0] X2 + [0] [0 0 1] [0 0 1] [1] = first(X1,X2) a__first(0(),X) = [1 0 1] [1] [0 1 0] X + [0] [0 0 1] [1] >= [1] [0] [1] = nil() a__first(s(X),cons(Y,Z)) = [1 0 1] [0] [0 1 0] Y + [0] [0 0 1] [1] >= [1 0 1] [0] [0 0 0] Y + [0] [0 0 1] [0] = cons(mark(Y),first(X,Z)) a__sqr(X) = [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 0] [0] [0 0 0] X + [0] [0 0 1] [0] = sqr(X) a__sqr(0()) = [1] [0] [0] >= [1] [0] [0] = 0() a__sqr(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(add(sqr(X),dbl(X))) a__terms(N) = [1 0 1] [0] [0 0 0] N + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] N + [0] [0 0 1] [0] = cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = terms(X) mark(0()) = [1] [0] [0] >= [1] [0] [0] = 0() mark(add(X1,X2)) = [1 0 1] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] >= [1 0 1] [1 0 2] [1] [0 0 0] X1 + [0 0 0] X2 + [0] [0 0 1] [0 0 1] [0] = a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) = [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X1 + [0] [0 0 1] [0] = cons(mark(X1),X2) mark(dbl(X)) = [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [1] [0 0 0] X + [0] [0 0 1] [0] = a__dbl(mark(X)) mark(nil()) = [2] [0] [1] >= [1] [0] [1] = nil() mark(recip(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = recip(mark(X)) mark(s(X)) = [0] [0] [0] >= [0] [0] [0] = s(X) mark(sqr(X)) = [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 1] [0] [0 0 0] X + [0] [0 0 1] [0] = a__sqr(mark(X)) mark(terms(X)) = [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] >= [1 0 2] [0] [0 0 0] X + [0] [0 0 1] [0] = a__terms(mark(X)) * Step 20: EmptyProcessor WORST_CASE(?,O(1)) + Considered Problem: - Weak TRS: a__add(X1,X2) -> add(X1,X2) a__add(0(),X) -> mark(X) a__add(s(X),Y) -> s(add(X,Y)) a__dbl(X) -> dbl(X) a__dbl(0()) -> 0() a__dbl(s(X)) -> s(s(dbl(X))) a__first(X1,X2) -> first(X1,X2) a__first(0(),X) -> nil() a__first(s(X),cons(Y,Z)) -> cons(mark(Y),first(X,Z)) a__sqr(X) -> sqr(X) a__sqr(0()) -> 0() a__sqr(s(X)) -> s(add(sqr(X),dbl(X))) a__terms(N) -> cons(recip(a__sqr(mark(N))),terms(s(N))) a__terms(X) -> terms(X) mark(0()) -> 0() mark(add(X1,X2)) -> a__add(mark(X1),mark(X2)) mark(cons(X1,X2)) -> cons(mark(X1),X2) mark(dbl(X)) -> a__dbl(mark(X)) mark(first(X1,X2)) -> a__first(mark(X1),mark(X2)) mark(nil()) -> nil() mark(recip(X)) -> recip(mark(X)) mark(s(X)) -> s(X) mark(sqr(X)) -> a__sqr(mark(X)) mark(terms(X)) -> a__terms(mark(X)) - Signature: {a__add/2,a__dbl/1,a__first/2,a__sqr/1,a__terms/1,mark/1} / {0/0,add/2,cons/2,dbl/1,first/2,nil/0,recip/1 ,s/1,sqr/1,terms/1} - Obligation: innermost runtime complexity wrt. defined symbols {a__add,a__dbl,a__first,a__sqr,a__terms ,mark} and constructors {0,add,cons,dbl,first,nil,recip,s,sqr,terms} + Applied Processor: EmptyProcessor + Details: The problem is already closed. The intended complexity is O(1). WORST_CASE(?,O(n^3))