YES(O(1), O(n^1)) 167.63/46.67 YES(O(1), O(n^1)) 167.63/46.68 167.63/46.68 167.63/46.68 167.63/46.68 167.63/46.68 167.63/46.68 Runtime Complexity (innermost) proof of /export/starexec/sandbox/benchmark/theBenchmark.xml.xml 167.63/46.68 167.63/46.68 167.63/46.68
167.63/46.68 167.63/46.68 167.63/46.68
167.63/46.68
167.63/46.68

(0) Obligation:

Runtime Complexity TRS:
The TRS R consists of the following rules:

active(f(0)) → mark(cons(0, f(s(0)))) 167.63/46.68
active(f(s(0))) → mark(f(p(s(0)))) 167.63/46.68
active(p(s(X))) → mark(X) 167.63/46.68
active(f(X)) → f(active(X)) 167.63/46.68
active(cons(X1, X2)) → cons(active(X1), X2) 167.63/46.68
active(s(X)) → s(active(X)) 167.63/46.68
active(p(X)) → p(active(X)) 167.63/46.68
f(mark(X)) → mark(f(X)) 167.63/46.68
cons(mark(X1), X2) → mark(cons(X1, X2)) 167.63/46.68
s(mark(X)) → mark(s(X)) 167.63/46.68
p(mark(X)) → mark(p(X)) 167.63/46.68
proper(f(X)) → f(proper(X)) 167.63/46.68
proper(0) → ok(0) 167.63/46.68
proper(cons(X1, X2)) → cons(proper(X1), proper(X2)) 167.63/46.68
proper(s(X)) → s(proper(X)) 167.63/46.68
proper(p(X)) → p(proper(X)) 167.63/46.68
f(ok(X)) → ok(f(X)) 167.63/46.68
cons(ok(X1), ok(X2)) → ok(cons(X1, X2)) 167.63/46.68
s(ok(X)) → ok(s(X)) 167.63/46.68
p(ok(X)) → ok(p(X)) 167.63/46.68
top(mark(X)) → top(proper(X)) 167.63/46.68
top(ok(X)) → top(active(X))

Rewrite Strategy: INNERMOST
167.63/46.68
167.63/46.68

(1) CpxTrsMatchBoundsTAProof (EQUIVALENT transformation)

A linear upper bound on the runtime complexity of the TRS R could be shown with a Match-Bound[TAB_LEFTLINEAR,TAB_NONLEFTLINEAR] (for contructor-based start-terms) of 2.

The compatible tree automaton used to show the Match-Boundedness (for constructor-based start-terms) is represented by:
final states : [1, 2, 3, 4, 5, 6, 7]
transitions:
00() → 0
mark0(0) → 0
ok0(0) → 0
active0(0) → 1
f0(0) → 2
cons0(0, 0) → 3
s0(0) → 4
p0(0) → 5
proper0(0) → 6
top0(0) → 7
f1(0) → 8
mark1(8) → 2
cons1(0, 0) → 9
mark1(9) → 3
s1(0) → 10
mark1(10) → 4
p1(0) → 11
mark1(11) → 5
01() → 12
ok1(12) → 6
f1(0) → 13
ok1(13) → 2
cons1(0, 0) → 14
ok1(14) → 3
s1(0) → 15
ok1(15) → 4
p1(0) → 16
ok1(16) → 5
proper1(0) → 17
top1(17) → 7
active1(0) → 18
top1(18) → 7
mark1(8) → 8
mark1(8) → 13
mark1(9) → 9
mark1(9) → 14
mark1(10) → 10
mark1(10) → 15
mark1(11) → 11
mark1(11) → 16
ok1(12) → 17
ok1(13) → 8
ok1(13) → 13
ok1(14) → 9
ok1(14) → 14
ok1(15) → 10
ok1(15) → 15
ok1(16) → 11
ok1(16) → 16
active2(12) → 19
top2(19) → 7
167.63/46.68
167.63/46.68

(2) BOUNDS(O(1), O(n^1))

167.63/46.68
167.63/46.68
168.02/46.80 EOF