306.99/291.58 WORST_CASE(Omega(n^1), ?) 307.12/291.62 proof of /export/starexec/sandbox/benchmark/theBenchmark.xml 307.12/291.62 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 307.12/291.62 307.12/291.62 307.12/291.62 The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(n^1, INF). 307.12/291.62 307.12/291.62 (0) CpxTRS 307.12/291.62 (1) RelTrsToDecreasingLoopProblemProof [LOWER BOUND(ID), 0 ms] 307.12/291.62 (2) TRS for Loop Detection 307.12/291.62 (3) DecreasingLoopProof [LOWER BOUND(ID), 0 ms] 307.12/291.62 (4) BEST 307.12/291.62 (5) proven lower bound 307.12/291.62 (6) LowerBoundPropagationProof [FINISHED, 0 ms] 307.12/291.62 (7) BOUNDS(n^1, INF) 307.12/291.62 (8) TRS for Loop Detection 307.12/291.62 307.12/291.62 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (0) 307.12/291.62 Obligation: 307.12/291.62 The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(n^1, INF). 307.12/291.62 307.12/291.62 307.12/291.62 The TRS R consists of the following rules: 307.12/291.62 307.12/291.62 isEmpty(empty) -> true 307.12/291.62 isEmpty(node(l, x, r)) -> false 307.12/291.62 left(empty) -> empty 307.12/291.62 left(node(l, x, r)) -> l 307.12/291.62 right(empty) -> empty 307.12/291.62 right(node(l, x, r)) -> r 307.12/291.62 elem(node(l, x, r)) -> x 307.12/291.62 append(nil, x) -> cons(x, nil) 307.12/291.62 append(cons(y, ys), x) -> cons(y, append(ys, x)) 307.12/291.62 listify(n, xs) -> if(isEmpty(n), isEmpty(left(n)), right(n), node(left(left(n)), elem(left(n)), node(right(left(n)), elem(n), right(n))), xs, append(xs, n)) 307.12/291.62 if(true, b, n, m, xs, ys) -> xs 307.12/291.62 if(false, false, n, m, xs, ys) -> listify(m, xs) 307.12/291.62 if(false, true, n, m, xs, ys) -> listify(n, ys) 307.12/291.62 toList(n) -> listify(n, nil) 307.12/291.62 307.12/291.62 S is empty. 307.12/291.62 Rewrite Strategy: FULL 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (1) RelTrsToDecreasingLoopProblemProof (LOWER BOUND(ID)) 307.12/291.62 Transformed a relative TRS into a decreasing-loop problem. 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (2) 307.12/291.62 Obligation: 307.12/291.62 Analyzing the following TRS for decreasing loops: 307.12/291.62 307.12/291.62 The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(n^1, INF). 307.12/291.62 307.12/291.62 307.12/291.62 The TRS R consists of the following rules: 307.12/291.62 307.12/291.62 isEmpty(empty) -> true 307.12/291.62 isEmpty(node(l, x, r)) -> false 307.12/291.62 left(empty) -> empty 307.12/291.62 left(node(l, x, r)) -> l 307.12/291.62 right(empty) -> empty 307.12/291.62 right(node(l, x, r)) -> r 307.12/291.62 elem(node(l, x, r)) -> x 307.12/291.62 append(nil, x) -> cons(x, nil) 307.12/291.62 append(cons(y, ys), x) -> cons(y, append(ys, x)) 307.12/291.62 listify(n, xs) -> if(isEmpty(n), isEmpty(left(n)), right(n), node(left(left(n)), elem(left(n)), node(right(left(n)), elem(n), right(n))), xs, append(xs, n)) 307.12/291.62 if(true, b, n, m, xs, ys) -> xs 307.12/291.62 if(false, false, n, m, xs, ys) -> listify(m, xs) 307.12/291.62 if(false, true, n, m, xs, ys) -> listify(n, ys) 307.12/291.62 toList(n) -> listify(n, nil) 307.12/291.62 307.12/291.62 S is empty. 307.12/291.62 Rewrite Strategy: FULL 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (3) DecreasingLoopProof (LOWER BOUND(ID)) 307.12/291.62 The following loop(s) give(s) rise to the lower bound Omega(n^1): 307.12/291.62 307.12/291.62 The rewrite sequence 307.12/291.62 307.12/291.62 append(cons(y, ys), x) ->^+ cons(y, append(ys, x)) 307.12/291.62 307.12/291.62 gives rise to a decreasing loop by considering the right hand sides subterm at position [1]. 307.12/291.62 307.12/291.62 The pumping substitution is [ys / cons(y, ys)]. 307.12/291.62 307.12/291.62 The result substitution is [ ]. 307.12/291.62 307.12/291.62 307.12/291.62 307.12/291.62 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (4) 307.12/291.62 Complex Obligation (BEST) 307.12/291.62 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (5) 307.12/291.62 Obligation: 307.12/291.62 Proved the lower bound n^1 for the following obligation: 307.12/291.62 307.12/291.62 The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(n^1, INF). 307.12/291.62 307.12/291.62 307.12/291.62 The TRS R consists of the following rules: 307.12/291.62 307.12/291.62 isEmpty(empty) -> true 307.12/291.62 isEmpty(node(l, x, r)) -> false 307.12/291.62 left(empty) -> empty 307.12/291.62 left(node(l, x, r)) -> l 307.12/291.62 right(empty) -> empty 307.12/291.62 right(node(l, x, r)) -> r 307.12/291.62 elem(node(l, x, r)) -> x 307.12/291.62 append(nil, x) -> cons(x, nil) 307.12/291.62 append(cons(y, ys), x) -> cons(y, append(ys, x)) 307.12/291.62 listify(n, xs) -> if(isEmpty(n), isEmpty(left(n)), right(n), node(left(left(n)), elem(left(n)), node(right(left(n)), elem(n), right(n))), xs, append(xs, n)) 307.12/291.62 if(true, b, n, m, xs, ys) -> xs 307.12/291.62 if(false, false, n, m, xs, ys) -> listify(m, xs) 307.12/291.62 if(false, true, n, m, xs, ys) -> listify(n, ys) 307.12/291.62 toList(n) -> listify(n, nil) 307.12/291.62 307.12/291.62 S is empty. 307.12/291.62 Rewrite Strategy: FULL 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (6) LowerBoundPropagationProof (FINISHED) 307.12/291.62 Propagated lower bound. 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (7) 307.12/291.62 BOUNDS(n^1, INF) 307.12/291.62 307.12/291.62 ---------------------------------------- 307.12/291.62 307.12/291.62 (8) 307.12/291.62 Obligation: 307.12/291.62 Analyzing the following TRS for decreasing loops: 307.12/291.62 307.12/291.62 The Runtime Complexity (full) of the given CpxTRS could be proven to be BOUNDS(n^1, INF). 307.12/291.62 307.12/291.62 307.12/291.62 The TRS R consists of the following rules: 307.12/291.62 307.12/291.62 isEmpty(empty) -> true 307.12/291.62 isEmpty(node(l, x, r)) -> false 307.12/291.62 left(empty) -> empty 307.12/291.62 left(node(l, x, r)) -> l 307.12/291.62 right(empty) -> empty 307.12/291.62 right(node(l, x, r)) -> r 307.12/291.62 elem(node(l, x, r)) -> x 307.12/291.62 append(nil, x) -> cons(x, nil) 307.12/291.62 append(cons(y, ys), x) -> cons(y, append(ys, x)) 307.12/291.62 listify(n, xs) -> if(isEmpty(n), isEmpty(left(n)), right(n), node(left(left(n)), elem(left(n)), node(right(left(n)), elem(n), right(n))), xs, append(xs, n)) 307.12/291.62 if(true, b, n, m, xs, ys) -> xs 307.12/291.62 if(false, false, n, m, xs, ys) -> listify(m, xs) 307.12/291.62 if(false, true, n, m, xs, ys) -> listify(n, ys) 307.12/291.62 toList(n) -> listify(n, nil) 307.12/291.62 307.12/291.62 S is empty. 307.12/291.62 Rewrite Strategy: FULL 307.12/291.64 EOF