WORST_CASE(?,O(n^2)) * Step 1: DependencyPairs WORST_CASE(?,O(n^2)) + Considered Problem: - Strict TRS: app_xss#1(Cons(x7,x12),x14) -> Cons(x7,app_xss#1(x12,x14)) app_xss#1(Nil(),x8) -> x8 main(x12,x3) -> map#2(app_xss(x12),x3) map#2(app_xss(x2),Nil()) -> Nil() map#2(app_xss(x6),Cons(x4,x2)) -> Cons(app_xss#1(x6,x4),map#2(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2} / {Cons/2,Nil/0,app_xss/1} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1,main,map#2} and constructors {Cons,Nil,app_xss} + Applied Processor: DependencyPairs {dpKind_ = DT} + Details: We add the following dependency tuples: Strict DPs app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) app_xss#1#(Nil(),x8) -> c_2() main#(x12,x3) -> c_3(map#2#(app_xss(x12),x3)) map#2#(app_xss(x2),Nil()) -> c_4() map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) Weak DPs and mark the set of starting terms. * Step 2: PredecessorEstimation WORST_CASE(?,O(n^2)) + Considered Problem: - Strict DPs: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) app_xss#1#(Nil(),x8) -> c_2() main#(x12,x3) -> c_3(map#2#(app_xss(x12),x3)) map#2#(app_xss(x2),Nil()) -> c_4() map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) - Weak TRS: app_xss#1(Cons(x7,x12),x14) -> Cons(x7,app_xss#1(x12,x14)) app_xss#1(Nil(),x8) -> x8 main(x12,x3) -> map#2(app_xss(x12),x3) map#2(app_xss(x2),Nil()) -> Nil() map#2(app_xss(x6),Cons(x4,x2)) -> Cons(app_xss#1(x6,x4),map#2(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/2} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: PredecessorEstimation {onSelection = all simple predecessor estimation selector} + Details: We estimate the number of application of {2,4} by application of Pre({2,4}) = {1,3,5}. Here rules are labelled as follows: 1: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) 2: app_xss#1#(Nil(),x8) -> c_2() 3: main#(x12,x3) -> c_3(map#2#(app_xss(x12),x3)) 4: map#2#(app_xss(x2),Nil()) -> c_4() 5: map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) * Step 3: RemoveWeakSuffixes WORST_CASE(?,O(n^2)) + Considered Problem: - Strict DPs: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) main#(x12,x3) -> c_3(map#2#(app_xss(x12),x3)) map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) - Weak DPs: app_xss#1#(Nil(),x8) -> c_2() map#2#(app_xss(x2),Nil()) -> c_4() - Weak TRS: app_xss#1(Cons(x7,x12),x14) -> Cons(x7,app_xss#1(x12,x14)) app_xss#1(Nil(),x8) -> x8 main(x12,x3) -> map#2(app_xss(x12),x3) map#2(app_xss(x2),Nil()) -> Nil() map#2(app_xss(x6),Cons(x4,x2)) -> Cons(app_xss#1(x6,x4),map#2(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/2} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: RemoveWeakSuffixes + Details: Consider the dependency graph 1:S:app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) -->_1 app_xss#1#(Nil(),x8) -> c_2():4 -->_1 app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)):1 2:S:main#(x12,x3) -> c_3(map#2#(app_xss(x12),x3)) -->_1 map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)):3 -->_1 map#2#(app_xss(x2),Nil()) -> c_4():5 3:S:map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) -->_2 map#2#(app_xss(x2),Nil()) -> c_4():5 -->_1 app_xss#1#(Nil(),x8) -> c_2():4 -->_2 map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)):3 -->_1 app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)):1 4:W:app_xss#1#(Nil(),x8) -> c_2() 5:W:map#2#(app_xss(x2),Nil()) -> c_4() The following weak DPs constitute a sub-graph of the DG that is closed under successors. The DPs are removed. 5: map#2#(app_xss(x2),Nil()) -> c_4() 4: app_xss#1#(Nil(),x8) -> c_2() * Step 4: RemoveHeads WORST_CASE(?,O(n^2)) + Considered Problem: - Strict DPs: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) main#(x12,x3) -> c_3(map#2#(app_xss(x12),x3)) map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) - Weak TRS: app_xss#1(Cons(x7,x12),x14) -> Cons(x7,app_xss#1(x12,x14)) app_xss#1(Nil(),x8) -> x8 main(x12,x3) -> map#2(app_xss(x12),x3) map#2(app_xss(x2),Nil()) -> Nil() map#2(app_xss(x6),Cons(x4,x2)) -> Cons(app_xss#1(x6,x4),map#2(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/2} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: RemoveHeads + Details: Consider the dependency graph 1:S:app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) -->_1 app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)):1 2:S:main#(x12,x3) -> c_3(map#2#(app_xss(x12),x3)) -->_1 map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)):3 3:S:map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) -->_2 map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)):3 -->_1 app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)):1 Following roots of the dependency graph are removed, as the considered set of starting terms is closed under reduction with respect to these rules (modulo compound contexts). [(2,main#(x12,x3) -> c_3(map#2#(app_xss(x12),x3)))] * Step 5: UsableRules WORST_CASE(?,O(n^2)) + Considered Problem: - Strict DPs: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) - Weak TRS: app_xss#1(Cons(x7,x12),x14) -> Cons(x7,app_xss#1(x12,x14)) app_xss#1(Nil(),x8) -> x8 main(x12,x3) -> map#2(app_xss(x12),x3) map#2(app_xss(x2),Nil()) -> Nil() map#2(app_xss(x6),Cons(x4,x2)) -> Cons(app_xss#1(x6,x4),map#2(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/2} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: UsableRules + Details: We replace rewrite rules by usable rules: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) * Step 6: DecomposeDG WORST_CASE(?,O(n^2)) + Considered Problem: - Strict DPs: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/2} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: DecomposeDG {onSelection = all below first cut in WDG, onUpper = Nothing, onLower = Nothing} + Details: We decompose the input problem according to the dependency graph into the upper component map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) and a lower component app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) Further, following extension rules are added to the lower component. map#2#(app_xss(x6),Cons(x4,x2)) -> app_xss#1#(x6,x4) map#2#(app_xss(x6),Cons(x4,x2)) -> map#2#(app_xss(x6),x2) ** Step 6.a:1: SimplifyRHS WORST_CASE(?,O(n^1)) + Considered Problem: - Strict DPs: map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/2} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: SimplifyRHS + Details: Consider the dependency graph 1:S:map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)) -->_2 map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(app_xss#1#(x6,x4),map#2#(app_xss(x6),x2)):1 Due to missing edges in the depndency graph, the right-hand sides of following rules could be simplified: map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(map#2#(app_xss(x6),x2)) ** Step 6.a:2: WeightGap WORST_CASE(?,O(n^1)) + Considered Problem: - Strict DPs: map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(map#2#(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/1} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: WeightGap {wgDimension = 1, wgDegree = 1, wgKind = Algebraic, wgUArgs = UArgs, wgOn = WgOnAny} + Details: The weightgap principle applies using the following constant growth matrix-interpretation: We apply a matrix interpretation of kind constructor based matrix interpretation: The following argument positions are considered usable: uargs(c_5) = {1} Following symbols are considered usable: all TcT has computed the following interpretation: p(Cons) = [1] x1 + [1] x2 + [1] p(Nil) = [0] p(app_xss) = [1] x1 + [0] p(app_xss#1) = [0] p(main) = [0] p(map#2) = [0] p(app_xss#1#) = [1] x2 + [1] p(main#) = [1] x1 + [8] x2 + [8] p(map#2#) = [1] x2 + [8] p(c_1) = [0] p(c_2) = [2] p(c_3) = [1] p(c_4) = [1] p(c_5) = [1] x1 + [0] Following rules are strictly oriented: map#2#(app_xss(x6),Cons(x4,x2)) = [1] x2 + [1] x4 + [9] > [1] x2 + [8] = c_5(map#2#(app_xss(x6),x2)) Following rules are (at-least) weakly oriented: Further, it can be verified that all rules not oriented are covered by the weightgap condition. ** Step 6.a:3: EmptyProcessor WORST_CASE(?,O(1)) + Considered Problem: - Weak DPs: map#2#(app_xss(x6),Cons(x4,x2)) -> c_5(map#2#(app_xss(x6),x2)) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/1} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: EmptyProcessor + Details: The problem is already closed. The intended complexity is O(1). ** Step 6.b:1: NaturalMI WORST_CASE(?,O(n^1)) + Considered Problem: - Strict DPs: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) - Weak DPs: map#2#(app_xss(x6),Cons(x4,x2)) -> app_xss#1#(x6,x4) map#2#(app_xss(x6),Cons(x4,x2)) -> map#2#(app_xss(x6),x2) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/2} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + 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(c_1) = {1} Following symbols are considered usable: {app_xss#1#,main#,map#2#} TcT has computed the following interpretation: p(Cons) = [1] x2 + [4] p(Nil) = [1] p(app_xss) = [1] x1 + [2] p(app_xss#1) = [1] x2 + [0] p(main) = [2] x1 + [8] p(map#2) = [1] x1 + [8] x2 + [0] p(app_xss#1#) = [4] x1 + [8] p(main#) = [2] x1 + [1] x2 + [0] p(map#2#) = [4] x1 + [1] p(c_1) = [1] x1 + [12] p(c_2) = [2] p(c_3) = [1] x1 + [2] p(c_4) = [1] p(c_5) = [1] x1 + [1] x2 + [2] Following rules are strictly oriented: app_xss#1#(Cons(x7,x12),x14) = [4] x12 + [24] > [4] x12 + [20] = c_1(app_xss#1#(x12,x14)) Following rules are (at-least) weakly oriented: map#2#(app_xss(x6),Cons(x4,x2)) = [4] x6 + [9] >= [4] x6 + [8] = app_xss#1#(x6,x4) map#2#(app_xss(x6),Cons(x4,x2)) = [4] x6 + [9] >= [4] x6 + [9] = map#2#(app_xss(x6),x2) ** Step 6.b:2: EmptyProcessor WORST_CASE(?,O(1)) + Considered Problem: - Weak DPs: app_xss#1#(Cons(x7,x12),x14) -> c_1(app_xss#1#(x12,x14)) map#2#(app_xss(x6),Cons(x4,x2)) -> app_xss#1#(x6,x4) map#2#(app_xss(x6),Cons(x4,x2)) -> map#2#(app_xss(x6),x2) - Signature: {app_xss#1/2,main/2,map#2/2,app_xss#1#/2,main#/2,map#2#/2} / {Cons/2,Nil/0,app_xss/1,c_1/1,c_2/0,c_3/1,c_4/0 ,c_5/2} - Obligation: innermost runtime complexity wrt. defined symbols {app_xss#1#,main#,map#2#} and constructors {Cons,Nil ,app_xss} + Applied Processor: EmptyProcessor + Details: The problem is already closed. The intended complexity is O(1). WORST_CASE(?,O(n^2))