(0) Obligation:

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

active(from(X)) → mark(cons(X, from(s(X))))
active(length(nil)) → mark(0)
active(length(cons(X, Y))) → mark(s(length1(Y)))
active(length1(X)) → mark(length(X))
active(from(X)) → from(active(X))
active(cons(X1, X2)) → cons(active(X1), X2)
active(s(X)) → s(active(X))
from(mark(X)) → mark(from(X))
cons(mark(X1), X2) → mark(cons(X1, X2))
s(mark(X)) → mark(s(X))
proper(from(X)) → from(proper(X))
proper(cons(X1, X2)) → cons(proper(X1), proper(X2))
proper(s(X)) → s(proper(X))
proper(length(X)) → length(proper(X))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(X)) → length1(proper(X))
from(ok(X)) → ok(from(X))
cons(ok(X1), ok(X2)) → ok(cons(X1, X2))
s(ok(X)) → ok(s(X))
length(ok(X)) → ok(length(X))
length1(ok(X)) → ok(length1(X))
top(mark(X)) → top(proper(X))
top(ok(X)) → top(active(X))

Rewrite Strategy: INNERMOST

(1) CpxTrsToCdtProof (BOTH BOUNDS(ID, ID) transformation)

Converted Cpx (relative) TRS to CDT

(2) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
length1(ok(z0)) → ok(length1(z0))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:

ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(length(nil)) → c1
ACTIVE(length(cons(z0, z1))) → c2(S(length1(z1)), LENGTH1(z1))
ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(nil) → c17
PROPER(0) → c18
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
S tuples:

ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(length(nil)) → c1
ACTIVE(length(cons(z0, z1))) → c2(S(length1(z1)), LENGTH1(z1))
ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(nil) → c17
PROPER(0) → c18
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
K tuples:none
Defined Rule Symbols:

active, from, cons, s, proper, length, length1, top

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c, c1, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23

(3) CdtLeafRemovalProof (BOTH BOUNDS(ID, ID) transformation)

Removed 3 trailing nodes:

PROPER(nil) → c17
ACTIVE(length(nil)) → c1
PROPER(0) → c18

(4) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
length1(ok(z0)) → ok(length1(z0))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:

ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(length(cons(z0, z1))) → c2(S(length1(z1)), LENGTH1(z1))
ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
S tuples:

ACTIVE(from(z0)) → c(CONS(z0, from(s(z0))), FROM(s(z0)), S(z0))
ACTIVE(length(cons(z0, z1))) → c2(S(length1(z1)), LENGTH1(z1))
ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
K tuples:none
Defined Rule Symbols:

active, from, cons, s, proper, length, length1, top

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c, c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23

(5) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 2 trailing tuple parts

(6) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
length1(ok(z0)) → ok(length1(z0))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:

ACTIVE(length(cons(z0, z1))) → c2(S(length1(z1)), LENGTH1(z1))
ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
S tuples:

ACTIVE(length(cons(z0, z1))) → c2(S(length1(z1)), LENGTH1(z1))
ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
K tuples:none
Defined Rule Symbols:

active, from, cons, s, proper, length, length1, top

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c2, c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c

(7) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID) transformation)

Split RHS of tuples not part of any SCC

(8) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
length1(ok(z0)) → ok(length1(z0))
top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
K tuples:none
Defined Rule Symbols:

active, from, cons, s, proper, length, length1, top

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1

(9) CdtUsableRulesProof (EQUIVALENT transformation)

The following rules are not usable and were removed:

top(mark(z0)) → top(proper(z0))
top(ok(z0)) → top(active(z0))

(10) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c4, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1

(11) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)

