* Step 1: Sum WORST_CASE(Omega(n^1),O(n^1)) + Considered Problem: - Strict TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) a(nt(X)) -> t(a(X)) d(0()) -> 0() d(s(X)) -> s(s(d(X))) f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() f(s(X),cs(Y,Z)) -> cs(Y,nf(X,a(Z))) p(X,0()) -> X p(0(),X) -> X p(s(X),s(Y)) -> s(s(p(X,Y))) q(0()) -> 0() q(s(X)) -> s(p(q(X),d(X))) s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: Sum {left = someStrategy, right = someStrategy} + Details: () ** Step 1.a:1: DecreasingLoops WORST_CASE(Omega(n^1),?) + Considered Problem: - Strict TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) a(nt(X)) -> t(a(X)) d(0()) -> 0() d(s(X)) -> s(s(d(X))) f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() f(s(X),cs(Y,Z)) -> cs(Y,nf(X,a(Z))) p(X,0()) -> X p(0(),X) -> X p(s(X),s(Y)) -> s(s(p(X,Y))) q(0()) -> 0() q(s(X)) -> s(p(q(X),d(X))) s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: DecreasingLoops {bound = AnyLoop, narrow = 10} + Details: The system has following decreasing Loops: a(x){x -> nf(x,y)} = a(nf(x,y)) ->^+ f(a(x),a(y)) = C[a(x) = a(x){}] ** Step 1.b:1: InnermostRuleRemoval WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) a(nt(X)) -> t(a(X)) d(0()) -> 0() d(s(X)) -> s(s(d(X))) f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() f(s(X),cs(Y,Z)) -> cs(Y,nf(X,a(Z))) p(X,0()) -> X p(0(),X) -> X p(s(X),s(Y)) -> s(s(p(X,Y))) q(0()) -> 0() q(s(X)) -> s(p(q(X),d(X))) s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: InnermostRuleRemoval + Details: Arguments of following rules are not normal-forms. d(s(X)) -> s(s(d(X))) f(s(X),cs(Y,Z)) -> cs(Y,nf(X,a(Z))) p(s(X),s(Y)) -> s(s(p(X,Y))) q(s(X)) -> s(p(q(X),d(X))) All above mentioned rules can be savely removed. ** Step 1.b:2: WeightGap WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) a(nt(X)) -> t(a(X)) d(0()) -> 0() f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() p(X,0()) -> X p(0(),X) -> X q(0()) -> 0() s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny} + Details: The weightgap principle applies using the following nonconstant growth matrix-interpretation: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(cs) = {1}, uargs(f) = {1,2}, uargs(r) = {1}, uargs(s) = {1}, uargs(t) = {1} Following symbols are considered usable: all TcT has computed the following interpretation: p(0) = [0] p(a) = [10] x1 + [0] p(cs) = [1] x1 + [1] x2 + [0] p(d) = [0] p(f) = [1] x1 + [1] x2 + [0] p(nf) = [1] x1 + [1] x2 + [0] p(nil) = [0] p(ns) = [1] x1 + [0] p(nt) = [1] x1 + [0] p(p) = [2] x1 + [2] x2 + [0] p(q) = [0] p(r) = [1] x1 + [0] p(s) = [1] x1 + [0] p(t) = [1] x1 + [1] Following rules are strictly oriented: t(N) = [1] N + [1] > [1] N + [0] = cs(r(q(N)),nt(ns(N))) t(X) = [1] X + [1] > [1] X + [0] = nt(X) Following rules are (at-least) weakly oriented: a(X) = [10] X + [0] >= [1] X + [0] = X a(nf(X1,X2)) = [10] X1 + [10] X2 + [0] >= [10] X1 + [10] X2 + [0] = f(a(X1),a(X2)) a(ns(X)) = [10] X + [0] >= [10] X + [0] = s(a(X)) a(nt(X)) = [10] X + [0] >= [10] X + [1] = t(a(X)) d(0()) = [0] >= [0] = 0() f(X1,X2) = [1] X1 + [1] X2 + [0] >= [1] X1 + [1] X2 + [0] = nf(X1,X2) f(0(),X) = [1] X + [0] >= [0] = nil() p(X,0()) = [2] X + [0] >= [1] X + [0] = X p(0(),X) = [2] X + [0] >= [1] X + [0] = X q(0()) = [0] >= [0] = 0() s(X) = [1] X + [0] >= [1] X + [0] = ns(X) Further, it can be verified that all rules not oriented are covered by the weightgap condition. ** Step 1.b:3: WeightGap WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) a(nt(X)) -> t(a(X)) d(0()) -> 0() f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() p(X,0()) -> X p(0(),X) -> X q(0()) -> 0() s(X) -> ns(X) - Weak TRS: t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny} + Details: The weightgap principle applies using the following nonconstant growth matrix-interpretation: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(cs) = {1}, uargs(f) = {1,2}, uargs(r) = {1}, uargs(s) = {1}, uargs(t) = {1} Following symbols are considered usable: all TcT has computed the following interpretation: p(0) = [0] p(a) = [5] x1 + [0] p(cs) = [1] x1 + [0] p(d) = [0] p(f) = [1] x1 + [1] x2 + [0] p(nf) = [1] x1 + [1] x2 + [0] p(nil) = [0] p(ns) = [1] x1 + [0] p(nt) = [1] x1 + [0] p(p) = [2] x1 + [2] x2 + [0] p(q) = [0] p(r) = [1] x1 + [0] p(s) = [1] x1 + [1] p(t) = [1] x1 + [0] Following rules are strictly oriented: s(X) = [1] X + [1] > [1] X + [0] = ns(X) Following rules are (at-least) weakly oriented: a(X) = [5] X + [0] >= [1] X + [0] = X a(nf(X1,X2)) = [5] X1 + [5] X2 + [0] >= [5] X1 + [5] X2 + [0] = f(a(X1),a(X2)) a(ns(X)) = [5] X + [0] >= [5] X + [1] = s(a(X)) a(nt(X)) = [5] X + [0] >= [5] X + [0] = t(a(X)) d(0()) = [0] >= [0] = 0() f(X1,X2) = [1] X1 + [1] X2 + [0] >= [1] X1 + [1] X2 + [0] = nf(X1,X2) f(0(),X) = [1] X + [0] >= [0] = nil() p(X,0()) = [2] X + [0] >= [1] X + [0] = X p(0(),X) = [2] X + [0] >= [1] X + [0] = X q(0()) = [0] >= [0] = 0() t(N) = [1] N + [0] >= [0] = cs(r(q(N)),nt(ns(N))) t(X) = [1] X + [0] >= [1] X + [0] = nt(X) Further, it can be verified that all rules not oriented are covered by the weightgap condition. ** Step 1.b:4: WeightGap WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) a(nt(X)) -> t(a(X)) d(0()) -> 0() f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() p(X,0()) -> X p(0(),X) -> X q(0()) -> 0() - Weak TRS: s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny} + Details: The weightgap principle applies using the following nonconstant growth matrix-interpretation: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(cs) = {1}, uargs(f) = {1,2}, uargs(r) = {1}, uargs(s) = {1}, uargs(t) = {1} Following symbols are considered usable: all TcT has computed the following interpretation: p(0) = [0] p(a) = [10] x1 + [4] p(cs) = [1] x1 + [0] p(d) = [0] p(f) = [1] x1 + [1] x2 + [0] p(nf) = [1] x1 + [1] x2 + [0] p(nil) = [0] p(ns) = [1] x1 + [1] p(nt) = [1] x1 + [0] p(p) = [2] x1 + [2] x2 + [0] p(q) = [0] p(r) = [1] x1 + [0] p(s) = [1] x1 + [1] p(t) = [1] x1 + [0] Following rules are strictly oriented: a(X) = [10] X + [4] > [1] X + [0] = X a(ns(X)) = [10] X + [14] > [10] X + [5] = s(a(X)) Following rules are (at-least) weakly oriented: a(nf(X1,X2)) = [10] X1 + [10] X2 + [4] >= [10] X1 + [10] X2 + [8] = f(a(X1),a(X2)) a(nt(X)) = [10] X + [4] >= [10] X + [4] = t(a(X)) d(0()) = [0] >= [0] = 0() f(X1,X2) = [1] X1 + [1] X2 + [0] >= [1] X1 + [1] X2 + [0] = nf(X1,X2) f(0(),X) = [1] X + [0] >= [0] = nil() p(X,0()) = [2] X + [0] >= [1] X + [0] = X p(0(),X) = [2] X + [0] >= [1] X + [0] = X q(0()) = [0] >= [0] = 0() s(X) = [1] X + [1] >= [1] X + [1] = ns(X) t(N) = [1] N + [0] >= [0] = cs(r(q(N)),nt(ns(N))) t(X) = [1] X + [0] >= [1] X + [0] = nt(X) Further, it can be verified that all rules not oriented are covered by the weightgap condition. ** Step 1.b:5: WeightGap WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: a(nf(X1,X2)) -> f(a(X1),a(X2)) a(nt(X)) -> t(a(X)) d(0()) -> 0() f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() p(X,0()) -> X p(0(),X) -> X q(0()) -> 0() - Weak TRS: a(X) -> X a(ns(X)) -> s(a(X)) s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny} + Details: The weightgap principle applies using the following nonconstant growth matrix-interpretation: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(cs) = {1}, uargs(f) = {1,2}, uargs(r) = {1}, uargs(s) = {1}, uargs(t) = {1} Following symbols are considered usable: all TcT has computed the following interpretation: p(0) = [2] p(a) = [8] x1 + [0] p(cs) = [1] x1 + [10] p(d) = [4] x1 + [2] p(f) = [1] x1 + [1] x2 + [2] p(nf) = [1] x1 + [1] x2 + [2] p(nil) = [1] p(ns) = [1] x1 + [0] p(nt) = [1] x1 + [1] p(p) = [8] x1 + [8] x2 + [0] p(q) = [0] p(r) = [1] x1 + [1] p(s) = [1] x1 + [0] p(t) = [1] x1 + [11] Following rules are strictly oriented: a(nf(X1,X2)) = [8] X1 + [8] X2 + [16] > [8] X1 + [8] X2 + [2] = f(a(X1),a(X2)) d(0()) = [10] > [2] = 0() f(0(),X) = [1] X + [4] > [1] = nil() p(X,0()) = [8] X + [16] > [1] X + [0] = X p(0(),X) = [8] X + [16] > [1] X + [0] = X Following rules are (at-least) weakly oriented: a(X) = [8] X + [0] >= [1] X + [0] = X a(ns(X)) = [8] X + [0] >= [8] X + [0] = s(a(X)) a(nt(X)) = [8] X + [8] >= [8] X + [11] = t(a(X)) f(X1,X2) = [1] X1 + [1] X2 + [2] >= [1] X1 + [1] X2 + [2] = nf(X1,X2) q(0()) = [0] >= [2] = 0() s(X) = [1] X + [0] >= [1] X + [0] = ns(X) t(N) = [1] N + [11] >= [11] = cs(r(q(N)),nt(ns(N))) t(X) = [1] X + [11] >= [1] X + [1] = nt(X) Further, it can be verified that all rules not oriented are covered by the weightgap condition. ** Step 1.b:6: WeightGap WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: a(nt(X)) -> t(a(X)) f(X1,X2) -> nf(X1,X2) q(0()) -> 0() - Weak TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) d(0()) -> 0() f(0(),X) -> nil() p(X,0()) -> X p(0(),X) -> X s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny} + Details: The weightgap principle applies using the following nonconstant growth matrix-interpretation: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(cs) = {1}, uargs(f) = {1,2}, uargs(r) = {1}, uargs(s) = {1}, uargs(t) = {1} Following symbols are considered usable: all TcT has computed the following interpretation: p(0) = [10] p(a) = [4] x1 + [2] p(cs) = [1] x1 + [15] p(d) = [2] x1 + [0] p(f) = [1] x1 + [1] x2 + [6] p(nf) = [1] x1 + [1] x2 + [4] p(nil) = [1] p(ns) = [1] x1 + [1] p(nt) = [1] x1 + [0] p(p) = [1] x1 + [1] x2 + [1] p(q) = [1] x1 + [0] p(r) = [1] x1 + [0] p(s) = [1] x1 + [2] p(t) = [1] x1 + [15] Following rules are strictly oriented: f(X1,X2) = [1] X1 + [1] X2 + [6] > [1] X1 + [1] X2 + [4] = nf(X1,X2) Following rules are (at-least) weakly oriented: a(X) = [4] X + [2] >= [1] X + [0] = X a(nf(X1,X2)) = [4] X1 + [4] X2 + [18] >= [4] X1 + [4] X2 + [10] = f(a(X1),a(X2)) a(ns(X)) = [4] X + [6] >= [4] X + [4] = s(a(X)) a(nt(X)) = [4] X + [2] >= [4] X + [17] = t(a(X)) d(0()) = [20] >= [10] = 0() f(0(),X) = [1] X + [16] >= [1] = nil() p(X,0()) = [1] X + [11] >= [1] X + [0] = X p(0(),X) = [1] X + [11] >= [1] X + [0] = X q(0()) = [10] >= [10] = 0() s(X) = [1] X + [2] >= [1] X + [1] = ns(X) t(N) = [1] N + [15] >= [1] N + [15] = cs(r(q(N)),nt(ns(N))) t(X) = [1] X + [15] >= [1] X + [0] = nt(X) Further, it can be verified that all rules not oriented are covered by the weightgap condition. ** Step 1.b:7: WeightGap WORST_CASE(?,O(n^1)) + Considered Problem: - Strict TRS: a(nt(X)) -> t(a(X)) q(0()) -> 0() - Weak TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) d(0()) -> 0() f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() p(X,0()) -> X p(0(),X) -> X s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny} + Details: The weightgap principle applies using the following nonconstant growth matrix-interpretation: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(cs) = {1}, uargs(f) = {1,2}, uargs(r) = {1}, uargs(s) = {1}, uargs(t) = {1} Following symbols are considered usable: all TcT has computed the following interpretation: p(0) = [1] p(a) = [8] x1 + [4] p(cs) = [1] x1 + [1] x2 + [8] p(d) = [1] x1 + [7] p(f) = [1] x1 + [1] x2 + [4] p(nf) = [1] x1 + [1] x2 + [1] p(nil) = [1] p(ns) = [1] x1 + [0] p(nt) = [1] x1 + [2] p(p) = [4] x1 + [2] x2 + [0] p(q) = [4] p(r) = [1] x1 + [0] p(s) = [1] x1 + [0] p(t) = [1] x1 + [14] Following rules are strictly oriented: a(nt(X)) = [8] X + [20] > [8] X + [18] = t(a(X)) q(0()) = [4] > [1] = 0() Following rules are (at-least) weakly oriented: a(X) = [8] X + [4] >= [1] X + [0] = X a(nf(X1,X2)) = [8] X1 + [8] X2 + [12] >= [8] X1 + [8] X2 + [12] = f(a(X1),a(X2)) a(ns(X)) = [8] X + [4] >= [8] X + [4] = s(a(X)) d(0()) = [8] >= [1] = 0() f(X1,X2) = [1] X1 + [1] X2 + [4] >= [1] X1 + [1] X2 + [1] = nf(X1,X2) f(0(),X) = [1] X + [5] >= [1] = nil() p(X,0()) = [4] X + [2] >= [1] X + [0] = X p(0(),X) = [2] X + [4] >= [1] X + [0] = X s(X) = [1] X + [0] >= [1] X + [0] = ns(X) t(N) = [1] N + [14] >= [1] N + [14] = cs(r(q(N)),nt(ns(N))) t(X) = [1] X + [14] >= [1] X + [2] = nt(X) Further, it can be verified that all rules not oriented are covered by the weightgap condition. ** Step 1.b:8: EmptyProcessor WORST_CASE(?,O(1)) + Considered Problem: - Weak TRS: a(X) -> X a(nf(X1,X2)) -> f(a(X1),a(X2)) a(ns(X)) -> s(a(X)) a(nt(X)) -> t(a(X)) d(0()) -> 0() f(X1,X2) -> nf(X1,X2) f(0(),X) -> nil() p(X,0()) -> X p(0(),X) -> X q(0()) -> 0() s(X) -> ns(X) t(N) -> cs(r(q(N)),nt(ns(N))) t(X) -> nt(X) - Signature: {a/1,d/1,f/2,p/2,q/1,s/1,t/1} / {0/0,cs/2,nf/2,nil/0,ns/1,nt/1,r/1} - Obligation: innermost runtime complexity wrt. defined symbols {a,d,f,p,q,s,t} and constructors {0,cs,nf,nil,ns,nt,r} + Applied Processor: EmptyProcessor + Details: The problem is already closed. The intended complexity is O(1). WORST_CASE(Omega(n^1),O(n^1))