Use narrowing to replace ACTIVE(from(z0)) → c4(FROM(active(z0)), ACTIVE(z0)) by

ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)), ACTIVE(length(nil)))
ACTIVE(from(length(cons(z0, z1)))) → c4(FROM(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c4(FROM(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))

(12) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)), ACTIVE(length(nil)))
ACTIVE(from(length(cons(z0, z1)))) → c4(FROM(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c4(FROM(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)), ACTIVE(length(nil)))
ACTIVE(from(length(cons(z0, z1)))) → c4(FROM(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c4(FROM(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4

(13) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 1 trailing tuple parts

(14) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(length(cons(z0, z1)))) → c4(FROM(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c4(FROM(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(length(cons(z0, z1)))) → c4(FROM(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c4(FROM(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4

(15) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID) transformation)

Split RHS of tuples not part of any SCC

(16) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c5, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2

(17) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)

Use narrowing to replace ACTIVE(cons(z0, z1)) → c5(CONS(active(z0), z1), ACTIVE(z0)) by

ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1), ACTIVE(length(nil)))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c5(CONS(mark(s(length1(z1))), x1), ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c5(CONS(mark(length(z0)), x1), ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))

(18) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1), ACTIVE(length(nil)))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c5(CONS(mark(s(length1(z1))), x1), ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c5(CONS(mark(length(z0)), x1), ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1), ACTIVE(length(nil)))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c5(CONS(mark(s(length1(z1))), x1), ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c5(CONS(mark(length(z0)), x1), ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5

(19) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 1 trailing tuple parts

(20) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c5(CONS(mark(s(length1(z1))), x1), ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c5(CONS(mark(length(z0)), x1), ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c5(CONS(mark(s(length1(z1))), x1), ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c5(CONS(mark(length(z0)), x1), ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5

(21) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID) transformation)

Split RHS of tuples not part of any SCC

(22) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c6, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17

(23) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)

Use narrowing to replace ACTIVE(s(z0)) → c6(S(active(z0)), ACTIVE(z0)) by

ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)), ACTIVE(length(nil)))
ACTIVE(s(length(cons(z0, z1)))) → c6(S(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c6(S(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))

(24) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)), ACTIVE(length(nil)))
ACTIVE(s(length(cons(z0, z1)))) → c6(S(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c6(S(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)), ACTIVE(length(nil)))
ACTIVE(s(length(cons(z0, z1)))) → c6(S(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c6(S(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6

(25) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 1 trailing tuple parts

(26) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(length(cons(z0, z1)))) → c6(S(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c6(S(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(length(cons(z0, z1)))) → c6(S(mark(s(length1(z1)))), ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c6(S(mark(length(z0))), ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6

(27) CdtGraphSplitRhsProof (BOTH BOUNDS(ID, ID) transformation)

Split RHS of tuples not part of any SCC

(28) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18

(29) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)

Use narrowing to replace PROPER(from(z0)) → c13(FROM(proper(z0)), PROPER(z0)) by

PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)), PROPER(nil))
PROPER(from(0)) → c13(FROM(ok(0)), PROPER(0))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))

(30) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)), PROPER(nil))
PROPER(from(0)) → c13(FROM(ok(0)), PROPER(0))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)), PROPER(nil))
PROPER(from(0)) → c13(FROM(ok(0)), PROPER(0))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13

(31) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 2 trailing tuple parts

(32) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c14, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13, c13

(33) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)

Use narrowing to replace PROPER(cons(z0, z1)) → c14(CONS(proper(z0), proper(z1)), PROPER(z0), PROPER(z1)) by

PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))

(34) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0), PROPER(nil))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0), PROPER(0))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(nil), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(0), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13, c13, c14

(35) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 4 trailing tuple parts

(36) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c15, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13, c13, c14, c14

(37) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)

Use narrowing to replace PROPER(s(z0)) → c15(S(proper(z0)), PROPER(z0)) by

PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(nil)) → c15(S(ok(nil)), PROPER(nil))
PROPER(s(0)) → c15(S(ok(0)), PROPER(0))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))

(38) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(nil)) → c15(S(ok(nil)), PROPER(nil))
PROPER(s(0)) → c15(S(ok(0)), PROPER(0))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(nil)) → c15(S(ok(nil)), PROPER(nil))
PROPER(s(0)) → c15(S(ok(0)), PROPER(0))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13, c13, c14, c14, c15

(39) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 2 trailing tuple parts

(40) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c16, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13, c13, c14, c14, c15, c15

(41) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)

Use narrowing to replace PROPER(length(z0)) → c16(LENGTH(proper(z0)), PROPER(z0)) by

PROPER(length(from(z0))) → c16(LENGTH(from(proper(z0))), PROPER(from(z0)))
PROPER(length(cons(z0, z1))) → c16(LENGTH(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length(s(z0))) → c16(LENGTH(s(proper(z0))), PROPER(s(z0)))
PROPER(length(length(z0))) → c16(LENGTH(length(proper(z0))), PROPER(length(z0)))
PROPER(length(nil)) → c16(LENGTH(ok(nil)), PROPER(nil))
PROPER(length(0)) → c16(LENGTH(ok(0)), PROPER(0))
PROPER(length(length1(z0))) → c16(LENGTH(length1(proper(z0))), PROPER(length1(z0)))

(42) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
PROPER(length(from(z0))) → c16(LENGTH(from(proper(z0))), PROPER(from(z0)))
PROPER(length(cons(z0, z1))) → c16(LENGTH(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length(s(z0))) → c16(LENGTH(s(proper(z0))), PROPER(s(z0)))
PROPER(length(length(z0))) → c16(LENGTH(length(proper(z0))), PROPER(length(z0)))
PROPER(length(nil)) → c16(LENGTH(ok(nil)), PROPER(nil))
PROPER(length(0)) → c16(LENGTH(ok(0)), PROPER(0))
PROPER(length(length1(z0))) → c16(LENGTH(length1(proper(z0))), PROPER(length1(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
PROPER(length(from(z0))) → c16(LENGTH(from(proper(z0))), PROPER(from(z0)))
PROPER(length(cons(z0, z1))) → c16(LENGTH(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length(s(z0))) → c16(LENGTH(s(proper(z0))), PROPER(s(z0)))
PROPER(length(length(z0))) → c16(LENGTH(length(proper(z0))), PROPER(length(z0)))
PROPER(length(nil)) → c16(LENGTH(ok(nil)), PROPER(nil))
PROPER(length(0)) → c16(LENGTH(ok(0)), PROPER(0))
PROPER(length(length1(z0))) → c16(LENGTH(length1(proper(z0))), PROPER(length1(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13, c13, c14, c14, c15, c15, c16

(43) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 2 trailing tuple parts

(44) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
PROPER(length(from(z0))) → c16(LENGTH(from(proper(z0))), PROPER(from(z0)))
PROPER(length(cons(z0, z1))) → c16(LENGTH(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length(s(z0))) → c16(LENGTH(s(proper(z0))), PROPER(s(z0)))
PROPER(length(length(z0))) → c16(LENGTH(length(proper(z0))), PROPER(length(z0)))
PROPER(length(length1(z0))) → c16(LENGTH(length1(proper(z0))), PROPER(length1(z0)))
PROPER(length(nil)) → c16(LENGTH(ok(nil)))
PROPER(length(0)) → c16(LENGTH(ok(0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
PROPER(length(from(z0))) → c16(LENGTH(from(proper(z0))), PROPER(from(z0)))
PROPER(length(cons(z0, z1))) → c16(LENGTH(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length(s(z0))) → c16(LENGTH(s(proper(z0))), PROPER(s(z0)))
PROPER(length(length(z0))) → c16(LENGTH(length(proper(z0))), PROPER(length(z0)))
PROPER(length(length1(z0))) → c16(LENGTH(length1(proper(z0))), PROPER(length1(z0)))
PROPER(length(nil)) → c16(LENGTH(ok(nil)))
PROPER(length(0)) → c16(LENGTH(ok(0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, PROPER, LENGTH, LENGTH1, TOP

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c19, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13, c13, c14, c14, c15, c15, c16, c16

(45) CdtNarrowingProof (BOTH BOUNDS(ID, ID) transformation)

Use narrowing to replace PROPER(length1(z0)) → c19(LENGTH1(proper(z0)), PROPER(z0)) by

PROPER(length1(from(z0))) → c19(LENGTH1(from(proper(z0))), PROPER(from(z0)))
PROPER(length1(cons(z0, z1))) → c19(LENGTH1(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length1(s(z0))) → c19(LENGTH1(s(proper(z0))), PROPER(s(z0)))
PROPER(length1(length(z0))) → c19(LENGTH1(length(proper(z0))), PROPER(length(z0)))
PROPER(length1(nil)) → c19(LENGTH1(ok(nil)), PROPER(nil))
PROPER(length1(0)) → c19(LENGTH1(ok(0)), PROPER(0))
PROPER(length1(length1(z0))) → c19(LENGTH1(length1(proper(z0))), PROPER(length1(z0)))

(46) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
PROPER(length(from(z0))) → c16(LENGTH(from(proper(z0))), PROPER(from(z0)))
PROPER(length(cons(z0, z1))) → c16(LENGTH(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length(s(z0))) → c16(LENGTH(s(proper(z0))), PROPER(s(z0)))
PROPER(length(length(z0))) → c16(LENGTH(length(proper(z0))), PROPER(length(z0)))
PROPER(length(length1(z0))) → c16(LENGTH(length1(proper(z0))), PROPER(length1(z0)))
PROPER(length(nil)) → c16(LENGTH(ok(nil)))
PROPER(length(0)) → c16(LENGTH(ok(0)))
PROPER(length1(from(z0))) → c19(LENGTH1(from(proper(z0))), PROPER(from(z0)))
PROPER(length1(cons(z0, z1))) → c19(LENGTH1(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length1(s(z0))) → c19(LENGTH1(s(proper(z0))), PROPER(s(z0)))
PROPER(length1(length(z0))) → c19(LENGTH1(length(proper(z0))), PROPER(length(z0)))
PROPER(length1(nil)) → c19(LENGTH1(ok(nil)), PROPER(nil))
PROPER(length1(0)) → c19(LENGTH1(ok(0)), PROPER(0))
PROPER(length1(length1(z0))) → c19(LENGTH1(length1(proper(z0))), PROPER(length1(z0)))
S tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
PROPER(length(from(z0))) → c16(LENGTH(from(proper(z0))), PROPER(from(z0)))
PROPER(length(cons(z0, z1))) → c16(LENGTH(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length(s(z0))) → c16(LENGTH(s(proper(z0))), PROPER(s(z0)))
PROPER(length(length(z0))) → c16(LENGTH(length(proper(z0))), PROPER(length(z0)))
PROPER(length(length1(z0))) → c16(LENGTH(length1(proper(z0))), PROPER(length1(z0)))
PROPER(length(nil)) → c16(LENGTH(ok(nil)))
PROPER(length(0)) → c16(LENGTH(ok(0)))
PROPER(length1(from(z0))) → c19(LENGTH1(from(proper(z0))), PROPER(from(z0)))
PROPER(length1(cons(z0, z1))) → c19(LENGTH1(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length1(s(z0))) → c19(LENGTH1(s(proper(z0))), PROPER(s(z0)))
PROPER(length1(length(z0))) → c19(LENGTH1(length(proper(z0))), PROPER(length(z0)))
PROPER(length1(nil)) → c19(LENGTH1(ok(nil)), PROPER(nil))
PROPER(length1(0)) → c19(LENGTH1(ok(0)), PROPER(0))
PROPER(length1(length1(z0))) → c19(LENGTH1(length1(proper(z0))), PROPER(length1(z0)))
K tuples:none
Defined Rule Symbols:

active, s, length1, from, cons, proper, length

Defined Pair Symbols:

ACTIVE, FROM, CONS, S, LENGTH, LENGTH1, TOP, PROPER

Compound Symbols:

c3, c7, c8, c9, c10, c11, c12, c20, c21, c22, c23, c, c1, c4, c4, c2, c5, c5, c17, c6, c6, c18, c13, c13, c14, c14, c15, c15, c16, c16, c19

(47) CdtRhsSimplificationProcessorProof (BOTH BOUNDS(ID, ID) transformation)

Removed 2 trailing tuple parts

(48) Obligation:

Complexity Dependency Tuples Problem
Rules:

active(from(z0)) → mark(cons(z0, from(s(z0))))
active(length(nil)) → mark(0)
active(length(cons(z0, z1))) → mark(s(length1(z1)))
active(length1(z0)) → mark(length(z0))
active(from(z0)) → from(active(z0))
active(cons(z0, z1)) → cons(active(z0), z1)
active(s(z0)) → s(active(z0))
s(mark(z0)) → mark(s(z0))
s(ok(z0)) → ok(s(z0))
length1(ok(z0)) → ok(length1(z0))
from(mark(z0)) → mark(from(z0))
from(ok(z0)) → ok(from(z0))
cons(mark(z0), z1) → mark(cons(z0, z1))
cons(ok(z0), ok(z1)) → ok(cons(z0, z1))
proper(from(z0)) → from(proper(z0))
proper(cons(z0, z1)) → cons(proper(z0), proper(z1))
proper(s(z0)) → s(proper(z0))
proper(length(z0)) → length(proper(z0))
proper(nil) → ok(nil)
proper(0) → ok(0)
proper(length1(z0)) → length1(proper(z0))
length(ok(z0)) → ok(length(z0))
Tuples:

ACTIVE(length1(z0)) → c3(LENGTH(z0))
FROM(mark(z0)) → c7(FROM(z0))
FROM(ok(z0)) → c8(FROM(z0))
CONS(mark(z0), z1) → c9(CONS(z0, z1))
CONS(ok(z0), ok(z1)) → c10(CONS(z0, z1))
S(mark(z0)) → c11(S(z0))
S(ok(z0)) → c12(S(z0))
LENGTH(ok(z0)) → c20(LENGTH(z0))
LENGTH1(ok(z0)) → c21(LENGTH1(z0))
TOP(mark(z0)) → c22(TOP(proper(z0)), PROPER(z0))
TOP(ok(z0)) → c23(TOP(active(z0)), ACTIVE(z0))
ACTIVE(from(z0)) → c(S(z0))
ACTIVE(length(cons(z0, z1))) → c1(S(length1(z1)))
ACTIVE(length(cons(z0, z1))) → c1(LENGTH1(z1))
ACTIVE(from(from(z0))) → c4(FROM(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(from(from(z0))) → c4(FROM(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(from(cons(z0, z1))) → c4(FROM(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(from(s(z0))) → c4(FROM(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(from(length(nil))) → c4(FROM(mark(0)))
ACTIVE(from(length(cons(z0, z1)))) → c2(FROM(mark(s(length1(z1)))))
ACTIVE(from(length(cons(z0, z1)))) → c2(ACTIVE(length(cons(z0, z1))))
ACTIVE(from(length1(z0))) → c2(FROM(mark(length(z0))))
ACTIVE(from(length1(z0))) → c2(ACTIVE(length1(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(mark(cons(z0, from(s(z0)))), x1), ACTIVE(from(z0)))
ACTIVE(cons(from(z0), x1)) → c5(CONS(from(active(z0)), x1), ACTIVE(from(z0)))
ACTIVE(cons(cons(z0, z1), x1)) → c5(CONS(cons(active(z0), z1), x1), ACTIVE(cons(z0, z1)))
ACTIVE(cons(s(z0), x1)) → c5(CONS(s(active(z0)), x1), ACTIVE(s(z0)))
ACTIVE(cons(length(nil), x1)) → c5(CONS(mark(0), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(CONS(mark(s(length1(z1))), x1))
ACTIVE(cons(length(cons(z0, z1)), x1)) → c17(ACTIVE(length(cons(z0, z1))))
ACTIVE(cons(length1(z0), x1)) → c17(CONS(mark(length(z0)), x1))
ACTIVE(cons(length1(z0), x1)) → c17(ACTIVE(length1(z0)))
ACTIVE(s(from(z0))) → c6(S(mark(cons(z0, from(s(z0))))), ACTIVE(from(z0)))
ACTIVE(s(from(z0))) → c6(S(from(active(z0))), ACTIVE(from(z0)))
ACTIVE(s(cons(z0, z1))) → c6(S(cons(active(z0), z1)), ACTIVE(cons(z0, z1)))
ACTIVE(s(s(z0))) → c6(S(s(active(z0))), ACTIVE(s(z0)))
ACTIVE(s(length(nil))) → c6(S(mark(0)))
ACTIVE(s(length(cons(z0, z1)))) → c18(S(mark(s(length1(z1)))))
ACTIVE(s(length(cons(z0, z1)))) → c18(ACTIVE(length(cons(z0, z1))))
ACTIVE(s(length1(z0))) → c18(S(mark(length(z0))))
ACTIVE(s(length1(z0))) → c18(ACTIVE(length1(z0)))
PROPER(from(from(z0))) → c13(FROM(from(proper(z0))), PROPER(from(z0)))
PROPER(from(cons(z0, z1))) → c13(FROM(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(from(s(z0))) → c13(FROM(s(proper(z0))), PROPER(s(z0)))
PROPER(from(length(z0))) → c13(FROM(length(proper(z0))), PROPER(length(z0)))
PROPER(from(length1(z0))) → c13(FROM(length1(proper(z0))), PROPER(length1(z0)))
PROPER(from(nil)) → c13(FROM(ok(nil)))
PROPER(from(0)) → c13(FROM(ok(0)))
PROPER(cons(x0, from(z0))) → c14(CONS(proper(x0), from(proper(z0))), PROPER(x0), PROPER(from(z0)))
PROPER(cons(x0, cons(z0, z1))) → c14(CONS(proper(x0), cons(proper(z0), proper(z1))), PROPER(x0), PROPER(cons(z0, z1)))
PROPER(cons(x0, s(z0))) → c14(CONS(proper(x0), s(proper(z0))), PROPER(x0), PROPER(s(z0)))
PROPER(cons(x0, length(z0))) → c14(CONS(proper(x0), length(proper(z0))), PROPER(x0), PROPER(length(z0)))
PROPER(cons(x0, length1(z0))) → c14(CONS(proper(x0), length1(proper(z0))), PROPER(x0), PROPER(length1(z0)))
PROPER(cons(from(z0), x1)) → c14(CONS(from(proper(z0)), proper(x1)), PROPER(from(z0)), PROPER(x1))
PROPER(cons(cons(z0, z1), x1)) → c14(CONS(cons(proper(z0), proper(z1)), proper(x1)), PROPER(cons(z0, z1)), PROPER(x1))
PROPER(cons(s(z0), x1)) → c14(CONS(s(proper(z0)), proper(x1)), PROPER(s(z0)), PROPER(x1))
PROPER(cons(length(z0), x1)) → c14(CONS(length(proper(z0)), proper(x1)), PROPER(length(z0)), PROPER(x1))
PROPER(cons(length1(z0), x1)) → c14(CONS(length1(proper(z0)), proper(x1)), PROPER(length1(z0)), PROPER(x1))
PROPER(cons(x0, nil)) → c14(CONS(proper(x0), ok(nil)), PROPER(x0))
PROPER(cons(x0, 0)) → c14(CONS(proper(x0), ok(0)), PROPER(x0))
PROPER(cons(nil, x1)) → c14(CONS(ok(nil), proper(x1)), PROPER(x1))
PROPER(cons(0, x1)) → c14(CONS(ok(0), proper(x1)), PROPER(x1))
PROPER(s(from(z0))) → c15(S(from(proper(z0))), PROPER(from(z0)))
PROPER(s(cons(z0, z1))) → c15(S(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(s(s(z0))) → c15(S(s(proper(z0))), PROPER(s(z0)))
PROPER(s(length(z0))) → c15(S(length(proper(z0))), PROPER(length(z0)))
PROPER(s(length1(z0))) → c15(S(length1(proper(z0))), PROPER(length1(z0)))
PROPER(s(nil)) → c15(S(ok(nil)))
PROPER(s(0)) → c15(S(ok(0)))
PROPER(length(from(z0))) → c16(LENGTH(from(proper(z0))), PROPER(from(z0)))
PROPER(length(cons(z0, z1))) → c16(LENGTH(cons(proper(z0), proper(z1))), PROPER(cons(z0, z1)))
PROPER(length(s(z0))) → c16(LENGTH(s(proper(z0))), PROPER(s(z0)))
PROPER(length(length(z0))) → c16(LENGTH(length(proper(z0))), PROPER(length(z0)))
PROPER(length(length1(z0))) → c16(LENGTH(length1(proper(z0))), PROPER(length1(